]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] Force raw mode when reopening terminal
authorRay Strode <rstrode@redhat.com>
Tue, 29 Sep 2009 17:17:20 +0000 (13:17 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Sep 2009 17:18:54 +0000 (13:18 -0400)
If we need to reopen the terminal for whatever reason,
we'll also need to reset its attributes for input to work.

src/libplybootsplash/ply-terminal.c

index 41eab543d523acd060926e9026e45f7fa63e8292..462a4c658907c34b17f28b4114313bcc6c11a3da 100644 (file)
@@ -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);