diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-07 15:54:57 -0700 |
---|---|---|
committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-07 15:54:57 -0700 |
commit | 39758675d88eb2b0d5c64239aa5d47df61e4d106 (patch) | |
tree | f3f3db0795f4f2abceb6e82f547c9bc38d49ef48 /com32/cmenu | |
parent | 3e8d9f7d228c21be97f0d948546b07e5aa959313 (diff) | |
download | syslinux-39758675d88eb2b0d5c64239aa5d47df61e4d106.tar.gz |
cmenu: use ASCII characters for scrollbars
Use ^ and v as hints for scrolling. Use \141 from the Special Characters and
Line Drawing Character Set as the scrollbox.
Note: printf "\016\141\017" doesn't seem to work well on xterm, although
it does work on the vga console.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu')
-rw-r--r-- | com32/cmenu/libmenu/menu.c | 2 | ||||
-rw-r--r-- | com32/cmenu/libmenu/menu.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c index 5a33a527..3a761aa8 100644 --- a/com32/cmenu/libmenu/menu.c +++ b/com32/cmenu/libmenu/menu.c @@ -327,7 +327,7 @@ static void printmenu(pt_menu menu, int curr, uchar top, uchar left, uchar first x = ((numitems - 1) * curr) / (menu->numitems); if ((x > 0) && (row == 1)) { gotoxy(top + x, left + menuwidth); - cprint(SCROLLBOX, ms->normalattr[NOHLITE], 1); + csprint("\016\141\017", ms->normalattr[NOHLITE]); } if (ms->handler) ms->handler(ms, menu->items[curr]); diff --git a/com32/cmenu/libmenu/menu.h b/com32/cmenu/libmenu/menu.h index b373e760..44acb122 100644 --- a/com32/cmenu/libmenu/menu.h +++ b/com32/cmenu/libmenu/menu.h @@ -72,9 +72,8 @@ #define NOHLITE 0 // The offset into attrib array for non-hilite #define HLITE 1 // The offset for Hlite attrib -#define MOREABOVE 24 // char to print when more menu items available above -#define MOREBELOW 25 // more items available below -#define SCROLLBOX 176 // Filled char to display +#define MOREABOVE '^' // char to print when more menu items available above +#define MOREBELOW 'v' // more items available below // Attributes of the menu system #define MAXMENUS 150 // Maximum number of menu's allowed |