]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] Add OPOST to tty attributes
authorRay Strode <rstrode@redhat.com>
Thu, 1 Jul 2010 00:18:08 +0000 (20:18 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 1 Jul 2010 00:18:08 +0000 (20:18 -0400)
ONLCR apparently requires OPOST to work.

This should prevent weird "stair stepping"
effects when non-plymouth things try to
use the terminal.

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

index 028551d6511088a05c210852b80c107536127be8..fb6a29d3a7b8ac912ae633d97f09763d629f53a6 100644 (file)
@@ -186,7 +186,7 @@ ply_terminal_set_unbuffered_input (ply_terminal_t *terminal)
   term_attributes.c_iflag |= ICRNL;
 
   /* Make \n return go to the beginning of the next line */
-  term_attributes.c_oflag |= ONLCR;
+  term_attributes.c_oflag |= ONLCR | OPOST;
 
   if (tcsetattr (terminal->fd, TCSANOW, &term_attributes) != 0)
     return false;