]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] change fallback terminal settings
authorRay Strode <rstrode@redhat.com>
Wed, 17 Mar 2010 19:36:43 +0000 (15:36 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 17 Mar 2010 19:36:43 +0000 (15:36 -0400)
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.

src/libply-splash-core/ply-terminal.c

index bf1b0fea5d72a0a623557928e35c4b29b994db54..ea9349cc055b321b998a82b295e76556b8602b79 100644 (file)
@@ -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;