3976 |
int dumb = 0; |
int dumb = 0; |
3977 |
int saved_terminal = terminal; |
int saved_terminal = terminal; |
3978 |
int lines = 0; |
int lines = 0; |
3979 |
|
int no_message = 0; |
3980 |
|
|
3981 |
/* Get GNU-style long options. */ |
/* Get GNU-style long options. */ |
3982 |
while (1) |
while (1) |
4004 |
return 1; |
return 1; |
4005 |
} |
} |
4006 |
} |
} |
4007 |
|
else if (grub_memcmp (arg, "--silent", sizeof ("--silent") - 1) == 0) |
4008 |
|
no_message = 1; |
4009 |
else |
else |
4010 |
break; |
break; |
4011 |
|
|
4116 |
/* Prompt the user, once per sec. */ |
/* Prompt the user, once per sec. */ |
4117 |
if ((time1 = getrtsecs ()) != time2 && time1 != 0xFF) |
if ((time1 = getrtsecs ()) != time2 && time1 != 0xFF) |
4118 |
{ |
{ |
4119 |
grub_printf ("Press any key to continue.\n"); |
if (! no_message) |
4120 |
|
grub_printf ("Press any key to continue.\n"); |
4121 |
|
|
4122 |
time2 = time1; |
time2 = time1; |
4123 |
if (to > 0) |
if (to > 0) |
4124 |
to--; |
to--; |
4144 |
"terminal", |
"terminal", |
4145 |
terminal_func, |
terminal_func, |
4146 |
BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, |
BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, |
4147 |
"terminal [--dumb] [--timeout=SECS] [--lines=LINES] [console] [serial]", |
"terminal [--dumb] [--timeout=SECS] [--lines=LINES] [--silent] [console] [serial]", |
4148 |
"Select a terminal. When serial is specified, wait until you push any key" |
"Select a terminal. When serial is specified, wait until you push any key" |
4149 |
" to continue. If both console and serial are specified, the terminal" |
" to continue. If both console and serial are specified, the terminal" |
4150 |
" to which you input a key first will be selected. If no argument is" |
" to which you input a key first will be selected. If no argument is" |
4152 |
" your terminal is dumb, otherwise, vt100-compatibility is assumed." |
" your terminal is dumb, otherwise, vt100-compatibility is assumed." |
4153 |
" If --timeout is present, this command will wait at most for SECS" |
" If --timeout is present, this command will wait at most for SECS" |
4154 |
" seconds. The option --lines specifies the maximum number of lines." |
" seconds. The option --lines specifies the maximum number of lines." |
4155 |
|
" The option --silent is used to suppress messages." |
4156 |
}; |
}; |
4157 |
#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES */ |
#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES */ |
4158 |
|
|