From: Pierre-Alexandre Meyer Date: Sat, 5 Sep 2009 04:17:43 +0000 (-0700) Subject: cmenu: turn off auto wrap X-Git-Tag: syslinux-3.84-pre1~37^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dbfcb101d1227e799c0eb070c046628498ecf5a;p=platform%2Fupstream%2Fsyslinux.git 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 --- diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c index f437520..dd525a6 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);