]> ncurses.scripts.mit.edu Git - ncurses.git/blob - misc/terminfo.src
fedfe67ece42971022c2de682c10864e9ed6652e
[ncurses.git] / misc / terminfo.src
1 ######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
2 #
3 #       Version 10.2.0
4 #       terminfo syntax
5 #
6 #       Eric S. Raymond         (current maintainer)
7 #       John Kunze, Berkeley
8 #       Craig Leres, Berkeley
9 #
10 # Please e-mail changes to terminfo@ccil.org.  The old termcap@berkeley.edu
11 # address is no longer valid.
12 #
13 # PURPOSE OF THIS FILE:
14 #
15 # This file describes the capabilities of various character-cell terminals,
16 # as needed by software such as screen-oriented editors.
17 #
18 # Other terminfo and termcap files exist, supported by various OS vendors
19 # or as relics of various older versions of UNIX.  This one is the longest
20 # and most comprehensive one in existence.  It subsumes not only the entirety
21 # of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
22 # termcap file, but also large numbers of vendor-maintained termcap and
23 # terminfo entries more complete and carefully tested than those in historical
24 # termcap/terminfo versions.
25 #
26 # Pointers to related resources (including the ncurses distribution) may
27 # be found at <http://earthspace.net/terminfo>.
28 #
29 # INTERNATIONALIZATION:
30 #
31 # This file uses only the US-ASCII character set (no ISO8859 characters).
32 #
33 # This file assumes a US-ASCII character set. If you need to fix this, start
34 # by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
35 # for your character set.  \E(A and \E)A enables the British character set
36 # with the pound sign at position 2/3.  
37 #
38 # In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
39 # C1 characters are considered the first-byte set of the Japanese encodings,
40 # so \E)0 should be avoided in <enacs> and initialization strings.
41 #
42 # FILE FORMAT:
43 #
44 # The version you are looking at may be in any of three formats: master
45 # (terminfo with OT capabilities), stock terminfo, or termcap.  You can tell
46 # which by the format given in the header above.
47 #
48 # The master format is accepted and generated by the terminfo tools in the
49 # ncurses suite; it differs from stock (System V-compatible) terminfo only
50 # in that it admits a group of capabilities (prefixed `OT') equivalent to
51 # various obsolete termcap capabilities.  You can, thus, convert from master
52 # to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
53 # you have ncurses `tic -I' is nicer (among other things, it automatically
54 # outputs entries in a canonical form).
55 #
56 # The termcap version is generated automatically from the master version
57 # using tic -C.  This filtering leaves in the OT capabilities under their
58 # original termcap names.  All translated entries fit within the 1023-byte
59 # string-table limit of archaic termcap libraries except where explicitly
60 # noted below.  Note that the termcap translation assumes that your termcap
61 # library can handle multiple tc capabilities in an entry. 4.4BSD has this
62 # capability.  Older versions of GNU termcap, through 1.3, do not. 
63 #
64 # For details on these formats, see terminfo(5) in the ncurses distribution,
65 # and termcap(5) in the 4.4BSD Unix Programmer's Manual.  Be aware that 4.4BSD
66 # curses has been declared obsolete by the caretakers of the 4.4BSD sources
67 # as of June 1995; they are encouraging everyone to migrate to ncurses.
68 #
69 # Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
70 # no entry in this file has embedded comments.  This is so source translation
71 # to termcap only has to carry over leading comments.  Also, no name field
72 # contains embedded whitespace (such whitespace confuses rdist).
73 #
74 # Further note: older versions of this file were often installed with an editor
75 # script (reorder) that moved the most common terminal types to the front of
76 # the file.  This should no longer be necessary, as the file is now ordered
77 # roughly by type frequency with ANSI/VT100 and other common types up front.
78 #
79 # Some information has been merged in from terminfo files distributed by
80 # USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below).  Much information
81 # comes from vendors who maintain official terminfos for their hardware
82 # (notably DEC and Wyse).
83 #
84 # A detailed change history is included at the end of this file.
85 #
86 # FILE ORGANIZATION:
87 #
88 # Comments in this file begin with # - they cannot appear in the middle
89 # of a terminfo/termcap entry.  Individual capabilities are commented out by
90 # placing a period between the colon and the capability name.
91 #
92 # The file is divided up into major sections (headed by lines beginning with 
93 # the string "########") and minor sections (beginning with "####"); do
94 #
95 #       grep "^####" <file> | more
96 #
97 # to see a listing of section headings.  The intent of the divisions is
98 # (a) to make it easier to find things, and (b) to order the database so
99 # that important and frequently-encountered terminal types are near the
100 # front (so that you'll get reasonable search efficiency even if you don't
101 # use reorder).  Minor sections usually correspond to manufacturers or
102 # standard terminal classes.  Parenthesized words following manufacturer
103 # names are type prefixes or product line names used by that manufacturers.
104 #
105 # HOW TO READ THE ENTRIES:
106 #
107 # The first name in an entry is the canonical name for the model or
108 # type, last entry is a verbose description.  Others are mnemonic synonyms for
109 # the terminal.
110 #
111 # Terminal names look like <manufacturer> <model> - <modes/options>
112 # The part to the left of the dash, if a dash is present, describes the
113 # particular hardware of the terminal.  The part to the right may be used
114 # for flags indicating special ROMs, extra memory, particular terminal modes,
115 # or user preferences.
116 #
117 # All names should be in lower case, for consistency in typing.
118 #
119 # The following are conventionally used suffixes:
120 #       -2p     Has two pages of memory.  Likewise 4p, 8p, etc.
121 #       -am     Enable auto-margin.
122 #       -m      Monochrome.  Suppress color support
123 #       -mc     Magic-cookie.  Some terminals (notably older Wyses) can
124 #               only support one attribute without magic-cookie lossage.
125 #               Their base entry is usually paired with another that
126 #               uses magic cookies to support multiple attributes.
127 #       -na     No arrow keys - termcap ignores arrow keys which are
128 #               actually there on the terminal, so the user can use
129 #               the arrow keys locally.
130 #       -nam    No auto-margin - suppress <am> capability
131 #       -nl     No labels - suppress soft labels
132 #       -ns     No status line - suppress status line
133 #       -rv     Terminal in reverse video mode (black on white)
134 #       -s      Enable status line.
135 #       -vb     Use visible bell (<flash>) rather than <bel>.
136 #       -w      Wide - in 132 column mode.
137 # If a name has multiple suffixes and one is a line height, that one should 
138 # go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv'.  
139
140 # Entries with embedded plus signs are designed to be included through use/tc
141 # capabilities, not used as standalone entries. 
142 #
143 # To avoid search clashes, some older all-numeric names for terminals have
144 # been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
145 # All primary names of terminals now have alphanumeric prefixes.
146 #
147 # Comments marked "esr" are mostly results of applying the termcap-compiler
148 # code packaged with ncurses and contemplating the resulting error messages. 
149 # In many cases, these indicated obvious fixes to syntax garbled by the
150 # composers.  In a few cases, I was able to deduce corrected forms for garbled
151 # capabilities by looking at context.  All the information in the original
152 # entries is preserved in the comments.
153 #
154 # In the comments, terminfo capability names are bracketed with <> (angle
155 # brackets).  Termcap capability names are bracketed with :: (colons).
156 #
157 # INTERPRETATION OF USER CAPABILITIES
158 #
159 # The System V Release 4 and XPG4 terminfo format defines ten string
160 # capabilities for use by applications, <u0>...<u9>.   In this file, we use
161 # certain of these capabilities to describe functions which are not covered
162 # by terminfo.  The mapping is as follows:
163 #
164 #       u9      terminal enquire string (equiv. to ANSI/ECMA-48 DA)
165 #       u8      terminal answerback description
166 #       u7      cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
167 #       u6      cursor position report (equiv. to ANSI/ECMA-48 CPR)
168 #
169 # The terminal enquire string <u9> should elicit an answerback response
170 # from the terminal.  Common values for <u9> will be ^E (on older ASCII
171 # terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
172 #
173 # The cursor position request (<u7>) string should elicit a cursor position
174 # report.  A typical value (for VT100 terminals) is \E[6n.
175 #
176 # The terminal answerback description (u8) must consist of an expected
177 # answerback string.  The string may contain the following scanf(3)-like
178 # escapes:
179 #
180 #       %c      Accept any character
181 #       %[...]  Accept any number of characters in the given set
182 #
183 # The cursor position report (<u6>) string must contain two scanf(3)-style 
184 # %d format elements.  The first of these must correspond to the Y coordinate
185 # and the second to the %d.  If the string contains the sequence %i, it is
186 # taken as an instruction to decrement each value after reading it (this is
187 # the inverse sense from the cup string).  The typical CPR value is
188 # \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
189 #
190 # These capabilities are used by tac(1m), the terminfo action checker soon
191 # to be distributed with ncurses.
192 #
193 # TABSET FILES
194 #
195 # All the entries in this file have been edited to assume that the tabset
196 # files directory is /usr/share/tabset, in conformance with the File Hierarchy
197 # Standard for Linux and free BSD systems.  Some vendors (notably Sun) use
198 # /usr/lib/tabset or (more recently) /usr/share/lib/tabset.  
199 #
200 # No curses package we know of uses these files.  If their location is an
201 # issue, you will have to hand-patch the file locations before compiling
202 # this file.
203
204 # REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL:
205 #
206 # As the ANSI/ECMA-48 standard and variants take firmer hold, and as
207 # character-cell terminals are increasingly replaced by X displays, much of
208 # this file is becoming a historical document (this is part of the reason for
209 # the new organization, which puts ANSI types, xterm, free-Unix consoles,
210 # and vt100 up front in confidence that this will catch 95% of new hardware).
211 #
212 # For the terminal types still alive, I'd like to have manufacturer's
213 # contact data (Internet address and/or snail-mail + phone).
214 #
215 # I'm also interested in enriching the comments so that the latter portions of
216 # the file do in fact become a potted history of VDT technology as seen by
217 # UNIX hackers.  Ideally, I'd like the headers for each manufacturer to
218 # include its live/dead/out-of-the-business status, and for as many
219 # terminal types as possible to be tagged with information like years
220 # of heaviest use, popularity, and interesting features.
221 #
222 # I'm especially interested in identifying the obscure entries listed under
223 # `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
224 # wisdom about them gets lost.  If you know a lot about obscure old terminals,
225 # please go to the terminfo resource page, grab the UFO file (ufo.ti), and 
226 # eyeball it for things you can identify and describe. 
227 #
228 # If you have been around long enough to contribute, please read the file
229 # with this in mind and send me your annotations.
230 #
231 # COPYRIGHTS AND OTHER DELUSIONS
232 #
233 # The BSD ancestor of this file had a standard Regents of the University of
234 # California copyright with dates from 1980 to 1993.
235 #
236 # Some information has been merged in from a terminfo file SCO distributes.
237 # It has an obnoxious boilerplate copyright which I'm ignoring because they 
238 # took so much of the content from the ancestral BSD versions of this file
239 # and didn't attribute it, thereby violating the BSD Regents' copyright.
240 #
241 # Not that anyone should care.  However many valid functions copyrights may
242 # serve, putting one on a termcap/terminfo file with hundreds of anonymous
243 # contributors makes about as much sense as copyrighting a wall-full of
244 # graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
245 #
246 # This file deliberately has no copyright.  It belongs to no one and everyone.
247 # If you claim you own it, you will merely succeed in looking like a fool. 
248 # Use it as you like.  Use it at your own risk.  Copy and redistribute freely.
249 # There are no guarantees anywhere.  Svaha!
250 #
251
252 ######## STANDARD AND SPECIAL TYPES
253 #
254 # This section describes terminal classes and maker brands that are still
255 # quite common.
256 #
257
258 #### Specials
259 #
260 # Special "terminals".  These are used to label tty lines when you don't
261 # know what kind of terminal is on it.  The characteristics of an unknown
262 # terminal are the lowest common denominator - they look about like a ti 700.
263 #
264
265 dumb|80-column dumb tty, 
266         am, 
267         cols#80, 
268         bel=^G, cr=^M, cud1=^J, ind=^J, 
269 unknown|unknown terminal type, 
270         gn, use=dumb, 
271 lpr|printer|line printer, 
272         hc, os, 
273         cols#132, lines#66, 
274         bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ind=^J, 
275 glasstty|classic glass tty interpreting ASCII control characters, 
276         am, 
277         cols#80, 
278         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, 
279         kcub1=^H, kcud1=^J, nel=^M^J, 
280
281 #### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
282 #
283 # See the end-of-file comment for more on these.
284 #
285
286 # The IBM PC alternate character set.  Plug this into any Intel console entry.
287 # We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
288 # ROM graphics for control characters such as the diamond, up- and down-arrow.
289 # This works with the System V, Linux, and BSDI consoles.  It's a safe bet this
290 # will work with any Intel console, they all seem to have inherited \E[11m
291 # from the ANSI.SYS de-facto standard.
292 klone+acs|alternate character set for ansi.sys displays, 
293         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, 
294         rmacs=\E[10m, smacs=\E[11m, 
295
296 # Highlight controls corresponding to the ANSI.SYS standard.  Most 
297 # console drivers for Intel boxes obey these.  Makes the same assumption
298 # about \E[11m as klone+acs.  True ANSI/ECMA-48 would have <rmso=\E[27m>,
299 # <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.
300 klone+sgr|attribute control for ansi.sys displays, 
301         blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, 
302         rmpch=\E[10m, rmso=\E[m, rmul=\E[m, 
303         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, 
304         sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m, 
305         use=klone+acs, 
306
307 # Highlight controls corresponding to the ANSI.SYS standard.  *All*
308 # console drivers for Intel boxes obey these.  Does not assume \E[11m will
309 # work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
310 # diamond and arrow characters under curses.
311 klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m), 
312         blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, rmso=\E[m, 
313         rmul=\E[m, 
314         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, 
315         sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
316         use=klone+acs, 
317
318 # KOI8-R (RFC1489) acs (alternate character set)
319 # From: QingLong <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
320 klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset, 
321         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, 
322         rmacs=\E[10m, smacs=\E[11m, 
323
324 # ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
325 # between SVr4/XPG4's color numbers and ANSI.SYS attributes.  Here are longer
326 # but equivalent strings that don't rely on that coincidence:
327 # setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
328 # setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
329 # The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
330 # They match a subset of ECMA-48.
331 klone+color|color control for ansi.sys and ISO6429-compatible displays, 
332         colors#8, ncv#3, pairs#64, 
333         op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
334
335 # This is better than klone+color, it doesn't assume white-on-black as the
336 # default color pair,  but many `ANSI' terminals don't grok the <op> cap.
337 ecma+color|color control for ECMA-48-compatible terminals, 
338         colors#8, ncv#3, pairs#64, 
339         op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
340
341 # Attribute control for ECMA-48-compatible terminals
342 ecma+sgr|attribute capabilities for true ECMA-48 terminals, 
343         rmso=\E[27m, rmul=\E[24m, 
344         use=klone+sgr, 
345
346 # For comparison, here are all the capabilities implied by the Intel
347 # Binary Compatibility Standard (level 2) that fit within terminfo.
348 # For more detail on this rather pathetic standard, see the comments
349 # near the end of this file.
350 ibcs2|Intel Binary Compatibility Standard prescriptions, 
351         cbt=\E[Z, clear=\Ec, cub=\E[%p1%dD, cud=\E[%p1%dB, 
352         cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
353         dch=\E[%p1%dP, dispc=\E=%p1%dg, ech=\E[%p1%dX, 
354         hpa=\E[%i%p1%dG, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, 
355         indn=\E[%p1%dS, rc=\E7, rin=\E[%p1%dT, rmam=\E[?7l, sc=\E7, 
356         smam=\E[?7h, tbc=\E[g, vpa=\E[%i%p1%dd, 
357
358 #### ANSI/ECMA-48 terminals and terminal emulators
359 #
360 # See near the end of this file for details on ANSI conformance.
361 # Don't mess with these entries!  Lots of other entries depend on them!
362 #
363 # This section lists entries in a least-capable to most-capable order.
364 # if you're in doubt about what `ANSI' matches yours, try them in that
365 # order and back off from the first that breaks.
366
367 ansi-mini|any ansi terminal with pessimistic assumptions, 
368         am, 
369         cols#80, it#8, lines#24, 
370         clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
371         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
372         ht=^I, 
373
374 # ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
375 #
376 # The following is an entry for the full ANSI 3.64 (1977).  It lacks
377 # padding, but most terminals using the standard are "fast" enough
378 # not to require any -- even at 9600 bps.  If you encounter problems,
379 # try including the padding specifications.
380 #
381 # Note: the "as" and "ae" specifications are not implemented here, for
382 # the available termcap documentation does not make clear WHICH alternate
383 # character set to specify.  ANSI 3.64 seems to make allowances for several.
384 # Please make the appropriate adjustments to fit your needs -- that is
385 # if you will be using alternate character sets.
386 #
387 # There are very few terminals running the full ANSI 3.64 standard,
388 # so I could only test this entry on one verified terminal (Visual 102).
389 # I would appreciate the results on other terminals sent to me.
390 #
391 # Please report comments, changes, and problems to:
392 #
393 # U.S. MAIL:   Hugh Hansard
394 #              Box: 22830
395 #              Emory University
396 #              Atlanta, GA. 30322.
397 #
398 # USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
399 #
400 ansi77|ansi 3.64 standard 1977 version, 
401         am, mir, 
402         cols#80, it#8, lines#24, 
403         bel=^G, clear=\E[;H\E[2J, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
404         cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
405         cuu1=\E[A, dch1=\E[P, dl1=\E[M$<5*/>, ed=\E[J, el=\E[K, 
406         home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED, kbs=^H, 
407         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, 
408         kf2=\EOR, kf4=\EOS, khome=\E[H, nel=^M\ED, ri=\EM, 
409         rmir=\E[4l, rmso=\E[m, rmul=\E[m, smir=\E[4h, smso=\E[7m, 
410         smul=\E[4m, 
411
412 # Procomm and some other ANSI emulations don't recognize all of the ANSI-
413 # standard capabilities.  This entry deletes <cuu>, <cuf>, <cud>, <cub>, and 
414 # <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>, 
415 # <cuf1>, <cud1> and <cub1>.  Also deleted <ich> and <ich1>, as QModem up to 
416 # 5.03 doesn't recognize these.  Finally, we delete <rep> and <ri>, which seem
417 # to confuse many emulators.  On the other hand, we can count on these programs
418 # doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured 
419 # <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
420 # ANSI.SYS influence.
421 # From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
422 pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode), 
423         am, mir, msgr, 
424         cols#80, it#8, lines#24, 
425         bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=\E[D, 
426         cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
427         dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
428         hts=\EH, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
429         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, tbc=\E[2g, 
430         use=klone+sgr-dumb, 
431 pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode), 
432         lines#25, use=pcansi-m, 
433 pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode), 
434         lines#33, use=pcansi-m, 
435 pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode), 
436         lines#43, use=pcansi-m, 
437 # The color versions.  All PC emulators do color...
438 pcansi|ibm-pc terminal programs claiming to be ansi, 
439         use=klone+color, use=pcansi-m, 
440 pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines, 
441         lines#25, use=pcansi, 
442 pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines, 
443         lines#33, use=pcansi, 
444 pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines, 
445         lines#43, use=pcansi, 
446
447 # ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
448 # If you want pound signs rather than dollars, replace `B' with `A'
449 # in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
450 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
451 ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes, 
452         mc5i, 
453         cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC, 
454         cuu=\E[%p1%dA, dch=\E[%p1%dP, dl=\E[%p1%dM, 
455         ech=\E[%p1%dX, el1=\E[1K, hpa=\E[%i%p1%dG, ht=\E[I, 
456         ich=\E[%p1%d@, il=\E[%p1%dL, indn=\E[%p1%dS, kbs=^H, 
457         kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
458         kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S, 
459         rep=%p1%c\E[%p2%{1}%-%db, rin=\E[%p1%dT, s0ds=\E(B, 
460         s1ds=\E)B, s2ds=\E*B, s3ds=\E+B, tbc=\E[2g, 
461         vpa=\E[%i%p1%dd, use=pcansi-m, 
462
463 # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
464 # standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
465 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
466 ansi|ansi/pc-term compatible with color, 
467         u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c, 
468         u9=\E[c, 
469         use=ecma+color, use=klone+sgr, use=ansi-m, 
470
471 #
472 # ANSI.SYS entries
473 #
474 # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
475 # documentation (except for the keyboard key reassignment feature, which
476 # doen't fit the <pfkey> model well).  The klone+acs sequences were valid
477 # though undocumented.  The <pfkey> capability is untested but should work for
478 # keys F1-F10 (%p1 values outside this range will yield unpredictable results).
479 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
480 ansi.sys-old|ANSI.SYS under PC-DOS 2.1, 
481         am, mir, msgr, xon, 
482         cols#80, lines#25, 
483         clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C, 
484         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[k, home=\E[H, 
485         is2=\E[m\E[?7h, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, 
486         khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s", rc=\E[u, 
487         rmam=\E[?7l, sc=\E[s, smam=\E[?7h, u6=\E[%i%d;%dR, 
488         u7=\E[6n, 
489         use=klone+color, use=klone+sgr, 
490 ansi.sys|ANSI.SYS 3.1 and later versions, 
491         el=\E[K, use=ansi.sys-old, 
492
493 #
494 # Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
495 # This should only be used when the terminal emulator cannot redefine the keys.
496 # Since redefining keys with ansi.sys also affects PC-DOS programs, the key
497 # definitions must be restored.  If the terminal emulator is quit while in vi
498 # or others using <smkx>/<rmkx>, the keypad will not be defined as per PC-DOS.
499 # The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
500 # (^U and ^D are already defined for tn3270).  The ESC is safe for vi but it
501 # does "beep".  ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
502 # Note that <kcub1> is always BS, because PC-dos can tolerate this change.
503 # Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
504 # Consequently the End keypad key could not be set (it is relatively safe and
505 # actually useful because it sends ^@ O, which beeps and opens a line above).
506 ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi, 
507         is2=U2 PC-DOS 3.1 ANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p, 
508         rmkx=\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, 
509         smkx=\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, 
510         use=ansi.sys, 
511 #
512 # Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
513 nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS, 
514         dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L, 
515         is2=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n, use=ansi.sys, 
516 #
517 # See ansi.sysk and nansi.sys above.
518 nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi, 
519         dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L, 
520         is2=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p, 
521         use=ansi.sysk, 
522
523 #### ANSI console types
524 #
525
526 #### BeOS entry for Terminal program. Seems to be almost ANSI
527 #       
528 beterm|BeOS Terminal, 
529         am, eo, mir, msgr, xenl, xon, 
530         colors#8, cols#80, it#8, lines#25, pairs#64, 
531         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
532         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
533         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
534         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
535         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
536         el=\E[K, flash=\E[?5h\E[?5l$<200/>, home=\E[H, 
537         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
538         il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G, 
539         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
540         kend=\E[4~, kf1=\E[11~, kf10=\E[20~, kf11=\E[21~, 
541         kf12=\E[22~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, 
542         kf5=\E[15~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~, kf9=\E[19~, 
543         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z, 
544         nel=^M^J, op=\E[m, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, 
545         rmso=\E[m, rmul=\E[24m, rs1=\Ec, sc=\E7, setab=\E[4%p1%dm, 
546         setaf=\E[3%p1%dm, setb=\E[%p1%'('%+%cm, 
547         setf=\E[%p1%{30}%+%cm, sgr0=\E[0;10m, smir=\E[4h, 
548         smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR, 
549         u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, 
550
551 # This entry is good for the 1.2.13 version of the Linux console driver.
552 #
553 # Note: there are numerous broken linux entries out there, which didn't screw
554 # up BSD termcap but hose ncurses's smarter cursor-movement optimization.
555 # One common pathology is an incorrect tab length of 4.
556 #
557 # ***************************************************************************
558 # *                                                                         *
559 # *                           WARNING:                                      *
560 # * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
561 # * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
562 # * character. Here are the keymap replacement lines that will set this up: *
563 # *                                                                         *
564 #       keycode  15 = Tab             Tab
565 #               alt     keycode  15 = Meta_Tab
566 #               shift   keycode  15 = F26
567 #       string F26 ="\033[Z"
568 # *                                                                         *
569 # * This has to use a key slot which is unfortunate (any unused one will    *
570 # # do, F26 is the higher-numbered one).  The change ought to be built      *
571 # * into the kernel tables.                                                 *
572 # *                                                                         *
573 # ***************************************************************************
574 #
575 # The 1.3.x kernels add color-change capabilities; if yours doesn't have this
576 # and it matters, turn off <ccc>.  The %02x escape used to implement this is
577 # not back-portable to SV curses and not supported in ncurses versions before
578 # 1.9.9. All linux kernels since 1.2.13 (at least) set the screen size
579 # themselves; this entry assumes that capability.
580 #
581 linux|linux console, 
582         am, bce, eo, mir, msgr, xenl, xon, 
583         it#8, ncv@, 
584         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
585         bel=^G, civis=\E[?25l, clear=\E[H\E[J, cnorm=\E[?25h, 
586         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
587         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
588         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
589         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
590         flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG, 
591         ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
592         il1=\E[L, ind=^J, kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\E[D, 
593         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, 
594         kend=\E[4~, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, 
595         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
596         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
597         kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, 
598         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
599         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z, 
600         nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, 
601         rmul=\E[24m, rs1=\Ec, sc=\E7, 
602         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, 
603         smir=\E[4h, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, 
604         u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, 
605         use=klone+sgr, use=ecma+color, 
606 linux-m|Linux console no color, 
607         colors@, pairs@, 
608         setab@, setaf@, setb@, setf@, use=linux, 
609 linux-c-nc|linux console 1.3.x hack for ncurses only, 
610         ccc, 
611         initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x, 
612         oc=\E]R, 
613         use=linux, 
614 # From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
615 linux-c|linux console 1.3.6+ with private palette for each virtual console, 
616         ccc, 
617         colors#8, pairs#64, 
618         initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%p'a'%+%c%e%p1%d%p2%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p3%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p4%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;, 
619         oc=\E]R, 
620         use=linux, 
621
622 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
623 linux-nic|linux with ich/ich1 suppressed for non-curses programs, 
624         ich@, ich1@, 
625         use=linux, 
626
627 # This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
628 # acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
629 linux-koi8|linux with koi8 alternate character set, 
630         acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i\276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v\211w\210x\201y\230z\231{\267|\274~\224, 
631         use=linux, use=klone+koi8acs, 
632
633 # Another entry for KOI8-r with QingLong's acsc.
634 # (which one better complies the standard?)
635 linux-koi8r|linux with koi8-r alternate character set, 
636         use=linux, use=klone+koi8acs, 
637
638 # SCO console and SOS-Syscons console for 386bsd
639 # (scoansi: had unknown capabilities
640 #       :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
641 #       :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
642 #       :G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
643 #       :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
644 #       :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
645 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
646 # on the <smacs>=\E[12m  -- esr)
647 scoansi|SCO Extended ANSI standard crt, 
648         am, eo, xon, 
649         cols#80, it#8, lines#25, 
650         blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, 
651         cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
652         cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
653         ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, 
654         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf1=\E[M, 
655         kf10=\E[V, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, 
656         kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I, 
657         ri=\E[T, 
658         use=klone+sgr-dumb, 
659
660 # This actually describes the generic SVr4 display driver for Intel boxes.
661 # The <dim=\E[2m> isn't documented and therefore may not be reliable.
662 # From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
663 att6386|at386|386at|AT&T WGS 6386 console, 
664         am, bw, eo, xon, 
665         cols#80, it#8, lines#25, 
666         acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~, 
667         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C, 
668         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD, 
669         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, 
670         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
671         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, 
672         dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, 
673         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
674         ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S, 
675         indn=\E[%p1%dS, invis=\E[9m, is2=\E[0;10;39m, kbs=^H, 
676         kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
677         kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, 
678         kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, 
679         kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kich1=\E[@, 
680         knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m, 
681         ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m, 
682         sc=\E7, 
683         sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m, 
684         sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
685         tbc=\E[2g, vpa=\E[%i%p1%dd, 
686         use=klone+color, 
687 # (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
688 pc6300plus|AT&T 6300 plus, 
689         am, xon, 
690         cols#80, lines#24, 
691         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C, 
692         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub1=^H, cud1=\E[B, 
693         cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, 
694         dch1=\E[1P, dim=\E[2m, dl1=\E[1M, ed=\E[0J, el=\E[0K, 
695         home=\E[H, hts=\EH, ich1=\E[1@, il1=\E[1L, ind=^J, 
696         invis=\E[9m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
697         kcuu1=\E[A, kf1=\EOc, kf10=\EOu, kf2=\EOd, kf3=\EOe, 
698         kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\EOk, 
699         nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
700         smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
701
702 # From: Benjamin C. W. Sittler <bsittler@nmt.edu>
703 #
704 # I have a UNIX PC which I use as a terminal attached to my Linux PC.
705 # Unfortunately, the UNIX PC terminfo entry that comes with ncurses
706 # is broken. All the special key sequences are broken, making it unusable
707 # with Emacs. The problem stems from the following:
708
709 # The UNIX PC has a plethora of keys (103 of them, and there's no numeric
710 # keypad!), loadable fonts, and strange highlighting modes ("dithered"
711 # half-intensity, "smeared" bold, and real strike-out, for example.) It also
712 # uses resizable terminal windows, but the bundled terminal program always
713 # uses an 80x24 window (and doesn't support seem to support a 132-column
714 # mode.) 
715
716 # HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
717 # library which was a superset of SVr3.5 curses (called tam, for "terminal
718 # access method".) tam includes support for real, overlapping windows,
719 # onscreen function key labels, and bitmap graphics. But since the primary
720 # user interface on the UNIX PC was a GUI program (ua, for "user
721 # assistant",) and remote administration was considered important for the
722 # machine, tam also supported VT100-compatible terminals attached to the
723 # serial port or used across the StarLan network. To simulate the extra keys
724 # not present on a VT100, users could press ESC and a two-letter sequence,
725 # such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
726 # however, were not the same as those sent by the actual Undo key. The
727 # actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
728 # (If you're interested in adding some of the tam calls to ncurses, btw, I
729 # have the full documentation and several programs which use tam. It also
730 # used an extended terminfo format to describe key sequences, special
731 # highlighting modes, etc.) 
732
733 # KEYS: This means that ncurses would quite painful on the UNIX PC, since
734 # there are two sequences for every key-modifier combination (local keyboard
735 # sequence and remote "VT100" sequence.) But I doubt many people are trying
736 # to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
737 # GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume) 
738 # seem to have been built from the manual describing the VT100 sequences. 
739 # This means it doesn't work for a real live UNIX PC. 
740
741 # FONTS: The UNIX PC also has a strange interpretation of "alternate
742 # character set". Rather than the VT100 graphics you might expect, it allows
743 # up to 8 custom fonts to be loaded at any given time. This means that
744 # programs expecting VT100 graphics will usually be disappointed. For this
745 # reason I have disabled the smacs/rmacs sequences, but they could easily be
746 # re-enabled. Here are the relevant control sequences (from the ESCAPE(7) 
747 # manpage), should you wish to do so: 
748
749 # SGR10 - Select font 0 - ESC [ 10 m or SO
750 # SGR11 - Select font 1 - ESC [ 11 m or SI
751 # SGR12 - Select font 2 - ESC [ 12 m
752 # ... (etc.)
753 # SGR17 - Select font 7 - ESC [ 17 m
754
755 # Graphics for line drawing are not reliably found at *any* character
756 # location because the UNIX PC has dynamically reloadable fonts. I use font
757 # 0 for regular text and font 1 for italics, but this is by no means
758 # universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
759
760 # MISC: The cursor visible/cursor invisible sequences were swapped in the
761 # distributed terminfo.
762
763 # To ameliorate these problems (and fix a few highlighting bugs) I rewrote
764 # the UNIX PC terminfo entry. The modified version works great with Lynx,
765 # Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
766 # attached by serial cable. In Emacs, even the Undo key works, and many
767 # applications can now use the F1-F8 keys. 
768
769 # esr's notes:
770 #       Terminfo entry for the AT&T Unix PC 7300
771 #       from escape(7) in Unix PC 7300 Manual.
772 #       Somewhat similar to a vt100-am (but different enough
773 #       to redo this from scratch.)
774 #
775 #       /***************************************************************
776 #       *
777 #       *           FONT LOADING PROGRAM FOR THE UNIX PC
778 #       *
779 #       *     This routine loads a font defined in the file ALTFONT
780 #       *     into font memory slot #1.  Once the font has been loaded,
781 #       *     it can be used as an alternative character set.
782 #       *
783 #       *     The call to ioctl with the argument WIOCLFONT is the key 
784 #       *     to this routine.  For more information, see window(7) in 
785 #       *     the PC 7300 documentation.
786 #       ***************************************************************/
787 #       #include <string.h>             /* needed for strcpy call */
788 #       #include <sys/window.h>         /* needed for ioctl call */
789 #       #define FNSIZE  60              /* font name size */
790 #       #define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
791 #       /*
792 #       *     The file /usr/lib/wfont/special.8.ft comes with the
793 #       *     standard PC software.  It defines a graphics character set
794 #       *     similar to that of the Teletype 5425 terminal.  To view
795 #       *     this or other fonts in /usr/lib/wfont, use the command
796 #       *     cfont <filename>.  For further information on fonts see
797 #       *     cfont(1) in the PC 7300 documentation.
798 #       */
799 #       
800 #       struct altfdata         /* structure for alt font data */
801 #       {
802 #       short   altf_slot;              /* memory slot number */
803 #       char    altf_name[FNSIZE];      /* font name (file name) */
804 #       };
805 #       ldfont()
806 #       {
807 #               int wd;         /* window in which altfont will be */
808 #               struct altfdata altf;
809 #               altf.altf_slot=1;
810 #               strcpy(altf.altf_name,ALTFONT);
811 #               for (wd =1; wd < 12; wd++) {
812 #                    ioctl(wd, WIOCLFONT,&altf);
813 #               }
814 #       }
815 #
816 # (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
817 # they're confirmed by the man page for the System V display---esr)
818 #
819 att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300, 
820         am, xon, 
821         cols#80, it#8, lines#24, 
822         bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C, 
823         clear=\E[2J\E[H, cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, 
824         cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, 
825         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
826         cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
827         ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL, 
828         il1=\E[L, ind=^J, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB, 
829         kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE, 
830         kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM, 
831         kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR, 
832         kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO, 
833         kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z, 
834         kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn, 
835         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf, 
836         ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd, 
837         kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, 
838         kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B, 
839         kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv, 
840         kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, 
841         kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB, 
842         ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM, 
843         rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m, 
844         smul=\E[4m, 
845
846 # From: Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997
847 # (iris-ansi: added rmam/smam based on init string -- esr)
848 iris-ansi|IRIS emulating 40 line ANSI terminal (almost VT100), 
849         am, 
850         cols#80, it#8, lines#40, 
851         bel=^G, bold=\E[1m, clear=\E[H\E[2J, 
852         cnorm=\E[9/y\E[12/y\E[=6l, cr=^M, cub=\E[%p1%dD, 
853         cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, 
854         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
855         cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h, 
856         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, 
857         home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
858         is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P, 
859         kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q, 
860         kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
861         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, 
862         kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\EOQ, kf11=\EOR, 
863         kf12=\EOS, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q, 
864         kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, 
865         kf9=\EOP, khome=\E[H, kich1=\E[139q, knp=\E[154q, 
866         kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q, 
867         nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8, 
868         rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7, 
869         sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m, 
870         tbc=\E[3g, 
871 iris-ansi-ap|IRIS ANSI in application-keypad mode, 
872         is2=\E[?1l\E>\E[?7h, kf10=\E[010q, kf11=\E[011q, 
873         kf12=\E[012q, rmkx=\E>, smkx=\E=, 
874         use=iris-ansi, 
875
876 # From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
877 # (T.Dickey 98/1/24)
878 iris-color|xwsh|IRIX ANSI with color, 
879         ncv#33, 
880         csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m, 
881         ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, ritm=\E[23m, 
882         rmul=\E[24m, rs1=\Ec, 
883         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
884         sitm=\E[3m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
885         use=klone+color, use=iris-ansi-ap, 
886
887 # The following is a version of the ibm-pc entry distributed with PC/IX,
888 # (Interactive Systems' System 3 for the Big Blue), modified by Richard
889 # McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
890 # (the former is untrue, and the latter failed under UCB/man); standout and
891 # underline modes have been added.  Note: this entry describes the "native"
892 # capabilities of the PC monochrome display, without ANY emulation; most
893 # communications packages (but NOT PC/IX connect) do some kind of emulation.
894 pcix|PC/IX console, 
895         am, bw, eo, 
896         cols#80, lines#24, 
897         clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C, 
898         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
899         home=\E[H, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, 
900         smul=\E[4m, 
901
902 # (ibmpcx: this entry used to be known as ibmx.
903 # It formerly included the following extension capabilities:
904 #       :GC=b:GL=v:GR=t:RT=^J:\
905 #       :GH=\E[196g:GV=\E[179g:\
906 #       :GU=\E[193g:GD=\E[194g:\
907 #       :G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
908 #       :CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
909 #       :WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
910 # I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
911 # ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
912 # what was there before. -- esr)
913 ibmpcx|xenix|ibmx|IBM PC xenix console display, 
914         am, msgr, 
915         cols#80, lines#25, 
916         clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C, 
917         cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
918         ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H, 
919         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d, 
920         kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e, 
921         kpp=\E[Z, 
922         use=klone+acs, use=klone+sgr, 
923
924
925 # QNX 4.0 Console
926 # Michael's original version of this entry had <am@>, <smcup=\Ei>,
927 # <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
928 # right corner without triggering a scroll.  The ncurses terminfo library can
929 # handle this case with the <ich1> capability, and prefers <am> for better
930 # optimization.  Bug: The <op> capability resets attributes.
931 # From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
932 qnx|qnx4|qnx console, 
933         daisy, km, mir, msgr, xhpa, xt, 
934         colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8, 
935         acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t\303u\264v\301w\302x\263, 
936         bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ, 
937         cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
938         cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, cvvis=\Ey2, 
939         dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee, 
940         il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263, 
941         kCMD=\377\267, kCPY=\377\363, kCRT=\377\364, 
942         kDL=\377\366, kEND=\377\301, kEOL=\377\311, 
943         kEXT=\377\367, kFND=\377\370, kHLP=\377\371, 
944         kHOM=\377\260, kIC=\377\340, kLFT=\377\264, 
945         kMOV=\377\306, kMSG=\377\304, kNXT=\377\272, 
946         kOPT=\377\372, kPRT=\377\275, kPRV=\377\262, 
947         kRDO=\377\315, kRES=\377\374, kRIT=\377\266, 
948         kRPL=\377\373, kSAV=\377\307, kSPD=\377\303, 
949         kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0, 
950         kclo=\377\343, kclr=\377\341, kcmd=\377\245, 
951         kcpy=\377\265, kcrt=\377\305, kctab=\377\237, 
952         kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246, 
953         kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274, 
954         ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320, 
955         kext=\377\270, kf1=\377\201, kf10=\377\212, 
956         kf11=\377\256, kf12=\377\257, kf13=\377\213, 
957         kf14=\377\214, kf15=\377\215, kf16=\377\216, 
958         kf17=\377\217, kf18=\377\220, kf19=\377\221, 
959         kf2=\377\202, kf20=\377\222, kf21=\377\223, 
960         kf22=\377\224, kf23=\377\333, kf24=\377\334, 
961         kf25=\377\225, kf26=\377\226, kf27=\377\227, 
962         kf28=\377\230, kf29=\377\231, kf3=\377\203, 
963         kf30=\377\232, kf31=\377\233, kf32=\377\234, 
964         kf33=\377\235, kf34=\377\236, kf35=\377\276, 
965         kf36=\377\277, kf37=\377\321, kf38=\377\322, 
966         kf39=\377\323, kf4=\377\204, kf40=\377\324, 
967         kf41=\377\325, kf42=\377\326, kf43=\377\327, 
968         kf44=\377\330, kf45=\377\331, kf46=\377\332, 
969         kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206, 
970         kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346, 
971         khlp=\377\350, khome=\377\240, khts=\377\342, 
972         kich1=\377\253, kil1=\377\273, kind=\377\261, 
973         kmov=\377\351, kmrk=\377\355, kmsg=\377\345, 
974         knp=\377\252, knxt=\377\312, kopn=\377\357, 
975         kopt=\377\353, kpp=\377\242, kprt=\377\255, 
976         kprv=\377\302, krdo=\377\336, kref=\377\354, 
977         kres=\377\360, krfr=\377\347, kri=\377\271, 
978         krmir=\377\313, krpl=\377\362, krst=\377\352, 
979         ksav=\377\361, kslt=\377\247, kspd=\377\335, 
980         ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER, 
981         rep=\Eg%p2%' '%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER, 
982         rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d, 
983         setf=\E@%p1%Pf%gb%gf%d%d, 
984         sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;, 
985         sgr0=\E}\E]\E>\E), smcup=\Ei, smso=\E(, smul=\E[, 
986
987 #### NetBSD consoles
988 #
989 # pcvt termcap database entries (corresponding to release 3.31)
990 # Author's last edit-date: [Fri Sep 15 20:29:10 1995]
991 #
992 # (For the terminfo master file, I translated these into terminfo syntax.
993 # Then I dropped all the pseudo-HP entries. we don't want and can't use
994 # the :Xs: flag. Then I split :is: into a size-independent <is1> and a
995 # size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
996
997 # NOTE: because the 386BSD "vi"/"elvis" seems to have a bug if
998 # both <ich1> and <smir> are specified (an original VT220 
999 # shows the same buggy behaviour!), <ich1> has been taken
1000 # out of this entry. for reference, it should be <ich1=\E[@>.
1001 pcvtXX|pcvt vt200 emulator (DEC VT220), 
1002         am, km, mir, msgr, xenl, 
1003         it#8, vt#3, 
1004         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~, 
1005         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
1006         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1007         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
1008         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1009         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1010         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, 
1011         il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS, 
1012         is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=\177, 
1013         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1014         kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~, 
1015         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, 
1016         khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~, 
1017         nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, 
1018         ri=\EM, rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, 
1019         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, 
1020         rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1021         sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h, 
1022         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1023
1024 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1025 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1026 #       50 lines entries; 80 columns
1027 pcvt25|dec vt220 emulation with 25 lines, 
1028         cols#80, lines#25, 
1029         is2=\E[1;25r\E[25;1H, use=pcvtXX, 
1030 pcvt28|dec vt220 emulation with 28 lines, 
1031         cols#80, lines#28, 
1032         is2=\E[1;28r\E[28;1H, use=pcvtXX, 
1033 pcvt35|dec vt220 emulation with 35 lines, 
1034         cols#80, lines#35, 
1035         is2=\E[1;35r\E[35;1H, use=pcvtXX, 
1036 pcvt40|dec vt220 emulation with 40 lines, 
1037         cols#80, lines#40, 
1038         is2=\E[1;40r\E[40;1H, use=pcvtXX, 
1039 pcvt43|dec vt220 emulation with 43 lines, 
1040         cols#80, lines#43, 
1041         is2=\E[1;43r\E[43;1H, use=pcvtXX, 
1042 pcvt50|dec vt220 emulation with 50 lines, 
1043         cols#80, lines#50, 
1044         is2=\E[1;50r\E[50;1H, use=pcvtXX, 
1045
1046 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1047 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1048 #       50 lines entries; 132 columns
1049 pcvt25w|dec vt220 emulation with 25 lines and 132 cols, 
1050         cols#132, lines#25, 
1051         is2=\E[1;25r\E[25;1H, use=pcvtXX, 
1052 pcvt28w|dec vt220 emulation with 28 lines and 132 cols, 
1053         cols#132, lines#28, 
1054         is2=\E[1;28r\E[28;1H, use=pcvtXX, 
1055 pcvt35w|dec vt220 emulation with 35 lines and 132 cols, 
1056         cols#132, lines#35, 
1057         is2=\E[1;35r\E[35;1H, use=pcvtXX, 
1058 pcvt40w|dec vt220 emulation with 40 lines and 132 cols, 
1059         cols#132, lines#40, 
1060         is2=\E[1;40r\E[40;1H, use=pcvtXX, 
1061 pcvt43w|dec vt220 emulation with 43 lines and 132 cols, 
1062         cols#132, lines#43, 
1063         is2=\E[1;43r\E[43;1H, use=pcvtXX, 
1064 pcvt50w|dec vt220 emulation with 50 lines and 132 cols, 
1065         cols#132, lines#50, 
1066         is2=\E[1;50r\E[50;1H, use=pcvtXX, 
1067
1068 # NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
1069 # manufactured by Sharp for the Japenese market.
1070 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1071 x68k|x68k-ite|NetBSD/x68k ITE, 
1072         cols#96, lines#32, 
1073         kclr=\E[9~, khlp=\E[28~, use=vt220, 
1074
1075 #### FreeBSD console entries
1076 #
1077 # From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1078 # Andrey Chernov maintains the FreeBSD termcap distributions.
1079 #
1080 # Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1081 # or comment out the :cb: capability in the console entry.
1082 #
1083 # Alexander Lukyanov reports:
1084 # I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1085 # Now el1 clears not only to the line beginning, but also a large chunk
1086 # of previous line. But there is another bug - ech does not work at all.
1087 #
1088
1089 # for syscons
1090 # common entry without semigraphics
1091 # Bug: The <op> capability resets attributes.
1092 # Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1093 # instance el1 does if the cursor is moved to the right margin first.  Removed
1094 # by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1095 #
1096 # Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1097 # Note that this disables standout with color.
1098 cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode), 
1099         am, bce, bw, eo, msgr, npc, 
1100         colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64, 
1101         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
1102         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B, 
1103         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1104         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, 
1105         dim=\E[30;1m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, 
1106         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, 
1107         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, 
1108         indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
1109         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F, 
1110         kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N, 
1111         kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, 
1112         kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I, 
1113         nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, 
1114         rmso=\E[m, rs1=\E[x\E[m\Ec, setab=\E[4%p1%dm, 
1115         setaf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, 
1116 cons25|ansis|ansi80x25|freebsd console (25-line ansi mode), 
1117         acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371, 
1118         use=cons25w, 
1119 cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode), 
1120         colors@, pairs@, 
1121         bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25, 
1122 cons30|ansi80x30|freebsd console (30-line ansi mode), 
1123         lines#30, use=cons25, 
1124 cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode), 
1125         lines#30, use=cons25-m, 
1126 cons43|ansi80x43|freebsd console (43-line ansi mode), 
1127         lines#43, use=cons25, 
1128 cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode), 
1129         lines#43, use=cons25-m, 
1130 cons50|ansil|ansi80x50|freebsd console (50-line ansi mode), 
1131         lines#50, use=cons25, 
1132 cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode), 
1133         lines#50, use=cons25-m, 
1134 cons60|ansi80x60|freebsd console (60-line ansi mode), 
1135         lines#60, use=cons25, 
1136 cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode), 
1137         lines#60, use=cons25-m, 
1138 cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic, 
1139         acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\0t\206u\207v\211w\210x\201y\230z\231~\225, 
1140         use=cons25w, 
1141 cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono), 
1142         colors@, pairs@, 
1143         op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25r, 
1144 cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines), 
1145         lines#50, use=cons25r, 
1146 cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono), 
1147         lines#50, use=cons25r-m, 
1148 cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines), 
1149         lines#60, use=cons25r, 
1150 cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono), 
1151         lines#60, use=cons25r-m, 
1152 # ISO 8859-1 FreeBSD console
1153 cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars, 
1154         acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k\214l\215m\216n\217o\220p\221q\222r\223s\224t\225u\226v\227w\230x\231y\232z\233~\237, 
1155         use=cons25w, 
1156 cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono), 
1157         colors@, pairs@, 
1158         bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25l1, 
1159 cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines), 
1160         lines#50, use=cons25l1, 
1161 cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono), 
1162         lines#50, use=cons25l1-m, 
1163 cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines), 
1164         lines#60, use=cons25l1, 
1165 cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono), 
1166         lines#60, use=cons25l1-m, 
1167
1168 #### 386BSD and BSD/OS Consoles
1169 #
1170
1171 # This was the original 386BSD console entry (I think).  
1172 # Some places it's named oldpc3|oldibmpc3.
1173 # From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
1174 origpc3|origibmpc3|IBM PC 386BSD Console, 
1175         am, bw, eo, xon, 
1176         cols#80, lines#25, 
1177         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
1178         bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C, 
1179         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
1180         home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
1181         kcuu1=\E[A, khome=\E[Y, ri=\E[T, rmso=\E[1;0x\E[2;7x, 
1182         rmul=\E[1;0x\E[2;7x, sgr0=\E[m\E[1;0x\E[2;7x, 
1183         smso=\E[1;7x\E[2;0x, smul=\E[1;7x\E[2;0x, 
1184
1185 # description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
1186 oldpc3|oldibmpc3|old IBM PC BSD/386 Console, 
1187         km, 
1188         lines#25, 
1189         bel=^G, bold=\E[=15F, cr=^M, cud1=^J, dim=\E[=8F, dl1=\E[M, 
1190         ht=^I, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
1191         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F, 
1192         knp=\E[G, kpp=\E[I, nel=^M^J, sgr0=\E[=R, 
1193
1194 # Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
1195 # Note, the emulator supports many of the additional console features
1196 # listed in the iBCS2 (e.g. character-set selection) though not all
1197 # are described here.  This entry really ought to be upgraded.
1198 # Also note, the console will also work with fewer lines after doing
1199 # "stty rows NN", e.g. to use 24 lines.
1200 # (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996) 
1201 # Bug: The <op> capability resets attributes.
1202 bsdos|BSD/OS console, 
1203         am, bw, eo, km, xon, 
1204         colors#8, cols#80, it#8, lines#25, pairs#64, 
1205         bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M, 
1206         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1207         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1208         cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[=8F, dl=\E[%p1%dM, 
1209         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, 
1210         il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
1211         kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F, knp=\E[G, 
1212         kpp=\E[I, nel=^M^J, op=\E[x, rc=\E8, rev=\E[7m, rmso=\E[0m, 
1213         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, 
1214         smso=\E[7m, 
1215 bsdos-bold|IBM PC BSD/386 Console with bold instead of underline, 
1216         rmul=\E[0m, smul=\E[1m, 
1217         use=bsdos, 
1218
1219 # If you are BSDI, you want the following entries, for the moment.  
1220 # In release 2.0 they will probably phase out the pc3 and ibmpc3 names
1221 pc3|IBM PC BSD/386 Console, 
1222         use=bsdos, 
1223 ibmpc3|pc3-bold|IBM PC BSD/386 Console with bold instead of underline, 
1224         smul=\E[1m, 
1225         use=bsdos-bold, 
1226
1227 #### DEC VT100 and compatibles
1228 #
1229 # DEC terminals from the vt100 forward (and the vt52, way obsolete but still
1230 # the basis of some emulations) are collected here. Older DEC terminals and
1231 # micro consoles can be found in the `obsolete' section.  More details on
1232 # the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
1233 # found near the end of this file.
1234 #
1235 # Except where noted, these entries are DEC's official terminfos.
1236 # Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
1237 # Engineering for more information.  Updated terminfos and termcaps 
1238 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
1239 #
1240 # In October 1995 DEC sold its terminals business, including the VT and Dorio
1241 # line and trademark, to SunRiver Data Systems.  SunRiver has since changed
1242 # its name to Boundless Technologies; see http://www.boundless.com.
1243 #
1244
1245 # (The <acsc>, <rmacs>, and <smacs> capabilities aren't in DEC's official
1246 # entry -- esr)
1247 vt52|dec vt52, 
1248         cols#80, it#8, lines#24, 
1249         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1250         bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC, 
1251         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ, 
1252         el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, 
1253         kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF, 
1254
1255 # NOTE:  Any VT100 emulation, whether in hardware or software, almost
1256 # certainly includes what DEC called the `Level 1 editing extension' codes;
1257 # only the very oldest VT100s lacked these and there probably aren't any of
1258 # those left alive.  To capture these, use one of the VT102 entries.
1259 #
1260 # Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
1261 # since the cursor is left in a different position while in the
1262 # weird state (concept at beginning of next line, vt100 at end
1263 # of this line) so all versions of vi before 3.7 don't handle
1264 # <xenl> right on vt100. The correct way to handle <xenl> is when
1265 # you output the char in column 80, immediately output CR LF
1266 # and then assume you are in column 1 of the next line. If <xenl>
1267 # is on, am should be on too.
1268
1269 # I assume you have smooth scroll off or are at a slow enough baud
1270 # rate that it doesn't matter (1200? or less). Also this assumes
1271 # that you set auto-nl to "on", if you set it off use vt100-nam 
1272 # below.
1273
1274 # The padding requirements listed here are guesses. It is strongly
1275 # recommended that xon/xoff be enabled, as this is assumed here.
1276
1277 # The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the 
1278 # tab settings are in non-volatile memory and don't need to be 
1279 # reset upon login. Also setting the number of columns glitches 
1280 # the screen annoyingly. You can type "reset" to get them set.
1281 #
1282 # Here's a diagram of the VT100 keypad keys with their bindings.
1283 # The top line is the name of the key (some DEC keyboards have the keys
1284 # labelled somewhat differently, like GOLD instead of PF1, but this is
1285 # the most "official" name).  The second line is the escape sequence it
1286 # generates in Application Keypad mode (where "$" means the ESC
1287 # character).  The third line contains two items, first the mapping of
1288 # the key in terminfo, and then in termcap.
1289 #   _______________________________________
1290 #  |   PF1   |   PF2   |   PF3   |   PF4   |
1291 #  |   $OP   |   $OQ   |   $OR   |   $OS   |
1292 #  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1293 #  |    7         8         9         -    |
1294 #  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1295 #  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
1296 #  |    4    |    5    |    6    |    ,    |
1297 #  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1298 #  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
1299 #  |    1    |    2    |    3    |         |
1300 #  |   $Oq   |   $Or   |   $Os   |  enter  |
1301 #  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
1302 #  |         0         |   .     |         |
1303 #  |        $Op        |  $On    |         |
1304 #  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1305 #
1306 # And here, for those of you with orphaned VT100s lacking documentation, is
1307 # a description of the soft switches invoked when you do `Set Up'.
1308
1309 #  Scroll 0-Jump               Shifted 3   0-#
1310 #  |      1-Smooth             |           1-British pound sign
1311 #  | Autorepeat 0-Off          | Wrap Around 0-Off
1312 #  | |          1-On           | |           1-On
1313 #  | | Screen 0-Dark Bkg       | | New Line 0-Off
1314 #  | | |      1-Light Bkg      | | |        1-On
1315 #  | | | Cursor 0-Underline    | | | Interlace 0-Off
1316 #  | | | |      1-Block        | | | |         1-On
1317 #  | | | |                     | | | |
1318 #  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
1319 #                | | | |                     | | | |
1320 #                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
1321 #                | | |               1-On    | | |       1-50 Hz
1322 #                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
1323 #                | |           1-ANSI        | |                1-8 Bits
1324 #                | Keyclick 0-Off            | Parity 0-Off
1325 #                |          1-On             |        1-On
1326 #                Margin Bell 0-Off           Parity Sense 0-Odd
1327 #                            1-On                         1-Even
1328 #
1329 # The following SET-UP modes are assumed for normal operation:
1330 #       ANSI_MODE       AUTO_XON/XOFF_ON        NEWLINE_OFF     80_COLUMNS
1331 #       WRAP_AROUND_ON  JUMP_SCROLL_OFF
1332 # Other SET-UP modes may be set for operator convenience or communication
1333 # requirements; I recommend
1334 #       AUTOREPEAT_ON   BLOCK_CURSOR    MARGIN_BELL_OFF    SHIFTED_3_#
1335 # Unless you have a graphics add-on such as Digital Engineering's VT640
1336 # (and even then, whenever it can be arranged!) you should set
1337 #       INTERLACE_OFF
1338 #
1339 # (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
1340 vt100|vt100-am|dec vt100 (w/advanced video), 
1341         am, msgr, xenl, xon, 
1342         cols#80, it#8, lines#24, vt#3, 
1343         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1344         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1345         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1346         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1347         cuf=\E[%p1%dC, cuf1=\E[C$<2>, 
1348         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, 
1349         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>, 
1350         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq, 
1351         ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, 
1352         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, 
1353         kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, 
1354         kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8, 
1355         rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l, 
1356         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>, 
1357         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1358         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
1359         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, 
1360         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, 
1361 vt100nam|vt100-nam|vt100 no automargins, 
1362         am@, xenl@, use=vt100-am, 
1363 vt100-vb|dec vt100 (w/advanced video) & no beep, 
1364         bel@, flash=\E[?5h\E[?5l, use=vt100, 
1365
1366 # Ordinary vt100 in 132 column ("wide") mode.
1367 vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video), 
1368         cols#132, lines#24, 
1369         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am, 
1370 vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin), 
1371         cols#132, lines#14, vt@, 
1372         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam, 
1373
1374 # vt100 with no advanced video.
1375 vt100-nav|vt100 without advanced video option, 
1376         xmc#1, 
1377         blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m, 
1378         smul@, 
1379         use=vt100, 
1380 vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option), 
1381         cols#132, lines#14, use=vt100-nav, 
1382
1383 # vt100 with one of the 24 lines used as a status line.
1384 # We put the status line on the top.
1385 vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline, 
1386         eslok, hs, 
1387         lines#23, 
1388         clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr, 
1389         cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8, 
1390         fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8, 
1391         tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am, 
1392
1393 # Status line at bottom. 
1394 # Clearing the screen will clobber status line.
1395 vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline, 
1396         eslok, hs, 
1397         lines#23, 
1398         dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H, 
1399         tsl=\E7\E[24;%p1%dH\E[1K, 
1400         use=vt100-am, 
1401
1402 # Most of the `vt100' emulators out there actually emulate a vt102
1403 # This entry (or vt102-nsgr) is probably the right thing to use for
1404 # these.  
1405 vt102|dec vt102, 
1406         mir, 
1407         dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h, use=vt100, 
1408 vt102-w|dec vt102 in wide mode, 
1409         cols#132, 
1410         rs3=\E[?3h, use=vt102, 
1411
1412 # Many brain-dead PC comm programs that pretend to be `vt100-compatible'
1413 # fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
1414 # string in the canonical vt100 entry above leaves the screen littered
1415 # with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
1416 # after highlight turnoffs.  This entry should fix that, and even leave
1417 # ACS support working, at the cost of making multiple-highlight changes 
1418 # slightly more expensive.
1419 # From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
1420 vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes), 
1421         sgr@, sgr0=\E[m, 
1422         use=vt102, 
1423
1424 # VT125 Graphics CRT.  Clear screen also erases graphics
1425 vt125|vt125 graphics terminal, 
1426         clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100, 
1427
1428 # This isn't a DEC entry, it came from University of Wisconsin.
1429 # (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
1430 vt131|dec vt131, 
1431         am, xenl, 
1432         cols#80, it#8, lines#24, vt#3, 
1433         bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>, 
1434         clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1435         cub1=^H, cud1=^J, cuf1=\E[C$<2/>, 
1436         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>, 
1437         ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I, 
1438         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB, 
1439         kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, 
1440         kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>, 
1441         rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>, 
1442         rmul=\E[m$<2/>, 
1443         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1444         sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=, 
1445         smso=\E[7m$<2/>, smul=\E[4m$<2/>, 
1446
1447 # vt132 - like vt100 but slower and has ins/del line and such.
1448 # I'm told that <smir>/<rmir> are backwards in the terminal from the
1449 # manual and from the ANSI standard, this describes the actual 
1450 # terminal. I've never actually used a vt132 myself, so this 
1451 # is untested.
1452 #
1453 vt132|DEC vt132, 
1454         xenl, 
1455         dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>, 
1456         ip=$<7>, rmir=\E[4h, smir=\E[4l, 
1457         use=vt100, 
1458
1459 # vt220:
1460 # This vt220 description maps F5--F9 to the second block of function keys
1461 # at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
1462 # with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
1463 # PF1--PF4 are used as F1--F4.
1464 #
1465 vt220|vt200|DEC VT220 in vt100 emulation mode, 
1466         am, mir, xenl, xon, 
1467         cols#80, lines#24, vt#3, 
1468         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1469         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l, 
1470         clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M, 
1471         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C, 
1472         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1473         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1474         if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>, 
1475         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
1476         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP, 
1477         kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~, 
1478         kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, 
1479         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rc=\E8, 
1480         rev=\E[7m$<2>, rf=/usr/share/tabset/vt100, 
1481         ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1482         rmso=\E[27m, rmul=\E[24m, 
1483         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1484         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1485         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1486         smso=\E[7m, smul=\E[4m, 
1487 vt220-w|vt200-w|DEC vt220 in wide mode, 
1488         cols#132, 
1489         rs3=\E[?3h, use=vt220, 
1490
1491 #
1492 # vt220d:
1493 # This vt220 description regards F6--F10 as the second block of function keys
1494 # at the top of the keyboard.  This mapping follows the description given
1495 # in the VT220 Programmer Reference Manual and agrees with the labeling
1496 # on some terminals that emulate the vt220.  There is no support for an F5.
1497 # See vt220 for an alternate mapping. 
1498 #
1499 vt220d|DEC VT220 in vt100 mode with DEC function key labeling, 
1500         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, 
1501         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, 
1502         kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~, 
1503         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1504         use=vt220, 
1505
1506 vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins, 
1507         am@, 
1508         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220, 
1509
1510 # This is misnamed (see xterm-8bit for an example of 8-bit controls)
1511 vt220-8|dec vt220 8 bit terminal, 
1512         am, mc5i, mir, msgr, xenl, xon, 
1513         cols#80, it#8, lines#24, 
1514         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1515         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
1516         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1517         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1518         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1519         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1520         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, 
1521         flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH, 
1522         ich=\E[%p1%d@, if=/usr/share/tabset/vt100, 
1523         il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1524         is2=\E[?7h\E[>\E[?1h\E F\E[?4l, kbs=^H, kcub1=\E[D, 
1525         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~, 
1526         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
1527         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, 
1528         kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~, 
1529         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, 
1530         khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, 
1531         kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[i, 
1532         mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, 
1533         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m, 
1534         rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N, 
1535         smam=\E[?7h, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1536
1537 # vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
1538 # (not an official DEC entry!)
1539 # The problem with real vt220 terminals is they don't send escapes when in
1540 # in vt220 mode.  This can be gotten around two ways.  1> don't send
1541 # escapes or 2> put the vt220 into vt100 mode and use all the nifty
1542 # features of vt100 advanced video which it then has.
1543 #
1544 # This entry takes the view of putting a vt220 into vt100 mode so
1545 # you can use the escape key in emacs and everything else which needs it.
1546 #
1547 # You probably don't want to use this on a VMS machine since VMS will think
1548 # it has a vt220 and will get fouled up coming out of emacs
1549 #
1550 # From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
1551 vt200-js|vt220-js|dec vt200 series with jump scroll, 
1552         am, 
1553         cols#80, 
1554         bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1555         cub1=^H, cud1=^J, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
1556         dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
1557         il1=\E[L, ind=\ED, 
1558         is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1l\E[?5l\E[?6l\E[?7h\E[?8h\E[?25h\E>\E[m, 
1559         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1560         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=^M\ED, 
1561         rf=/usr/lib/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l, 
1562         rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m, 
1563         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smdc=, 
1564         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m, 
1565  
1566 # This was DEC's vt320.  Use the purpose-built one below instead 
1567 #vt320|DEC VT320 in vt100 emulation mode,
1568 #       use=vt220,
1569
1570 #
1571 # Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
1572 #
1573 vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode, 
1574         am@, 
1575         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220, 
1576
1577 # These entries are not DEC's official ones, they were purpose-built for the 
1578 # VT320.  Here are the designer's notes:
1579 # <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to 
1580 # 'Erase to End of Field'... since nothing seems to use 'end' anyways...
1581 # khome is Home on a PC kbd.  Actually 'FIND' on a VT.
1582 # Things that use <knxt> usually use tab anyways... and things that don't use
1583 # tab usually use <knxt> instead...
1584 # kprv is same as tab - Backtab is useless...
1585 # I left out <sgr> because of its RIDICULOUS complexity,
1586 # and the resulting fact that it causes the termcap translation of the entry
1587 # to SMASH the 1k-barrier...
1588 # From: Adam Thompson <thompson@xanth.magic.mb.ca> Sept 10 1995
1589 # (vt320: uncommented <fsl> --esr) 
1590 vt320|vt300|dec vt320 7 bit terminal, 
1591         am, eslok, hs, mir, msgr, xenl, 
1592         cols#80, lines#24, wsl#80, 
1593         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1594         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
1595         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
1596         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1597         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1598         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1599         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1600         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, fsl=\E[0$}, 
1601         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, 
1602         il1=\E[L, ind=\ED, 
1603         is2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1604         ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs, 
1605         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1606         kdch1=\E[3~, kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~, 
1607         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
1608         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
1609         kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, 
1610         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1611         khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~, 
1612         kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, 
1613         nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt300, 
1614         ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, 
1615         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, 
1616         rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1617         sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h, 
1618         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1619         tsl=\E[1$}\E[H\E[K, 
1620 vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy, 
1621         am@, 
1622         is2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1623         rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1624         use=vt320, 
1625 # We have to init 132-col mode, not 80-col mode.
1626 vt320-w|vt300-w|dec vt320 wide 7 bit terminal, 
1627         cols#132, wsl#132, 
1628         is2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1629         rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1630         use=vt320, 
1631 vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am, 
1632         am@, 
1633         is2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1634         rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1635         use=vt320-w, 
1636
1637 # VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
1638 #   which are pretty much a superset of the VT320.  They have the
1639 #   host writable status line, yet another different DRCS matrix size,
1640 #   and such, but they add the DEC Technical character set, Multiple text
1641 #   pages, selectable length pages, and the like.  The difference between
1642 #   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
1643 #   monitor, the former has 4 planes and a color monitor.  These terminals
1644 #   support VT131 and ANSI block mode, but as with much of these things,
1645 #   termcap/terminfo doesn't deal with these features.
1646 #
1647 # Note that this entry is are set up in what was the standard way for GNU
1648 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
1649 # keys were switched into application mode at the same time the numeric pad
1650 # is switched into application mode.  This changes the definitions of the
1651 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of 
1652 # your termcap or terminfo entry,
1653 #
1654 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
1655 # (vt340: string capability "sb=\E[M" corrected to "sr";
1656 # also, added <rmam>/<smam> based on the init string -- esr)
1657 vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page, 
1658         am, eslok, hs, mir, msgr, xenl, xon, 
1659         cols#80, it#8, lines#24, vt#3, 
1660         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1661         blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J, 
1662         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1663         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1664         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1665         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP, 
1666         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1667         dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K, 
1668         flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, home=\E[H, ht=^I, 
1669         hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1670         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1671         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1672         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~, 
1673         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2, 
1674         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m, 
1675         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O, 
1676         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, 
1677         rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N, 
1678         smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, 
1679         smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH, 
1680
1681 # DEC doesn't supply a vt400 description, so we add Daniel Glasser's
1682 # (originally written with vt420 as its primary name, and usable for it).
1683
1684 # VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple 
1685 #    text pages and long text pages with selectable length of the vt340, along
1686 #    with left and right margins, rectangular area text copy, fill, and erase
1687 #    operations, selected region character attribute change operations,
1688 #    page memory and rectangle checksums, insert/delete column, reception
1689 #    macros, and other features too numerous to remember right now.  TERMCAP
1690 #    can only take advantage of a few of these added features.
1691 #
1692 # Note that this entry is are set up in what was the standard way for GNU
1693 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
1694 # keys were switched into application mode at the same time the numeric pad
1695 # is switched into application mode.  This changes the definitions of the
1696 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of 
1697 # your termcap entry,
1698 #
1699 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
1700 # (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
1701 # also, added <rmam>/<smam> based on the init string -- esr)
1702 vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap, 
1703         am, eslok, hs, mir, msgr, xenl, xon, 
1704         cols#80, it#8, lines#24, vt#3, 
1705         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1706         blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
1707         clear=\E[H\E[J$<10/>, cnorm=\E[?25h, cr=^M, 
1708         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1709         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1710         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1711         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
1712         dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>, 
1713         el=\E[K$<4/>, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, 
1714         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
1715         il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1716         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1717         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1718         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~, 
1719         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2, 
1720         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m, 
1721         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O, 
1722         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, 
1723         rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7, sgr0=\E[m, 
1724         smacs=^N, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, 
1725         smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1726         tsl=\E[2$~\E[1$}\E[1;%dH, 
1727
1728 # (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
1729 # a missing <sc> -- esr)
1730 vt420|DEC VT420, 
1731         am, mir, xenl, xon, 
1732         cols#80, lines#24, vt#3, 
1733         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1734         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1735         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1736         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1737         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1738         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1739         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1740         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1741         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1742         kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR, 
1743         kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, 
1744         kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
1745         kslt=\E[4~, rc=\E8, rev=\E[7m$<2>, 
1746         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>, 
1747         rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, 
1748         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1749         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1750         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1751         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1752         smkx=\E=, smso=\E[7m, smul=\E[4m, 
1753
1754 #
1755 # DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
1756 # takes two parameters, the key and the string.  Translating the key is
1757 # straightforward (keys 1-5 are not defined on real terminals, though some
1758 # emulators define these):
1759 #
1760 #               if (key < 16) then  value = key;
1761 #               else if (key < 21) then value = key + 1; 
1762 #               else if (key < 25) then value = key + 2;
1763 #               else if (key < 27) then value = key + 3;
1764 #               else if (key < 30) then value = key + 4;
1765 #               else value = key + 5;
1766 #
1767 # The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT". 
1768 # There's no provision in terminfo for emitting a string in this format, so the
1769 # application has to know it.
1770 #
1771 vt420pc|DEC VT420 w/PC keyboard, 
1772         kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~, 
1773         kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, 
1774         kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~, 
1775         kf18=\E[17;2~, kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~, 
1776         kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[23;2~, 
1777         kf24=\E[24;2~, kf25=\E[23~, kf26=\E[24~, kf27=\E[25~, 
1778         kf28=\E[26~, kf29=\E[28~, kf3=\E[13~, kf30=\E[29~, 
1779         kf31=\E[31~, kf32=\E[32~, kf33=\E[33~, kf34=\E[34~, 
1780         kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~, kf38=\E[24;2~, 
1781         kf39=\E[25;2~, kf4=\E[14~, kf40=\E[26;2~, kf41=\E[28;2~, 
1782         kf42=\E[29;2~, kf43=\E[31;2~, kf44=\E[32;2~, 
1783         kf45=\E[33;2~, kf46=\E[34;2~, kf47=\E[35;2~, 
1784         kf48=\E[36;2~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
1785         kf8=\E[19~, kf9=\E[20~, khome=\E[H, 
1786         pctrm=USR_TERM\:vt420pcdos\:, 
1787         pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\, use=vt420, 
1788
1789 vt420pcdos|DEC VT420 w/PC for DOS Merge, 
1790         lines#25, 
1791         dispc=%?%p2%{19}%=%t\E\023\021%e%p2%{32}%<%t\E%p2%c%e%p2%{127}%=%t\E\177%e%p2%c%;, 
1792         pctrm@, 
1793         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@, 
1794         sgr0=\E[m, smsc=\E[?1;2r\E[34h, 
1795         use=vt420pc, 
1796
1797 vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys, 
1798         kdch1=\177, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
1799         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
1800         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
1801         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
1802         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1803         khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS, 
1804         use=vt420, 
1805
1806 vt510|DEC VT510, 
1807         use=vt420, 
1808 vt510pc|DEC VT510 w/PC keyboard, 
1809         use=vt420pc, 
1810 vt510pcdos|DEC VT510 w/PC for DOS Merge, 
1811         use=vt420pcdos, 
1812
1813 # VT520/VT525
1814 #
1815 # The VT520 is a monochrome text terminal capable of managing up to
1816 # four independent sessions in the terminal.  It has multiple ANSI
1817 # emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
1818 # and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
1819 # 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
1820 #
1821 # Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
1822 # [Alt]/[Print Screen] depending upon which keyboard and which
1823 # terminal mode is being used.  If Set-Up has been disabled or
1824 # assigned to an unknown key, Set-Up may be entered by pressing
1825 # [F3] as the first key after power up, regardless of keyboard type.
1826 # (vt520: I added <rmam>/<smam> based on the init string, also <sc> -- esr)
1827 vt520|DEC VT520, 
1828         am, mir, xenl, xon, 
1829         cols#80, lines#24, vt#3, 
1830         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1831         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1832         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1833         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1834         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1835         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1836         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1837         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1838         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1839         kdch1=\E[3~, kf0=\E[29~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, 
1840         kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, 
1841         kf8=\E[20~, kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, 
1842         kpp=\E[5~, kslt=\E[4~, 
1843         pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\, 
1844         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300, 
1845         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1846         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1847         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1848         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1849         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1850         smso=\E[7m, smul=\E[4m, 
1851
1852 # (vt525: I added <rmam>/<smam> based on the init string;
1853 # removed <rmso>=\E[m, <rmul>=\E[m, added <sc> -- esr)
1854 vt525|DEC VT525, 
1855         am, mir, xenl, xon, 
1856         cols#80, lines#24, vt#3, 
1857         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1858         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1859         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1860         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1861         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1862         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1863         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1864         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1865         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1866         kdch1=\E[3~, kf0=\E[29~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, 
1867         kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, 
1868         kf8=\E[20~, kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, 
1869         kpp=\E[5~, kslt=\E[4~, 
1870         pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\, 
1871         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300, 
1872         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1873         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1874         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1875         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1876         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1877         smso=\E[7m, smul=\E[4m, 
1878
1879 #### VT100 emulations
1880 #
1881
1882 # John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
1883 # (the best Windows telnet as of September 1995) presents the name `dec-vt100'
1884 # to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
1885 # that this works best with a stock vt100 entry.
1886 dec-vt100|EWAN telnet's vt100 emulation, 
1887         use=vt100, 
1888
1889 # From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
1890 dec-vt220|DOS tnvt200 terminal emulator, 
1891         am@, use=vt220, 
1892
1893 # Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
1894 # anyone who needs PC VT340 emulation. (or anything below that level, for
1895 # that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
1896 # RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
1897 # I can send the address if requested.
1898 # (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
1899 # From: Adam Thompson <thompson@xanth.magic.mb.ca> Sept 10 1995
1900 z340|zstem vt340 terminal emulator 132col 42line, 
1901         lines#42, 
1902         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
1903         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
1904         use=vt320-w, 
1905 z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins), 
1906         am@, 
1907         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
1908         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
1909         use=z340, 
1910
1911 #### X terminal emulators
1912 #
1913 # You can add the following line to your .Xdefaults to change the terminal type
1914 # set by the xterms you start up to my-xterm:
1915 #
1916 # *termName:  my-xterm
1917 #
1918 # System administrators can change the default entry for xterm instances
1919 # by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
1920 # case, xterm will detect and reject an invalid terminal type, falling back
1921 # to the default of xterm.
1922 #
1923
1924 # X10/6.6       11/7/86, minus alternate screen, plus (csr)
1925 # (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
1926 # removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
1927 # as these seem not to work -- esr)
1928 x10term|vs100-x10|xterm terminal emulator (X10 window system), 
1929         am, km, mir, msgr, xenl, xon, 
1930         cols#80, it#8, lines#65, 
1931         bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr, 
1932         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1933         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
1934         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, 
1935         il1=\E[L, ind=^J, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H, 
1936         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, 
1937         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l, 
1938         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, 
1939         sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, 
1940         smso=\E[7m, smul=\E[4m, 
1941 # Compatible with the R5 xterm 
1942 # (from the XFree86 3.2 distribution, <blink=@> removed)
1943 xterm-r5|xterm R5 version, 
1944         am, km, msgr, xenl, 
1945         cols#80, it#8, lines#24, 
1946         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
1947         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1948         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1949         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1950         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1951         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
1952         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD, 
1953         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, 
1954         kdl1=\E[31~, kel=\E[8~, kf0=\EOq, kf1=\E[11~, kf10=\E[21~, 
1955         kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, kf3=\E[13~, 
1956         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
1957         kf9=\E[20~, khome=\E[7~, kich1=\E[2~, kil1=\E[30~, 
1958         knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM, 
1959         rmkx=\E[?1l\E>, rmso=\E[m, 
1960         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7, 
1961         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
1962         sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, tbc=\E[3g, 
1963 # Compatible with the R6 xterm
1964 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
1965 xterm-r6|xterm-old|xterm X11R6 version, 
1966         am, km, mir, msgr, xenl, 
1967         cols#80, it#8, lines#24, 
1968         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1969         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
1970         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1971         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1972         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1973         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1974         el=\E[K, enacs=\E)0, home=\E[H, ht=^I, il=\E[%p1%dL, 
1975         il1=\E[L, ind=^J, 
1976         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H, 
1977         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1978         kdch1=\E[3~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, 
1979         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
1980         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
1981         kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, 
1982         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, 
1983         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El, 
1984         memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
1985         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>, 
1986         rmso=\E[m, rmul=\E[m, 
1987         rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, sc=\E7, 
1988         sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h, 
1989         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1990 # This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
1991 # The name has been changed and some aliases have been removed.
1992 xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System), 
1993         am, bce, km, mir, msgr, xenl, 
1994         colors#8, cols#80, it#8, lines#24, pairs#64, 
1995         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1996         bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
1997         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
1998         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1999         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2000         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2001         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
2002         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
2003         enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, 
2004         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
2005         il=\E[%p1%dL, il1=\E[L, ind=^J, 
2006         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, 
2007         ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq, 
2008         kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
2009         kdch1=\177, kend=\EOF, kent=\EOM, kf1=\E[11~, kf10=\E[21~, 
2010         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
2011         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
2012         kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, 
2013         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
2014         kf9=\E[20~, kfnd=\E[1~, khome=\EOH, kich1=\E[2~, 
2015         kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El, 
2016         memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
2017         rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, 
2018         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=^O, 
2019         rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, sc=\E7, 
2020         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
2021         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
2022         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
2023         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
2024         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h, 
2025         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
2026         tbc=\E[3g, vpa=\E[%i%p1%dd, 
2027
2028 # This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
2029 # codes for F1-F4 except while in VT220 mode.
2030 xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System), 
2031         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
2032         use=xterm-xf86-v32, 
2033
2034 # This beta version will probably be released in XFree86 4.0 in 1998.
2035 # Besides providing printer support, it exploits a new feature that allows
2036 # xterm to use terminfo-based descriptions with the titeInhibit resource.
2037 xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System), 
2038         mc5i, 
2039         mc0=\E[i, mc4=\E[4i, mc5=\E[5i, rmcup=\E[?1047l\E[?1048l, 
2040         rs1=\Ec, smcup=\E[?1048h\E[?1047h, 
2041         use=xterm-xf86-v33, 
2042
2043 # From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
2044 xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1, 
2045         rmso=\E[m, rmul=\E[m, 
2046         use=xterm-xf86-v33, 
2047
2048 # This is one of the variants from XFree86 3.3 (T.Dickey)
2049 xterm-16color|xterm with 16 colors like aixterm, 
2050         colors#16, ncv#32, pairs#256, 
2051         setab@, setaf@, 
2052         setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m, 
2053         setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m, 
2054         use=xterm-xf86-v40, 
2055
2056 # This is another variant, for XFree86 4.0 xterm (T.Dickey)
2057 # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
2058 # To use it, your decTerminalID resource must be set to 200 or above.
2059 #
2060 #       HTS     \E H    \210
2061 #       RI      \E M    \215
2062 #       SS3     \E O    \217
2063 #       CSI     \E [    \233
2064 #
2065 xterm-8bit|xterm terminal emulator 8-bit controls (X Window System), 
2066         am, bce, km, mc5i, mir, msgr, xenl, 
2067         colors#8, cols#80, it#8, lines#24, pairs#64, 
2068         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2069         bel=^G, bold=\2331m, cbt=\233Z, civis=\233?25l, 
2070         clear=\233H\2332J, cnorm=\233?25h, cr=^M, 
2071         csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H, 
2072         cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C, 
2073         cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A, 
2074         cvvis=\233?25h, dch=\233%p1%dP, dch1=\233P, 
2075         dl=\233%p1%dM, dl1=\233M, ech=\233%p1%dX, ed=\233J, 
2076         el=\233K, el1=\2331K, enacs=\E(B\E)0, 
2077         flash=\233?5h\233?5l, home=\233H, hpa=\233%i%p1%dG, 
2078         ht=^I, hts=\210, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL, 
2079         il1=\233L, ind=^J, 
2080         is2=\E7\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>, 
2081         ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kbs=^H, 
2082         kc1=\217q, kc3=\217s, kcub1=\217D, kcud1=\217B, 
2083         kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\217F, 
2084         kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~, 
2085         kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~, 
2086         kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~, 
2087         kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~, 
2088         kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~, 
2089         kf9=\23320~, kfnd=\2331~, khome=\217H, kich1=\2332~, 
2090         kmous=\233M, knp=\2336~, kpp=\2335~, kslt=\2334~, 
2091         mc0=\233i, mc4=\2334i, mc5=\2335i, meml=\El, memu=\Em, 
2092         op=\23339;49m, rc=\E8, rev=\2337m, ri=\215, rmacs=^O, 
2093         rmam=\233?7l, rmcup=\2332J\233?47l\E8, rmir=\2334l, 
2094         rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m, rs1=\Ec, 
2095         rs2=\E7\E[62"p\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>, 
2096         sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm, 
2097         setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
2098         setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
2099         sgr=\2330%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
2100         sgr0=\233m^O, smacs=^N, smam=\233?7h, smcup=\E7\233?47h, 
2101         smir=\2334h, smkx=\233?1h\E=, smso=\2337m, smul=\2334m, 
2102         tbc=\2333g, vpa=\233%i%p1%dd, 
2103
2104 # This is xterm for ncurses. It mainly adds mappings for more high-half
2105 # characters.  Note that these will only work for fixed-width fonts.
2106 xterm|vs100|xterms|xterm terminal emulator (X Window System), 
2107         acsc=++\,\,--..00``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2108         kmous=\E[M, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
2109         use=xterm-r6, 
2110
2111 # These entries allow access to the X titlebar and icon name as a status line. 
2112 # Note that twm (and possibly window managers descended from it such as tvtwm, 
2113 # ctwm, and vtwm) track windows by icon-name; thus, you don't want to mess
2114 # with it.
2115 xterm+sl|access X title line and icon name, 
2116         hs, 
2117         wsl#40, 
2118         dsl=\E]0;\007, fsl=^G, tsl=\E]0;, 
2119 xterm+sl-twm|access X title line (pacify twm-descended window managers), 
2120         hs, 
2121         wsl#40, 
2122         dsl=\E]2;\007, fsl=^G, tsl=\E]2;, 
2123
2124 #
2125 # The following xterm variants don't depend on your base version
2126 #
2127 xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold, 
2128         smso=\E[1m, 
2129         use=xterm, 
2130 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
2131 # (kterm should not invoke DEC Graphics as the alternate character set
2132 #  -- Kenji Rikitake)
2133 kterm|kterm kanji terminal emulator (X window system), 
2134         eslok, hs, 
2135         acsc@, csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs@, fsl=\E[?F, 
2136         kmous=\E[M, op=\E[39;49m, rc=\E8, rmacs@, sc=\E7, smacs@, 
2137         tsl=\E[?E\E[?%i%dT, 
2138         use=xterm-r6, use=klone+color, 
2139 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
2140 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs, 
2141         ich@, ich1@, 
2142         use=xterm, 
2143 # From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996 
2144 xterm1|xterm terminal emulator ignoring the alternate screen buffer, 
2145         rmcup@, smcup@, 
2146         use=xterm, 
2147
2148 # This describes the capabilities of color_xterm, an xterm variant from
2149 # before ECMA-64 color support was folded into the main-line xterm release.
2150 # This entry is straight from color_xterm's maintainer.
2151 # From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
2152 color_xterm|cx|cx100|color_xterm color terminal emulator for X, 
2153         am, km, mir, msgr, xenl, 
2154         colors#8, cols#80, it#8, lines#65, pairs#64, 
2155         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2156         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
2157         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2158         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2159         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2160         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2161         el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I, 
2162         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
2163         is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, ka1=\EOw, ka3=\EOy, 
2164         kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\EOD, kcud1=\EOB, 
2165         kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kent=\EOM, kf1=\E[11~, 
2166         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, 
2167         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
2168         kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~, 
2169         kmous=\E[M, knp=\E[6~, kpp=\E[5~, op=\E[39;49m, rc=\E8, 
2170         rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, 
2171         rmcup=\E>\E[?41;1r, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, 
2172         rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<, 
2173         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
2174         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
2175         sgr0=\E[m, smacs=^N, smam=\E[?7h, 
2176         smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m, 
2177         smul=\E[4m, 
2178
2179 # From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
2180 # Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
2181 # Notes:
2182 # rxvt 2.21b uses
2183 #       smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
2184 # but some applications don't work with that.
2185 # It also has an AIX extension
2186 #       box2=lqkxjmwuvtn,
2187 # and
2188 #       ech=\E[%p1%dX,
2189 # but the latter does not work correctly.
2190 #
2191 # rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
2192 # Since rxvt is not really compatible with xterm, it should be configured as
2193 # "rxvt" (monochrome) and "rxvt-color". 
2194 rxvt-basic|rxvt terminal base (X Window System), 
2195         am, bce, eo, km, mir, msgr, xenl, xon, 
2196         cols#80, it#8, lines#24, 
2197         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2198         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2199         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
2200         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2201         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2202         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2203         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
2204         dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0, 
2205         flash=\E[?5h\E[?5l, home=\E[H, ht=^I, hts=\EH, 
2206         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
2207         is1=\E[?47l\E=\E[?1l, 
2208         is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, 
2209         kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$, 
2210         kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H, 
2211         kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, 
2212         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^, 
2213         kend=\E[8~, kent=\EOM, kf0=\E[21~, kf1=\E[11~, kf10=\E[21~, 
2214         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
2215         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
2216         kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, 
2217         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
2218         kf9=\E[20~, kfnd=\E[1~, khome=\E[7~, kich1=\E[2~, 
2219         kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, rc=\E8, 
2220         rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[?47l\E8, rmir=\E[4l, 
2221         rmkx=\E>, rmso=\E[27m, rmul=\E[24m, 
2222         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, 
2223         rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>, 
2224         s0ds=\E(B, s1ds=\E(0, sc=\E7, sgr0=\E[0m\017, smacs=^N, 
2225         smcup=\E7\E[?47h, smir=\E[4h, smkx=\E=, smso=\E[7m, 
2226         smul=\E[4m, tbc=\E[3g, 
2227 rxvt|rxvt terminal emulator (X Window System), 
2228         colors#8, pairs#64, 
2229         op=\E[39;49m, setab=\E[%p1%{40}%+%dm, 
2230         setaf=\E[%p1%{30}%+%dm, sgr0=\E[m\017, use=rxvt-basic, 
2231
2232 # From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
2233 # Here's a termcap entry I've been using for xterm_color, which comes
2234 # with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
2235 # color stuff, I also have a status line defined as the window manager
2236 # title bar. [I have translated it to terminfo -- ESR]
2237 xterm-pcolor|xterm with color used for highlights and status line, 
2238         bold=\E[1m\E[43m, rev=\E[7m\E[34m, smso=\E[7m\E[31m, 
2239         smul=\E[4m\E[42m, 
2240         use=xterm+sl, use=xterm-r6, 
2241
2242 # HP ships this, except for the pb#9600 which was merged in from BSD termcap.
2243 # (hpterm: added empty <acsc>, we have no idea what ACS chars look like --esr)
2244 hpterm|X-hpterm|hp X11 terminal emulator, 
2245         am, da, db, mir, xhp, 
2246         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0, 
2247         acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, 
2248         cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, 
2249         cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK, 
2250         hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=^J, kbs=^H, 
2251         kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2252         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep, 
2253         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, 
2254         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF, 
2255         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, meml=\El, 
2256         memu=\Em, pfkey=\E&f%p1%dk%p2%l%dL%p2%s, 
2257         pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s, 
2258         pfx=\E&f2a%p1%dk%p2%l%dL%p2%s, 
2259         pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET, 
2260         rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, 
2261         rmul=\E&d@, 
2262         sgr=\E&d%?%p7%t%'s'%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%'@'%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
2263         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB, 
2264         smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
2265
2266 # This entry describes an xterm with Sun-style function keys enabled
2267 # via the X resource setting "xterm*sunFunctionKeys:true"
2268 # To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
2269 # The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
2270 # because we want it to be seen as <kcpy>. 
2271 # The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
2272 # with their Sun keyboard labels instead.
2273 # From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
2274 xterm-sun|xterm with sunFunctionKeys true, 
2275         kb2=\E[218z, kcpy=\E[197z, kend=\E[220z, kf1=\E[224z, 
2276         kf10=\E[233z, kf11=\E[192z, kf12=\E[193z, kf13=\E[194z, 
2277         kf14=\E[195z, kf15=\E[196z, kf17=\E[198z, kf18=\E[199z, 
2278         kf19=\E[200z, kf2=\E[225z, kf20=\E[201z, kf3=\E[226z, 
2279         kf31=\E[208z, kf32=\E[209z, kf33=\E[210z, kf34=\E[211z, 
2280         kf35=\E[212z, kf36=\E[213z, kf38=\E[215z, kf4=\E[227z, 
2281         kf40=\E[217z, kf42=\E[219z, kf44=\E[221z, kf5=\E[228z, 
2282         kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, 
2283         kfnd=\E[200z, khlp=\E[196z, khome=\E[214z, kich1=\E[2z, 
2284         knp=\E[222z, kpp=\E[216z, kund=\E[195z, 
2285         use=xterm, 
2286 xterms-sun|small (80x24) xterm with sunFunctionKeys true, 
2287         cols#80, lines#24, use=xterm-sun, 
2288
2289 # This is for the extensible terminal emulator on the X11R6 contrib tape.
2290 # (emu: I changed <setab>/<setaf> to <setb>/<setf> -- esr)
2291 emu|emu native mode, 
2292         mir, msgr, xon, 
2293         colors#15, cols#80, it#8, lines#24, pairs#64, vt#200, 
2294         acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244, 
2295         bel=^G, blink=\ES\EW, bold=\ES\EU, civis=\EZ, 
2296         clear=\EP\EE0;0;, cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;, 
2297         cub=\Eq-%p1%d;, cub1=^H, cud=\Ep%p1%d;, cud1=\EB, 
2298         cuf=\Eq%p1%d;, cuf1=\ED, cup=\EE%p1%d;%p2%d;, 
2299         cuu=\Ep-%p1%d;, cuu1=\EA, cvvis=\Ea, dch=\EI%p1%d;, 
2300         dch1=\EI1;, dl=\ER%p1%d;, dl1=\ER1;, ech=\Ej%p1%d;, ed=\EN, 
2301         el=\EK, el1=\EL, enacs=\0, home=\EE0;0;, ht=^I, hts=\Eh, 
2302         il=\EQ%p1%d;, il1=\EQ1;, ind=\EG, is2=\ES\Er0;\Es0;, 
2303         kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED, kcuu1=\EA, 
2304         kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01, kf10=\EF10, 
2305         kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14, kf15=\EF15, 
2306         kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19, kf2=\EF02, 
2307         kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05, kf6=\EF06, 
2308         kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind, kich1=\Eins, 
2309         knp=\Enext, kpp=\Eprior, kslt=\Esel, oc=\Es0;\Er0;, 
2310         rev=\ES\ET, ri=\EF, rmacs=\0, rmir=\EX, rmso=\ES, rmul=\ES, 
2311         rs2=\ES\Es0;\Er0;, setb=\Es%i%p1%d;, setf=\Er%i%p1%d;, 
2312         sgr0=\ES, smacs=\0, smir=\EY, smso=\ES\ET, smul=\ES\EV, 
2313         tbc=\Ej, 
2314
2315 ######## MGR
2316 #
2317 # MGR is a Bell Labs window system lighter-weight than X.
2318 # These entries describe MGR's xterm-equivalent. 
2319 # They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997 
2320 #
2321
2322 mgr|Bellcore MGR (non X) window system terminal emulation, 
2323         am, km, 
2324         bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=^M, 
2325         csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er, 
2326         cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h, 
2327         dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>, 
2328         dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u, 
2329         ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>, 
2330         il1=\Ea$<3>, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
2331         kcuf1=\E[C, kcuu1=\E[A, nel=^M^J, rev=\E1n, rmam=\E5S, 
2332         rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n, 
2333         smul=\E4n, 
2334 mgr-sun|Mgr window with Sun keyboard, 
2335         ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z, 
2336         kc3=\E[222z, kcpy=\E197z, kend=\E[220z, kent=\E[250z, 
2337         kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, 
2338         kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, 
2339         kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, 
2340         kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z, 
2341         kopn=\E[198z, kpp=\E[216z, kund=\E[195z, 
2342         use=mgr, 
2343 mgr-linux|Mgr window with Linux keyboard, 
2344         ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~, 
2345         kdch1=\E[3~, kend=\E[4~, kf0=\E[[J, kf1=\E[[A, kf10=\E[21~, 
2346         kf11=\E[23~, kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, 
2347         kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
2348         khome=\E[1~, knp=\E[6~, kpp=\E[5~, 
2349         use=mgr, 
2350
2351 ######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
2352 #
2353
2354 # Columbus UNIX virtual terminal. This terminal also appears in 
2355 # UNIX 4.0 and successors as line discipline 1 (?), but is 
2356 # undocumented and does not really work quite right.
2357 cbunix|cb unix virtual terminal, 
2358         am, da, db, 
2359         cols#80, lines#24, lm#0, 
2360         bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
2361         cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL, 
2362         el=\EK, ich1=\EO, il1=\EP, ind=^J, kcub1=\ED, kcud1=\EB, 
2363         kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A, 
2364         smso=\Ea^D, smul=\Ea^A, 
2365 # (vremote: removed obsolete ":nl@:" -- esr)
2366 vremote|virtual remote terminal, 
2367         am@, 
2368         cols#79, use=cbunix, 
2369
2370 pty|4bsd pseudo teletype, 
2371         cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!, 
2372         smso=\Ea$, smul=\Ea!, 
2373         use=cbunix, 
2374
2375 # The codes supported by the term.el terminal emulation in GNU Emacs 19.30 
2376 eterm|gnu emacs term.el terminal emulation, 
2377         am, mir, xenl, 
2378         cols#80, lines#24, 
2379         bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
2380         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2381         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2382         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2383         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\\E[J, 
2384         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, 
2385         il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m, 
2386         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m, 
2387         sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m, 
2388         smul=\E[4m, 
2389
2390 # Entries for use by the FSF's `screen' program.  The screen and
2391 # screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
2392 # come from University of Wisconsin and may be older.
2393 # (screen: added <cnorm> on ANSI model -- esr)
2394
2395 screen|VT 100/ANSI X3.64 virtual terminal, 
2396         am, km, mir, msgr, xenl, 
2397         colors#8, cols#80, it#8, lines#24, pairs#64, 
2398         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2399         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
2400         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
2401         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2402         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2403         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
2404         cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
2405         dl1=\E[M, ed=\E[J, el=\E[K, enacs=\E(B\E)0, flash=\Eg, 
2406         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, 
2407         il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, 
2408         kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~, 
2409         kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
2410         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
2411         khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~, 
2412         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l, 
2413         rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m, rs2=\Ec, sc=\E7, 
2414         sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=, 
2415         smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
2416         use=ecma+color, 
2417
2418 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols, 
2419         cols#132, use=screen, 
2420
2421 screen2|old VT 100/ANSI X3.64 virtual terminal, 
2422         cols#80, it#8, lines#24, 
2423         cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H, 
2424         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
2425         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2426         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2427         el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL, 
2428         il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2429         kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, 
2430         kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH, 
2431         nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m, 
2432         rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h, 
2433         smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
2434 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
2435 screen3|older VT 100/ANSI X3.64 virtual terminal, 
2436         km, mir, msgr, 
2437         cols#80, it#8, lines#24, 
2438         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
2439         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2440         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2441         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
2442         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2443         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, 
2444         il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD, 
2445         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, 
2446         kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, 
2447         rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec, 
2448         sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m, 
2449         smul=\E[4m, tbc=\E[3g, 
2450
2451 #### Pilot Pro Palm-Top
2452 #
2453 # From: Jason Downs <downsj@downsj.com>, 15 Jun 1997 (Top Gun Telnet's author)
2454 pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional, 
2455         am, xenl, 
2456         cols#39, lines#16, 
2457         bel=^G, clear=\Ec, cr=^M, cub1=^H, cud1=^J, 
2458         cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I, 
2459         ind=^J, kbs=^H, kcub1=^H, kcud1=^J, knp=^L, kpp=^K, nel=\Em~\s, 
2460         rmso=\EB, smso=\Eb, 
2461
2462 ######## WORKSTATION CONSOLES
2463 #
2464
2465 #### Alpha consoles
2466 #
2467
2468 # This is from the OSF/1 Release 1.0 termcap file
2469 pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation, 
2470         am, xon, 
2471         cols#80, lines#25, 
2472         bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
2473         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
2474         el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H, 
2475         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, 
2476         nel=^M^J, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m, 
2477
2478 #### Sun consoles
2479 #
2480
2481 # :is1: resets scrolling region in case a previous user had used "tset vt100"
2482 oldsun|Sun Microsystems Workstation console, 
2483         am, km, mir, msgr, 
2484         cols#80, it#8, lines#34, 
2485         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C, 
2486         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
2487         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I, 
2488         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
2489         is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
2490         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, 
2491         rmso=\E[m, sgr0=\E[m, smso=\E[7m, 
2492 # From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
2493 # <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
2494 # SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
2495 sun-il|Sun Microsystems console with working insert-line, 
2496         am, km, msgr, 
2497         cols#80, lines#34, 
2498         bel=^G, bold@, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
2499         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
2500         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I, 
2501         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
2502         kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
2503         kcuu1=\E[A, kdch1=\177, kend=\E[220z, kf1=\E[224z, 
2504         kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z, 
2505         kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z, 
2506         kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z, 
2507         knp=\E[222z, kopt=\E[194z, kpp=\E[216z, kres=\E[193z, 
2508         kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@, rs2=\E[s, 
2509         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m, 
2510         sgr0=\E[m, smso=\E[7m, smul@, u8=\E[1t, u9=\E[11t, 
2511 # On a SparcStation 5, <il1>/<il> flake out on the last line.
2512 # Unfortunately, without them the terminal has no way to scroll.
2513 sun-ss5|Sun SparcStation 5 console, 
2514         il@, il1@, use=sun-il, 
2515 # If you are using an SS5, change the sun definition to use sun-ss5.
2516 sun|sun1|sun2|Sun Microsystems Inc. workstation console, 
2517         use=sun-il, 
2518
2519 # From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
2520 sun-s|Sun Microsystems Workstation window with status line, 
2521         hs, 
2522         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun, 
2523 sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs, 
2524         hs, 
2525         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun-e, 
2526 sun-48|Sun 48-line window, 
2527         cols#80, lines#48, use=sun, 
2528 sun-34|Sun 34-line window, 
2529         cols#80, lines#34, use=sun, 
2530 sun-24|Sun 24-line window, 
2531         cols#80, lines#24, use=sun, 
2532 sun-17|Sun 17-line window, 
2533         cols#80, lines#17, use=sun, 
2534 sun-12|Sun 12-line window, 
2535         cols#80, lines#12, use=sun, 
2536 sun-1|Sun 1-line window for sysline, 
2537         eslok, hs, 
2538         cols#80, lines#1, 
2539         dsl=^L, fsl=\E[K, tsl=^M, use=sun, 
2540 sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character, 
2541         ich1@, rmir@, smir@, 
2542         use=sun, 
2543 sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history, 
2544         lines#35, 
2545         rmcup=\E[>4h, smcup=\E[>4l, use=sun, 
2546
2547 #### Iris consoles
2548 #
2549
2550 # (wsiris: this had extension capabilities
2551 #       :HS=\E7F2:HE=\E7F7:\
2552 #       :CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
2553 # See the note on Iris extensions near the end of this file.  
2554 # Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> & 
2555 # <flash> from BRL -- esr)
2556 wsiris|iris40|iris emulating a 40 line visual 50 (approximately), 
2557         am, 
2558         cols#80, it#8, lines#40, 
2559         bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB, cuf1=\EC, 
2560         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E;, 
2561         dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK, 
2562         flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL, 
2563         ind=^J, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB, 
2564         kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, 
2565         kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI, 
2566         rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P, 
2567         smul=\E7R2\E9P, 
2568
2569 #### NeWS consoles
2570 #
2571 # Console terminal windows under the NeWS (Sun's Display Postscript windowing
2572 # environment).   Note: these have nothing to do with Sony's News workstation
2573 # line.
2574 #
2575
2576 # Entry for NeWS's psterm from Eric Messick & Hugh Daniel
2577 # (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
2578 psterm|psterm-basic|NeWS psterm-80x34, 
2579         am, hs, km, ul, 
2580         cols#80, it#8, lines#34, 
2581         blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;, 
2582         cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY, 
2583         dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl, 
2584         home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D, 
2585         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr, 
2586         ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^], 
2587         sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu, 
2588         tsl=\EOl, 
2589 psterm-96x48|NeWS psterm 96x48, 
2590         cols#96, lines#48, use=psterm, 
2591 psterm-90x28|NeWS psterm 90x28, 
2592         cols#90, lines#28, use=psterm, 
2593 psterm-80x24|NeWS psterm 80x24, 
2594         cols#80, lines#24, use=psterm, 
2595 # This is a faster termcap for psterm.  Warning:  if you use this termcap,
2596 # some control characters you type will do strange things to the screen.
2597 # (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
2598 psterm-fast|NeWS psterm fast version (flaky ctrl chars), 
2599         am, hs, km, ul, 
2600         cols#80, it#8, lines#34, 
2601         blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;, 
2602         cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y, 
2603         dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I, 
2604         il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
2605         kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni, 
2606         rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi, 
2607         smso=^Oo, smul=^Ou, tsl=^Ol, 
2608
2609 #### NeXT Consoles
2610 #
2611 # Use `glasstty' for the Workspace application
2612 #
2613
2614 # From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
2615 next|NeXT console, 
2616         am, xt, 
2617         cols#80, it#8, lines#24, 
2618         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
2619         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
2620         ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
2621         rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m, 
2622 nextshell|NeXT Shell application, 
2623         am, 
2624         cols#80, 
2625         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H, 
2626         kcud1=^J, nel=^M^J, 
2627
2628 ### Sony NEWS workstations
2629 #
2630
2631 # (news-unk: this had :KB=news: -- esr)
2632 news-unk|SONY NEWS vt100 emulator common entry, 
2633         am, xenl, 
2634         cols#80, 
2635         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
2636         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
2637         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, 
2638         ed=\E[J, el=\E[K, home=\E[H, ht=^I, 
2639         if=/usr/lib/tabset/vt100, il=\E[%p1%dL, il1=\E[L, 
2640         is2=\E[?7h\E[?1l\E[?3l\E7\E8, kbs=^H, kcub1=\EOD, 
2641         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP, 
2642         kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, 
2643         kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM, 
2644         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, 
2645         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
2646 #
2647 # (news-29: this had :TY=ascii: --esr)
2648 news-29, 
2649         lines#29, use=news-unk, 
2650 # (news-29-euc: this had :TY=euc: --esr)
2651 news-29-euc, 
2652         use=news-29, 
2653 # (news-29-sjis: this had :TY=sjis: --esr)
2654 news-29-sjis, 
2655         use=news-29, 
2656 #
2657 # (news-33: this had :TY=ascii: --esr)
2658 news-33, 
2659         lines#33, use=news-unk, 
2660 # (news-33-euc: this had :TY=euc: --esr)
2661 news-33-euc, 
2662         use=news-33, 
2663 # (news-33-sjis: this had :TY=sjis: --esr)
2664 news-33-sjis, 
2665         use=news-33, 
2666 #
2667 # (news-42: this had :TY=ascii: --esr)
2668 news-42, 
2669         lines#42, use=news-unk, 
2670 # (news-42-euc: this had :TY=euc: --esr)
2671 news-42-euc, 
2672         use=news-42, 
2673 # (news-42-sjis: this had :TY=sjis: --esr)
2674 news-42-sjis, 
2675         use=news-42, 
2676 #
2677 #       NEWS-OS old termcap entry 
2678 #
2679 # (news-old-unk: this had :KB=news:TY=sjis: --esr)
2680 news-old-unk|SONY NEWS vt100 emulator common entry, 
2681         am, xenl, 
2682         cols#80, vt#3, 
2683         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J, cr=^M, 
2684         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
2685         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
2686         home=\E[H, ht=^I, if=/usr/lib/tabset/vt100, kbs=^H, 
2687         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, 
2688         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM, 
2689         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, 
2690         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
2691 #
2692 # (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
2693 nwp512|news|nwp514|news40|vt100-bm|sony vt100 emulator 40 lines, 
2694         lines#40, 
2695         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8, use=news-old-unk, 
2696 #
2697 # (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
2698 nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line, 
2699         
2700         
2701 s, 
2702         lines#42, 
2703         is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8, use=news-old-unk, 
2704 #
2705 # (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as <OTbs>. --esr)
2706 nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines, 
2707         lines#40, 
2708         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8, use=news-old-unk, 
2709 #
2710 # (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
2711 nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines, 
2712         lines#31, 
2713         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8, use=news-old-unk, 
2714 #
2715 # (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
2716 # also the alias vt100-bm.
2717 nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|sony vt100 emulator 33 lines, 
2718         lines#33, 
2719         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8, use=news-old-unk, 
2720 #
2721 # (nwp513-o: had :DE=^H:, I think that's <OTbs>; also the alias vt100-bm --esr)
2722 nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|sony vt100 emulator 33 lines, 
2723         lines#31, 
2724         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8, use=news-old-unk, 
2725 #
2726 # (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
2727 news28|sony vt100 emulator 28 lines, 
2728         lines#28, 
2729         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8, use=news-old-unk, 
2730 #
2731 # (news29: this had :TY=ascii:KB=nws1200:\ --esr)
2732 news29|news28-a|sony vt100 emulator 29 lines, 
2733         lines#29, 
2734         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8, use=news-old-unk, 
2735 #
2736 # (news511: this had :TY=sjis: --esr)
2737 nwp511|nwp-511|nwp-511 vt100, 
2738         am, xenl, 
2739         cols#80, lines#24, 
2740         clear=\E[;H\E[2J$<20/>, cuf1=\E[C, 
2741         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A$<2/>, dl1=\E[M, 
2742         ed=\E[J$<30/>, el=\E[K$<3/>, 
2743         flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l, 
2744         il1=\E[L, is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D, 
2745         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, 
2746         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\E#W, khome=\E[H, 
2747         ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>, 
2748         smso=\E[7m$<2/>, smul=\E[4m$<2/>, 
2749 # (news517: this had :TY=sjis:. --esr)
2750 nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows, 
2751         eslok, hs, 
2752         cols#80, lines#30, 
2753         dsl=\E[1$~, fsl=\E[0$}, 
2754         is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
2755         tsl=\E[1$}\E[;%df, 
2756         use=vt200, 
2757 # (news517-w: this had :TY=sjis:. --esr)
2758 nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows, 
2759         eslok, hs, 
2760         cols#132, lines#50, 
2761         dsl=\E[1$~, fsl=\E[0$}, 
2762         is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, 
2763         tsl=\E[1$}\E[;%df, 
2764         use=vt200, 
2765
2766 #### Common Desktop Environment
2767 #
2768
2769 # This ships with Sun's CDE in Solaris 2.5
2770 dtterm|CDE desktop terminal, 
2771         am, mir, msgr, xenl, xon, 
2772         colors#8, cols#80, it#8, lines#24, lm#0, pairs#64, 
2773         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2774         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2775         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
2776         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2777         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2778         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2779         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, 
2780         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
2781         flash=\E[?5h$<200>\E[?5l, home=\E[H, ht=^I, hts=\EH, 
2782         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
2783         invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l, kbs=^H, 
2784         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
2785         kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
2786         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
2787         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
2788         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
2789         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
2790         kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
2791         kslt=\E[4~, nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, 
2792         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, 
2793         rmul=\E[24m, sc=\E7, setab=\E[%p1%{40}%+%dm, 
2794         setaf=\E[%p1%{30}%+%dm, 
2795         sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
2796         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h, 
2797         smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, 
2798
2799 ### Non-Unix Consoles
2800 #
2801
2802 # Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
2803 # a Unix-style environment used on OS/2.  (Note that the suffix makes some
2804 # names longer than 14 characters, the nominal maximum).
2805 #
2806 # Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
2807 ansi-emx|ANSI.SYS color, 
2808         am, bce, eo, mir, msgr, xenl, xon, 
2809         colors#16, cols#80, it#8, lines#25, pairs#64, 
2810         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2811         clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
2812         cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
2813         dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
2814         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
2815         kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
2816         kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
2817         kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
2818         knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[5;37;41m, 
2819         rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;44m\E[1;33m, 
2820         rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm, 
2821         setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h, 
2822         smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m, 
2823         tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
2824 ansi-color-2-emx|ANSI.SYS color 2, 
2825         am, bce, eo, mir, msgr, xenl, xon, 
2826         colors#16, cols#80, it#8, lines#25, pairs#64, 
2827         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2828         clear=\E[0;37;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
2829         cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
2830         dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
2831         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
2832         kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
2833         kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
2834         kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
2835         knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m, 
2836         rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;44m, 
2837         rmul=\E[0;37;44m, rs1=\Ec, setab=\E[4%p1%dm, 
2838         setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smir=\E[4h, 
2839         smpch=\E[11m, smso=\E[1;37;46m, smul=\E[1;36;44m, 
2840         tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
2841 ansi-color-3-emx|ANSI.SYS color 3, 
2842         am, bce, eo, mir, msgr, xenl, xon, 
2843         colors#16, cols#80, it#8, lines#25, pairs#64, 
2844         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2845         clear=\E[0;37;40m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, 
2846         cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
2847         dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, 
2848         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J, 
2849         kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, 
2850         kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, 
2851         kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, 
2852         knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m, 
2853         rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;40m, 
2854         rmul=\E[0;37;40m, rs1=\Ec, setab=\E[4%p1%dm, 
2855         setaf=\E[3%p1%dm, sgr0=\E[0;10m, smir=\E[4h, 
2856         smpch=\E[11m, smso=\E[1;37;46m, smul=\E[0;36;40m, 
2857         tbc=\E[3g, u8=\E[?6c, u9=\E[c, 
2858 mono-emx|stupid monochrome ansi terminal with only one kind of emphasis, 
2859         am, 
2860         cols#80, it#8, lines#24, 
2861         clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
2862         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
2863         ht=^I, kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, 
2864         kcuu1=\0H, kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, 
2865         kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, 
2866         kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I, nel=^M^J, rev=\E[7m, 
2867         sgr0=\E[0m, 
2868
2869 # This entry fits the Windows NT console when the _POSIX_TERM environment
2870 # variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
2871 # the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
2872 # stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
2873 # systems is not, and (surprise!) they match very well.
2874 #
2875 # See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
2876 # VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
2877 # are the installation instructions a pile of mind-numbing bureaucratese,
2878 # but the termcap entry is actually broken and unusable as given; the :do:
2879 # capability is misspelled "d".
2880 #
2881 # To use this, you need to a bunch of environment variables: 
2882 #
2883 # SET _POSIX_TERM=on
2884 # SET TERM=ansi
2885 # SET TERMCAP=location of termcap file in POSIX file format
2886 # which is case-sensitive.
2887 # e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
2888 # SET TMP=//C/TEMP
2889 #
2890 # Important note: setting the TMP environment variable in POSIX style renders
2891 # it incompatible with a lot of other applications, including Visual C++. So
2892 # you should have a separate command window just for vi. All the other
2893 # variables may be permanently set in the Control Panel\System applet. 
2894 #
2895 # You can find out more about the restrictions of this facility at
2896 # <http://www.nentug.org/unix-to-nt/ntposix.htm>.
2897 #
2898 # From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
2899 ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode, 
2900         am, bw, msgr, 
2901         cols#80, it#8, lines#25, 
2902         bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
2903         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
2904         home=\E[H, ht=^I, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[V, 
2905         kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S, rc=\E[u, rev=\E[7m, 
2906         ri=\E[T, rmso=\E[m, sc=\E[s, sgr0=\E[0m, smso=\E[7m, 
2907
2908 ######## COMMON TERMINAL TYPES
2909 #
2910 # This section describes terminal classes and maker brands that are still
2911 # quite common, but have proprietary command sets not blessed by ANSI.
2912 #
2913
2914 #### Altos
2915 #
2916 # Altos made a moderately successful line of UNIX boxes.  In 1990 they were
2917 # bought out by Acer, a major Taiwanese manufacturer of PC-clones.
2918 # Acer has a web site at http://www.acer.com.
2919 #
2920 # Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
2921 # His comments suggest they were shipped with the system.
2922 #
2923
2924 # (altos2: had extension capabilities
2925 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2926 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2927 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2928 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2929 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
2930 #       :YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
2931 #       :HL=^AP\r:SP=\E[i:\
2932 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
2933 #       :LO=\E[0q:LC=\E[5q:LL=\E[6q:\
2934 # Comparison with the k* capabilities makes it obvious that the c* things are
2935 # shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
2936 # :sr: was given as a boolean-- esr)
2937 altos2|alt2|altos-2|altos II, 
2938         cols#80, it#8, lines#24, xmc#0, 
2939         clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[1B, cuf1=\E[1C, 
2940         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch1=\E[P, dl=\E[M, 
2941         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, 
2942         if=/usr/share/tabset/vt100, il1=\E[L, ind=^J, 
2943         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r, 
2944         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D, 
2945         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r, 
2946         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r, 
2947         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r, 
2948         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r, 
2949         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
2950         kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r, 
2951         nel=^M^J, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
2952         smam=\E[?7h, smso=\E[7m, smul=\E[4m, 
2953 # (altos3: had extension capabilities
2954 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2955 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2956 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2957 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2958 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
2959 #       :HL=^AP\r:SP=\E[i:\
2960 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
2961 altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V, 
2962         blink=\E[5p, ri=\EM, sgr0=\E[p, 
2963         use=altos2, 
2964 altos4|alt4|altos-4|altos IV, 
2965         use=wy50, 
2966 # (altos7: had extension capabilities:
2967 #       :GG#0:GI=\EH8:GF=\EH7:\
2968 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2969 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2970 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2971 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2972 # Comparison with the k* capabilities makes it obvious that the c* things are
2973 # shift keys.  I have renamed them to keys 32 and up accordingly.  I have
2974 # also made this entry relative to adm12 in order to give it an <sgr>. The
2975 # <invis> imported by use=adm+sgr may work, let me know. -- esr)
2976 altos7|alt7|altos VII, 
2977         am, mir, 
2978         cols#80, lines#24, xmc#0, 
2979         acsc=j5k3l2m1n8q\:t4u9v=w0x6, blink=\EG2, bold=\EGt, 
2980         clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
2981         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
2982         dim=\EGp, dl=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE, 
2983         ind=^J, invis=\EG1, 
2984         is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r, 
2985         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H, 
2986         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r, 
2987         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r, 
2988         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r, 
2989         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r, 
2990         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
2991         kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r, 
2992         knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=^M^J, ri=\Ej, 
2993         rmir=\Er, smir=\Eq, 
2994         use=adm+sgr, 
2995 altos7pc|alt7pc|altos PC VII, 
2996         kend=\ET, use=altos7, 
2997
2998 #### Hewlett-Packard (hp)
2999 #
3000 #       Hewlett-Packard
3001 #       8000 Foothills Blvd 
3002 #       Roseville, CA 95747
3003 #       Vox: 1-(916)-785-4363   (Technical response line for VDTs)
3004 #            1-(800)-633-3600   (General customer support)
3005 #
3006
3007 # Generic HP terminal - this should (hopefully) work on any HP terminal.
3008 hpgeneric|hp|hewlett-packard generic terminal, 
3009         am, da, db, mir, xhp, 
3010         cols#80, lines#24, lm#0, vt#6, 
3011         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
3012         cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM, 
3013         ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, 
3014         ind=^J, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@, 
3015         sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3, 
3016         vpa=\E&a%p1%dY, 
3017
3018 hp110|hewlett-packard model 110 portable, 
3019         lines#16, use=hpgeneric, 
3020
3021 hp+pfk+cr|hp function keys with CR, 
3022         kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, 
3023         kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r, 
3024
3025 hp+pfk-cr|hp function keys w/o CR, 
3026         kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, 
3027         kf8=\Ew, 
3028
3029 # The hp2621s use the same keys for the arrows and function keys, 
3030 # but not separate escape sequences. These definitions allow the 
3031 # user to use those keys as arrow keys rather than as function 
3032 # keys.
3033 hp+pfk+arrows|hp alternate arrow definitions, 
3034         kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@, 
3035         kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r, 
3036         kll=\Eq\r, kri=\Es\r, 
3037
3038 hp+arrows|hp arrow definitions, 
3039         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
3040         kind=\ES, kll=\EF, kri=\ET, 
3041
3042 # Generic stuff from the HP 262x series
3043 #
3044 hp262x|HP 262x terminals, 
3045         xhp, 
3046         blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES, 
3047         invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
3048         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, 
3049         kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET, 
3050         krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, 
3051         sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%c, 
3052         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, 
3053
3054 # Note: no <home> on HPs since that homes to top of memory, not screen.
3055 # Due to severe 2621 braindamage, the only way to get the arrow keys to
3056 # transmit anything at all is to turn on the function key labels
3057 # with <smkx>, and even then the user has to hold down shift!
3058 # The default 2621 turns off the labels except when it has to to 
3059 # enable the function keys. If your installation prefers labels 
3060 # on all the time, or off all the time (at the "expense" of the 
3061 # function keys), use 2621-nl or 2621-wl.
3062
3063 # Note: there are newer ROMs for 2621's that allow you to set 
3064 # strap A so the regular arrow keys xmit \EA, etc, as with the 
3065 # 2645. However, even with this strap set, the terminal stops 
3066 # xmitting if you reset it, until you unset and reset the strap!
3067 # Since there is no way to set/unset the strap with an escape 
3068 # sequence, we don't use it in the default.
3069 # If you like, you can use 2621-ba (brain-damaged arrow keys).
3070 hp2621-ba|2621 w/new rom and strap A set, 
3071         rmkx@, smkx@, use=hp+arrows, 
3072         use=hp2621, 
3073
3074 # hp2621 with function labels. Most of the time they are off,
3075 # but inside vi, the function key labels appear. You have to
3076 # hold down shift to get them to xmit.
3077 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels, 
3078         is2=\E&jA\r, rmkx=\E&jA, 
3079         use=hp2621-fl, 
3080 hp2621-fl|hp 2621, 
3081         xhp@, xon, 
3082         pb#19200, 
3083         cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>, 
3084         ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@, 
3085         sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD, 
3086         use=hp+pfk+cr, use=hpgeneric, 
3087
3088 # To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
3089 hp2621p|hp 2621 with printer, 
3090         mc4=\E&p13C, mc5=\E&p11C, use=hp2621, 
3091
3092 hp2621p-a|hp2621p with fn as arrows, 
3093         use=hp+pfk+arrows, use=hp2621p, 
3094
3095 # hp2621 with k45 keyboard
3096 hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard, 
3097         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, 
3098         khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, 
3099         use=hp2621, 
3100
3101 # 2621 using all 48 lines of memory, only 24 visible at any time.  
3102 hp2621-48|48 line 2621, 
3103         lines#48, 
3104         cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR, use=hp2621, 
3105
3106 # 2621 with no labels ever. Also prevents vi delays on escape.
3107 hp2621-nl|hp 2621 with no labels, 
3108         kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@, use=hp2621-fl, 
3109
3110 # Needed for UCB ARPAVAX console, since lsi-11 expands tabs 
3111 # (wrong).
3112 #
3113 hp2621-nt|hp 2621 w/no tabs, 
3114         ht@, use=hp2621, 
3115
3116 # Hp 2624 B with 4 or 10 pages of memory.
3117
3118 # Some assumptions are made with this entry. These settings are 
3119 # NOT set up by the initialization strings.
3120
3121 # Port Configuration
3122 #       RecvPace=Xon/Xoff
3123 #       XmitPace=Xon/Xoff
3124 #       StripNulDel=Yes
3125
3126 # Terminal Configuration
3127 #       InhHndShk=Yes
3128 #       InhDC2=Yes
3129 #       XmitFnctn(A)=No
3130 #       InhEolWrp=No
3131
3132 # Note: the 2624 DOES have a true <home>, believe it or not!
3133
3134 # The 2624 has an "error line" to which messages can be sent. 
3135 # This is CLOSE to what is expected for a "status line". However,
3136 # after a message is sent to the "error line", the next carriage 
3137 # return is EATEN and the "error line" is turned back off again! 
3138 # So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
3139
3140 # This entry supports emacs (and any other program that uses raw 
3141 # mode) at 4800 baud and less. I couldn't get the padding right 
3142 # for 9600.
3143 #
3144 # (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
3145 hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B, 
3146         da, db, 
3147         lm#96, 
3148         flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F, use=hp+labels, use=scrhp, 
3149
3150 # This hp2626 entry does not use any of the fancy windowing stuff 
3151 # of the 2626.
3152
3153 # Indeed, terminfo does not yet handle such stuff. Since changing 
3154 # any window clears memory, it is probably not possible to use 
3155 # this for screen opt.
3156
3157 # ed is incredibly slow most of the time - I am guessing at the 
3158 # exact padding. Since the terminal uses xoff/xon this is intended 
3159 # only for cost computation, so that the terminal will prefer el 
3160 # or even dl1 which is probably faster!
3161
3162 # \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only 
3163 # extra slow on the last line of the window. 
3164
3165 # The padding probably should be changed.
3166 #
3167 hp2626|hp2626a|hp2626p|hp 2626, 
3168         da, db, 
3169         lm#0, pb#19200, 
3170         ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>, 
3171         is2=\E&j@\r, rin=\E&r%p1%dU, 
3172         use=hp+pfk+cr, use=hp+labels, use=scrhp, 
3173
3174 # This entry is for sysline. It allocates a 23 line window with 
3175 # a 115 line workspace for regular use, and a 1 line window for 
3176 # the status line.
3177
3178 # This assumes port 2 is being used.
3179 # Turn off horizontal line, Create ws #1 with 115 lines,
3180 # Create ws #2 with 1 line, Create window #1 lines 1-23,
3181 # Create window #2 lines 24-24, Attach cursor to workspace #1.
3182 # Note that this clears the tabs so it must be done by tset before
3183 # it sets the tabs.
3184 #
3185 hp2626-s|hp 2626 using only 23 lines, 
3186         eslok, hs, 
3187         lines#23, 
3188         fsl=\E&d@\E&w7f2p1I\E&w4f1I, 
3189         is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r, 
3190         tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, 
3191         use=hp2626, 
3192 # Force terminal back to 24 lines after being 23.
3193 hp2626-ns|hp 2626 using all 24 lines, 
3194         is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r, use=hp2626, 
3195 # Various entries useful for small windows on 2626.
3196 hp2626-12|hewlett-packard 2626 12 lines, 
3197         lines#12, use=hp2626, 
3198 hp2626-12x40|hewlett-packard 2626 12 lines 40 columns, 
3199         cols#40, lines#12, use=hp2626, 
3200 hp2626-x40|hewlett-packard 2626 40 columns, 
3201         cols#40, use=hp2626, 
3202 hp2626-12-s|hewlett-packard 2626 11 lines plus status, 
3203         lines#11, use=hp2626-s, 
3204
3205 #
3206 # hp2627 color tubes from University of Wisconsin
3207 #
3208 hp2627a-rev|hp 2627 with reverse video colors, 
3209         cr=^M, cud1=^J, ht=^I, ind=^J, 
3210         is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r, 
3211         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmul=\E&v0S\E&d@, 
3212         smul=\E&dD\E&v1S, 
3213         use=hp2621-nl, 
3214 hp2627a|hp 2627 color terminal with no labels, 
3215         cr=^M, cud1=^J, ht=^I, ind=^J, 
3216         is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r, 
3217         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmso=\E&v0S, 
3218         rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S, 
3219         use=hp2621-nl, 
3220 hp2627c|hp 2627 color (cyan) terminal with no labels, 
3221         cr=^M, cud1=^J, ht=^I, ind=^J, 
3222         is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r, 
3223         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
3224         use=hp2627a, 
3225
3226 # hp2640a doesn't have the Y cursor addressing feature, and C is 
3227 # memory relative instead of screen relative, as we need.
3228 #
3229 hp2640a|hp 2640a, 
3230         cup@, rmkx@, smkx@, use=hp2645, 
3231
3232 hp2640b|hp2644a|hp 264x series, 
3233         rmkx@, smkx@, use=hp2645, 
3234
3235 # (hp2641a: removed unknown :gu: -- esr)
3236 hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry, 
3237         am, da, db, mir, xhp, 
3238         cols#80, lines#24, 
3239         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
3240         cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM, 
3241         ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I, 
3242         if=/usr/share/tabset/std, il1=\EL, ind=^J, 
3243         is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
3244         rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB, 
3245         vpa=\E&a%p1%2dY, 
3246
3247 # This terminal should be used at 4800 baud or less. It needs padding for
3248 # plain characters at 9600, I guessed at an appropriate cr delay.  It really
3249 # wants ^E/^F handshaking, but that doesn't work well even if you write
3250 # software to support it.
3251 hp2645|hp45|HP 2645 series, 
3252         pb#9600, 
3253         blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED, 
3254         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM, 
3255         ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, 
3256         kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB, 
3257         rmkx=\E&s0A, 
3258         sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%?%p5%t%'H'%|%;%?%p6%t%'B'%|%;%c, 
3259         sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, 
3260         use=hpgeneric, 
3261 # You should use this terminal at 4800 baud or less.
3262 hp2648|hp2648a|HP 2648a graphics terminal, 
3263         clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>, 
3264         dch1=\EP$<7>, ip=$<5>, 
3265         use=hp2645, 
3266
3267 # The HP 150 terminal is a fairly vanilla HP terminal, with the 
3268 # clreol standout problem. It also has graphics capabilities and 
3269 # a touch screen, which we don't describe here.
3270 hp150|hewlett packard Model 150, 
3271         use=hp2622, 
3272
3273 # HP 2382a terminals, "the little ones." They don't have any 
3274 # alternate character set support and sending out ^N/^O will 
3275 # leave the screen blank.
3276 hp2382a|hp2382|hewlett packard 2382a, 
3277         da, db, 
3278         lh#1, lm#48, 
3279         acsc@, 
3280         pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s, 
3281         rmacs@, 
3282         sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c, 
3283         sgr0=\E&d@, smacs@, 
3284         use=hp+labels, use=scrhp, 
3285
3286 hp2621-a|hp2621a-a|hp2621 with fn as arrows, 
3287         use=hp+pfk+arrows, use=hp2621-fl, 
3288
3289 # newer hewlett packard terminals
3290
3291 newhpkeyboard|generic entry for HP extended keyboard, 
3292         kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
3293         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, 
3294         kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV, 
3295         kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A, 
3296         use=hp+pfk-cr, 
3297
3298 newhp|generic entry for new hewlett packard terminals, 
3299         am, bw, mir, xhp, xon, 
3300         cols#80, lines#24, pb#4800, 
3301         acsc=2[3@4>5I9(\:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\:Y+Z*dHjGkTlRmFn/q\,t5u6v8w7x., 
3302         bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H, 
3303         cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH, 
3304         dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J, 
3305         invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=^M^J, 
3306         pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s, 
3307         pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s, 
3308         pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET, 
3309         rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg, 
3310         sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c%?%p9%t\016%e\017%;, 
3311         sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD, 
3312         tbc=\E3, 
3313         use=newhpkeyboard, 
3314
3315 memhp|memory relative addressing for new HP ttys, 
3316         vt#6, 
3317         clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR, 
3318         cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR, 
3319         home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r, 
3320         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp, 
3321
3322 scrhp|screen relative addressing for new HP ttys, 
3323         clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC, 
3324         cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC, 
3325         cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR, 
3326         home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA, 
3327         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp, 
3328
3329 # (hp+labels: added label values from a BRL termcap -- esr)
3330 hp+labels|"standard" label info for new HP ttys, 
3331         lh#2, lw#8, nlab#8, 
3332         lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, 
3333         pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s, 
3334         rmln=\E&j@, smln=\E&jB, 
3335
3336 hp+printer|"standard" printer info for HP ttys, 
3337         ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C, 
3338
3339
3340 # The new hp2621b is kind of a cross between the old 2621 and the
3341 # new 262x series of machines. It has dip-switched options. 
3342 # The firmware has a bug in it such that if you give it a null 
3343 # length label, the following character is eaten!
3344 hp2621b|hp 2621b with old style keyboard, 
3345         lh#1, lm#48, lw#8, nlab#8, 
3346         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
3347         kind=\ET, kll=\EF, kri=\ES, 
3348         pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c%;%p2%s\E%'o'%p1%+%c\r, 
3349         smln=\E&jB, 
3350         use=hp2621, 
3351
3352 hp2621b-p|hp 2621b with printer, 
3353         use=hp+printer, use=hp2621b, 
3354
3355 # hp2621b - new 2621b with new extended keyboard
3356 # these are closer to the new 26xx series than the other 2621b
3357 hp2621b-kx|hp 2621b with extended keyboard, 
3358         use=newhpkeyboard, use=hp2621b, 
3359
3360 hp2621b-kx-p|hp 2621b with new keyboard & printer, 
3361         use=hp+printer, use=hp2621b-kx, 
3362
3363 # Some assumptions are made in the following entries.
3364 # These settings are NOT set up by the initialization strings.
3365
3366 #    Port Configuration
3367 # RecvPace=Xon/Xoff     XmitPace=Xon/Xoff       StripNulDel=Yes
3368
3369 #    Terminal Configuration
3370 # InhHndShk(G)=Yes      InhDC2(H)=Yes
3371 # XmitFnctn(A)=No               InhEolWrp=No
3372 #
3373
3374 # Hp 2622a & hp2623a display and graphics terminals
3375 #
3376 hp2622|hp2622a|hp 2622, 
3377         da, db, 
3378         lm#0, pb#19200, 
3379         is2=\E&dj@\r, use=hp+pfk+cr, use=hp+labels, use=scrhp, 
3380
3381 # The 2623 is a 2622 with extra graphics hardware.
3382 hp2623|hp2623a|hp 2623, 
3383         use=hp2622, 
3384
3385 hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer, 
3386         use=hp+printer, use=hp2624, 
3387
3388 # The hewlett packard B can have an optional extra 6 pages of memory.
3389 hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory, 
3390         lm#240, use=hp2624, 
3391
3392 hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer, 
3393         lm#240, use=hp2624b-p, 
3394
3395 # Color manipulations for HP terminals
3396 hp+color|hp with colors, 
3397         ccc, 
3398         colors#16, ncv#17, pairs#7, 
3399         initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.%p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1%e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=%t1%e.%p7%d%;z%p1%dI, 
3400         oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I, 
3401         op=\E&v0S, scp=\E&v%p1%dS, 
3402
3403 # <is2> sets the screen to be 80 columns wide
3404 hp2397a|hp2397|hewlett packard 2397A color terminal, 
3405         is2=\E&w6f80X, 
3406         use=memhp, use=hp+labels, use=hp+color, 
3407
3408 #  HP 700/44 Setup parameters:  
3409 # Terminal Mode         HP-PCterm
3410 # Inhibit Auto Wrap     NO
3411 # Status Line           Host Writable
3412 # PC Character Set      YES
3413 # Twenty-Five Line Mode YES
3414 # XON/XOFF              @128 or 64 (sc)
3415 # Keycode Mode          NO   or YES (sc)
3416 # Backspace Key         BS or BS/DEL
3417 #
3418 # <is2>         sets pcterm; autowrap; 25 lines; pc char set; prog DEL key; 
3419 # \E\\? does not turn off keycode mode
3420 # <smsc>        sets alternate start/stop; keycode on
3421 hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode, 
3422         am, eo, xenl, xon, 
3423         cols#80, lines#25, 
3424         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263, 
3425         bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H, 
3426         cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
3427         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
3428         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, 
3429         ind=^J, 
3430         is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\, 
3431         kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
3432         kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~, 
3433         kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, 
3434         kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~, 
3435         kpp=\E[5~, rmam=\E[?7l, 
3436         rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m, 
3437         rmul=\E[m, sgr0=\E[m, smam=\E[?7h, 
3438         smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m, 
3439         smul=\E[4m, xoffc=g, xonc=e, 
3440 #
3441 # (hp2392: copied <rmir> here from hpex -- esr)
3442 hp2392|239x series, 
3443         cols#80, 
3444         cbt=\Ei, cup=\E&a%p1%dy%p2%dC, kf1=\Ep\r, kf2=\Eq\r, 
3445         kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, 
3446         kf8=\Ew\r, khome=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV, 
3447         rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY, 
3448         use=hpsub, 
3449
3450 hpsub|hp terminals -- capability subset, 
3451         am, da, db, mir, xhp, xon, 
3452         lines#24, 
3453         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC, 
3454         cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, 
3455         ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, 
3456         is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB, 
3457         kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@, 
3458         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, 
3459
3460 # hpex:
3461 #       May be used for most 24 x 80 hp terminals,
3462 # but has no padding added, so may allow runover in some terminals at high 
3463 # baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and 
3464 # hp98x5 terminal emulators or hp98x6 consoles.  
3465 #       Adds xy-cursor addressing, vertical cursor addressing, home, 
3466 # last line, and underline capabilities.
3467 #
3468 # (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
3469 # moved <rmir> here from hpsub -- esr)
3470 hpex|hp extended capabilites, 
3471         cr=^M, cud1=^J, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=^J, kbs=^H, 
3472         kcub1=^H, kcud1=^J, nel=^M^J, rmir=\ER, rmul=\E&d@, smir=\EQ, 
3473         smul=\E&dD, vpa=\E&a%p1%dY, 
3474         use=hpsub, 
<