📄 ckuus7.c
字号:
{ "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 */ { "rename", XYFX_R, 0 }, /* rename the incoming file */#ifndef MAC /* This crashes Mac Kermit. */ { "update", XYFX_U, 0 }, /* replace if newer */#endif /* MAC */ { "", 0, 0 }};int ncolx = (sizeof(colxtab) / sizeof(struct keytab)) - 1;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 { "character-set", XYTCS, 0 },#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 },#else#ifdef KUI { "font", XYTFON, 0 },#endif /* KUI */#endif /* PCFONTS */#endif /* OS2 */ { "height", XYTHIG, 0 },#ifdef CKTIDLE { "idle-action", XYTIACT, 0 }, { "idle-limit", XYTITMO, CM_INV }, { "idle-send", XYTIDLE, CM_INV }, { "idle-timeout", XYTITMO, 0 },#endif /* CKTIDLE */#ifdef OS2#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#ifndef KUI { "line-spacing", XYTLSP, CM_INV }, { "local-character-set", XYTLCS, 0 },#else { "line-spacing", XYTLSP, 0 }, { "local-character-set", XYTLCS, CM_INV },#endif /* KUI */#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 }, { "tra", XYTCTS, CM_INV|CM_ABR }, { "transmit-timeout", XYTCTS, 0 },#endif /* OS2 */#ifdef OS2ORUNIX { "transparent-print", XYTPRN, CM_INV },#endif /* OS2ORUNIX */#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#ifdef CKOUNI { "unicode", XYTUNI, CM_INV },#endif /* CKOUNI */#endif /* UNICODE */#endif /* NOCSETS */#ifdef OS2 { "unix-mode", XYTUNX, CM_INV }, { "url-highlight", XYTURLHI, 0 },#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 curontab[] = { /* SET TERM CURSOR */#ifdef KUI { "noblink", 2, 0 },#else { "noblink", 2, CM_INV },#endif /* KUI */ { "off", 0, 0 }, { "on", 1, 0 }};int ncuron = (sizeof(curontab) / sizeof(struct keytab));struct keytab rolltab[] = { /* Set TERM Roll Options */ { "insert", TTR_INSERT, 0 }, { "keystrokes",TTR_KEYS, 0 }, { "off", TTR_OVER, CM_INV }, { "on", TTR_INSERT, CM_INV }, { "overwrite", TTR_OVER, 0 }};int nroll = (sizeof(rolltab) / sizeof(struct keytab));struct keytab rollkeytab[] = { /* Set TERM ROLL KEYSTROKES */ { "ignore", TTRK_IGN, 0 }, { "restore-and-send", TTRK_RST, 0 }, { "send", TTRK_SND, 0 }};int nrollkey = (sizeof(rollkeytab) / 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#define TT_GR_KBD 4struct keytab graphsettab[] = { /* DEC VT Graphic Sets */ { "all", TT_GR_ALL, 0 }, { "g0", TT_GR_G0, 0 }, { "g1", TT_GR_G1, 0 }, { "g2", TT_GR_G2, 0 }, { "g3", TT_GR_G3, 0 }, { "keyboard", TT_GR_KBD, 0 }};int ngraphset = (sizeof(graphsettab) / sizeof(struct keytab));#endif /* OS2 */struct keytab adltab[] = { /* Autodownload Options */ { "ask", TAD_ASK, 0 }, { "error", TAD_ERR, 0 },#ifdef OS2 { "kermit", TAD_K, 0 },#endif /* OS2 */ { "off", TAD_OFF, 0 }, { "on", TAD_ON, 0 },#ifdef OS2 { "zmodem", TAD_Z, 0 },#endif /* OS2 */ { "", 0, 0 }};int nadltab = (sizeof(adltab) / sizeof(struct keytab)) - 1;struct keytab adlerrtab[] = { /* Autodownload Error Options */ { "continue", 0, 0 }, { "go", 0, CM_INV }, { "stop", 1, 0 }};int nadlerrtab = (sizeof(adlerrtab) / sizeof(struct keytab));#ifdef OS2struct keytab adlxtab[] = { /* Autodownload Options */ { "c0-conflicts", TAD_X_C0, 0 }, { "detection-method", TAD_X_DETECT, 0 }, { "string", TAD_X_STR, 0 }};int nadlxtab = (sizeof(adlxtab) / sizeof(struct keytab));struct keytab adldtab[] = { /* Auto-dl Detection Methods */ { "packet", ADL_PACK, 0 }, { "string", ADL_STR, 0 }};int nadldtab = (sizeof(adldtab) / sizeof(struct keytab));struct keytab adlc0tab[] = { /* Auto-dl Detection Methods */ { "ignored-by-emulator", 0, 0 }, { "processed-by-emulator", 1, 0 }};int nadlc0tab = (sizeof(adlc0tab) / sizeof(struct keytab));#ifndef NOCSETSstruct keytab vtlangtab[] = { { "belgian", VTL_BELGIAN , 0 }, { "british", VTL_BRITISH , 0 }, { "canadian", VTL_CANADIAN, 0 }, { "czech", VTL_CZECH , 0 }, { "danish", VTL_DANISH , 0 }, { "dutch", VTL_DUTCH , 0 }, { "finnish", VTL_FINNISH , 0 }, { "french", VTL_FRENCH , 0 }, { "french-canadian",VTL_FR_CAN , 0 }, { "german", VTL_GERMAN , 0 }, { "greek", VTL_GREEK , 0 }, { "hebrew", VTL_HEBREW , 0 }, { "hungarian", VTL_HUNGARIA, 0 }, { "italian", VTL_ITALIAN , 0 }, { "latin-american", VTL_LATIN_AM, 0 }, { "north-american", VTL_NORTH_AM, 0 }, { "norwegian", VTL_NORWEGIA, 0 }, { "polish", VTL_POLISH , 0 }, { "portugese", VTL_PORTUGES, 0 }, { "romanian", VTL_ROMANIAN, 0 }, { "russian", VTL_RUSSIAN , 0 }, { "scs", VTL_SCS , CM_INV }, { "slovak", VTL_SLOVAK , 0 }, { "spanish", VTL_SPANISH , 0 }, { "swedish", VTL_SWEDISH , 0 }, { "swiss-french", VTL_SW_FR , 0 }, { "swiss-german", VTL_SW_GR , 0 }, { "turkish-f", VTL_TURK_F , CM_INV }, { "turkish-q", VTL_TURK_Q , CM_INV }};int nvtlangtab = (sizeof(vtlangtab) / sizeof(struct keytab));#endif /* NOCSETS */#endif /* OS2 */struct keytab crdtab[] = { /* Carriage-return display */ { "crlf", 1, 0 }, { "normal", 0, 0 }};extern int tt_crd; /* Carriage-return display variable */#ifdef CK_APCextern int apcstatus, apcactive;static struct keytab apctab[] = { /* Terminal APC parameters */ { "no-input", APC_ON|APC_NOINP,0 }, { "off", APC_OFF, 0 }, { "on", APC_ON, 0 }, { "unchecked", APC_ON|APC_UNCH, 0 }, { "unchecked-no-input", APC_ON|APC_NOINP|APC_UNCH, 0 }};int napctab = (sizeof(apctab) / sizeof(struct keytab));#endif /* CK_APC */#endif /* NOLOCAL */extern int autodl, adl_err, adl_ask;struct keytab beltab[] = { /* Terminal bell mode */#ifdef OS2 { "audible", XYB_AUD, 0 }, { "none", XYB_NONE, 0 },#else { "audible", XYB_AUD, CM_INV }, { "none", XYB_NONE, CM_INV },#endif /* OS2 */#ifdef OS2 { "off", XYB_NONE, CM_INV }, { "on", XYB_AUD, CM_INV },#else { "off", XYB_NONE, 0 }, { "on", XYB_AUD, 0 },#endif /* OS2 */#ifdef OS2 { "visible", XYB_VIS, 0 },#endif /* OS2 */ { "", 0, 0 }};int nbeltab = sizeof(beltab)/sizeof(struct keytab) - 1;int tt_unicode = 1; /* Use Unicode if possible */#ifdef CKTIDLEint tt_idlesnd_tmo = 0; /* Idle Send Timeout, disabled */char * tt_idlesnd_str = NULL; /* Idle Send String, none */char * tt_idlestr = NULL;extern int tt_idleact, tt_idlelimit;#endif /* CKTIDLE */#ifdef OS2#ifndef NOLOCAL/* OS/2 serial communication devices.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -