⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckuus2.c

📁 C-Kermit源码。是使用串口/Modem和网络通讯的程序
💻 C
📖 第 1 页 / 共 5 页
字号:
"\nFile-transfer speed selection:","  FAST          use fast settings -- THIS IS THE DEFAULT","  CAUTIOUS      use slower, more cautious settings","  ROBUST        use extremely slow and cautious settings","\nFile-transfer performance fine tuning:","  SET RECEIVE PACKET-LENGTH  Kermit packet size","  SET WINDOW                 number of sliding window slots","  SET PREFIXING              amount of control-character prefixing",#endif /* NOXFER */"\nImportant settings:","  SET PARITY    communications parity",#ifdef CK_RTSCTS"  SET FLOW      communications flow control, such as RTS/CTS",#else"  SET FLOW      communications flow control, such as XON/XOFF",#endif /* CK_RTSCTS */"  SET FILE      file settings, for example TYPE TEXT or TYPE BINARY",#ifndef NOLOCAL"\nTo make a direct serial connection:",#ifdef OS2#ifdef NT#ifdef CK_TAPI"  SET TAPI LINE select TAPI communication device",#endif /* CK_TAPI */"  SET PORT      select serial communication device",#else"  SET PORT      select serial communication port or server",#endif /* NT */#else"  SET LINE      select serial communication device",#endif /* OS2 */"  SET SPEED     select communication speed","  CONNECT       begin terminal connection",#ifndef NODIAL"\nTo dial out with a modem:","  SET DIAL DIRECTORY     specify dialing directory file (optional)","  SET DIAL COUNTRY-CODE  country you are dialing from (*)","  SET DIAL AREA-CODE     area-code you are dialing from (*)","  LOOKUP                 lookup entries in your dialing directory (*)","  SET MODEM TYPE         select modem type",#ifdef OS2#ifdef NT#ifdef CK_TAPI"  SET TAPI LINE select TAPI communication device",#endif /* CK_TAPI */"  SET PORT      select serial communication device",#else"  SET PORT      select serial communication port or server",#endif /* NT */#else"  SET LINE      select serial communication device",#endif /* OS2 */"  SET SPEED     select communication speed","  DIAL          dial the phone number","  CONNECT       begin terminal connection",#ifdef OS2"Further info:   HELP DIAL, HELP SET MODEM, HELP SET PORT, HELP SET DIAL",#else"Further info:   HELP DIAL, HELP SET MODEM, HELP SET LINE, HELP SET DIAL",#endif /* OS2 */"(*) (For use with optional dialing directory)",#endif /* NODIAL */#ifdef NETCONN"\nTo make a network connection:",#ifndef NODIAL"  SET NETWORK DIRECTORY  Specify a network services directory (optional)","  LOOKUP                 Lookup entries in your network directory",#endif /* NODIAL */"  SET NETWORK TYPE       Select network type (if more than one available)","  SET HOST               Make a network connection but stay in command mode","  CONNECT                Begin terminal connection",#ifdef TNCODE"  TELNET                 Select a TCP/IP host and CONNECT to it",#endif /* TNCODE */#ifdef RLOGCODE"  RLOGIN                 Select a TCP/IP host and RLOGIN to it",#endif /* RLOGCODE */#endif /* NETCONN */#ifdef NT"\nTo return from the terminal window to the K-95> prompt:",#else#ifdef OS2"\nTo return from the terminal window to the K/2> prompt:",#else"\nTo return from a terminal connection to the C-Kermit prompt:",#endif /* OS2 */#endif /* NT */#ifdef OS2"  \Press the key or key-combination shown after \"Prompt:\" in the status line","  (such as Alt-x) or type your escape character followed by the letter C.",#else"  Type your escape character followed by the letter C.",#endif /* OS2 */" ","To display your escape character:","  SHOW ESCAPE"," ","To display other settings:","  SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",#else  /* !NOLOCAL */" ","To display settings:","  SHOW COMMUNICATIONS, SHOW FILE, SHOW PROTOCOL, etc.",#endif /* NOLOCAL */" ","For further information about a particular command, type HELP xxx,","where xxx is the name of the command.  For documentation, news of new","releases, and information about other Kermit software, contact:"," ","  The Kermit Project         E-mail: kermit-orders@columbia.edu","  Columbia University        Web:    http://www.columbia.edu/kermit/","  612 West 115th Street      Voice:  +1 (212) 854-3703","  New York NY  10025-7799    Fax:    +1 (212) 663-8202","  USA",""};static char *hmxxscrn[] = {"Syntax: SCREEN { CLEAR, CLEOL, MOVE row column }",#ifdef OS2"  Performs screen-formatting actions.",#else"  Performs screen-formatting actions.  Correct operation of these commands","  depends on proper terminal setup on both ends of the connection -- mainly","  that the host terminal type is set to agree with the kind of terminal or","  the emulation you are viewing C-Kermit through.",#endif /* OS2 */" ","SCREEN CLEAR","  Moves the cursor to home position and clears the entire screen.",#ifdef OS2"  Synonyms: CLS, CLEAR SCREEN, CLEAR COMMAND-SCREEN ALL",#else"  Synonyms: CLS, CLEAR SCREEN.",#endif /* OS2 */" ","SCREEN CLEOL","  Clears from the current cursor position to the end of the line.",#ifdef OS2"  Synonym: CLEAR COMMAND-SCREEN EOL",#endif /* OS2 */" ","SCREEN MOVE row column","  Moves the cursor to the indicated row and column.  The row and column","  numbers are 1-based so on a 24x80 screen, the home position is 1 1 and","  the lower right corner is 24 80.  If a row or column number is given that","  too large for what Kermit or the operating system thinks is your screen","  size, the appropriate number is substituted."," ","Also see:",#ifdef OS2"  HELP FUNCTION SCRNCURX, HELP FUNCTION SCRNCURY, HELP FUNCTION SCRSTR,",#endif /* OS2 */"  SHOW VARIABLE TERMINAL, SHOW VARIABLE COLS, SHOW VAR ROWS, SHOW COMMAND.",""};#ifndef NOSPLstatic char *hxxinp[] = {"Syntax:  INPUT { number-of-seconds, time-of-day } [ text ]","Example: INPUT 5 Login:  or  INPUT 23:59:59 RING","  Waits up to the given number of seconds, or until the given time of day","  for the given text to arrive on the connection.  If no text is given,","  INPUT waits for any character.  For use in script programs with IF FAILURE","  and IF SUCCESS.  Also see MINPUT, REINPUT, SET INPUT.  See HELP PAUSE for","  details on time-of-day format.  The text, if given, can be a \\pattern()","  invocation, in which case it is treated as a regular expression rather than","  a literal string (HELP REGULAR-EXPRESSIONS for details).",""};static char *hxxout[] = {"Syntax: OUTPUT text\n","  Sends the text out the communications connection, as if you had typed it","  during CONNECT mode.  The text may contain backslash codes, variables,","  etc, plus the following special codes:"," ","    \\N - Send a NUL (ASCII 0) character (you can't use \\0 for this).","    \\B - Send a BREAK signal.","    \\L - Send a Long BREAK signal."," ","Also see SET OUTPUT.","" };#endif /* NOSPL */static char *hxypari[] = {"SET PARITY NONE","  Chooses 8 data bits and no parity."," ","SET PARITY { EVEN, ODD, MARK, SPACE }","  Chooses 7 data bits plus the indicated kind of parity.","  Forces 8th-bit prefixing during file transfer."," ",#ifdef HWPARITY"SET PARITY HARDWARE { EVEN, ODD }","  Chooses 8 data bits plus the indicated kind of parity."," ","Also see SET TERMINAL BYTESIZE, SET SERIAL, and SET STOP-BITS.",#else"Also see SET TERMINAL BYTESIZE and SET SERIAL.",#endif /* HWPARITY */""};#ifndef NOLOCALstatic char *hxyesc[] = {#ifdef OS2"Syntax: SET ESCAPE number","  Decimal ASCII value for escape character during CONNECT, normally 29","  (Control-]).  Type the escape character followed by C to get back to the","  C-Kermit prompt or followed by ? to see other options, or use the \\Kexit","  keyboard verb, normally assigned to Alt-x.",#else#ifdef NEXT"Syntax: SET ESCAPE number","  Decimal ASCII value for escape character during CONNECT, normally 29","  (Control-]).  Type the escape character followed by C to get back to the","  C-Kermit prompt or followed by ? to see other options.",#else"Syntax: SET ESCAPE number","  Decimal ASCII value for escape character during CONNECT, normally 28","  (Control-\\).  Type the escape character followed by C to get back to the","  C-Kermit prompt or followed by ? to see other options.",#endif /* NEXT */#endif /* OS2 */" ","You may also enter the escape character as ^X (circumflex followed by a","letter or one of: @, ^, _, [, \\, or ], to indicate a control character;","for example, SET ESC ^_ sets your escape character to Ctrl-Underscore.","" };#endif /* NOLOCAL */#ifndef NOSPLstatic char *hxyout[] = {"SET OUTPUT PACING <number>\n","  How many milliseconds to pause after sending each OUTPUT character,","  normally 0."," ","SET OUTPUT SPECIAL-ESCAPES { ON, OFF }\n","  Whether to process the special OUTPUT-only escapes \\B, \\L, and \\N.","  Normally ON (they are processed).","" };static char *hxyinp[] = {"Syntax: SET INPUT parameter value"," ",#ifdef CK_AUTODL"SET INPUT AUTODOWNLOAD { ON, OFF }","  Controls whether autodownloads are allowed during INPUT command execution."," ",#endif /* CK_AUTODL */"SET INPUT BUFFER-LENGTH number-of-bytes","  Removes the old INPUT buffer and creates a new one with the given length."," ","SET INPUT CANCELLATION { ON, OFF }","Whether an INPUT in progress can be can interrupted from the keyboard."," ","SET INPUT CASE { IGNORE, OBSERVE }","  Tells whether alphabetic case is to be significant in string comparisons.","  This setting is local to the current macro or command file, and is","  inherited by subordinate macros and take files."," ","SET INPUT ECHO { ON, OFF }","  Tells whether to display arriving characters read by INPUT on the screen."," ","SET INPUT SILENCE <number>","  The maximum number to seconds of silence (no input at all) before the","  INPUT command times out, 0 for no maximum."," ",#ifdef OS2"SET INPUT TERMINAL { ON, OFF }","  Determines whether the data received during an INPUT command is displayed","  in the terminal window.  Default is ON."," ",#endif /* OS2 */"SET INPUT TIMEOUT-ACTION { PROCEED, QUIT }","  Tells whether to proceed or quit from a script program if an INPUT command","  fails.  PROCEED (default) allows use of IF SUCCESS / IF FAILURE commands.","  This setting is local to the current macro or command file, and is","  inherited by subordinate macros and take files.","" };static char *hxyfunc[] = {"SET FUNCTION DIAGNOSTICS { ON, OFF }","  Whether to issue diagnostic messages for illegal function calls and","  references to nonexistent built-in variables.  ON by default."," ","SET FUNCTION ERROR { ON, OFF }","  Whether an illegal function call or reference to a nonexistent built-in","  variable should cause a command to fail.  OFF by default.","" };#endif /* NOSPL */static char *hxyxyz[] = {#ifdef CK_XYZ#ifdef XYZ_INTERNAL/* This is for built-in protocols */"Syntax: SET PROTOCOL { KERMIT, XMODEM, YMODEM, ZMODEM } [ s1 s2 [ s3 ] ]","  Selects protocol to use for transferring files.  String s1 is a command to","  send to the remote host prior to SENDing files with this protocol in","  binary mode; string s2 is the same thing but for text mode.  Use \"%\" in","  any of these strings to represent the filename(s).  If the protocol is","  KERMIT, you may also specify a string s3, the command to start a Kermit","  server on the remote host when you give a GET, REGET, REMOTE, or other","  client command.  Use { braces } if any command contains spaces.  Examples:"," ","    set proto xmodem {rx %s} {rx -a %s}","    set proto kermit {kermit -YQir} {kermit -YQTr} {kermit -YQx}",#else /* This is for when non-Kermit protocols are external */"Syntax: \SET PROTOCOL { KERMIT, XMODEM, YMODEM, ZMODEM } [ s1 s2 s3 s4 s5 s6 ]","  Selects protocol to use for transferring files.  s1 and s2 are commands to","  output prior to SENDing with this protocol, to automatically start the","  RECEIVE process on the other end in binary or text mode, respectively.","  If the protocol is KERMIT, s3 is the command to start a Kermit server on","  the remote computer, and there are no s4-s6 commands.  Otherwise, s3 and","  s4 are commands used on this computer for sending files with this protocol","  in binary or text mode, respectively; s5 and s6 are the commands for","  receiving files with this protocol.  Use \"%s\" in any of these strings","  to represent the filename(s).  Use { braces } if any command contains","  spaces.  Examples:"," ","    set proto kermit {kermit -YQir} {kermit -YQTr} {kermit -YQx}","    set proto ymodem rb {rb -a} {sb %s} {sb -a %s} rb rb"," ","External protocols require REDIRECT and external file transfer programs that","use redirectable standard input/output.",#endif /* XYZ_INTERNAL */#else"Syntax: \SET PROTOCOL KERMIT [ s1 [ s2 [ s3 ] ] ]","  Lets you specify the autoupload binary, autoupload text, and autoserver","  command strings to be sent to the remote system in advance of any SEND","  or GET commands.  By default these are \"kermit -ir\", \"kermit -r\", and","  \"kermit -x\".  Use { braces } around any command that contains spaces.","  Example:"," ","    set proto kermit {kermit -YQir} {kermit -YQTr} {kermit -YQx}",#endif /* CK_XYZ */" ","  SHOW PROTOCOL displays the current settings.",""};static char *hmxxbye = "Syntax: BYE\n\  Shut down and log out a remote Kermit server";static char *hmxxdir[] = {#ifdef DOMYDIR"Syntax: DIRECTORY [ switches ] [ filespec ]","  Lists files.  The filespec may be a filename, possibly containing wildcard","  characters, or a directory name.  If no filespec is given, all files in","  the current directory are listed.  If a directory name is given, all the","  files in it are listed.  Optional switches:"," ","   /BRIEF         List filenames only.",#ifdef CK_PERMS"   /VERBOSE     + Also list permissions, size, and date.",#else

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -