3 # Special "terminals". These are used to label tty lines when you don't
4 # know what kind of terminal is on it. The characteristics of an unknown
5 # terminal are the lowest common denominator - they look about like a ti 700.
6 # The last one, "other", is like unknown but it allows an escape from software
7 # that insists that a "real" unknown terminal is merely so far unspecified.
13 :bl=^G:cr=^M:do=^J:sf=^J:
17 other|none of the above, but not exactly unknown:\
22 arpanet|bussiplexer|dialup|ethernet|network|net|patch|plugboard|switch|network switch or dialup:\
24 lpr|printer|print|printing|line printer:\
27 :bl=^G:cr=^M:do=^J:ff=^L:le=^H:sf=^J:
29 #### ANSI terminals and terminal emulators
31 # See near the end of this file for details on ANSI conformance.
32 # Don't mess with these entries! Lots of other entries depend on them!
34 # This section lists entries in a least-capable to most-capable order.
35 # if you're in doubt about what `ANSI' matches yours, try them in that
36 # order and back off from the first that breaks.
38 # (ansi: changed ":pt:" to ":it#8:" -- esr)
39 ansi-mini|any ansi terminal with pessimistic assumptions:\
42 :ce=\E[K:cl=\E[;H\E[2J:cm=\E[%i%d;%dH:do=\E[B:\
43 :ho=\E[H:le=\E[D:nd=\E[C:up=\E[A:
45 # Color controls corresponding to the ANSI.SYS de-facto standard
46 # (This is not a standalone entry)
49 :AB=\E[4%p1%dm:AF=\E[3%p1%dm:\
50 :..Sb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m:\
51 :..Sf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m:\
54 # Procomm and some other ANSI emulations don't recognize all of the ANSI-
55 # standard capabilities. This entry deletes cuu, cuf, cud, cub, and vpa/hpa
56 # capabilities, forcing curses to use repetitions of cuu1, cuf1, cud1 and cub1.
57 # Also deleted ich and ich1, as QModem up to 5.03 doesn't recognize these.
58 # Finally, we delete rep and ri, which seem to confuse many emulators.
59 # On the other hand, we can count on these programs doing rmacs/smacs/sgr.
60 # From: Eric S. Raymond <esr@snark.thyrsus.com> July 25 1995
61 pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode):\
64 :ae=\E[10m:al=\E[L:as=\E[12m:bl=^G:bt=\E[Z:cd=\E[J:\
65 :ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:ct=\E[2g:\
66 :dc=\E[P:dl=\E[M:do=\E[B:ho=\E[H:kb=^H:kd=\E[B:\
67 :kh=\E[H:kl=\E[D:kr=\E[C:ku=\E[A:le=\E[D:mb=\E[5m:\
68 :md=\E[1m:me=\E[0m:mk=\E[9m:mr=\E[7m:nd=\E[C:\
69 :..sa=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p8%t;11%;%?%p9%t;12%;m:\
70 :se=\E[m:sf=^J:so=\E[7m:st=\EH:ta=^I:ue=\E[m:up=\E[A:\
72 pcansi-mono25|ibm-pc terminal programs with 25 lines (mono mode):\
75 pcansi-mono33|ibm-pc terminal programs with 33 lines (mono mode):\
78 pcansi-mono43|ibm-pc terminal programs with 43 lines (mono mode):\
81 # The color versions. All PC emulators do color...
82 pcansi|ibm-pc terminal programs claiming to be ansi:\
83 :tc=ansi-pc-color:tc=pcansi-mono:
84 pcansi-25|ansi25|ibm-pc terminal programs with 25 lines:\
87 pcansi-33|ansi33|ibm-pc terminal programs with 33 lines:\
90 pcansi-43|ansi43|ibm-pc terminal programs with 43 lines:\
94 # From: Eric S. Raymond <esr@snark.thyrsus.com> Feb 3 1995
95 # ansi-mono -- full X.364 with ANSI.SYS-compatible attributes, no color.
96 # Function-key mappings aren't in X3.64 but these are pretty standard.
97 # If you want pound signs rather than dollars, replace `B' with `A'
98 # in the s?ds capabilities.
99 ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes:\
101 :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[W:\
102 :F2=\E[X:IC=\E[%d@:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:\
103 :SR=\E[%dT:UP=\E[%dA:cb=\E[1K:ch=\E[%dG:ct=\E[2g:\
104 :cv=\E[%dd:ec=\E[%dX:ei=:im=:k1=\E[M:k2=\E[N:k3=\E[O:\
105 :k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:k9=\E[U:\
106 :k;=\E[V:kB=\E[Z:kI=\E[L:kb=^H:kd=\E[B:kl=\E[D:\
107 :kr=\E[C:ku=\E[A:me=\E[0;10m:nw=\r\E[S:pf=\E[4i:\
108 :po=\E[5i:..rp=%p1%c\E[%p2%{1}%-%db:s0=\E(B:s1=\E)B:\
110 :..sa=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p8%t;11%;%?%p9%t;12%;m:\
113 # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
114 # standard terminfo. Assumes ANSI.SYS-compatible attributes and color
115 # From: Eric S. Raymond <esr@snark.thyrsus.com> Feb 12 1995
116 ansi|ansi/pc-term compatible with color:\
117 :u6=\E[%d;%dR:u7=\E[6n:..u8=\E[?%[;0123456789]c:\
118 :u9=\E[c:tc=ansi-pc-color:tc=ansi-mono:
123 # Cannot use :pt:, it does not work (why?). :ho: seems required (why?). [gts]
124 # Caution: 4.3 BSD tset does not pass li#25 to stty rows except during login?
125 # :cl: clears attributes and sets wrap at margin before clearing the screen.
126 # (ansi.sys: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
127 # From: greg small <gts@populi.berkeley.edu>
128 ansi.sys|ansisys|PC-DOS 3.1 ANSI.SYS:\
131 :ae=\E[10:as=\E[12:ce=\E[K:cl=\E[m\E[7h\E[2J:\
132 :cm=\E[%i%d;%dH:ho=\E[H:\
133 :is=U1 PC-DOS 3.1 ANSI.SYS 9-23-86\n\E[m\E[7h:kd=^J:\
134 :kh=^^:kl=^H:kr=^L:ku=^K:md=\E[1m:me=\E[0;10m:\
135 :mr=\E[7m:nd=\E[C:se=\E[m:so=\E[1m:ue=\E[m:up=\E[A:\
138 # Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
139 # This should only be used when the terminal emulator cannot redefine the keys.
140 # Since redefining keys with ansi.sys also affects PC-DOS programs, the key
141 # definitions must be restored. If the terminal emulator is quit while in vi
142 # or others using :ks:ke:, the keypad keys will not be defined as per PC-DOS.
143 # The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
144 # (^U and ^D are already defined for tn3270). The ESC is safe for vi but it
145 # does "beep". ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
146 # Left arrow is always BS, because PC-dos can tolerate this change.
147 # Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
148 # Consequently the End keypad key could not be set (it is relatively safe and
149 # actually useful because it sends ^@ O, which beeps and opens a line above).
150 ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi:\
151 :is=U2 PC-DOS 3.1 ANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p:\
152 :ke=\E[;71;0;71p\E[;72;0;72p\E[;73;0;73p\E[;77;0;77p\E[;80;0;80p\E[;81;0;81p\E[;82;0;82p\E[;83;0;83p:\
153 :ks=\E[;71;30p\E[;72;11p\E[;73;27;21p\E[;77;12p\E[;80;10p\E[;81;27;4p\E[;82;27;27;105p\E[;83;127p:tc=ansi.sys:
155 # Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
156 nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS:\
157 :al=\E[1L:dc=\E[1P:dl=\E[1M:ei=:ic=\E[1@:im=:\
158 :is=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n:tc=ansi.sys:
160 # See ansi.sysk and nansi.sys above.
161 nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi:\
162 :al=\E[1L:dc=\E[1P:dl=\E[1M:ei=:ic=\E[1@:im=:\
163 :is=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p:tc=ansi.sysk:
166 :xn@:op=\E[39;49m:Km=\E[M:tc=linux:
169 :xn@:op=\E[39;49m:Km=\E[M:tc=linux:tc=rxvt:
171 #### ANSI console types
174 # This entry is good for the 1.1.47 version of the Linux console driver.
176 # It assumes that you want A_PROTECT mapped to the alternate character set
177 # mode that permits IBM ROM characters to be displayed (this is the assumption
178 # used by ncurses version 1.9 and after, in order not to collide with the
179 # internationalization attribute values specified in the XSI Curses standard).
181 # We use \E11m for rmacs rather than \E12m so the acsc string can use the ROM
182 # graphics for control characters such as the diamond, up arrow and down-arrow.
183 # This trick could work with other Intel consoles like the att6386 and pc3.
185 # Note: there are numerous broken linux entries out there, which didn't screw
186 # up BSD termcap but hose ncurses's smarter cursor-movement optimization.
187 # One common pathology is an incorrect tab length of 4. Also note that the
188 # hpa=\E[%dG/vpa=\E[%dd capabilities seem not to be reliable. To reproduce
189 # the bug, re-introduce them and run worm -T 200 212 from the ncurses
190 # test suite, save the trace, then worm -N -T 200 212. Observe that the first
191 # run fails to properly delete some worm segments, then diff the trace files.
193 # From: Eric S. Raymond <esr@snark.thyrsus.com> 23 July 1995
194 linux|linux console:\
195 :am:bs:eo:mi:ms:ut:xn:xo:\
196 :Co#8:co#80:it#8:li#25:pa#64:\
197 :&7=^Z:@7=\E[4~:kh=\E[1~:kH=\E[4~:AB=\E[4%dm:AF=\E[3%dm:\
198 :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:F1=\E[23~:F2=\E[24~:\
199 :F3=\E[25~:F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:\
200 :F8=\E[32~:F9=\E[33~:FA=\E[34~:IC=\E[%d@:K2=\E[G:\
201 :S2=\E[11m:S3=\E[10m:Sb=\E[%+(m:Sf=\E[%+^^m:\
202 :ac=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\054\021+^P0\333:\
203 :ae=\E[10m:al=\E[L:as=\E[11m:bl=^G:cd=\E[J:ce=\E[K:\
204 :cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
205 :ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:\
206 :ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:k3=\E[[C:\
207 :k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
208 :k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:\
209 :kP=\E[5~:kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:\
210 :ku=\E[A:le=^H:mb=\E[5m:md=\E[1m:me=\E[0;10m:\
211 :mr=\E[7m:nd=\E[C:nw=^M^J:op=\E[37;40m:r1=\Ec:rc=\E8:\
212 :sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
213 :u6=\E[%d;%dR:u7=\E[6n:u8=\E[?6c:u9=\E[c:ue=\E[24m:\
214 :up=\E[A:us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:\
216 linux-mono|Linux console, no color:\
218 :AB@:Sb@:Sf@:tc=linux:
220 # Reconstructed via infocmp from file: /usr/local/share/terminfo/r/rxvt
221 rxvt|rxvt terminal emulator (X Window System):\
222 :am:eo:km:mi:ms:xn:xo:\
224 :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
225 :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\
226 :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
227 :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
228 :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:\
229 :ho=\E[H:i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\
230 :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
231 :k0=\E[21~:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
232 :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:\
233 :kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:ke=\E>:\
234 :kh=\E[7~:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=^H:mb=\E[5m:\
235 :md=\E[1m:me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:\
236 :se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
237 :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:\
238 :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\
242 # Reconstructed via infocmp from file: /usr/local/share/terminfo/v/vt100
243 vt100|vt100-am|dec vt100 (w/advanced video):\
245 :co#80:it#8:li#24:vt#3:\
246 :DO=\E[%dB:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:\
247 :LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:as=^N:bl=^G:cd=\E[J:\
248 :ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:\
249 :ct=\E[3g:do=^J:ho=\E[H:k0=\EOy:k1=\EOP:k2=\EOQ:k3=\EOR:\
250 :k4=\EOS:k5=\EOt:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:kb=^H:\
251 :kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:\
252 :ku=\EOA:le=^H:mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:\
254 :..sa=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;:\
255 :sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:ue=\E[m:\
258 # Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm-r6
259 xterm-r6|xterm|xterm X11R6 version:\
262 :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:\
263 :RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:\
264 :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
265 :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:\
267 :is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:\
268 :k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
269 :k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\
270 :kb=^H:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:\
271 :ks=\E[?1h\E=:ku=\EOA:le=^H:md=\E[1m:me=\E[m:mr=\E[7m:\
272 :nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:\
273 :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:\