[syslinux:disklib] libmenu: Fix cursor on exit from showmenus()

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Mon Jul 26 13:06:24 PDT 2010

Commit-ID:  2a90aaec45900b73ad1ec28c4bacd6a4b58e4251
Gitweb:     http://syslinux.zytor.com/commit/2a90aaec45900b73ad1ec28c4bacd6a4b58e4251
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Mon, 26 Jul 2010 15:09:43 -0400
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 26 Jul 2010 13:03:29 -0700

libmenu: Fix cursor on exit from showmenus()

This fixes the issue in hdt.c32 that Kent Robotti noticed where
exiting directly from Menu Mode caused the cursor to not be displayed.
This same issue also affects com32/cmenu/simple.c32 and probably
others using showmenus().

Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

 com32/cmenu/libmenu/menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c
index 1375476..19a7e59 100644
--- a/com32/cmenu/libmenu/menu.c
+++ b/com32/cmenu/libmenu/menu.c
@@ -655,9 +655,9 @@ pt_menuitem showmenus(uchar startmenu)
                ms->menus[(unsigned int)startmenu], 0, NORMALMENU);
     // Hide the garbage we left on the screen
-    cursoron();
     gotoxy(ms->minrow, ms->mincol);
+    cursoron();
     // Return user choice
     return rv;

More information about the Syslinux-commits mailing list