]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Show the prompt with the text plugin
authorRay Strode <rstrode@redhat.com>
Thu, 21 Aug 2008 19:27:12 +0000 (15:27 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 27 Aug 2008 14:55:37 +0000 (10:55 -0400)
It's a little ugly atm, might be able to do better.

src/splash-plugins/text/plugin.c

index 4e85a5753aebb29b4035a646ae0da6def1ef90e8..8800122ca035bdb0d17f95244708f3560c3ebca2 100644 (file)
@@ -294,6 +294,10 @@ ask_for_password (ply_boot_splash_plugin_t *plugin,
   window_width = ply_window_get_number_of_text_columns (plugin->window);
   window_height = ply_window_get_number_of_text_rows (plugin->window);
 
+  ply_window_set_text_cursor_position (plugin->window,
+                                       window_width / 2 - strlen (prompt) / 2,
+                                       window_height / 2 - 1);
+  write (STDOUT_FILENO, prompt, strlen (prompt));
   ply_window_set_text_cursor_position (plugin->window,
                                        window_width / 2 - strlen ("Password:        "),
                                        window_height / 2);