aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/libmenu/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/cmenu/libmenu/menu.c')
-rw-r--r--com32/cmenu/libmenu/menu.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/com32/cmenu/libmenu/menu.c b/com32/cmenu/libmenu/menu.c
index eff05c45..a00c0ce7 100644
--- a/com32/cmenu/libmenu/menu.c
+++ b/com32/cmenu/libmenu/menu.c
@@ -83,8 +83,11 @@ char getch(char *scan)
return 0;
}
-/* Print a menu item */
-/* attr[0] is non-hilite attr, attr[1] is highlight attr */
+/*
+ * Print a menu item
+ *
+ * attr[0] is non-hilite attr, attr[1] is highlight attr
+ */
void printmenuitem(const char *str, uchar * attr)
{
uchar page = getdisppage();
@@ -185,7 +188,7 @@ void printmenu(pt_menu menu, int curr, uchar top, uchar left, uchar first)
attr = (x == curr ? ms->revinactattr : ms->inactattr);
break;
case OPT_SUBMENU:
- lchar[0] = SUBMENUCHAR;
+ lchar[0] = '>';
lchar[1] = 0;
break;
case OPT_RADIOMENU:
@@ -221,7 +224,7 @@ void printmenu(pt_menu menu, int curr, uchar top, uchar left, uchar first)
gotoxy(top + row, left, ms->menupage);
printmenuitem(str, attr); // Print main part
gotoxy(top + row, left + menuwidth - 1, ms->menupage); // Last char if any
- csprint(lchar, attr[NOHLITE]); // Print last part
+ fputs(lchar, stdout); // Print last part
}
// Check if we need to MOREABOVE and MOREBELOW to be added
// reuse x