📄 ckuus2.c
字号:
/* C K U U S 2 -- User interface strings & help text module for C-Kermit *//* Authors: Frank da Cruz <fdc@columbia.edu>, Jeffrey Altman <jaltman@columbia.edu>, The Kermit Project Columbia University New York City Copyright (C) 1985, 2000, 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[];#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 */static char *tophlp[] = {"Trustees of Columbia University in the City of New York.\n",#ifndef NOHELP#ifdef OS2" Type INTRO for a brief introduction to the Kermit Command screen.",#else" Type INTRO for a brief introduction to C-Kermit.",#endif /* OS2 */" Type VERSION for version and copyright information."," 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 */" ","DOCUMENTATION: \"Using C-Kermit\" by Frank da Cruz and Christine M. Gianone,","Digital Press / Butterworth-Heinemann, latest edition. Please purchase this","book. It shows you how to use C-Kermit, answers your questions, reduces the","load on our help desk, and book sales are the primary source of funding for","C-Kermit development. More info: http://www.columbia.edu/kermit/.",#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 NOHELPchar *newstxt[] = {#ifdef OS2"Welcome to Kermit 95 1.1.18"," ","Major new features (not necessarily available on all platforms) include:",#else"Welcome to C-Kermit 7.0.196."," ","Major new features (not necessarily available on all platforms) include:",#endif /* OS2 */" ",#ifndef NOIKSD" . Internet Kermit Service Daemon and client.",#endif /* NOIKSD */#ifdef CK_AUTHENTICATION#ifdef CK_ENCRYPTION" . Secure network authentication and encryption",#else" . Secure network authentication",#endif /* CK_ENCRYPTION */#ifdef NETCMD" . External communication program interface.",#endif /* NETCMD */#ifdef NETPTY" . Scripted control of local programs.",#endif /* NETPTY */#endif /* CK_AUTHENTICATION */" . More-powerful filename-matching patterns"," . Recursive directory-tree transfer and directory listing."," . Automatic per-file text/binary mode switching.",#ifndef NOFAST" . Fast Kermit protocol settings are now the default.",#endif /* NOFAST */" . File-transfer selection and other option switches (HELP SEND, HELP GET).",#ifdef PIPESEND" . File-transfer pipes and filters.",#endif /* PIPESEND */" . New streaming Kermit protocol for use on reliable connections.",#ifdef CKREGEX" . More-flexible wildcards for filename matching (HELP WILDCARD).",#endif /* CKREGEX */#ifndef NOLOCAL" . Numerous modem and dialing improvements."," . More/higher serial speeds on most platforms (SET SPEED ?)."," . New data-bits/parity/stop-bits options (HELP SET SERIAL).",#endif /* NOLOCAL */#ifdef CK_PERMS" . File-permission preservation in UNIX and VMS.",#endif /* CK_PERMS */" . Improvements in CD and other directory-related commands.",#ifndef NOCSETS#ifdef UNICODE" . Unicode - the Universal Character Set (UCS-2 and UTF-8)",#endif /* UNICODE */#ifndef NOGREEK" . Greek character sets.",#endif /* NOGREEK */" . New Euro-compliant and other character sets."," . Automatic character-set switching (HELP ASSOCIATE).",#endif /* NOCSETS */#ifndef NOSPL" . New script programming features, functions, and variables."," . \"kerbang\" scripts."," . General-purpose file i/o and floating-point arithmetic packages.",#endif /* NOSPL */#ifdef CXLOGDIAL" . New connection log (HELP LOG).",#endif /* CXLOGDIAL */#ifndef NOHELP" . New MANUAL command to access online documentation (HELP MANUAL).",#endif /* NOHELP */" . Performance improvements."," . Bug fixes."," ","These new features are documented in the ckermit2.txt file, to be used as","a supplement to the manual, \"Using C-Kermit\", second edition (1997),","until the third edition is ready.",#ifdef OS2" ","And in the online Kermit 95 manual, accessible via the MANUAL command.",#endif /* OS2 */" ","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 NT"Welcome to K-95, Kermit communications software for:",#else#ifdef OS2"Welcome to Kermit/2, 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 */#endif /* NT */#ifndef NOXFER" . Error-free and efficient file transfer",#endif /* NOXFER */#ifndef NOLOCAL#ifdef OS2" . VT320/220/102/100/52, ANSI, Wyse, DG, 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 NOLOCAL"\nSupporting:"," . Serial connections, direct or dialed.",#ifndef NODIAL" . Automatic modem dialing",#endif /* NODIAL */#ifdef TCPSOCKET" . TCP/IP network connections",#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 */#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"," TYPE display a file on your screen",#ifndef NOXFER"\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 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -