|
|
e17a8d3 |
From 502d5951aa5b8ece34fa21032d513254ef146f69 Mon Sep 17 00:00:00 2001
|
|
|
e17a8d3 |
From: Ray Strode <rstrode@redhat.com>
|
|
|
e17a8d3 |
Date: Tue, 1 Mar 2011 17:26:16 -0500
|
|
|
e17a8d3 |
Subject: [PATCH] terminal: apply terminal settings immediately
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
---
|
|
|
e17a8d3 |
src/libply-splash-core/ply-terminal.c | 4 ++--
|
|
|
e17a8d3 |
1 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c
|
|
|
e17a8d3 |
index 3f126bc..3e6e8cc 100644
|
|
|
e17a8d3 |
--- a/src/libply-splash-core/ply-terminal.c
|
|
|
e17a8d3 |
+++ b/src/libply-splash-core/ply-terminal.c
|
|
|
e17a8d3 |
@@ -272,7 +272,7 @@ ply_terminal_set_buffered_input (ply_terminal_t *terminal)
|
|
|
e17a8d3 |
term_attributes.c_oflag |= OPOST;
|
|
|
e17a8d3 |
term_attributes.c_lflag |= ECHO | ICANON | ISIG | IEXTEN;
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
- if (tcsetattr (terminal->fd, TCSAFLUSH, &term_attributes) != 0)
|
|
|
e17a8d3 |
+ if (tcsetattr (terminal->fd, TCSANOW, &term_attributes) != 0)
|
|
|
e17a8d3 |
return false;
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
terminal->is_unbuffered = false;
|
|
|
e17a8d3 |
@@ -280,7 +280,7 @@ ply_terminal_set_buffered_input (ply_terminal_t *terminal)
|
|
|
e17a8d3 |
return true;
|
|
|
e17a8d3 |
}
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
- if (tcsetattr (terminal->fd, TCSAFLUSH, &terminal->original_term_attributes) != 0)
|
|
|
e17a8d3 |
+ if (tcsetattr (terminal->fd, TCSANOW, &terminal->original_term_attributes) != 0)
|
|
|
e17a8d3 |
return false;
|
|
|
e17a8d3 |
|
|
|
e17a8d3 |
terminal->is_unbuffered = false;
|
|
|
e17a8d3 |
--
|
|
|
e17a8d3 |
1.7.4.1
|
|
|
e17a8d3 |
|