X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/daef0b49cbbe94c2886c8435b22a49eead21332f..8de8055bc6930f58cb6afdb144d73138dc3ec930:/sbr/terminal.c diff --git a/sbr/terminal.c b/sbr/terminal.c index 5ba6dcd1..cf71de03 100644 --- a/sbr/terminal.c +++ b/sbr/terminal.c @@ -54,9 +54,8 @@ initialize_terminfo(void) if (rc != 0 || errret != 1) { termstatus = -1; return; - } else { - termstatus = 1; } + termstatus = 1; if (!initCO && (CO = tigetnum ("cols")) <= 0) CO = 80; @@ -120,7 +119,7 @@ nmh_clear_screen (void) if (ti_clear) tputs (ti_clear, LI, outc); else { - printf ("\f"); + putchar('\f'); } fflush (stdout);