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:
nerdopolis 2026-04-26 10:14:21 -04:00
parent 6cd04f781a
commit 7e98d9bc64
4 changed files with 18 additions and 3 deletions

View file

@ -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");
}

View file

@ -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");
}

View file

@ -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");
}

View file

@ -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");
}