/[grub]/grub/stage2/builtins.c
ViewVC logotype

Diff of /grub/stage2/builtins.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.130 by okuji, Wed Apr 17 09:41:54 2002 UTC revision 1.131 by okuji, Mon Apr 29 00:35:30 2002 UTC
# Line 3976  terminal_func (char *arg, int flags) Line 3976  terminal_func (char *arg, int flags)
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)
# Line 4003  terminal_func (char *arg, int flags) Line 4004  terminal_func (char *arg, int flags)
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    
# Line 4113  terminal_func (char *arg, int flags) Line 4116  terminal_func (char *arg, int flags)
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--;
# Line 4139  static struct builtin builtin_terminal = Line 4144  static struct builtin builtin_terminal =
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"
# Line 4147  static struct builtin builtin_terminal = Line 4152  static struct builtin builtin_terminal =
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    

Legend:
Removed from v.1.130  
changed lines
  Added in v.1.131

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26