summaryrefslogtreecommitdiff
path: root/src/libply-splash-core/ply-terminal.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2011-03-01 17:26:16 -0500
committerRay Strode <rstrode@redhat.com>2011-03-01 17:26:16 -0500
commit502d5951aa5b8ece34fa21032d513254ef146f69 (patch)
tree9036e78f2817b3ee9615ef929ca7f04caa6f6709 /src/libply-splash-core/ply-terminal.c
parentb6b10b1cbcf9f7d42a3c4b73dadbd645deca7a62 (diff)
terminal: apply terminal settings immediately
Diffstat (limited to 'src/libply-splash-core/ply-terminal.c')
-rw-r--r--src/libply-splash-core/ply-terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c
index 3f126bcb..3e6e8cc5 100644
--- a/src/libply-splash-core/ply-terminal.c
+++ b/src/libply-splash-core/ply-terminal.c
@@ -272,7 +272,7 @@ ply_terminal_set_buffered_input (ply_terminal_t *terminal)
term_attributes.c_oflag |= OPOST;
term_attributes.c_lflag |= ECHO | ICANON | ISIG | IEXTEN;
- if (tcsetattr (terminal->fd, TCSAFLUSH, &term_attributes) != 0)
+ if (tcsetattr (terminal->fd, TCSANOW, &term_attributes) != 0)
return false;
terminal->is_unbuffered = false;
@@ -280,7 +280,7 @@ ply_terminal_set_buffered_input (ply_terminal_t *terminal)
return true;
}
- if (tcsetattr (terminal->fd, TCSAFLUSH, &terminal->original_term_attributes) != 0)
+ if (tcsetattr (terminal->fd, TCSANOW, &terminal->original_term_attributes) != 0)
return false;
terminal->is_unbuffered = false;