]> diplodocus.org Git - nmh/blobdiff - sbr/terminal.c
Put, rather than print, single characters.
[nmh] / sbr / terminal.c
index 14eca97bc1f9dc02e407f6a4cd79ea556776991c..5f37116c4f5bbe26e162e7d78e0a154a60046e65 100644 (file)
 #include <h/mh.h>
 #include <h/utils.h>
 
-#include <termios.h>
 #include <sys/ioctl.h>
 
 #include <curses.h>
 #include <term.h>
+#include <termios.h>
 
 #ifdef WINSIZE_IN_PTEM
 # include <sys/stream.h>
@@ -120,7 +120,7 @@ nmh_clear_screen (void)
     if (ti_clear)
        tputs (ti_clear, LI, outc);
     else {
-       printf ("\f");
+       putchar('\f');
     }
 
     fflush (stdout);