]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] Do not discard the input when turning the terminal unbuffered
authorCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 31 Mar 2010 18:16:36 +0000 (19:16 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 31 Mar 2010 18:16:36 +0000 (19:16 +0100)
Drawing to renderers was resetting the terminal to unbuffered, but this was
also discarding any queued input keys. The fix should keep the input buffer
untouched.

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

index ac49be8d4647077c34a3e9803a715c68db64fd3d..3e90dec53954a8111d3e2c02838aaa6bc0c7977e 100644 (file)
@@ -182,7 +182,7 @@ ply_terminal_set_unbuffered_input (ply_terminal_t *terminal)
   /* Make \n return go to the beginning of the next line */
   term_attributes.c_oflag |= ONLCR;
 
-  if (tcsetattr (terminal->fd, TCSAFLUSH, &term_attributes) != 0)
+  if (tcsetattr (terminal->fd, TCSANOW, &term_attributes) != 0)
     return false;
 
   terminal->is_unbuffered = true;