summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-09-29 13:17:20 -0400
committerRay Strode <rstrode@redhat.com>2009-09-29 13:18:54 -0400
commitd294f5d891f96fccd31d39280382fabad3080f6b (patch)
tree25ca05b00f94dddc2d54c5fb242e86f14db9ecb6
parent651f7481110e46934fa20002f48ab78119dd31d5 (diff)
[terminal] Force raw mode when reopening terminal
If we need to reopen the terminal for whatever reason, we'll also need to reset its attributes for input to work.
-rw-r--r--src/libplybootsplash/ply-terminal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libplybootsplash/ply-terminal.c b/src/libplybootsplash/ply-terminal.c
index 41eab543..462a4c65 100644
--- a/src/libplybootsplash/ply-terminal.c
+++ b/src/libplybootsplash/ply-terminal.c
@@ -329,6 +329,9 @@ ply_terminal_open_device (ply_terminal_t *terminal)
ply_terminal_check_for_vt (terminal);
+ if (!ply_terminal_set_unbuffered_input (terminal))
+ ply_trace ("terminal '%s' will be line buffered", terminal->name);
+
return true;
}
@@ -360,9 +363,6 @@ ply_terminal_open (ply_terminal_t *terminal)
return false;
}
- if (!ply_terminal_set_unbuffered_input (terminal))
- ply_trace ("terminal '%s' will be line buffered", terminal->name);
-
ply_terminal_look_up_geometry (terminal);
ply_terminal_look_up_color_palette (terminal);