aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-04 21:17:43 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-04 21:17:43 -0700
commit3dbfcb101d1227e799c0eb070c046628498ecf5a (patch)
tree9c5343d933557d15dec3eb09d4e57863d37e8559
parent86e26798966e1a47673b07692d383da0ead63873 (diff)
downloadsyslinux-3dbfcb101d1227e799c0eb070c046628498ecf5a.tar.gz
syslinux-3dbfcb101d1227e799c0eb070c046628498ecf5a.tar.xz
syslinux-3dbfcb101d1227e799c0eb070c046628498ecf5a.zip
cmenu: turn off auto wrap
Auto wrap made the menu scroll because of the status line (when printing the last character of the bottom right of the screen, the ansicon scrolled the whole menu). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
-rw-r--r--com32/cmenu/libmenu/menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c
index f437520e..dd525a63 100644
--- a/com32/cmenu/libmenu/menu.c
+++ b/com32/cmenu/libmenu/menu.c
@@ -734,6 +734,10 @@ pt_menuitem showmenus(uchar startmenu)
cls();
clearwindow(ms->minrow, ms->mincol, ms->maxrow, ms->maxcol,
ms->fillchar, ms->fillattr);
+
+ /* Turn autowrap off, to avoid scrolling the menu */
+ printf(CSI "?7l");
+
tpos = (ms->numcols - strlen(ms->title) - 1) >> 1; // center it on line
gotoxy(ms->minrow, ms->mincol);
cprint(ms->tfillchar, ms->titleattr, ms->numcols);