git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
scripts
/
lxdialog
/
menubox.c
diff --git
a/scripts/lxdialog/menubox.c
b/scripts/lxdialog/menubox.c
index
a234e9f
..
ce2a990
100644
(file)
--- a/
scripts/lxdialog/menubox.c
+++ b/
scripts/lxdialog/menubox.c
@@
-71,7
+71,7
@@
print_item (WINDOW * win, const char *item, int choice, int selected, int hotkey
strncpy(menu_item, item, menu_width);
menu_item[menu_width] = 0;
strncpy(menu_item, item, menu_width);
menu_item[menu_width] = 0;
- j = first_alpha(menu_item, "YyNnMm");
+ j = first_alpha(menu_item, "YyNnMm
Hh
");
/* Clear 'residue' of last item */
wattrset (win, menubox_attr);
/* Clear 'residue' of last item */
wattrset (win, menubox_attr);
@@
-279,17
+279,17
@@
dialog_menu (const char *title, const char *prompt, int height, int width,
if (key < 256 && isalpha(key)) key = tolower(key);
if (key < 256 && isalpha(key)) key = tolower(key);
- if (strchr("ynm", key))
+ if (strchr("ynm
h
", key))
i = max_choice;
else {
for (i = choice+1; i < max_choice; i++) {
i = max_choice;
else {
for (i = choice+1; i < max_choice; i++) {
- j = first_alpha(items[(scroll+i)*2+1], "YyNnMm");
+ j = first_alpha(items[(scroll+i)*2+1], "YyNnMm
Hh
");
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}
if (i == max_choice)
for (i = 0; i < max_choice; i++) {
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}
if (i == max_choice)
for (i = 0; i < max_choice; i++) {
- j = first_alpha(items[(scroll+i)*2+1], "YyNnMm");
+ j = first_alpha(items[(scroll+i)*2+1], "YyNnMm
Hh
");
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}
if (key == tolower(items[(scroll+i)*2+1][j]))
break;
}
@@
-399,6
+399,7
@@
dialog_menu (const char *title, const char *prompt, int height, int width,
case 'y':
case 'n':
case 'm':
case 'y':
case 'n':
case 'm':
+ case '/':
/* save scroll info */
if ( (f=fopen("lxdialog.scrltmp","w")) != NULL ) {
fprintf(f,"%d\n",scroll);
/* save scroll info */
if ( (f=fopen("lxdialog.scrltmp","w")) != NULL ) {
fprintf(f,"%d\n",scroll);
@@
-412,6
+413,7
@@
dialog_menu (const char *title, const char *prompt, int height, int width,
case 'n': return 4;
case 'm': return 5;
case ' ': return 6;
case 'n': return 4;
case 'm': return 5;
case ' ': return 6;
+ case '/': return 7;
}
return 0;
case 'h':
}
return 0;
case 'h':