📄 termcap.src
字号:
# have the full documentation and several programs which use tam. It also# used an extended terminfo format to describe key sequences, special# highlighting modes, etc.) # # KEYS: This means that ncurses would quite painful on the UNIX PC, since# there are two sequences for every key-modifier combination (local keyboard# sequence and remote "VT100" sequence.) But I doubt many people are trying# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume) # seem to have been built from the manual describing the VT100 sequences. # This means it doesn't work for a real live UNIX PC. # # FONTS: The UNIX PC also has a strange interpretation of "alternate# character set". Rather than the VT100 graphics you might expect, it allows# up to 8 custom fonts to be loaded at any given time. This means that# programs expecting VT100 graphics will usually be disappointed. For this# reason I have disabled the smacs/rmacs sequences, but they could easily be# re-enabled. Here are the relevant control sequences (from the ESCAPE(7) # manpage), should you wish to do so: # # SGR10 - Select font 0 - ESC [ 10 m or SO# SGR11 - Select font 1 - ESC [ 11 m or SI# SGR12 - Select font 2 - ESC [ 12 m# ... (etc.)# SGR17 - Select font 7 - ESC [ 17 m# # Graphics for line drawing are not reliably found at *any* character# location because the UNIX PC has dynamically reloadable fonts. I use font# 0 for regular text and font 1 for italics, but this is by no means# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.# # MISC: The cursor visible/cursor invisible sequences were swapped in the# distributed terminfo.# # To ameliorate these problems (and fix a few highlighting bugs) I rewrote# the UNIX PC terminfo entry. The modified version works great with Lynx,# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC# attached by serial cable. In Emacs, even the Undo key works, and many# applications can now use the F1-F8 keys. # # esr's notes:# Terminfo entry for the AT&T Unix PC 7300# from escape(7) in Unix PC 7300 Manual.# Somewhat similar to a vt100-am (but different enough# to redo this from scratch.)## /***************************************************************# *# * FONT LOADING PROGRAM FOR THE UNIX PC# *# * This routine loads a font defined in the file ALTFONT# * into font memory slot #1. Once the font has been loaded,# * it can be used as an alternative character set.# *# * The call to ioctl with the argument WIOCLFONT is the key # * to this routine. For more information, see window(7) in # * the PC 7300 documentation.# ***************************************************************/# #include <string.h> /* needed for strcpy call */# #include <sys/window.h> /* needed for ioctl call */# #define FNSIZE 60 /* font name size */# #define ALTFONT "/usr/lib/wfont/special.8.ft" /* font file */# /*# * The file /usr/lib/wfont/special.8.ft comes with the# * standard PC software. It defines a graphics character set# * similar to that of the Teletype 5425 terminal. To view# * this or other fonts in /usr/lib/wfont, use the command# * cfont <filename>. For further information on fonts see# * cfont(1) in the PC 7300 documentation.# */# # struct altfdata /* structure for alt font data */# {# short altf_slot; /* memory slot number */# char altf_name[FNSIZE]; /* font name (file name) */# };# ldfont()# {# int wd; /* window in which altfont will be */# struct altfdata altf;# altf.altf_slot=1;# strcpy(altf.altf_name,ALTFONT);# for (wd =1; wd < 12; wd++) {# ioctl(wd, WIOCLFONT,&altf);# }# }## (att7300: added :vi:/:ve:/:ic:/<invis> from the BSDI entry,# they're confirmed by the man page for the System V display---esr)## (untranslatable capabilities removed to fit entry within 1023 bytes)# (sgr removed to fit entry within 1023 bytes)# (acsc removed to fit entry within 1023 bytes)# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300:\ :am:xo:\ :co#80:it#8:li#24:\ :AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\ :UP=\E[%dA:al=\E[L:bl=^G:bt=\E^I:cd=\E[0J:ce=\E[0K:\ :cl=\E[2J\E[H:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:dl=\E[M:\ :do=\E[B:ei=:ho=\E[H:i1=\017\E[=1w:ic=\E[@:im=:k1=\EOc:\ :k2=\EOd:k3=\EOe:k4=\EOf:k5=\EOg:k6=\EOh:k7=\EOi:k8=\EOj:\ :kD=\ENf:kI=\ENj:kN=\E[U:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:\ :kl=\E[D:kr=\E[C:ku=\E[A:le=^H:mb=\E[9m:md=\E[1m:\ :me=\E[0;10m:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:se=\E[m:\ :sf=^J:so=\E[7m:sr=\EM:ue=\E[m:up=\E[A:us=\E[4m:ve=\E[=0C:\ :vi=\E[=1C:# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is# from SGI's terminfo database. SGI's entry shows F9-F12 with the codes# for the application keypad mode. We have added iris-ansi-ap rather than# change the original to keypad mode.## (iris-ansi: added rmam/smam based on init string -- esr)## This entry, and those derived from it, is used in xwsh (also known as# winterm). Some capabilities that do not fit into the terminfo model# include the shift- and control-functionkeys:## F1-F12 generate different codes when shift or control modifiers are used.# For example:# F1 \E[001q# shift F1 \E[013q# control-F1 \E[025q## In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,# \EOP to \EOS. The shifted and control modifiers still do the same thing.## The cursor keys also have different codes:# control-up \E[162q# control-down \E[165q# control-left \E[159q# control-right \E[168q## shift-up \E[161q# shift-down \E[164q# shift-left \E[158q# shift-right \E[167q## control-tab \[072q#iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100):\ :am:\ :co#80:it#8:li#40:\ :!2=\E[218q:#2=\E[143q:#4=\E[158q:%9=\E[209q:%f=\E[210q:\ :%i=\E[167q:&7=\E[217q:*4=\E[P:*7=\E[147q:@7=\E[146q:\ :@8=^M:AL=\E[%dL:DL=\E[%dM:DO=\E[%dB:F1=\E[011q:\ :F2=\E[012q:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:\ :UP=\E[%dA:al=\E[L:bl=^G:cb=\E[1K:cd=\E[J:ce=\E[K:\ :cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:ct=\E[3g:dl=\E[M:do=^J:\ :ho=\E[H:is=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8:\ :k1=\E[001q:k2=\E[002q:k3=\E[003q:k4=\E[004q:k5=\E[005q:\ :k6=\E[006q:k7=\E[007q:k8=\E[008q:k9=\E[009q:k;=\E[010q:\ :kB=\E[Z:kD=\177:kI=\E[139q:kM=\E[146q:kN=\E[154q:\ :kP=\E[150q:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:\ :le=\E[D:md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:nw=\EE:\ :pk=\EP101;%d.y%s\E\\:rc=\E8:sc=\E7:se=\E[m:sf=\ED:\ :so=\E[1;7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:up=\E[A:us=\E[4m:\ :ve=\E[9/y\E[12/y\E[=6l:vs=\E[10/y\E[=1h\E[=2l\E[=6h:iris-ansi-ap|IRIS ANSI in application-keypad mode:\ :@8=\EOM:F1=\E[011q:F2=\E[012q:is=\E[?1l\E=\E[?7h:\ :k9=\E[009q:k;=\E[010q:tc=iris-ansi:# From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX# (T.Dickey 98/1/24)iris-color|xwsh|IRIX ANSI with color:\ :NC#33:\ :DC=\E[%dP:IC=\E[%d@:ZH=\E[3m:ZR=\E[23m:cs=\E[%i%d;%dr:\ :ec=\E[%dX:ei=:im=:mh=\E[2m:r1=\Ec:\ :r2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:rc=\E8:sc=\E7:\ :u6=\E[%i%d;%dR:u7=\E[6n:u8=\E[?1;2c:u9=\E[c:ue=\E[24m:\ :tc=klone+color:tc=iris-ansi-ap:# The following is a version of the ibm-pc entry distributed with PC/IX,# (Interactive Systems' System 3 for the Big Blue), modified by Richard# McIntosh at UCB/CSM. The :pt: and :uc: have been removed from the original,# (the former is untrue, and the latter failed under UCB/man); standout and# underline modes have been added. Note: this entry describes the "native"# capabilities of the PC monochrome display, without ANY emulation; most# communications packages (but NOT PC/IX connect) do some kind of emulation.pcix|PC/IX console:\ :am:bw:eo:\ :co#80:li#24:\ :cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:do=\E[B:ho=\E[H:\ :le=^H:me=\E[m:nd=\E[C:se=\E[m:so=\E[7m:ue=\E[m:up=\E[A:\ :us=\E[4m:# (ibmpcx: this entry used to be known as ibmx.# It formerly included the following extension capabilities:# :GC=b:GL=v:GR=t:RT=^J:\# :GH=\E[196g:GV=\E[179g:\# :GU=\E[193g:GD=\E[194g:\# :G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\# :CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\# :WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\# I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate# ":kh=\E[Y:". Added IBM-PC forms characters and highlights, they match# what was there before. -- esr)ibmpcx|xenix|ibmx|IBM PC xenix console display:\ :am:bs:ms:\ :co#80:li#25:\ :@7=\E[d:al=\E[L:cd=\E[J:ce=\E[K:cl=^L:cm=\E[%d;%dH:\ :dc=\E[P:dl=\E[M:do=\E[B:ei=:ho=\E[H:ic=\E[@:im=:k1=\E[K:\ :k2=\E[L:k3=\E[M:k4=\E[N:kN=\E[e:kP=\E[Z:kb=^H:kd=\E[B:\ :kh=\E[Y:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:nd=\E[C:up=\E[A:\ :tc=klone+acs:tc=klone+sgr:#### QNX## QNX 4.0 Console# Michael's original version of this entry had <am@>, :ti=\Ei:,# :te=\Eh\ER:; this was so terminfo applications could write the lower# right corner without triggering a scroll. The ncurses terminfo library can# handle this case with the :ic: capability, and prefers :am: for better# optimization. Bug: The <op> capability resets attributes.# From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996# (removed: :sa=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,:)# (untranslatable capabilities removed to fit entry within 1023 bytes)# (sgr removed to fit entry within 1023 bytes)# (acsc removed to fit entry within 1023 bytes)# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)qnx|qnx4|qnx console:\ :km:mi:ms:xt:\ :co#80:it#4:li#25:\ :al=\EE:bl=^G:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=\EY%+ %+ :cr=^M:\ :dc=\Ef:dl=\EF:do=^J:ei=:ho=\EH:ic=\Ee:im=:k1=\377\201:\ :k2=\377\202:k3=\377\203:k4=\377\204:k5=\377\205:\ :k6=\377\206:k7=\377\207:k8=\377\210:k9=\377\211:\ :kD=\377\254:kI=\377\253:kN=\377\252:kP=\377\242:\ :kd=\377\251:kh=\377\240:kl=\377\244:kr=\377\246:\ :ku=\377\241:le=^H:mb=\E{:md=\E<:me=\E}\E]\E>\E):mr=\E(:\ :nd=\EC:rp=\Eg%r%+ %.:se=\E):sf=^J:so=\E(:sr=\EI:ta=^I:\ :te=\Eh\ER:ti=\Ei:ue=\E]:up=\EA:us=\E[:ve=\Ey1:vi=\Ey0:\ :vs=\Ey2:##qnxt|qnxt4|QNX4 terminal:\ :YB:tc=qnx4:#qnxm|QNX4 with mouse events:\ :Yd#1:\ :ZC=\E/:ZD=\E":ZJ=\E/>2h:ZT=\E/>2l:ZZ=\E/>1l\E/>9h:\ :Za=\E/>7h:Zb=\E/>7l:Zd=\E/>6l:Zf=\E/>1h:Zg=\E/>1h:\ :Zh=\E/>1h\E/>9l:Zi=\E/>6h:i1=\E/0t:tc=qnx4:#qnxw|QNX4 windows:\ :YD:tc=qnxm:## Monochrome QNX4 terminal or console. Setting this terminal type will# allow an application running on a color console to behave as if it# were a monochrome terminal. Output will be through stdout instead of# console writes because the term routines will recognize that the# terminal name starts with 'qnxt'.#qnxtmono|Monochrome QNX4 terminal or console:\ :Co@:pa@:\ :sp@:tc=qnx4:# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998# (esr: commented out <scp> and :te: to avoid warnings.)# (TD: derive from original qnx4 entry)qnxt2|qnx 2.15 serial terminal:\ :am:\ :!3@:%h@:%j@:&7@:Sb@:Sf@:dc@:ei=:ic@:im=:rp@:se=\E>:so=\E<:te@:ti@:\ :ve@:vi@:vs@:tc=qnx4:# QNX ANSI terminal definition# (untranslatable capabilities removed to fit entry within 1023 bytes)# (sgr removed to fit entry within 1023 bytes)# (acsc removed to fit entry within 1023 bytes)# (terminfo-only capabilities suppressed to fit entry within 1023 bytes)qansi-g|QNX ANSI:\ :am:es:hs:xo:\ :co#80:it#8:li#25:ws#80:\ :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\ :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=^O:\ :al=\E[1L:as=^N:bl=^G:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:\ :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[2g:dc=\E[P:\ :dl=\E[1M:do=\E[B:ds=\E[r:ec=\E[%dX:ei=:fs=\E[?6h\E8:\ :ho=\E[H:i2=\E(B\E)0:ic=\E[1@:im=:\ :is=\E>\E[?1l\E[?7h\E[0;10;39;49m:k1=\EOP:k2=\EOQ:\ :k3=\EOR:k4=\EOS:k5=\EOT:k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:\ :kD=\E[P:kI=\E[@:kN=\E[U:kP=\E[V:kb=^H:kd=\E[B:kh=\E[H:\ :kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:ll=\E[99H:mb=\E[5m:\ :md=\E[1m:me=\E[m\017:mh=\E[2m:mr=\E[7m:nd=\E[C:nw=\EE:\ :se=\E[27m:sf=\E[S:so=\E[7m:sr=\E[T:st=\EH:ta=^I:\ :ts=\E7\E1;24r\E[?6l\E[25;%i%dH:ue=\E[24m:up=\E[A:\ :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h\E[?12l:vi=\E[?25l:\ :vs=\E[?12;25h:#qansi|QNX ansi with console writes:\
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -