📄 ckuus2.c
字号:
"it is treated specially. In some environments (OS/2, for example)","that single character may be wider than 8 bits, if specified in","backslash notation. In this case, a scan code mapping takes place,","i.e. key k takes over the function of the key whose scan code is","assigned to k. This may even be a controlling key for the CONNECT","mode. If 'text' is empty, the default key binding is restored for","the key k. SET KEY mappings take place before terminal character-set","translation.",""};#endif /* NOSETKEY */static char *hmxychkt[] = { "Syntax: SET BLOCK-CHECK type\n","Type of packet block check to be used for error detection, 1, 2, 3, or","BLANK-FREE-2. Type 1 is standard, and catches most errors. Types 2 and 3","specify more rigorous checking at the cost of higher overhead. The","BLANK-FREE-2 type is the same as Type 2, but is guaranteed to contain no","blanks.","" } ; #ifndef NODIALstatic char *hmxydial[] = {"SET DIAL DIAL-COMMAND [ text ]","The 'text' replaces C-Kermit's built-in modem dialing command. It must","include '%s' (percent s) as a place-holder for the telephone numbers","given in your DIAL commands. If the 'text' is omitted, C-Kermit uses its","built-in modem-specific dialing command.\n","SET DIAL DIRECTORY filename","Name of dialing directory file. Type HELP DIAL for further info.\n","SET DIAL DISPLAY {ON, OFF}","Whether to display dialing progress on the screen.\n","SET DIAL HANGUP {ON, OFF}","Whether the DIAL command should hang up the phone before dialing.\n","SET DIAL INIT-STRING [ text ]","The 'text' is a replacement for C-Kermit's built-in initialization command","for the modem. If 'text' omitted, use built-in initialization command.\n","SET DIAL KERMIT-SPOOF {ON, OFF}","If the selected modem type supports the Kermit protocol directly,","use this command to turn its Kermit protocol function on or off.\n","SET DIAL MODEM-HANGUP {ON, OFF}","Governs how the HANGUP, <esc>H, and similar operations work when you have","a dialed connection (in local mode, and a specific modem type is set).","ON means to use modem commands to hang up the phone, e.g. ATH0.","OFF means to hang up by attempting to turn off the DTR signal.","ON is not necessarily supported for all modem types.\n","SET DIAL MNP-ENABLE {ON, OFF}","Enable or disable MNP negotiation by the modem.\n","SET DIAL PREFIX [ text ]","Establish a prefix to be applied to the phone numbers given in the DIAL","command or read from the dialing directory.\n","SET DIAL SPEED-MATCHING {ON, OFF}","ON (the default) means that C-Kermit changes its serial interface speed to","agree with the speed reported by the modem's CONNECT message, if any. OFF","means that C-Kermit should not change its interface speed.\n","SET DIAL TIMEOUT number","How many seconds to wait for a dialed call to complete. Use this command","to override the DIAL command's automatic timeout calculation. A value","of 0 turns off this feature and returns to Kermit's automatic dial","timeout calculation.\n","Also see DIAL and SET MODEM. Use SHOW DIAL to display dial-related","settings.\n","" } ;#endif /* NODIAL */static char *hmxyflo[] = { "Syntax: SET FLOW value\n","Type of flow control to use during file transfer and CONNECT mode.","Choices: KEEP (don't change device's current setting), XON/XOFF (software","flow control, the default), NONE (no flow control at all), and possibly","others including RTS/CTS (hardware) depending on the capabilities of your","system. Type SET FLOW ? for a list.",""};static char *hmxyf[] = { "Syntax: SET FILE parameter value","Parameters:\n","TYPE: How file contents are to be treated during file transfer.","TYPE is normally TEXT, with conversion of record format and character set.","BINARY means to do no conversion. Use BINARY for executable programs or","binary data. Example: SET FILE TYPE BINARY.\n",#ifdef VMS"For VAX/VMS, you may include an optional record-format after the word","BINARY. This may be FIXED (the default) or UNDEFINED.","Two additional VMS file types are also supported: IMAGE and LABELED. IMAGE","means raw block i/o, no interference from RMS, and applies to file transmis-","sion only. LABELED means to send or interpret RMS attributes with the file.","\n",#endif /* VMS */"BYTESIZE { 7, 8 }: normally 8. If 7, truncate the 8th bit of all file \bytes.\n",#ifndef NOCSETS"CHARACTER-SET: tells the encoding of the local file, ASCII by default.","The names ITALIAN, PORTUGUESE, NORWEGIAN, etc, refer to 7-bit ISO-646","national character sets. LATIN1 is the 8-bit ISO 8859-1 Latin Alphabet 1","for Western European languages.","NEXT is the 8-bit character set of the NeXT workstation.","The CPnnn sets are for IBM PCs. MACINTOSH-LATIN is for the Macintosh.",#ifndef NOLATIN2"LATIN2 is ISO 8859-2 for Eastern European languages that are written with","Roman letters.",#endif /* NOLATIN2 */#ifdef CYRILLIC"KOI-CYRILLIC, CYRILLIC-ISO, and CP866 are 8-bit Cyrillic character sets.","SHORT-KOI is a 7-bit ASCII coding for Cyrillic.",#endif /* CYRILLIC */#ifdef KANJI"JAPANESE-EUC, JIS7-KANJI, DEC-KANJI, and SHIFT-JIS-KANJI are Japanese","Kanji character sets.",#endif /* KANJI */"Type SET FILE CHAR ? for a complete list of file character sets.\n",#endif /* NOCSETS */"INCOMPLETE - what to do with an incompletely received file: DISCARD","(default), or KEEP.\n","NAMES are normally CONVERTED to 'common form' during transmission; LITERAL","means use filenames literally (useful between like systems).\n","COLLISION tells what to do when a file arrives that has the same name as","an existing file. The options are:"," BACKUP (default) - Rename the old file to a new, unique name and store"," the incoming file under the name it was sent with."," OVERWRITE - Overwrite (replace) the existing file."," APPEND - Append the incoming file to the end of the existing file."," DISCARD - Refuse and/or discard the incoming file."," RENAME - Give the incoming file a unique name."," UPDATE - Accept the incoming file only if it is newer than the existing"," file.","Example: SET FILE COLLISION UPDATE\n",#ifdef VMS"RECORD-LENGTH sets the record length for received files of type BINARY. Use","this to receive VMS BACKUP savesets or other fixed-format files. The default","of 512 is suitable for executable (.EXE) files, etc.\n","Example: SET FILE REC 8192\n",#endif /* VMS */"SET FILE DISPLAY selects the format of the file transfer display for","local-mode file transfer. The choices are:"," SERIAL (the default). One dot is printed for every K bytes transferred."," This format works on any kind of terminal, even a hardcopy."," CRT. Numbers are continuously updated on a single screen line. This"," format can be used on any video display terminal.",#ifdef CK_CURSES" FULLSCREEN. A fully formatted 24x80 screen showing lots of information."," This requires a video display terminal whose control sequences are"," understood by Kermit.",#endif /* CK_CURSES */" NONE. No file transfer display at all.\n","WARNING. SET FILE WARNING is superseded by the newer command, SET FILE","COLLISION. SET FILE WARNING ON is equivalent to SET FILE COLLISION RENAME","and SET FILE WARNING OFF is equivalent to SET FILE COLLISION OVERWRITE.\n","" }; static char *hmxyhsh[] = { "Syntax: SET HANDSHAKE value\n","Character to use for half duplex line turnaround handshake during file","transfer. C-Kermit waits for this character from the other computer before","sending its next packet. Default is NONE, others are XON, LF, BELL, ESC,","etc. SET HANDSHAKE CODE <n> lets you specify the numeric ASCII value of the","handshake character. Type SET HANDSH ? for a list.","" };#ifndef NOSERVERstatic char *hsetsrv[] = {"\SET SERVER DISPLAY {ON,OFF}","Tell whether local-mode C-Kermit during server operation should put a","file transfer display on the screen. Default is OFF.\n","SET SERVER TIMEOUT n","Server command wait timeout interval, how often the C-Kermit server issues","a NAK while waiting for a command packet. Specify 0 for no NAKs at all.","Default is 0.","" };#endif /* NOSERVER */static char *hmhrmt[] = { "\The REMOTE command is used to send file management instructions to a","remote Kermit server. There should already be a Kermit running in server","mode on the other end of the currently selected line. Type REMOTE ? to","see a list of available remote commands. Type HELP REMOTE x to get","further information about a particular remote command 'x'.","" } ;#ifndef NOSPLstatic char *ifhlp[] = { "Syntax: IF [NOT] condition command\n","If the condition is (is not) true, do the command. Only one command may","be given, and it must appear on the same line as the IF. Conditions are:\n"," SUCCESS - the previous command succeeded"," FAILURE - the previous command failed"," BACKGROUND - C-Kermit is running in the background"," FOREGROUND - C-Kermit is running in the foreground\n"," DEFINED variablename or macroname - The named variable or macro is defined"," NUMERIC variable or constant - The variable or constant is numeric"," EXIST filename - The named file exists\n"," COUNT - subtract one from COUNT, execute the command if the result is"," greater than zero (see SET COUNT)\n"," EQUAL s1 s2 - s1 and s2 (character strings or variables) are equal"," LLT s1 s2 - s1 is lexically (alphabetically) less than s2"," LGT s1 s1 - s1 is lexically (alphabetically) greater than s2\n"," = n1 n1 - n1 and n2 (numbers or variables containing numbers) are equal"," < n1 n2 - n1 is arithmetically less than n2"," > n1 n2 - n1 is arithmetically greater than n2\n","The IF command may be followed on the next line by an ELSE command. Example:"," IF < \\%x 10 ECHO It's less"," ELSE echo It's not less\n","See also XIF.","" };#endif /* NOSPL */#ifndef NOSPLstatic char *ifxhlp[] = { "\Syntax: XIF condition { commandlist } [ ELSE { commandlist } ]\n","Extended IF command. The conditions are the same as for IF (type HELP IF)","but multiple comma-separated commands may be grouped within braces in both", "the IF and ELSE parts. The ELSE part, if any, must be on the same line as","the XIF (or use dash for line continuation). Example:\n"," XIF equal \\%a YES { echo OK, goto begin } ELSE { echo Not OK, stop }","" };#endif /* NOSPL */#ifndef NOSPLstatic char *forhlp[] = { "\Syntax: FOR variablename initial-value final-value increment { commandlist }","\nFOR loop. Execute the comma-separated commands in the commandlist the","number of times given by the initial value, final value and increment.","Example: FOR \\%i 10 1 -1 { pause 1, echo \\%i }", "" };static char *whihlp[] = { "\Syntax: WHILE condition { commandlist }","\nWHILE loop. Execute the comma-separated commands in the commandlist while","the condition is true. Conditions are the same as for IF commands.", "" };#endif /* NOSPL */#ifndef NOSPLstatic char *openhlp[] = {"Syntax: OPEN mode filename\n","For use with READ and WRITE commands. Open the local file in the specified","mode: READ, WRITE, or APPEND. !READ and !WRITE mean to read from or write","to a system command rather than a file. Examples:\n"," OPEN READ oofa.txt"," OPEN !READ sort foo.bar","" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxaskq[] = {"Syntax: ASKQ variablename prompt","Example: ASKQ %p { Password:}\n","Issues the prompt and defines the variable to be whatever you type in.","The characters that you type do not echo on the screen.","Use braces to preserve leading and/or trailing spaces in the prompt.","To include a question mark, precede it by backslash (\\).","" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxask[] = {"Syntax: ASK variablename prompt","Example: ASK %n { What is your name\\? }\n","Issues the prompt and defines the variable to be whatever you type in.","Use braces to preserve leading and/or trailing spaces in the prompt.","To include a question mark, precede it by backslash (\\).","" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxdef[] = {"Syntax: DEFINE name [ definition ]\n","Defines a macro or variable. Its value is the definition, taken literally.","No expansion or evaluation of the definition is done. Thus if the", "definition includes any variable or function references, their names are","included, rather than their values (compare with ASSIGN). If the definition","is omitted, then the named variable or macro is undefined.\n","A typical macro definition looks like this:\n"," DEFINE name command, command, command, ...\n","for example:\n"," DEFINE vax set parity even, set duplex full, set flow xon/xoff\n","which defines a Kermit command macro called 'vax'. The definition is a","comma-separated list of Kermit commands. Use the DO command to execute","the macro, or just type its name, followed optionally by arguments.\n","The definition of a variable can be anything at all, for example:\n"," DEFINE \\%a Monday"," DEFINE \\%b 3\n","These variables can be used almost anywhere, for example:\n"," ECHO Today is \\%a"," SET BLOCK-CHECK \\%b","" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxass[] = {"Syntax: ASSIGN variablename string.","Example: ASSIGN \\%a My name is \\%b.\n","Assigns the current value of the string to the variable (or macro).","The definition string is fully evaluated before it is assigned, so that","the values of any variables are contained are used, rather than their","names. Compare with DEFINE. To illustrate the difference, try this:\n"," DEFINE \\%a hello"," DEFINE \\%x \\%a"," ASSIGN \\%y \\%a"," DEFINE \\%a goodbye"," ECHO \\%x \\%y\n","This will print 'goodbye hello'.", "" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxdec[] = {"Syntax: DECREMENT variablename [ number ]\n","Decrement (subtract one from) the value of a variable if the current value","is numeric. If the number argument is given, subtract that number instead.","\nExamples: DECR \\%a, DECR \\%a 7, DECR \\%a \\%n", "" };#endif /* NOSPL */#ifndef NOSPLstatic char *hxxinc[] = {"Syntax: INCREMENT variablename [ number ]\n","Increment (add one to) the value of a variable if the current value is","numeric. If the number argument is given, add that number instead.\n","Examples: INCR \\%a, INCR \\%a 7, INCR \\%a \\%n", "" };#endif /* NOSPL */#ifdef SUNX25static char *hxxpad[] = {"Syntax: PAD command","X.25 PAD commands:\n"," PAD CLEAR - Clear the virtual call"," PAD STATUS - Return the status of virtual call"," PAD RESET - Send a reset packet"," PAD INTERRUPT - Send an interrupt packet",""};static char *hxyx25[] = {"Syntax: SET X.25 option { ON [ data ], OFF }\n","X.25 call options:"," CLOSED-USER-GROUP { ON index, OFF }"," Enable or disable closed user group call, where index is the group"," index, 0 to 99."," REVERSE-CHARGE { ON, OFF }"," Tell whether you want to reverse the charges for the call."," CALL-USER-DATA { ON string, OFF }"," Specify call user-data for the X.25 call.",""};#endif /* SUNX25 */static char *hxxpau[] = {"Syntax: PAUSE [ number ]","Example: PAUSE 3\n","Do nothing for the specified number of seconds; if no number given, one","second. If interrupted from the keyboard, set FAILURE, otherwise SUCCESS.","" };static char *hxxmsl[] = {"Syntax: MSLEEP [ number ]","Example: MSLEEP 500\n","Do nothing for the specified number of milliseconds; if no number given,","100 milliseconds.","" };#ifndef NOPUSHstatic char *hxxshe[] = {"Syntax: ! [ command ] or RUN [ command ] or PUSH [ command ]\n","Give a command to the local operating system's command processor, and","display the results on the screen.\n","If the command is omitted, enter interactive mode; return to Kermit","by exiting from the system's command parser. The command is usually","EXIT or QUIT or LOGOUT.", "" };#endif /* NOPUSH */#ifndef NOXMITstatic char *hxxxmit[] = {"Syntax: TRANSMIT file\n","The TRANSMIT command is used for sending single files to other computers","that don't have Kermit. Text files are sent a line at a time; binary files","are sent a character at a time. There is no guarantee that the other","computer will receive the file correctly and completely. Before you start","the TRANSMIT command, you must put the other computer in data collection","mode, for example by starting a text editor. TRANSMIT may be interrupted by","Ctrl-C. Synonym: XMIT.","" };#endif /* NOXMIT */#ifndef NOCSETSstatic char *hxxxla[] = {"Syntax: TRANSLATE file1 cs1 cs2 [ file2 ]\n","Translates file1 from the character set cs1 into the character set cs2","and stores the result in file2. The character sets can be any of","C-Kermit's file character sets. If file2 is omitted, the translation","is displayed on the screen. Uses Latin-1 as intermediate character set",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -