diff options
author | Ray Strode <rstrode@redhat.com> | 2009-03-10 14:46:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-03-10 14:46:59 -0400 |
commit | 9e3324a465e1d2d971b1a0a6a2ad4432ef239f82 (patch) | |
tree | 78e85c98d60069e6c76de143ce153b1ffeacb275 | |
parent | 546fbdc0b8bff126066778ef789e00ddb47dfd49 (diff) |
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?
-rw-r--r-- | src/plugins/splash/details/plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |