From 6f3f6f3294b69fe39c16294ff833ce62d3982bc3 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 31 Oct 2009 20:09:11 -0700 Subject: [PATCH] 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 --- com32/cmenu/libmenu/menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c index 3a761aa..de4a1ee 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; -- 2.7.4