]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Reset to text mode anytime we're about to print text
authorRay Strode <rstrode@redhat.com>
Tue, 10 Mar 2009 18:46:59 +0000 (14:46 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 10 Mar 2009 18:46:59 +0000 (14:46 -0400)
If we don't then someone during boot up may change
out from raw when we aren't looking.

Maybe we should use TIOCSLCKTRMIOS to prevent that
from happening? Or maybe we should bypass the tty
for input entirely and use evdev?

src/plugins/splash/details/plugin.c

index 2eed3418dd972ea4b6052fe0ef433987c7d1203f..f6380bccc40cc9578cd88bc55d49f8c5e5808f3d 100644 (file)
@@ -152,6 +152,8 @@ write_text_on_window (ply_window_t             *window,
   int fd;
   size_t size;
 
+  ply_window_set_mode (window, PLY_WINDOW_MODE_TEXT);
+
   size = (size_t) user_data;
 
   fd = ply_window_get_tty_fd (window);