From c04811313b1094ea27e923bd35ad57737a8ab4bd Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 20 May 2008 08:54:38 -0400 Subject: [PATCH] Use the raw mode so we lose terminal echo --- src/ply-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ply-window.c b/src/ply-window.c index b1417c59..61c4fccf 100644 --- a/src/ply-window.c +++ b/src/ply-window.c @@ -150,7 +150,7 @@ ply_window_set_unbuffered_input (ply_window_t *window) struct termios term_attributes; tcgetattr (window->tty_fd, &term_attributes); - term_attributes.c_lflag &= ~ICANON; + cfmakeraw (&term_attributes); if (tcsetattr (window->tty_fd, TCSAFLUSH, &term_attributes) != 0) return false;