diff --git a/src/plugins/splash/fade-throbber/plugin.c b/src/plugins/splash/fade-throbber/plugin.c index d9e018f5..7cf0374d 100644 --- a/src/plugins/splash/fade-throbber/plugin.c +++ b/src/plugins/splash/fade-throbber/plugin.c @@ -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"); } diff --git a/src/plugins/splash/script/plugin.c b/src/plugins/splash/script/plugin.c index a2e7443a..45c8f89b 100644 --- a/src/plugins/splash/script/plugin.c +++ b/src/plugins/splash/script/plugin.c @@ -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"); } diff --git a/src/plugins/splash/space-flares/plugin.c b/src/plugins/splash/space-flares/plugin.c index 8161dfa7..c5f59b9f 100644 --- a/src/plugins/splash/space-flares/plugin.c +++ b/src/plugins/splash/space-flares/plugin.c @@ -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"); } diff --git a/src/plugins/splash/two-step/plugin.c b/src/plugins/splash/two-step/plugin.c index c810564e..69e1f342 100644 --- a/src/plugins/splash/two-step/plugin.c +++ b/src/plugins/splash/two-step/plugin.c @@ -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"); }