summaryrefslogtreecommitdiff
path: root/com32/menu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-12-07 16:49:15 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-12-07 16:49:15 -0800
commit040441da7d90285e63bd920f4f416a0659e095be (patch)
treef75e930b6b2183f05f2f87a2bd4426e56ddeffd7 /com32/menu
parentc64383a22c3d8ae511153b50baa065d79c7ff855 (diff)
downloadsyslinux-040441da7d90285e63bd920f4f416a0659e095be.tar.gz
vesacon: don't display the cursor when doing a quiet boot
Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/menu.c5
-rw-r--r--com32/menu/menu.h1
-rw-r--r--com32/menu/menumain.c2
-rw-r--r--com32/menu/vesamenu.c5
4 files changed, 13 insertions, 0 deletions
diff --git a/com32/menu/menu.c b/com32/menu/menu.c
index 797189b4..8f7af4d0 100644
--- a/com32/menu/menu.c
+++ b/com32/menu/menu.c
@@ -33,6 +33,11 @@ void set_resolution(int x, int y)
(void)y;
}
+void local_cursor_enable(bool enabled)
+{
+ (void)enabled;
+}
+
void start_console(void)
{
console_ansi_raw();
diff --git a/com32/menu/menu.h b/com32/menu/menu.h
index 72f5c99e..52b4e4dc 100644
--- a/com32/menu/menu.h
+++ b/com32/menu/menu.h
@@ -186,6 +186,7 @@ void parse_configs(char **argv);
int draw_background(const char *filename);
void set_resolution(int x, int y);
void start_console(void);
+void local_cursor_enable(bool);
static inline int my_isspace(char c)
{
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index 32ed1b08..cbeb9a18 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -1115,8 +1115,10 @@ int main(int argc, char *argv[])
}
for (;;) {
+ local_cursor_enable(true);
cmdline = run_menu();
+ local_cursor_enable(false);
printf("\033[?25h\033[%d;1H\033[0m", END_ROW);
if (cmdline) {
diff --git a/com32/menu/vesamenu.c b/com32/menu/vesamenu.c
index 22b46235..62e29bd0 100644
--- a/com32/menu/vesamenu.c
+++ b/com32/menu/vesamenu.c
@@ -41,6 +41,11 @@ void set_resolution(int x, int y)
vesacon_set_resolution(x, y);
}
+void local_cursor_enable(bool enabled)
+{
+ vesacon_cursor_enable(enabled);
+}
+
void start_console(void)
{
openconsole(&dev_rawcon_r, &dev_vesaserial_w);