📄 terminfo.src
字号:
lpr|printer|line printer, OTbs, hc, os, cols#132, lines#66, bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ind=^J, glasstty|classic glass tty interpreting ASCII control characters, OTbs, am, cols#80, bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ht=^I, kcub1=^H, kcud1=^J, nel=^M^J, .kbs=^H, vanilla|dumb tty, OTbs, bel=^G, cr=^M, cud1=^J, ind=^J, #### ANSI.SYS/ISO 6429/ECMA-48 Capabilities## See the end-of-file comment for more on these.## ANSI capabilities are broken up into pieces, so that a terminal# implementing some ANSI subset can use many of them.ansi+local1, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A, ansi+local, cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC, cuu=\E[%p1%dA, use=ansi+local1, ansi+tabs, cbt=\E[Z, ht=^I, hts=\EH, tbc=\E[2g, ansi+inittabs, it#8, use=ansi+tabs, ansi+erase, clear=\E[H\E[J, ed=\E[J, el=\E[K, ansi+rca, hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd, ansi+cup, cup=\E[%i%p1%d;%p2%dH, home=\E[H, ansi+rep, rep=%p1%c\E[%p2%{1}%-%db, ansi+idl1, dl1=\E[M, il1=\E[L, ansi+idl, dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1, ansi+idc, dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@, rmir=\E6, smir=\E6, ansi+arrows, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, ansi+sgr|ansi graphic renditions, blink=\E[5m, invis=\E[8m, rev=\E[7m, sgr=\E[0%?%p3%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%;, sgr0=\E[0m, ansi+sgrso|ansi standout only, rmso=\E[m, smso=\E[7m, ansi+sgrul|ansi underline only, rmul=\E[m, smul=\E[4m, ansi+sgrbold|ansi graphic renditions; assuming terminal has bold; not dim, bold=\E[1m, sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m, use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul, ansi+sgrdim|ansi graphic renditions; assuming terminal has dim; not bold, dim=\E[2m, sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;%;%?%p7%t8;%;m, use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul, ansi+pp|ansi printer port, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, ansi+csr|ansi scroll-region plus cursor save & restore, csr=\E[%i%p1%d;%p2%dr, rc=\E8, sc=\E7, # The IBM PC alternate character set. Plug this into any Intel console entry.# We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the# ROM graphics for control characters such as the diamond, up- and down-arrow.# This works with the System V, Linux, and BSDI consoles. It's a safe bet this# will work with any Intel console, they all seem to have inherited \E[11m# from the ANSI.SYS de-facto standard.klone+acs|alternate character set for ansi.sys displays, acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, rmacs=\E[10m, smacs=\E[11m, # Highlight controls corresponding to the ANSI.SYS standard. Most # console drivers for Intel boxes obey these. Makes the same assumption# about \E[11m as klone+acs. True ANSI/ECMA-48 would have <rmso=\E[27m>,# <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.klone+sgr|attribute control for ansi.sys displays, blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, rmpch=\E[10m, rmso=\E[m, rmul=\E[m, sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m, use=klone+acs, # Highlight controls corresponding to the ANSI.SYS standard. *All*# console drivers for Intel boxes obey these. Does not assume \E[11m will# work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS# diamond and arrow characters under curses.klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m), blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m, sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, use=klone+acs, # KOI8-R (RFC1489) acs (alternate character set)# From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset, acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i\220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t\206u\207v\210w\211x\201y\230z\231{\267|\274}L~\225, rmacs=\E[10m, smacs=\E[11m, # ANSI.SYS color control. The setab/setaf caps depend on the coincidence# between SVr4/XPG4's color numbers and ANSI.SYS attributes. Here are longer# but equivalent strings that don't rely on that coincidence:# setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,# setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,# The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.# They match a subset of ECMA-48.klone+color|color control for ansi.sys and ISO6429-compatible displays, colors#8, ncv#3, pairs#64, op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, # This is better than klone+color, it doesn't assume white-on-black as the# default color pair, but many `ANSI' terminals don't grok the <op> cap.ecma+color|color control for ECMA-48-compatible terminals, AX, colors#8, ncv#3, pairs#64, op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, # Attribute control for ECMA-48-compatible terminalsecma+sgr|attribute capabilities for true ECMA-48 terminals, rmso=\E[27m, rmul=\E[24m, use=klone+sgr, # For comparison, here are all the capabilities implied by the Intel# Binary Compatibility Standard (level 2) that fit within terminfo.# For more detail on this rather pathetic standard, see the comments# near the end of this file.ibcs2|Intel Binary Compatibility Standard prescriptions, cbt=\E[Z, clear=\Ec, cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, dch=\E[%p1%dP, dispc=\E=%p1%dg, ech=\E[%p1%dX, hpa=\E[%i%p1%dG, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, indn=\E[%p1%dS, rc=\E7, rin=\E[%p1%dT, rmam=\E[?7l, sc=\E7, smam=\E[?7h, tbc=\E[g, vpa=\E[%i%p1%dd, #### ANSI/ECMA-48 terminals and terminal emulators## See near the end of this file for details on ANSI conformance.# Don't mess with these entries! Lots of other entries depend on them!## This section lists entries in a least-capable to most-capable order.# if you're in doubt about what `ANSI' matches yours, try them in that# order and back off from the first that breaks.# ansi-mr is for ANSI terminals with ONLY relative cursor addressing# and more than one page of memory. It uses local motions instead of# direct cursor addressing, and makes almost no assumptions. It does# assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.ansi-mr|mem rel cup ansi, am, xon, cols#80, lines#24, use=vanilla, use=ansi+erase, use=ansi+local1, # ansi-mini is a bare minimum ANSI terminal. This should work on anything, but # beware of screen size problems and memory relative cursor addressing.ansi-mini|any ansi terminal with pessimistic assumptions, am, xon, cols#80, lines#24, use=vanilla, use=ansi+cup, use=ansi+erase, # ansi-mtabs adds relative addressing and minimal tab support ansi-mtabs|any ansi terminal with pessimistic assumptions, it#8, ht=^I, use=ansi+local1, use=ansi-mini, # ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL## The following is an entry for the full ANSI 3.64 (1977). It lacks# padding, but most terminals using the standard are "fast" enough# not to require any -- even at 9600 bps. If you encounter problems,# try including the padding specifications.## Note: the :as: and :ae: specifications are not implemented here, for# the available termcap documentation does not make clear WHICH alternate# character set to specify. ANSI 3.64 seems to make allowances for several.# Please make the appropriate adjustments to fit your needs -- that is# if you will be using alternate character sets.## There are very few terminals running the full ANSI 3.64 standard,# so I could only test this entry on one verified terminal (Visual 102).# I would appreciate the results on other terminals sent to me.## Please report comments, changes, and problems to:## U.S. MAIL: Hugh Hansard# Box: 22830# Emory University# Atlanta, GA. 30322.## USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.## (Added vt100 <rc>,<sc> to quiet a tic warning --esr)ansi77|ansi 3.64 standard 1977 version, OTbs, am, mir, cols#80, it#8, lines#24, bel=^G, clear=\E[;H\E[2J, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M$<5*/>, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOR, kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, smir=\E[4h, smso=\E[7m, smul=\E[4m, # Procomm and some other ANSI emulations don't recognize all of the ANSI-# standard capabilities. This entry deletes <cuu>, <cuf>, <cud>, <cub>, and # <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>, # <cuf1>, <cud1> and <cub1>. Also deleted <ich> and <ich1>, as QModem up to # 5.03 doesn't recognize these. Finally, we delete <rep> and <ri>, which seem# to confuse many emulators. On the other hand, we can count on these programs# doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured # <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under# ANSI.SYS influence.# From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode), OTbs, am, mir, msgr, cols#80, it#8, lines#24, bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, tbc=\E[2g, use=klone+sgr-dumb, pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode), lines#25, use=pcansi-m, pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode), lines#33, use=pcansi-m, pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode), lines#43, use=pcansi-m, # The color versions. All PC emulators do color...pcansi|ibm-pc terminal programs claiming to be ansi, use=klone+color, use=pcansi-m, pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines, lines#25, use=pcansi, pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines, lines#33, use=pcansi, pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines, lines#43, use=pcansi, # ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.# If you want pound signs rather than dollars, replace `B' with `A'# in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes, mc5i, cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC, cuu=\E[%p1%dA, dch=\E[%p1%dP, dl=\E[%p1%dM, ech=\E[%p1%dX, el1=\E[1K, hpa=\E[%i%p1%dG, ht=\E[I, ich=\E[%p1%d@, il=\E[%p1%dL, indn=\E[%p1%dS, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S, rep=%p1%c\E[%p2%{1}%-%db, rin=\E[%p1%dT, s0ds=\E(B, s1ds=\E)B, s2ds=\E*B, s3ds=\E+B, tbc=\E[2g, vpa=\E[%i%p1%dd, use=pcansi-m, # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in# standard terminfo. Assumes ANSI.SYS-compatible attributes and color.# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995ansi|ansi/pc-term compatible with color, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c, u9=\E[c, use=ecma+color, use=klone+sgr, use=ansi-m, # ansi-generic is a vanilla ANSI terminal. This is assumed to implement # all the normal ANSI stuff with no extensions. It assumes # insert/delete line/char is there, so it won't work with # vt100 clones. It assumes video attributes for bold, blink, # underline, and reverse, which won't matter much if the terminal # can't do some of those. Padding is assumed to be zero, which # shouldn't hurt since xon/xoff is assumed.ansi-generic|generic ansi standard terminal, am, xon, cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup, use=ansi+rca, use=ansi+erase, use=ansi+tabs, use=ansi+local, use=ansi+idc, use=ansi+idl, use=ansi+rep, use=ansi+sgrbold, use=ansi+arrows, #### DOS ANSI.SYS variants## This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -