aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-03-05 22:06:07 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-03-05 22:06:07 -0800
commit703a777878cb84a59e1eb98926e81e0e223b1d0b (patch)
tree04142e3c57e12c7cfddc6595e2f9530ed1b30ec2 /com32
parent58e98acb054add0809619eaa62a614679f36d7af (diff)
downloadsyslinux-703a777878cb84a59e1eb98926e81e0e223b1d0b.tar.gz
syslinux-703a777878cb84a59e1eb98926e81e0e223b1d0b.tar.xz
syslinux-703a777878cb84a59e1eb98926e81e0e223b1d0b.zip
menu system: make the help message end row a configurable.syslinux-3.40-pre11
Diffstat (limited to 'com32')
-rw-r--r--com32/modules/menumain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/com32/modules/menumain.c b/com32/modules/menumain.c
index e44207d1..342e587c 100644
--- a/com32/modules/menumain.c
+++ b/com32/modules/menumain.c
@@ -92,6 +92,7 @@ struct menu_parameter mparm[] = {
{ "passwordrow", 11 },
{ "timeoutrow", 20 },
{ "helpmsgrow", 22 },
+ { "helpmsgendrow", -1 },
{ NULL, 0 }
};
@@ -105,6 +106,7 @@ struct menu_parameter mparm[] = {
#define PASSWD_ROW mparm[7].value
#define TIMEOUT_ROW mparm[8].value
#define HELPMSG_ROW mparm[9].value
+#define HELPMSGEND_ROW mparm[10].value
static void
install_default_color_table(void)
@@ -422,7 +424,7 @@ display_help(const char *text)
printf("\1#16\033[%d;1H", HELPMSG_ROW);
}
- for (p = text, row = HELPMSG_ROW; *p && row < END_ROW; p++) {
+ for (p = text, row = HELPMSG_ROW; *p && row <= HELPMSGEND_ROW; p++) {
switch (*p) {
case '\r':
case '\f':
@@ -439,7 +441,7 @@ display_help(const char *text)
fputs("\033[K", stdout);
- while (row < END_ROW) {
+ while (row <= HELPMSGEND_ROW) {
printf("\033[K\033[%d;1H", ++row);
}
}