📄 ckuus2.c
字号:
"unless LANGUAGE is set to RUSSIAN, in which case it uses Latin-Cyrillic.","Synonym: XLATE. Example:\n","TRANSLATE lasagna.lat latin1 italian lasagna.nrc","" };#endif /* NOCSETS */#ifndef NOSPLstatic char *hxxwai[] = {"Syntax: WAIT number [modem-signal(s)]","Example: WAIT 5 \\cd\\cts\n","Waits up to the given number of seconds for all of the specified signals.","Sets FAILURE if signals do not appear in given time or if interrupted by","typing anything at the keyboard during the waiting period.\n","Signals: \\cd = Carrier Detect, \\dsr = Dataset Ready, \\cts = Clear To Send","Warning: This command does not work yet, signals are ignored.", "" };#endif /* NOSPL */static char *hxxwri[] = {"Syntax: WRITE name text\n","Writes the given text to the named log or file. The text text may include","backslash codes, and is not terminated by a newline unless you include the","appropriate code. The name parameter can be any of the following:\n"," DEBUG-LOG"," ERROR (standard error)",#ifndef NOSPL" FILE (the OPEN WRITE, OPEN !WRITE, or OPEN APPEND file, see HELP OPEN)",#endif /* NOSPL */" PACKET-LOG"," SCREEN (compare with ECHO)"," SESSION-LOG"," TRANSACTION-LOG", "" };#ifndef NODIALstatic char *hxxdial[] = { "Syntax: DIAL phonenumber","Example: DIAL 7654321\n","Dial a number using an autodial modem. First you must SET MODEM, then","SET LINE, then SET SPEED. Then give the DIAL command, including the phone","number, for example:\n"," DIAL 7654321\n",#ifdef NETCONN"If the modem is on a network modem server, SET HOST first, then SET MODEM,","then DIAL. See also SET DIAL, SET MODEM, SET LINE, SET HOST, SET SPEED,","and REDIAL.\n",#else"See also SET DIAL, SET MODEM, SET LINE, SET SPEED, REDIAL.\n",#endif /* NETCONN */"The 'phonenumber' can also the name of an entry from your dialing directory,","which is a plain text file, one entry per line:\n"," name phonenumber speed parity comments\n","for example:\n"," e-mail 765-4321 2400 even My electronic mailbox\n","The fields are separated by spaces, and all fields after the 'phonenumber'","are optional. If the speed or parity are present, they replace your current","SET SPEED and SET PARITY settings. Specify your dialing directory file with","the SET DIAL DIRECTORY command.", "" };#endif /* NODIAL */#endif /* NOHELP *//* D O H L P -- Give a help message */ _PROTOTYP( int dohset, (int) );intdohlp(xx) int xx; { int x,y; debug(F101,"DOHELP xx","",xx); if (xx < 0) return(xx); switch (xx) { #ifdef NOHELPcase XXHLP: if ((x = cmcfm()) < 0) return(x); printf("%s, Copyright (C) 1985, 1992,",versio); return(hmsga(tophlp));#else /* help is available */#ifndef NOSPLcase XXASS: /* assign */ return(hmsga(hxxass));case XXASK: /* ask */ return(hmsga(hxxask));case XXASKQ: return(hmsga(hxxaskq));#endif /* NOSPL */#ifndef NOFRILLScase XXBUG: return(hmsg("Describe how to report C-Kermit bugs."));#endif /* NOFRILLS */case XXBYE: /* bye */ return(hmsg(hmxxbye)); case XXCHK: /* check */ return(hmsg("\Syntax: CHECK name\n\Check to see if the named feature is included in this version of C-Kermit.\n\To list the features you can check, type \"check ?\"."));#ifndef NOFRILLScase XXCLE: /* clear */ return(hmsg("\Syntax: CLEAR\n\Clear the serial port input buffer."));#endif /* NOFRILLS */case XXCLO: /* close */ return(hmsga(hmxxclo)); case XXCOM: /* comment */ return(hmsg("\Syntax: COMMENT text\n\Example: COMMENT - this is a comment.\n\n\Introduce a comment. Beginning of command line only. Commands may also\n\have trailing comments, introduced by ; (semicolon)."));case XXCON: /* connect */ hmsg(hmxxcon); printf("Your escape character is Ctrl-%c (ASCII %d, %s)\r\n", ctl(escape), escape, (escape == 127 ? "DEL" : ccntab[escape])); return(0); case XXCWD: /* cd / cwd */#ifdef vms return(hmsg("Syntax: CD [ directory or device:directory ]\n\Change Working Directory, equivalent to VMS SET DEFAULT command"));#else#ifdef datageneral return(hmsg("Change Working Directory, equivalent to DG 'dir' command"));#else#ifdef OS2 return(hmsg("Change Working Directory, equivalent to OS/2 'chdir' command"));#else return(hmsg("Syntax: CD [ directoryname ]\n\n\Change Working Directory, equivalent to UNIX cd command."));#endif /* OS2 */#endif /* datageneral */#endif /* vms */ #ifndef NOSPLcase XXDCL: return(hmsg("Syntax: DECLARE arrayname[size]\n\Example: DECLARE \\&a[20]\n\n\Declares an array of the given size. Array elements can be used just like\n\any other variables."));case XXDEF: /* define */ return(hmsga(hxxdef));#endif /* NOSPL */#ifndef NOFRILLScase XXDEL: /* delete */ return(hmsg("Syntax: DELETE filespec\n\n\Delete a local file or files. RM is a synonym for DELETE."));#endif /* NOFRILLS */ #ifndef NODIALcase XXDIAL: /* dial */ return(hmsga(hxxdial));#endif case XXDIR: /* directory */ return(hmsg("Syntax: DIRECTORY [ filespec ]\n\Display a directory listing of local files.")); #ifndef NOSERVER#ifndef NOFRILLScase XXDIS: return(hmsg("Syntax: DISABLE command\n\n\Security for the C-Kermit server. Prevent the client Kermit program from\n\executing the named REMOTE command, such as CD, DELETE, RECEIVE, etc."));#endif /* NOFRILLS */#endif /* NOSERVER */#ifndef NOSPLcase XXDO: /* do */ return(hmsg("Syntax: [ DO ] macroname [ arguments ]\n\n\Execute a macro that was defined by the DEFINE command. The word DO\n\can be omitted. Trailing argument words, if any, are automatically\n\assigned to the macro argument variables \\%1, \\%2, etc."));#endif /* NOSPL */#ifndef NOSPLcase XXDEC: return(hmsga(hxxdec));#endif /* NOSPL */case XXECH: /* echo */ return(hmsg("Syntax: ECHO text\n\Display the text on the screen, followed by a newline. The ECHO text may\n\contain backslash codes. Example: ECHO \\7Wake up!\\7")); #ifndef NOSERVER#ifndef NOFRILLScase XXENA: return(hmsg("Syntax: ENABLE capability\n\n\For use with server mode. Allow the client Kermit program access to the\n\named capability, such as CD, DELETE, RECEIVE, etc. Opposite of DISABLE."));#endif /* NOFRILLS */#endif /* NOSERVER */#ifndef NOSPLcase XXEND: /* end */ return(hmsg("Syntax: END [ number [ message ] ]\n\Exit from the current macro or TAKE file, back to wherever invoked from.\n\Number is return code. Message, if given, is printed."));#endif /* NOSPL */#ifndef NOFRILLScase XXERR: /* error */ return(hmsg("Syntax: ERROR\n\Send an Error packet to the other Kermit to get it out of packet mode."));#endif /* NOFRILLS */case XXEXI: /* exit */case XXQUI: return(hmsg("Syntax: QUIT (or EXIT)\n\Exit from the Kermit program, closing all open files and devices.")); case XXFIN: return(hmsg("Syntax: FINISH\n\Tell the remote Kermit server to shut down without logging out.")); #ifndef NOSPLcase XXFOR: return(hmsga(forhlp));#endif /* NOSPL */case XXGET: return(hmsg(hmxxget)); #ifndef NOSPL#ifndef NOFRILLS case XXGOK: return(hmsg("Syntax: GETOK prompt\n\Print the prompt, make user type 'yes', 'no', or 'ok', and set SUCCESS or\n\FAILURE accordingly."));#endif /* NOFRILLS */#endif /* NOSPL */#ifndef NOSPLcase XXGOTO: return(hmsg("Syntax: GOTO label\n\In a TAKE file or macro, go to the given label. A label is a word on the\n\left margin that starts with a colon (:). Example:\n\n\:oofa\n\echo Hello!\n\goto oofa"));#endif /* NOSPL */case XXHAN: return(hmsg("Syntax: HANGUP\n\Hang up the phone or network connection.")); case XXHLP:/* We get confirmation here, even though we do it again in hmsga(), to prevent the Copyright message from being printed prematurely. This doesn't do any harm, because the first call to cmcfm() sets cmflgs to 1, making the second call return immediately.*/ if ((x = cmcfm()) < 0) return(x); printf("%s, Copyright (C) 1985, 1992,",versio); return(hmsga(tophlp));case XXINT: return(hmsg("Give a brief introduction to C-Kermit.")); #ifndef NOSPLcase XXIF: return(hmsga(ifhlp));case XXINC: return(hmsga(hxxinc));case XXINP: return(hmsg("\Syntax: INPUT n [ text ]\n\Example: INPUT 5 Login:\n\n\Wait up to n seconds for the given text to arrive on the communication line.\n\If no text, waits for any character. For use in script programs with\n\IF FAILURE and IF SUCCESS. Also see SET INPUT."));#endif /* NOSPL */#ifndef NODIALcase XXRED: return(hmsg("Redial the number given in the most recent DIAL commnd."));#endif /* NODIAL */#ifndef NOSPLcase XXREI: return(hmsg("Syntax: REINPUT n string\n\n\Look for the string in the text that has recently been INPUT, set SUCCESS\n\or FAILURE accordingly. Timeout, n, must be specified but is ignored."));#endif /* NOSPL */#ifndef NOFRILLScase XXREN: return(hmsg("Syntax: RENAME oldname newname\n\n\Change the name of file 'oldname' to 'newname'."));#endif /* NOFRILLS */#ifndef NOSPLcase XXLBL: return(hmsg("\Introduce a label, like :loop, for use with GOTO in TAKE files or macros.\n\See GOTO."));#endif /* NOSPL */case XXLOG: return(hmsga(hmxxlg)); #ifndef NOSCRIPTcase XXLOGI: return(hmsga(hmxxlogi));#endif #ifndef NOFRILLScase XXMAI: return(hmsg("Syntax: MAIL filename address\n\n\Send the file to the remote Kermit, which must be in RECEIVE or SERVER mode,\n\and request that the remote host deliver the file as electronic mail to the\n\given address. Example: MAIL BUG.TXT KERMIT@CUVMA"));#endif /* NOFRILLS */#ifndef NOMSENDcase XXMSE: return(hmsg(hmssmse));#endif /* NOMSEND */#ifndef NOSPLcase XXOPE: return(hmsga(openhlp));#endif /* NOSPL */#ifndef NOSPLcase XXOUT: return(hmsg("Syntax: OUTPUT text\n\n\Send the text out the currently selected line, as if you had typed it\n\during CONNECT mode. The text may contain backslash codes. Example:\n\n\ OUTPUT help\\13"));#endif /* NOSPL */#ifdef SUNX25case XXPAD: return(hmsga(hxxpad));#endif /* SUNX25 */#ifndef NOSPLcase XXPAU: return(hmsga(hxxpau));case XXMSL: return(hmsga(hxxmsl));#endif /* NOSPL */#ifdef TCPSOCKETcase XXPNG: return(hmsg("Syntax: PING [ IP-hostname-or-number ]\n\n\Check if given IP network host is reachable. Default host from most\n\recent SET HOST or TELNET command. Runs system PING program, if any."));#endif /* TCPSOCKET */#ifndef NOFRILLScase XXPRI: return(hmsg("Syntax: PRINT file [ options ]\n\n\Print the local file on a local printer with the given options."));#endif /* NOFRILLS */case XXPWD: return(hmsg("Syntax: PWD\n\Print the name of the current working directory."));#ifndef NOSPLcase XXREA: return(hmsg("Syntax: READ variablename\n\Read a line from the currently open READ or !READ file into the variable\n\
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -