From 4f0db90a7e875ed3f8ac2cdb583e24ab14e8bcb4 Mon Sep 17 00:00:00 2001 From: Gene Cumm Date: Mon, 26 Jul 2010 15:09:43 -0400 Subject: [PATCH] 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 Signed-off-by: H. Peter Anvin --- com32/cmenu/libmenu/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); cls(); gotoxy(ms->minrow, ms->mincol); + cursoron(); // Return user choice return rv; -- 2.7.4