From: Ray Strode Date: Tue, 10 Mar 2009 18:46:59 +0000 (-0400) Subject: Reset to text mode anytime we're about to print text X-Git-Tag: 0.7.0~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3324a465e1d2d971b1a0a6a2ad4432ef239f82;p=thirdparty%2Fplymouth.git Reset to text mode anytime we're about to print text 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? --- diff --git a/src/plugins/splash/details/plugin.c b/src/plugins/splash/details/plugin.c index 2eed3418..f6380bcc 100644 --- a/src/plugins/splash/details/plugin.c +++ b/src/plugins/splash/details/plugin.c @@ -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);