diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/examples/termios.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/manual/examples/termios.c b/manual/examples/termios.c index 751e57a..65bedad 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; |