diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-20 13:50:41 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-20 13:50:41 -0400 |
commit | f4b938320890f770a78b6f998a0f2ce60f5033ec (patch) | |
tree | c331d16feb1f679a49fa8a82b6a7d18cce53cc83 | |
parent | 435034695d40d6d775bf364c70277b24a32b3531 (diff) | |
download | plymouth-f4b938320890f770a78b6f998a0f2ce60f5033ec.tar.gz plymouth-f4b938320890f770a78b6f998a0f2ce60f5033ec.tar.xz plymouth-f4b938320890f770a78b6f998a0f2ce60f5033ec.zip |
use window hide/show cursor functions in text plugin
-rw-r--r-- | src/splash-plugins/text/plugin.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/splash-plugins/text/plugin.c b/src/splash-plugins/text/plugin.c index 69e01a5..cba0441 100644 --- a/src/splash-plugins/text/plugin.c +++ b/src/splash-plugins/text/plugin.c @@ -54,8 +54,6 @@ #include <linux/kd.h> #define CLEAR_LINE_SEQUENCE "\033[2K\r\n" -#define HIDE_CURSOR_SEQUENCE "\033[?25l" -#define SHOW_CURSOR_SEQUENCE "\033[?25h" #define BACKSPACE "\b\033[0K" struct _ply_boot_splash_plugin @@ -131,18 +129,6 @@ on_enter (ply_boot_splash_plugin_t *plugin, } } -static void -hide_cursor (ply_boot_splash_plugin_t *plugin) -{ - write (STDOUT_FILENO, HIDE_CURSOR_SEQUENCE, strlen (HIDE_CURSOR_SEQUENCE)); -} - -static void -show_cursor (ply_boot_splash_plugin_t *plugin) -{ - write (STDOUT_FILENO, SHOW_CURSOR_SEQUENCE, strlen (SHOW_CURSOR_SEQUENCE)); -} - bool show_splash_screen (ply_boot_splash_plugin_t *plugin, ply_event_loop_t *loop, @@ -169,7 +155,7 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, plugin->window = window; ply_window_clear_screen (plugin->window); - hide_cursor (plugin); + ply_window_hide_text_cursor (plugin->window); return true; } @@ -228,7 +214,7 @@ hide_splash_screen (ply_boot_splash_plugin_t *plugin, } ply_window_clear_screen (plugin->window); - show_cursor (plugin); + ply_window_show_text_cursor (plugin->window); plugin->window = NULL; } |