📄 ckuus2.c
字号:
/* C K U U S 2 -- User interface strings & help text module for C-Kermit */ /* Author: Frank da Cruz <fdc@columbia.edu>, Columbia University Academic Information Systems, New York City. Copyright (C) 1985, 1996, Trustees of Columbia University in the City of New York. The C-Kermit software may not be, in whole or in part, licensed or sold for profit as a software product itself, nor may it be included in or distributed with commercial products or otherwise distributed by commercial concerns to their clients or customers without written permission of the Office of Kermit Development and Distribution, Columbia University. This copyright notice must not be removed, altered, or obscured.*/ /* This module separates long strings from the body of the other ckuus* modules.*/#include "ckcsym.h"#include "ckcdeb.h"#include "ckcnet.h"#include "ckcasc.h"#include "ckcker.h"#include "ckuusr.h"#include "ckcxla.h" extern xx_strp xxstring;extern char *ccntab[];#ifndef NOICP#ifdef DCMDBUFextern char *cmdbuf;#elseextern char cmdbuf[];#endif /* DCMDBUF */#endif /* NOICP */#ifdef DEBUGextern char debfil[];#endif /* DEBUG */#ifdef TLOGextern char trafil[];#endifextern char *xarg0;extern int nrmt, nprm, dfloc, local, parity, escape;extern int turn, flow;extern int binary, warn, quiet, keep;extern int success;#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;extern struct keytab prmtab[];extern struct keytab remcmd[]; /* Command-Line help (Unix command-line arguments) */#ifndef NOCMDLstaticchar *hlp1[] = {#ifndef NOICP" [cmdfile] [-x arg [-x arg]...[-yyy]..] [ = text ] ]\n",#else"[-x arg [-x arg]...[-yyy]..]\n",#endif /* NOICP */" -x is an option requiring an argument, -y an option with no argument.\n",#ifdef COMMENT /* No room for this any more */#ifndef NOICP#ifndef NOSPL" = means ignore following words, but place them in array \\&@[].\n",#else" = means ignore following material.\n",#endif /* NOSPL */#else" = means ignore following material.\n",#endif /* NOICP */#endif /* COMMENT */"actions:\n"," -s files send files -r receive files\n"," -s - send from stdin -k receive files to stdout\n",#ifndef NOSERVER" -x enter server mode -f finish remote server\n",#else" -f finish remote server\n",#endif /* NOSERVER */" -g files get remote files from server (quote wildcards)\n"," -a name alternate file name, used with -s, -r, -g\n",#ifndef NOLOCAL" -c connect (before file transfer), used with -l and -b\n"," -n connect (after file transfer), used with -l and -b\n",#endif /* NOLOCAL */"settings:\n",#ifndef NOLOCAL" -l dev communication line device -q quiet during file transfer\n",#ifdef NETCONN" -j host network host name[:port] -i binary transfer (-T = text)\n",#else" -i binary file transfer\n",#endif /* NETCONN */" -b bps line speed, e.g. 19200 -t half duplex, xon handshake\n",#else" -i binary file transfer\n",#endif /* NOLOCAL */#ifdef DEBUG" -p x parity, x = e,o,m,s, or n -d log debug info to debug.log\n",#else" -p x parity, x = e,o,m,s, or n\n",#endif /* DEBUG */#ifndef NOICP" -y name alternate init file name -Y no init file\n",#else#endif /* NOICP */" -e n receive packet length -w write over files\n",#ifdef UNIX" -v n sliding window slots -z force foreground\n",#else" -v n sliding window slots\n",#endif /* UNIX */#ifndef NODIAL" -m name modem type -R remote-only advisory\n",#endif /* NODIAL *//* If all this stuff is defined, we run off the screen...*/#ifdef CK_NETBIOS" -N n NetBIOS adapter number\n",#endif /* CK_NETBIOS */#ifdef ANYX25" -o index X.25 closed user group call -X X.25 address\n"," -U string X.25 call user data -u X.25 reverse charge call\n"," -Z n X.25 connection open file descriptor\n",#endif /* ANYX25 */#ifndef NOSPL"other:\n"," -C \"command, command, ...\" (interactive-mode commands to execute)\n"," = means ignore following words, but place them in array \\&@[].\n",#else" = means ignore following text.\n",#endif /* NOSPL */#ifdef NOICP"Operation by command-line options only.\n",#else"If no action command is included, or -S is, enter interactive dialog.\n",#endif /* NOICP */""}; /* U S A G E */ VOIDusage() {#ifndef MINIX conol("Usage: "); conol(xarg0); conola(hlp1);#else conol("Usage: "); conol(xarg0); conol(" [-x arg [-x arg]...[-yyy]..] ]\n");#endif /* MINIX */}#endif /* NOCMDL */#ifndef NOICP/* Interactive help strings */ static char *tophlp[] = { "Trustees of Columbia University in the City of New York.\n",#ifndef NOHELP#ifdef NT" Type INTRO for a brief introduction to the Kermit Command screen.",#else" Type INTRO for a brief introduction to C-Kermit.",#endif /* NT */" Type VERSION for version and copyright information."," Type HELP followed by a command name for help about a specific command."," Type NEWS for news about new features.",#ifdef OS2#ifndef NT" Type UPDATES to view updates to the \"Using C-Kermit\" manual.",#endif /* NT */#endif /* OS2 */" Type BUG 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#ifdef NT"\n\ From DOS level, type \"k95 -h\" for help about command-line options.",#else#ifdef OS2"\n\ From system level, type \"k2 -h\" for help about command-line options.",#else"\n\ From system level, type \"kermit -h\" for help about command-line options.",#endif /* OS2 */#endif /* NT */#endif /* NOCMDL */" ",#ifdef NT"Documentation: \"Kermit 95\" by Christine M. Gianone and Frank da Cruz,","Manning Publications, 1996. Technical Reference: \"Using C-Kermit\" by","Frank da Cruz and Christine M. Gianone, 2nd Ed., Digital Press, 1997.","To order call +1 (212) 854-3703.",#else#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.","To order: +1 212 854-3703 or +1 800 366-2665. PLEASE PURCHASE THE MANUAL.","It shows you how to use C-Kermit and answers your questions; sales of this","book are the primary source of funding for C-Kermit development and support.",#endif /* MAC */#endif /* NT */" ",#ifdef OS2ONLY"Use the UPDATES command to access hypertext documentation for features added","since the book was published. Use UPDATES <keyword> to search for a keyword.",#else#ifdef MAC"Also see the Mac Kermit Doc and Bwr files on the Mac Kermit diskette.\n",#else#ifdef HPUX10"See /usr/share/lib/kermit/*.* for additional information.", #endif /* HPUX10 */#endif /* MAC */#endif /* OS2 */""};#ifndef NOHELP char *newstxt[] = {" Welcome to C-Kermit 6.0. This version of C-Kermit was released"," concurrently with the second edition of the manual, \"Using C-Kermit\","," and it is completely described there, with supplementary material found"," in system-specific publications, such as the Kermit 95 manual. The"," update files that accompanied edits 189, 190, and 191 are no longer needed."," "," If the release date shown by the VERSION command is long past, be sure to"," check with the Kermit Project to see if 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 */" . Error-free and efficient file transfer",#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 */#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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -