From: Ray Strode Date: Wed, 17 Mar 2010 19:36:43 +0000 (-0400) Subject: [terminal] change fallback terminal settings X-Git-Tag: 0.8.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea394383c54dda771dcf59e7ec11280fa945280b;p=thirdparty%2Fplymouth.git [terminal] change fallback terminal settings I think when I originally added the fallback case, I looked at the tcgetattr man page, saw cfmakeraw()'s settings and just inverted them. That's obviously wrong. These settings should hopefully make a little more sense. --- diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c index bf1b0fea..ea9349cc 100644 --- a/src/libply-splash-core/ply-terminal.c +++ b/src/libply-splash-core/ply-terminal.c @@ -191,9 +191,9 @@ ply_terminal_set_buffered_input (ply_terminal_t *terminal) */ if (!terminal->original_term_attributes_saved || !(terminal->original_term_attributes.c_lflag & ICANON)) { - term_attributes.c_iflag |= IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON; + term_attributes.c_iflag |= BRKINT | IGNPAR | ISTRIP | ICRNL | IXON; term_attributes.c_oflag |= OPOST; - term_attributes.c_lflag |= ECHO | ECHONL | ICANON | ISIG | IEXTEN; + term_attributes.c_lflag |= ECHO | ICANON | ISIG | IEXTEN; if (tcsetattr (terminal->fd, TCSAFLUSH, &term_attributes) != 0) return false;