Home | History | Annotate | Download | only in telnet

Lines Matching defs:Command

113 	const char	*name;	/* command name */
115 int (*handler) /* routine which executes command */
118 } Command;
168 static Command *getcmd(const char *);
192 /* save for shell command */
302 * the "send" command.
313 int nbyte; /* Number of bytes to send this command */
356 struct sendlist *s; /* pointer to current command */
361 printf("need at least one argument for 'send' command\n");
385 "Need %d argument%s to 'send %s' command. 'send %s ?' for help.\n",
525 struct sendlist *s; /* pointer to current command */
536 * to by the arguments to the "toggle" command.
836 "Need an argument to 'toggle' command. 'toggle ?' for help.\n");
870 * The following perform the "set" command.
886 { "escape", "character to escape back to telnet command mode", 0, &escape },
1017 "Need an argument to 'unset' command. 'unset ?' for help.\n");
1072 * 'mode' command.
1146 const char *name; /* command name */
1148 int (*handler) /* routine which executes command */
1213 printf("'mode' command requires an argument\n");
1231 * "display" command.
1298 * relating to command processing.
1459 * The SLC command.
1510 "Need an argument to 'slc' command. 'slc ?' for help.\n");
1531 * The ENVIRON command.
1588 "Need an argument to 'environ' command. 'environ ?' for help.\n");
1604 "Need %s%d argument%s to 'environ %s' command. 'environ ?' for help.\n",
1813 * The AUTHENTICATE command.
1858 "Need an argument to 'auth' command. 'auth ?' for help.\n");
1876 "Need %s%d argument%s to 'auth %s' command. 'auth ?' for help.\n",
1887 * The ENCRYPT command.
1951 "Need an argument to 'encrypt' command. "
1982 "to 'encrypt %s' command. 'encrypt ?' for help.\n",
2301 static Command cmdtab[] = {
2327 static char crmodhelp[] = "deprecated command -- use 'toggle crmod' instead";
2328 static char escapehelp[] = "deprecated command -- use 'set escape' instead";
2330 static Command cmdtab2[] = {
2359 static Command *
2362 Command *cm;
2364 if ((cm = (Command *) genget(name, (char **) cmdtab, sizeof(Command))) != NULL)
2366 return (Command *) genget(name, (char **) cmdtab2, sizeof(Command));
2370 command(int top, const char *tbuf, int cnt)
2372 Command *c;
2415 printf("?Ambiguous command\n");
2419 printf("?Invalid command\n");
2441 * Help command.
2446 Command *c;
2462 printf("?Ambiguous help command %s\n", arg);
2463 else if (c == (Command *)0)
2464 printf("?Invalid help command %s\n", arg);
2477 Command *c;
2536 printf("?Ambiguous command: %s\n", margv[0]);
2540 printf("?Invalid command: %s\n", margv[0]);