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

📄 ckuus7.c

📁 KERMIT工具 这在办公室下载不了,很多人都没有载不到.
💻 C
📖 第 1 页 / 共 5 页
字号:
};static int nstrmkeytab = sizeof(strmkeytab)/sizeof(struct keytab);static struct keytab strmswitab[] = {    { "/literal", 0, 0 }};static int nstrmswitab = sizeof(strmswitab)/sizeof(struct keytab);static struct keytab normrev[] = {    { "dark-display", 0, 0 },    { "light-display", 1, 0 },    { "normal",   0, 0 },    { "reverse",  1, 0 }};static struct keytab prnmtab[] = {    { "auto", 1, 0 },    { "copy", 2, 0 },    { "off",  0, 0 },    { "on",   1, CM_INV },              /* Compatibility with XPRINT version */    { "user", 3, 0 },    { "transparent", 3, CM_INV }        /* not really transparent */};static int nprnmtab = sizeof(prnmtab)/sizeof(struct keytab);extern int tt_diff_upd;#ifdef NT#define stricmp _stricmpextern int tt_attr_bug;#endif /* NT */extern int tt_rows[], tt_cols[];extern int tt_cols_usr;extern int tt_szchng[VNUM];int tt_modechg = TVC_ENA;extern int tt_url_hilite, tt_url_hilite_attr;extern struct _vtG G[4];extern int priority;extern bool send_c1;int send_c1_usr = FALSE;extern int sgrcolors;extern int marginbell, marginbellcol;extern int autoscroll, wy_autopage;extern int tt_sac;extern int dec_nrc, dec_lang, dec_kbd;#else /* OS2 */extern int tt_rows, tt_cols;#endif /*  OS2 */extern int tt_escape;extern long speed;extern char *dftty;extern char *tp, *lp;                   /* Temporary buffer & pointers */extern char ttname[];#ifdef CK_TAPIint tttapi = 0;                         /* is Line TAPI? */struct keytab * tapilinetab = NULL;struct keytab * _tapilinetab = NULL;int ntapiline = 0;#endif /* CK_TAPI */#ifdef NETCONN                          /* Network items */#ifdef ANYX25extern int revcall, closgr, cudata, nx25;extern char udata[];extern struct keytab x25tab[];#ifndef IBMX25extern int npadx3;extern CHAR padparms[];extern struct keytab padx3tab[];#endif /* IBMX25 */#endif /* ANYX25 */#ifdef OS2extern bool ttshare;#ifndef NTextern bool ttslip,ttppp;#endif /* NT */#endif /* OS2 */#ifdef NPIPEextern char pipename[];#endif /* NPIPE */#ifdef TCPSOCKETstatic struct keytab tcprawtab[] = {    /* SET HOST options */    { "/default",    NP_DEFAULT,    CM_INV },#ifdef CK_AUTHENTICATION#ifdef CK_KERBEROS#ifdef RLOGCODE    { "/ek4login",    NP_EK4LOGIN,    0 },    { "/ek5login",    NP_EK5LOGIN,    0 },    { "/k4login",     NP_K4LOGIN,     0 },    { "/k5login",     NP_K5LOGIN,     0 },#endif /* RLOGCODE */#ifdef KRB5_U2U    { "/k5user2user", NP_K5U2U,       0 },#endif /* KRB5_U2U */#endif /* CK_KERBEROS */#endif /* CK_AUTHENTICATION */    { "/no-telnet-init", NP_NONE,   0 },    { "/none",       NP_NONE,   CM_INV },    { "/raw-socket", NP_TCPRAW, 0 },#ifdef RLOGCODE    { "/rlogin",     NP_RLOGIN, 0 },#endif /* RLOGCODE */#ifdef CK_SSL    { "/ssl",        NP_SSL,    0 },    { "/ssl-telnet", NP_SSL_TELNET, 0 },#endif /* CK_SSL */    { "/telnet",     NP_TELNET, 0 },#ifdef CK_SSL    { "/tls",        NP_TLS,    0 },    { "/tls-telnet", NP_TLS_TELNET, 0 },#endif /* CK_SSL */    { "", 0, 0 }};static int ntcpraw = (sizeof(tcprawtab) / sizeof(struct keytab)) - 1;#ifdef RLOGCODE_PROTOTYP( int rlog_naws, (void) );#endif /* RLOGCODE */#endif /* TCPSOCKET */#ifdef SUPERLATextern char slat_pwd[18];#endif /* SUPERLAT */#endif /* NETCONN */#ifdef COMMENT#ifndef NOSETKEYextern KEY *keymap;#ifndef OS2#define mapkey(x) keymap[x]#endif /* OS2 */extern MACRO *macrotab;#ifndef NOKVERBSextern struct keytab kverbs[];extern int nkverbs;#endif /* NOKVERBS */#endif /* NOSETKEY */#else#ifndef NOSETKEYextern KEY *keymap;extern MACRO *macrotab;#ifndef NOKVERBSextern struct keytab kverbs[];extern int nkverbs;#endif /* NOKVERBS */#endif /* NOSETKEY */#endif /* COMMENT */#ifdef OS2                              /* AUTODOWNLOAD parameters */extern int    adl_kmode, adl_zmode;     /* Match Packet to signal download */extern char * adl_kstr;                 /* KERMIT Download String */extern char * adl_zstr;                 /* ZMODEM Download String */extern int adl_kc0, adl_zc0;            /* Process ADL C0s in emulation */#endif /* OS2 *//* Keyword tables ... */extern struct keytab onoff[], rltab[];extern int nrlt;#ifndef NOCSETSstatic struct keytab fdfltab[] = {    { "7bit-character-set", 7, 0 },    { "8bit-character-set", 8, 0 }};static int nfdflt = (sizeof(fdfltab) / sizeof(struct keytab));#endif /* NOCSETS *//* SET FILE parameters */static struct keytab filtab[] = {#ifndef NOXFER#ifdef PATTERNS    { "binary-patterns",   XYFIBP,  0 },#endif /* PATTERNS */    { "bytesize",         XYFILS,   0 },#ifndef NOCSETS    { "character-set",    XYFILC,   0 },#endif /* NOCSETS */    { "collision",        XYFILX,   0 },    { "default",          XYF_DFLT, 0 },    { "destination",      XYFILY,   0 },    { "display",          XYFILD,   CM_INV },#ifdef CK_TMPDIR    { "download-directory", XYFILG, 0 },#endif /* CK_TMPDIR */#endif /* NOXFER */    { "end-of-line",      XYFILA,   0 },    { "eol",              XYFILA,   CM_INV },#ifdef CK_CTRLZ    { "eof",              XYFILV,   0 },#endif /* CK_CTRLZ */#ifndef NOXFER    { "fastlookups",      9997,     CM_INV },    { "incomplete",       XYFILI,   0 },#ifndef datageneral    { "inspection",       XYF_INSP, CM_INV },#endif /* datageneral */#ifdef CK_LABELED    { "label",            XYFILL, 0 },#endif /* CK_LABELED */#ifdef UNIX#ifdef DYNAMIC    { "listsize",         XYF_LSIZ, 0 },#endif /* DYNAMIC */#endif /* UNIX */    { "names",            XYFILN, 0 },#ifdef UNIX    { "output",           XYFILH, 0 },#endif /* UNIX */#ifdef PATTERNS    { "patterns",         XYFIPA, 0 },#endif /* PATTERNS */#ifdef COMMENT /* Not implemented (but see CHMOD) */    { "permissions",      XYF_PRM, CM_INV },    { "protection",       XYF_PRM, 0 },#endif /* COMMENt */#ifdef VMS    { "record-length",    XYFILR, 0 },#endif /* VMS */#ifndef datageneral    { "scan",             XYF_INSP, 0 },#endif /* datageneral */#ifdef UNIX#ifdef DYNAMIC    { "stringspace",      XYF_SSPA, 0 },#endif /* DYNAMIC */#endif /* UNIX */#ifdef PATTERNS    { "t",                XYFILT, CM_INV|CM_ABR },    { "text-patterns",    XYFITP, 0 },#endif /* PATTERNS */#endif /* NOXFER */    { "type",             XYFILT, 0 },#ifdef UNICODE    { "ucs",              XYFILU, 0 },#endif /* UNICODE */#ifndef NOXFER    { "warning",          XYFILW, CM_INV }#endif /* NOXFER */};static int nfilp = (sizeof(filtab) / sizeof(struct keytab));struct keytab pathtab[] = {    { "absolute",  PATH_ABS,  0      },    { "none",      PATH_OFF,  CM_INV },    { "off",       PATH_OFF,  0      },    { "on",        PATH_ABS,  CM_INV },    { "relative",  PATH_REL,  0      }};int npathtab = (sizeof(pathtab) / sizeof(struct keytab));struct keytab rpathtab[] = {    { "absolute",  PATH_ABS,  0      },    { "auto",      PATH_AUTO, 0      },    { "none",      PATH_OFF,  CM_INV },    { "off",       PATH_OFF,  0      },    { "on",        PATH_ABS,  CM_INV },    { "relative",  PATH_REL,  0      }};int nrpathtab = (sizeof(rpathtab) / sizeof(struct keytab));#ifdef CK_CTRLZstruct keytab eoftab[] = {              /* EOF detection method */    { "ctrl-z",          1, 0      },    { "length",          0, 0      },    { "noctrl-z",        0, CM_INV }};#endif /* CK_CTRLZ */struct keytab fttab[] = {               /* File types for SET FILE TYPE */    { "ascii",     XYFT_T, CM_INV },#ifdef VMS    { "b",         XYFT_B, CM_INV|CM_ABR },#endif /* VMS */    { "binary",    XYFT_B, 0 },#ifdef VMS    { "block",     XYFT_I, CM_INV },    { "image",     XYFT_I, 0 },#endif /* VMS */#ifdef CK_LABELED    { "labeled",   XYFT_L, 0 },#endif /* CK_LABELED */#ifdef MAC    { "macbinary", XYFT_M, 0 },#endif /* MAC */    { "text",      XYFT_T, 0 }};int nfttyp = (sizeof(fttab) / sizeof(struct keytab));static struct keytab rfttab[] = {       /* File types for REMOTE SET FILE */    { "ascii",     XYFT_T, CM_INV },    { "binary",    XYFT_B, 0 },#ifdef VMS    { "labeled",   XYFT_L, 0 },#else#ifdef OS2    { "labeled",   XYFT_L, 0 },#endif /* OS2 */#endif /* VMS */    { "text",      XYFT_T, 0 }};static int nrfttyp = (sizeof(rfttab) / sizeof(struct keytab));#ifdef OS2ORUNIX#define ZOF_BLK  0#define ZOF_NBLK 1#define ZOF_BUF  2#define ZOF_NBUF 3static struct keytab zoftab[] = {    { "blocking",    ZOF_BLK,  0 },    { "buffered",    ZOF_BUF,  0 },    { "nonblocking", ZOF_NBLK, 0 },    { "unbuffered",  ZOF_NBUF, 0 }};static int nzoftab = (sizeof(zoftab) / sizeof(struct keytab));#endif /* OS2ORUNIX */extern int query;                       /* Global flag for QUERY active */#ifndef NOSPL#ifndef NOXFERstatic struct keytab vartyp[] = {       /* Variable types for REMOTE QUERY */    { "global",   (int) 'G', CM_INV },    { "kermit",   (int) 'K', 0 },    { "system",   (int) 'S', 0 },    { "user",     (int) 'G', 0 }};static int nvartyp = (sizeof(vartyp) / sizeof(struct keytab));#endif /* NOXFER */#endif /* NOSPL */#ifdef CK_TIMERSstatic struct keytab timotab[] = {      /* Timer types */    { "dynamic", 1, 0 },    { "fixed",   0, 0 }};#endif /* CK_TIMERS */#ifdef DCMDBUFextern char *atxbuf, *atmbuf;           /* Atom buffer */extern char *cmdbuf;                    /* Command buffer */extern char *line, *tmpbuf;             /* Character buffers for anything */extern int *intime;                     /* INPUT TIMEOUT */#else  /* Not DCMDBUF ... */extern char atxbuf[], atmbuf[];         /* Atom buffer */extern char cmdbuf[];                   /* Command buffer */extern char line[], tmpbuf[];           /* Character buffer for anything */extern int intime[];#endif /* DCMDBUF */#ifndef NOCSETSextern struct keytab fcstab[];          /* For SET FILE CHARACTER-SET */extern struct csinfo fcsinfo[];         /* File character set info. */extern struct keytab ttcstab[];extern int nfilc, fcharset, tcharset, ntermc, tcsr, tcsl, dcset7, dcset8;#ifdef CKOUNIextern int tt_utf8;#endif /* CKOUNI */#ifdef OS2_PROTOTYP( int os2setcp, (int) );_PROTOTYP( int os2getcp, (void) );_PROTOTYP( void os2debugoff, (void) );#endif /* OS2 */#endif /* NOCSETS */extern int cmdlvl;                      /* Overall command level */#ifndef NOSPL#ifdef DCMDBUFextern int *inpcas;                     /* INPUT CASE setting on cmd stack */#elseextern int inpcas[];#endif /* DCMDBUF */#endif /* NOSPL */#ifdef CK_CURSES#ifndef VMS_PROTOTYP(int tgetent,(char *, char *));#else#ifdef __DECC_PROTOTYP(int tgetent,(char *, char *));#endif /* __DECC */#endif /* VMS */#endif /* CK_CURSES */#ifndef NOXMIT#define XMITF 0                         /* SET TRANSMIT values */#define XMITL 1                         /* (Local to this module) */#define XMITP 2#define XMITE 3#define XMITX 4#define XMITS 5#define XMITW 6#define XMITT 7#define XMBUFL 50extern int xmitf, xmitl, xmitp, xmitx, xmits, xmitw, xmitt;char xmitbuf[XMBUFL+1] = { NUL };       /* TRANSMIT eof string */struct keytab xmitab[] = {              /* SET TRANSMIT */    { "echo",          XMITX, 0 },    { "eof",           XMITE, 0 },    { "fill",          XMITF, 0 },    { "linefeed",      XMITL, 0 },

⌨️ 快捷键说明

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