📄 ckuus2.c
字号:
#ifdef SSHTEST#define SSHBUILTIN#endif /* SSHTEST *//* C K U U S 2 -- User interface strings & help text module for C-Kermit *//* Authors: Frank da Cruz <fdc@columbia.edu>, The Kermit Project, Columbia University, New York City Jeffrey E Altman <jaltman@secure-endpoints.com> Secure Endpoints Inc., New York City Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. All rights reserved. See the C-Kermit COPYING.TXT file or the copyright text in the ckcmai.c module for disclaimer and permissions. This module contains HELP command and other long text strings. IMPORTANT: Character string constants longer than about 250 are not portable. Longer strings should be broken up into arrays of strings and accessed with hmsga() rather than hmsg().*/#include "ckcsym.h"#include "ckcdeb.h"#include "ckcnet.h"#include "ckcasc.h"#include "ckcker.h"#include "ckuusr.h"#include "ckcxla.h"#ifdef OS2#ifdef NT#include <windows.h>#else /* not NT */#define INCL_KBD#ifdef OS2MOUSE#define INCL_MOU#endif /* OS2MOUSE */#define INCL_DOSMISC#define INCL_DOSDEVICES#include <os2.h> /* This pulls in a whole load of stuff */#undef COMMENT#endif /* NT */#include "ckocon.h"#include "ckokvb.h"#include "ckokey.h"#endif /* OS2 */extern xx_strp xxstring;extern char * ccntab[];/* hlptok contains the string for which the user requested help. This is useful for distinguishing synonyms, in case different help text is needed depending on which synonym was given.*/extern char * hlptok;#ifndef NOIKSD extern int inserver;#endif /* IKSD */#ifndef NOICPextern int cmflgs;#ifdef DCMDBUFextern char *cmdbuf, *atmbuf;#elseextern char cmdbuf[], atmbuf[];#endif /* DCMDBUF */#endif /* NOICP */extern char *xarg0;extern int nrmt, nprm, dfloc, local, parity, escape;extern int turn, flow;extern int binary, quiet, keep;extern int success, xaskmore;#ifdef OS2extern int tt_rows[], tt_cols[];#else /* OS2 */extern int tt_rows, tt_cols;#endif /* OS2 */extern int cmd_rows, cmd_cols;extern long speed;extern char *dftty, *versio, *ckxsys;#ifndef NOHELPextern char *helpfile;#endif /* NOHELP */extern struct keytab prmtab[];#ifndef NOXFERextern struct keytab remcmd[];#endif /* NOXFER */#ifndef NOICP/* Interactive help strings *//* Top-level HELP text. IMPORTANT: Also see tophlpi[] for IKSD. */static char *tophlp[] = {"Trustees of Columbia University in the City of New York.\n",#ifndef NOHELP" Type EXIT to exit.",#ifdef OS2" Type INTRO for a brief introduction to the Kermit Command screen."," Type LICENSE to see the Kermit 95 license.",#else" Type INTRO for a brief introduction to C-Kermit."," Type LICENSE to see the C-Kermit license.",#endif /* OS2 */" Type HELP followed by a command name for help about a specific command.",#ifndef NOPUSH#ifdef UNIX" Type MANUAL to access the C-Kermit manual page.",#else#ifdef VMS" Type MANUAL to access the C-Kermit help topic.",#else#ifdef OS2" Type MANUAL to access the K95 manual.",#else" Type MANUAL to access the C-Kermit manual.",#endif /* OS2 */#endif /* VMS */#endif /* UNIX */#endif /* NOPUSH */" Type NEWS for news about new features."," Type SUPPORT to learn how to get technical support."," Press ? (question mark) at the prompt, or anywhere within a command,"," for a menu (context-sensitive help, menu on demand).",#else"Press ? for a list of commands; see documentation for detailed descriptions.",#endif /* NOHELP */#ifndef NOCMDL#ifndef NOHELP" "," Type HELP OPTIONS for help with command-line options.",#endif /* NOHELP */#endif /* NOCMDL */" ",#ifndef OS2#ifdef MAC"Documentation for Command Window: \"Using C-Kermit\" by Frank da Cruz and","Christine M. Gianone, Digital Press, 1997, ISBN: 1-55558-164-1. To order,","call +1 212 854-3703 or +1 800 366-2665.",#else"DOCUMENTATION: \"Using C-Kermit\" by Frank da Cruz and Christine M. Gianone,","2nd Edition, Digital Press / Butterworth-Heinemann 1997, ISBN 1-55558-164-1,","plus supplements at http://www.columbia.edu/kermit/ckermit.html.",#endif /* MAC */#endif /* OS2 */#ifdef MAC" ","Also see the Mac Kermit Doc and Bwr files on the Mac Kermit diskette.\n",#else#ifdef HPUX10" ","See the files in /usr/share/lib/kermit/ for additional information.",#endif /* HPUX10 */#endif /* MAC */""};#ifndef NOIKSDstatic char *tophlpi[] = { /* Top-level help for IKSD */"Trustees of Columbia University in the City of New York.\n",#ifndef NOHELP" Type INTRO for a brief introduction to Kermit commands."," Type VERSION for version and copyright information."," Type HELP followed by a command name for help about a specific command."," Type SUPPORT to learn how to get technical support."," Type LOGOUT (or EXIT) to log out."," Press ? (question mark) at the prompt, or anywhere within a command,"," for a menu (context-sensitive help, menu on demand).",#else"Press ? for a list of commands; see documentation for detailed descriptions.",#endif /* NOHELP */" ","DOCUMENTATION: \"Using C-Kermit\" by Frank da Cruz and Christine M. Gianone,","2nd Edition, Digital Press / Butterworth-Heinemann 1997, ISBN 1-55558-164-1.","To order: +1 212 854-3703 or +1 800 366-2665. More info at the Kermit","Project website, http://www.columbia.edu/kermit/.",""};#endif /* NOIKSD */#ifndef NOHELPchar *newstxt[] = {#ifdef OS2"Welcome to Kermit 95 2.1.3. Major new features include:",#else"Welcome to C-Kermit 8.0.206. Major new features include:",#endif /* OS2 */#ifdef NT#ifdef KUI" . Runs in GUI window",#else" . GUI version available",#endif /* KUI */#endif /* NT */#ifdef SSHBUILTIN" . New built-in SSH v1 and v2 clients",#endif /* SSHBUILTIN */#ifdef NEWFTP" . A new built-in FTP client",#endif /* NEWFTP */#ifndef NOHTTP" . A new HTTP 1.1 client",#endif /* NOHTTP */#ifdef TN_COMPORT" . Telnet Com Port Option for dialing from Telnet modem servers",#endif /* TN_COMPORT */" . File scanning for automatic text/binary determination",#ifdef CKLEARN#ifndef OS2" . Learned scripts",#endif /* OS2 */#endif /* CKLEARN */#ifndef NOSPL#ifndef NOSEXP" . LISP-like S-Expressions and natural floating-point arithmetic",#endif /* NOSEXP */" . Lots of script programming improvements",#endif /* NOSPL */" . Performance improvements and bug fixes"," ","Documentation:"," 1. \"Using C-Kermit\", second edition (1997), current with C-Kermit 6.0."," 2. http://www.columbia.edu/kermit/ckermit70.html"," which documents the new features of C-Kermit 7.0."," 3. http://www.columbia.edu/kermit/ckermit80.html"," which documents the new features of C-Kermit 8.0."," ","If the release date shown by the VERSION command is long past, be sure to","check with the Kermit Project to see if there have been updates.",""};#endif /* NOHELP */#ifndef NOHELPchar *introtxt[] = {#ifdef OS2"Welcome to K-95, Kermit communications software for:",#else#ifdef UNIX#ifdef HPUX"Welcome to HP-UX C-Kermit communications software for:",#else"Welcome to UNIX C-Kermit communications software for:",#endif /* HPUX */#else#ifdef VMS"Welcome to VMS C-Kermit communications software for:",#else#ifdef VOS"Welcome to VOS C-Kermit communications software for:",#else#ifdef MAC"Welcome to Mac Kermit communications software for:",#else"Welcome to C-Kermit communications software for:",#endif /* MAC */#endif /* VOS */#endif /* VMS */#endif /* UNIX */#endif /* OS2 */#ifndef NOXFER" . Error-free and efficient file transfer",#endif /* NOXFER */#ifndef NOLOCAL#ifdef OS2" . VT320/220/102/100/52, ANSI, Wyse, Linux, Televideo, and other emulations",#else#ifdef MAC" . VT220 terminal emulation",#else" . Terminal connection",#endif /* MAC */#endif /* OS2 */#endif /* NOLOCAL */#ifndef NOSPL" . Script programming",#endif /* NOSPL */#ifndef NOICS" . International character set conversion",#endif /* NOICS */#ifndef NODIAL#ifndef NOSPL" . Numeric and alphanumeric paging",#endif /* NOSPL */#endif /* NODIAL */#ifndef NOLOCAL" ","Supporting:"," . Serial connections, direct or dialed.",#ifndef NODIAL" . Automatic modem dialing",#endif /* NODIAL */#ifdef TCPSOCKET" . TCP/IP network connections:",#ifdef TNCODE" - Telnet sessions",#endif /* TNCODE */#ifdef SSHBUILTIN" - SSH v1 and v2 connections",#else#ifdef ANYSSH" - SSH connections via external agent",#endif /* ANYSSH */#endif /* SSHBUILTIN */#ifdef RLOGCODE" - Rlogin sessions",#endif /* RLOGCODE */#ifdef NEWFTP" - FTP sessions",#endif /* NEWFTP */#ifdef CKHTTP" - HTTP 1.1 sessions",#endif /* CKHTTP */#ifdef IKSD" - Internet Kermit Service",#endif /* IKSD */#endif /* TCPSOCKET */#ifdef ANYX25" . X.25 network connections",#endif /* ANYX25 */#ifdef OS2#ifdef DECNET" . DECnet/PATHWORKS LAT Ethernet connections",#endif /* DECNET */#ifdef SUPERLAT" . Meridian Technologies' SuperLAT connections",#endif /* SUPERLAT */#ifdef NPIPE" . Named-pipe connections",#endif /* NPIPE */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -