]> ncurses.scripts.mit.edu Git - ncurses.git/blob - misc/terminfo.src
ncurses 4.1
[ncurses.git] / misc / terminfo.src
1 ######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
2 #
3 #       Version 10.1.1
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://www.ccil.org/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=`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~q\304r\362s_t\303u\264v\301w\302x\263y\371z\372{\373|\374}\375~\376.\031-\030\,\021+^P0\333p\304r\304y\363z\362{\343|\330}\234, 
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 (RFC1489) alternate character set 
319 # From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
320 klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset, 
321         acsc=l\202m\204k\203j\205u\207t\206v\210w\211q\200x\201n\212o\213s\214p\216r\217`\004a\237f\234g\232~\225.\037-\036+\020\,\021h\222I\2200\215y\230z\231{\267}L|\274, 
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, setb=\E[4%p1%dm, setf=\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 # This entry is good for the 1.2.13 version of the Linux console driver.
527 #
528 # Note: there are numerous broken linux entries out there, which didn't screw
529 # up BSD termcap but hose ncurses's smarter cursor-movement optimization.
530 # One common pathology is an incorrect tab length of 4.
531 #
532 # ***************************************************************************
533 # *                                                                         *
534 # *                           WARNING:                                      *
535 # * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
536 # * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
537 # * character. Here are the keymap replacement lines that will set this up: *
538 # *                                                                         *
539 #       keycode  15 = Tab             Tab
540 #               alt     keycode  15 = Meta_Tab
541 #               shift   keycode  15 = F26
542 #       string F26 ="\033[Z"
543 # *                                                                         *
544 # * This has to use a key slot which is unfortunate (any unused one will    *
545 # # do, F26 is the higher-numbered one).  The change ought to be built      *
546 # * into the kernel tables.                                                 *
547 # *                                                                         *
548 # ***************************************************************************
549 #
550 # The 1.3.x kernels add color-change capabilities; if yours doesn't have this
551 # and it matters, turn off <ccc>.  The %02x escape used to implement this is
552 # not back-portable to SV curses and not supported in ncurses versions before
553 # 1.9.9. All linux kernels since 1.2.13 (at least) set the screen size
554 # themselves; this entry assumes that capability.
555 #
556 # From: Eric S. Raymond <esr@snark.thyrsus.com> 15 Dec 1995
557 linux|linux console, 
558         am, bce, eo, mir, msgr, xenl, xon, 
559         it#8, 
560         bel=^G, civis=\E[?25l, clear=\E[H\E[J, cnorm=\E[?25h, 
561         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C, 
562         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
563         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, 
564         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
565         flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG, 
566         ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
567         il1=\E[L, ind=^J, kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\E[D, 
568         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, 
569         kend=\E[4~, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, 
570         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
571         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
572         kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, 
573         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
574         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z, 
575         nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, 
576         rmul=\E[24m, rs1=\Ec, sc=\E7, 
577         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, 
578         smir=\E[4h, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, 
579         u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, 
580         use=klone+sgr, use=ecma+color, 
581 linux-m|Linux console no color, 
582         colors@, pairs@, 
583         setab@, setaf@, setb@, setf@, use=linux, 
584 linux-c-nc|linux console 1.3.x hack for ncurses only, 
585         ccc, 
586         initc=\E]P%p1%x%p2%02x%p3%02x%p4%02x, oc=\E]R, use=linux, 
587 # From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
588 linux-c|linux console 1.3.6+, with private palette for each virtual console, 
589         ccc, 
590         colors#8, pairs#64, 
591         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%;, 
592         oc=\E]R, 
593         use=linux, 
594
595 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
596 linux-nic|linux with ich/ich1 suppressed for non-curses programs, 
597         ich@, ich1@, 
598         use=linux, 
599
600 # This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
601 linux-koi8|linux with koi8 alternate character set, 
602         use=linux, use=klone+koi8acs, 
603
604 # SCO console and SOS-Syscons console for 386bsd
605 # (scoansi: had unknown capabilities
606 #       :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
607 #       :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
608 #       :G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
609 #       :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
610 #       :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
611 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
612 # on the <smacs>=\E[12m  -- esr)
613 scoansi|SCO Extended ANSI standard crt, 
614         am, eo, xon, 
615         cols#80, it#8, lines#25, 
616         blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, 
617         cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
618         cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, 
619         ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, 
620         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf1=\E[M, 
621         kf10=\E[V, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, 
622         kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I, 
623         ri=\E[T, 
624         use=klone+sgr-dumb, 
625
626 # This actually describes the generic SVr4 display driver for Intel boxes.
627 # The <dim=\E[2m> isn't documented and therefore may not be reliable.
628 # From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
629 att6386|at386|386at|AT&T WGS 6386 console, 
630         am, bw, eo, xon, 
631         cols#80, it#8, lines#25, 
632         acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~, 
633         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C, 
634         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD, 
635         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, 
636         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
637         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, 
638         dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, 
639         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
640         ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S, 
641         indn=\E[%p1%dS, invis=\E[9m, is2=\E[0;10;39m, kbs=^H, 
642         kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
643         kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, 
644         kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, 
645         kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kich1=\E[@, 
646         knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m, 
647         ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m, 
648         sc=\E7, 
649         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, 
650         sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m, 
651         tbc=\E[2g, vpa=\E[%i%p1%dd, 
652         use=klone+color, 
653 # (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
654 pc6300plus|AT&T 6300 plus, 
655         am, xon, 
656         cols#80, lines#24, 
657         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C, 
658         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub1=^H, cud1=\E[B, 
659         cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, 
660         dch1=\E[1P, dim=\E[2m, dl1=\E[1M, ed=\E[0J, el=\E[0K, 
661         home=\E[H, hts=\EH, ich1=\E[1@, il1=\E[1L, ind=^J, 
662         invis=\E[9m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
663         kcuu1=\E[A, kf1=\EOc, kf10=\EOu, kf2=\EOd, kf3=\EOe, 
664         kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\EOk, 
665         nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
666         smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
667
668 #
669 #       Terminfo entry for the AT&T Unix PC 7300
670 #       from escape(7) in Unix PC 7300 Manual.
671 #       Somewhat similar to a vt100-am (but different enough
672 #       to redo this from scratch.)
673 #
674 #       /***************************************************************
675 #       *
676 #       *           FONT LOADING PROGRAM FOR THE UNIX PC
677 #       *
678 #       *     This routine loads a font defined in the file ALTFONT
679 #       *     into font memory slot #1.  Once the font has been loaded,
680 #       *     it can be used as an alternative character set.
681 #       *
682 #       *     The call to ioctl with the argument WIOCLFONT is the key 
683 #       *     to this routine.  For more information, see window(7) in 
684 #       *     the PC 7300 documentation.
685 #       ***************************************************************/
686 #       #include <string.h>             /* needed for strcpy call */
687 #       #include <sys/window.h>         /* needed for ioctl call */
688 #       #define FNSIZE  60              /* font name size */
689 #       #define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
690 #       /*
691 #       *     The file /usr/lib/wfont/special.8.ft comes with the
692 #       *     standard PC software.  It defines a graphics character set
693 #       *     similar to that of the Teletype 5425 terminal.  To view
694 #       *     this or other fonts in /usr/lib/wfont, use the command
695 #       *     cfont <filename>.  For further information on fonts see
696 #       *     cfont(1) in the PC 7300 documentation.
697 #       */
698 #       
699 #       struct altfdata         /* structure for alt font data */
700 #       {
701 #       short   altf_slot;              /* memory slot number */
702 #       char    altf_name[FNSIZE];      /* font name (file name) */
703 #       };
704 #       ldfont()
705 #       {
706 #               int wd;         /* window in which altfont will be */
707 #               struct altfdata altf;
708 #               altf.altf_slot=1;
709 #               strcpy(altf.altf_name,ALTFONT);
710 #               for (wd =1; wd < 12; wd++) {
711 #                    ioctl(wd, WIOCLFONT,&altf);
712 #               }
713 #       }
714 #
715 # (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
716 # they're confirmed by the man page for the System V display---esr)
717 #
718 att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300, 
719         am, xenl, xon, 
720         cols#80, it#8, lines#24, 
721         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
722         bel=^G, bold=\E[7m, cbt=\E^I, civis=\E[=C, clear=\E[2J\E[H, 
723         cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD, cud=\E[%p1%dB, 
724         cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
725         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
726         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, 
727         el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, 
728         ind=^J, invis=\E[9m, is1=^O, kBEG=\EBG, kCAN=\ECN, kCPY=\ECP, 
729         kCRT=\ECR, kDC=\EDC, kDL=\EDL, kEND=\EEN, kEOL=\ECI, 
730         kFND=\EFI, kHLP=\EHL, kHOM=\EHM, kIC=\ENJ, kLFT=\EBW, 
731         kMOV=\EMV, kNXT=\ENX, kOPT=\EOT, kPRV=\EPV, kRDO=\ERO, 
732         kRIT=\EFW, kRPL=\ERP, kSAV=\ESV, kUND=\EUD, kbeg=\Ebg, 
733         kbs=^H, kcan=\Ecn, kcbt=\E^I, kclo=\Ecl, kclr=\Ece, 
734         kcmd=\Ecm, kcpy=\Ecp, kcrt=\Ecr, kcub1=\E[D, kcud1=\E[B, 
735         kcuf1=\E[C, kcuu1=\E[A, kdch1=\Edc, ked=\Ece, kel=\Eci, 
736         kend=\Een, kext=\Eex, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
737         kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kfnd=\Efi, khlp=\Ehl, 
738         khome=\Ehm, kich1=\Eim, kind=\Erd, kmov=\Emv, kmrk=\Emk, 
739         knp=\Epg, knxt=\Enx, kopn=\Eop, kopt=\Eot, kpp=\EPG, 
740         kprt=\Epr, kprv=\Epv, krdo=\Ero, kref=\Ere, krfr=\Erf, 
741         kri=\Eru, krpl=\Erp, krst=\Ers, ksav=\Esv, kslt=\Esl, 
742         kund=\Eud, nel=\EE, rev=\E[7m, ri=\EM, rmacs=\E[10m, 
743         rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smacs=\E[11m, 
744         smso=\E[7m, smul=\E[4m, 
745
746 # From: davis@unidata.ucar.edu
747 # (iris-ansi: added rmam/smam based on init string -- esr)
748 iris-ansi|iris-ansi-net|IRIS emulating ANSI terminal, 
749         am, 
750         cols#80, it#8, lines#40, 
751         bel=^G, bold=\E[1m, clear=\E[H\E[2J, 
752         cnorm=\E[9/y\E[12/y\E[=6l, cr=^M, cub=\E[%p1%dD, 
753         cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, 
754         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, 
755         cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h, 
756         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, 
757         home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
758         is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P, 
759         kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q, 
760         kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
761         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, 
762         kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\EOQ, kf11=\EOR, 
763         kf12=\EOS, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q, 
764         kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q, 
765         kf9=\EOP, khome=\E[H, kich1=\E[139q, knp=\E[154q, 
766         kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q, 
767         nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8, 
768         rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7, 
769         sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m, 
770         tbc=\E[3g, 
771 iris-ansi-ap|IRIS ANSI in application-keypad mode, 
772         is2=\E[?1l\E>\E[?7h, kf10=\E[010q, kf11=\E[011q, 
773         kf12=\E[012q, rmkx=\E>, smkx=\E=, 
774         use=iris-ansi, 
775
776 # The following is a version of the ibm-pc entry distributed with PC/IX,
777 # (Interactive Systems' System 3 for the Big Blue), modified by Richard
778 # McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
779 # (the former is untrue, and the latter failed under UCB/man); standout and
780 # underline modes have been added.  Note: this entry describes the "native"
781 # capabilities of the PC monochrome display, without ANY emulation; most
782 # communications packages (but NOT PC/IX connect) do some kind of emulation.
783 pcix|PC/IX console, 
784         am, bw, eo, 
785         cols#80, lines#24, 
786         clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C, 
787         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
788         home=\E[H, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, 
789         smul=\E[4m, 
790
791 # (ibmpcx: this entry used to be known as ibmx.
792 # It formerly included the following extension capabilities:
793 #       :GC=b:GL=v:GR=t:RT=^J:\
794 #       :GH=\E[196g:GV=\E[179g:\
795 #       :GU=\E[193g:GD=\E[194g:\
796 #       :G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
797 #       :CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
798 #       :WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
799 # I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
800 # ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
801 # what was there before. -- esr)
802 ibmpcx|xenix|ibmx|IBM PC xenix console display, 
803         am, msgr, 
804         cols#80, lines#25, 
805         clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C, 
806         cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
807         ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H, 
808         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d, 
809         kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e, 
810         kpp=\E[Z, 
811         use=klone+acs, use=klone+sgr, 
812
813
814 # QNX 4.0 Console
815 # Michael's original version of this entry had <am@>, <smcup=\Ei>,
816 # <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
817 # right corner without triggering a scroll.  The ncurses terminfo library can
818 # handle this case with the <ich1> capability, and prefers <am> for better
819 # optimization.  Bug: The <op> capability resets attributes.
820 # From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
821 qnx|qnx4|qnx console, 
822         daisy, km, mir, msgr, xhpa, xt, 
823         colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8, 
824         acsc=l\332m\300k\277j\331q\304x\263u\264t\303n\305v\301w\302O\333a\261o\337s\334, 
825         bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ, 
826         cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
827         cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, cvvis=\Ey2, 
828         dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee, 
829         il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263, 
830         kCMD=\377\267, kCPY=\377\363, kCRT=\377\364, 
831         kDL=\377\366, kEND=\377\301, kEOL=\377\311, 
832         kEXT=\377\367, kFND=\377\370, kHLP=\377\371, 
833         kHOM=\377\260, kIC=\377\340, kLFT=\377\264, 
834         kMOV=\377\306, kMSG=\377\304, kNXT=\377\272, 
835         kOPT=\377\372, kPRT=\377\275, kPRV=\377\262, 
836         kRDO=\377\315, kRES=\377\374, kRIT=\377\266, 
837         kRPL=\377\373, kSAV=\377\307, kSPD=\377\303, 
838         kUND=\377\337, kbeg=\377\300, kcan=\377\243, 
839         kcbt=\377\200, kclo=\377\343, kclr=\377\341, 
840         kcmd=\377\245, kcpy=\377\265, kcrt=\377\305, 
841         kctab=\377\237, kcub1=\377\244, kcud1=\377\251, 
842         kcuf1=\377\246, kcuu1=\377\241, kdch1=\377\254, 
843         kdl1=\377\274, ked=\377\314, kel=\377\310, kend=\377\250, 
844         kent=\377\320, kext=\377\270, kf1=\377\201, 
845         kf10=\377\212, kf11=\377\256, kf12=\377\257, 
846         kf13=\377\213, kf14=\377\214, kf15=\377\215, 
847         kf16=\377\216, kf17=\377\217, kf18=\377\220, 
848         kf19=\377\221, kf2=\377\202, kf20=\377\222, 
849         kf21=\377\223, kf22=\377\224, kf23=\377\333, 
850         kf24=\377\334, kf25=\377\225, kf26=\377\226, 
851         kf27=\377\227, kf28=\377\230, kf29=\377\231, 
852         kf3=\377\203, kf30=\377\232, kf31=\377\233, 
853         kf32=\377\234, kf33=\377\235, kf34=\377\236, 
854         kf35=\377\276, kf36=\377\277, kf37=\377\321, 
855         kf38=\377\322, kf39=\377\323, kf4=\377\204, 
856         kf40=\377\324, kf41=\377\325, kf42=\377\326, 
857         kf43=\377\327, kf44=\377\330, kf45=\377\331, 
858         kf46=\377\332, kf47=\377\316, kf48=\377\317, 
859         kf5=\377\205, kf6=\377\206, kf7=\377\207, kf8=\377\210, 
860         kf9=\377\211, kfnd=\377\346, khlp=\377\350, 
861         khome=\377\240, khts=\377\342, kich1=\377\253, 
862         kil1=\377\273, kind=\377\261, kmov=\377\351, 
863         kmrk=\377\355, kmsg=\377\345, knp=\377\252, 
864         knxt=\377\312, kopn=\377\357, kopt=\377\353, 
865         kpp=\377\242, kprt=\377\255, kprv=\377\302, 
866         krdo=\377\336, kref=\377\354, kres=\377\360, 
867         krfr=\377\347, kri=\377\271, krmir=\377\313, 
868         krpl=\377\362, krst=\377\352, ksav=\377\361, 
869         kslt=\377\247, kspd=\377\335, ktbc=\377\344, 
870         kund=\377\365, mvpa=\E!%p1%02d, op=\ER, 
871         rep=\Eg%p2%' '%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER, 
872         rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d, 
873         setf=\E@%p1%Pf%gb%gf%d%d, 
874         sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;, 
875         sgr0=\E}\E]\E>\E), smcup=\Ei, smso=\E(, smul=\E[, 
876
877 #### NetBSD consoles
878 #
879 # pcvt termcap database entries (corresponding to release 3.31)
880 # Author's last edit-date: [Fri Sep 15 20:29:10 1995]
881 #
882 # (For the terminfo master file, I translated these into terminfo syntax.
883 # Then I dropped all the pseudo-HP entries. we don't want and can't use
884 # the :Xs: flag. Then I split :is: into a size-independent <is1> and a
885 # size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
886
887 # NOTE: because the 386BSD "vi"/"elvis" seems to have a bug if
888 # both <ich1> and <smir> are specified (an original VT220 
889 # shows the same buggy behaviour!), <ich1> has been taken
890 # out of this entry. for reference, it should be <ich1=\E[@>.
891 pcvtXX|pcvt vt200 emulator (DEC VT220), 
892         am, km, mir, msgr, xenl, 
893         it#8, vt#3, 
894         acsc=llmmkkjjuuttvvwwqqxxnnoosspprr``aaffgg~~..--++\,\,hhII00yyzz, 
895         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
896         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
897         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
898         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
899         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
900         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, 
901         il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS, 
902         is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=\177, 
903         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
904         kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~, 
905         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, 
906         khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~, 
907         nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, 
908         ri=\EM, rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, 
909         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, 
910         rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
911         sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h, 
912         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
913
914 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
915 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
916 #       50 lines entries; 80 columns
917 pcvt25|dec vt220 emulation with 25 lines, 
918         cols#80, lines#25, 
919         is2=\E[1;25r\E[25;1H, use=pcvtXX, 
920 pcvt28|dec vt220 emulation with 28 lines, 
921         cols#80, lines#28, 
922         is2=\E[1;28r\E[28;1H, use=pcvtXX, 
923 pcvt35|dec vt220 emulation with 35 lines, 
924         cols#80, lines#35, 
925         is2=\E[1;35r\E[35;1H, use=pcvtXX, 
926 pcvt40|dec vt220 emulation with 40 lines, 
927         cols#80, lines#40, 
928         is2=\E[1;40r\E[40;1H, use=pcvtXX, 
929 pcvt43|dec vt220 emulation with 43 lines, 
930         cols#80, lines#43, 
931         is2=\E[1;43r\E[43;1H, use=pcvtXX, 
932 pcvt50|dec vt220 emulation with 50 lines, 
933         cols#80, lines#50, 
934         is2=\E[1;50r\E[50;1H, use=pcvtXX, 
935
936 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
937 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
938 #       50 lines entries; 132 columns
939 pcvt25w|dec vt220 emulation with 25 lines and 132 cols, 
940         cols#132, lines#25, 
941         is2=\E[1;25r\E[25;1H, use=pcvtXX, 
942 pcvt28w|dec vt220 emulation with 28 lines and 132 cols, 
943         cols#132, lines#28, 
944         is2=\E[1;28r\E[28;1H, use=pcvtXX, 
945 pcvt35w|dec vt220 emulation with 35 lines and 132 cols, 
946         cols#132, lines#35, 
947         is2=\E[1;35r\E[35;1H, use=pcvtXX, 
948 pcvt40w|dec vt220 emulation with 40 lines and 132 cols, 
949         cols#132, lines#40, 
950         is2=\E[1;40r\E[40;1H, use=pcvtXX, 
951 pcvt43w|dec vt220 emulation with 43 lines and 132 cols, 
952         cols#132, lines#43, 
953         is2=\E[1;43r\E[43;1H, use=pcvtXX, 
954 pcvt50w|dec vt220 emulation with 50 lines and 132 cols, 
955         cols#132, lines#50, 
956         is2=\E[1;50r\E[50;1H, use=pcvtXX, 
957
958 # NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
959 # manufactured by Sharp for the Japenese market.
960 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
961 x68k|x68k-ite|NetBSD/x68k ITE, 
962         cols#96, lines#32, 
963         kclr=\E[9~, khlp=\E[28~, use=vt220, 
964
965 #### FreeBSD console entries
966 #
967 # From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
968 # Andrey Chernov maintains the FreeBSD termcap distributions.
969 #
970 # Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
971 # or comment out the :cb: capability in the console entry.
972 #
973 # Alexander Lukyanov reports:
974 # I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
975 # Now el1 clears not only to the line beginning, but also a large chunk
976 # of previous line. But there is another bug - ech does not work at all.
977 #
978
979 # for syscons
980 # common entry without semigraphics
981 # Bug: The <op> capability resets attributes.
982 # Bug? The ech and el1 attributes appear to move the cursor in some cases; for
983 # instance el1 does if the cursor is moved to the right margin first.  Removed
984 # by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
985 cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode), 
986         am, bce, bw, eo, msgr, npc, 
987         colors#8, cols#80, it#8, lines#25, pairs#64, 
988         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
989         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B, 
990         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
991         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, 
992         dim=\E[30;1m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, 
993         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, 
994         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S, 
995         indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D, 
996         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F, 
997         kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N, 
998         kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, 
999         kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I, 
1000         nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, 
1001         rmso=\E[m, rs1=\E[x\E[m\Ec, setab=\E[4%p1%dm, 
1002         setaf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, 
1003 cons25|ansis|ansi80x25|freebsd console (25-line ansi mode), 
1004         acsc=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`\004a\260f\370g\361~\371.\031-\030h\261I^U0\333y\363z\362, 
1005         use=cons25w, 
1006 cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode), 
1007         colors@, pairs@, 
1008         bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25, 
1009 cons30|ansi80x30|freebsd console (30-line ansi mode), 
1010         lines#30, use=cons25, 
1011 cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode), 
1012         lines#30, use=cons25-m, 
1013 cons43|ansi80x43|freebsd console (43-line ansi mode), 
1014         lines#43, use=cons25, 
1015 cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode), 
1016         lines#43, use=cons25-m, 
1017 cons50|ansil|ansi80x50|freebsd console (50-line ansi mode), 
1018         lines#50, use=cons25, 
1019 cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode), 
1020         lines#50, use=cons25-m, 
1021 cons60|ansi80x60|freebsd console (60-line ansi mode), 
1022         lines#60, use=cons25, 
1023 cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode), 
1024         lines#60, use=cons25-m, 
1025 cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic, 
1026         acsc=q\200x\201m\204v\211j\205t\206n\212u\207l\202w\210k\203y\230z\231f\234~\225a\220h\221`\004.\031-\030I^U0\215, 
1027         use=cons25w, 
1028 cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono), 
1029         colors@, pairs@, 
1030         op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25r, 
1031 cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines), 
1032         lines#50, use=cons25r, 
1033 cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono), 
1034         lines#50, use=cons25r-m, 
1035 cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines), 
1036         lines#60, use=cons25r, 
1037 cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono), 
1038         lines#60, use=cons25r-m, 
1039 # ISO 8859-1 FreeBSD console
1040 cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars, 
1041         acsc=l\215m\216k\214j\213u\226t\225v\227w\230q\222x\231n\217o\220s\224p\221r\223`\201a\202f\207g\210~\237.\031-\030+\253\,\273I\247y\232z\233, 
1042         use=cons25w, 
1043 cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono), 
1044         colors@, pairs@, 
1045         bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25l1, 
1046 cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines), 
1047         lines#50, use=cons25l1, 
1048 cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono), 
1049         lines#50, use=cons25l1-m, 
1050 cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines), 
1051         lines#60, use=cons25l1, 
1052 cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono), 
1053         lines#60, use=cons25l1-m, 
1054
1055 #### 386BSD and BSD/OS Consoles
1056 #
1057
1058 # This was the original 386BSD console entry (I think).  
1059 # Some places it's named oldpc3|oldibmpc3.
1060 # From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
1061 origpc3|origibmpc3|IBM PC 386BSD Console, 
1062         am, bw, eo, xon, 
1063         cols#80, lines#25, 
1064         acsc=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305, 
1065         bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C, 
1066         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K, 
1067         home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
1068         kcuu1=\E[A, khome=\E[Y, ri=\E[T, rmso=\E[1;0x\E[2;7x, 
1069         rmul=\E[1;0x\E[2;7x, sgr0=\E[m\E[1;0x\E[2;7x, 
1070         smso=\E[1;7x\E[2;0x, smul=\E[1;7x\E[2;0x, 
1071
1072 # description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
1073 oldpc3|oldibmpc3|old IBM PC BSD/386 Console, 
1074         km, 
1075         lines#25, 
1076         bel=^G, bold=\E[=15F, cr=^M, cud1=^J, dim=\E[=8F, dl1=\E[M, 
1077         ht=^I, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
1078         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F, 
1079         knp=\E[G, kpp=\E[I, nel=^M^J, sgr0=\E[=R, 
1080
1081 # Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
1082 # Note, the emulator supports many of the additional console features
1083 # listed in the iBCS2 (e.g. character-set selection) though not all
1084 # are described here.  This entry really ought to be upgraded.
1085 # Also note, the console will also work with fewer lines after doing
1086 # "stty rows NN", e.g. to use 24 lines.
1087 # (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996) 
1088 # Bug: The <op> capability resets attributes.
1089 bsdos|BSD/OS console, 
1090         am, bw, eo, km, xon, 
1091         colors#8, cols#80, it#8, lines#25, pairs#64, 
1092         bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M, 
1093         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1094         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1095         cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[=8F, dl=\E[%p1%dM, 
1096         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, 
1097         il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
1098         kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F, knp=\E[G, 
1099         kpp=\E[I, nel=^M^J, op=\E[x, rc=\E8, rev=\E[7m, rmso=\E[0m, 
1100         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, 
1101         smso=\E[7m, 
1102 bsdos-bold|IBM PC BSD/386 Console with bold instead of underline, 
1103         rmul=\E[0m, smul=\E[1m, 
1104         use=bsdos, 
1105
1106 # If you are BSDI, you want the following entries, for the moment.  
1107 # In release 2.0 they will probably phase out the pc3 and ibmpc3 names
1108 pc3|IBM PC BSD/386 Console, 
1109         use=bsdos, 
1110 ibmpc3|pc3-bold|IBM PC BSD/386 Console with bold instead of underline, 
1111         smul=\E[1m, 
1112         use=bsdos-bold, 
1113
1114 #### DEC VT100 and compatibles
1115 #
1116 # DEC terminals from the vt100 forward (and the vt52, way obsolete but still
1117 # the basis of some emulations) are collected here. Older DEC terminals and
1118 # micro consoles can be found in the `obsolete' section.  More details on
1119 # the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
1120 # found near the end of this file.
1121 #
1122 # Except where noted, these entries are DEC's official terminfos.
1123 # Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
1124 # Engineering for more information.  Updated terminfos and termcaps 
1125 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
1126 #
1127 # In October 1995 DEC sold its terminals business, including the VT and Dorio
1128 # line and trademark, to SunRiver Data Systems.
1129 #
1130 # (The <acsc>, <rmacs>, and <smacs> capabilities aren't in DEC's official
1131 # entry -- esr)
1132
1133 vt52|dec vt52, 
1134         cols#80, it#8, lines#24, 
1135         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1136         bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC, 
1137         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ, 
1138         el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, 
1139         kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF, 
1140
1141 # NOTE:  Any VT100 emulation, whether in hardware or software, almost
1142 # certainly includes what DEC called the `Level 1 editing extension' codes;
1143 # only the very oldest VT100s lacked these and there probably aren't any of
1144 # those left alive.  To capture these, use one of the VT102 entries.
1145 #
1146 # Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
1147 # since the cursor is left in a different position while in the
1148 # weird state (concept at beginning of next line, vt100 at end
1149 # of this line) so all versions of vi before 3.7 don't handle
1150 # <xenl> right on vt100. The correct way to handle <xenl> is when
1151 # you output the char in column 80, immediately output CR LF
1152 # and then assume you are in column 1 of the next line. If <xenl>
1153 # is on, am should be on too.
1154
1155 # I assume you have smooth scroll off or are at a slow enough baud
1156 # rate that it doesn't matter (1200? or less). Also this assumes
1157 # that you set auto-nl to "on", if you set it off use vt100-nam 
1158 # below.
1159
1160 # The padding requirements listed here are guesses. It is strongly
1161 # recommended that xon/xoff be enabled, as this is assumed here.
1162
1163 # The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the 
1164 # tab settings are in non-volatile memory and don't need to be 
1165 # reset upon login. Also setting the number of columns glitches 
1166 # the screen annoyingly. You can type "reset" to get them set.
1167 #
1168 # Here's a diagram of the VT100 keypad keys with their bindings.
1169 # The top line is the name of the key (some DEC keyboards have the keys
1170 # labelled somewhat differently, like GOLD instead of PF1, but this is
1171 # the most "official" name).  The second line is the escape sequence it
1172 # generates in Application Keypad mode (where "$" means the ESC
1173 # character).  The third line contains two items, first the mapping of
1174 # the key in terminfo, and then in termcap.
1175 #   _______________________________________
1176 #  |   PF1   |   PF2   |   PF3   |   PF4   |
1177 #  |   $OP   |   $OQ   |   $OR   |   $OS   |
1178 #  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1179 #  |    7         8         9         -    |
1180 #  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1181 #  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
1182 #  |    4    |    5    |    6    |    ,    |
1183 #  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1184 #  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
1185 #  |    1    |    2    |    3    |         |
1186 #  |   $Oq   |   $Or   |   $Os   |  enter  |
1187 #  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
1188 #  |         0         |   .     |         |
1189 #  |        $Op        |  $On    |         |
1190 #  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1191 #
1192 # And here, for those of you with orphaned VT100s lacking documentation, is
1193 # a description of the soft switches invoked when you do `Set Up'.
1194
1195 #  Scroll 0-Jump               Shifted 3   0-#
1196 #  |      1-Smooth             |           1-British pound sign
1197 #  | Autorepeat 0-Off          | Wrap Around 0-Off
1198 #  | |          1-On           | |           1-On
1199 #  | | Screen 0-Dark Bkg       | | New Line 0-Off
1200 #  | | |      1-Light Bkg      | | |        1-On
1201 #  | | | Cursor 0-Underline    | | | Interlace 0-Off
1202 #  | | | |      1-Block        | | | |         1-On
1203 #  | | | |                     | | | |
1204 #  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
1205 #                | | | |                     | | | |
1206 #                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
1207 #                | | |               1-On    | | |       1-50 Hz
1208 #                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
1209 #                | |           1-ANSI        | |                1-8 Bits
1210 #                | Keyclick 0-Off            | Parity 0-Off
1211 #                |          1-On             |        1-On
1212 #                Margin Bell 0-Off           Parity Sense 0-Odd
1213 #                            1-On                         1-Even
1214 #
1215 # The following SET-UP modes are assumed for normal operation:
1216 #       ANSI_MODE       AUTO_XON/XOFF_ON        NEWLINE_OFF     80_COLUMNS
1217 #       WRAP_AROUND_ON  JUMP_SCROLL_OFF
1218 # Other SET-UP modes may be set for operator convenience or communication
1219 # requirements; I recommend
1220 #       AUTOREPEAT_ON   BLOCK_CURSOR    MARGIN_BELL_OFF    SHIFTED_3_#
1221 # Unless you have a graphics add-on such as Digital Engineering's VT640
1222 # (and even then, whenever it can be arranged!) you should set
1223 #       INTERLACE_OFF
1224 #
1225 # (I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
1226 vt100|vt100-am|dec vt100 (w/advanced video), 
1227         am, msgr, xenl, xon, 
1228         cols#80, it#8, lines#24, vt#3, 
1229         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1230         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1231         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1232         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1233         cuf=\E[%p1%dC, cuf1=\E[C$<2>, 
1234         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, 
1235         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>, 
1236         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq, 
1237         ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, 
1238         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, 
1239         kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, 
1240         kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8, 
1241         rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l, 
1242         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>, 
1243         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1244         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
1245         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, 
1246         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, 
1247 vt100nam|vt100-nam|vt100 no automargins, 
1248         am@, xenl@, use=vt100-am, 
1249
1250 # Ordinary vt100 in 132 column ("wide") mode.
1251 vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video), 
1252         cols#132, lines#24, 
1253         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am, 
1254 vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin), 
1255         cols#132, lines#14, vt@, 
1256         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam, 
1257
1258 # vt100 with no advanced video.
1259 vt100-nav|vt100 without advanced video option, 
1260         xmc#1, 
1261         blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m, 
1262         smul@, 
1263         use=vt100, 
1264 vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option), 
1265         cols#132, lines#14, use=vt100-nav, 
1266
1267 # vt100 with one of the 24 lines used as a status line.
1268 # We put the status line on the top.
1269 vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline, 
1270         eslok, hs, 
1271         lines#23, 
1272         clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr, 
1273         cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8, 
1274         fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8, 
1275         tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am, 
1276
1277 # Status line at bottom. 
1278 # Clearing the screen will clobber status line.
1279 vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline, 
1280         eslok, hs, 
1281         lines#23, 
1282         dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H, 
1283         tsl=\E7\E[24;%p1%dH\E[1K, 
1284         use=vt100-am, 
1285
1286 # Most of the `vt100' emulators out there actually emulate a vt102
1287 # This entry (or vt102-nsgr) is probably the right thing to use for
1288 # these.  
1289 vt102|dec vt102, 
1290         mir, 
1291         dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h, use=vt100, 
1292 vt102-w|dec vt102 in wide mode, 
1293         lines#132, 
1294         rs3=\E[?3h, use=vt102, 
1295
1296 # Many brain-dead PC comm programs that pretend to be `vt100-compatible'
1297 # fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
1298 # string in the canonical vt100 entry above leaves the screen littered
1299 # with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
1300 # after highlight turnoffs.  This entry should fix that, and even leave
1301 # ACS support working, at the cost of making multiple-highlight changes 
1302 # slightly more expensive.
1303 # From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
1304 vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes), 
1305         sgr@, sgr0=\E[m, 
1306         use=vt102, 
1307
1308 # VT125 Graphics CRT.  Clear screen also erases graphics
1309 vt125|vt125 graphics terminal, 
1310         clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100, 
1311
1312 # This isn't a DEC entry, it came from University of Wisconsin.
1313 # (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
1314 vt131|dec vt131, 
1315         am, xenl, 
1316         cols#80, it#8, lines#24, vt#3, 
1317         bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>, 
1318         clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1319         cub1=^H, cud1=^J, cuf1=\E[C$<2/>, 
1320         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>, 
1321         ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I, 
1322         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB, 
1323         kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, 
1324         kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>, 
1325         rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>, 
1326         rmul=\E[m$<2/>, 
1327         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1328         sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=, 
1329         smso=\E[7m$<2/>, smul=\E[4m$<2/>, 
1330
1331 # vt132 - like vt100 but slower and has ins/del line and such.
1332 # I'm told that <smir>/<rmir> are backwards in the terminal from the
1333 # manual and from the ANSI standard, this describes the actual 
1334 # terminal. I've never actually used a vt132 myself, so this 
1335 # is untested.
1336 #
1337 vt132|DEC vt132, 
1338         xenl, 
1339         dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>, 
1340         ip=$<7>, rmir=\E[4h, smir=\E[4l, 
1341         use=vt100, 
1342
1343 # vt220:
1344 # This vt220 description maps F5--F9 to the second block of function keys
1345 # at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
1346 # with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
1347 # PF1--PF4 are used as F1--F4.
1348 #
1349 vt220|vt200|DEC VT220 in vt100 emulation mode, 
1350         am, mir, xenl, xon, 
1351         cols#80, lines#24, vt#3, 
1352         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1353         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l, 
1354         clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M, 
1355         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C, 
1356         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1357         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1358         if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>, 
1359         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
1360         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP, 
1361         kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~, 
1362         kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, 
1363         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rc=\E8, 
1364         rev=\E[7m$<2>, rf=/usr/share/tabset/vt100, 
1365         ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1366         rmso=\E[27m, rmul=\E[24m, 
1367         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
1368         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1369         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1370         smso=\E[7m, smul=\E[4m, 
1371 vt220-w|vt200-w|DEC vt220 in wide mode, 
1372         cols#132, 
1373         rs3=\E[?3h, use=vt220, 
1374
1375 #
1376 # vt220d:
1377 # This vt220 description regards F6--F10 as the second block of function keys
1378 # at the top of the keyboard.  This mapping follows the description given
1379 # in the VT220 Programmer Reference Manual and agrees with the labeling
1380 # on some terminals that emulate the vt220.  There is no support for an F5.
1381 # See vt220 for an alternate mapping. 
1382 #
1383 vt220d|DEC VT220 in vt100 mode with DEC function key labeling, 
1384         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, 
1385         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, 
1386         kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~, 
1387         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1388         use=vt220, 
1389
1390 vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins, 
1391         am@, 
1392         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220, 
1393
1394 vt220-8|dec vt220 8 bit terminal, 
1395         am, mc5i, mir, msgr, xenl, xon, 
1396         cols#80, it#8, lines#24, 
1397         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1398         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
1399         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1400         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1401         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1402         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1403         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, 
1404         flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH, 
1405         ich=\E[%p1%d@, if=/usr/share/tabset/vt100, 
1406         il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1407         is2=\E[?7h\E[>\E[?1h\E F\E[?4l, kbs=^H, kcub1=\E[D, 
1408         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~, 
1409         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
1410         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, 
1411         kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~, 
1412         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, 
1413         khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, 
1414         kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[i, 
1415         mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, 
1416         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m, 
1417         rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N, 
1418         smam=\E[?7h, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1419
1420 # This was DEC's vt320.  Use the purpose-built one below instead 
1421 #vt320|DEC VT320 in vt100 emulation mode,
1422 #       use=vt220,
1423
1424 #
1425 # Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
1426 #
1427 vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode, 
1428         am@, 
1429         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220, 
1430
1431 # These entries are not DEC's official ones, they were purpose-built for the 
1432 # VT320.  Here are the designer's notes:
1433 # <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to 
1434 # 'Erase to End of Field'... since nothing seems to use 'end' anyways...
1435 # khome is Home on a PC kbd.  Actually 'FIND' on a VT.
1436 # Things that use <knxt> usually use tab anyways... and things that don't use
1437 # tab usually use <knxt> instead...
1438 # kprv is same as tab - Backtab is useless...
1439 # I left out <sgr> because of its RIDICULOUS complexity,
1440 # and the resulting fact that it causes the termcap translation of the entry
1441 # to SMASH the 1k-barrier...
1442 # From: Adam Thompson <thompson@xanth.magic.mb.ca> Sept 10 1995
1443 # (vt320: uncommented <fsl> --esr) 
1444 vt320|vt300|dec vt320 7 bit terminal, 
1445         am, eslok, hs, mir, msgr, xenl, 
1446         cols#80, lines#24, wsl#80, 
1447         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1448         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
1449         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
1450         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1451         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1452         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1453         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1454         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, fsl=\E[0$}, 
1455         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, 
1456         il1=\E[L, ind=\ED, 
1457         is2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1458         ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs, 
1459         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1460         kdch1=\E[3~, kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~, 
1461         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
1462         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
1463         kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, 
1464         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1465         khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~, 
1466         kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, 
1467         nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt300, 
1468         ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, 
1469         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, 
1470         rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1471         sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h, 
1472         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1473         tsl=\E[1$}\E[H\E[K, 
1474 vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy, 
1475         am@, 
1476         is2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1477         rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1478         use=vt320, 
1479 # We have to init 132-col mode, not 80-col mode.
1480 vt320-w|vt300-w|dec vt320 wide 7 bit terminal, 
1481         cols#132, wsl#132, 
1482         is2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1483         rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1484         use=vt320, 
1485 vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am, 
1486         am@, 
1487         is2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1488         rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H, 
1489         use=vt320-w, 
1490
1491 # VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
1492 #   which are pretty much a superset of the VT320.  They have the
1493 #   host writable status line, yet another different DRCS matrix size,
1494 #   and such, but they add the DEC Technical character set, Multiple text
1495 #   pages, selectable length pages, and the like.  The difference between
1496 #   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
1497 #   monitor, the former has 4 planes and a color monitor.  These terminals
1498 #   support VT131 and ANSI block mode, but as with much of these things,
1499 #   termcap/terminfo doesn't deal with these features.
1500 #
1501 # Note that this entry is are set up in what was the standard way for GNU
1502 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
1503 # keys were switched into application mode at the same time the numeric pad
1504 # is switched into application mode.  This changes the definitions of the
1505 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of 
1506 # your termcap or terminfo entry,
1507 #
1508 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
1509 # (vt340: string capability "sb=\E[M" corrected to "sr";
1510 # also, added <rmam>/<smam> based on the init string -- esr)
1511 vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page, 
1512         am, eslok, hs, mir, msgr, xenl, xon, 
1513         cols#80, it#8, lines#24, vt#3, 
1514         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1515         blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J, 
1516         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1517         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1518         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1519         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP, 
1520         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, 
1521         dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K, 
1522         flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, home=\E[H, ht=^I, 
1523         hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1524         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1525         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1526         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~, 
1527         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2, 
1528         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m, 
1529         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O, 
1530         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, 
1531         rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N, 
1532         smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, 
1533         smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH, 
1534
1535 # DEC doesn't supply a vt400 description, so we add Daniel Glasser's
1536 # (originally written with vt420 as its primary name, and usable for it).
1537
1538 # VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple 
1539 #    text pages and long text pages with selectable length of the vt340, along
1540 #    with left and right margins, rectangular area text copy, fill, and erase
1541 #    operations, selected region character attribute change operations,
1542 #    page memory and rectangle checksums, insert/delete column, reception
1543 #    macros, and other features too numerous to remember right now.  TERMCAP
1544 #    can only take advantage of a few of these added features.
1545 #
1546 # Note that this entry is are set up in what was the standard way for GNU
1547 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
1548 # keys were switched into application mode at the same time the numeric pad
1549 # is switched into application mode.  This changes the definitions of the
1550 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of 
1551 # your termcap entry,
1552 #
1553 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
1554 # (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
1555 # also, added <rmam>/<smam> based on the init string -- esr)
1556 vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap, 
1557         am, eslok, hs, mir, msgr, xenl, xon, 
1558         cols#80, it#8, lines#24, vt#3, 
1559         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1560         blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
1561         clear=\E[H\E[J$<10/>, cnorm=\E[?25h, cr=^M, 
1562         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1563         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1564         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1565         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
1566         dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>, 
1567         el=\E[K$<4/>, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, 
1568         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
1569         il=\E[%p1%dL, il1=\E[L, ind=\ED, 
1570         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, 
1571         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1572         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~, 
1573         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2, 
1574         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m, 
1575         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O, 
1576         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, 
1577         rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7, sgr0=\E[m, 
1578         smacs=^N, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, 
1579         smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1580         tsl=\E[2$~\E[1$}\E[1;%dH, 
1581
1582 # (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
1583 # a missing <sc> -- esr)
1584 vt420|DEC VT420, 
1585         am, mir, xenl, xon, 
1586         cols#80, lines#24, vt#3, 
1587         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1588         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1589         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1590         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1591         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1592         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1593         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1594         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1595         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1596         kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR, 
1597         kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, 
1598         kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
1599         kslt=\E[4~, rc=\E8, rev=\E[7m$<2>, 
1600         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>, 
1601         rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, 
1602         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1603         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1604         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1605         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1606         smkx=\E=, smso=\E[7m, smul=\E[4m, 
1607
1608 #
1609 #  DECUDK   
1610 #               if (key < 16) then  value = key;
1611 #               else if (key < 21) then value = key + 1; 
1612 #               else if (key < 25) then value = key + 2;
1613 #               else if (key < 27) then value = key + 3;
1614 #               else if (key < 30) then value = key + 4;
1615 #               else value = key + 5;
1616 #
1617 vt420pc|DEC VT420 w/PC keyboard, 
1618         kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~, 
1619         kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, 
1620         kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~, 
1621         kf18=\E[17;2~, kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~, 
1622         kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[23;2~, 
1623         kf24=\E[24;2~, kf25=\E[23~, kf26=\E[24~, kf27=\E[25~, 
1624         kf28=\E[26~, kf29=\E[28~, kf3=\E[13~, kf30=\E[29~, 
1625         kf31=\E[31~, kf32=\E[32~, kf33=\E[33~, kf34=\E[34~, 
1626         kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~, kf38=\E[24;2~, 
1627         kf39=\E[25;2~, kf4=\E[14~, kf40=\E[26;2~, kf41=\E[28;2~, 
1628         kf42=\E[29;2~, kf43=\E[31;2~, kf44=\E[32;2~, 
1629         kf45=\E[33;2~, kf46=\E[34;2~, kf47=\E[35;2~, 
1630         kf48=\E[36;2~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
1631         kf8=\E[19~, kf9=\E[20~, khome=\E[H, 
1632         pctrm=USR_TERM\:vt420pcdos\:, 
1633         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, 
1634
1635 vt420pcdos|DEC VT420 w/PC for DOS Merge, 
1636         lines#25, 
1637         dispc=%?%p2%{19}%=%t\E\023\021%e%p2%{32}%<%t\E%p2%c%e%p2%{127}%=%t\E\177%e%p2%c%;, 
1638         pctrm@, 
1639         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@, 
1640         sgr0=\E[m, smsc=\E[?1;2r\E[34h, 
1641         use=vt420pc, 
1642
1643 vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys, 
1644         kdch1=\177, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
1645         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
1646         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
1647         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
1648         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1649         khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS, 
1650         use=vt420, 
1651
1652 vt510|DEC VT510, 
1653         use=vt420, 
1654 vt510pc|DEC VT510 w/PC keyboard, 
1655         use=vt420pc, 
1656 vt510pcdos|DEC VT510 w/PC for DOS Merge, 
1657         use=vt420pcdos, 
1658
1659 # VT520/VT525
1660 #
1661 # The VT520 is a monochrome text terminal capable of managing up to
1662 # four independent sessions in the terminal.  It has multiple ANSI
1663 # emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
1664 # and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
1665 # 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
1666 #
1667 # Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
1668 # [Alt]/[Print Screen] depending upon which keyboard and which
1669 # terminal mode is being used.  If Set-Up has been disabled or
1670 # assigned to an unknown key, Set-Up may be entered by pressing
1671 # [F3] as the first key after power up, regardless of keyboard type.
1672 # (vt520: I added <rmam>/<smam> based on the init string, also <sc> -- esr)
1673 vt520|DEC VT520, 
1674         am, mir, xenl, xon, 
1675         cols#80, lines#24, vt#3, 
1676         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1677         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1678         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1679         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1680         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1681         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1682         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1683         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1684         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1685         kdch1=\E[3~, kf0=\E[29~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, 
1686         kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, 
1687         kf8=\E[20~, kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, 
1688         kpp=\E[5~, kslt=\E[4~, 
1689         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\\, 
1690         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300, 
1691         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1692         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1693         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1694         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1695         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1696         smso=\E[7m, smul=\E[4m, 
1697
1698 # (vt525: I added <rmam>/<smam> based on the init string;
1699 # removed <rmso>=\E[m, <rmul>=\E[m, added <sc> -- esr)
1700 vt525|DEC VT525, 
1701         am, mir, xenl, xon, 
1702         cols#80, lines#24, vt#3, 
1703         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1704         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
1705         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1706         cub1=^H, cud1=\E[B, cuf1=\E[C, 
1707         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P, 
1708         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
1709         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED, 
1710         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H, 
1711         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
1712         kdch1=\E[3~, kf0=\E[29~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, 
1713         kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, 
1714         kf8=\E[20~, kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, 
1715         kpp=\E[5~, kslt=\E[4~, 
1716         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\\, 
1717         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300, 
1718         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, 
1719         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, 
1720         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7, 
1721         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;, 
1722         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h, 
1723         smso=\E[7m, smul=\E[4m, 
1724
1725 #### VT100 emulations
1726 #
1727
1728 # John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
1729 # (the best Windows telnet as of September 1995) presents the name `dec-vt100'
1730 # to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
1731 # that this works best with a stock vt100 entry.
1732 dec-vt100|EWAN telnet's vt100 emulation, 
1733         use=vt100, 
1734
1735 # From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
1736 dec-vt220|DOS tnvt200 terminal emulator, 
1737         am@, use=vt220, 
1738
1739 # Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
1740 # anyone who needs PC VT340 emulation. (or anything below that level, for
1741 # that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
1742 # RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
1743 # I can send the address if requested.
1744 # (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
1745 # From: Adam Thompson <thompson@xanth.magic.mb.ca> Sept 10 1995
1746 z340|zstem vt340 terminal emulator 132col 42line, 
1747         lines#42, 
1748         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
1749         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, 
1750         use=vt320-w, 
1751 z340-nam|zstem vt340 terminal emulator 132col 42line, 
1752         am@, 
1753         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
1754         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, 
1755         use=z340, 
1756
1757 #### X terminal emulators
1758 #
1759 # You can add the following line to your .Xdefaults to change the terminal type
1760 # set by the xterms you start up to my-xterm:
1761 #
1762 # *termName:  my-xterm
1763 #
1764 # System administrators can change the default entry for xterm instances
1765 # by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
1766 # case, xterm will detect and reject an invalid terminal type, falling back
1767 # to the default of xterm.
1768 #
1769
1770 # X10/6.6       11/7/86, minus alternate screen, plus (csr)
1771 # (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
1772 # removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
1773 # as these seem not to work -- esr)
1774 x10term|vs100-x10|xterm terminal emulator (X10 window system), 
1775         am, km, mir, msgr, xenl, xon, 
1776         cols#80, it#8, lines#65, 
1777         bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr, 
1778         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1779         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
1780         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, 
1781         il1=\E[L, ind=^J, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H, 
1782         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, 
1783         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l, 
1784         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m, 
1785         sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, 
1786         smso=\E[7m, smul=\E[4m, 
1787 # Compatible with the R5 xterm 
1788 # (from the XFree86 3.2 distribution, <blink=@> removed)
1789 xterm-r5|xterm R5 version, 
1790         am, km, msgr, xenl, 
1791         cols#80, it#8, lines#24, 
1792         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
1793         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1794         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1795         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1796         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1797         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
1798         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD, 
1799         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, 
1800         kdl1=\E[31~, kel=\E[8~, kf0=\EOq, kf1=\E[11~, kf10=\E[21~, 
1801         kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, kf3=\E[13~, 
1802         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
1803         kf9=\E[20~, khome=\E[7~, kich1=\E[2~, kil1=\E[30~, 
1804         knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM, 
1805         rmkx=\E[?1l\E>, rmso=\E[m, 
1806         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, sc=\E7, 
1807         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
1808         sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, tbc=\E[3g, 
1809 # Compatible with the R6 xterm
1810 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
1811 xterm-r6|xterm-old|xterm X11R6 version, 
1812         am, km, mir, msgr, xenl, 
1813         cols#80, it#8, lines#24, 
1814         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1815         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
1816         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1817         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1818         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1819         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1820         el=\E[K, enacs=\E)0, home=\E[H, ht=^I, il=\E[%p1%dL, 
1821         il1=\E[L, ind=^J, 
1822         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H, 
1823         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1824         kdch1=\E[3~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, 
1825         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
1826         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
1827         kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, 
1828         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, 
1829         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El, 
1830         memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
1831         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>, 
1832         rmso=\E[m, rmul=\E[m, 
1833         rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, sc=\E7, 
1834         sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h, 
1835         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1836 # This is the stock xterm entry supplied with XFree86 3.2
1837 # The name has been changed and some aliases have been removed.
1838 xterm-xf86-v32|xterm terminal emulator (X Window System), 
1839         am, bce, km, mir, msgr, xenl, 
1840         colors#8, cols#80, it#8, lines#24, pairs#64, 
1841         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1842         bel=^G, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[2J, 
1843         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
1844         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
1845         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, 
1846         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP, 
1847         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, 
1848         el=\E[K, el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h\E[?5l, 
1849         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
1850         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
1851         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, 
1852         ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq, 
1853         kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, 
1854         kdch1=\177, kend=\EOF, kent=\EOM, kf1=\E[11~, kf10=\E[21~, 
1855         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, 
1856         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, 
1857         kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, 
1858         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, 
1859         kf9=\E[20~, kfnd=\E[1~, khome=\EOH, kich1=\E[2~, 
1860         kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El, 
1861         memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, 
1862         rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, 
1863         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=^O, 
1864         rs2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, sc=\E7, 
1865         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
1866         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
1867         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
1868         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
1869         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h, 
1870         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
1871         tbc=\E[3g, vpa=\E[%i%p1%dd, 
1872
1873 # This is xterm for ncurses. It mainly adds mappings for more high-half
1874 # characters.  Note that these will only work for fixed-width fonts.
1875 # Once XFree86 3.2 is established, we'll switch this to use=xterm-xf86-v32
1876 xterm|vs100|xterms|xterm terminal emulator (X Window System), 
1877         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++\,\,II00, 
1878         kmous=\E[M, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
1879         use=xterm-r6, 
1880
1881 # These entries allow access to the X titlebar and icon name as a status line. 
1882 # Note that twm (and possibly window managers descended from it such as tvtwm, 
1883 # ctwm, and vtwm) track windows by icon-name; thus, you don't want to mess
1884 # with it.
1885 xterm+sl|access X title line and icon name, 
1886         hs, 
1887         wsl#40, 
1888         dsl=\E]0;\007, fsl=^G, tsl=\E]0;, 
1889 xterm+sl-twm|access X title line (pacify twm-descended window managers), 
1890         hs, 
1891         wsl#40, 
1892         dsl=\E]2;\007, fsl=^G, tsl=\E]2;, 
1893
1894 #
1895 # The following xterm variants don't depend on your base version
1896 #
1897 xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold, 
1898         smso=\E[1m, 
1899         use=xterm, 
1900 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
1901 # (kterm should not invoke DEC Graphics as the alternate character set
1902 #  -- Kenji Rikitake)
1903 kterm|kterm kanji terminal emulator (X window system), 
1904         eslok, hs, 
1905         csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs=\E(B, fsl=\E[?F, 
1906         rc=\E8, sc=\E7, tsl=\E[?E\E[?%i%dT, 
1907         use=xterm, 
1908 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
1909 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs, 
1910         ich@, ich1@, 
1911         use=xterm, 
1912 # From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996 
1913 xterm1|xterm terminal emulator ignoring the alternate screen buffer, 
1914         rmcup@, smcup@, 
1915         use=xterm, 
1916
1917 # This describes the capabilities of color_xterm, an xterm variant from
1918 # before ECMA-64 color support was folded into the main-line xterm release.
1919 # This entry is straight from color_xterm's maintainer.
1920 # From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
1921 color_xterm|cx|cx100|color_xterm color terminal emulator for X, 
1922         am, km, mir, msgr, xenl, 
1923         colors#8, cols#80, it#8, lines#65, pairs#64, 
1924         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1925         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M, 
1926         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1927         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1928         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1929         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
1930         el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I, 
1931         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
1932         is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, ka1=\EOw, ka3=\EOy, 
1933         kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\EOD, kcud1=\EOB, 
1934         kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kent=\EOM, kf1=\E[11~, 
1935         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, 
1936         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, 
1937         kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~, 
1938         kmous=\E[M, knp=\E[6~, kpp=\E[5~, op=\E[39;49m, rc=\E8, 
1939         rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, 
1940         rmcup=\E>\E[?41;1r, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, 
1941         rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<, 
1942         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, 
1943         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, 
1944         sgr0=\E[m, smacs=^N, smam=\E[?7h, 
1945         smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m, 
1946         smul=\E[4m, 
1947
1948 # From: Mark Olesen & Thomas Dickey <dickey@clark.net> 13 Jul 1996
1949 rxvt|reduced xterm terminal (X Window System), 
1950         am, bce, km, mir, msgr, xenl, xon, 
1951         colors#8, cols#80, it#8, lines#24, pairs#64, 
1952         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
1953         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
1954         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
1955         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
1956         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
1957         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
1958         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
1959         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
1960         enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, 
1961         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, 
1962         il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E[?47l\E=\E[?1l, 
1963         is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, 
1964         kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$, 
1965         kPRV=\E[5$, kRIT=\E[c, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H, 
1966         kc1=\EOp, kc3=\EOn, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, 
1967         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[8~, kent=\EOM, 
1968         kf0=\E[21~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
1969         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
1970         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
1971         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
1972         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
1973         khome=\E[7~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, 
1974         op=\E[39m\E[49m, rc=\E8, rev=\E[7m, ri=\EM, 
1975         rmacs=\E(B\E)0\017, rmcup=\E[?47l\E8, rmir=\E[4l, 
1976         rmkx=\E>, rmso=\E[27m, rmul=\E[24m, 
1977         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, 
1978         rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>, 
1979         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m, 
1980         smacs=\E(B\E)U\016, smcup=\E7\E[?47h, smir=\E[4h, 
1981         smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, 
1982         vpa=\E[%i%p1%dd, 
1983
1984 # From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
1985 # Here's a termcap entry I've been using for xterm_color, which comes
1986 # with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
1987 # color stuff, I also have a status line defined as the window manager
1988 # title bar. [I have translated it to terminfo -- ESR]
1989 xterm-pcolor|xterm with color used for highlights and status line, 
1990         bold=\E[1m\E[43m, rev=\E[7m\E[34m, smso=\E[7m\E[31m, 
1991         smul=\E[4m\E[42m, 
1992         use=xterm+sl, use=xterm, 
1993
1994 # HP ships this, except for the pb#9600 which was merged in from BSD termcap.
1995 # (hpterm: added empty <acsc>, we have no idea what ACS chars look like --esr)
1996 xhpterm|X-hpterm|hp X11 terminal emulator, 
1997         am, da, db, mir, xhp, 
1998         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0, 
1999         acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, 
2000         cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, 
2001         cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK, 
2002         hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=^J, kbs=^H, 
2003         kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2004         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep, 
2005         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, 
2006         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF, 
2007         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, meml=\El, 
2008         memu=\Em, pfkey=\E&f%p1%dk%p2%l%dL%p2%s, 
2009         pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s, 
2010         pfx=\E&f2a%p1%dk%p2%l%dL%p2%s, 
2011         pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET, 
2012         rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, 
2013         rmul=\E&d@, 
2014         sgr=\E&d%?%p7%t%'s'%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%'@'%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
2015         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB, 
2016         smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
2017
2018 # This entry describes an xterm with Sun-style function keys enabled
2019 # via the X resource setting "xterm*sunFunctionKeys:true"
2020 # To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
2021 # The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
2022 # because we want it to be seen as <kcpy>. 
2023 # The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
2024 # with their Sun keyboard labels instead.
2025 # From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
2026 xterm-sun|xterm with sunFunctionKeys true, 
2027         kb2=\E[218z, kcpy=\E[197z, kend=\E[220z, kf1=\E[224z, 
2028         kf10=\E[233z, kf11=\E[192z, kf12=\E[193z, kf13=\E[194z, 
2029         kf14=\E[195z, kf15=\E[196z, kf17=\E[198z, kf18=\E[199z, 
2030         kf19=\E[200z, kf2=\E[225z, kf20=\E[201z, kf3=\E[226z, 
2031         kf31=\E[208z, kf32=\E[209z, kf33=\E[210z, kf34=\E[211z, 
2032         kf35=\E[212z, kf36=\E[213z, kf38=\E[215z, kf4=\E[227z, 
2033         kf40=\E[217z, kf42=\E[219z, kf44=\E[221z, kf5=\E[228z, 
2034         kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, 
2035         kfnd=\E[200z, khlp=\E[196z, khome=\E[214z, kich1=\E[2z, 
2036         knp=\E[222z, kpp=\E[216z, kund=\E[195z, 
2037         use=xterm, 
2038 xterms-sun|small (80x24) xterm with sunFunctionKeys true, 
2039         cols#80, lines#24, use=xterm-sun, 
2040
2041 # This is for the extensible terminal emulator on the X11R6 contrib tape (emu).
2042 emu|emu native mode, 
2043         mir, msgr, xon, 
2044         colors#15, cols#80, it#8, lines#24, pairs#64, vt#200, 
2045         acsc=a\202f\260g261j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244, 
2046         bel=^G, blink=\ES\EW, bold=\ES\EU, civis=\EZ, 
2047         clear=\EP\EE0;0;, cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;, 
2048         cub=\Eq-%p1%d;, cub1=^H, cud=\Ep%p1%d;, cud1=\EB, 
2049         cuf=\Eq%p1%d;, cuf1=\ED, cup=\EE%p1%d;%p2%d;, 
2050         cuu=\Ep-%p1%d;, cuu1=\EA, cvvis=\Ea, dch=\EI%p1%d;, 
2051         dch1=\EI1;, dl=\ER%p1%d;, dl1=\ER1;, ech=\Ej%p1%d;, ed=\EN, 
2052         el=\EK, el1=\EL, enacs=\200, home=\EE0;0;, ht=^I, hts=\Eh, 
2053         il=\EQ%p1%d;, il1=\EQ1;, ind=\EG, is2=\ES\Er0;\Es0;, 
2054         kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED, kcuu1=\EA, 
2055         kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01, kf10=\EF10, 
2056         kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14, kf15=\EF15, 
2057         kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19, kf2=\EF02, 
2058         kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05, kf6=\EF06, 
2059         kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind, kich1=\Eins, 
2060         knp=\Enext, kpp=\Eprior, kslt=\Esel, oc=\Es0;\Er0;, 
2061         rev=\ES\ET, ri=\EF, rmacs=\200, rmir=\EX, rmso=\ES, rmul=\ES, 
2062         rs2=\ES\Es0;\Er0;, 
2063         setab=\Es%i%p1%d; setaf=\Er%i%p1%d;, sgr0=\ES, 
2064         smacs=\200, smir=\EY, smso=\ES\ET, smul=\ES\EV, tbc=\Ej, 
2065
2066 ######## UNIX VIRTUAL TERMINALS AND VIRTUAL CONSOLES
2067 #
2068
2069 # Columbus UNIX virtual terminal. This terminal also appears in 
2070 # UNIX 4.0 and successors as line discipline 1 (?), but is 
2071 # undocumented and does not really work quite right.
2072 cbunix|cb unix virtual terminal, 
2073         am, da, db, 
2074         cols#80, lines#24, lm#0, 
2075         bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
2076         cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL, 
2077         el=\EK, ich1=\EO, il1=\EP, ind=^J, kcub1=\ED, kcud1=\EB, 
2078         kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A, 
2079         smso=\Ea^D, smul=\Ea^A, 
2080 # (vremote: removed obsolete ":nl@:" -- esr)
2081 vremote|virtual remote terminal, 
2082         am@, 
2083         cols#79, use=cbunix, 
2084 pty|4bsd pseudo teletype, 
2085         cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!, 
2086         smso=\Ea$, smul=\Ea!, 
2087         use=cbunix, 
2088
2089 # The codes supported by the term.el terminal emulation in GNU Emacs 19.30 
2090 eterm|gnu emacs term.el terminal emulation, 
2091         am, mir, xenl, 
2092         cols#80, lines#24, 
2093         bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, 
2094         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2095         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2096         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2097         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\\E[J, 
2098         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, 
2099         il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m, 
2100         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m, 
2101         sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m, 
2102         smul=\E[4m, 
2103
2104 # Entries for use by the FSF's `screen' program.  The screen and
2105 # screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
2106 # come from University of Wisconsin and may be older.
2107 # (screen: added <cnorm> on ANSI model -- esr)
2108
2109 screen|VT 100/ANSI X3.64 virtual terminal, 
2110         am, km, mir, msgr, xenl, 
2111         colors#8, cols#80, it#8, lines#24, pairs#64, 
2112         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++\,\,hhII00, 
2113         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
2114         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
2115         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2116         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2117         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
2118         cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
2119         dl1=\E[M, ed=\E[J, el=\E[K, enacs=\E(B\E)0, flash=\Eg, 
2120         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, 
2121         il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, 
2122         kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~, 
2123         kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
2124         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
2125         khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~, 
2126         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l, 
2127         rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m, rs2=\Ec, sc=\E7, 
2128         sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=, 
2129         smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
2130         use=ecma+color, 
2131
2132 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols, 
2133         cols#132, use=screen, 
2134
2135 screen2|VT 100/ANSI X3.64 virtual terminal, 
2136         cols#80, it#8, lines#24, 
2137         cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H, 
2138         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
2139         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2140         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2141         el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL, 
2142         il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2143         kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, 
2144         kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH, 
2145         nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m, 
2146         rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h, 
2147         smso=\E[3m, smul=\E[4m, tbc=\E[3g, 
2148 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
2149 screen3|VT 100/ANSI X3.64 virtual terminal, 
2150         km, mir, msgr, 
2151         cols#80, it#8, lines#24, 
2152         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
2153         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2154         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2155         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM, 
2156         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2157         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, 
2158         il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD, 
2159         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, 
2160         kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, 
2161         rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec, 
2162         sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m, 
2163         smul=\E[4m, tbc=\E[3g, 
2164
2165 ######## WORKSTATION CONSOLES
2166 #
2167
2168 #### Sun consoles
2169 #
2170
2171 # :is1: resets scrolling region in case a previous user had used "tset vt100"
2172 oldsun|Sun Microsystems Workstation console, 
2173         am, km, mir, msgr, 
2174         cols#80, it#8, lines#34, 
2175         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C, 
2176         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP, 
2177         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I, 
2178         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, 
2179         is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
2180         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, 
2181         rmso=\E[m, sgr0=\E[m, smso=\E[7m, 
2182 # From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
2183 # <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
2184 sun-il|Sun Microsystems console with working insert-line, 
2185         am, km, msgr, 
2186         cols#80, lines#34, 
2187         bel=^G, bold=\E[1m, clear=^L, cr=^M, cub1=^H, cud1=^J, 
2188         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, 
2189         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, 
2190         el=\E[K, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
2191         il1=\E[L, ind=^J, kb2=\E[218z, kbs=^H, kcub1=\E[D, 
2192         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, 
2193         kend=\E[220z, kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, 
2194         kf12=\E[235z, kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, 
2195         kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, 
2196         kf9=\E[232z, khome=\E[214z, knp=\E[222z, kopt=\E[194z, 
2197         kpp=\E[216z, kres=\E[193z, kund=\E[195z, rev=\E[7m, 
2198         rmso=\E[m, rmul=\E[m, rs2=\E[s, 
2199         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m, 
2200         sgr0=\E[m, smso=\E[7m, smul=\E[4m, 
2201 # On a SparcStation 5, <il1>/<il> flake out on the last line.
2202 # Unfortunately, without them the terminal has no way to scroll.
2203 sun-ss5|Sun SparcStation 5 console, 
2204         il@, il1@, use=sun-il, 
2205 # If you are using an SS5, change the sun definition to use sun-ss5.
2206 sun|sun1|sun2|Sun Microsystems Inc. workstation console, 
2207         use=sun-il, 
2208
2209 # From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
2210 sun-s|Sun Microsystems Workstation window with status line, 
2211         hs, 
2212         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun, 
2213 sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs, 
2214         hs, 
2215         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun-e, 
2216 sun-48|Sun 48-line window, 
2217         cols#80, lines#48, use=sun, 
2218 sun-34|Sun 34-line window, 
2219         cols#80, lines#34, use=sun, 
2220 sun-24|Sun 24-line window, 
2221         cols#80, lines#24, use=sun, 
2222 sun-17|Sun 17-line window, 
2223         cols#80, lines#17, use=sun, 
2224 sun-12|Sun 12-line window, 
2225         cols#80, lines#12, use=sun, 
2226 sun-1|Sun 1-line window for sysline, 
2227         eslok, hs, 
2228         cols#80, lines#1, 
2229         dsl=^L, fsl=\E[K, tsl=^M, use=sun, 
2230 sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character, 
2231         ich1@, rmir@, smir@, 
2232         use=sun, 
2233 sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history, 
2234         lines#35, 
2235         rmcup=\E[>4h, smcup=\E[>4l, use=sun, 
2236
2237 #### Iris consoles
2238 #
2239
2240 # (wsiris: this had extension capabilities
2241 #       :HS=\E7F2:HE=\E7F7:\
2242 #       :CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
2243 # See the note on Iris extensions near the end of this file.  
2244 # Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> & 
2245 # <flash> from BRL -- esr)
2246 wsiris|iris40|iris emulating a 40 line visual 50 (approximately), 
2247         am, 
2248         cols#80, it#8, lines#40, 
2249         bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB, cuf1=\EC, 
2250         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E;, 
2251         dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK, 
2252         flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL, 
2253         ind=^J, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB, 
2254         kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, 
2255         kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI, 
2256         rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P, 
2257         smul=\E7R2\E9P, 
2258
2259 #### NeWS consoles
2260 #
2261 # Console terminal windows under the NeWS (Sun's Display Postscript windowing
2262 # environment).   Note: these have nothing to do with Sony's News workstation
2263 # line.
2264 #
2265
2266 # Entry for NeWS's psterm from Eric Messick & Hugh Daniel
2267 # (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
2268 psterm|psterm-basic|NeWS psterm-80x34, 
2269         am, hs, km, ul, 
2270         cols#80, it#8, lines#34, 
2271         blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;, 
2272         cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY, 
2273         dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl, 
2274         home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D, 
2275         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr, 
2276         ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^], 
2277         sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu, 
2278         tsl=\EOl, 
2279 psterm-96x48|NeWS psterm 96x48, 
2280         cols#96, lines#48, use=psterm, 
2281 psterm-90x28|NeWS psterm 90x28, 
2282         cols#90, lines#28, use=psterm, 
2283 psterm-80x24|NeWS psterm 80x24, 
2284         cols#80, lines#24, use=psterm, 
2285 # This is a faster termcap for psterm.  Warning:  if you use this termcap,
2286 # some control characters you type will do strange things to the screen.
2287 # (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
2288 psterm-fast|NeWS psterm fast version (flaky ctrl chars), 
2289         am, hs, km, ul, 
2290         cols#80, it#8, lines#34, 
2291         blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;, 
2292         cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y, 
2293         dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I, 
2294         il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
2295         kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni, 
2296         rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi, 
2297         smso=^Oo, smul=^Ou, tsl=^Ol, 
2298
2299 #### NeXT Consoles
2300 #
2301 # Use `glasstty' for the Workspace application
2302 #
2303
2304 # From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
2305 next|NeXT console, 
2306         am, xt, 
2307         cols#80, it#8, lines#24, 
2308         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C, 
2309         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H, 
2310         ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
2311         rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m, 
2312 nextshell|NeXT Shell application, 
2313         am, 
2314         cols#80, 
2315         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H, 
2316         kcud1=^J, nel=^M^J, 
2317
2318 ### Common Desktop Environment
2319 #
2320
2321 # This ships with Sun's CDE in Solaris 2.5
2322 dtterm|CDE desktop terminal, 
2323         am, mir, msgr, xenl, xon, 
2324         colors#8, cols#80, it#8, lines#24, lm#0, pairs#64, 
2325         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
2326         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l, 
2327         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, 
2328         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
2329         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
2330         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
2331         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, 
2332         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, 
2333         flash=\E[?5h$<200>\E[?5l, home=\E[H, ht=^I, hts=\EH, 
2334         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, 
2335         invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l, kbs=^H, 
2336         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, 
2337         kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, 
2338         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
2339         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, 
2340         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, 
2341         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
2342         kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, 
2343         kslt=\E[4~, nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, 
2344         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, 
2345         rmul=\E[24m, sc=\E7, setab=\E[%p1%{40}%+%dm, 
2346         setaf=\E[%p1%{30}%+%dm, 
2347         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%;, 
2348         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h, 
2349         smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, 
2350
2351 ######## COMMON TERMINAL TYPES
2352 #
2353 # This section describes terminal classes and maker brands that are still
2354 # quite common, but have proprietary command sets not blessed by ANSI.
2355 #
2356
2357 #### Altos
2358 #
2359 # Altos made a moderately successful line of UNIX boxes.  In 1990 they were
2360 # bought out by Acer, a major Taiwanese manufacturer of PC-clones.
2361 # Acer has a web site at http://www.acer.com.
2362 #
2363 # Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
2364 # His comments suggest they were shipped with the system.
2365 #
2366
2367 # (altos2: had extension capabilities
2368 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2369 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2370 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2371 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2372 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
2373 #       :YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
2374 #       :HL=^AP\r:SP=\E[i:\
2375 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
2376 #       :LO=\E[0q:LC=\E[5q:LL=\E[6q:\
2377 # Comparison with the k* capabilities makes it obvious that the c* things are
2378 # shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
2379 # :sr: was given as a boolean-- esr)
2380 altos2|alt2|altos-2|altos II, 
2381         cols#80, it#8, lines#24, xmc#0, 
2382         clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[1B, cuf1=\E[1C, 
2383         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch1=\E[P, dl=\E[M, 
2384         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, 
2385         if=/usr/share/tabset/vt100, il1=\E[L, ind=^J, 
2386         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r, 
2387         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D, 
2388         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r, 
2389         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r, 
2390         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r, 
2391         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r, 
2392         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
2393         kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r, 
2394         nel=^M^J, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
2395         smam=\E[?7h, smso=\E[7m, smul=\E[4m, 
2396 # (altos3: had extension capabilities
2397 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2398 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2399 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2400 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2401 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
2402 #       :HL=^AP\r:SP=\E[i:\
2403 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
2404 altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V, 
2405         blink=\E[5p, ri=\EM, sgr0=\E[p, 
2406         use=altos2, 
2407 altos4|alt4|altos-4|altos IV, 
2408         use=wy50, 
2409 # (altos7: had extension capabilities:
2410 #       :GG#0:GI=\EH8:GF=\EH7:\
2411 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
2412 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
2413 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
2414 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
2415 # Comparison with the k* capabilities makes it obvious that the c* things are
2416 # shift keys.  I have renamed them to keys 32 and up accordingly.  I have
2417 # also made this entry relative to adm12 in order to give it an <sgr>. The
2418 # <invis> imported by use=adm+sgr may work, let me know. -- esr)
2419 altos7|alt7|altos VII, 
2420         am, mir, 
2421         cols#80, lines#24, xmc#0, 
2422         acsc=l2m1k3j5t4u9v=w0q\:x6n8, blink=\EG2, bold=\EGt, 
2423         clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
2424         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
2425         dim=\EGp, dl=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE, 
2426         ind=^J, invis=\EG1, 
2427         is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r, 
2428         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H, 
2429         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r, 
2430         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r, 
2431         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r, 
2432         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r, 
2433         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
2434         kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r, 
2435         knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=^M^J, ri=\Ej, 
2436         rmir=\Er, smir=\Eq, 
2437         use=adm+sgr, 
2438 altos7pc|alt7pc|altos PC VII, 
2439         kend=\ET, use=altos7, 
2440
2441 #### Hewlett-Packard (hp)
2442 #
2443 #       Hewlett-Packard
2444 #       8000 Foothills Blvd 
2445 #       Roseville, CA 95747
2446 #       Vox: 1-(916)-785-4363   (Technical response line for VDTs)
2447 #            1-(800)-633-3600   (General customer support)
2448 #
2449
2450 # Generic HP terminal - this should (hopefully) work on any HP terminal.
2451 hpgeneric|hp|hewlett-packard generic terminal, 
2452         am, da, db, mir, xhp, 
2453         cols#80, lines#24, lm#0, vt#6, 
2454         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
2455         cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM, 
2456         ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, 
2457         ind=^J, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@, 
2458         sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3, 
2459         vpa=\E&a%p1%dY, 
2460
2461 hp110|hewlett-packard model 110 portable, 
2462         lines#16, use=hpgeneric, 
2463
2464 hp+pfk+cr|hp function keys with CR, 
2465         kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, 
2466         kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r, 
2467
2468 hp+pfk-cr|hp function keys w/o CR, 
2469         kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, 
2470         kf8=\Ew, 
2471
2472 # The hp2621s use the same keys for the arrows and function keys, 
2473 # but not separate escape sequences. These definitions allow the 
2474 # user to use those keys as arrow keys rather than as function 
2475 # keys.
2476 hp+pfk+arrows|hp alternate arrow definitions, 
2477         kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@, 
2478         kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r, 
2479         kll=\Eq\r, kri=\Es\r, 
2480
2481 hp+arrows|hp arrow definitions, 
2482         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
2483         kind=\ES, kll=\EF, kri=\ET, 
2484
2485 # Generic stuff from the HP 262x series
2486 #
2487 hp262x|HP 262x terminals, 
2488         xhp, 
2489         blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES, 
2490         invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2491         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, 
2492         kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET, 
2493         krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, 
2494         sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%c, 
2495         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, 
2496
2497 # Note: no <home> on HPs since that homes to top of memory, not screen.
2498 # Due to severe 2621 braindamage, the only way to get the arrow keys to
2499 # transmit anything at all is to turn on the function key labels
2500 # with <smkx>, and even then the user has to hold down shift!
2501 # The default 2621 turns off the labels except when it has to to 
2502 # enable the function keys. If your installation prefers labels 
2503 # on all the time, or off all the time (at the "expense" of the 
2504 # function keys), use 2621-nl or 2621-wl.
2505
2506 # Note: there are newer ROMs for 2621's that allow you to set 
2507 # strap A so the regular arrow keys xmit \EA, etc, as with the 
2508 # 2645. However, even with this strap set, the terminal stops 
2509 # xmitting if you reset it, until you unset and reset the strap!
2510 # Since there is no way to set/unset the strap with an escape 
2511 # sequence, we don't use it in the default.
2512 # If you like, you can use 2621-ba (brain-damaged arrow keys).
2513 hp2621-ba|2621 w/new rom and strap A set, 
2514         rmkx@, smkx@, use=hp+arrows, 
2515         use=hp2621, 
2516
2517 # hp2621 with function labels. Most of the time they are off,
2518 # but inside vi, the function key labels appear. You have to
2519 # hold down shift to get them to xmit.
2520 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels, 
2521         is2=\E&jA\r, rmkx=\E&jA, 
2522         use=hp2621-fl, 
2523 hp2621-fl|hp 2621, 
2524         xhp@, xon, 
2525         pb#19200, 
2526         cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>, 
2527         ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@, 
2528         sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD, 
2529         use=hp+pfk+cr, use=hpgeneric, 
2530
2531 # To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
2532 hp2621p|hp 2621 with printer, 
2533         mc4=\E&p13C, mc5=\E&p11C, use=hp2621, 
2534
2535 hp2621p-a|hp2621p with fn as arrows, 
2536         use=hp+pfk+arrows, use=hp2621p, 
2537
2538 # hp2621 with k45 keyboard
2539 hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard, 
2540         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, 
2541         khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, 
2542         use=hp2621, 
2543
2544 # 2621 using all 48 lines of memory, only 24 visible at any time.  
2545 hp2621-48|48 line 2621, 
2546         lines#48, 
2547         cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR, use=hp2621, 
2548
2549 # 2621 with no labels ever. Also prevents vi delays on escape.
2550 hp2621-nl|hp 2621 with no labels, 
2551         kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@, use=hp2621-fl, 
2552
2553 # Needed for UCB ARPAVAX console, since lsi-11 expands tabs 
2554 # (wrong).
2555 #
2556 hp2621-nt|hp 2621 w/no tabs, 
2557         ht@, use=hp2621, 
2558
2559 # Hp 2624 B with 4 or 10 pages of memory.
2560
2561 # Some assumptions are made with this entry. These settings are 
2562 # NOT set up by the initialization strings.
2563
2564 # Port Configuration
2565 #       RecvPace=Xon/Xoff
2566 #       XmitPace=Xon/Xoff
2567 #       StripNulDel=Yes
2568
2569 # Terminal Configuration
2570 #       InhHndShk=Yes
2571 #       InhDC2=Yes
2572 #       XmitFnctn(A)=No
2573 #       InhEolWrp=No
2574
2575 # Note: the 2624 DOES have a true <home>, believe it or not!
2576
2577 # The 2624 has an "error line" to which messages can be sent. 
2578 # This is CLOSE to what is expected for a "status line". However,
2579 # after a message is sent to the "error line", the next carriage 
2580 # return is EATEN and the "error line" is turned back off again! 
2581 # So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
2582
2583 # This entry supports emacs (and any other program that uses raw 
2584 # mode) at 4800 baud and less. I couldn't get the padding right 
2585 # for 9600.
2586 #
2587 # (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
2588 hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B, 
2589         da, db, 
2590         lm#96, 
2591         flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F, use=hp+labels, use=scrhp, 
2592
2593 # This hp2626 entry does not use any of the fancy windowing stuff 
2594 # of the 2626.
2595
2596 # Indeed, terminfo does not yet handle such stuff. Since changing 
2597 # any window clears memory, it is probably not possible to use 
2598 # this for screen opt.
2599
2600 # ed is incredibly slow most of the time - I am guessing at the 
2601 # exact padding. Since the terminal uses xoff/xon this is intended 
2602 # only for cost computation, so that the terminal will prefer el 
2603 # or even dl1 which is probably faster!
2604
2605 # \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only 
2606 # extra slow on the last line of the window. 
2607
2608 # The padding probably should be changed.
2609 #
2610 hp2626|hp2626a|hp2626p|hp 2626, 
2611         da, db, 
2612         lm#0, pb#19200, 
2613         ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>, 
2614         is2=\E&j@\r, rin=\E&r%p1%dU, 
2615         use=hp+pfk+cr, use=hp+labels, use=scrhp, 
2616
2617 # This entry is for sysline. It allocates a 23 line window with 
2618 # a 115 line workspace for regular use, and a 1 line window for 
2619 # the status line.
2620
2621 # This assumes port 2 is being used.
2622 # Turn off horizontal line, Create ws #1 with 115 lines,
2623 # Create ws #2 with 1 line, Create window #1 lines 1-23,
2624 # Create window #2 lines 24-24, Attach cursor to workspace #1.
2625 # Note that this clears the tabs so it must be done by tset before
2626 # it sets the tabs.
2627 #
2628 hp2626-s|hp 2626 using only 23 lines, 
2629         eslok, hs, 
2630         lines#23, 
2631         fsl=\E&d@\E&w7f2p1I\E&w4f1I, 
2632         is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r, 
2633         tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, 
2634         use=hp2626, 
2635 # Force terminal back to 24 lines after being 23.
2636 hp2626-ns|hp 2626 using all 24 lines, 
2637         is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r, use=hp2626, 
2638 # Various entries useful for small windows on 2626.
2639 hp2626-12|hewlett-packard 2626 12 lines, 
2640         lines#12, use=hp2626, 
2641 hp2626-12x40|hewlett-packard 2626 12 lines 40 columns, 
2642         cols#40, lines#12, use=hp2626, 
2643 hp2626-x40|hewlett-packard 2626 40 columns, 
2644         cols#40, use=hp2626, 
2645 hp2626-12-s|hewlett-packard 2626 11 lines plus status, 
2646         lines#11, use=hp2626-s, 
2647
2648 #
2649 # hp2627 color tubes from University of Wisconsin
2650 #
2651 hp2627a-rev|hp 2627 with reverse video colors, 
2652         cr=^M, cud1=^J, ht=^I, ind=^J, 
2653         is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r, 
2654         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmul=\E&v0S\E&d@, 
2655         smul=\E&dD\E&v1S, 
2656         use=hp2621-nl, 
2657 hp2627a|hp 2627 color terminal with no labels, 
2658         cr=^M, cud1=^J, ht=^I, ind=^J, 
2659         is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r, 
2660         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmso=\E&v0S, 
2661         rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S, 
2662         use=hp2621-nl, 
2663 hp2627c|hp 2627 color (cyan) terminal with no labels, 
2664         cr=^M, cud1=^J, ht=^I, ind=^J, 
2665         is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r, 
2666         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
2667         use=hp2627a, 
2668
2669 # hp2640a doesn't have the Y cursor addressing feature, and C is 
2670 # memory relative instead of screen relative, as we need.
2671 #
2672 hp2640a|hp 2640a, 
2673         cup@, rmkx@, smkx@, use=hp2645, 
2674
2675 hp2640b|hp2644a|hp 264x series, 
2676         rmkx@, smkx@, use=hp2645, 
2677
2678 # (hp2641a: removed unknown :gu: -- esr)
2679 hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry, 
2680         am, da, db, mir, xhp, 
2681         cols#80, lines#24, 
2682         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
2683         cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM, 
2684         ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I, 
2685         if=/usr/share/tabset/std, il1=\EL, ind=^J, 
2686         is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
2687         rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB, 
2688         vpa=\E&a%p1%2dY, 
2689
2690 # This terminal should be used at 4800 baud or less. It needs padding for
2691 # plain characters at 9600, I guessed at an appropriate cr delay.  It really
2692 # wants ^E/^F handshaking, but that doesn't work well even if you write
2693 # software to support it.
2694 hp2645|hp45|HP 2645 series, 
2695         pb#9600, 
2696         blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED, 
2697         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM, 
2698         ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, 
2699         kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB, 
2700         rmkx=\E&s0A, 
2701         sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%?%p5%t%'H'%|%;%?%p6%t%'B'%|%;%c, 
2702         sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, 
2703         use=hpgeneric, 
2704 # You should use this terminal at 4800 baud or less.
2705 hp2648|hp2648a|HP 2648a graphics terminal, 
2706         clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>, 
2707         dch1=\EP$<7>, ip=$<5>, 
2708         use=hp2645, 
2709
2710 # The HP 150 terminal is a fairly vanilla HP terminal, with the 
2711 # clreol standout problem. It also has graphics capabilities and 
2712 # a touch screen, which we don't describe here.
2713 hp150|hewlett packard Model 150, 
2714         use=hp2622, 
2715
2716 # HP 2382a terminals, "the little ones." They don't have any 
2717 # alternate character set support and sending out ^N/^O will 
2718 # leave the screen blank.
2719 hp2382a|hp2382|hewlett packard 2382a, 
2720         da, db, 
2721         lh#1, lm#48, 
2722         acsc@, 
2723         pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s, 
2724         rmacs@, 
2725         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, 
2726         sgr0=\E&d@, smacs@, 
2727         use=hp+labels, use=scrhp, 
2728
2729 hp2621-a|hp2621a-a|hp2621 with fn as arrows, 
2730         use=hp+pfk+arrows, use=hp2621-fl, 
2731
2732 # newer hewlett packard terminals
2733
2734 newhpkeyboard|generic entry for HP extended keyboard, 
2735         kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2736         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, 
2737         kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV, 
2738         kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A, 
2739         use=hp+pfk-cr, 
2740
2741 newhp|generic entry for new hewlett packard terminals, 
2742         am, bw, mir, xhp, xon, 
2743         cols#80, lines#24, pb#4800, 
2744         acsc=T1R!U2S"W3O#V4P$t5u6w7v8\:'9(LQKWlRkT5I3@2[MAJSmFjGdHQ;Y+Z*X\:4>q\,x.n/, 
2745         bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H, 
2746         cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH, 
2747         dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J, 
2748         invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=^M^J, 
2749         pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s, 
2750         pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s, 
2751         pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET, 
2752         rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg, 
2753         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%;, 
2754         sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD, 
2755         tbc=\E3, 
2756         use=newhpkeyboard, 
2757
2758 memhp|memory relative addressing for new HP ttys, 
2759         vt#6, 
2760         clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR, 
2761         cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR, 
2762         home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r, 
2763         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp, 
2764
2765 scrhp|screen relative addressing for new HP ttys, 
2766         clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC, 
2767         cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC, 
2768         cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR, 
2769         home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA, 
2770         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp, 
2771
2772 # (hp+labels: added label values from a BRL termcap -- esr)
2773 hp+labels|"standard" label info for new HP ttys, 
2774         lh#2, lw#8, nlab#8, 
2775         lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, 
2776         pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s, 
2777         rmln=\E&j@, smln=\E&jB, 
2778
2779 hp+printer|"standard" printer info for HP ttys, 
2780         ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C, 
2781
2782
2783 # The new hp2621b is kind of a cross between the old 2621 and the
2784 # new 262x series of machines. It has dip-switched options. 
2785 # The firmware has a bug in it such that if you give it a null 
2786 # length label, the following character is eaten!
2787 hp2621b|hp 2621b with old style keyboard, 
2788         lh#1, lm#48, lw#8, nlab#8, 
2789         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
2790         kind=\ET, kll=\EF, kri=\ES, 
2791         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, 
2792         smln=\E&jB, 
2793         use=hp2621, 
2794
2795 hp2621b-p|hp 2621b with printer, 
2796         use=hp+printer, use=hp2621b, 
2797
2798 # hp2621b - new 2621b with new extended keyboard
2799 # these are closer to the new 26xx series than the other 2621b
2800 hp2621b-kx|hp 2621b with extended keyboard, 
2801         use=newhpkeyboard, use=hp2621b, 
2802
2803 hp2621b-kx-p|hp 2621b with new keyboard & printer, 
2804         use=hp+printer, use=hp2621b-kx, 
2805
2806 # Some assumptions are made in the following entries.
2807 # These settings are NOT set up by the initialization strings.
2808
2809 #    Port Configuration
2810 # RecvPace=Xon/Xoff     XmitPace=Xon/Xoff       StripNulDel=Yes
2811
2812 #    Terminal Configuration
2813 # InhHndShk(G)=Yes      InhDC2(H)=Yes
2814 # XmitFnctn(A)=No               InhEolWrp=No
2815 #
2816
2817 # Hp 2622a & hp2623a display and graphics terminals
2818 #
2819 hp2622|hp2622a|hp 2622, 
2820         da, db, 
2821         lm#0, pb#19200, 
2822         is2=\E&dj@\r, use=hp+pfk+cr, use=hp+labels, use=scrhp, 
2823
2824 # The 2623 is a 2622 with extra graphics hardware.
2825 hp2623|hp2623a|hp 2623, 
2826         use=hp2622, 
2827
2828 hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer, 
2829         use=hp+printer, use=hp2624, 
2830
2831 # The hewlett packard B can have an optional extra 6 pages of memory.
2832 hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory, 
2833         lm#240, use=hp2624, 
2834
2835 hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer, 
2836         lm#240, use=hp2624b-p, 
2837
2838 # Color manipulations for HP terminals
2839 hp+color|hp with colors, 
2840         ccc, 
2841         colors#16, ncv#17, pairs#7, 
2842         initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a\n%?%p3%{1000}%=%t1%e.%p3%d%;b\n%?%p4%{1000}%=%t1%e.%p4%d%;c\n%?%p5%{1000}%=%t1%e.%p5%d%;x\n%?%p6%{1000}%=%t1%e.%p6%d%;y\n%?%p7%{1000}%=%t1%e.%p7%d%;z\n%p1%dI, 
2843         oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I, 
2844         op=\E&v0S, scp=\E&v%p1%dS, 
2845
2846 # <is2> sets the screen to be 80 columns wide
2847 hp2397a|hp2397|hewlett packard 2397A color terminal, 
2848         is2=\E&w6f80X, 
2849         use=memhp, use=hp+labels, use=hp+color, 
2850
2851 #  HP 700/44 Setup parameters:  
2852 # Terminal Mode         HP-PCterm
2853 # Inhibit Auto Wrap     NO
2854 # Status Line           Host Writable
2855 # PC Character Set      YES
2856 # Twenty-Five Line Mode YES
2857 # XON/XOFF              @128 or 64 (sc)
2858 # Keycode Mode          NO   or YES (sc)
2859 # Backspace Key         BS or BS/DEL
2860 #
2861 # <is2>         sets pcterm; autowrap; 25 lines; pc char set; prog DEL key; 
2862 # \E\\? does not turn off keycode mode
2863 # <smsc>        sets alternate start/stop; keycode on
2864 hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode, 
2865         am, eo, xenl, xon, 
2866         cols#80, lines#25, 
2867         acsc=k\277l\332m\300j\331n\305w\302q\304u\264t\303v\301x\263, 
2868         bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H, 
2869         cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C, 
2870         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M, 
2871         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, 
2872         ind=^J, 
2873         is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\, 
2874         kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, 
2875         kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~, 
2876         kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, 
2877         kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~, 
2878         kpp=\E[5~, rmam=\E[?7l, 
2879         rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m, 
2880         rmul=\E[m, sgr0=\E[m, smam=\E[?7h, 
2881         smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m, 
2882         smul=\E[4m, xoffc=g, xonc=e, 
2883 #
2884 # (hp2392: copied <rmir> here from hpex -- esr)
2885 hp2392|239x series, 
2886         cols#80, 
2887         cbt=\Ei, cup=\E&a%p1%dy%p2%dC, kf1=\Ep\r, kf2=\Eq\r, 
2888         kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, 
2889         kf8=\Ew\r, khome=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV, 
2890         rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY, 
2891         use=hpsub, 
2892
2893 hpsub|hp terminals -- capability subset, 
2894         am, da, db, mir, xhp, xon, 
2895         lines#24, 
2896         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC, 
2897         cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, 
2898         ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, 
2899         is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB, 
2900         kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@, 
2901         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, 
2902
2903 # hpex:
2904 #       May be used for most 24 x 80 hp terminals,
2905 # but has no padding added, so may allow runover in some terminals at high 
2906 # baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and 
2907 # hp98x5 terminal emulators or hp98x6 consoles.  
2908 #       Adds xy-cursor addressing, vertical cursor addressing, home, 
2909 # last line, and underline capabilities.
2910 #
2911 # (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
2912 # moved <rmir> here from hpsub -- esr)
2913 hpex|hp extended capabilites, 
2914         cr=^M, cud1=^J, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=^J, kbs=^H, 
2915         kcub1=^H, kcud1=^J, nel=^M^J, rmir=\ER, rmul=\E&d@, smir=\EQ, 
2916         smul=\E&dD, vpa=\E&a%p1%dY, 
2917         use=hpsub, 
2918
2919 # From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
2920 hp2|hpex2|hewlett-packard extended capabilities newer version, 
2921         am, da, db, mir, xhp, 
2922         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, xmc#0, 
2923         bel=^G, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB, 
2924         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, 
2925         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, 
2926         il1=\EL, ind=^J, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, 
2927         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM, 
2928         ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, 
2929         kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ, 
2930         kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET, 
2931         krmir=\ER, ktbc=\E3, meml=\El, memu=\Em, 
2932         pfkey=\E&f%p1%dk%p2%l%dL%p2%s, 
2933         pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s, 
2934         pfx=\E&f2a%p1%dk%p2%l%dL%p2%s, 
2935         pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A, 
2936         rmln=\E&j@, rmso=\E&d@, rmul=\E&d@, 
2937         sgr=\E&d%?%p7%t%'s'%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%'@'%+%c%?%p9%t%'\016'%c%e%'\017'%c%;, 
2938         sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smln=\E&jB, smso=\E&dB, 
2939         smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
2940
2941 # HP 236 console
2942 # From: <ddavis@ic.berkeley.edu>
2943 hp236|hp236 internal terminal emulator, 
2944         am, 
2945         cols#80, lines#24, 
2946         clear=\EF, cnorm=\EDE, cub1=^H, 
2947         cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\EDB, 
2948         dch1=\EJ, dl1=\EH, el=\EK, ich1=\EI, il1=\EG, rmso=\ECI, 
2949         sgr0=\ECI, smso=\EBI, 
2950
2951 # This works on a hp300 console running Utah 4.3 BSD
2952 # From: Craig Leres <leres@okeeffe.berkeley.edu>
2953 hp300h|HP Catseye console, 
2954         am, da, db, mir, xhp, 
2955         cols#128, lines#51, lm#0, xmc#0, 
2956         bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB, 
2957         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, 
2958         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, 
2959         if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, kbs=^H, 
2960         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh, 
2961         rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, 
2962         smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, tbc=\E3, 
2963         vpa=\E&a%p1%dY, 
2964 # From: Greg Couch <gregc@ernie.berkeley.edu>
2965 hp9837|hp98720|hp98721|HP 9000/300 workstations, 
2966         am, da, db, mir, xhp, 
2967         cols#128, it#8, lines#46, lm#0, 
2968         bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB, 
2969         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, 
2970         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, 
2971         il1=\EL, ind=^J, is2=\E&v0m1b0i&j@, kbs=^H, kcub1=\ED, 
2972         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM, 
2973         ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, knp=\EU, 
2974         kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S, rmul=\E&d@, 
2975         sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S, smul=\E&dD, 
2976         tbc=\E3, vpa=\E&a%p1%dY, 
2977 # HP 9845 desktop computer from BRL
2978 # (hp9845: removed unknown capability :gu: -- esr)
2979 hp9845|HP 9845, 
2980         am, da, db, eo, mir, xhp, 
2981         cols#80, lines#21, 
2982         clear=\EH\EJ, cuf1=\EC, cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, 
2983         dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, 
2984         if=/usr/share/tabset/std, il1=\EL, rmir=\ER, rmso=\E&d@, 
2985         smir=\EQ, smso=\E&dB, 
2986 # From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
2987 # (hp98550: replaced /usr/share/tabset/9837 with std because <it#8>,<hts=\E1>;
2988 # added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
2989 hp98550|hp98550a|HP 9000 Series 300 color console, 
2990         am, da, db, mir, xhp, 
2991         cols#128, it#8, lines#49, lm#0, 
2992         acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR, 
2993         clear=\EH\EJ, cnorm=\E*dQ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, 
2994         cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH, 
2995         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, 
2996         if=/usr/share/tabset/std, il1=\EL, ind=^J, invis=\E&ds, 
2997         kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
2998         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep, 
2999         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, 
3000         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF, 
3001         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dJ, 
3002         rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, 
3003         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smso=\E&dJ, 
3004         smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, 
3005 # From: Victor Duchovni <vic@fine.princeton.edu>
3006 # (hp700-wy: removed obsolete ":nl=^J:";
3007 # replaced /usr/share/tabset/hp700-wy with std because <it#8>,<hts=\E1> -- esr)
3008 hp700-wy|HP700/41 emulating wyse30, 
3009         am, bw, mir, msgr, 
3010         cols#80, it#8, lines#24, xmc#1, 
3011         cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^V, cuf1=^L, 
3012         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3013         dl1=\ER, ed=\EY, el=\ET$<10/>, home=^^, ht=^I, hts=\E1, 
3014         if=/usr/share/tabset/stdcrt, il1=\EE$<0.7*/>, 
3015         is1=\E~"\EC\Er\E(\EG0\003\E`9\E`1, kbs=\177, kcbt=\EI, 
3016         kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, ked=\EY, 
3017         kel=\ET, khome=^^, khts=\EI, kich1=\Eq, krmir=\Er, ll=^^^K, 
3018         ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>, 
3019         sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>, 
3020         smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c, 
3021 # (hp70092: added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
3022 hp70092|hp70092a|hp70092A|HP 700/92, 
3023         am, da, db, xhp, 
3024         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, 
3025         acsc=, bel=^G, blink=\E&dA, bold=\E&dB, cbt=\Ei, 
3026         clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC, 
3027         cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH, 
3028         dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, 
3029         kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC, 
3030         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep, 
3031         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, 
3032         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF, 
3033         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dB, 
3034         ri=\ET, rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, 
3035         rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smacs=^N, smir=\EQ, 
3036         smkx=\E&s1A, smln=\E&jB, smso=\E&dJ, smul=\E&dD, tbc=\E3, 
3037         vpa=\E&a%p1%dY, 
3038
3039 bobcat|sbobcat|HP 9000 model 300 console, 
3040         am, da, db, mir, xhp, 
3041         cols#128, it#8, lines#47, xmc#0, 
3042         cbt=\Ei, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC, 
3043         cup=\E&a%dy%dC$<6/>, cuu1=\EA, dch1=\EP, dl1=\EM$<10*/>, 
3044         ed=\EJ, el=\EK, hpa=\E&a%dC$<6/>, ht=^I, il1=\EL$<10*/>, 
3045         ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, 
3046         khome=\Eh, nel=^M^J, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, 
3047         rmul=\E&d@, sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&dB, 
3048         smul=\E&dD, vpa=\E&a%dY$<6/>, 
3049 gator-t|HP 9000 model 237 emulating extra-tall AAA, 
3050         lines#94, use=gator, 
3051 gator|HP 9000 model 237 emulating AAA, 
3052         bw, km, mir, ul, 
3053         cols#128, it#8, lines#47, 
3054         bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, 
3055         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, 
3056         dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>, 
3057         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%d`, 
3058         ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@, il=\E[%p1%dL$<1*/>, 
3059         il1=\E[L, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, 
3060         rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m, 
3061         rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m, 
3062 gator-52|HP 9000 model 237 emulating VT52, 
3063         cols#128, lines#47, use=vt52, 
3064 gator-52t|HP 9000 model 237 emulating extra-tall VT52, 
3065         lines#94, use=gator-52, 
3066
3067 #### Honeywell-Bull
3068 #
3069 # From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
3070 #
3071
3072 # Honeywell Bull terminal.  Its cursor and function keys send single
3073 # control characters and it has standout/underline glitch.  Most programs
3074 # do not like these features/bugs.  Visual bell is realized by flashing the
3075 # "keyboard locked" LED.
3076 dku7003-dumb|Honeywell Bull DKU 7003 dumb mode, 
3077         cols#80, lines#25, 
3078         clear=^]^_, cr=^M, cub1=^Y, cud1=^K, cuf1=^X, 
3079         cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, ed=^_, el=\E[K, 
3080         flash=\E[2h\E[2l, home=^], ht=^I, ind=^J, kbs=^H, kcub1=^Y, 
3081         kcud1=^K, kcuf1=^X, kcuu1=^Z, khome=^], nel=^M^J, 
3082 dku7003|Honeywell Bull DKU 7003 all features described, 
3083         msgr, 
3084         xmc#1, 
3085         blink=\E[5m, bold=\E[7m, dim=\E[2m, rev=\E[7m, rmso=\E[m, 
3086         rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m, 
3087         use=dku7003-dumb, 
3088
3089 #### Lear-Siegler (adm)
3090 #
3091 # These guys are long since out of the terminals business, but
3092 # in 1995 many current terminals still have an adm type as one of their
3093 # emulations (usually their stupidest, and usually labeled adm3, though
3094 # these `adm3' emulations normally have adm3a+ capabilities).
3095 #
3096 # WARNING: Some early ADM terminals (including the ADM3 and ADM5) are 
3097 # reputed to have had the weird `feature' that sending them a ^G would trigger
3098 # a diagnostic dump to screen if one of the more obscure RS-232 pins
3099 # (variously reported as 22 or as `Ring Indicator') was being held high during
3100 # receipt of the ^G.  If you have a real ADM and think you've run into this,
3101 # check it out with a breakout box and tell us if this rumor is correct!
3102 # A quick fix might be to drop back to a cheesy 4-wire cable.
3103 #
3104
3105 adm1a|adm1|lsi adm1a, 
3106         am, 
3107         cols#80, lines#24, 
3108         bel=^G, clear=\E;$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3109         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^, 
3110         ind=^J, 
3111 adm2|lsi adm2, 
3112         am, 
3113         cols#80, lines#24, 
3114         bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3115         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3116         dl1=\ER, ed=\EY, el=\ET, home=^^, ich1=\EQ, il1=\EE, ind=^J, 
3117         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, 
3118 # (adm3: removed obsolete ":ma=^K^P:" -- esr)
3119 adm3|lsi adm3, 
3120         am, 
3121         cols#80, lines#24, 
3122         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, ind=^J, 
3123 # The following ADM-3A switch settings are assumed for normal operation:
3124 #       SPACE           U/L_DISP        CLR_SCRN        24_LINE
3125 #       CUR_CTL         LC_EN           AUTO_NL         FDX
3126 # Other switches may be set for operator convenience or communication
3127 # requirements.  I recommend
3128 #       DISABLE_KB_LOCK LOCAL_OFF       103             202_OFF
3129 #       ETX_OFF         EOT_OFF
3130 # Most of these terminals required an option ROM to support lower case display.
3131 # Open the case and look at the motherboard; if you see an open 24-pin DIP
3132 # socket, you may be out of luck.
3133 #
3134 # (adm3a: some capabilities merged in from BRl entry -- esr)
3135 adm3a|lsi adm3a, 
3136         am, 
3137         cols#80, lines#24, 
3138         bel=^G, clear=\032$<1/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3139         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^, 
3140         ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rs1=^N, 
3141 adm3a+|adm3a plus, 
3142         kbs=^H, use=adm3a, 
3143 # (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
3144 adm5|lsi adm5, 
3145         xmc#1, 
3146         bel=^G, cr=^M, cud1=^J, ed=\EY, el=\ET, kbs=^H, khome=^^, 
3147         rmso=\EG, smso=\EG, 
3148         use=adm3a+, 
3149 # A lot of terminals other than adm11s use these.  Wherever you see
3150 # use=adm+sgr with some of its capabilities disabled, try the
3151 # disabled ones.  They may well work but not have been documented or
3152 # expressed in the using entry.  We'd like to cook up an <sgr> but the
3153 # <rmacs>/<smacs> sequences of the using entries vary too much.
3154 adm+sgr|adm style highlight capabilities, 
3155         invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0, sgr0=\EG0, 
3156         smso=\EG4, smul=\EG8, 
3157 # LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
3158 # Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
3159 # <khome> from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  <clear> could also
3160 # be ^Z, according to his entry.
3161 # (adm11: <smul>=\EG4 was obviously erroneous because it also said
3162 # <rev>=\EG4.  Looking at other ADMs confirms this -- esr)
3163 adm11|LSI ADM-11, 
3164         am, hs, 
3165         cols#80, lines#24, 
3166         bel=^G, blink=\EG2, clear=\E*, cr=^M, cub1=^H, cud1=^J, 
3167         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
3168         dsl=\Eh, ed=\EY, el=\ET, fsl=\E(\r, home=^^, ht=^I, kbs=^H, 
3169         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf2=^AA\r, 
3170         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, 
3171         kf8=^AG\r, khome=^^, nel=^M^J, tsl=\EF\E), 
3172         use=adm+sgr, 
3173 # From: Andrew Scott Beals <bandy@lll-crg.ARPA>
3174 # Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
3175 # (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
3176 # <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
3177 # via BRL.  That entry asserted <xmc#1>, but I've left that out because 
3178 # neither earlier nor later ADMSs have it -- esr)
3179 adm12|lsi adm12, 
3180         am, mir, 
3181         cols#80, it#8, lines#24, 
3182         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3183         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3184         dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE, 
3185         is2=\E0        \E1        \E1        \E1        \E1        \E1        \E1        \E1        \E1, 
3186         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r, 
3187         kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r, 
3188         kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, smir=\Eq, tbc=\E0, 
3189         use=adm+sgr, 
3190 # (adm20: removed obsolete ":kn#7:" -- esr)
3191 adm20|lear siegler adm20, 
3192         am, 
3193         cols#80, it#8, lines#24, 
3194         bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cuf1=^L, 
3195         cup=\E=%i%p2%{31}%+%c%p1%{31}%+%c, cuu1=^K, dch1=\EW, 
3196         dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, ich1=\EQ, il1=\EE, 
3197         kf1=^A, kf2=^B, kf3=^W, kf4=^D, kf5=^E, kf6=^X, kf7=^Z, rmso=\E(, 
3198         sgr0=\E(, smso=\E), 
3199 adm21|lear siegler adm21, 
3200         xmc#1, 
3201         bel=^G, cr=^M, cud1=^J, dch1=\EW, dl1=30*\ER, ed=\EY, el=\ET, 
3202         ich1=\EQ, il1=30*\EE, ind=^J, invis@, kbs=^H, kcub1=^H, 
3203         kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, 
3204         use=adm+sgr, use=adm3a, 
3205 # (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
3206 # removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
3207 # removed bogus-looking \200 from before <cup>. -- esr)
3208 adm22|lsi adm22, 
3209         am, 
3210         cols#80, lines#24, 
3211         bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3212         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3213         dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE, 
3214         is2=\E%\014\014\014\016\003\200\003\002\003\002\200\200\200\200\200\200\200\200\200\200\200, 
3215         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, 
3216         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, 
3217         kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5, 
3218         lf6=F6, lf7=F7, rmso=\E(, sgr0=\E(, smso=\E), 
3219 # ADM 31 DIP Switches
3220 #
3221 # This information comes from two versions of the manual for the
3222 # Lear-Siegler ADM 31.
3223 #
3224 # Main board:
3225 #                  rear of case
3226 #   +-||||-------------------------------------+
3227 #   + S1S2                              ||S    +
3228 #   +                                   ||3    +
3229 #   +                                          +
3230 #   +                                ||S       +
3231 #   +                                ||4       +
3232 #   +                                          +
3233 #   +                                          +
3234 #   +                                          +
3235 #   +                                          +
3236 #   +                                          +
3237 # +-+                                          +-+
3238 # +                                              +
3239 # +                               S5 S6 S7       +   
3240 # +                               == == ==       +
3241 # +----------------------------------------------+
3242 #            front of case (keyboard)
3243 #
3244 #  S1 - Data Rate - Modem
3245 #  S2 - Data Rate - Printer
3246 # ------------------------
3247 # Data Rate   Setting
3248 # -------------------
3249 # 50          0 0 0 0
3250 # 75          1 0 0 0
3251 # 110         0 1 0 0
3252 # 134.5       1 1 0 0
3253 # 150         0 0 1 0
3254 # 300         1 0 1 0
3255 # 600         0 1 1 0
3256 # 1200        1 1 1 0
3257 # 1800        0 0 0 1
3258 # 2000        1 0 0 1
3259 # 2400        0 1 0 1
3260 # 3600        1 1 0 1
3261 # 4800        0 0 1 1
3262 # 7200        1 0 1 1
3263 # 9600        0 1 1 1
3264 # x           1 1 1 1
3265 #
3266 # S3 - Interface/Printer/Attributes
3267 # ---------------------------------
3268 # Printer Busy Control
3269 # sw1   sw2   sw3
3270 # ---------------
3271 # off   off   off   Busy not active, CD disabled
3272 # off   off   on    Busy not active, CD enabled
3273 # off   on    off   Busy active on J5-20, CD disabled
3274 # on    off   off   Busy active on J5-19, CD disabled - Factory Set.
3275 # on    off   on    Busy active on J5-19, CD enabled
3276 #
3277 # sw4   Used in conjuction with S4 for comm interface control - Fact 0
3278 #
3279 # sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
3280 #
3281 # sw6   ON enables printer BUSY active LOW - Factory Setting
3282 #       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
3283 #
3284 # sw7   ON - steady cursor - Factory Setting
3285 #       OFF - blinking cursor
3286 #
3287 # sw8   ON causes selected attribute character to be displayed
3288 #       OFF causes SPACE to be displayed instead - Factory Setting
3289 #
3290 # S4 - Interface
3291 # --------------
3292 # Modem Interface
3293 # S3    S4    S4    S4    S4
3294 # sw4   sw1   sw2   sw3   sw4
3295 # ---------------------------
3296 # OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
3297 #                               Current Loop disabled - Factory Setting
3298 # ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
3299 #                               disabled
3300 # OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
3301 #                               Current Loop Disabled
3302 #
3303 # sw5   ON disables dot stretching mode - Factory Setting
3304 #       OFF enables dot stretching mode
3305 # sw6   ON enables blanking function
3306 #       OFF enables underline function - Factory Setting
3307 # sw7   ON causes NULLS to be displayed as NULLS
3308 #       OFF causes NULLS to be displayed as SPACES - Factory Setting
3309 #
3310 # S5 - Word Structure
3311 # -------------------
3312 # sw1   ON enables BREAK key - Factory Setting
3313 #       OFF disables BREAK key
3314 # sw2   ON selects 50Hz monitor refresh rate
3315 #       OFF selects 60Hz monitor refresh rate - Factory Setting
3316 #
3317 # Modem Port Selection
3318 # sw3   sw4   sw5
3319 # ---------------
3320 # ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
3321 # OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
3322 # ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
3323 # OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
3324 # ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
3325 # OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
3326 # ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
3327 # OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
3328 #
3329 # sw6   ON  sends bit 8 a 1 (mark)
3330 #       OFF sends bit 8 as 0 (space) - Factory Setting
3331 # sw7   ON  selects Block Mode
3332 #       OFF selects Conversation Mode - Factory Setting
3333 # sw8   ON  selects Full Duplex operation
3334 #       OFF selects Half Duplex operation - Factory Setting
3335 #
3336 # S6 - Printer
3337 # ------------
3338 # sw1, sw2, sw6, sw7   Reserved - Factory 0
3339 #
3340 # Printer Port Selection
3341 # same as Modem above, bit 8 (when 8 DATA bits) is always = 0
3342 #
3343 # sw8   ON   enables Printer Port
3344 #       OFF disables Printer Port - Factory Setting
3345 #
3346 # S7 - Polling Address
3347 # --------------------
3348 # sw1-7 Establish ASCII character which designates terminal polling address
3349 #       ON  = logic 0
3350 #       OFF = logic 1 - Factory Setting
3351 # sw8   ON   enables Polling Option
3352 #       OFF disables Polling Option - Factory Setting
3353 #
3354 #
3355 # On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
3356 #
3357 # This adm31 entry uses underline as the standout mode.
3358 # If the adm31 gives you trouble with standout mode, check the DIP switch in
3359 # position 6, bank @c11, 25% from back end of the circuit board.  Should be
3360 # OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
3361 # (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
3362 adm31|lsi adm31 with sw6 set for underline mode, 
3363         am, mir, 
3364         cols#80, lines#24, 
3365         bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3366         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3367         dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, ind=^J, is2=\Eu\E0, 
3368         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r, 
3369         kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r, 
3370         kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, rmso=\EG0, 
3371         rmul=\EG0, sgr0=\EG0, smir=\Eq, smso=\EG1, smul=\EG1, 
3372 adm31-old|o31|old adm31, 
3373         rmul@, smso=\EG4, smul@, use=adm31, 
3374 # LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
3375 adm36|LSI ADM36, 
3376         if=/usr/lib/tabset/vt100, 
3377         is2=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l, use=vt100, 
3378 # (adm42: removed obsolete ":ma=^K^P:" -- esr)
3379 adm42|lsi adm42, 
3380         am, 
3381         cols#80, lines#24, 
3382         bel=^G, cbt=\EI, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3383         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
3384         cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ht=^I, 
3385         il1=\EE$<270>, ind=^J, invis@, ip=$<6*>, kcub1=^H, kcud1=^J, 
3386         kcuf1=^L, kcuu1=^K, khome=^^, pad=\177, rmir=\Er, rmul@, 
3387         smir=\Eq, smul@, 
3388         use=adm+sgr, 
3389 # The following termcap for the Lear Siegler ADM-42 leaves the 
3390 # "system line" at the bottom of the screen blank (for those who 
3391 # find it distracting otherwise)
3392 adm42-ns|lsi adm-42 with no system line, 
3393         cbt=\EI\EF \011, clear=\E;\EF \011, 
3394         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<6>\EF \011, 
3395         dch1=\EW\EF \011, dl1=\ER\EF \011, ed=\EY\EF \011, 
3396         el=\ET\EF \011, il1=\EE\EF \011, rmir=\Er\EF \011, 
3397         smir=\Eq\EF \011, 
3398         use=adm42, 
3399 # ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
3400 # The insert mode of this terminal is commented out because it's broken for our
3401 # purposes in that it will shift the position of every character on the page,
3402 # not just the cursor line!
3403 # From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
3404 adm1178|1178|lsi adm1178, 
3405         am, 
3406         cols#80, lines#24, xmc#1, 
3407         bel=^G, bold=\E(, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, 
3408         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
3409         cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, 
3410         home=^^, ht=^I, il1=\EE, ind=^J, ip=$<6*/>, kbs=^H, kcub1=^H, 
3411         kcud1=^J, nel=^M^J, pad=\177, rev=\EG4, rmso=\EG0, rmul=\EG0, 
3412         sgr0=\E), smso=\EG4, smul=\EG1, 
3413
3414 #### Prime
3415 #
3416 # Yes, Prime makes terminals.  These entries were posted by Kevin J. Cummings
3417 # <cummings@primerd.Prime.COM> on 14 Dec 1992 and lightly edited by esr.
3418 #
3419
3420 # Standout mode is dim reverse-video.
3421 pt100|pt200|wren|fenix|prime pt100/pt200, 
3422         am, bw, mir, msgr, 
3423         cols#80, it#8, lines#24, 
3424         cbt=\E[Z, clear=\E?, cr=^M, cub=\E[%p1%dD, cub1=^H, 
3425         cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C, 
3426         cup=\E0%p1%'!'%+%c%p2%'!'%+%c, cuu=\E[%p1%dA, cuu1=\EM, 
3427         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[M, ed=\E[J\E[r, 
3428         el=\E[K\E[t, flash=\E$$<200/>\E$P, home=\E$B, ht=^I, 
3429         il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B, 
3430         kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J, rmcup=, 
3431         rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, 
3432         smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q, 
3433         smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m, 
3434 pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode, 
3435         cols#132, 
3436         cup=\E[%i%p1%d;%p2%dH, use=pt100, 
3437 pt250|Prime PT250, 
3438         rmso@, smso@, use=pt100, 
3439 pt250w|Prime PT250 in 132-column mode, 
3440         rmso@, smso@, use=pt100w, 
3441
3442 #### Qume (qvt)
3443 #
3444 #       Qume, Inc.
3445 #       3475-A North 1st Street
3446 #       San Jose CA 95134
3447 #       Vox: (800)-457-4447
3448 #       Fax: (408)-473-1510
3449 #       Net: josed@techsupp.wyse.com (Jose D'Oliveira)
3450 #
3451 # Qume was bought by Wyse, but still (as of early 1995) has its own support
3452 # group and production division.
3453 #
3454 # Discontinued Qume models:
3455 #
3456 # The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
3457 # built to replace them, and a qvt119+ which was a 101+ with available wide
3458 # mode (132 columns).  There was a qvt103 which added vt100/vt131 emulations
3459 # and an ANSI-compatible qvt203 that replaced it.  Qume started producing
3460 # ANSI-compatible terminals with the qvt323 and qvt61.
3461 #
3462 # Current Qume models (as of February 1995):
3463 #
3464 # All current Qume terminals have ANSI-compatible operation modes.
3465 # Qume is still producing the qvt62, which features emulations for other
3466 # popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
3467 # designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
3468 # with many emulations including Wyse370, Wyse 325, etc.  Their newest
3469 # model is the qvt520, which is vt420-compatible.
3470 #
3471 # There are some ancient printing Qume terminals under `Daisy Wheel Printers'
3472
3473 qvt101|qvt108|qume qvt 101 and QVT 108, 
3474         xmc#1, use=qvt101+, 
3475
3476 # This used to have <cvvis=\E.2> but no <cnorm> or <civis>.  The BSD termcap
3477 # file had <cvvis=\EM4 \200\200\200>.  I've done the safe thing and yanked 
3478 # both. The <rev> is from BSD, which also claimed bold=\E( and dim=\E).
3479 # What seems to be going on here is that this entry was designed so that
3480 # the normal highlight is bold and standout is dim plus something else
3481 # (reverse-video maybe?  But then, are there two <rev> sequences?)  
3482 qvt101+|qvt101p|qume qvt 101 PLUS product, 
3483         am, bw, hs, ul, 
3484         cols#80, lines#24, xmc#0, 
3485         bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^J, 
3486         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
3487         dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\EY, el=\ET, 
3488         flash=\Eb$<200>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1, 
3489         ich1=\EQ, il1=\EE, ind=^J, invis@, kbs=^H, kcbt=\EI, kcub1=^H, 
3490         kcud1=^J, kcuf1=^L, kcuu1=^K, kdl1=\ER, ked=\EY, kel=\ET, 
3491         kf1=^A@\r, kf10=^AI\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, 
3492         kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, 
3493         khome=^^, kich1=\EQ, kil1=\EE, mc4=\EA, mc5=\E@, rmso=\E(, 
3494         smso=\E0P\E), tbc=\E3, tsl=\Eg\Ef, 
3495         use=adm+sgr, 
3496 qvt102|qume qvt 102, 
3497         cnorm=\E., use=qvt101, 
3498 # (qvt103: added <rmam>/<smam> based on init string -- esr)
3499 qvt103|qume qvt 103, 
3500         am, xenl, xon, 
3501         cols#80, it#8, lines#24, vt#3, 
3502         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, 
3503         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr, 
3504         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, 
3505         cuf=\E[%p1%dC, cuf1=\E[C$<2>, 
3506         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, 
3507         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I, 
3508         hts=\EH, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, 
3509         kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, 
3510         rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E[?1l\E>, 
3511         rmso=\E[m$<2>, rmul=\E[m$<2>, 
3512         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, 
3513         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m, 
3514         sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=, 
3515         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, 
3516 qvt103-w|qume qvt103 132 cols, 
3517         cols#132, lines#24, 
3518         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103, 
3519 qvt119+|qvt119p|qvt119|qume qvt 119 and 119PLUS terminals, 
3520         am, hs, mir, msgr, 
3521         cols#80, lines#24, xmc#0, 
3522         bel=^G, cbt=\EI, clear=\E*1, cnorm=\E.4, cr=^M, cub1=^H, 
3523         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, 
3524         cuu1=^K, cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, 
3525         el=\Et, flash=\En0$<200>\En1, fsl=^M, home=^^, ht=^I, 
3526         hts=\E1, il1=\EE, ind=^J, is2=\EDF\EC\EG0\Er\E(\E%EX, 
3527         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r, 
3528         kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, 
3529         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
3530         mc4=\EA, mc5=\E@, ri=\EJ, rmir=\Er, smir=\Eq, smul=\EG8, 
3531         tbc=\E3, tsl=\Eg\Ef, 
3532         use=adm+sgr, 
3533 qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines, 
3534         lines#25, use=qvt119+, 
3535 qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode, 
3536         cols#132, 
3537         is2=\EDF\EC\EG0\Er\E(\E%\EX\En4, use=qvt119+, 
3538 qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25, 
3539         lines#25, use=qvt119+, 
3540 qvt203|qvt203+|qume qvt 203 Plus, 
3541         dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>, 
3542         ip=$<7>, kf0=\E[29~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~, 
3543         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, 
3544         kf9=\E[28~, rmir=\E[4l, smir=\E[4h, 
3545         use=qvt103, 
3546 qvt203-w|qvt203-w-am|qume qvt 203 PLUS in 132 cols (w/advanced video), 
3547         cols#132, lines#24, 
3548         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt203, 
3549 #
3550 #       Since a command is present for enabling 25 data lines,
3551 #       a specific terminfo entry may be generated for the 203.
3552 #       If one is desired for the QVT 119 PLUS then 25 lines must
3553 #       be selected in the status line (setup line 9).
3554 #
3555 qvt203-25|QVT 203 PLUS with 25 by 80 column mode, 
3556         cols#80, lines#25, 
3557         is2=\E[=40h\E[?3l, use=qvt203, 
3558 qvt203-25-w|QVT 203 PLUS with 25 by 132 columns, 
3559         cols#132, lines#25, 
3560         rs2=\E[?3h\E[=40h, use=qvt203, 
3561
3562 #### Televideo (tvi)
3563 #
3564 #       TeleVideo
3565 #       550 East Brokaw Road
3566 #       PO Box 49048    95161
3567 #       San Jose CA 95112
3568 #       Vox: (408)-954-8333
3569 #       Fax: (408)-954-0623
3570 #
3571 #
3572 # There are some tvi terminals that require incredible amounts of padding and
3573 # some that don't.  I'm assuming tvi912 and tvi920 are the old slow ones, and
3574 # tvi912b, tvi912c, tvi920b, tvi920c are the new ones that don't need padding.
3575 #
3576 # All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
3577 # Televideo terminals are ANSI and PC-ANSI compatible.
3578
3579 tvi803|televideo 803, 
3580         clear=\E*$<10>, use=tvi950, 
3581
3582 # Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
3583 # Switch settings are:
3584
3585 # S1  1 2 3 4
3586 #     D D D D  9600
3587 #     D D D U    50
3588 #     D D U D    75
3589 #     D D U U   110
3590 #     D U D D   135
3591 #     D U D U   150
3592 #     D U U D   300
3593 #     D U U U   600
3594 #     U D D D  1200
3595 #     U D D U  1800
3596 #     U D U D  2400
3597 #     U D U U  3600
3598 #     U U D D  4800
3599 #     U U D U  7200
3600 #     U U U D  9600
3601 #     U U U U 19200
3602
3603 # S1  5 6 7 8
3604 #     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
3605 #     U D X U  7N2
3606 #     U U D D  7O1
3607 #     U U D U  7O2
3608 #     U U U D  7E1
3609 #     U U U U  7E2
3610 #     D D X D  8N1
3611 #     D D X U  8N2
3612 #     D U D D  8O1
3613 #     D U U U  8E2
3614
3615 # S1  9  Autowrap
3616 #     U  on
3617 #     D  off
3618
3619 # S1 10  CR/LF
3620 #     U  do CR/LF when CR received
3621 #     D  do CR when CR received
3622
3623 # S2  1  Mode
3624 #     U  block
3625 #     D  conversational
3626
3627 # S2  2  Duplex
3628 #     U  half
3629 #     D  full
3630
3631 # S2  3  Hertz
3632 #     U  50
3633 #     D  60
3634
3635 # S2  4  Edit mode
3636 #     U  local
3637 #     D  duplex
3638
3639 # S2  5  Cursor type
3640 #     U  underline
3641 #     D  block
3642
3643 # S2  6  Cursor down key
3644 #     U  send ^J
3645 #     D  send ^V
3646
3647 # S2  7  Screen colour
3648 #     U  green on black
3649 #     D  black on green
3650
3651 # S2  8  DSR status (pin 6)
3652 #     U  disconnected
3653 #     D  connected
3654
3655 # S2  9  DCD status (pin 8)
3656 #     U  disconnected
3657 #     D  duplex
3658
3659 # S2 10  DTR status (pin 20)
3660 #     U  disconnected
3661 #     D  duplex
3662 # (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added <khome>, <cub1>, <cud1>,
3663 # <ind>, <hpa>, <vpa>, <am>, <msgr> from SCO entry -- esr)
3664 tvi910|televideo model 910, 
3665         am, msgr, 
3666         cols#80, it#8, lines#24, xmc#1, 
3667         bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3668         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET, 
3669         home=\E=\001\001, hpa=\E]%p1%{32}%+%c, ht=^I, 
3670         if=/usr/share/tabset/stdcrt, ind=^J, invis@, kbs=^H, 
3671         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r, kf1=^A@\r, 
3672         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, 
3673         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, 
3674         vpa=\E[%p1%{32}%+%c, use=adm+sgr, 
3675 # From: Alan R. Rogers <rogers%albany@csnet-relay>
3676 # as subsequently hacked over by someone at SCO
3677 # (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
3678 #
3679 # Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
3680 #
3681 # S1  1 2 3 4:
3682 #     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
3683 #     D U D D   135     D U D U   150     D U U D   300     D U U U   600
3684 #     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
3685 #     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
3686 #
3687 # S1  5 6 7 8:
3688 #     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
3689 #     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
3690 #     D U D D  8O1     D U U U  8E2
3691
3692 # S1  9  Autowrap            (U = on, D = off)
3693 # S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
3694 # S2  1  Mode                (U = block, D = conversational)
3695 # S2  2  Duplex              (U =  half, D = full)
3696 # S2  3  Hertz               (U = 50, D = 60)
3697 # S2  4  Edit mode           (U = local, D = duplex)
3698 # S2  5  Cursor type         (U = underline, D = block)
3699 # S2  6  Cursor down key     (U = send ^J, D = send ^V)
3700 # S2  7  Screen colour       (U = green on black, D = black on green)
3701 # S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
3702 # S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
3703 # S2 10  DTR status (pin 20) (U = disconnected, D = connected)
3704 #
3705 tvi910+|televideo 910+, 
3706         dch1=\EW, dl1=\ER$<33*>, home=^^, ich1=\EQ, il1=\EE$<33*>, 
3707         kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, 
3708         kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, 
3709         ll=\E=7\s, 
3710         use=tvi910, 
3711
3712 # (tvi912: removed obsolete ":ma=^K^P^L :", added  <flash> and
3713 # <khome> from BRL entry -- esr)
3714 tvi912|tvi914|tvi920|old televideo 912/914/920, 
3715         am, msgr, 
3716         cols#80, it#8, lines#24, xmc#1, 
3717         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L, 
3718         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW, 
3719         dl1=\ER$<33*>, ed=\Ey, el=\ET, flash=\Eb$<50/>\Ed, home=^^, 
3720         ht=^I, hts=\E1, ich1=\EQ, if=/usr/share/tabset/stdcrt, 
3721         il1=\EE$<33*>, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, 
3722         kcuu1=^K, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, 
3723         kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, 
3724         kf9=^AH\r, khome=^^, rmso=\Ek, rmul=\Em, smso=\Ej, smul=\El, 
3725         tbc=\E3, 
3726 # the 912 has a <funct> key that's like shift: <funct>8 xmits "^A8\r".
3727 # The 920 has this plus real function keys that xmit different things.
3728 # Terminfo makes you use the funct key on the 912 but the real keys on the 920.
3729 tvi912c|tvi912b|new televideo 912, 
3730         dl1=\ER$<5*>, il1=\EE$<5*>, use=tvi912, 
3731 # set to page 1 when entering curses application (\E-17 )
3732 # reset to page 0 when exiting curses application (\E-07 )
3733 tvi912-2p|tvi920-2p|tvi-2p|televideo w/2 pages, 
3734         rmcup=\E-07\s, smcup=\E-17\s, use=tvi912, 
3735 # We got some new tvi912c terminals that act really weird on the regular 
3736 # termcap, so one of our gurus worked this up. Seems that cursor 
3737 # addressing is broken.
3738 tvi912cc|tvi912 at cowell college, 
3739         cup@, use=tvi912c, 
3740
3741 # Here are the switch settings for the tvi920c:
3742 #
3743 # S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
3744 # 2: 9600       3: 4800         4: 2400         5: 1200
3745 # 6:  600       7:  300         8:  150         9:   75
3746 # 10: 110
3747 #
3748 # S2 UART/Terminal options:
3749 #               Up                      Down
3750 # 1:            Not used                Not allowed
3751 # 2:    Alternate character set   Standard character set
3752 # 3:        Full duplex             Half duplex
3753 # 4:        50 Hz refresh           60 Hz refresh
3754 # 5:          No parity              Send parity
3755 # 6:         2 stop bits             1 stop bit
3756 # 7:         8 data bits             7 data bits
3757 # 8:            Not used                Not allowed on Rev E or lower
3758 # 9:         Even parity             Odd parity
3759 # 10:       Steady cursor           Blinking cursor
3760 #       (On Rev E or lower, use W25 instead of switch 10.)
3761
3762 # S5 UART/Terminal options:
3763 #               Open                    Closed
3764 # 1:    P3-6 Not connected      DSR received on P3-6
3765 # 2:    P3-8 Not connected      DCD received on P3-8
3766 #
3767 # 3 Open, 4 Open:               P3-20 Not connected
3768 # 3 Open, 4 Closed:     DTR on when terminal is on
3769 # 3 Closed, 4 Open:     DTR is connected to RTS
3770 # 3 Closed, 4 Closed:   Not allowed
3771 #
3772 # 5 Closed:     HDX printer (hardware control) Rev. K with extension port off,
3773 #               all data transmitted out of the modem port (P3) will also be
3774 #               transmitted out of the printer port (P4).
3775 #
3776 # 6 Open, 7 Open:               Not allowed
3777 # 6 Open, 7 Closed:     20ma current loop input
3778 # 6 Closed, 7 Open:     RS232 input
3779 # 6 Closed, 7 Closed:   Not allowed
3780 #
3781 # Jumper options:
3782 # If the jumper is installed, the effect will occur (the next time the terminal
3783 # is switched on).
3784 #
3785 # S4/W31:       Enables automatic LF upon receipt of CR from
3786 #               remote or keyboard.
3787 # S4/W32:       Enables transmission of EOT at the end of Send.  If not 
3788 #               installed, a carriage return is sent.
3789 # S4/W33:       Disables automatic carriage return in column 80.
3790 # S4/W34:       Selects Page Print Mode as initial condition.  If not 
3791 #               installed, Extension Mode is selected.
3792 #
3793 tvi920b|tvi920c|new televideo 920, 
3794         dl1=\ER$<5*>, il1=\EE$<5*>, kf0=^AI\r, kf1=^A@\r, 
3795         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, 
3796         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, 
3797         use=tvi912, 
3798
3799 # Televideo 921 and variants
3800 # From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
3801 # (tvi921: removed :ko=bt: before translation, I see no backtab cap;
3802 # also added empty <acsc> to suppress tic warning -- esr)
3803 tvi921|televideo model 921 with sysline same as page & real vi function, 
3804         am, hs, xenl, xhp, 
3805         cols#80, lines#24, xmc#0, 
3806         acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L, 
3807         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K, 
3808         cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY, 
3809         el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ, 
3810         if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, invis@, 
3811         is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, kcub1=^H, 
3812         kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER$<1*/>, 
3813         ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, nel=^M^J, rmacs=\E%, 
3814         rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, 
3815         use=adm+sgr, 
3816 # without the beeper
3817 # (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
3818 # also added empty <acsc> to suppress tic warning -- esr)
3819 tvi92B|televideo model 921 with sysline same as page & real vi function, 
3820         am, hs, xenl, xhp, 
3821         cols#80, lines#24, xmc#0, 
3822         acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L, 
3823         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K, 
3824         cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY, 
3825         el=\ET, flash=\Eb$<200/>\Ed, fsl=\Eg, home=^^, ht=^I, 
3826         ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, 
3827         invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, 
3828         kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, 
3829         kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, 
3830         nel=^M^J, rmacs=\E%, rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, 
3831         use=adm+sgr, 
3832 # (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
3833 tvi92D|tvi92B with DTR instead of XON/XOFF & better padding, 
3834         dl1=\ER$<2*/>, il1=\EE$<2*/>, 
3835         is2=\El\E"\EF1\E.3\016\EA\E<, kdl1=\ER$<2*/>, 
3836         kil1=\EE$<2*/>, 
3837         use=tvi92B, 
3838
3839 # (tvi924: This used to have <dsl=\Es0>, <fsl=\031>.  I put the new strings
3840 # in from a BSD termcap file because it looks like they do something the
3841 # old ones skip -- esr)
3842 tvi924|televideo tvi924, 
3843         am, bw, hs, in, mir, msgr, xenl, xon, 
3844         cols#80, it#8, lines#24, wsl#80, xmc#0, 
3845         bel=^G, blink=\EG2, cbt=\EI, civis=\E.0, clear=\E*0, 
3846         cnorm=\E.3, cr=^M, csr=\E_%p1%{32}%+%c%p2%{32}%+%c, 
3847         cub1=^H, cud1=^V, cuf1=^L, 
3848         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\E.1, 
3849         dch1=\EW, dl1=\ER, dsl=\Es0\Ef\031, ed=\Ey, el=\Et, 
3850         flash=\Eb$<200>\Ed, fsl=\031\Es1, home=^^, ht=^I, hts=\E1, 
3851         ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, 
3852         invis@, is1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0, 
3853         kbs=^H, kclr=\E*0, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, 
3854         kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A@\r, kf1=^AA\r, 
3855         kf10=^AJ\r, kf11=^AK\r, kf12=^AL\r, kf13=^AM\r, kf14=^AN\r, 
3856         kf15=^AO\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, kf5=^AE\r, 
3857         kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^, 
3858         kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4, 
3859         lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, 
3860         pfkey=\E|%p1%'1'%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef, use=adm+sgr, 
3861
3862 # TVI925 DIP switches.  In each of these, D = Down and U = Up,
3863 #
3864 # Here are the settings for the external (baud) switches (S1):
3865 #
3866 #             Position          Baud
3867 # 7     8       9       10              [Printer]
3868 # 1     2       3       4               [Main RS232]
3869 # -----------------------------------------------------
3870 # D     D       D       D       9600
3871 # D     D       D       U         50
3872 # D     D       U       D         75
3873 # D     D       U       U        110
3874 # D     U       D       D        135
3875 # D     U       D       U        150
3876 # D     U       U       D        300
3877 # D     U       U       U        600
3878 # U     D       D       D       1200
3879 # U     D       D       U       1800
3880 # U     D       U       D       2400
3881 # U     D       U       U       3600
3882 # U     U       D       D       4800
3883 # U     U       D       U       7200
3884 # U     U       U       D       9600
3885 # U     U       U       U       19200
3886
3887
3888 # Settings for word length and stop-bits (S1)
3889 #
3890 #  Position     Description
3891 # 5     6       
3892 # ---------------------------
3893 # U     -       7-bit word
3894 # D     -       8-bit word
3895 # -     U       2 stop bits
3896 # -     D       1 stop bit
3897
3898
3899 # S2 (external) settings
3900 #
3901 # Position      Up      Dn      Description
3902 # --------------------------------------------
3903 # 1             X               Local edit
3904 #                       X       Duplex edit (transmit editing keys)
3905 # --------------------------------------------
3906 # 2             X               912/920 emulation
3907 #                       X       925
3908 # --------------------------------------------
3909 # 3                     X
3910 # 4                     X       No parity
3911 # 5                     X       
3912 # --------------------------------------------
3913 # 3                     X
3914 # 4                     X       Odd parity
3915 # 5             X       
3916 # --------------------------------------------
3917 # 3                     X
3918 # 4             X               Even parity
3919 # 5             X       
3920 # --------------------------------------------
3921 # 3             X       
3922 # 4                     X       Mark parity
3923 # 5             X               
3924 # --------------------------------------------
3925 # 3             X
3926 # 4             X               Space parity
3927 # 5             X
3928 # --------------------------------------------
3929 # 6             X               White on black display
3930 #                       X       Black on white display
3931 # --------------------------------------------
3932 # 7                     X       Half Duplex
3933 # 8                     X
3934 # --------------------------------------------
3935 # 7             X               Full Duplex
3936 # 8                     X       
3937 # --------------------------------------------
3938 # 7                     X       Block mode
3939 # 8             X       
3940 # --------------------------------------------
3941 # 9                     X       50 Hz
3942 #               X               60 Hz
3943 # --------------------------------------------
3944 # 10            X               CR/LF (Auto LF)
3945 #                       X       CR only
3946
3947 # S3 (internal switch) settings:
3948
3949 # Position      Up      Dn      Description
3950 # --------------------------------------------
3951 # 1             X               Keyclick off 
3952 #                       X       Keyclick on
3953 # --------------------------------------------
3954 # 2                     X       English
3955 # 3                     X       
3956 # --------------------------------------------
3957 # 2                     X       German
3958 # 3             X               
3959 # --------------------------------------------
3960 # 2             X               French
3961 # 3                     X       
3962 # --------------------------------------------
3963 # 2             X               Spanish
3964 # 3             X       
3965 # --------------------------------------------
3966 # 4                     X       Blinking block cursor
3967 # 5                     X       
3968 # --------------------------------------------
3969 # 4                     X       Blinking underline cursor
3970 # 5             X               
3971 # --------------------------------------------
3972 # 4             X               Steady block cursor
3973 # 5                     X       
3974 # --------------------------------------------
3975 # 4             X               Steady underline cursor
3976 # 5             X       
3977 # --------------------------------------------
3978 # 6             X               Screen blanking timer (ON)
3979 #                       X       Screen blanking timer (OFF)
3980 # --------------------------------------------
3981 # 7             X               Page attributes
3982 #                       X       Line attributes
3983 # --------------------------------------------
3984 # 8             X               DCD disconnected
3985 #                       X       DCD connected
3986 # --------------------------------------------
3987 # 9             X               DSR disconnected
3988 #                       X       DSR connected
3989 # --------------------------------------------
3990 # 10            X               DTR Disconnected
3991 #                       X       DTR connected
3992 # --------------------------------------------
3993 #
3994 # (tvi925: BSD has <clear=\E*>.  I got <is2> and <ri> from there -- esr)
3995 tvi925|televideo 925, 
3996         am, bw, hs, ul, 
3997         cols#80, lines#24, xmc#1, 
3998         bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^V, 
3999         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, 
4000         cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eh, ed=\EY, el=\ET, 
4001         flash=\Eb$<200>\Ed, fsl=^M\Eg, home=^^, ht=^I, hts=\E1, 
4002         ich1=\EQ, il1=\EE, ind=^J, invis@, is2=\El\E", kbs=^H, kclr=^Z, 
4003         kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, 
4004         ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, 
4005         kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, 
4006         kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, ri=\Ej, tbc=\E3, 
4007         tsl=\Eh\Ef, 
4008         use=adm+sgr, 
4009 # TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
4010 # to avoid "magic cookie" standout glitch:
4011 tvi925-hi|TeleVideo Model 925 with half intensity standout mode, 
4012         xmc@, 
4013         kbs=^H, kcub1=^H, kcud1=^J, rmso=\E(, smso=\E), use=tvi925, 
4014
4015 # From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
4016 # Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82