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

📄 sltermin.c

📁 一个C格式的脚本处理函数库源代码,可让你的C程序具有执行C格式的脚本文件
💻 C
📖 第 1 页 / 共 4 页
字号:
   {"Zo", 344		UNTIC_COMMENT("Set top margin at current line")},   {"Zp", 345		UNTIC_COMMENT("Set top (bottom) margin at row #1 (#2)")},   {"Zq", 346		UNTIC_COMMENT("Start printing bit image braphics")},   {"Zr", 347		UNTIC_COMMENT("Start character set definition")},   {"Zs", 348		UNTIC_COMMENT("Stop printing bit image graphics")},   {"Zt", 349		UNTIC_COMMENT("End definition of character aet")},   {"Zu", 350		UNTIC_COMMENT("List of subscriptable characters")},   {"Zv", 351		UNTIC_COMMENT("List of superscriptable characters")},   {"Zw", 352		UNTIC_COMMENT("Printing any of these chars causes CR")},   {"Zx", 353		UNTIC_COMMENT("No motion for subsequent character")},   {"Zy", 354		UNTIC_COMMENT("List of character set names")},   {"Zz", 371		UNTIC_COMMENT("Move to next row of the bit image")},   {"ac", 146 		UNTIC_COMMENT("acs_chars")},   {"ae", 38 		UNTIC_COMMENT("exit_alt_charset_mode")},   {"al", 53		UNTIC_COMMENT("insert line")},   {"as", 25 		UNTIC_COMMENT("enter_alt_charset_mode")},   {"bc", 395		UNTIC_COMMENT("move left, if not ^H")},   {"bl", 1		UNTIC_COMMENT("audible signal (bell)")},   {"bt", 0		UNTIC_COMMENT("back tab")},   {"bx", 411		UNTIC_COMMENT("box chars primary set")},   {"cb", 269		UNTIC_COMMENT("Clear to beginning of line")},   {"cd", 7		UNTIC_COMMENT("clear to end of screen")},   {"ce", 6 		UNTIC_COMMENT("clr_eol")},   {"ch", 8		UNTIC_COMMENT("horizontal position #1, absolute")},   {"ci", 363		UNTIC_COMMENT("Init sequence for multiple codesets")},   {"cl", 5		UNTIC_COMMENT("clear screen and home cursor")},   {"cm", 10		UNTIC_COMMENT("move to row #1 columns #2")},   {"cr", 2		UNTIC_COMMENT("carriage return")},   {"cs", 3		UNTIC_COMMENT("change region to line #1 to line #2")},   {"ct", 4		UNTIC_COMMENT("clear all tab stops")},   {"cv", 127		UNTIC_COMMENT("vertical position #1 absolute")},   {"dc", 21		UNTIC_COMMENT("delete character")},   {"dl", 22		UNTIC_COMMENT("delete line")},   {"dm", 29		UNTIC_COMMENT("enter delete mode")},   {"do", 11		UNTIC_COMMENT("down one line")},   {"ds", 23		UNTIC_COMMENT("disable status line")},   {"dv", 362		UNTIC_COMMENT("Indicate language/codeset support")},   {"eA", 155		UNTIC_COMMENT("enable alternate char set")},   {"ec", 37		UNTIC_COMMENT("erase #1 characters")},   {"ed", 41		UNTIC_COMMENT("end delete mode")},   {"ei", 42		UNTIC_COMMENT("exit insert mode")},   {"ff", 46		UNTIC_COMMENT("hardcopy terminal page eject")},   {"fh", 284		UNTIC_COMMENT("flash switch hook")},   {"fs", 47		UNTIC_COMMENT("return from status line")},   {"hd", 24		UNTIC_COMMENT("half a line down")},   {"ho", 12		UNTIC_COMMENT("home cursor (if no cup)")},   {"hu", 137		UNTIC_COMMENT("half a line up")},   {"i1", 48		UNTIC_COMMENT("initialization string")},   {"i2", 392		UNTIC_COMMENT("secondary initialization string")},   {"i3", 50		UNTIC_COMMENT("initialization string")},   {"iP", 138		UNTIC_COMMENT("path name of program for initialization")},   {"ic", 52		UNTIC_COMMENT("insert character")},   {"if", 51		UNTIC_COMMENT("name of initialization file")},   {"im", 31		UNTIC_COMMENT("enter insert mode")},   {"ip", 54		UNTIC_COMMENT("insert padding after inserted character")},   {"is", 49		UNTIC_COMMENT("initialization string")},   {"k0", 65		UNTIC_COMMENT("F0 function key")},   {"k1", 66		UNTIC_COMMENT("F1 function key")},   {"k2", 68		UNTIC_COMMENT("F2 function key")},   {"k3", 69		UNTIC_COMMENT("F3 function key")},   {"k4", 70		UNTIC_COMMENT("F4 function key")},   {"k5", 71		UNTIC_COMMENT("F5 function key")},   {"k6", 72		UNTIC_COMMENT("F6 function key")},   {"k7", 73		UNTIC_COMMENT("F7 function key")},   {"k8", 74		UNTIC_COMMENT("F8 fucntion key")},   {"k9", 75		UNTIC_COMMENT("F9 function key")},   {"k;", 67		UNTIC_COMMENT("F10 function key")},   {"kA", 78		UNTIC_COMMENT("insert-line key")},   {"kB", 148		UNTIC_COMMENT("back-tab key")},   {"kC", 57		UNTIC_COMMENT("clear-screen or erase key")},   {"kD", 59		UNTIC_COMMENT("delete-character key")},   {"kE", 63		UNTIC_COMMENT("clear-to-end-of-line key")},   {"kF", 84		UNTIC_COMMENT("scroll-forward key")},   {"kH", 80		UNTIC_COMMENT("last-line key")},   {"kI", 77		UNTIC_COMMENT("insert-character key")},   {"kL", 60		UNTIC_COMMENT("delete-line key")},   {"kM", 62		UNTIC_COMMENT("sent by rmir or smir in insert mode")},   {"kN", 81		UNTIC_COMMENT("next-page key")},   {"kP", 82		UNTIC_COMMENT("prev-page key")},   {"kR", 85		UNTIC_COMMENT("scroll-backward key")},   {"kS", 64		UNTIC_COMMENT("clear-to-end-of-screen key")},   {"kT", 86		UNTIC_COMMENT("set-tab key")},   {"ka", 56		UNTIC_COMMENT("clear-all-tabs key")},   {"kb", 55		UNTIC_COMMENT("backspace key")},   {"kd", 61		UNTIC_COMMENT("down-arrow key")},   {"ke", 88		UNTIC_COMMENT("leave 'keyboard_transmit' mode")},   {"kh", 76		UNTIC_COMMENT("home key")},   {"kl", 79		UNTIC_COMMENT("left-arrow key")},   {"ko", 396		UNTIC_COMMENT("list of self-mapped keycaps")},   {"kr", 83		UNTIC_COMMENT("right-arrow key")},   {"ks", 89		UNTIC_COMMENT("enter 'keyboard_transmit' mode")},   {"kt", 58		UNTIC_COMMENT("clear-tab key")},   {"ku", 87		UNTIC_COMMENT("up-arrow key")},   {"l0", 90		UNTIC_COMMENT("label on function key f0 if not f0")},   {"l1", 91		UNTIC_COMMENT("label on function key f1 if not f1")},   {"l2", 93		UNTIC_COMMENT("label on function key f2 if not f2")},   {"l3", 94		UNTIC_COMMENT("label on function key f3 if not f3")},   {"l4", 95		UNTIC_COMMENT("label on function key f4 if not f4")},   {"l5", 96		UNTIC_COMMENT("lable on function key f5 if not f5")},   {"l6", 97		UNTIC_COMMENT("label on function key f6 if not f6")},   {"l7", 98		UNTIC_COMMENT("label on function key f7 if not f7")},   {"l8", 99		UNTIC_COMMENT("label on function key f8 if not f8")},   {"l9", 100		UNTIC_COMMENT("label on function key f9 if not f9")},   {"la", 92		UNTIC_COMMENT("label on function key f10 if not f10")},   {"le", 14		UNTIC_COMMENT("move left one space")},   {"ll", 18		UNTIC_COMMENT("last line, first column (if no cup)")},   {"ma", 397		UNTIC_COMMENT("map arrow keys rogue(1) motion keys")},   {"mb", 26		UNTIC_COMMENT("turn on blinking")},   {"md", 27		UNTIC_COMMENT("turn on bold (extra bright) mode")},   {"me", 39		UNTIC_COMMENT("turn off all attributes")},   {"mh", 30		UNTIC_COMMENT("turn on half-bright mode")},   {"mk", 32		UNTIC_COMMENT("turn on blank mode (characters invisible)")},   {"ml", 409		UNTIC_COMMENT("memory lock above")},   {"mm", 102		UNTIC_COMMENT("turn on meta mode (8th-bit on)")},   {"mo", 101		UNTIC_COMMENT("turn off meta mode")},   {"mp", 33		UNTIC_COMMENT("turn on protected mode")},   {"mr", 34		UNTIC_COMMENT("turn on reverse video mode")},   {"mu", 410		UNTIC_COMMENT("memory unlock")},   {"nd", 17		UNTIC_COMMENT("move right one space")},   {"nl", 394		UNTIC_COMMENT("use to move down")},   {"nw", 103		UNTIC_COMMENT("newline (behave like cr followed by lf)")},   {"oc", 298		UNTIC_COMMENT("Set all color pairs to the original ones")},   {"op", 297		UNTIC_COMMENT("Set default pair to its original value")},   {"pO", 144		UNTIC_COMMENT("turn on printer for #1 bytes")},   {"pc", 104		UNTIC_COMMENT("padding char (instead of null)")},   {"pf", 119		UNTIC_COMMENT("turn off printer")},   {"pk", 115		UNTIC_COMMENT("program function key #1 to type string #2")},   {"pl", 116		UNTIC_COMMENT("program function key #1 to execute string #2")},   {"pn", 147		UNTIC_COMMENT("program label #1 to show string #2")},   {"po", 120		UNTIC_COMMENT("turn on printer")},   {"ps", 118		UNTIC_COMMENT("print contents of screen")},   {"px", 117		UNTIC_COMMENT("program function key #1 to transmit string #2")},   {"r1", 122		UNTIC_COMMENT("reset string")},   {"r2", 123		UNTIC_COMMENT("reset string")},   {"r3", 124		UNTIC_COMMENT("reset string")},   {"rP", 145		UNTIC_COMMENT("like ip but when in insert mode")},   {"rc", 126		UNTIC_COMMENT("restore cursor to last position of sc")},   {"rf", 125		UNTIC_COMMENT("name of reset file")},   {"rp", 121		UNTIC_COMMENT("repeat char #1 #2 times")},   {"rs", 393		UNTIC_COMMENT("terminal reset string")},   {"s0", 364		UNTIC_COMMENT("Shift to code set 0 (EUC set 0, ASCII)")},   {"s1", 365		UNTIC_COMMENT("Shift to code set 1")},   {"s2", 366		UNTIC_COMMENT("Shift to code set 2")},   {"s3", 367		UNTIC_COMMENT("Shift to code set 3")},   {"sa", 131		UNTIC_COMMENT("define video attributes #1-#9 (PG9)")},   {"sc", 128		UNTIC_COMMENT("save current cursor position")},   {"se", 43		UNTIC_COMMENT("exit standout mode")},   {"sf", 129		UNTIC_COMMENT("scroll text up")},   {"so", 35		UNTIC_COMMENT("begin standout mode")},   {"sp", 301		UNTIC_COMMENT("Set current color pair to #1")},   {"sr", 130		UNTIC_COMMENT("scroll text down")},   {"st", 132		UNTIC_COMMENT("set a tab in every row, current columns")},   {"ta", 134		UNTIC_COMMENT("tab to next 8-space hardware tab stop")},   {"te", 40		UNTIC_COMMENT("strings to end programs using cup")},   {"ti", 28		UNTIC_COMMENT("string to start programs using cup")},   {"ts", 135		UNTIC_COMMENT("move to status line")},   {"u0", 287		UNTIC_COMMENT("User string #0")},   {"u1", 288		UNTIC_COMMENT("User string #1")},   {"u2", 289		UNTIC_COMMENT("User string #2")},   {"u3", 290		UNTIC_COMMENT("User string #3")},   {"u4", 291		UNTIC_COMMENT("User string #4")},   {"u5", 292		UNTIC_COMMENT("User string #5")},   {"u6", 293		UNTIC_COMMENT("User string #6")},   {"u7", 294		UNTIC_COMMENT("User string #7")},   {"u8", 295		UNTIC_COMMENT("User string #8")},   {"u9", 296		UNTIC_COMMENT("User string #9")},   {"uc", 136		UNTIC_COMMENT("underline char and move past it")},   {"ue", 44		UNTIC_COMMENT("exit underline mode")},   {"up", 19		UNTIC_COMMENT("up one line")},   {"us", 36		UNTIC_COMMENT("begin underline mode")},   {"vb", 45		UNTIC_COMMENT("visible bell (may not move cursor)")},   {"ve", 16		UNTIC_COMMENT("make cursor appear normal (undo civis/cvvis)")},   {"vi", 13		UNTIC_COMMENT("make cursor invisible")},   {"vs", 20		UNTIC_COMMENT("make cursor very visible")},   {"wi", 133		UNTIC_COMMENT("current window is lines #1-#2 cols #3-#4")},   {"xl", 361		UNTIC_COMMENT("Program function key #1 to type string #2 and show string #3")},   {"", -1		UNTIC_COMMENT(NULL)}};static int compute_cap_offset (char *cap, SLterminfo_Type *t, Tgetstr_Map_Type *map, unsigned int max_ofs){   char cha, chb;   (void) t;   cha = *cap++; chb = *cap;   while (*map->name != 0)     {	if ((cha == *map->name) && (chb == *(map->name + 1)))	  {	     if (map->offset >= (int) max_ofs) return -1;	     return map->offset;	  }	map++;     }   return -1;}char *_SLtt_tigetstr (SLterminfo_Type *t, char *cap){   int offset;   if (t == NULL)     return NULL;   if (t->flags == SLTERMCAP) return tcap_getstr (cap, t);   offset = compute_cap_offset (cap, t, Tgetstr_Map, t->num_string_offsets);   if (offset < 0) return NULL;   offset = make_integer (t->string_offsets + 2 * offset);   if (offset < 0) return NULL;   return t->string_table + offset;}static Tgetstr_Map_Type Tgetnum_Map[] ={   {"BT", 30		UNTIC_COMMENT("number of buttons on mouse")},   {"Co", 13		UNTIC_COMMENT("maximum numbers of colors on screen")},   {"MW", 12		UNTIC_COMMENT("maxumum number of defineable windows")},   {"NC", 15		UNTIC_COMMENT("video attributes that can't be used with colors")},   {"Nl", 8		UNTIC_COMMENT("number of labels on screen")},   {"Ya", 16		UNTIC_COMMENT("numbers of bytes buffered before printing")},   {"Yb", 17		UNTIC_COMMENT("spacing of pins vertically in pins per inch")},   {"Yc", 18		UNTIC_COMMENT("spacing of dots horizontally in dots per inch")},   {"Yd", 19		UNTIC_COMMENT("maximum value in micro_..._address")},   {"Ye", 20		UNTIC_COMMENT("maximum value in parm_..._micro")},   {"Yf", 21		UNTIC_COMMENT("character size when in micro mode")},   {"Yg", 22		UNTIC_COMMENT("line size when in micro mode")},   {"Yh", 23		UNTIC_COMMENT("numbers of pins in print-head")},   {"Yi", 24		UNTIC_COMMENT("horizontal resolution in units per line")},   {"Yj", 25		UNTIC_COMMENT("vertical resolution in units per line")},   {"Yk", 26		UNTIC_COMMENT("horizontal resolution in units per inch")},   {"Yl", 27		UNTIC_COMMENT("vertical resolution in units per inch")},   {"Ym", 28		UNTIC_COMMENT("print rate in chars per second")},   {"Yn", 29		UNTIC_COMMENT("character step size when in double wide mode")},   {"Yo", 31		UNTIC_COMMENT("number of passed for each bit-image row")},   {"Yp", 32		UNTIC_COMMENT("type of bit-image device")},   {"co", 0		UNTIC_COMMENT("number of columns in aline")},   {"dB", 36		UNTIC_COMMENT("padding required for ^H")},   {"dC", 34		UNTIC_COMMENT("pad needed for CR")},   {"dN", 35		UNTIC_COMMENT("pad needed for LF")},   {"dT", 37		UNTIC_COMMENT("padding required for ^I")},   {"it", 1		UNTIC_COMMENT("tabs initially every # spaces")},   {"kn", 38		UNTIC_COMMENT("count of function keys")},   {"lh", 9		UNTIC_COMMENT("rows in each label")},   {"li", 2		UNTIC_COMMENT("number of lines on screen or page")},   {"lm", 3		UNTIC_COMMENT("lines of memory if > line. 0 => varies")},   {"lw", 10		UNTIC_COMMENT("columns in each label")},   {"ma", 11		UNTIC_COMMENT("maximum combined attributes terminal can handle")},   {"pa", 14		UNTIC_COMMENT("maximum number of color-pairs on the screen")},   {"pb", 5		UNTIC_COMMENT("lowest baud rate where padding needed")},   {"sg", 4		UNTIC_COMMENT("number of blank chars left by smso or rmso")},   {"ug", 33		UNTIC_COMMENT("number of blanks left by ul")},   {"vt", 6		UNTIC_COMMENT("virtual terminal number (CB/unix)")},   {"ws", 7		UNTIC_COMMENT("columns in status line")},   {"", -1		UNTIC_COMMENT(NULL)}};int _SLtt_tigetnum (SLterminfo_Type *t, char *cap){   int offset;   if (t == NULL)     return -1;   if (t->flags == SLTERMCAP) return tcap_getnum (cap, t);   offset = compute_cap_offset (cap, t, Tgetnum_Map, t->num_numbers);   if (offset < 0) return -1;   return make_integer (t->numbers + 2 * offset);}static Tgetstr_Map_Type Tgetflag_Map[] ={   {"5i", 22		UNTIC_COMMENT("printer won't echo on screen")},   {"HC", 23		UNTIC_COMMENT("cursor is hard to see")},   {"MT", 40		UNTIC_COMMENT("has meta key")},   {"ND", 26		UNTIC_COMMENT("scrolling region is non-destructive")},   {"NL", 41		UNTIC_COMMENT("move down with \n")},   {"NP", 25		UNTIC_COMMENT("pad character does not exist")},   {"NR", 24		UNTIC_COMMENT("smcup does not reverse rmcup")},   {"YA", 30		UNTIC_COMMENT("only positive motion for hpa/mhpa caps")},   {"YB", 31		UNTIC_COMMENT("using cr turns off micro mode")},   {"YC", 32		UNTIC_COMMENT("printer needs operator to change character set")},   {"YD", 33		UNTIC_COMMENT("only positive motion for vpa/mvpa caps")},   {"YE", 34		UNTIC_COMMENT("printing in last column causes cr")},   {"YF", 35		UNTIC_COMMENT("changing character pitch changes resolution")},   {"YG", 36		UNTIC_COMMENT("changing line pitch changes resolution")},   {"am", 1		UNTIC_COMMENT("terminal has automatic margins")},   {"bs", 37		UNTIC_COMMENT("uses ^H to move left")},   {"bw", 0		UNTIC_COMMENT("cub1 wraps from column 0 to last column")},   {"cc", 27		UNTIC_COMMENT("terminal can re-define existing colors")},   {"da", 11		UNTIC_COMMENT("display may be retained above the screen")},   {"db", 12		UNTIC_COMMENT("display may be retained below the screen")},   {"eo", 5		UNTIC_COMMENT("can erase overstrikes with a blank")},

⌨️ 快捷键说明

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