Use the raw mode so we lose terminal echo

This commit is contained in:
Ray Strode 2008-05-20 08:54:38 -04:00
parent b8781ead84
commit c04811313b

View file

@ -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;