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

📄 ckuus2.c

📁 linux终端仿真程序
💻 C
📖 第 1 页 / 共 5 页
字号:
" . Named-pipe connections",#endif /* NPIPE */#ifdef CK_NETBIOS" . NETBIOS connections",#endif /* CK_NETBIOS */#endif /* OS2 */#endif /* NOLOCAL */"\nWhile typing commands, you may use the following special characters:"," . DEL, RUBOUT, BACKSPACE, CTRL-H: Delete the most recent character typed."," . CTRL-W:  Delete the most recent word typed."," . CTRL-U:  Delete the current line."," . CTRL-R:  Redisplay the current line.",#ifdef CK_RECALL#ifdef OS2" . \030 or CTRL-B: Command recall - go backwards in command recall buffer."," . \031 or CTRL-N: Command recall - go forward in command recall buffer.",#else" . CTRL-P:  Command recall - go backwards in command recall buffer."," . CTRL-B:  Command recall - same as Ctrl-P."," . CTRL-N:  Command recall - go forward in command recall buffer.",#endif /* OS2 */#endif /* CK_RECALL */" . ?        (question mark) Display a menu for the current command field."," . ESC      (or TAB) Attempt to complete the current field."," . \\        (backslash) include the following character literally",#ifndef NOSPL"            or introduce a backslash code, variable, or function.",#else"            or introduce a numeric backslash code.",#endif /* NOSPL */"  Command words other than filenames can be abbreviated in most contexts.",#ifdef OS2#ifdef NT"\nBasic K-95 commands:","  EXIT          exit from K-95",#else /* NT */"\nBasic Kermit/2 commands:","  EXIT          exit from Kermit/2",#endif /* NT */#else /* OS2 */"\nBasic C-Kermit commands:","  EXIT          exit from C-Kermit",#endif /* NT */"  HELP          request general help","  HELP command  request help about the given command","  TAKE          execute commands from a file","\nCommands for file transfer:","  SEND          send files","  RECEIVE       receive files","  GET           get files from a Kermit server",#ifdef CK_RESEND"  RESEND        recover an interrupted send","  REGET         recover an interrupted get from a server",#endif /* CK_RESEND */#ifndef NOSERVER"  SERVER        be a Kermit server",#endif /* NOSERVER */"\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"  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"  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:","  SET NETWORK DIRECTORY  specify a network services direction (optional)","  LOOKUP                 lookup entries in your network directory","  SET NETWORK   select network type","  SET HOST      select network host","  CONNECT       begin terminal connection",#ifdef TNCODE"  TELNET        select a TCP/IP host and CONNECT to it",#endif /* TNCODE */#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 */"\nTo display your escape character:","  SHOW ESCAPE","\nTo display other settings:","  SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",#else  /* !NOLOCAL */"\nTo display settings:","  SHOW COMMUNICATIONS, SHOW TERMINAL, SHOW FILE, SHOW PROTOCOL, etc.",#endif /* NOLOCAL */"\nTo speed up file transfers:","  SET RECEIVE PACKET-LENGTH  (use bigger packets)","  SET WINDOW                 (use sliding windows)","  SET PREFIXING              (reduce prefixing overhead)","  FAST                       (combination of the three above)","\nFor 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:\n","  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 *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 PAUSE for details on","time-of-day format.",""};#ifdef CK_XYZ#ifdef XYZ_INTERNALstatic char *hxyixyz[] = {"Syntax: SET PROTOCOL { KERMIT, XMODEM, YMODEM, ZMODEM } [ s1 s2 ]"," ","Selects protocol to use for transferring files.  String 1 is a command to","output prior to SENDing with this protocol in binary mode; string 2 is the","same thing but for text mode.  Use \"%\" in any of these strings to","represent the filename(s).  Use { braces } if any command contains spaces.","Example:"," ","  set proto xmodem {rx %s} {rx -a %s}"," ",""};#elsestatic char *hxyxyz[] = {"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.","s3 and s4 are commands used on this computer for sending files with this","protocol in binary or text mode.  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.  Example:"," ","  set proto ymodem rb {rb -a} {sb %s} {sb -a %s} rb rb"," ","NOTE: This feature requires REDIRECT and external protocols that can be","redirected.",""};#endif /* CK_XYZ */#endif /* XYZ_INTERNAL */static char *hmxxbye = "Syntax: BYE\n\Shut down and log out a remote Kermit server"; static char *hmxxclo[] = {"Syntax:  CLOSE name","Example: CLOSE PACKET\n","Close one of the following logs or files:",#ifndef NOLOCAL"  SESSION",#endif /* NOLOCAL */#ifdef TLOG"  TRANSACTION",#endif /* TLOG */"  PACKET",#ifdef DEBUG"  DEBUGGING",#endif /* DEBUG */#ifndef NOSPL"  READ","  WRITE",#endif /* NOSPL */"Type HELP LOG and HELP OPEN for further info.", "" }; #ifdef CK_MINPUTstatic char *hmxxminp[] = {"Syntax:  MINPUT n [ string1 [ string2 [ ... ] ] ]","Example: MINPUT 5 Login: {Username: } {NO CARRIER} BUSY RING\n","For use in script programs.  Waits up to n seconds for any one of the","strings to arrive on the communication device.  If no strings are given, the","command waits for any character at all to arrive.  Strings are separated by","spaces; use { braces } for grouping.  If any of the strings is encountered","within the timeout interval, the command succeeds and the \\v(minput)","variable is set to the number of the string that was matched: 1, 2, 3, etc.","If none of the strings arrives, the command times out, fails, and","\\v(minput) is set to 0.\n","Also see: INPUT, REINPUT, SET INPUT.","" };#endif /* CK_MINPUT */#ifndef NOLOCALstatic char *hmxxcon[] = {#ifdef OS2"Syntax: CONNECT (or C)\n",#else"Syntax: CONNECT (or C) [/QUIETLY]\n",#endif /* OS2 */"Connect to a remote computer via the serial communications device given in",#ifdef OS2"the most recent SET PORT command, or to the network host named in the most",#else"the most recent SET LINE command, or to the network host named in the most",#endif /* OS2 */"recent SET HOST command.  Type the escape character followed by C to get","back to the C-Kermit prompt, or followed by ? for a list of CONNECT-mode",#ifdef OS2"escape commands.  You can also assign the \\Kexit verb to the key or","key-combination of your choice; by default it is assigned to Alt-x.",#else"escape commands.","\nInclude the /QUIETLY switch to suppress the informational message that","tells you how to escape back, etc.",#endif /* OS2 */"" };#endif /* NOLOCAL */ static char *hmxxget = "Syntax: GET filespec\n\Tell the remote Kermit server to send the named file or files.\n\If the filespec is omitted, then you are prompted for the remote and\n\local filenames separately.";#ifdef OS2ONLYstatic char *hmxxupd[] = {"Syntax: UPDATES [ keyword ]","Loads the C-Kermit INF files with the OS/2 VIEW command for complete","documentation of all changes and new features in OS/2 C-Kermit since the","first edition of \"Using C-Kermit\" was published.  This command is not a","substitute for the manual, but a supplement to it."," ","If a keyword is given, VIEW searches the index for it and, if it is found,","goes straight to the first panel indexed for the keyword."," ","Upon quitting from VIEW (via Services:Exit or by closing the window) you","are returned to the C-Kermit> prompt.",""};#endif /* OS2ONLY */static char *hmxxlg[] = { "Syntax: LOG (or L) name [ { NEW, APPEND } ]","Record information in a log file:\n",#ifdef DEBUG"DEBUGGING     Debugging information, to help track down bugs in the C-Kermit","              program (default log name is debug.log).\n",#endif /* DEBUG */"PACKETS       Kermit packets, to help with protocol problems (packet.log)",#ifndef NOLOCAL"SESSION       Terminal session, during CONNECT command (session.log)",#endif /* NOLOCAL */#ifdef TLOG"TRANSACTIONS  Names and statistics about files transferred (transact.log)\n",#endif /* TLOG */"If you include the APPEND keyword after the filename, the existing log file,","if any, is appended to; otherwise a new file is created.","Use CLOSE to stop logging.","" }; #ifndef NOSCRIPTstatic char *hmxxlogi[] = { "\Syntax: SCRIPT text\n","A limited and cryptic \"login assistant\", carried over from old C-Kermit","releases for comptability, but not recommended for use.  Instead, please","use the full script programming language described in chapters 11-13 of","\"Using C-Kermit\".\n","Login to a remote system using the text provided.  The login script","is intended to operate similarly to UNIX uucp \"L.sys\" entries.","A login script is a sequence of the form:\n","  expect send [expect send] . . .\n","where 'expect' is a prompt or message to be issued by the remote site, and","'send' is the names, numbers, etc, to return.  The send may also be the","keyword EOT, to send control-d, or BREAK (or \\\\b), to send a break signal.",

⌨️ 快捷键说明

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