📄 ckuus2.c
字号:
#ifdef MAC"spaces. If text omitted, prompt reverts to C-Kermit>.",#else"spaces. If text omitted, prompt reverts to Mac-Kermit>.",#endif /* MAC */"" };static char *hxywind[] = {"Syntax: SET WINDOW-SIZE number\n","Specify number of window slots for sliding windows, the number of packets","that can be transmitted before pausing for acknowledgement. The default","is one, the maximum is 31. Increased window size may result in reduced","maximum packet length. Use sliding windows for improved efficiency on","connections with long delays. A full duplex connection is required.","" };static char *hxyrcv[] = { "Syntax: SET RECEIVE parameter value\n","Specify parameters for inbound packets:\n","END-OF-PACKET number"," ASCII value of control character that terminates incoming packets,"," normally 13 (carriage return).\n","PACKET-LENGTH number"," Maximum length packet the other Kermit should send.\n","PADDING number"," Number of prepacket padding characters to ask for (normally 0).\n","PAD-CHARACTER number"," ASCII value of control character to use for padding (normally 0).\n","START-OF-PACKET number"," ASCII value of character that marks start of inbound packet.\n","TIMEOUT number"," Number of seconds other Kermit should wait for a packet before sending"," NAK or retransmitting.","" };static char *hxysnd[] = {"Syntax: SET SEND parameter value\n","Specify parameters for outbound packets. This command should be used only","to override the normal negotiated parameters and is rarely needed:\n","END-OF-PACKET number"," ASCII value of control character to terminate an outbound packet,"," normally 13 (carriage return).\n","PACKET-LENGTH number"," Maximum length packet to send, even if other Kermit asks for longer ones.\n","PADDING number"," Number of prepacket padding characters to send.\n","PAD-CHARACTER number"," ASCII value of control character to use for padding.\n","START-OF-PACKET number"," ASCII value of character to mark start of outbound packet.\n","TIMEOUT number"," Number of seconds to wait for a packet before sending NAK or"," retransmitting.","" };static char *hxyxfer[] = {"Syntax: SET TRANSFER LOCKING-SHIFT { OFF, ON, FORCED }\n","Tell whether locking-shift protocol should be used during file transfer","to achieve 8-bit transparency on a 7-bit connection. ON means to request","its use if PARITY is not NONE and to use it if the other Kermit agrees,","OFF means not to use it, FORCED means to use it even if the other Kermit","does not agree.",#ifndef NOCSETS"\nSyntax: SET TRANSFER CHARACTER-SET name\n","Select the character set used to represent textual data in Kermit packets.","Text characters are translated to/from the FILE CHARACTER-SET.","The choices are TRANSPARENT (no translation, the default), ASCII,","LATIN1 (ISO Latin Alphabet 1), LATIN2 (ISO Latin Alphabet 2),",#ifdef CYRILLIC#ifdef KANJI"CYRILLIC-ISO (ISO Latin/Cyrillic),","and JAPANESE-EUC.",#else"and CYRILLIC-ISO (ISO Latin/Cyrillic).",#endif /* KANJI */#else /* No CYRILLIC */#ifdef KANJI"and JAPANESE-EUC.",#endif /* KANJI */#endif /* CYRILLIC */"Synonym: SET XFER CHARACTER-SET.", #endif /* NOCSETS */"" };/* D O H S E T -- Give help for SET command */ intdohset(xx) int xx; { int x; if (xx == -3) return(hmsga(hmhset)); if (xx < 0) return(xx); if ((x = cmcfm()) < 0) return(x); switch (xx) { case XYATTR: return(hmsga(hsetat));case XYBACK: return(hmsga(hsetbkg));#ifdef DYNAMICcase XYBUF: return(hmsga(hsetbuf));#endif /* DYNAMIC */case XYCARR: return(hmsga(hsetcar));#ifndef NOSPLcase XYCASE: return(hmsg("Syntax: SET CASE { ON, OFF }\n\Tells whether alphabetic case is significant in string comparisons\n\done by INPUT, IF, and other commands."));#endif /* NOSPL */case XYCMD: return(hmsga(hsetcmd));case XYIFD: return(hmsg("Syntax: SET INCOMPLETE { DISCARD, KEEP }\n\Discard or Keep incompletely received files, default is DISCARD."));#ifndef NOSPLcase XYINPU: return(hmsga(hxxinp));#endif /* NOSPL */case XYCHKT: return(hmsga(hmxychkt)); #ifndef NOSPLcase XYCOUN: return(hmsg("Syntax: SET COUNT number\n\Example: SET COUNT 5\n\Set up a loop counter, for use with IF COUNT."));#endif /* NOSPL */case XYDEBU:#ifdef DEBUG return(hmsg("Syntax: SET DEBUG { SESSION, ON, OFF }\n\SESSION means display control and 8-bit characters symbolically during\n\CONNECT mode. ON means log debugging information to file debug.log."));#else return(hmsg("Syntax: SET DEBUG { SESSION, OFF }\n\SESSION means display control and 8-bit characters symbolically during\n\CONNECT mode."));#endif /* DEBUG */case XYDFLT: return(hmsg("Syntax: SET DEFAULT directory\n\Change directory. Equivalent to CD command."));case XYDELA: return(hmsg("Syntax: SET DELAY number\n\Number of seconds to wait before sending first packet after SEND command.")); #ifndef NODIALcase XYDIAL: return(hmsga(hmxydial));#endif /* NODIAL */#ifdef UNIXcase XYSUSP: return(hmsg("Syntax: SET SUSPEND { OFF, ON }\n\n\Disables SUSPEND command, suspend signals, and <esc-char>Z during CONNECT."));#endif#ifndef NOSCRIPTcase XYSCRI: return(hmsg("Syntax: SET SCRIPT ECHO { OFF, ON }\n\n\Disables/Enables echoing of SCRIPT command operation."));#endif /* NOSCRIPT */case XYTAKE: return(hmsga(hxytak));case XYTERM: return(hmsga(hxyterm));case XYDUPL: return(hmsg("Syntax: SET DUPLEX { FULL, HALF }\n\n\During CONNECT: FULL means remote host echoes, HALF means C-Kermit\n\does its own echoing.")); case XYESC: return(hmsg("Syntax: SET ESCAPE number\n\n\Decimal ASCII value for escape character during CONNECT, normally 28\n\(Control-\\). Type the escape character followed by C to get back to the\n\C-Kermit prompt.")); case XYFILE: return(hmsga(hmxyf)); case XYFLOW: return(hmsga(hmxyflo)); case XYHAND: return(hmsga(hmxyhsh));#ifdef NETCONNcase XYHOST:return(hmsga(hxyhost));case XYNET:return(hmsga(hxynet));#ifdef SUNX25case XYX25: return(hmsga(hxyx25));case XYPAD: return(hmsg("Syntax: SET PAD name value\n\Set a PAD X.3 parameter with a desired value."));#endif /* SUNX25 */ #endif /* NETCONN */#ifndef NOSETKEYcase XYKEY: /* SET KEY */ return(hmsga(hmhskey));#endif /* NOSETKEY */#ifndef NOCSETScase XYLANG: return(hmsg("Syntax: SET LANGUAGE name\n\Selects language-specific translation rules for text-mode file transfers.\n\Used with SET FILE CHARACTER-SET and SET TRANSFER CHARACTER-SET when one\n\of these is ASCII."));#endif /* NOCSETS */case XYLINE: printf("\nSyntax: SET LINE devicename\n\n\Select communication device to use. Normally %s.\n",dftty); if (!dfloc) { printf("\If you SET LINE to other than %s, then Kermit\n",dftty); printf("\will be in 'local' mode; SET LINE alone will reset Kermit to remote mode.\n\To use the modem to dial out, first SET MODEM-DIALER (e.g., to HAYES), then");puts("\nSET LINE xxx, next issue the DIAL command, and finally CONNECT.\n"); } return(0); #ifndef NOSPLcase XYMACR: return(hmsga(hxymacr));#endif /* NOSPL */#ifndef NODIALcase XYMODM: return(hmsga(hxymodm));#endif /* NODIAL */ case XYPARI: return(hmsg("Syntax: SET PARITY name\n\n\Parity to use during terminal connection and file transfer: EVEN, ODD, MARK,\n\SPACE, or NONE. Normally NONE.")); case XYPROM: return(hmsga(hmxyprm)); case XYQUIE: return(hmsg("Syntax: SET QUIET {ON, OFF}\n\n\Normally OFF. ON disables most information messages during interactive\n\operation."));case XYRETR: return(hmsg("Syntax: SET RETRY number\n\n\How many times to retransmit a particular packet before giving up."));#ifdef UNIXcase XYSESS: return(hmsg("Syntax: SET SESSION-LOG { BINARY, TEXT }\n\n\If BINARY, record all CONNECT characters in session log. If TEXT, strip\n\out carriage returns."));#endif /* UNIX */case XYSPEE: return(hmsg("Syntax: SET SPEED number\n\n\Communication line speed for external tty line specified in most recent\n\SET LINE command, in bits per second. Type SET SPEED ? for a list of\n\possible speeds."));case XYRECV: return(hmsga(hxyrcv));case XYSEND: return(hmsga(hxysnd));#ifndef NOSERVERcase XYSERV: return(hmsga(hsetsrv));#endif /* NOSERVER */#ifdef TNCODEcase XYTEL: return(hmsga(hxytel));#endif /* TNCODE */#ifndef NOXMITcase XYXMIT: return(hmsga(hsetxmit));#endif /* NOXMIT */#ifndef NOCSETScase XYUNCS: return(hmsg("Syntax: SET UNKNOWN-CHAR-SET action\n\n\DISCARD (default) means reject any arriving files encoded in unknown\n\character sets. KEEP means to accept them anyway."));#endif /* NOCSETS */#ifdef UNIXcase XYWILD: return(hmsg("Syntax: SET WILDCARD-EXPANSION { KERMIT, SHELL }\n\n\KERMIT (the default) means C-Kermit expands filename wildcards in SEND\n\and MSEND commands and incoming GET commands. SHELL means your shell does \it."));#endif /* UNIX */case XYWIND: return(hmsga(hxywind));case XYXFER: return(hmsga(hxyxfer));default: printf("Not available yet - %s\n",cmdbuf); return(0); }} /* D O H R M T -- Give help about REMOTE command */ static char *hrset[] = {"Syntax: REMOTE SET parameter value","Example: REMOTE SET FILE TYPE BINARY\n","Ask the remote Kermit server to set the named parameter to the given value.","Equivalent to typing the corresponding SET command directly to the other","Kermit if it were in interactive mode.", "" };intdohrmt(xx) int xx; { int x; if (xx == -3) return(hmsga(hmhrmt)); if (xx < 0) return(xx); if ((x = cmcfm()) < 0) return(x); switch (xx) { case XZCWD: return(hmsg("Syntax: REMOTE CD [ name ]\n\n\Ask remote Kermit server to change its working directory or device.\n\If the device or directory name is omitted, restore the default.")); case XZDEL: return(hmsg("Syntax: REMOTE DELETE filespec\n\n\Ask the remote Kermit server to delete the named file(s).")); case XZDIR: return(hmsg("Syntax: REMOTE DIRECTORY [ filespec ]\n\n\Ask the remote Kermit server to provide a directory listing of the named\n\file(s) or if no file specification is given, of all files in the current\n\directory.")); case XZHLP: return(hmsg("Syntax: REMOTE HELP\n\n\Ask the remote Kermit server to list the services it provides.")); case XZHOS: return(hmsg("Syntax: REMOTE HOST command\n\n\Send a command to the remote host computer in its own command language\n\through the remote Kermit server.")); #ifndef NOFRILLScase XZKER: return(hmsg("Syntax: REMOTE KERMIT command\n\n\Send a command to the remote Kermit server in its own command language."));case XZLGI: return(hmsg("Syntax: REMOTE LOGIN user password [ account ]\n\n\Log in to a remote Kermit server that requires you login."));case XZLGO: return(hmsg("Syntax: REMOTE LOGOUT\n\n\Lo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -