From: nerdopolis Date: Fri, 8 Dec 2023 15:30:37 +0000 (-0500) Subject: main: Restore terminal line discipline on hide splash X-Git-Tag: 23.51.283~6^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58cc9f84e456ab0510b13d7bdbc13697467ca7be;p=thirdparty%2Fplymouth.git main: Restore terminal line discipline on hide splash At the moment if a program calls `plymouth hide-splash` plymouth keeps the terminal in raw mode. That is wrong, because programs call `plymouth hide-splash` specifically so they can use the terminal. This commit makes plymouth restore the terminal to cooked mode so it's ready for the next program. --- diff --git a/src/main.c b/src/main.c index 4617dfcf..e301051b 100644 --- a/src/main.c +++ b/src/main.c @@ -1226,8 +1226,10 @@ hide_splash (state_t *state) ply_boot_splash_hide (state->boot_splash); - if (state->local_console_terminal != NULL) + if (state->local_console_terminal != NULL) { ply_terminal_set_mode (state->local_console_terminal, PLY_TERMINAL_MODE_TEXT); + ply_terminal_set_buffered_input (state->local_console_terminal); + } } static void