]> diplodocus.org Git - nmh/blobdiff - sbr/terminal.c
Put, rather than print, single characters.
[nmh] / sbr / terminal.c
index 89d0dafc99f07ceb8de39d263cb84817b607b734..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);
@@ -175,7 +175,7 @@ get_term_stringcap(char *capability)
 
     tputs(parm, 1, termbytes);
 
-    termcbufp = '\0';
+    *termcbufp = '\0';
 
     return termcbuf;
 }
@@ -206,7 +206,7 @@ get_term_stringparm(char *capability, long arg1, long arg2)
 
     tputs(parm, 1, termbytes);
 
-    termcbufp = '\0';
+    *termcbufp = '\0';
 
     return termcbuf;
 }