aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-10-31 20:09:11 -0700
committerErwan Velu <erwan.velu@free.fr>2009-11-01 11:43:43 +0100
commit512de9792b2fd4a9af1033ea6ef6c8033e4dfb9f (patch)
treee70e065c808a68783e11946a1ae43d34d713f626 /com32
parenta1d88954b2913bb6b992077accad6b23c6767abe (diff)
downloadsyslinux-512de9792b2fd4a9af1033ea6ef6c8033e4dfb9f.tar.gz
syslinux-512de9792b2fd4a9af1033ea6ef6c8033e4dfb9f.tar.xz
syslinux-512de9792b2fd4a9af1033ea6ef6c8033e4dfb9f.zip
cmenu: reset the cursor position on shutdown
Reset the cursor at the top left corner of the screen when exiting the menu. This fixes odd behaviors when switching back and forth between CLI and menu in HDT. Closes: #14 Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32')
-rw-r--r--com32/cmenu/libmenu/menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c
index 3a761aa8..de4a1ee2 100644
--- a/com32/cmenu/libmenu/menu.c
+++ b/com32/cmenu/libmenu/menu.c
@@ -657,6 +657,7 @@ pt_menuitem showmenus(uchar startmenu)
// Hide the garbage we left on the screen
cursoron();
cls();
+ gotoxy(ms->minrow, ms->mincol);
// Return user choice
return rv;