aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-05 11:22:36 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-05 11:22:36 -0700
commit6aae10cee4ab49037352c22086222213973dec2b (patch)
treefa23918ab40b7def228f60bb0094f0b532e15b86 /com32/cmenu
parent11cb2a4b003a79f7d55dc8a00e9a4ce86acaeafe (diff)
downloadsyslinux-6aae10cee4ab49037352c22086222213973dec2b.tar.gz
syslinux-6aae10cee4ab49037352c22086222213973dec2b.tar.xz
syslinux-6aae10cee4ab49037352c22086222213973dec2b.zip
cmenu: fill backgorund with printable character
To have a blue background on the console (serial), we need to fill the screen with a printable character (e.g. space). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/menu.c6
-rw-r--r--com32/cmenu/libmenu/menu.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c
index 7918b47b..6a1d7a37 100644
--- a/com32/cmenu/libmenu/menu.c
+++ b/com32/cmenu/libmenu/menu.c
@@ -566,14 +566,14 @@ pt_menuitem showmenus(uchar startmenu)
fix_submenus(); // Fix submenu numbers incase nick names were used
+ /* Turn autowrap off, to avoid scrolling the menu */
+ printf(CSI "?7l");
+
// Setup screen for menusystem
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);
diff --git a/com32/cmenu/libmenu/menu.h b/com32/cmenu/libmenu/menu.h
index 7d290ec9..6c14dab0 100644
--- a/com32/cmenu/libmenu/menu.h
+++ b/com32/cmenu/libmenu/menu.h
@@ -60,8 +60,8 @@
#define STATUSATTR 0x74
#define STATUSHLITE 0x7B // Status highlight
-#define FILLCHAR 177
-#define FILLATTR 0x01
+#define FILLCHAR ' '
+#define FILLATTR NORMALATTR
#define SHADOWATTR 0x00
#define SPACECHAR ' '