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

📄 ckuus7.c

📁 C-Kermit源码。是使用串口/Modem和网络通讯的程序
💻 C
📖 第 1 页 / 共 5 页
字号:
    "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 */    "fastlookups",      9997,   CM_INV,#ifndef NOXFER    "incomplete",       XYFILI, 0,#ifdef CK_LABELED    "label",            XYFILL, 0,#endif /* CK_LABELED */    "names",            XYFILN, 0,#ifdef UNIX    "output",           XYFILH, 0,#endif /* UNIX */#ifdef PATTERNS    "patterns",         XYFIPA, 0,#endif /* PATTERNS */#ifdef VMS    "record-length",    XYFILR, 0,#endif /* VMS */#ifdef PATTERNS    "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 */#ifdef CK_AUTHENTICATIONextern int auth_type_user[];int sl_auth_type_user[AUTHTYPLSTSZ] = {AUTHTYPE_NULL, AUTHTYPE_NULL};int sl_auth_saved = 0;int sl_topt_a_su = 0;int sl_topt_a_s_saved = 0;int sl_topt_a_cm = 0;int sl_topt_a_c_saved = 0;#endif /* CK_AUTHENTICATION */#ifdef CK_ENCRYPTIONextern int cx_type;int sl_cx_type = 0;int sl_cx_saved = 0;int sl_topt_e_su = 0;int sl_topt_e_sm = 0;int sl_topt_e_s_saved = 0;int sl_topt_e_cu = 0;int sl_topt_e_cm = 0;int sl_topt_e_c_saved = 0;#endif /* CK_ENCRYPTION */extern char uidbuf[];static int uidflag = 0;char sl_uidbuf[UIDBUFLEN] = { NUL, NUL };int  sl_uid_saved = 0;#ifdef TNCODEint  sl_tn_wait = 0;int  sl_tn_saved = 0;#endif /* TNCODE */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;#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,    "locking-shift", XMITS, 0,    "pause",    XMITW, 0,    "prompt",   XMITP, 0,    "timeout",  XMITT, 0};int nxmit = (sizeof(xmitab) / sizeof(struct keytab));#endif /* NOXMIT *//* For SET FILE COLLISION *//* Some of the following may be possible for some C-Kermit implementations *//* but not others.  Those that are not possible for your implementation *//* should be ifdef'd out. */struct keytab colxtab[] = { /* SET FILE COLLISION options */#ifndef MAC    "append",    XYFX_A, 0,  /* append to old file */#endif /* MAC */#ifdef COMMENT    "ask",       XYFX_Q, 0,  /* ask what to do (not implemented) */#endif    "backup",    XYFX_B, 0,  /* rename old file */#ifndef MAC    /* This crashes Mac Kermit. */    "discard",   XYFX_D, 0,  /* don't accept new file */    "no-supersede", XYFX_D, CM_INV, /* ditto (MSK compatibility) */#endif /* MAC */    "overwrite", XYFX_X, 0,  /* overwrite the old file == file warning off */    "rename",    XYFX_R, 0   /* rename the incoming file == file warning on */#ifndef MAC    /* This crashes Mac Kermit. */,   "update",    XYFX_U, 0  /* replace if newer */#endif /* MAC */};int ncolx = (sizeof(colxtab) / sizeof(struct keytab));static struct keytab rfiltab[] = {	/* for REMOTE SET FILE */#ifndef NOCSETS    "character-set", XYFILC, 0,#endif /* NOCSETS */    "collision",     XYFILX, 0,    "incomplete",    XYFILI, 0,    "names",         XYFILN, 0,    "record-length", XYFILR, 0,    "type",          XYFILT, 0};int nrfilp = (sizeof(rfiltab) / sizeof(struct keytab));struct keytab eoltab[] = {   		/* File eof delimiters */    "cr",        XYFA_C, 0,    "crlf",      XYFA_2, 0,    "lf",        XYFA_L, 0};static int neoltab = (sizeof(eoltab) / sizeof(struct keytab));struct keytab fntab[] = {   		/* File naming */    "converted", XYFN_C, 0,    "literal",   XYFN_L, 0,    "standard",  XYFN_C, CM_INV};int nfntab = (sizeof(fntab) / sizeof(struct keytab));#ifndef NOLOCAL/* Terminal parameters table */static struct keytab trmtab[] = {#ifdef OS2    "answerback",    XYTANS, 0,#endif /* OS2 */#ifdef CK_APC    "apc",           XYTAPC, 0,#endif /* CK_APC */#ifdef OS2    "arrow-keys",    XYTARR, 0,#endif /* OS2 */#ifdef NT    "at",	     XYTATTR, CM_INV|CM_ABR,    "att",	     XYTATTR, CM_INV|CM_ABR,    "attr",	     XYTATTR, CM_INV|CM_ABR,    "attr-bug",      XYTATTBUG, CM_INV,#endif /* NT */#ifdef OS2    "attribute",     XYTATTR, 0,#endif /* OS2 */#ifdef CK_APC#ifdef CK_AUTODL   "autodownload",   XYTAUTODL, 0,#endif /* CK_AUTODL */#endif /* CK_APC */#ifdef OS2    "autopage",      XYTAPAGE,  0,    "autoscroll",    XYTASCRL,  0,    "bell",          XYTBEL, CM_INV,#endif /* OS2 */    "bytesize",      XYTBYT, 0,#ifndef NOCSETS#ifndef KUI#ifdef OS2    "character-set", XYTCS,  CM_INV,#else /* OS2 */    "character-set", XYTCS,  0,#endif /* OS2 */#endif /* KUI */#endif /* NOCSETS */#ifdef OS2    "code-page",     XYTCPG, 0,    "color",         XYTCOL, 0,    "controls",      XYTCTRL, 0,#endif /* OS2 */    "cr-display",    XYTCRD, 0,#ifdef OS2    "cursor",        XYTCUR, 0,#endif /* OS2 */    "debug",         XYTDEB, 0,#ifdef OS2    "dg-unix-mode",     XYTUNX, 0,#endif /* OS2 */    "echo",          XYTEC,  0,    "escape-character", XYTESC, 0,#ifdef OS2#ifdef PCFONTS    "font",          XYTFON, 0,#endif /* PCFONTS */#endif /* OS2 */    "height",        XYTHIG, 0,#ifdef OS2    "idle-send",     XYTIDLE,0,#ifndef NOCSETS    "kbd-follows-gl/gr", XYTKBDGL, 0,#endif /* NOCSETS */    "key",           XYTKEY, 0,    "keyboard-mode", XYTKBMOD, 0,    "keypad-mode",   XYTKPD, 0,#endif /* OS2 */#ifndef NOCSETS#ifdef OS2    "local-character-set", XYTLCS,  0,#else    "local-character-set", XYTLCS,  CM_INV,#endif /* OS2 */#endif /* NOCSETS */    "locking-shift", XYTSO,  0,#ifdef OS2    "margin-bell",   XYTMBEL, 0,#endif /* OS2 */#ifdef OS2MOUSE    "mouse",         XYTMOU, CM_INV,#endif /* OS2MOUSE */    "newline-mode",  XYTNL,  0,#ifdef OS2    "output-pacing", XYTPAC, 0,#ifdef PCTERM    "pcterm",        XYTPCTERM, 0,#endif /* PCTERM */#endif /* OS2 */#ifdef OS2ORUNIX    "print",         XYTPRN, 0,#endif /* OS2ORUNIX */#ifndef NOCSETS#ifdef OS2    "remote-character-set", XYTRCS,  0,#else    "remote-character-set", XYTRCS,  CM_INV,#endif /* OS2 */#endif /* NOCSETS */#ifdef OS2    "roll-mode",     XYTROL, 0,    "s",             XYTUPD, CM_ABR|CM_INV,    "sc",            XYTUPD, CM_ABR|CM_INV,    "scr",           XYTUPD, CM_ABR|CM_INV,    "scree",         XYTUPD, CM_ABR|CM_INV,    "screen",        XYTUPD, CM_ABR|CM_INV,    "screen-",       XYTUPD, CM_ABR|CM_INV,    "screen-mode",   XYTSCNM,   0,    "screen-optimize", XYTOPTI, 0,    "screen-update", XYTUPD, 0,    "scrollback",    XYSCRS, 0,    "send-data",     XYTSEND, 0,    "send-end-of-block", XYTSEOB, 0,    "sgr-colors",    XYTSGRC, 0,    "sni-ch.code",   XYTSNICC, 0,    "sni-firmware-versions", XYTSNIFV, 0,    "sni-language",  XYTVTLNG, 0,    "sni-pagemode",  XYTSNIPM, CM_INV,    "sni-scrollmode",XYTSNISM, CM_INV,    "spacing-attribute-character", XYTSAC, CM_INV,    "statusline",    XYTSTAT, 0,    "transmit-timeout", XYTCTS, 0,#endif /* OS2 */#ifdef CK_TRIGGER    "trigger",       XYTRIGGER, 0,#endif /* CK_TRIGGER */#ifdef OS2    "type",          XYTTYP, 0,#else    "type",          XYTTYP, CM_INV,#endif /* OS2 */#ifndef NOCSETS#ifdef UNICODE    "unicode",       XYTUNI, CM_INV,#endif /* UNICODE */#endif /* NOCSETS */#ifdef OS2    "unix-mode",     XYTUNX, CM_INV,#ifdef NT    "video-change",  XYTVCH, 0,#endif /* NT */    "vt-language",   XYTVTLNG, 0,    "vt-nrc-mode",   XYTVTNRC, 0,#endif /* OS2 */    "width",         XYTWID, 0,#ifdef OS2    "wrap",          XYTWRP, 0,#endif /* OS2 */    "", 0, 0};int ntrm = (sizeof(trmtab) / sizeof(struct keytab)) - 1;#ifdef OS2struct keytab termctrl[] = { 	/* SET TERM CONTROLS */    "7", 	7, 0,    "8", 	8, 0};int ntermctrl = (sizeof(termctrl) / sizeof(struct keytab));struct keytab rolltab[] = {   /* Set TERM Roll Options */    "insert",    TTR_INSERT, 0,    "off",       TTR_OVER,   CM_INV,    "on",        TTR_INSERT, CM_INV,    "overwrite", TTR_OVER,   0};int nroll = (sizeof(rolltab) / sizeof(struct keytab));#define TT_GR_ALL 4#define TT_GR_G0  0#define TT_GR_G1  1#define TT_GR_G2  2#define TT_GR_G3  3

⌨️ 快捷键说明

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