2 # MS/PC-DOS ANSI.SYS termcap
4 ansi|color|ansi-color|ibm|ibmpc|ANSI.SYS color:\
6 :co#125:li#44:bs:pt:bl=^G:le=^H:do=^J:\
8 :co#80:li#24:bs:pt:bl=^G:le=^H:do=^J:\
10 :cl=\E[H\E[2J:ce=\E[K:\
11 :ho=\E[H:cm=\E[%i%d;%dH:\
12 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
13 :ti=\E[0;44m:te=\E[0m:\
14 :so=\E[1;35;44m:se=\E[0;44m:\
15 :us=\E[1;31;44m:ue=\E[0;44m:\
16 :mb=\E[5m:md=\E[1m:me=\E[0;44m:
17 mono|ansi-mono|ANSI.SYS:\
19 :co#125:li#44:bs:pt:bl=^G:le=^H:do=^J:\
21 :co#80:li#24:bs:pt:bl=^G:le=^H:do=^J:\
23 :cl=\E[H\E[2J:ce=\E[K:\
24 :ho=\E[H:cm=\E[%i%d;%dH:\
25 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
26 :so=\E[1m:se=\E[m:us=\E[4m:ue=\E[m:\
27 :mb=\E[5m:md=\E[1m:me=\E[m:
29 # This is a termcap for NNANSI.SYS (New & Improved NANSI.SYS),
30 # a faster and more complete public domain replacement for
31 # ANSI.SYS, and two other ANSI.SYS replacements, NANSI.SYS and
34 # NANSI and ZANSI support line insert (al) and delete (dl)
35 # and character insert (ic) and delete (dc) where ANSI.SYS
36 # does not. NNANSI.SYS also supports clear to end of display
37 # (cd), does reverse video (mr) properly, and emulates SGR
38 # more fully, allowing correct end sequences for standout (se)
39 # and end of underline (ue).
41 nnansi-mono|NNANSI.SYS:\
43 :co#125:li#45:bs:pt:bl=^G:le=^H:do=^J:\
45 :co#80:li#25:bs:pt:bl=^G:le=^H:do=^J:\
47 :cl=\E[2J:cd=\E[J:ce=\E[K:\
48 :ho=\E[H:cm=\E[%i%d;%dH:\
49 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
52 :mb=\E[5m:md=\E[1m:mh=\E[2m:mr=\E[7m:me=\E[m:\
53 :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:
54 nnansi|NNANSI.SYS color:\
56 :co#125:li#45:bs:pt:bl=^G:le=^H:do=^J:\
58 :co#80:li#25:bs:pt:bl=^G:le=^H:do=^J:\
60 :cl=\E[2J:cd=\E[J:ce=\E[K:\
61 :ho=\E[H:cm=\E[%i%d;%dH:\
62 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
63 :ti=\E[0;44m:te=\E[0m:\
64 :so=\E[1;35;44m:se=\E[2;37m:\
66 :mb=\E[5m:md=\E[1m:mh=\E[2m:mr=\E[7m:me=\E[0;44m:\
67 :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:
68 nansi-mono|zansi-mono|N/ZANSI.SYS:\
70 :co#125:li#45:bs:pt:bl=^G:le=^H:do=^J:\
72 :co#80:li#25:bs:pt:bl=^G:le=^H:do=^J:\
75 :ho=\E[H:cm=\E[%i%d;%dH:\
76 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
78 :so=\E[1;35m:se=\E[0m:\
79 :us=\E[1;31m:ue=\E[0m:\
80 :mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:\
81 :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:
82 nansi|zansi|N/ZANSI.SYS color:\
84 :co#125:li#45:bs:pt:bl=^G:le=^H:do=^J:\
86 :co#80:li#25:bs:pt:bl=^G:le=^H:do=^J:\
89 :ho=\E[H:cm=\E[%i%d;%dH:\
90 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
91 :ti=\E[0;44m:te=\E[0m:\
92 :so=\E[1;35;44m:se=\E[0;44m:\
93 :us=\E[1;31;44m:ue=\E[0;44m:\
94 :mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[0;44m:\
95 :al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:
98 # for VT100/200/&c in VT52 mode, add :ti=\E[?2l:
101 :co#125:li#44:bs:pt:bl=^G:le=^H:do=^J:\
103 :co#80:li#24:bs:pt:bl=^G:le=^H:do=^J:\
105 :cl=\EH\EJ:ce=\EK:cd=\EJ:\
106 :ho=\EH:cm=\EY%+ %+ :\
107 :up=\EA:do=\EB:le=\EC:ri=\ED:nd=\EC:\
108 :ku=\EA:kd=\EB:kl=\EC:kr=\ED:kb=^H:\
109 :sr=\EI:as=\EF:ae=\EG:
111 # For Amiga or VMS NetHack:
112 # VT100 or clone without the advanced video option installed
113 vt100|amiga|vt100-80|vt100-noavo|DEC VT100:\
115 :co#125:li#44:bs:pt:am:mi:bl=^G:le=^H:do=^J:xo:vt#3:\
117 :co#80:li#24:bs:pt:am:mi:bl=^G:le=^H:do=^J:xo:vt#3:\
119 :cl=50\E[H\E[J:ce=3\E[K:cd=50\E[J:\
120 :ho=\E[H:cm=5\E[%i%d;%dH:cs=\E[%i%d;%dr:\
121 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
122 :UP=\E[%dA:DO=\E[%dB:LE=\E[%dC:RI=\E[%dD:\
123 :so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
124 :mb=2\E[5m:md=2\E[1m:mr=2\E[7m:me=2\E[m:\
125 :ti=4\E<\E(B\E)0:as=^N:ae=^O:\
126 :ks=\E[?1h\E=:ke=\E[?1l\E>:ku=\E[A:kd=\E[B:kl=\E[C:kr=\E[D:kb=^H:\
127 :kn#4:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
128 :sc=\E7:ec=\E8:sr=5\EM:
131 # includes VT100 with advanced video option
132 vt102|vt102-80|vt100-avo|DEC VT102:\
133 :im=\E[4h:ei=\E[4l:al=5\E[L:dl=5\E[M:dc=5\E[P:\
134 :AL=9\E[%dL:DL=9\E[%dM:tc=vt100:
135 vt200|vt200-80|vt220|vt240|vt241|VT200_Series:\
137 vt300|vt300-80|vt320|vt330|vt340|VT300_Series:\
139 vt400|vt400-80|vt420|VT400_Series:\
141 # VAXstations (should have full entries with no delays and 8-bit CSI's)
145 # Wide screen (magnifying glass not included;-)
146 # note: vt100 w/o AVO only supports 14 lines when in 132-column mode
147 vt132|vt100-132:vt102-132:\
148 :co#132:ti=9\E<\E(B\E)0\E[?3h:tc=vt102:
149 vt200-132|vt300-132:\
150 :co#132:ti=9\E<\E(B\E)0\E[?3h:tc=vt200:
153 # For really complete ANSI emulations (FANSI-CONSOLE?):
155 AX|ANSI X3.64|full ANSI X3.64 (1977) standard:\
157 :co#125:li#44:bs:pt:am:mi:bl=^G:le=^H:\
159 :co#80:li#24:bs:pt:am:mi:bl=^G:le=^H:\
161 :cl=\E[2J:ce=\E[K:cd=\E[J:\
162 :ho=\E[H:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:\
163 :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\
164 :UP=\E[%dA:DO=\E[%dB:LE=\E[%dC:RI=\E[%dD:\
165 :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
166 :mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:as=^N:ae=^O:\
167 :ku=\E[A:kd=\E[B:kl=\E[C:kr=\E[D:kb=^H:\
168 :kn#4:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
169 :im=\E[4h:ei=\E[4l:al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:sf=\ED:sr=\EM:
171 # For PC-9800 NetHack:
173 pc9800|pc9801|pc98|NEC PC-9800 Series:\
179 :cm=\E[%i%d;%dH:ho=\E[H:ll=\E[25;1H:cr=^M:le=^H:nd=^L:\
180 :up=\EM:do=\ED:bw:nw=\EE:sc=\E[s:rc=\E[u:ta=^I:bc=^H:bs:nl=\ED:\
183 :cl=\E*:cd=\E[J:ce=\E[K:\
184 :al=\E[L:dl=\E[M:AL=\E[%dL:DL=\E[%dM:\
186 :mb=\E[5m:md=\E[33m:mh=\E[32m:mk=\E[8m:me=\E[m:\
189 :vi=\E[>5h:ve=\E[>5l:\
191 :kl=\E[D:kr=\E[C:ku=\E[A:kd=\E[B:\
192 :k0=\EZ:k1=\ES:k2=\ET:k3=\EU:k4=\EV:\
193 :k5=\EW:k6=\EE:k7=\EJ:k8=\EP:k9=\EQ:\
195 :ti=\E[0;37m\E[>1h\E[>5l:te=\E[0;37m\E[>1l:
197 # Display hacker's tool
199 debug|debugging entry:\
200 :ae=<ae>:AL=<AL%d>:al=<al>:am:as=<as>:bl=<bl>:bs:bt=<bt>:bw:CC=<CC>:\
202 :cd=<cd>:ce=<ce>:ch=<ch%d>:cl=<cl>:cm=<cm%d,%d>:co#125:cr=<cr>:\
204 :cd=<cd>:ce=<ce>:ch=<ch%d>:cl=<cl>:cm=<cm%d,%d>:co#80:cr=<cr>:\
206 :cs=<cs%d,%d>:ct=<ct>:cv=<cv%d>:da:db:DC=<DC%d>:dc=<dc>:DL=<DL%d>:\
207 :dl=<dl>:dm=<dm>:DO=<DO%d>:do=<do>:ds=<ds>:ec=<ec%d>:ed=<ed>:ei=<ei>:\
208 :es:fs=<fs>:ho=<ho>:hs:IC=<IC%d>:ic=<ic>:im=<im>:ip=<ip>:is=<is>:\
210 :it#8:ke=<ke>:LE=<LE%d>:le=<le>:li#44:ll=<ll>:mb=<mb>:md=<md>:me=<me>:\
212 :it#8:ke=<ke>:LE=<LE%d>:le=<le>:li#24:ll=<ll>:mb=<mb>:md=<md>:me=<me>:\
214 :mh=<mh>:mi:mk=<mk>:mm=<mm>:mo=<mo>:mp=<mp>:mr=<mr>:ms=<ms>:nd=<nd>:\
215 :nw=<nw>:pc=<pc>:pf=<pf>:pO=<pO%d>:po=<po>:ps=<ps>:rc=<rc>:RI=<RI%d>:\
216 :rp=<rp%.%d>:rs=<rs>:sc=<sc>:se=<se>:SF=<SF%d>:sf=<sf>:so=<so>:\
217 :SR=<SR%d>:sr=<sr>:st=<st>:ta=<ta>:te=<te>:ti=<ti>:uc=<uc>:ue=<ue>:\
218 :UP=<UP%d>:up=<up>:us=<us>:vb=<vb>:ve=<ve>:vi=<vi>:vs=<vs>:
221 :am:bl=^G:co#80:do=^J:nl=^M^J: