about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/examples/termios.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/manual/examples/termios.c b/manual/examples/termios.c
index 751e57ad71..65bedad9cc 100644
--- a/manual/examples/termios.c
+++ b/manual/examples/termios.c
@@ -34,7 +34,6 @@ void
 set_input_mode (void)
 {
   struct termios tattr;
-  char *name;
 
   /* Make sure stdin is a terminal. */
   if (!isatty (STDIN_FILENO))
@@ -70,7 +69,7 @@ main (void)
       if (c == '\004')		/* @kbd{C-d} */
 	break;
       else
-	putchar (c);
+	write (STDOUT_FILENO, &c, 1);
     }
 
   return EXIT_SUCCESS;