mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 08:18:02 +02:00
fade-throbber, script, space-flares, two-step: Fix exiting the question prompt of the console viewer
This makes it more clear that the answer has been accepted
This commit is contained in:
parent
6cd04f781a
commit
7e98d9bc64
4 changed files with 18 additions and 3 deletions
|
|
@ -209,11 +209,15 @@ view_hide_prompt (view_t *view)
|
|||
|
||||
plugin = view->plugin;
|
||||
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (view->console_viewer != NULL) {
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_PASSWORD_ENTRY)
|
||||
ply_console_viewer_clear_line (view->console_viewer);
|
||||
|
||||
/* Remove the last character that acts as the fake cursor when prompting */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_QUESTION_ENTRY)
|
||||
ply_console_viewer_print (view->console_viewer, "\b");
|
||||
|
||||
ply_console_viewer_print (view->console_viewer, "\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -570,6 +570,9 @@ display_normal (ply_boot_splash_plugin_t *plugin)
|
|||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_PASSWORD_ENTRY)
|
||||
script_lib_sprite_console_viewer_clear_line (plugin->script_sprite_lib);
|
||||
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_QUESTION_ENTRY)
|
||||
script_lib_sprite_console_viewer_print (plugin->script_sprite_lib, "\b ");
|
||||
|
||||
script_lib_sprite_console_viewer_print (plugin->script_sprite_lib, "\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -539,11 +539,15 @@ view_hide_prompt (view_t *view)
|
|||
|
||||
plugin = view->plugin;
|
||||
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (view->console_viewer != NULL) {
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_PASSWORD_ENTRY)
|
||||
ply_console_viewer_clear_line (view->console_viewer);
|
||||
|
||||
/* Remove the last character that acts as the fake cursor when prompting */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_QUESTION_ENTRY)
|
||||
ply_console_viewer_print (view->console_viewer, "\b");
|
||||
|
||||
ply_console_viewer_print (view->console_viewer, "\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1110,11 +1110,15 @@ view_hide_prompt (view_t *view)
|
|||
|
||||
plugin = view->plugin;
|
||||
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (view->console_viewer != NULL) {
|
||||
/* Obscure the password length in the scroll back */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_PASSWORD_ENTRY)
|
||||
ply_console_viewer_clear_line (view->console_viewer);
|
||||
|
||||
/* Remove the last character that acts as the fake cursor when prompting */
|
||||
if (plugin->state == PLY_BOOT_SPLASH_DISPLAY_QUESTION_ENTRY)
|
||||
ply_console_viewer_print (view->console_viewer, "\b");
|
||||
|
||||
ply_console_viewer_print (view->console_viewer, "\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue