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
124459c
..
ce2a990
100644
(file)
--- a/
scripts/lxdialog/menubox.c
+++ b/
scripts/lxdialog/menubox.c
@@
-276,15
+276,6
@@
dialog_menu (const char *title, const char *prompt, int height, int width,
while (key != ESC) {
key = wgetch(menu);
while (key != ESC) {
key = wgetch(menu);
- if ( key == '/' ) {
- int ret = dialog_inputbox("Search Configuration Parameter",
- "Enter Keyword", height, width,
- (char *) NULL);
- if (ret == 0) {
- fprintf(stderr, "%s", dialog_input_result);
- return 26;
- }
- }
if (key < 256 && isalpha(key)) key = tolower(key);
if (key < 256 && isalpha(key)) key = tolower(key);
@@
-408,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);
@@
-421,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':