]> ncurses.scripts.mit.edu Git - ncurses.git/blob - misc/terminfo.src
ncurses 5.9 - patch 20120428
[ncurses.git] / misc / terminfo.src
1 ######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
2 #
3 # This version of terminfo.src is distributed with ncurses and is maintained
4 # by Thomas E. Dickey (TD).
5 #
6 # Report bugs and new terminal descriptions to
7 #       bug-ncurses@gnu.org
8 #
9 #       $Revision: 1.440 $
10 #       $Date: 2012/04/28 21:37:23 $
11 #
12 # The original header is preserved below for reference.  It is noted that there
13 # is a "newer" version which differs in some cosmetic details (but actually
14 # stopped updates several years ago); we have decided to not change the header
15 # unless there is also a change in content.
16 #
17 # To further muddy the waters, it is noted that changes to this file as part of
18 # maintenance of ncurses (since 1996) are generally conceded to be copyright
19 # under the ncurses MIT-style license.  That was the effect of the agreement
20 # which the principal authors of ncurses made in 1998.  However, since much of
21 # the file itself is of unknown authorship (and the disclaimer below makes it
22 # obvious that Raymond cannot or will not convey rights over those parts),
23 # there is no explicit copyright notice on the file itself.
24 #
25 # It would also be a nuisance to split the file into unknown/known authorship
26 # and move pieces as they are maintained, since many of the maintenance changes
27 # have been small corrections to Raymond's translations to/from termcap format,
28 # correcting the data but not the accompanying annotations.
29 #
30 # In any case, note that almost half of this file is not data but annotations
31 # which reflect creative effort.  Furthermore, the structure of entries to
32 # reuse common chunks also is creative (and subject to copyright).  Finally,
33 # some portions of the data are derivative work under a compatible MIT-style
34 # license from xterm.
35 #
36 #------------------------------------------------------------------------------
37 #       Version 10.2.1
38 #       terminfo syntax
39 #
40 #       Eric S. Raymond         (current maintainer)
41 #       John Kunze, Berkeley
42 #       Craig Leres, Berkeley
43 #
44 # Please e-mail changes to terminfo@thyrsus.com; the old termcap@berkeley.edu
45 # address is no longer valid.  The latest version can always be found at
46 # <http://www.tuxedo.org/terminfo>.
47 #
48 # PURPOSE OF THIS FILE:
49 #
50 # This file describes the capabilities of various character-cell terminals,
51 # as needed by software such as screen-oriented editors.
52 #
53 # Other terminfo and termcap files exist, supported by various OS vendors
54 # or as relics of various older versions of UNIX.  This one is the longest
55 # and most comprehensive one in existence.  It subsumes not only the entirety
56 # of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
57 # termcap file, but also large numbers of vendor-maintained termcap and
58 # terminfo entries more complete and carefully tested than those in historical
59 # termcap/terminfo versions.
60 #
61 # Pointers to related resources (including the ncurses distribution) may
62 # be found at <http://www.tuxedo.org/terminfo>.
63 #
64 # INTERNATIONALIZATION:
65 #
66 # This file uses only the US-ASCII character set (no ISO8859 characters).
67 #
68 # This file assumes a US-ASCII character set. If you need to fix this, start
69 # by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
70 # for your character set.  \E(A and \E)A enables the British character set
71 # with the pound sign at position 2/3.
72 #
73 # In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
74 # C1 characters are considered the first-byte set of the Japanese encodings,
75 # so \E)0 should be avoided in <enacs> and initialization strings.
76 #
77 # FILE FORMAT:
78 #
79 # The version you are looking at may be in any of three formats: master
80 # (terminfo with OT capabilities), stock terminfo, or termcap.  You can tell
81 # which by the format given in the header above.
82 #
83 # The master format is accepted and generated by the terminfo tools in the
84 # ncurses suite; it differs from stock (System V-compatible) terminfo only
85 # in that it admits a group of capabilities (prefixed `OT') equivalent to
86 # various obsolete termcap capabilities.  You can, thus, convert from master
87 # to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
88 # you have ncurses `tic -I' is nicer (among other things, it automatically
89 # outputs entries in a canonical form).
90 #
91 # The termcap version is generated automatically from the master version
92 # using tic -C.  This filtering leaves in the OT capabilities under their
93 # original termcap names.  All translated entries fit within the 1023-byte
94 # string-table limit of archaic termcap libraries except where explicitly
95 # noted below.  Note that the termcap translation assumes that your termcap
96 # library can handle multiple tc capabilities in an entry. 4.4BSD has this
97 # capability.  Older versions of GNU termcap, through 1.3, do not.
98 #
99 # For details on these formats, see terminfo(5) in the ncurses distribution,
100 # and termcap(5) in the 4.4BSD Unix Programmer's Manual.  Be aware that 4.4BSD
101 # curses has been declared obsolete by the caretakers of the 4.4BSD sources
102 # as of June 1995; they are encouraging everyone to migrate to ncurses.
103 #
104 # Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
105 # no entry in this file has embedded comments.  This is so source translation
106 # to termcap only has to carry over leading comments.  Also, no name field
107 # contains embedded whitespace (such whitespace confuses rdist).
108 #
109 # Further note: older versions of this file were often installed with an editor
110 # script (reorder) that moved the most common terminal types to the front of
111 # the file.  This should no longer be necessary, as the file is now ordered
112 # roughly by type frequency with ANSI/VT100 and other common types up front.
113 #
114 # Some information has been merged in from terminfo files distributed by
115 # USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below).  Much information
116 # comes from vendors who maintain official terminfos for their hardware
117 # (notably DEC and Wyse).
118 #
119 # A detailed change history is included at the end of this file.
120 #
121 # FILE ORGANIZATION:
122 #
123 # Comments in this file begin with # - they cannot appear in the middle
124 # of a terminfo/termcap entry (this feature had to be sacrificed in order
125 # to allow standard terminfo and termcap syntax to be generated cleanly from
126 # the master format).  Individual capabilities are commented out by
127 # placing a period between the colon and the capability name.
128 #
129 # The file is divided up into major sections (headed by lines beginning with
130 # the string "########") and minor sections (beginning with "####"); do
131 #
132 #       grep "^####" <file> | more
133 #
134 # to see a listing of section headings.  The intent of the divisions is
135 # (a) to make it easier to find things, and (b) to order the database so
136 # that important and frequently-encountered terminal types are near the
137 # front (so that you'll get reasonable search efficiency from a linear
138 # search of the termcap form even if you don't use reorder).  Minor sections
139 # usually correspond to manufacturers or standard terminal classes.
140 # Parenthesized words following manufacturer names are type prefixes or
141 # product line names used by that manufacturers.
142 #
143 # HOW TO READ THE ENTRIES:
144 #
145 # The first name in an entry is the canonical name for the model or
146 # type, last entry is a verbose description.  Others are mnemonic synonyms for
147 # the terminal.
148 #
149 # Terminal names look like <manufacturer> <model> - <modes/options>
150 # The part to the left of the dash, if a dash is present, describes the
151 # particular hardware of the terminal.  The part to the right may be used
152 # for flags indicating special ROMs, extra memory, particular terminal modes,
153 # or user preferences.
154 #
155 # All names should be in lower case, for consistency in typing.
156 #
157 # The following are conventionally used suffixes:
158 #       -2p     Has two pages of memory.  Likewise 4p, 8p, etc.
159 #       -am     Enable auto-margin.
160 #       -m      Monochrome.  Suppress color support
161 #       -mc     Magic-cookie.  Some terminals (notably older Wyses) can
162 #               only support one attribute without magic-cookie lossage.
163 #               Their base entry is usually paired with another that
164 #               uses magic cookies to support multiple attributes.
165 #       -nam    No auto-margin - suppress <am> capability
166 #       -nl     No labels - suppress soft labels
167 #       -ns     No status line - suppress status line
168 #       -rv     Terminal in reverse video mode (black on white)
169 #       -s      Enable status line.
170 #       -vb     Use visible bell (<flash>) rather than <bel>.
171 #       -w      Wide - in 132 column mode.
172 # If a name has multiple suffixes and one is a line height, that one should
173 # go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.
174 #
175 # Entries with embedded plus signs are designed to be included through use/tc
176 # capabilities, not used as standalone entries.
177 #
178 # To avoid search clashes, some older all-numeric names for terminals have
179 # been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
180 # All primary names of terminals now have alphanumeric prefixes.
181 #
182 # Comments marked "esr" are mostly results of applying the termcap-compiler
183 # code packaged with ncurses and contemplating the resulting error messages.
184 # In many cases, these indicated obvious fixes to syntax garbled by the
185 # composers.  In a few cases, I was able to deduce corrected forms for garbled
186 # capabilities by looking at context.  All the information in the original
187 # entries is preserved in the comments.
188 #
189 # In the comments, terminfo capability names are bracketed with <> (angle
190 # brackets).  Termcap capability names are bracketed with :: (colons).
191 #
192 # INTERPRETATION OF USER CAPABILITIES
193 #
194 # The System V Release 4 and XPG4 terminfo format defines ten string
195 # capabilities for use by applications, <u0>...<u9>.   In this file, we use
196 # certain of these capabilities to describe functions which are not covered
197 # by terminfo.  The mapping is as follows:
198 #
199 #       u9      terminal enquire string (equiv. to ANSI/ECMA-48 DA)
200 #       u8      terminal answerback description
201 #       u7      cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
202 #       u6      cursor position report (equiv. to ANSI/ECMA-48 CPR)
203 #
204 # The terminal enquire string <u9> should elicit an answerback response
205 # from the terminal.  Common values for <u9> will be ^E (on older ASCII
206 # terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
207 #
208 # The cursor position request (<u7>) string should elicit a cursor position
209 # report.  A typical value (for VT100 terminals) is \E[6n.
210 #
211 # The terminal answerback description (u8) must consist of an expected
212 # answerback string.  The string may contain the following scanf(3)-like
213 # escapes:
214 #
215 #       %c      Accept any character
216 #       %[...]  Accept any number of characters in the given set
217 #
218 # The cursor position report (<u6>) string must contain two scanf(3)-style
219 # %d format elements.  The first of these must correspond to the Y coordinate
220 # and the second to the %d.  If the string contains the sequence %i, it is
221 # taken as an instruction to decrement each value after reading it (this is
222 # the inverse sense from the cup string).  The typical CPR value is
223 # \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
224 #
225 # These capabilities are used by tack(1m), the terminfo action checker
226 # (distributed with ncurses 5.0).
227 #
228 # TABSET FILES
229 #
230 # All the entries in this file have been edited to assume that the tabset
231 # files directory is /usr/share/tabset, in conformance with the File Hierarchy
232 # Standard for Linux and open-source BSD systems.  Some vendors (notably Sun)
233 # use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.
234 #
235 # No curses package we know of actually uses these files.  If their location
236 # is an issue, you will have to hand-patch the file locations before compiling
237 # this file.
238 #
239 # REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
240 #
241 # As the ANSI/ECMA-48 standard and variants take firmer hold, and as
242 # character-cell terminals are increasingly replaced by X displays, much of
243 # this file is becoming a historical document (this is part of the reason for
244 # the new organization, which puts ANSI types, xterm, Unix consoles,
245 # and vt100 up front in confidence that this will catch 95% of new hardware).
246 #
247 # For the terminal types still alive, I'd like to have manufacturer's
248 # contact data (Internet address and/or snail-mail + phone).
249 #
250 # I'm also interested in enriching the comments so that the latter portions of
251 # the file do in fact become a potted history of VDT technology as seen by
252 # UNIX hackers.  Ideally, I'd like the headers for each manufacturer to
253 # include its live/dead/out-of-the-business status, and for as many
254 # terminal types as possible to be tagged with information like years
255 # of heaviest use, popularity, and interesting features.
256 #
257 # I'm especially interested in identifying the obscure entries listed under
258 # `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
259 # wisdom about them gets lost.  If you know a lot about obscure old terminals,
260 # please go to the terminfo resource page, grab the UFO file (ufo.ti), and
261 # eyeball it for things you can identify and describe.
262 #
263 # If you have been around long enough to contribute, please read the file
264 # with this in mind and send me your annotations.
265 #
266 # COPYRIGHTS AND OTHER DELUSIONS
267 #
268 # The BSD ancestor of this file had a standard Regents of the University of
269 # California copyright with dates from 1980 to 1993.
270 #
271 # Some information has been merged in from a terminfo file SCO distributes.
272 # It has an obnoxious boilerplate copyright which I'm ignoring because they
273 # took so much of the content from the ancestral BSD versions of this file
274 # and didn't attribute it, thereby violating the BSD Regents' copyright.
275 #
276 # Not that anyone should care.  However many valid functions copyrights may
277 # serve, putting one on a termcap/terminfo file with hundreds of anonymous
278 # contributors makes about as much sense as copyrighting a wall-full of
279 # graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
280 #
281 # This file deliberately has no copyright.  It belongs to no one and everyone.
282 # If you claim you own it, you will merely succeed in looking like a fool.
283 # Use it as you like.  Use it at your own risk.  Copy and redistribute freely.
284 # There are no guarantees anywhere.  Svaha!
285 #
286
287 ######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
288 #
289 # This section describes terminal classes and brands that are still
290 # quite common.
291 #
292
293 #### Specials
294 #
295 # Special "terminals".  These are used to label tty lines when you don't
296 # know what kind of terminal is on it.  The characteristics of an unknown
297 # terminal are the lowest common denominator - they look about like a ti 700.
298 #
299
300 dumb|80-column dumb tty,
301         am,
302         cols#80,
303         bel=^G, cr=^M, cud1=^J, ind=^J,
304 unknown|unknown terminal type,
305         gn, use=dumb,
306 lpr|printer|line printer,
307         OTbs, hc, os,
308         cols#132, lines#66,
309         bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ind=^J,
310 glasstty|classic glass tty interpreting ASCII control characters,
311         OTbs, am,
312         cols#80,
313         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ht=^I, kcub1=^H,
314         kcud1=^J, nel=^M^J, .kbs=^H,
315
316 vanilla|dumb tty,
317         OTbs,
318         bel=^G, cr=^M, cud1=^J, ind=^J,
319
320 # This is almost the same as "dumb", but with no prespecified width.
321 # DEL and ^C are hardcoded to act as kill characters.
322 # ^D acts as a line break (just like newline).
323 # It also interprets
324 #      \033];xxx\007 
325 # for compatibility with xterm -TD
326 9term|Plan9 terminal emulator for X,
327         am,
328         OTnl=^J, bel=^G, cud1=^J,
329
330 #### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
331 #
332 # See the end-of-file comment for more on these.
333 #
334
335 # ANSI capabilities are broken up into pieces, so that a terminal
336 # implementing some ANSI subset can use many of them.
337 ansi+local1,
338         cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
339 ansi+local,
340         cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
341         cuu=\E[%p1%dA, use=ansi+local1,
342 ansi+tabs,
343         cbt=\E[Z, ht=^I, hts=\EH, tbc=\E[3g,
344 ansi+inittabs,
345         it#8, use=ansi+tabs,
346 ansi+erase,
347         clear=\E[H\E[J, ed=\E[J, el=\E[K,
348 ansi+rca,
349         hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
350 ansi+cup,
351         cup=\E[%i%p1%d;%p2%dH, home=\E[H,
352 ansi+rep,
353         rep=%p1%c\E[%p2%{1}%-%db,
354 ansi+idl1,
355         dl1=\E[M, il1=\E[L,
356 ansi+idl,
357         dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1,
358 ansi+idc,
359         dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@, rmir=\E6, smir=\E6,
360 ansi+arrows,
361         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
362         khome=\E[H,
363 ansi+sgr|ansi graphic renditions,
364         blink=\E[5m, invis=\E[8m, rev=\E[7m,
365         sgr=\E[0%?%p3%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
366         sgr0=\E[0m,
367 ansi+sgrso|ansi standout only,
368         rmso=\E[m, smso=\E[7m,
369 ansi+sgrul|ansi underline only,
370         rmul=\E[m, smul=\E[4m,
371 ansi+sgrbold|ansi graphic renditions; assuming terminal has bold; not dim,
372         bold=\E[1m,
373         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
374         use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
375 ansi+sgrdim|ansi graphic renditions; assuming terminal has dim; not bold,
376         dim=\E[2m,
377         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;%;%?%p7%t8;%;m,
378         use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
379 ansi+csr|ansi scroll-region plus cursor save & restore,
380         csr=\E[%i%p1%d;%p2%dr, rc=\E8, sc=\E7,
381
382 # The normal (ANSI) flavor of "media copy" building block asserts that
383 # characters sent to the printer do not echo on the screen. DEC terminals
384 # can also be put into autoprinter mode, where each line is sent to the
385 # printer as you move off that line, e.g., by a carriage return.
386 ansi+pp|ansi printer port,
387         mc5i,
388         mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
389 dec+pp|DEC autoprinter mode,
390         mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
391
392 # The IBM PC alternate character set.  Plug this into any Intel console entry.
393 # We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
394 # ROM graphics for control characters such as the diamond, up- and down-arrow.
395 # This works with the System V, Linux, and BSDI consoles.  It's a safe bet this
396 # will work with any Intel console, they all seem to have inherited \E[11m
397 # from the ANSI.SYS de-facto standard.
398 klone+acs|alternate character set for ansi.sys displays,
399         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
400         rmacs=\E[10m, smacs=\E[11m,
401
402 # Highlight controls corresponding to the ANSI.SYS standard.  Most
403 # console drivers for Intel boxes obey these.  Makes the same assumption
404 # about \E[11m as klone+acs.  True ANSI/ECMA-48 would have <rmso=\E[27m>,
405 # <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.
406 klone+sgr|attribute control for ansi.sys displays,
407         blink=\E[5m, bold=\E[1m, rev=\E[7m, rmpch=\E[10m,
408         rmso=\E[m, rmul=\E[m,
409         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p9%t;11%;m,
410         sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
411         use=klone+acs,
412
413 # Most Intel boxes do not treat "invis" (invisible) text.
414 klone+sgr8|attribute control for ansi.sys displays,
415         invis=\E[8m,
416         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,
417         use=klone+sgr,
418
419 # Highlight controls corresponding to the ANSI.SYS standard.  *All*
420 # console drivers for Intel boxes obey these.  Does not assume \E[11m will
421 # work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
422 # diamond and arrow characters under curses.
423 klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m),
424         blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, rmso=\E[m,
425         rmul=\E[m,
426         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,
427         sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
428         use=klone+acs,
429
430 # KOI8-R (RFC1489) acs (alternate character set)
431 # From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
432 klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset,
433         acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i\220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t\206u\207v\210w\211x\201y\230z\231{\267|\274}L~\225,
434         rmacs=\E[10m, smacs=\E[11m,
435
436 # ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
437 # between SVr4/XPG4's color numbers and ANSI.SYS attributes.  Here are longer
438 # but equivalent strings that don't rely on that coincidence:
439 # setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
440 # setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
441 # The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
442 # They match a subset of ECMA-48.
443 klone+color|color control for ansi.sys and ISO6429-compatible displays,
444         colors#8, ncv#3, pairs#64,
445         op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
446
447 # This is better than klone+color, it doesn't assume white-on-black as the
448 # default color pair,  but many `ANSI' terminals don't grok the <op> cap.
449 ecma+color|color control for ECMA-48-compatible terminals,
450         AX,
451         colors#8, ncv#3, pairs#64,
452         op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
453
454 # Attribute control for ECMA-48-compatible terminals
455 ecma+sgr|attribute capabilities for true ECMA-48 terminals,
456         rmso=\E[27m, rmul=\E[24m, use=klone+sgr8,
457
458 # For comparison, here are all the capabilities implied by the Intel
459 # Binary Compatibility Standard (level 2) that fit within terminfo.
460 # For more detail on this rather pathetic standard, see the comments
461 # near the end of this file.
462 ibcs2|Intel Binary Compatibility Standard prescriptions,
463         cbt=\E[Z, clear=\Ec, cub=\E[%p1%dD, cub1=\E[1D,
464         cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
465         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[1A,
466         dch=\E[%p1%dP, dispc=\E=%p1%dg, ech=\E[%p1%dX,
467         hpa=\E[%i%p1%dG, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
468         indn=\E[%p1%dS, rc=\E7, rin=\E[%p1%dT, rmam=\E[?7l, sc=\E7,
469         smam=\E[?7h, tbc=\E[g, vpa=\E[%i%p1%dd,
470
471 #### ANSI/ECMA-48 terminals and terminal emulators
472 #
473 # See near the end of this file for details on ANSI conformance.
474 # Don't mess with these entries!  Lots of other entries depend on them!
475 #
476 # This section lists entries in a least-capable to most-capable order.
477 # if you're in doubt about what `ANSI' matches yours, try them in that
478 # order and back off from the first that breaks.
479
480 # ansi-mr is for ANSI terminals with ONLY relative cursor addressing
481 # and more than one page of memory.  It uses local motions instead of
482 # direct cursor addressing, and makes almost no assumptions. It does
483 # assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.
484 ansi-mr|mem rel cup ansi,
485         am, xon,
486         cols#80, lines#24, use=vanilla, use=ansi+erase,
487         use=ansi+local1,
488
489 # ansi-mini is a bare minimum ANSI terminal. This should work on anything, but
490 # beware of screen size problems and memory relative cursor addressing.
491 ansi-mini|any ansi terminal with pessimistic assumptions,
492         am, xon,
493         cols#80, lines#24, use=vanilla, use=ansi+cup,
494         use=ansi+erase,
495
496 # ansi-mtabs adds relative addressing and minimal tab support
497 ansi-mtabs|any ansi terminal with pessimistic assumptions,
498         it#8,
499         ht=^I, use=ansi-mini, use=ansi+local1,
500
501 # ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
502 #
503 # The following is an entry for the full ANSI 3.64 (1977).  It lacks
504 # padding, but most terminals using the standard are "fast" enough
505 # not to require any -- even at 9600 bps.  If you encounter problems,
506 # try including the padding specifications.
507 #
508 # Note: the :as: and :ae: specifications are not implemented here, for
509 # the available termcap documentation does not make clear WHICH alternate
510 # character set to specify.  ANSI 3.64 seems to make allowances for several.
511 # Please make the appropriate adjustments to fit your needs -- that is
512 # if you will be using alternate character sets.
513 #
514 # There are very few terminals running the full ANSI 3.64 standard,
515 # so I could only test this entry on one verified terminal (Visual 102).
516 # I would appreciate the results on other terminals sent to me.
517 #
518 # Please report comments, changes, and problems to:
519 #
520 # U.S. MAIL:   Hugh Hansard
521 #              Box: 22830
522 #              Emory University
523 #              Atlanta, GA. 30322.
524 #
525 # USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
526 #
527 # (Added vt100 <rc>,<sc> to quiet a tic warning --esr)
528 ansi77|ansi 3.64 standard 1977 version,
529         OTbs, am, mir,
530         cols#80, it#8, lines#24,
531         bel=^G, clear=\E[;H\E[2J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
532         cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
533         cuu1=\E[A, dch1=\E[P, dl1=\E[M$<5*/>, ed=\E[J, el=\E[K,
534         home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED, kbs=^H,
535         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
536         kf2=\EOR, kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM,
537         rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, smir=\E[4h,
538         smso=\E[7m, smul=\E[4m,
539
540 # Procomm and some other ANSI emulations don't recognize all of the ANSI-
541 # standard capabilities.  This entry deletes <cuu>, <cuf>, <cud>, <cub>, and
542 # <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>,
543 # <cuf1>, <cud1> and <cub1>.  Also deleted <ich> and <ich1>, as QModem up to
544 # 5.03 doesn't recognize these.  Finally, we delete <rep> and <ri>, which seem
545 # to confuse many emulators.  On the other hand, we can count on these programs
546 # doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured
547 # <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
548 # ANSI.SYS influence.
549 # From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
550 pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode),
551         OTbs, am, mir, msgr,
552         cols#80, it#8, lines#24,
553         bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=\E[D,
554         cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
555         dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
556         hts=\EH, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
557         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, tbc=\E[3g,
558         use=klone+sgr-dumb,
559 pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode),
560         lines#25, use=pcansi-m,
561 pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode),
562         lines#33, use=pcansi-m,
563 pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode),
564         lines#43, use=pcansi-m,
565 # The color versions.  All PC emulators do color...
566 pcansi|ibm-pc terminal programs claiming to be ansi,
567         use=klone+color, use=pcansi-m,
568 pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines,
569         lines#25, use=pcansi,
570 pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines,
571         lines#33, use=pcansi,
572 pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines,
573         lines#43, use=pcansi,
574
575 # ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
576 # If you want pound signs rather than dollars, replace `B' with `A'
577 # in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
578 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
579 ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes,
580         mc5i,
581         cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
582         cuu=\E[%p1%dA, dch=\E[%p1%dP, dl=\E[%p1%dM,
583         ech=\E[%p1%dX, el1=\E[1K, hpa=\E[%i%p1%dG, ht=\E[I,
584         ich=\E[%p1%d@, il=\E[%p1%dL, indn=\E[%p1%dS, kbs=^H,
585         kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
586         kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S,
587         rep=%p1%c\E[%p2%{1}%-%db, rin=\E[%p1%dT, s0ds=\E(B,
588         s1ds=\E)B, s2ds=\E*B, s3ds=\E+B, tbc=\E[3g,
589         vpa=\E[%i%p1%dd, use=pcansi-m,
590
591 ansi+enq|ncurses extension for ANSI ENQ,
592         u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c,
593         u9=\E[c,
594
595 # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
596 # standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
597 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
598 ansi|ansi/pc-term compatible with color,
599         use=ansi+enq, use=ecma+color, use=klone+sgr8, use=ansi-m,
600
601 # ansi-generic is a vanilla ANSI terminal. This is assumed to implement
602 # all the normal ANSI stuff with no extensions. It assumes
603 # insert/delete line/char is there, so it won't work with
604 # vt100 clones. It assumes video attributes for bold, blink,
605 # underline, and reverse, which won't matter much if the terminal
606 # can't do some of those. Padding is assumed to be zero, which
607 # shouldn't hurt since xon/xoff is assumed.
608 ansi-generic|generic ansi standard terminal,
609         am, xon,
610         cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup,
611         use=ansi+rca, use=ansi+erase, use=ansi+tabs,
612         use=ansi+local, use=ansi+idc, use=ansi+idl, use=ansi+rep,
613         use=ansi+sgrbold, use=ansi+arrows,
614
615 #### DOS ANSI.SYS variants
616 #
617 # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
618 # documentation (except for the keyboard key reassignment feature, which
619 # doesn't fit the <pfkey> model well).  The klone+acs sequences were valid
620 # though undocumented.  The <pfkey> capability is untested but should work for
621 # keys F1-F10 (%p1 values outside this range will yield unpredictable results).
622 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
623 ansi.sys-old|ANSI.SYS under PC-DOS 2.1,
624         OTbs, am, mir, msgr, xon,
625         cols#80, lines#25,
626         clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
627         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[k, home=\E[H,
628         is2=\E[m\E[?7h, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
629         khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s"p, rc=\E[u,
630         rmam=\E[?7l, sc=\E[s, smam=\E[?7h, u6=\E[%i%d;%dR,
631         u7=\E[6n, use=klone+color, use=klone+sgr8,
632
633 # Keypad:       Home=\0G        Up=\0H  PrPag=\0I
634 #               ka1,kh          kcuu1           kpp,ka3
635 #
636 #               Left=\0K        5=\0L           Right=\0M
637 #               kcub1           kb2             kcuf1
638 #
639 #               End=\0O         Down=\0P        NxPag=\0Q
640 #               kc1,kend        kcud1           kc3,knp
641 #
642 #               Ins=\0R         Del=\0S
643 #               kich1           kdch1
644 #
645 # On keyboard with 12 function keys,
646 #       shifted f-keys: F13-F24
647 #       control f-keys: F25-F36
648 #       alt f-keys:     F37-F48
649 # The shift/control/alt keys do not modify each other, but alt overrides both,
650 # and control overrides shift.
651 #
652 # <pfkey> capability for F1-F48 -TD
653 ansi.sys|ANSI.SYS 3.1 and later versions,
654         el=\E[K, ka1=\0G, ka3=\0I, kb2=\0L, kbs=^H, kc1=\0O, kc3=\0Q,
655         kcbt=\0^O, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
656         kdch1=\0S, kend=\0O, kf1=\0;, kf10=\0D, kf11=\0\205,
657         kf12=\0\206, kf13=\0T, kf14=\0U, kf15=\0V, kf16=\0W,
658         kf17=\0X, kf18=\0Y, kf19=\0Z, kf2=\0<, kf20=\0[, kf21=\0\\,
659         kf22=\0], kf23=\0\207, kf24=\0\210, kf25=\0\^, kf26=\0_,
660         kf27=\0`, kf28=\0a, kf29=\0b, kf3=\0=, kf30=\0c, kf31=\0d,
661         kf32=\0e, kf33=\0f, kf34=\0g, kf35=\0\211, kf36=\0\212,
662         kf37=\0h, kf38=\0i, kf39=\0j, kf4=\0>, kf40=\0k, kf41=\0l,
663         kf42=\0m, kf43=\0n, kf44=\0o, kf45=\0p, kf46=\0q,
664         kf47=\0\213, kf48=\0\214, kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B,
665         kf9=\0C, khome=\0G, kich1=\0R, knp=\0Q, kpp=\0I,
666         pfkey=\E[0;%?%p1%{11}%<%t%'\:'%e%?%p1%{13}%<%t%'z'%e%?%p1%{23}%<%t%'G'%e%?%p1%{25}%<%t%'p'%e%?%p1%'#'%<%t%'E'%e%?%p1%'%'%<%t%'f'%e%?%p1%'/'%<%t%'C'%e%{92}%;%;%;%;%;%;%;%p1%+%d;%p2"%s"p,
667         use=ansi.sys-old,
668
669 #
670 # Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
671 # This should only be used when the terminal emulator cannot redefine the keys.
672 # Since redefining keys with ansi.sys also affects PC-DOS programs, the key
673 # definitions must be restored.  If the terminal emulator is quit while in vi
674 # or others using <smkx>/<rmkx>, the keypad will not be defined as per PC-DOS.
675 # The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
676 # (^U and ^D are already defined for tn3270).  The ESC is safe for vi but it
677 # does "beep".  ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
678 # Note that <kcub1> is always BS, because PC-dos can tolerate this change.
679 # Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
680 # Consequently the End keypad key could not be set (it is relatively safe and
681 # actually useful because it sends ^@ O, which beeps and opens a line above).
682 ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi,
683         is2=U2 PC-DOS 3.1 ANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
684         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,
685         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,
686         use=ansi.sys,
687 #
688 # Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
689 nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS,
690         dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
691         is2=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n,
692         use=ansi.sys,
693 #
694 # See ansi.sysk and nansi.sys above.
695 nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
696         dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
697         is2=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
698         use=ansi.sysk,
699
700 #### ANSI console types
701
702 #
703 # Atari ST terminals.
704 # From Guido Flohr <gufl0000@stud.uni-sb.de>.
705 #
706 tw52|tw52-color|Toswin window manager with color,
707         bce,
708         colors#16, pairs#256,
709         oc=\Eb?\Ec0, op=\Eb?\Ec0,
710         setab=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1%{48}%+%c,
711         setaf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1%{48}%+%c,
712         setb=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1%{48}%+%c,
713         setf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1%{48}%+%c,
714         use=tw52-m,
715 tw52-m|Toswin window manager monochrome,
716         ul,
717         ma#999,
718         bold=\Eya, dch1=\Ea, dim=\EyB,
719         is2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, rev=\EyP, rmso=\EzQ,
720         rmul=\EzH, rs2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, sgr0=\Ez_,
721         smso=\EyQ, smul=\EyH, use=at-m,
722 tt52|Atari TT medium and high resolution,
723         lines#30, use=at-color,
724 st52-color|at-color|atari-color|atari_st-color|Atari ST with color,
725         bce,
726         colors#16, pairs#256,
727         is2=\Ev\Eq\Ee\Eb1\Ec0, rs2=\Ev\Eq\Ee\Eb1\Ec0,
728         setab=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}%=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1%{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t\:%e%p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=%t6%e?,
729         setaf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}%=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1%{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t\:%e%p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=%t6%e?,
730         setb=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}%=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1%{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t\:%e%p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=%t6%e?,
731         setf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}%=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1%{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t\:%e%p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=%t6%e?,
732         use=st52,
733 st52|st52-m|at|at-m|atari|atari-m|atari_st|atarist-m|Atari ST,
734         am, eo, mir, npc,
735         cols#80, it#8, lines#24,
736         bel=^G, civis=\Ef, clear=\EE, cnorm=\Ee, cr=^M, cub1=\ED,
737         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
738         cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, el1=\Eo, home=\EH, ht=^I,
739         il1=\EL, ind=^J, is2=\Ev\Eq\Ee, kLFT=\Ed, kRIT=\Ec, kbs=^H,
740         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\177,
741         kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es,
742         kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EQ,
743         kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV, kf8=\EW,
744         kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb, kpp=\Ea,
745         kund=\EK, nel=^M^J, rc=\Ek, rev=\Ep, ri=\EI, rmso=\Eq,
746         rs2=\Ev\Eq\Ee, sc=\Ej, sgr0=\Eq, smso=\Ep,
747 tw100|toswin vt100 window mgr,
748         eo, mir, msgr, xon,
749         colors#8, cols#80, it#8, lines#24, pairs#64, vt#3,
750         acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
751         bel=^G, blink=\E[5m, bold=\E[1m, civis=\Ef,
752         clear=\E[2J\E[H, cnorm=\Ee, cr=^M, csr=\E[%i%p1%d;%p2%dr,
753         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\EB,
754         cuf=\E[%p1%dC, cuf1=\EC, cup=\E[%i%p1%d;%p2%dH,
755         cuu=\E[%p1%dA, cuu1=\EA, dch1=\Ea, dim=\E[2m, dl=\E[%p1%dM,
756         dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
757         hts=\EH, ich=\E[%p1%d@, il1=\EL, ind=^J, is2=\E<\E)0, kbs=^H,
758         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\177,
759         kf1=\EOP, kf10=\EOY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es,
760         kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EOQ,
761         kf20=\Ey, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
762         kf8=\EOW, kf9=\EOX, khlp=\EH, khome=\E\EE, kich1=\EI,
763         knp=\Eb, kpp=\E\Ea, kund=\EK, ll=\E[24H, nel=\EE,
764         oc=\E[30;47m, op=\E[30;47m, rc=\E8, rev=\E[7m, ri=\EM,
765         rmacs=^O, rmcup=\E[?7h, rmir=\Ei, rmkx=\E[?1l\E>,
766         rmso=\E[m, rmul=\E[m,
767         rs1=\E<\E[20l\E[?3;6;9l\E[r\Eq\E(B\017\E)0\E>,
768         sc=\E7,
769         setb=\E[4%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=%t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'%=%t3%e7%;m,
770         setf=\E[3%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=%t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'%=%t3%e7%;m,
771         sgr0=\E[m, smacs=^N, smcup=\E[?7l, smir=\Eh,
772         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
773 # The entries for stv52 and stv52pc probably need a revision.
774 stv52|MiNT virtual console,
775         am, msgr,
776         cols#80, it#8, lines#30,
777         bel=^G, blink=\Er, bold=\EyA, civis=\Ef, clear=\EE,
778         cnorm=\E. \Ee, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
779         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E.",
780         dim=\Em, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
781         ind=\n$<2*/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
782         kcuu1=\EA, kdch1=\177, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq,
783         kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew,
784         kf19=\Ex, kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET,
785         kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE,
786         kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK, nel=\r\n$<2*/>,
787         op=\Eb@\EcO, rev=\Ep, ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_,
788         rmso=\Eq, rmul=\EzH, rs1=\Ez_\Eb@\EcA, sgr0=\Ez_,
789         smcup=\Ev\Ee\Ez_, smso=\Ep, smul=\EyH,
790 stv52pc|MiNT virtual console with PC charset,
791         am, msgr,
792         cols#80, it#8, lines#30,
793         acsc=+\257\,\256-\^.v0\333I\374`\177a\260f\370g\361h\261j\331k\277l\332m\300n\305o\377p-q\304r-s_t+u+v+w+x\263y\363z\362{\343|\366}\234~\371,
794         bel=^G, blink=\Er, bold=\EyA, civis=\Ef, clear=\EE,
795         cnorm=\E. \Ee, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
796         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E.",
797         dim=\Em, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
798         ind=\n$<2*/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
799         kcuu1=\EA, kdch1=\177, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq,
800         kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew,
801         kf19=\Ex, kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET,
802         kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE,
803         kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK, nel=\r\n$<2*/>,
804         rev=\Ep, ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq,
805         rmul=\EzH, rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_,
806         smso=\Ep, smul=\EyH,
807
808 #### Atari ST
809 #
810
811 # From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
812 atari-old|atari st,
813         OTbs, am,
814         cols#80, it#8, lines#25,
815         clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
816         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
817         ed=\EJ, el=\EK, ht=^I, il1=\EL, kcub1=\ED, kcud1=\EB,
818         kcuf1=\EC, kcuu1=\EA, ri=\EI, rmso=\Eq, sgr0=\Eq, smso=\Ep,
819 # UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
820 # From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
821 uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
822         lines#49,
823         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H,
824         use=vt220,
825 # MiNT VT52 emulation. 80 columns, 25 rows.
826 # MiNT is Now TOS, the operating system which comes with all Ataris now
827 # (mainly Atari Falcon). This termcap is for the VT52 emulation you get
828 # under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
829 # From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
830 st52-old|Atari ST with VT52 emulation,
831         am, km,
832         cols#80, lines#25,
833         bel=^G, civis=\Ef, clear=\EH\EJ, cnorm=\Ee, cr=^M, cub1=\ED,
834         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
835         cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
836         ind=^J, ka1=\E#7, ka3=\E#5, kb2=\E#9, kbs=^H, kc1=\E#1,
837         kc3=\E#3, kclr=\E#7, kcub1=\E#K, kcud1=\E#P, kcuf1=\E#M,
838         kcuu1=\E#H, kf0=\E#D, kf1=\E#;, kf2=\E#<, kf3=\E#=, kf4=\E#>,
839         kf5=\E#?, kf6=\E#@, kf7=\E#A, kf8=\E#B, kf9=\E#C, khome=\E#G,
840         kil1=\E#R, kind=\E#2, kri=\E#8, lf0=f10, nel=^M^J, rc=\Ek,
841         ri=\EI, rmcup=, rmso=\Eq, rs1=\Ez_\Eb@\EcA, sc=\Ej, sgr0=\Eq,
842         smcup=\Ee, smso=\Ep,
843
844 #### BeOS
845 #
846 # BeOS entry for Terminal program Seems to be almost ANSI
847 beterm|BeOS Terminal,
848         am, eo, mir, msgr, xenl, xon,
849         colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64,
850         bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
851         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
852         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
853         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
854         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
855         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H,
856         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
857         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
858         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
859         kend=\E[4~, kf1=\E[11~, kf10=\E[20~, kf11=\E[21~,
860         kf12=\E[22~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
861         kf5=\E[15~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~, kf9=\E[19~,
862         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z,
863         nel=^M^J, op=\E[m, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l,
864         rmkx=\E[?4l, rmso=\E[m, rmul=\E[24m, rs1=\Ec, sc=\E7,
865         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
866         setb=\E[%p1%{40}%+%cm, setf=\E[%p1%{30}%+%cm,
867         sgr0=\E[0;10m, smir=\E[4h, smkx=\E[?4h, smso=\E[7m,
868         smul=\E[4m, u6=\E[%i%p1%d;%p2%dR, u7=\E[6n,
869         vpa=\E[%i%p1%dd,
870
871 #### Linux consoles
872 #
873
874 # This entry is good for the 1.2.13 or later version of the Linux console.
875 #
876 # ***************************************************************************
877 # *                                                                         *
878 # *                           WARNING:                                      *
879 # * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
880 # * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
881 # * character. Here are the keymap replacement lines that will set this up: *
882 # *                                                                         *
883 #       keycode  15 = Tab             Tab
884 #               alt     keycode  15 = Meta_Tab
885 #               shift   keycode  15 = F26
886 #       string F26 ="\033[Z"
887 # *                                                                         *
888 # * This has to use a key slot which is unfortunate (any unused one will    *
889 # * do, F26 is the higher-numbered one).  The change ought to be built      *
890 # * into the kernel tables.                                                 *
891 # *                                                                         *
892 # ***************************************************************************
893 #
894 # All linux kernels since 1.2.13 (at least) set the screen size
895 # themselves; this entry assumes that capability.
896 #
897 linux-basic|linux console,
898         am, bce, eo, mir, msgr, xenl, xon,
899         it#8, ncv#18, U8#1,
900         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
901         bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
902         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
903         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
904         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
905         dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
906         el=\E[K, el1=\E[1K, flash=\E[?5h\E[?5l$<200/>, home=\E[H,
907         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
908         il=\E[%p1%dL, il1=\E[L, ind=^J, kb2=\E[G, kbs=\177,
909         kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
910         kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
911         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
912         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
913         kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
914         kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
915         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
916         kspd=^Z, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l,
917         rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R, sc=\E7,
918         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
919         smam=\E[?7h, smir=\E[4h, smul=\E[4m, tbc=\E[3g,
920         vpa=\E[%i%p1%dd, use=vt102+enq, use=klone+sgr,
921         use=ecma+color,
922
923 linux-m|Linux console no color,
924         colors@, pairs@,
925         setab@, setaf@, setb@, setf@, use=linux,
926
927 # The 1.3.x kernels add color-change capabilities; if yours doesn't have this
928 # and it matters, turn off <ccc>.  The %02x escape used to implement this is
929 # not supposedly back-portable to older SV curses (although it has worked fine
930 # on Solaris for several years) and not supported in ncurses versions before
931 # 1.9.9.
932 linux-c-nc|linux console with color-change,
933         ccc,
934         initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
935         oc=\E]R, use=linux-basic,
936 # From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
937 linux-c|linux console 1.3.6+ for older ncurses,
938         ccc,
939         initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%'a'%+%c%e%p1%d%;%p2%{255}%*%{1000}%/%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}%*%{1000}%/%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}%*%{1000}%/%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%;,
940         oc=\E]R, use=linux-basic,
941
942 # The 2.2.x kernels add a private mode that sets the cursor type; use that to
943 # get a block cursor for cvvis.
944 # reported by Frank Heckenbach <frank@g-n-u.de>.
945 linux2.2|linux 2.2.x console,
946         civis=\E[?25l\E[?1c, cnorm=\E[?25h\E[?0c,
947         cvvis=\E[?25h\E[?8c, use=linux-c-nc,
948
949 # Linux 2.6.x has a fix for SI/SO to work with UTF-8 encoding added here:
950 #       http://lkml.indiana.edu/hypermail/linux/kernel/0602.2/0868.html
951 # Using SI/SO has the drawback that it confuses screen.  SCS would work.
952 # However, SCS is buggy (see comment in Debian #515609) -TD
953 # Further, this breaks longstanding workarounds for Linux console's line
954 # drawing (see Debian 665959) -TD
955 linux2.6|linux 2.6.x console,
956         rmacs=^O,
957         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;m%?%p9%t\016%e\017%;,
958         sgr0=\E[m\017, smacs=^N, use=linux2.2,
959
960 # The 3.0 kernel adds support for clearing scrollback buffer (capability E3).
961 linux3.0|linux 3.0 kernels,
962         E3=\E[3;J, use=linux2.6,
963
964 # This is Linux console for ncurses.
965 linux|linux console,
966         use=linux2.2,
967
968 # Subject: linux 2.6.26 vt back_color_erase
969 # Changes to the Linux console driver broke bce model as reported in
970 #       https://bugzilla.novell.com/show_bug.cgi?id=418613
971 # apparently from
972 #       http://lkml.org/lkml/2008/4/26/305
973 #       http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/87f98338f0d636bb/aa96e8b86cee0d1e?lnk=st&q=#aa96e8b86cee0d1e
974 linux2.6.26|linux console w/o bce,
975         bce@, use=linux2.6,
976
977 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
978 linux-nic|linux with ich/ich1 suppressed for non-curses programs,
979         ich@, ich1@, use=linux,
980
981 # This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
982 # acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
983 linux-koi8|linux with koi8 alternate character set,
984         acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i\276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v\211w\210x\201y\230z\231{\267|\274~\224,
985         use=linux, use=klone+koi8acs,
986
987 # Another entry for KOI8-r with Qing Long's acsc.
988 # (which one better complies with the standard?)
989 linux-koi8r|linux with koi8-r alternate character set,
990         use=linux, use=klone+koi8acs,
991
992 # Entry for the latin1 and latin2 fonts
993 linux-lat|linux with latin1 or latin2 alternate character set,
994         acsc=+\020\,\021-\030.^Y0\333`\004a\013f\370g\361h\260i\316j\211k\214l\206m\203n\305o~p\304q\212r\304s_t\207u\215v\301w\302x\205y\363z\362{\343|\330}\234~\376,
995         use=linux,
996
997 # This uses graphics from VT codeset instead of from cp437.
998 # reason: cp437 (aka "straight to font") is not functional under luit.
999 # from: Andrey V Lukyanov <land@long.yar.ru>.
1000 linux-vt|linux console using VT codes for graphics,
1001         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~,
1002         rmacs=\E(K, rmpch@, sgr@, sgr0=\E[0m\E(K\017, smacs=\E(0,
1003         smpch@, use=linux,
1004
1005 # This is based on the Linux console (relies on the console to perform some
1006 # of the functionality), but does not recognize as many control sequences.
1007 # The program comes bundled with an old (circa 1998) copy of the Linux
1008 # console terminfo.  It recognizes some non-ANSI/VT100 sequences such as
1009 #       \E*     move cursor to home, as as \E[H
1010 #       \E,X    same as \E(X
1011 #       \EE     move cursor to beginning of row
1012 #       \E[y,xf same as \E[y,xH
1013 #
1014 # Note: The status-line support is buggy (dsl does not work).
1015 kon|kon2|jfbterm|Kanji ON Linux console,
1016         ccc@, hs,
1017         civis@, cnorm@, cvvis@, dsl=\E[?H, flash@, fsl=\E[?F, initc@,
1018         initp@, kcbt@, oc@, op=\E[37;40m, rs1=\Ec, tsl=\E[?T,
1019         use=linux,
1020
1021 # 16-color linux console entry; this works with a 256-character
1022 # console font but bright background colors turn into dim ones when
1023 # you use a 512-character console font. This uses bold for bright
1024 # foreground colors and blink for bright background colors.
1025 linux-16color|linux console with 16 colors,
1026         colors#16, ncv#54, pairs#256,
1027         setab=\E[4%p1%{8}%m%d%?%p1%{8}%>%t;5%e%p1%{8}%=%t;2%e;25%;m,
1028         setaf=\E[3%p1%{8}%m%d%?%p1%{8}%>%t;1%e%p1%{8}%=%t;2%e;21%;m,
1029         use=linux,
1030
1031 # bterm (bogl 0.1.18)
1032 # Implementation is in bogl-term.c
1033 # Key capabilities from linux terminfo entry
1034 #
1035 # Notes:
1036 # bterm only supports acs using wide-characters, has case for these: qjxamlkut
1037 # bterm does not support sgr, since it only processes one parameter -TD
1038 bterm|bogl virtual terminal,
1039         am, bce,
1040         colors#8, cols#80, lines#24, pairs#64,
1041         acsc=aajjkkllmmqqttuuxx, bold=\E[1m, civis=\E[?25l,
1042         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, cub1=^H, cud1=^J,
1043         cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, home=\E[H, ind=^J,
1044         kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
1045         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
1046         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
1047         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
1048         kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
1049         kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
1050         kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
1051         kmous=\E[M, knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J,
1052         op=\E49;39m, rev=\E[7m, ri=\EM, rmacs=^O, rmso=\E[27m,
1053         rmul=\E[24m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1054         sgr0=\E[0m, smacs=^N, smso=\E[7m, smul=\E[4m,
1055
1056 #### Mach
1057 #
1058
1059 # From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
1060 mach|Mach Console,
1061         am, km,
1062         cols#80, it#8, lines#25,
1063         bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M,
1064         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1065         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
1066         cuu=\E[%p1%dA, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
1067         el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J,
1068         kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
1069         kdch1=\E[9, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf2=\EOQ,
1070         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
1071         kf9=\EOX, khome=\E[H, kich1=\E[@, kll=\E[F, knp=\E[U,
1072         kpp=\E[V, rev=\E[7m, rmso=\E[0m, rmul=\E[24m, sgr0=\E[0m,
1073         smso=\E[7m, smul=\E[4m,
1074 mach-bold|Mach Console with bold instead of underline,
1075         rmul=\E[0m, smul=\E[1m, use=mach,
1076 mach-color|Mach Console with ANSI color,
1077         colors#8, pairs#64,
1078         dim=\E[2m, invis=\E[8m, op=\E[37;40m, rmso=\E[27m,
1079         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=mach,
1080
1081 # From: Samuel Thibault
1082 # Source: git://git.sv.gnu.org/hurd/gnumach.git
1083 # Files: i386/i386at/kd.c
1084 #
1085 # Added nel, hpa, sgr and removed rmacs, smacs based on source -TD
1086 mach-gnu|GNU Mach,
1087         acsc=+>\,<-\^.v0\333`+a\261f\370g\361h\260i#j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
1088         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
1089         el1=\E[1K, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[@,
1090         indn=\E[%p1%dS, invis=\E[8m, nel=\EE, rin=\E[%p1%dT,
1091         sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m,
1092         use=mach,
1093
1094 mach-gnu-color|Mach Console with ANSI color,
1095         colors#8, pairs#64,
1096         op=\E[37;40m, rmso=\E[27m, setab=\E[4%p1%dm,
1097         setaf=\E[3%p1%dm, use=mach-gnu,
1098
1099 # From: Marcus Brinkmann
1100 # http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/hurd/hurd/console/
1101 #
1102 # Comments in the original are summarized here:
1103 #
1104 # hurd uses 8-bit characters (km).
1105 #
1106 # Although it doesn't do XON/XOFF, we don't want padding characters (xon).
1107 #
1108 # Regarding compatibility to vt100:  hurd doesn't specify <xenl>, as we don't
1109 # have the eat_newline_glitch.  It doesn't support setting or removing tab
1110 # stops (hts/tbc).
1111 #
1112 # hurd uses ^H instead of \E[D for cub1, as only ^H implements <bw> and it is
1113 # one byte instead three.
1114 #
1115 # <ich1> is not included because hurd has insert mode.
1116 #
1117 # hurd doesn't use ^J for scrolling, because this could put things into the
1118 # scrollback buffer.
1119 #
1120 # gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
1121 # This is a GNU extension.
1122 #
1123 # The original has commented-out ncv, but is restored here.
1124 #
1125 # Reading the source, RIS resets cnorm, but not xmous.
1126 hurd|The GNU Hurd console server,
1127         am, bce, bw, eo, km, mir, msgr, xon,
1128         colors#8, it#8, ncv#18, pairs#64,
1129         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1130         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
1131         clear=\Ec, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1132         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
1133         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
1134         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[34l, dch=\E[%p1%dP,
1135         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
1136         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, flash=\Eg,
1137         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@,
1138         il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS,
1139         invis=\E[8m, kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\EOD,
1140         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
1141         kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
1142         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
1143         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
1144         kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
1145         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
1146         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
1147         kspd=^Z, nel=^M^J, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\E[T,
1148         rin=\E[%p1%dT, ritm=\E[23m, rmacs=\E[10m, rmir=\E[4l,
1149         rmso=\E[27m, rmul=\E[24m, rs1=\EM\E[?1000l, sc=\E7,
1150         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1151         sgr=\E[0%?%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,
1152         sgr0=\E[0m, sitm=\E[3m, smacs=\E[11m, smir=\E[4h,
1153         smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd, grbom=\E[>1l,
1154         gsbom=\E[>1h,
1155
1156 #### OSF Unix
1157 #
1158
1159 # OSF/1 1.1 Snapshot 2
1160 pmcons|pmconsole|PMAX console,
1161         am,
1162         cols#128, lines#57,
1163         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuu1=^K, ht=^I,
1164         ind=^J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
1165         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
1166
1167 # SCO console and SOS-Syscons console for 386bsd
1168 # (scoansi: had unknown capabilities
1169 #       :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
1170 #       :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
1171 #       :G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
1172 #       :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
1173 #       :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
1174 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
1175 # on the <smacs>=\E[12m  -- esr)
1176 #
1177 # klone+sgr-dumb is an error since the acsc does not match -TD
1178 #
1179 # In this description based on SCO's keyboard(HW) manpage list of default
1180 # function key values:
1181 #       F13-F24 are shifted F1-F12
1182 #       F25-F36 are control F1-F12
1183 #       F37-F48 are shift+control F1-F12
1184 #
1185 # hpa/vpa work in the console, but not in scoterm:
1186 #       hpa=\E[%p1%dG,
1187 #       vpa=\E[%p1%dd,
1188 #
1189 # SCO's terminfo uses
1190 #       kLFT=\E[d,
1191 #       kRIT=\E[c,
1192 # which do not work (console or scoterm).
1193 #
1194 # Console documents only 3 attributes can be set with SGR (so we don't use sgr).
1195 scoansi-old|SCO Extended ANSI standard crt (5.0.5),
1196         OTbs, am, bce, eo, xon,
1197         colors#8, cols#80, it#8, lines#25, pairs#64,
1198         acsc=+/\,.-\230.\2310[5566778899\:\:;;<<==>>FFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`\204a0fxgqh2jYk?lZm@nEqDtCu4vAwBx3yszr{c}\034~\207,
1199         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
1200         civis=\E[=14;12C, clear=\E[H\E[2J, cnorm=\E[=10;12C,
1201         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
1202         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
1203         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[=0;12C, dch=\E[%p1%dP,
1204         dch1=\E[P, dispc=\E[=%p1%dg, dl=\E[%p1%dM, dl1=\E[M,
1205         ed=\E[m\E[J, el=\E[m\E[K, el1=\E[1K, home=\E[H, ht=^I,
1206         hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
1207         ind=\E[S, indn=\E[%p1%dS, invis=\E[8m, kbeg=\E[E, kbs=^H,
1208         kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
1209         kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
1210         kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c,
1211         kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g,
1212         kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l,
1213         kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p,
1214         kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u,
1215         kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P,
1216         kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[],
1217         kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q,
1218         kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
1219         kich1=\E[L, knp=\E[G, kpp=\E[I, op=\E[0;37;40m, rc=\E8,
1220         rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m,
1221         rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7,
1222         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0;10m,
1223         smacs=\E[12m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
1224 scoansi-new|SCO Extended ANSI standard crt (5.0.6),
1225         km,
1226         civis=\E[=0c, cnorm=\E[=1c, csr=\E[%i%p1%d;%p2%dr,
1227         cvvis=\E[=2c, mgc=\E[=r, oc=\E[51m, op=\E[50m,
1228         rep=\E[%p1%d;%p2%db, rmm=\E[=11L,
1229         sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
1230         smgb=\E[=1;0m, smgbp=\E[=1;%i%p1%dm,
1231         smglp=\E[=2;%i%p1%dm, smgr=\E[=3;0m,
1232         smgrp=\E[=3;%i%p1%dm, smgt=\E[=0;0m,
1233         smgtp=\E[=0;%i%p1%dm, smm=\E[=10L,
1234         wind=\E[%i%p1%d;%p2%d;%i%p3%d;%p4%dr,
1235         use=scoansi-old,
1236 # make this easy to change...
1237 scoansi|SCO Extended ANSI standard crt,
1238         use=scoansi-old,
1239
1240 # This actually describes the generic SVr4 display driver for Intel boxes.
1241 # The <dim=\E[2m> isn't documented and therefore may not be reliable.
1242 # From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
1243 att6386|at386|386at|AT&T WGS 6386 console,
1244         am, bw, eo, xon,
1245         cols#80, it#8, lines#25,
1246         acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
1247         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C,
1248         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD,
1249         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
1250         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1251         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
1252         dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
1253         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
1254         ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S,
1255         indn=\E[%p1%dS, invis=\E[9m, is2=\E[0;10;39m, kbs=^H,
1256         kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
1257         kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
1258         kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
1259         kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kich1=\E[@,
1260         knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m,
1261         ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
1262         sc=\E7,
1263         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,
1264         sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
1265         tbc=\E[3g, vpa=\E[%i%p1%dd, use=klone+color,
1266 # (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
1267 pc6300plus|AT&T 6300 plus,
1268         OTbs, am, xon,
1269         cols#80, lines#24,
1270         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C,
1271         clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub1=^H, cud1=\E[B,
1272         cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
1273         dch1=\E[1P, dim=\E[2m, dl1=\E[1M, ed=\E[0J, el=\E[0K,
1274         home=\E[H, hts=\EH, ich1=\E[1@, il1=\E[1L, ind=^J,
1275         invis=\E[9m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1276         kcuu1=\E[A, kf1=\EOc, kf10=\EOu, kf2=\EOd, kf3=\EOe,
1277         kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\EOk,
1278         nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
1279         smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1280
1281 # From: Benjamin C. W. Sittler <bsittler@nmt.edu>
1282 #
1283 # I have a UNIX PC which I use as a terminal attached to my Linux PC.
1284 # Unfortunately, the UNIX PC terminfo entry that comes with ncurses
1285 # is broken. All the special key sequences are broken, making it unusable
1286 # with Emacs. The problem stems from the following:
1287 #
1288 # The UNIX PC has a plethora of keys (103 of them, and there's no numeric
1289 # keypad!), loadable fonts, and strange highlighting modes ("dithered"
1290 # half-intensity, "smeared" bold, and real strike-out, for example.) It also
1291 # uses resizable terminal windows, but the bundled terminal program always
1292 # uses an 80x24 window (and doesn't support seem to support a 132-column
1293 # mode.)
1294 #
1295 # HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
1296 # library which was a superset of SVr3.5 curses (called tam, for "terminal
1297 # access method".) tam includes support for real, overlapping windows,
1298 # onscreen function key labels, and bitmap graphics. But since the primary
1299 # user interface on the UNIX PC was a GUI program (ua, for "user
1300 # assistant",) and remote administration was considered important for the
1301 # machine, tam also supported VT100-compatible terminals attached to the
1302 # serial port or used across the StarLan network. To simulate the extra keys
1303 # not present on a VT100, users could press ESC and a two-letter sequence,
1304 # such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
1305 # however, were not the same as those sent by the actual Undo key. The
1306 # actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
1307 # (If you're interested in adding some of the tam calls to ncurses, btw, I
1308 # have the full documentation and several programs which use tam. It also
1309 # used an extended terminfo format to describe key sequences, special
1310 # highlighting modes, etc.)
1311 #
1312 # KEYS: This means that ncurses would quite painful on the UNIX PC, since
1313 # there are two sequences for every key-modifier combination (local keyboard
1314 # sequence and remote "VT100" sequence.) But I doubt many people are trying
1315 # to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
1316 # GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume)
1317 # seem to have been built from the manual describing the VT100 sequences.
1318 # This means it doesn't work for a real live UNIX PC.
1319 #
1320 # FONTS: The UNIX PC also has a strange interpretation of "alternate
1321 # character set". Rather than the VT100 graphics you might expect, it allows
1322 # up to 8 custom fonts to be loaded at any given time. This means that
1323 # programs expecting VT100 graphics will usually be disappointed. For this
1324 # reason I have disabled the smacs/rmacs sequences, but they could easily be
1325 # re-enabled. Here are the relevant control sequences (from the ESCAPE(7)
1326 # manpage), should you wish to do so:
1327 #
1328 # SGR10 - Select font 0 - ESC [ 10 m or SO
1329 # SGR11 - Select font 1 - ESC [ 11 m or SI
1330 # SGR12 - Select font 2 - ESC [ 12 m
1331 # ... (etc.)
1332 # SGR17 - Select font 7 - ESC [ 17 m
1333 #
1334 # Graphics for line drawing are not reliably found at *any* character
1335 # location because the UNIX PC has dynamically reloadable fonts. I use font
1336 # 0 for regular text and font 1 for italics, but this is by no means
1337 # universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
1338 #
1339 # MISC: The cursor visible/cursor invisible sequences were swapped in the
1340 # distributed terminfo.
1341 #
1342 # To ameliorate these problems (and fix a few highlighting bugs) I rewrote
1343 # the UNIX PC terminfo entry. The modified version works great with Lynx,
1344 # Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
1345 # attached by serial cable. In Emacs, even the Undo key works, and many
1346 # applications can now use the F1-F8 keys.
1347 #
1348 # esr's notes:
1349 #       Terminfo entry for the AT&T Unix PC 7300
1350 #       from escape(7) in Unix PC 7300 Manual.
1351 #       Somewhat similar to a vt100-am (but different enough
1352 #       to redo this from scratch.)
1353 #
1354 #       /***************************************************************
1355 #       *
1356 #       *           FONT LOADING PROGRAM FOR THE UNIX PC
1357 #       *
1358 #       *     This routine loads a font defined in the file ALTFONT
1359 #       *     into font memory slot #1.  Once the font has been loaded,
1360 #       *     it can be used as an alternative character set.
1361 #       *
1362 #       *     The call to ioctl with the argument WIOCLFONT is the key
1363 #       *     to this routine.  For more information, see window(7) in
1364 #       *     the PC 7300 documentation.
1365 #       ***************************************************************/
1366 #       #include <string.h>             /* needed for strcpy call */
1367 #       #include <sys/window.h>         /* needed for ioctl call */
1368 #       #define FNSIZE  60              /* font name size */
1369 #       #define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
1370 #       /*
1371 #       *     The file /usr/lib/wfont/special.8.ft comes with the
1372 #       *     standard PC software.  It defines a graphics character set
1373 #       *     similar to that of the Teletype 5425 terminal.  To view
1374 #       *     this or other fonts in /usr/lib/wfont, use the command
1375 #       *     cfont <filename>.  For further information on fonts see
1376 #       *     cfont(1) in the PC 7300 documentation.
1377 #       */
1378 #
1379 #       struct altfdata         /* structure for alt font data */
1380 #       {
1381 #       short   altf_slot;              /* memory slot number */
1382 #       char    altf_name[FNSIZE];      /* font name (file name) */
1383 #       };
1384 #       ldfont()
1385 #       {
1386 #               int wd;         /* window in which altfont will be */
1387 #               struct altfdata altf;
1388 #               altf.altf_slot=1;
1389 #               strcpy(altf.altf_name,ALTFONT);
1390 #               for (wd =1; wd < 12; wd++) {
1391 #                    ioctl(wd, WIOCLFONT,&altf);
1392 #               }
1393 #       }
1394 #
1395 # (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
1396 # they're confirmed by the man page for the System V display---esr)
1397 #
1398 att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300,
1399         am, xon,
1400         cols#80, it#8, lines#24,
1401         bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C,
1402         clear=\E[2J\E[H, cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD,
1403         cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
1404         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1405         cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
1406         ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL,
1407         il1=\E[L, ind=^J, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB,
1408         kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE,
1409         kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM,
1410         kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR,
1411         kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO,
1412         kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z,
1413         kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
1414         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf,
1415         ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd,
1416         kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
1417         kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B,
1418         kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv,
1419         kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt,
1420         kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB,
1421         ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM,
1422         rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m,
1423         smul=\E[4m,
1424
1425 # Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1426 # from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
1427 # for the application keypad mode.  We have added iris-ansi-ap rather than
1428 # change the original to keypad mode.
1429 #
1430 # (iris-ansi: added rmam/smam based on init string -- esr)
1431 #
1432 # This entry, and those derived from it, is used in xwsh (also known as
1433 # winterm).  Some capabilities that do not fit into the terminfo model
1434 # include the shift- and control-functionkeys:
1435 #
1436 # F1-F12 generate different codes when shift or control modifiers are used.
1437 # For example:
1438 #       F1              \E[001q
1439 #       shift F1        \E[013q
1440 #       control-F1      \E[025q
1441 #
1442 # In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1443 # \EOP to \EOS.  The shifted and control modifiers still do the same thing.
1444 #
1445 # The cursor keys also have different codes:
1446 #       control-up      \E[162q
1447 #       control-down    \E[165q
1448 #       control-left    \E[159q
1449 #       control-right   \E[168q
1450 #
1451 #       shift-up        \E[161q
1452 #       shift-down      \E[164q
1453 #       shift-left      \E[158q
1454 #       shift-right     \E[167q
1455 #
1456 #       control-tab     \[072q
1457 #
1458 iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
1459         am,
1460         cols#80, it#8, lines#40,
1461         bel=^G, bold=\E[1m, clear=\E[H\E[2J,
1462         cnorm=\E[9/y\E[12/y\E[=6l, cr=^M, cub=\E[%p1%dD,
1463         cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC,
1464         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1465         cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h,
1466         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
1467         home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED,
1468         is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
1469         kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
1470         kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1471         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
1472         kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\E[010q,
1473         kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
1474         kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
1475         kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
1476         knp=\E[154q, kpp=\E[150q, kprt=\E[209q, krmir=\E[146q,
1477         kspd=\E[217q, nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\,
1478         rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
1479         sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m,
1480         tbc=\E[3g,
1481 iris-ansi-ap|IRIS ANSI in application-keypad mode,
1482         is2=\E[?1l\E=\E[?7h, kent=\EOM, kf10=\E[010q,
1483         kf11=\E[011q, kf12=\E[012q, kf9=\E[009q, use=iris-ansi,
1484
1485 # From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1486 # (T.Dickey 98/1/24)
1487 iris-color|xwsh|IRIX ANSI with color,
1488         ncv#33,
1489         csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
1490         ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, ritm=\E[23m,
1491         rmul=\E[24m, rs1=\Ec,
1492         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1493         sitm=\E[3m, use=vt100+enq, use=klone+color,
1494         use=iris-ansi-ap,
1495
1496 # The following is a version of the ibm-pc entry distributed with PC/IX,
1497 # (Interactive Systems' System 3 for the Big Blue), modified by Richard
1498 # McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
1499 # (the former is untrue, and the latter failed under UCB/man); standout and
1500 # underline modes have been added.  Note: this entry describes the "native"
1501 # capabilities of the PC monochrome display, without ANY emulation; most
1502 # communications packages (but NOT PC/IX connect) do some kind of emulation.
1503 pcix|PC/IX console,
1504         am, bw, eo,
1505         cols#80, lines#24,
1506         clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
1507         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
1508         home=\E[H, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m,
1509         smul=\E[4m,
1510
1511 # (ibmpcx: this entry used to be known as ibmx.
1512 # It formerly included the following extension capabilities:
1513 #       :GC=b:GL=v:GR=t:RT=^J:\
1514 #       :GH=\E[196g:GV=\E[179g:\
1515 #       :GU=\E[193g:GD=\E[194g:\
1516 #       :G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
1517 #       :CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
1518 #       :WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
1519 # I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
1520 # ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
1521 # what was there before. -- esr)
1522 ibmpcx|xenix|ibmx|IBM PC xenix console display,
1523         OTbs, am, msgr,
1524         cols#80, lines#25,
1525         clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C,
1526         cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
1527         ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H,
1528         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d,
1529         kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e,
1530         kpp=\E[Z, use=klone+acs, use=klone+sgr8,
1531
1532 #### QNX
1533 #
1534
1535 # QNX 4.0 Console
1536 # Michael's original version of this entry had <am@>, <smcup=\Ei>,
1537 # <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
1538 # right corner without triggering a scroll.  The ncurses terminfo library can
1539 # handle this case with the <ich1> capability, and prefers <am> for better
1540 # optimization.  Bug: The <op> capability resets attributes.
1541 # From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1542 # (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
1543 qnx|qnx4|qnx console,
1544         daisy, km, mir, msgr, xhpa, xt,
1545         colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8,
1546         acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t\303u\264v\301w\302x\263,
1547         bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ,
1548         cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
1549         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2,
1550         dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee,
1551         il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263,
1552         kCMD=\377\267, kCPY=\377\363, kCRT=\377\364,
1553         kDL=\377\366, kEND=\377\301, kEOL=\377\311,
1554         kEXT=\377\367, kFND=\377\370, kHLP=\377\371,
1555         kHOM=\377\260, kIC=\377\340, kLFT=\377\264,
1556         kMOV=\377\306, kMSG=\377\304, kNXT=\377\272,
1557         kOPT=\377\372, kPRT=\377\275, kPRV=\377\262,
1558         kRDO=\377\315, kRES=\377\374, kRIT=\377\266,
1559         kRPL=\377\373, kSAV=\377\307, kSPD=\377\303,
1560         kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0,
1561         kclo=\377\343, kclr=\377\341, kcmd=\377\245,
1562         kcpy=\377\265, kcrt=\377\305, kctab=\377\237,
1563         kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246,
1564         kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274,
1565         ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320,
1566         kext=\377\270, kf1=\377\201, kf10=\377\212,
1567         kf11=\377\256, kf12=\377\257, kf13=\377\213,
1568         kf14=\377\214, kf15=\377\215, kf16=\377\216,
1569         kf17=\377\217, kf18=\377\220, kf19=\377\221,
1570         kf2=\377\202, kf20=\377\222, kf21=\377\223,
1571         kf22=\377\224, kf23=\377\333, kf24=\377\334,
1572         kf25=\377\225, kf26=\377\226, kf27=\377\227,
1573         kf28=\377\230, kf29=\377\231, kf3=\377\203,
1574         kf30=\377\232, kf31=\377\233, kf32=\377\234,
1575         kf33=\377\235, kf34=\377\236, kf35=\377\276,
1576         kf36=\377\277, kf37=\377\321, kf38=\377\322,
1577         kf39=\377\323, kf4=\377\204, kf40=\377\324,
1578         kf41=\377\325, kf42=\377\326, kf43=\377\327,
1579         kf44=\377\330, kf45=\377\331, kf46=\377\332,
1580         kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206,
1581         kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346,
1582         khlp=\377\350, khome=\377\240, khts=\377\342,
1583         kich1=\377\253, kil1=\377\273, kind=\377\261,
1584         kmov=\377\351, kmrk=\377\355, kmsg=\377\345,
1585         knp=\377\252, knxt=\377\312, kopn=\377\357,
1586         kopt=\377\353, kpp=\377\242, kprt=\377\255,
1587         kprv=\377\302, krdo=\377\336, kref=\377\354,
1588         kres=\377\360, krfr=\377\347, kri=\377\271,
1589         krmir=\377\313, krpl=\377\362, krst=\377\352,
1590         ksav=\377\361, kslt=\377\247, kspd=\377\335,
1591         ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER,
1592         rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER,
1593         rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d,
1594         setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei,
1595         smso=\E(, smul=\E[,
1596 #
1597 #
1598 qnxt|qnxt4|QNX4 terminal,
1599         crxm, use=qnx4,
1600 #
1601 qnxm|QNX4 with mouse events,
1602         maddr#1,
1603         chr=\E/, cvr=\E", is1=\E/0t, mcub=\E/>1h, mcub1=\E/>7h,
1604         mcud=\E/>1h, mcud1=\E/>1l\E/>9h, mcuf=\E/>1h\E/>9l,
1605         mcuf1=\E/>7l, mcuu=\E/>6h, mcuu1=\E/>6l, rmicm=\E/>2l,
1606         smicm=\E/>2h, use=qnx4,
1607 #
1608 qnxw|QNX4 windows,
1609         xvpa, use=qnxm,
1610 #
1611 #       Monochrome QNX4 terminal or console. Setting this terminal type will
1612 #       allow an application running on a color console to behave as if it
1613 #       were a monochrome terminal. Output will be through stdout instead of
1614 #       console writes because the term routines will recognize that the
1615 #       terminal name starts with 'qnxt'.
1616 #
1617 qnxtmono|Monochrome QNX4 terminal or console,
1618         colors@, pairs@,
1619         scp@, use=qnx4,
1620
1621 # From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1622 # (esr: commented out <scp> and <rmcup> to avoid warnings.)
1623 # (TD: derive from original qnx4 entry)
1624 qnxt2|qnx 2.15 serial terminal,
1625         am,
1626         civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@,
1627         rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, use=qnx4,
1628
1629 # QNX ANSI terminal definition
1630 qansi-g|QNX ANSI,
1631         am, eslok, hs, xon,
1632         colors#8, cols#80, it#8, lines#25, ncv#19, pairs#64, wsl#80,
1633         acsc=Oa``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1634         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
1635         clear=\E[2J\E[H, cnorm=\E[?25h\E[?12l, cr=^M,
1636         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
1637         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1638         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, cuu1=\E[A,
1639         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
1640         dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J,
1641         el=\E[K, el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l,
1642         fsl=\E[?6h\E8, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
1643         ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L,
1644         ind=\E[S, indn=\E[%p1%dS, invis=\E[9m,
1645         is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
1646         kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
1647         kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
1648         kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
1649         kbs=^H, kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa,
1650         kcmd=\E[G, kcpy=\E[g, kctab=\E[z, kcub1=\E[D, kcud1=\E[B,
1651         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
1652         kext=\E[y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
1653         kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt,
1654         kf18=\EOu, kf19=\EOv, kf2=\EOQ, kf20=\EOw, kf21=\EOx,
1655         kf22=\EOy, kf23=\EOz, kf24=\EOa, kf25=\E[1~, kf26=\E[2~,
1656         kf27=\E[3~, kf28=\E[4~, kf29=\E[5~, kf3=\EOR, kf30=\E[6~,
1657         kf31=\E[7~, kf32=\E[8~, kf33=\E[9~, kf34=\E[10~,
1658         kf35=\E[11~, kf36=\E[12~, kf37=\E[17~, kf38=\E[18~,
1659         kf39=\E[19~, kf4=\EOS, kf40=\E[20~, kf41=\E[21~,
1660         kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
1661         kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
1662         kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
1663         khome=\E[H, khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a,
1664         kmov=\ENi, kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo,
1665         kopt=\ENk, kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg,
1666         kri=\E[b, krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T,
1667         ktbc=\ENd, kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m,
1668         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\E[T,
1669         rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmso=\E[27m,
1670         rmul=\E[24m, rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
1671         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1672         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1673         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1674         sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;9%;m%?%p9%t\016%e\017%;,
1675         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smso=\E[7m,
1676         smul=\E[4m, tbc=\E[3g,
1677         tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH,
1678 #
1679 qansi|QNX ansi with console writes,
1680         daisy, xhpa, use=qansi-g,
1681 #
1682 qansi-t|QNX ansi without console writes,
1683         crxm, use=qansi,
1684 #
1685 qansi-m|QNX ansi with mouse,
1686         maddr#1,
1687         chr=\E[, cvr=\E], is1=\E[0t, mcub=\E[>1h, mcub1=\E[>7h,
1688         mcud=\E[>1h, mcud1=\E[>1l\E[>9h, mcuf=\E[>1h\E[>9l,
1689         mcuf1=\E[>7l, mcuu=\E[>6h, mcuu1=\E[>6l, rmicm=\E[>2l,
1690         smicm=\E[>2h, use=qansi,
1691 #
1692 qansi-w|QNX ansi for windows,
1693         xvpa, use=qansi-m,
1694
1695 #### OpenBSD consoles
1696 #
1697 # From: Alexei Malinin <Alexei.Malinin@mail.ru>; October, 2011.
1698 #
1699 # The following terminal descriptions for the  AMD/Intel PC console
1700 # were prepared  based on information contained in  the OpenBSD-4.9
1701 # termtypes.master and wscons(4) & vga(4) manuals (2010, November).
1702 #
1703 # Added bce based on testing with tack -TD
1704 # Added several capabilities to pccon+base, reading wsemul_vt100_subr.c -TD
1705 # Changed kbs to DEL and removed keys that duplicate stty settings -TD
1706 #
1707 pccon+keys|OpenBSD PC keyboard keys,
1708         kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
1709         kdch1=\E[3~, kend=\E[8~, kent=^M, kf1=\E[11~, kf10=\E[21~,
1710         kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, kf3=\E[13~,
1711         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
1712         kf9=\E[20~, khome=\E[7~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
1713         krfr=^R,
1714 pccon+sgr+acs0|sgr and simple ASCII pseudographics for OpenBSD PC console,
1715         acsc=+>\,<-\^.v0#`+a\:f\\h#i#j+k+l+m+n+o~p-q-r-s_t+u+v+w+x|y#z#{*|!}#~o,
1716         sgr=\E[0%?%p1%p3%|%t;7%;m, sgr0=\E[m,
1717 pccon+sgr+acs|sgr and default ASCII pseudographics for OpenBSD PC console,
1718         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1719         enacs=\E)0$<5>, rmacs=\E(B$<5>,
1720         sgr=\E[0%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<5>,
1721         sgr0=\E[m\E(B$<5>, smacs=\E(0$<5>,
1722 pccon+colors|ANSI colors for OpenBSD PC console,
1723         bce,
1724         colors#8, pairs#64,
1725         op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1726 pccon+base|base capabilities for OpenBSD PC console,
1727         am, km, mc5i, msgr, npc, nxon, xenl, xon,
1728         cols#80, it#8, lines#24,
1729         bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
1730         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
1731         dch1=\E[P, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
1732         el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
1733         il1=\E[L, ind=\ED, nel=\EE, rev=\E[7m, ri=\EM, rmam=\E[?7l,
1734         rmso=\E[m, rs2=\Ec$<50>, smam=\E[?7h, smso=\E[7m,
1735         tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
1736 pccon0-m|OpenBSD PC console without colors & with simple ASCII pseudographics,
1737         use=pccon+base, use=pccon+sgr+acs0, use=pccon+keys,
1738 pccon0|OpenBSD PC console with simple ASCII pseudographics,
1739         use=pccon0-m, use=pccon+colors,
1740 pccon-m|OpenBSD PC console without colors,
1741         use=pccon+base, use=pccon+sgr+acs, use=pccon+keys,
1742 pccon|OpenBSD PC console,
1743         use=pccon-m, use=pccon+colors,
1744
1745 #### NetBSD consoles
1746 #
1747 # pcvt termcap database entries (corresponding to release 3.31)
1748 # Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1749 #
1750 # (For the terminfo master file, I translated these into terminfo syntax.
1751 # Then I dropped all the pseudo-HP entries. we don't want and can't use
1752 # the :Xs: flag. Then I split :is: into a size-independent <is1> and a
1753 # size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
1754
1755 # NOTE: <ich1> has been taken out of this entry. for reference, it should
1756 # be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1757 # (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
1758 pcvtXX|pcvt vt200 emulator (DEC VT220),
1759         am, km, mir, msgr, xenl,
1760         it#8, vt#3,
1761         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~,
1762         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
1763         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
1764         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1765         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1766         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1767         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
1768         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
1769         il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS,
1770         is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=\177,
1771         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
1772         kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
1773         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
1774         khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
1775         nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100,
1776         ri=\EM, rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
1777         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
1778         rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1779         sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
1780         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1781
1782 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1783 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1784 #       50 lines entries; 80 columns
1785 pcvt25|dec vt220 emulation with 25 lines,
1786         cols#80, lines#25,
1787         is2=\E[1;25r\E[25;1H, use=pcvtXX,
1788 pcvt28|dec vt220 emulation with 28 lines,
1789         cols#80, lines#28,
1790         is2=\E[1;28r\E[28;1H, use=pcvtXX,
1791 pcvt35|dec vt220 emulation with 35 lines,
1792         cols#80, lines#35,
1793         is2=\E[1;35r\E[35;1H, use=pcvtXX,
1794 pcvt40|dec vt220 emulation with 40 lines,
1795         cols#80, lines#40,
1796         is2=\E[1;40r\E[40;1H, use=pcvtXX,
1797 pcvt43|dec vt220 emulation with 43 lines,
1798         cols#80, lines#43,
1799         is2=\E[1;43r\E[43;1H, use=pcvtXX,
1800 pcvt50|dec vt220 emulation with 50 lines,
1801         cols#80, lines#50,
1802         is2=\E[1;50r\E[50;1H, use=pcvtXX,
1803
1804 #       NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1805 #       termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1806 #       50 lines entries; 132 columns
1807 pcvt25w|dec vt220 emulation with 25 lines and 132 cols,
1808         cols#132, lines#25,
1809         is2=\E[1;25r\E[25;1H, use=pcvtXX,
1810 pcvt28w|dec vt220 emulation with 28 lines and 132 cols,
1811         cols#132, lines#28,
1812         is2=\E[1;28r\E[28;1H, use=pcvtXX,
1813 pcvt35w|dec vt220 emulation with 35 lines and 132 cols,
1814         cols#132, lines#35,
1815         is2=\E[1;35r\E[35;1H, use=pcvtXX,
1816 pcvt40w|dec vt220 emulation with 40 lines and 132 cols,
1817         cols#132, lines#40,
1818         is2=\E[1;40r\E[40;1H, use=pcvtXX,
1819 pcvt43w|dec vt220 emulation with 43 lines and 132 cols,
1820         cols#132, lines#43,
1821         is2=\E[1;43r\E[43;1H, use=pcvtXX,
1822 pcvt50w|dec vt220 emulation with 50 lines and 132 cols,
1823         cols#132, lines#50,
1824         is2=\E[1;50r\E[50;1H, use=pcvtXX,
1825
1826 #       OpenBSD implements a color variation
1827 pcvt25-color|dec vt220 emulation with 25 lines and color,
1828         cols#80, lines#25,
1829         is2=\E[1;25r\E[25;1H, kf1=\EOP, kf10=\E[29~, kf11=\E[23~,
1830         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
1831         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
1832         kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
1833         kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, use=pcvtXX,
1834         use=ecma+color,
1835
1836 # Terminfo entries to enable the use of the ncurses library in colour on a
1837 # NetBSD-arm32 console (only tested on a RiscPC).
1838 # Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1839 # modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1840 # typo in invis - TD
1841 arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
1842         am, bce, msgr, xenl, xon,
1843         cols#80, it#8, lines#30,
1844         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1845         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
1846         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1847         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1848         cuf=\E[%p1%dC, cuf1=\E[C$<2>,
1849         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
1850         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
1851         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J,
1852         invis=\E[8m$<2>, ka1=\E[q, ka3=\E[s, kb2=\E[r, kbs=^H,
1853         kc1=\E[p, kc3=\E[n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1854         kcuu1=\E[A, kent=\E[M, kf0=\E[y, kf1=\E[P, kf10=\E[x,
1855         kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t, kf6=\E[u, kf7=\E[v,
1856         kf8=\E[l, kf9=\E[w, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
1857         rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
1858         rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1859         sc=\E7,
1860         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<2>,
1861         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1862         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ecma+sgr,
1863         use=klone+color,
1864
1865 arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
1866         cols#132, lines#50, use=arm100,
1867
1868 # NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
1869 # manufactured by Sharp for the Japenese market.
1870 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1871 x68k|x68k-ite|NetBSD/x68k ITE,
1872         cols#96, lines#32,
1873         kclr=\E[9~, khlp=\E[28~, use=vt220,
1874
1875 # <tv@pobox.com>:
1876 # Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1877 #
1878 # (still unfinished, but good enough so far.)
1879 ofcons|DNARD OpenFirmware console,
1880         bw,
1881         cols#80, lines#30,
1882         bel=^G, blink=\2335m, bold=\2331m, clear=^L, cr=^M,
1883         cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
1884         cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
1885         cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
1886         dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K,
1887         flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL,
1888         il1=\233L, ind=^J, invis=\2338m, kbs=^H, kcub1=\233D,
1889         kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P,
1890         kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
1891         kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
1892         kf9=\2330p, knp=\233/, kpp=\233?, nel=^M^J, rev=\2337m,
1893         rmso=\2330m, rmul=\2330m,
1894         sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t2%;%?%p7%t8%;%?%p1%p3%|%t;7%;m,
1895         sgr0=\2330m, smso=\2337m, smul=\2334m,
1896
1897 # NetBSD "wscons" emulator in vt220 mode.
1898 # This entry is based on the NetBSD termcap entry, correcting the ncv value.
1899 # The emulator renders underlined text in red.  Colors are otherwise usable.
1900 #
1901 # Testing the emulator and reading the source code (NetBSD 2.0), it appears
1902 # that "vt220" is inaccurate.  There are a few vt220-features, but most of the
1903 # vt220 screens in vttest do not work with this emulator.  For instance, it
1904 # identifies itself (primary DA response) as a vt220 with selective erase.  But
1905 # the selective erase feature does not work.  The secondary response is copied
1906 # from Kermit's emulation of vt220, does not correspond to actual vt220.  At
1907 # the level of detail in a termcap, it is a passable emulator, since ECH does
1908 # work.  Don't use it on a VMS system -TD
1909 wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
1910         bce, msgr,
1911         colors#8, cols#80, it#8, lines#25, ncv#2, pairs#64,
1912         is2=\E[r\E[25;1H, kend=\E[8~, kf1=\E[11~, kf10=\E[21~,
1913         kf11=\E[23~, kf12=\E[24~, kf2=\E[12~, kf3=\E[13~,
1914         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
1915         kf9=\E[20~, khome=\E[7~, op=\E[m, rs1=\Ec,
1916         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=vt220,
1917
1918 wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
1919         km, use=wsvt25,
1920
1921 # `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1922 # DECstation/pmax.
1923 rcons|BSD rasterconsole,
1924         use=sun-il,
1925 # Color version of above. Color currently only provided by NetBSD.
1926 rcons-color|BSD rasterconsole with ANSI color,
1927         bce,
1928         colors#8, pairs#64,
1929         op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=rcons,
1930
1931 # mgterm -- MGL/MGL2, MobileGear Graphic Library
1932 # for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1933 # -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1934 # -- compare with cons25w
1935 mgterm,
1936         OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
1937         colors#8, cols#80, it#8, lines#18, pairs#64,
1938         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1939         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1940         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1941         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1942         dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, dl=\E[%p1%dM,
1943         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
1944         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
1945         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
1946         indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1947         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F,
1948         kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N,
1949         kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
1950         kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I,
1951         nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT,
1952         rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7, setb=\E[4%p1%dm,
1953         setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
1954
1955 #### FreeBSD console entries
1956 #
1957 # From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1958 # Andrey Chernov maintains the FreeBSD termcap distributions.
1959 #
1960 # Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1961 # or comment out the :cb: capability in the console entry.
1962 #
1963 # Alexander Lukyanov reports:
1964 # I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1965 # Now el1 clears not only to the line beginning, but also a large chunk
1966 # of previous line. But there is another bug - ech does not work at all.
1967 #
1968
1969 # for syscons
1970 # common entry without semigraphics
1971 # Bug: The <op> capability resets attributes.
1972 # Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1973 # instance el1 does if the cursor is moved to the right margin first.  Removed
1974 # by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1975 #
1976 # Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1977 # Note that this disables standout with color.
1978 #
1979 # The emulator sends difference strings based on shift- and control-keys,
1980 # like scoansi:
1981 #       F13-F24 are shifted F1-F12
1982 #       F25-F36 are control F1-F12
1983 #       F37-F48 are shift+control F1-F12
1984 cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode),
1985         am, bce, bw, eo, msgr, npc,
1986         colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64,
1987         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1988         cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
1989         cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1990         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1991         cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m,
1992         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
1993         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
1994         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
1995         indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1996         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F,
1997         kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf13=\E[Y,
1998         kf14=\E[Z, kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d,
1999         kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h,
2000         kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m,
2001         kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q,
2002         kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u, kf36=\E[v,
2003         kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P, kf40=\E[z,
2004         kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[], kf45=\E[\^,
2005         kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q, kf6=\E[R,
2006         kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L,
2007         knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m,
2008         ri=\E[T, rin=\E[%p1%dT, rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7,
2009         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
2010         sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?%p6%t;1%;m,
2011         sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
2012 cons25|ansis|ansi80x25|freebsd console (25-line ansi mode),
2013         acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371,
2014         use=cons25w,
2015 cons25-debian|freebsd console with debian backspace (25-line ansi mode),
2016         kbs=\177, kdch1=\E[3~, use=cons25,
2017 cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode),
2018         colors@, pairs@,
2019         bold@, dim@, op@, rmul=\E[m, setab@, setaf@,
2020         sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m,
2021         smul=\E[4m, use=cons25,
2022 cons30|ansi80x30|freebsd console (30-line ansi mode),
2023         lines#30, use=cons25,
2024 cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode),
2025         lines#30, use=cons25-m,
2026 cons43|ansi80x43|freebsd console (43-line ansi mode),
2027         lines#43, use=cons25,
2028 cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode),
2029         lines#43, use=cons25-m,
2030 cons50|ansil|ansi80x50|freebsd console (50-line ansi mode),
2031         lines#50, use=cons25,
2032 cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode),
2033         lines#50, use=cons25-m,
2034 cons60|ansi80x60|freebsd console (60-line ansi mode),
2035         lines#60, use=cons25,
2036 cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode),
2037         lines#60, use=cons25-m,
2038 cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic,
2039         acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\0t\206u\207v\211w\210x\201y\230z\231~\225,
2040         use=cons25w,
2041 cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono),
2042         colors@, pairs@,
2043         op@, rmul=\E[m, setab@, setaf@,
2044         sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?%p6%t;1%;m,
2045         smul=\E[4m, use=cons25r,
2046 cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines),
2047         lines#50, use=cons25r,
2048 cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono),
2049         lines#50, use=cons25r-m,
2050 cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines),
2051         lines#60, use=cons25r,
2052 cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono),
2053         lines#60, use=cons25r-m,
2054 # ISO 8859-1 FreeBSD console
2055 cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars,
2056         acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k\214l\215m\216n\217o\220p\221q\222r\223s\224t\225u\226v\227w\230x\231y\232z\233~\237,
2057         use=cons25w,
2058 cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono),
2059         colors@, pairs@,
2060         bold@, dim@, op@, rmul=\E[m, setab@, setaf@,
2061         sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m,
2062         smul=\E[4m, use=cons25l1,
2063 cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines),
2064         lines#50, use=cons25l1,
2065 cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono),
2066         lines#50, use=cons25l1-m,
2067 cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines),
2068         lines#60, use=cons25l1,
2069 cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono),
2070         lines#60, use=cons25l1-m,
2071
2072 #### 386BSD and BSD/OS Consoles
2073 #
2074
2075 # This was the original 386BSD console entry (I think).
2076 # Some places it's named oldpc3|oldibmpc3.
2077 # From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
2078 origpc3|origibmpc3|IBM PC 386BSD Console,
2079         OTbs, am, bw, eo, xon,
2080         cols#80, lines#25,
2081         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
2082         bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
2083         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
2084         home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
2085         kcuu1=\E[A, khome=\E[Y, ri=\E[T, rmso=\E[1;0x\E[2;7x,
2086         rmul=\E[1;0x\E[2;7x, sgr0=\E[m\E[1;0x\E[2;7x,
2087         smso=\E[1;7x\E[2;0x, smul=\E[1;7x\E[2;0x,
2088
2089 # description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
2090 oldpc3|oldibmpc3|old IBM PC BSD/386 Console,
2091         OTbs, km,
2092         lines#25,
2093         bel=^G, bold=\E[=15F, cr=^M, cud1=^J, dim=\E[=8F, dl1=\E[M,
2094         ht=^I, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
2095         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F,
2096         knp=\E[G, kpp=\E[I, nel=^M^J, sgr0=\E[=R,
2097
2098 # Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
2099 # Note, the emulator supports many of the additional console features
2100 # listed in the iBCS2 (e.g. character-set selection) though not all
2101 # are described here.  This entry really ought to be upgraded.
2102 # Also note, the console will also work with fewer lines after doing
2103 # "stty rows NN", e.g. to use 24 lines.
2104 # (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
2105 # Bug: The <op> capability resets attributes.
2106 bsdos-pc|IBM PC BSD/OS Console,
2107         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;1%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
2108         use=bsdos-pc-nobold,
2109
2110 bsdos-pc-nobold|BSD/OS PC console w/o bold,
2111         use=klone+color, use=bsdos-pc-m,
2112
2113 bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
2114         OTbs, am, eo, km, xon,
2115         cols#80, it#8, lines#25,
2116         bel=^G, clear=\Ec, cr=^M, cub=\E[%p1%dD, cub1=^H,
2117         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2118         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2119         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
2120         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
2121         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L,
2122         kll=\E[F, knp=\E[G, kpp=\E[I, nel=^M^J, rc=\E8, sc=\E7,
2123         sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;,
2124         use=klone+sgr8,
2125
2126 # Old names for BSD/OS PC console used in releases before 4.1.
2127 pc3|BSD/OS on the PC Console,
2128         use=bsdos-pc-nobold,
2129 ibmpc3|pc3-bold|BSD/OS on the PC Console with bold instead of underline,
2130         use=bsdos-pc,
2131
2132 # BSD/OS on the SPARC
2133 bsdos-sparc|Sun SPARC BSD/OS Console,
2134         use=sun,
2135
2136 # BSD/OS on the PowerPC
2137 bsdos-ppc|PowerPC BSD/OS Console,
2138         use=bsdos-pc,
2139
2140 #### DEC VT52
2141 # (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
2142 #
2143 # Actually (TD pointed this out at the time the acsc string was added):
2144 # vt52 shouldn't define full acsc since most of the cells don't match.
2145 # see vt100 manual page A-31.  This is the list that does match:
2146 #       f degree
2147 #       g plus/minus
2148 #       h right-arrow
2149 #       k down-arrow
2150 #       m scan-1
2151 #       o scan-3
2152 #       q scan-5
2153 #       s scan-7
2154 # The line-drawing happens to work in several terminal emulators, but should
2155 # not be used as a guide to the capabilities of the vt52.  Note in particular
2156 # that vt52 does not support line-drawing characters (the scan-X values refer
2157 # to a crude plotting feature) -TD
2158 vt52|dec vt52,
2159         OTbs,
2160         cols#80, it#8, lines#24,
2161         acsc=+h.k0affggolpnqprrss, bel=^G, clear=\EH\EJ, cr=^M,
2162         cub1=\ED, cud1=\EB, cuf1=\EC,
2163         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
2164         el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
2165         kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
2166
2167 #### DEC VT100 and compatibles
2168 #
2169 # DEC terminals from the vt100 forward are collected here. Older DEC terminals
2170 # and micro consoles can be found in the `obsolete' section.  More details on
2171 # the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
2172 # found near the end of this file.
2173 #
2174 # Except where noted, these entries are DEC's official terminfos.
2175 # Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
2176 # Engineering for more information.  Updated terminfos and termcaps
2177 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
2178 #
2179 # In October 1995 DEC sold its terminals business, including the VT and Dorio
2180 # line and trademark, to SunRiver Data Systems.  SunRiver has since changed
2181 # its name to Boundless Technologies; see http://www.boundless.com.
2182 #
2183
2184 # NOTE:  Any VT100 emulation, whether in hardware or software, almost
2185 # certainly includes what DEC called the `Level 1 editing extension' codes;
2186 # only the very oldest VT100s lacked these and there probably aren't any of
2187 # those left alive.  To capture these, use one of the VT102 entries.
2188 #
2189 # Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
2190 # since the cursor is left in a different position while in the
2191 # weird state (concept at beginning of next line, vt100 at end
2192 # of this line) so all versions of vi before 3.7 don't handle
2193 # <xenl> right on vt100. The correct way to handle <xenl> is when
2194 # you output the char in column 80, immediately output CR LF
2195 # and then assume you are in column 1 of the next line. If <xenl>
2196 # is on, am should be on too.
2197 #
2198 # I assume you have smooth scroll off or are at a slow enough baud
2199 # rate that it doesn't matter (1200? or less). Also this assumes
2200 # that you set auto-nl to "on", if you set it off use vt100-nam
2201 # below.
2202 #
2203 # The padding requirements listed here are guesses. It is strongly
2204 # recommended that xon/xoff be enabled, as this is assumed here.
2205 #
2206 # The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the
2207 # tab settings are in non-volatile memory and don't need to be
2208 # reset upon login. Also setting the number of columns glitches
2209 # the screen annoyingly. You can type "reset" to get them set.
2210 #
2211 # The VT100 series terminals have cursor ("arrows") keys which can operate
2212 # in two different modes: Cursor Mode and Application Mode.  Cursor Mode
2213 # is the reset state, and is assumed to be the normal state.  Application
2214 # Mode is the "set" state.  In Cursor Mode, the cursor keys transmit
2215 # "Esc [ {code}" sequences, conforming to ANSI standards.  In Application
2216 # Mode, the cursor keys transmit "Esc O <code>" sequences.  Application Mode
2217 # was provided primarily as an aid to the porting of VT52 applications.  It is
2218 # assumed that the cursor keys are normally in Cursor Mode, and expected that
2219 # applications such as vi will always transmit the <smkx> string.  Therefore,
2220 # the definitions for the cursor keys are made to match what the terminal
2221 # transmits after the <smkx> string is transmitted.  If the <smkx> string
2222 # is a null string or is not defined, then cursor keys are assumed to be in
2223 # "Cursor Mode", and the cursor keys definitions should match that assumption,
2224 # else the application may fail.  It is also expected that applications will
2225 # always transmit the <rmkx> string to the terminal before they exit.
2226 #
2227 # The VT100 series terminals have an auxiliary keypad, commonly referred to as
2228 # the "Numeric Keypad", because it is a cluster of numeric and function keys.
2229 # The Numeric Keypad which can operate in two different modes: Numeric Mode and
2230 # Application Mode.  Numeric Mode is the reset state, and is assumed to be
2231 # the normal state.  Application Mode is the "set" state.  In Numeric Mode,
2232 # the numeric and punctuation keys transmit ASCII 7-bit characters, and the
2233 # Enter key transmits the same as the Return key (Note: the Return key
2234 # can be configured to send either LF (\015) or CR LF).  In Application Mode,
2235 # all the keypad keys transmit "Esc O {code}" sequences.  The PF1 - PF4 keys
2236 # always send the same "Esc O {code}" sequences.  It is assumed that the keypad
2237 # is normally in Numeric Mode.  If an application requires that the keypad be
2238 # in Application Mode then it is expected that the user, or the application,
2239 # will set the TERM environment variable to point to a terminfo entry which has
2240 # defined the <smkx> string to include the codes that switch the keypad into
2241 # Application Mode, and the terminfo entry will also define function key
2242 # fields to match the Application Mode control codes.  If the <smkx> string
2243 # is a null string or is not defined, then the keypad is assumed to be in
2244 # Numeric Mode.  If the <smkx> string switches the keypad into Application
2245 # Mode, it is expected that the <rmkx> string will contain the control codes
2246 # necessary to reset the keypad to "Normal" mode, and it is also expected that
2247 # applications which transmit the <smkx> string will also always transmit the
2248 # <rmkx> string to the terminal before they exit.
2249 #
2250 # Here's a diagram of the VT100 keypad keys with their bindings.
2251 # The top line is the name of the key (some DEC keyboards have the keys
2252 # labelled somewhat differently, like GOLD instead of PF1, but this is
2253 # the most "official" name).  The second line is the escape sequence it
2254 # generates in Application Keypad mode (where "$" means the ESC
2255 # character).  The third line contains two items, first the mapping of
2256 # the key in terminfo, and then in termcap.
2257 #   _______________________________________
2258 #  |   PF1   |   PF2   |   PF3   |   PF4   |
2259 #  |   $OP   |   $OQ   |   $OR   |   $OS   |
2260 #  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2261 #  |    7         8         9         -    |
2262 #  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
2263 #  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
2264 #  |    4    |    5    |    6    |    ,    |
2265 #  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
2266 #  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
2267 #  |    1    |    2    |    3    |         |
2268 #  |   $Oq   |   $Or   |   $Os   |  enter  |
2269 #  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
2270 #  |         0         |   .     |         |
2271 #  |        $Op        |  $On    |         |
2272 #  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
2273 #
2274 # Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
2275 # terminfo guidelines.  That is a compromise used to assign the remaining
2276 # keys on the keypad to kf5-kf0, used on older systems with legacy termcap
2277 # support:
2278 vt100+keypad|dec vt100 numeric keypad no fkeys,
2279         ka1=\EOq, ka3=\EOs, kb2=\EOr, kc1=\EOp, kc3=\EOn,
2280 vt100+pfkeys|dec vt100 numeric keypad,
2281         kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2282         use=vt100+keypad,
2283 vt100+fnkeys|dec vt100 numeric keypad,
2284         kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
2285         kf9=\EOw, use=vt100+pfkeys,
2286 #
2287 # A better adaptation to modern keyboards such as the PC's, which have a dozen
2288 # function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
2289 # use the 5-key arrangement to model the arrow keys as suggested in the
2290 # terminfo guidelines:
2291 #   _______________________________________
2292 #  |   PF1   |   PF2   |   PF3   |   PF4   |
2293 #  |   $OP   |   $OQ   |   $OR   |   $OS   |
2294 #  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2295 #  |    7         8         9         -    |
2296 #  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
2297 #  |_ka1__K1_|_________|_ka3__K3_|_________|
2298 #  |    4    |    5    |    6    |    ,    |
2299 #  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
2300 #  |_________|_kb2__K2_|_________|_________|
2301 #  |    1    |    2    |    3    |         |
2302 #  |   $Oq   |   $Or   |   $Os   |  enter  |
2303 #  |_kc1__K4_|_________|_kc3__K5_|  $OM    |
2304 #  |         0         |   .     |         |
2305 #  |        $Op        |  $On    |         |
2306 #  |___________________|_________|_kent_@8_|
2307 #
2308 vt220+keypad|dec vt220 numeric keypad,
2309         ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs, kent=\EOM,
2310         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ka2=\EOx, kb1=\EOt,
2311         kb3=\EOv, kc2=\EOr,
2312 #
2313 vt100+enq|ncurses extension for vt100-style ENQ,
2314         u8=\E[?1;2c, use=ansi+enq,
2315 vt102+enq|ncurses extension for vt102-style ENQ,
2316         u8=\E[?6c, use=ansi+enq,
2317 #
2318 # And here, for those of you with orphaned VT100s lacking documentation, is
2319 # a description of the soft switches invoked when you do `Set Up'.
2320 #
2321 #  Scroll 0-Jump               Shifted 3   0-#
2322 #  |      1-Smooth             |           1-British pound sign
2323 #  | Autorepeat 0-Off          | Wrap Around 0-Off
2324 #  | |          1-On           | |           1-On
2325 #  | | Screen 0-Dark Bkg       | | New Line 0-Off
2326 #  | | |      1-Light Bkg      | | |        1-On
2327 #  | | | Cursor 0-Underline    | | | Interlace 0-Off
2328 #  | | | |      1-Block        | | | |         1-On
2329 #  | | | |                     | | | |
2330 #  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
2331 #                | | | |                     | | | |
2332 #                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
2333 #                | | |               1-On    | | |       1-50 Hz
2334 #                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
2335 #                | |           1-ANSI        | |                1-8 Bits
2336 #                | Keyclick 0-Off            | Parity 0-Off
2337 #                |          1-On             |        1-On
2338 #                Margin Bell 0-Off           Parity Sense 0-Odd
2339 #                            1-On                         1-Even
2340 #
2341 # The following SET-UP modes are assumed for normal operation:
2342 #       ANSI_MODE       AUTO_XON/XOFF_ON        NEWLINE_OFF     80_COLUMNS
2343 #       WRAP_AROUND_ON  JUMP_SCROLL_OFF
2344 # Other SET-UP modes may be set for operator convenience or communication
2345 # requirements; I recommend
2346 #       AUTOREPEAT_ON   BLOCK_CURSOR    MARGIN_BELL_OFF    SHIFTED_3_#
2347 # Unless you have a graphics add-on such as Digital Engineering's VT640
2348 # (and even then, whenever it can be arranged!) you should set
2349 #       INTERLACE_OFF
2350 #
2351 # (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
2352 vt100|vt100-am|dec vt100 (w/advanced video),
2353         OTbs, am, mc5i, msgr, xenl, xon,
2354         cols#80, it#8, lines#24, vt#3,
2355         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2356         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2357         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2358         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
2359         cuf=\E[%p1%dC, cuf1=\E[C$<2>,
2360         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
2361         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
2362         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H,
2363         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, lf1=pf1,
2364         lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
2365         rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
2366         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
2367         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
2368         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
2369         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
2370         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
2371         use=vt100+fnkeys,
2372 vt100nam|vt100-nam|vt100 no automargins,
2373         am@, xenl@, use=vt100-am,
2374 vt100-vb|dec vt100 (w/advanced video) & no beep,
2375         bel@, flash=\E[?5h\E[?5l, use=vt100,
2376
2377 # Ordinary vt100 in 132 column ("wide") mode.
2378 vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
2379         cols#132, lines#24,
2380         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
2381 vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin),
2382         cols#132, lines#14, vt@,
2383         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam,
2384
2385 # vt100 with no advanced video.
2386 vt100-nav|vt100 without advanced video option,
2387         xmc#1,
2388         blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m,
2389         smul@, use=vt100,
2390 vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option),
2391         cols#132, lines#14, use=vt100-nav,
2392
2393 # vt100 with one of the 24 lines used as a status line.
2394 # We put the status line on the top.
2395 vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline,
2396         eslok, hs,
2397         lines#23,
2398         clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr,
2399         cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8,
2400         fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8,
2401         tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am,
2402
2403 # Status line at bottom.
2404 # Clearing the screen will clobber status line.
2405 vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline,
2406         eslok, hs,
2407         lines#23,
2408         dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H,
2409         tsl=\E7\E[24;%p1%dH\E[1K, use=vt100-am,
2410
2411 # Most of the `vt100' emulators out there actually emulate a vt102
2412 # This entry (or vt102-nsgr) is probably the right thing to use for
2413 # these.
2414 vt102|dec vt102,
2415         dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h,
2416         use=vt100,
2417 vt102-w|dec vt102 in wide mode,
2418         cols#132,
2419         rs3=\E[?3h, use=vt102,
2420
2421 # Many brain-dead PC comm programs that pretend to be `vt100-compatible'
2422 # fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
2423 # string in the canonical vt100 entry above leaves the screen littered
2424 # with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
2425 # after highlight turnoffs.  This entry should fix that, and even leave
2426 # ACS support working, at the cost of making multiple-highlight changes
2427 # slightly more expensive.
2428 # From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
2429 vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes),
2430         sgr@, sgr0=\E[m, use=vt102,
2431
2432 # VT125 Graphics CRT.  Clear screen also erases graphics
2433 # Some vt125's came configured with vt102 support.
2434 vt125|vt125 graphics terminal,
2435         mir,
2436         clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
2437
2438 # This isn't a DEC entry, it came from University of Wisconsin.
2439 # (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
2440 vt131|dec vt131,
2441         OTbs, am, xenl,
2442         cols#80, it#8, lines#24, vt#3,
2443         bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
2444         clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2445         cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
2446         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
2447         ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
2448         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
2449         kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
2450         kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>,
2451         rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>,
2452         rmul=\E[m$<2/>,
2453         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
2454         sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
2455         smso=\E[7m$<2/>, smul=\E[4m$<2/>,
2456
2457 # vt132 - like vt100 but slower and has ins/del line and such.
2458 # I'm told that <smir>/<rmir> are backwards in the terminal from the
2459 # manual and from the ANSI standard, this describes the actual
2460 # terminal. I've never actually used a vt132 myself, so this
2461 # is untested.
2462 #
2463 vt132|DEC vt132,
2464         xenl,
2465         dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
2466         ip=$<7>, rmir=\E[4h, smir=\E[4l, use=vt100,
2467
2468 # This vt220 description maps F5--F9 to the second block of function keys
2469 # at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
2470 # with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
2471 # PF1--PF4 are used as F1--F4.
2472 #
2473 # added msgr -TD
2474 vt220-old|vt200-old|DEC VT220 in vt100 emulation mode,
2475         OTbs, OTpt, am, mir, msgr, xenl, xon,
2476         cols#80, lines#24, vt#3,
2477         OTnl=^J,
2478         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2479         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
2480         clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
2481         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
2482         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2483         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2484         if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>,
2485         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B,
2486         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP,
2487         kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
2488         kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~,
2489         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rc=\E8,
2490         rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
2491         ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2492         rmso=\E[27m, rmul=\E[24m,
2493         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
2494         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2495         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2496         smso=\E[7m, smul=\E[4m,
2497
2498 # A much better description of the VT200/220; used to be vt220-8
2499 # changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
2500 # designation to accommodate bug in pcvt -TD
2501 vt220|vt200|dec vt220,
2502         OTbs, am, mir, msgr, xenl, xon,
2503         cols#80, it#8, lines#24, vt#3,
2504         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2505         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
2506         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2507         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2508         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2509         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2510         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
2511         flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
2512         ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
2513         il=\E[%p1%dL, il1=\E[L, ind=\ED,
2514         is2=\E[?7h\E[>\E[?1h\E F\E[?4l, kbs=^H, kcub1=\E[D,
2515         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~,
2516         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2517         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
2518         kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
2519         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
2520         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
2521         lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, nel=\EE, rc=\E8, rev=\E[7m,
2522         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2523         rmso=\E[27m, rmul=\E[24m, rs1=\E[?3l, sc=\E7,
2524         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2525         sgr0=\E[m\E(B, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2526         smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=ansi+pp,
2527         use=ansi+enq,
2528 vt220-w|vt200-w|DEC vt220 in wide mode,
2529         cols#132,
2530         rs3=\E[?3h, use=vt220,
2531 vt220-8bit|vt220-8|vt200-8bit|vt200-8|dec vt220/200 in 8-bit mode,
2532         OTbs, am, mc5i, mir, msgr, xenl, xon,
2533         cols#80, it#8, lines#24, vt#3,
2534         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2535         bel=^G, blink=\2335m, bold=\2331m, clear=\233H\233J, cr=^M,
2536         csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
2537         cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C,
2538         cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
2539         dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
2540         ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K, enacs=\E)0,
2541         flash=\233?5h$<200/>\233?5l, home=\233H, ht=^I, hts=\EH,
2542         ich=\233%p1%d@, if=/usr/share/tabset/vt100,
2543         il=\233%p1%dL, il1=\233L, ind=\ED,
2544         is2=\233?7h\233>\233?1h\E F\233?4l, kbs=^H,
2545         kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
2546         kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
2547         kf13=\23325~, kf14=\23326~, kf17=\23331~, kf18=\23332~,
2548         kf19=\23333~, kf2=\EOQ, kf20=\23334~, kf3=\EOR, kf4=\EOS,
2549         kf6=\23317~, kf7=\23318~, kf8=\23319~, kf9=\23320~,
2550         kfnd=\2331~, khlp=\23328~, khome=\233H, kich1=\2332~,
2551         knp=\2336~, kpp=\2335~, krdo=\23329~, kslt=\2334~, lf1=pf1,
2552         lf2=pf2, lf3=pf3, lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i,
2553         nel=\EE, rc=\E8, rev=\2337m, ri=\EM, rmacs=\E(B,
2554         rmam=\233?7l, rmir=\2334l, rmso=\23327m, rmul=\23324m,
2555         rs1=\233?3l, sc=\E7,
2556         sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2557         sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h, smir=\2334h,
2558         smso=\2337m, smul=\2334m, tbc=\2333g,
2559
2560 # vt220d:
2561 # This vt220 description regards F6--F10 as the second block of function keys
2562 # at the top of the keyboard.  This mapping follows the description given
2563 # in the VT220 Programmer Reference Manual and agrees with the labeling
2564 # on some terminals that emulate the vt220.  There is no support for an F5.
2565 # See vt220 for an alternate mapping.
2566 #
2567 vt220d|DEC VT220 in vt100 mode with DEC function key labeling,
2568         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2569         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2570         kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~,
2571         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, use=vt220-old,
2572
2573 vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins,
2574         am@,
2575         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2576
2577 # vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2578 # (not an official DEC entry!)
2579 # The problem with real vt220 terminals is they don't send escapes when in
2580 # in vt220 mode.  This can be gotten around two ways.  1> don't send
2581 # escapes or 2> put the vt220 into vt100 mode and use all the nifty
2582 # features of vt100 advanced video which it then has.
2583 #
2584 # This entry takes the view of putting a vt220 into vt100 mode so
2585 # you can use the escape key in emacs and everything else which needs it.
2586 #
2587 # You probably don't want to use this on a VMS machine since VMS will think
2588 # it has a vt220 and will get fouled up coming out of emacs
2589 #
2590 # From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2591 # (Added vt100 <rc>,<sc> to quiet a tic warning -- esr)
2592 # added msgr -TD
2593 vt200-js|vt220-js|dec vt200 series with jump scroll,
2594         am, msgr,
2595         cols#80,
2596         bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2597         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2598         cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
2599         ht=^I, il1=\E[L, ind=\ED,
2600         is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1l\E[?5l\E[?6l\E[?7h\E[?8h\E[?25h\E>\E[m,
2601         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2602         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=^M\ED, rc=\E8,
2603         rf=/usr/share/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l,
2604         rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m,
2605         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, smdc=,
2606         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
2607
2608 # This was DEC's vt320.  Use the purpose-built one below instead
2609 #vt320|DEC VT320 in vt100 emulation mode,
2610 #       use=vt220,
2611
2612 # Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
2613 #
2614 vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode,
2615         am@,
2616         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2617
2618 # These entries are not DEC's official ones, they were purpose-built for the
2619 # VT320.  Here are the designer's notes:
2620 # <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to
2621 # 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2622 # khome is Home on a PC kbd.  Actually 'FIND' on a VT.
2623 # Things that use <knxt> usually use tab anyways... and things that don't use
2624 # tab usually use <knxt> instead...
2625 # kprv is same as tab - Backtab is useless...
2626 # I left out <sgr> because of its RIDICULOUS complexity,
2627 # and the resulting fact that it causes the termcap translation of the entry
2628 # to SMASH the 1k-barrier...
2629 # From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2630 # (vt320: uncommented <fsl> --esr)
2631 vt320|vt300|dec vt320 7 bit terminal,
2632         am, hs, mir, msgr, xenl,
2633         cols#80, lines#24, wsl#80,
2634         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2635         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2636         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2637         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2638         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2639         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2640         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2641         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
2642         hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
2643         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2644         kbs=\177, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2645         kdch1=\E[3~, kel=\E[4~, kf10=\E[21~, kf11=\E[23~,
2646         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2647         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2648         kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2649         kf9=\E[20~, khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I,
2650         kpp=\E[5~, kprv=\E[Z, kslt=\E[4~, nel=\EE, rc=\E8, rev=\E[7m,
2651         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2652         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
2653         rmul=\E[m,
2654         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2655         sc=\E7,
2656         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2657         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2658         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2659         use=dec+pp, use=vt220+keypad, use=dec+sl, use=ansi+enq,
2660 vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy,
2661         am@,
2662         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2663         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2664         use=vt320,
2665 # We have to init 132-col mode, not 80-col mode.
2666 vt320-w|vt300-w|dec vt320 wide 7 bit terminal,
2667         cols#132, wsl#132,
2668         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2669         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2670         use=vt320,
2671 vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am,
2672         am@,
2673         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2674         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2675         use=vt320-w,
2676
2677 # VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2678 #   which are pretty much a superset of the VT320.  They have the
2679 #   host writable status line, yet another different DRCS matrix size,
2680 #   and such, but they add the DEC Technical character set, Multiple text
2681 #   pages, selectable length pages, and the like.  The difference between
2682 #   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
2683 #   monitor, the former has 4 planes and a color monitor.  These terminals
2684 #   support VT131 and ANSI block mode, but as with much of these things,
2685 #   termcap/terminfo doesn't deal with these features.
2686 #
2687 # Note that this entry is are set up in what was the standard way for GNU
2688 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2689 # keys were switched into application mode at the same time the numeric pad
2690 # is switched into application mode.  This changes the definitions of the
2691 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2692 # your termcap or terminfo entry,
2693 #
2694 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2695 # (vt340: string capability "sb=\E[M" corrected to "sr";
2696 # also, added <rmam>/<smam> based on the init string -- esr)
2697 vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page,
2698         am, eslok, hs, mir, msgr, xenl, xon,
2699         cols#80, it#8, lines#24, vt#3,
2700         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2701         blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
2702         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2703         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
2704         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2705         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
2706         dl=\E[%p1%dM, dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$},
2707         ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$},
2708         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
2709         il1=\E[L, ind=\ED,
2710         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2711         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2712         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2713         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2714         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2715         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2716         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2717         rmul=\E[24m, rs1=\E[?3l, sc=\E7,
2718         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2719         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2720         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2721         tsl=\E[2$~\E[1$}\E[1;%dH,
2722
2723 # DEC doesn't supply a vt400 description, so we add Daniel Glasser's
2724 # (originally written with vt420 as its primary name, and usable for it).
2725 #
2726 # VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple
2727 #    text pages and long text pages with selectable length of the vt340, along
2728 #    with left and right margins, rectangular area text copy, fill, and erase
2729 #    operations, selected region character attribute change operations,
2730 #    page memory and rectangle checksums, insert/delete column, reception
2731 #    macros, and other features too numerous to remember right now.  TERMCAP
2732 #    can only take advantage of a few of these added features.
2733 #
2734 # Note that this entry is are set up in what was the standard way for GNU
2735 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2736 # keys were switched into application mode at the same time the numeric pad
2737 # is switched into application mode.  This changes the definitions of the
2738 # arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2739 # your termcap entry,
2740 #
2741 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2742 # (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2743 # also, added <rmam>/<smam> based on the init string -- esr)
2744 vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap,
2745         am, eslok, hs, mir, msgr, xenl, xon,
2746         cols#80, it#8, lines#24, vt#3,
2747         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2748         blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2749         clear=\E[H\E[J$<10/>, cnorm=\E[?25h, cr=^M,
2750         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2751         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2752         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2753         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2754         dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>,
2755         el=\E[K$<4/>, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$},
2756         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2757         il=\E[%p1%dL, il1=\E[L, ind=\ED,
2758         is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2759         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2760         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2761         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2762         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2763         rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2764         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2765         rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7,
2766         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2767         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2768         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2769         tsl=\E[2$~\E[1$}\E[1;%dH, use=dec+sl,
2770
2771 # (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
2772 # a missing <sc> -- esr)
2773 # add msgr and other capabilities from vt220 -TD
2774 vt420|DEC VT420,
2775         am, mir, msgr, xenl, xon,
2776         cols#80, it#8, lines#24, vt#3,
2777         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2778         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
2779         clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
2780         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2781         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2782         cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA, cuu1=\E[A,
2783         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2784         ech=\E[%p1%dX, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K,
2785         enacs=\E)0, flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I,
2786         hts=\EH, ich=\E[%p1%d@, if=/usr/share/tabset/vt300,
2787         il=\E[%p1%dL, il1=\E[L, ind=\ED, is2=\E[1;24r\E[24;1H,
2788         is3=\E[?67h\E[64;1"p, kbs=^H, kcub1=\E[D, kcud1=\E[B,
2789         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP, kf10=\E[29~,
2790         kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~,
2791         kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, kfnd=\E[1~,
2792         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, nel=\EE,
2793         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2794         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
2795         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2796         rmso=\E[27m, rmul=\E[24m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2797         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2798         sgr0=\E[m\E(B$<2>, smacs=\E(0$<2>, smam=\E[?7h,
2799         smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2800         use=ansi+pp, use=dec+sl, use=ansi+enq,
2801
2802 # DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
2803 # takes two parameters, the key and the string.  Translating the key is
2804 # straightforward (keys 1-5 are not defined on real terminals, though some
2805 # emulators define these):
2806 #
2807 #               if (key < 16) then  value = key;
2808 #               else if (key < 21) then value = key + 1;
2809 #               else if (key < 25) then value = key + 2;
2810 #               else if (key < 27) then value = key + 3;
2811 #               else if (key < 30) then value = key + 4;
2812 #               else value = key + 5;
2813 #
2814 # The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
2815 # There's no provision in terminfo for emitting a string in this format, so the
2816 # application has to know it.
2817 #
2818 vt420pc|DEC VT420 w/PC keyboard,
2819         kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~,
2820         kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~,
2821         kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
2822         kf18=\E[17;2~, kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~,
2823         kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[23;2~,
2824         kf24=\E[24;2~, kf25=\E[23~, kf26=\E[24~, kf27=\E[25~,
2825         kf28=\E[26~, kf29=\E[28~, kf3=\E[13~, kf30=\E[29~,
2826         kf31=\E[31~, kf32=\E[32~, kf33=\E[33~, kf34=\E[34~,
2827         kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~, kf38=\E[24;2~,
2828         kf39=\E[25;2~, kf4=\E[14~, kf40=\E[26;2~, kf41=\E[28;2~,
2829         kf42=\E[29;2~, kf43=\E[31;2~, kf44=\E[32;2~,
2830         kf45=\E[33;2~, kf46=\E[34;2~, kf47=\E[35;2~,
2831         kf48=\E[36;2~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2832         kf8=\E[19~, kf9=\E[20~, khome=\E[H,
2833         pctrm=USR_TERM\:vt420pcdos\:,
2834         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\\,
2835         use=vt420,
2836
2837 vt420pcdos|DEC VT420 w/PC for DOS Merge,
2838         lines#25,
2839         dispc=%?%p1%{19}%=%t\E\023\021%e%p1%{32}%<%t\E%p1%c%e%p1%{127}%=%t\E\177%e%p1%c%;,
2840         pctrm@,
2841         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@,
2842         sgr0=\E[m, smsc=\E[?1;2r\E[34h, use=vt420pc,
2843
2844 vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys,
2845         kdch1=\177, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
2846         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2847         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2848         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
2849         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2850         khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS,
2851         use=vt420,
2852
2853 vt510|DEC VT510,
2854         use=vt420,
2855 vt510pc|DEC VT510 w/PC keyboard,
2856         use=vt420pc,
2857 vt510pcdos|DEC VT510 w/PC for DOS Merge,
2858         use=vt420pcdos,
2859
2860 # VT520/VT525
2861 #
2862 # The VT520 is a monochrome text terminal capable of managing up to
2863 # four independent sessions in the terminal.  It has multiple ANSI
2864 # emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
2865 # and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
2866 # 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
2867 #
2868 # Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
2869 # [Alt]/[Print Screen] depending upon which keyboard and which
2870 # terminal mode is being used.  If Set-Up has been disabled or
2871 # assigned to an unknown key, Set-Up may be entered by pressing
2872 # [F3] as the first key after power up, regardless of keyboard type.
2873 # (vt520: I added <rmam>/<smam> based on the init string, also <sc> -- esr)
2874 # added msgr -TD
2875 vt520|DEC VT520,
2876         am, mir, msgr, xenl, xon,
2877         cols#80, lines#24, vt#3,
2878         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2879         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2880         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2881         cub1=^H, cud1=\E[B, cuf1=\E[C,
2882         cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2883         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2884         if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2885         is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2886         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2887         kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2888         kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2889         kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2890         kslt=\E[4~,
2891         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\\,
2892         rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2893         ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2894         rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2895         rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2896         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2897         sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2898         smso=\E[7m, smul=\E[4m, use=ansi+tabs, use=ansi+enq,
2899         use=dec+sl,
2900
2901 vt525|DEC VT525,
2902         use=vt520,
2903
2904 #### VT100 emulations
2905 #
2906
2907 # John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
2908 # (the best Windows telnet as of September 1995) presents the name `dec-vt100'
2909 # to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
2910 # that this works best with a stock vt100 entry.
2911 dec-vt100|EWAN telnet's vt100 emulation,
2912         use=vt100,
2913
2914 # From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
2915 dec-vt220|DOS tnvt200 terminal emulator,
2916         am@, use=vt220,
2917
2918 # Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
2919 # anyone who needs PC VT340 emulation. (or anything below that level, for
2920 # that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
2921 # RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
2922 # I can send the address if requested.
2923 # (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
2924 # From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2925 z340|zstem vt340 terminal emulator 132col 42line,
2926         lines#42,
2927         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2928         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2929         use=vt320-w,
2930 z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins),
2931         am@,
2932         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2933         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2934         use=z340,
2935
2936 # CRT is shareware.  It implements some xterm features, including mouse.
2937 crt|crt-vt220|CRT 2.3 emulating VT220,
2938         bce, msgr,
2939         ncv@,
2940         hts=\EH, use=vt100+enq, use=vt220, use=ecma+color,
2941
2942 # PuTTY 0.55 (released 3 August 2004)
2943 # http://www.chiark.greenend.org.uk/~sgtatham/putty/
2944 #
2945 # Comparing with 0.51, vttest is much better (only a few problems with the
2946 # cursor position reports and wrapping).
2947 #
2948 # PuTTY 0.51 (released 14 December 2000)
2949 #
2950 # This emulates vt100 + vt52 (plus a few vt220 features:  ech, SRM, DECTCEM, as
2951 # well as SCO and Atari, color palettes from Linux console).  Reading the code,
2952 # it is intended to be VT102 plus selected features.  By default, it sets $TERM
2953 # to xterm, which is incorrect, since several features are misimplemented:
2954 #
2955 #       Alt+key always sends ESC+key, so 'km' capability is removed.
2956 #
2957 #       Control responses, wrapping and tabs are buggy, failing a couple of
2958 #       screens in vttest.
2959 #
2960 #       xterm mouse support is not implemented (unrelease version may).
2961 #
2962 # Several features such as backspace/delete are optional; this entry documents
2963 # the default behavior -TD
2964
2965 putty|PuTTY terminal emulator,
2966         am, bce, bw, ccc, mir, msgr, xenl, xon, XT,
2967         colors#8, it#8, ncv#22, pairs#64, U8#1,
2968         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2969         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
2970         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
2971         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2972         cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
2973         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
2974         dch=\E[%p1%dP, dch1=\E[P,
2975         dispc=%?%p1%{8}%=%t\E%%G\342\227\230\E%%@%e%p1%{10}%=%t\E%%G\342\227\231\E%%@%e%p1%{12}%=%t\E%%G\342\231\0\E%%@%e%p1%{13}%=%t\E%%G\342\231\252\E%%@%e%p1%{14}%=%t\E%%G\342\231\253\E%%@%e%p1%{15}%=%t\E%%G\342\230\274\E%%@%e%p1%{27}%=%t\E%%G\342\206\220\E%%@%e%p1%{155}%=%t\E%%G\340\202\242\E%%@%e%p1%c%;,
2976         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
2977         el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H,
2978         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L,
2979         ind=^J, indn=\E[%p1%dS,
2980         initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
2981         is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>\E]R,
2982         kb2=\E[G, kbs=\177, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
2983         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~,
2984         kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
2985         kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
2986         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[12~,
2987         kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
2988         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2989         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2990         kspd=^Z, nel=^M^J, oc=\E]R, op=\E[39;49m, rc=\E8, rev=\E[7m,
2991         ri=\EM, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l,
2992         rmcup=\E[2J\E[?47l, rmir=\E[4l, rmpch=\E[10m,
2993         rmso=\E[27m, rmul=\E[24m,
2994         rs2=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l,
2995         s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m, sc=\E7,
2996         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
2997         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2998         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[?47h,
2999         smir=\E[4h, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
3000         tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt102+enq, use=xterm+sl,
3001 vt100-putty|Reset PuTTY to pure vt100,
3002         rs2=\E<\E["p\Ec\E[?3l\E]R\E[40"p\E[61"p\E[50;1;2"p,
3003         use=vt100,
3004 # palette is hardcoded...
3005 putty-256color|PuTTY 0.58 with xterm 256-colors,
3006         initc@, use=xterm+256color, use=putty,
3007
3008 # One of the keyboard selections is "VT100+".
3009 # pterm (the X11 port) uses shifted F1-F10 as F11-F20
3010 putty-vt100|VT100+ keyboard layout,
3011         kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EO[, kf2=\EOQ,
3012         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
3013         kf9=\EOX, use=putty,
3014
3015 # Unlike xterm-sco, this leaves kmous ambiguous with kf1.
3016 #
3017 # Use modifiers to obtain function keys past 12:
3018 # F1-F12 - normal
3019 # F13-F24 - shift
3020 # F25-F36 - control/alt
3021 # F37-F48 - control/shift
3022 #
3023 putty-sco|putty with SCO function keys,
3024         kbeg=\E[E, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3025         kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
3026         kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
3027         kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
3028         kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
3029         kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
3030         kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
3031         kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
3032         kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
3033         kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
3034         kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
3035         kich1=\E[L, knp=\E[G, kpp=\E[I, use=putty,
3036
3037 # This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
3038 # T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
3039 # (communication program) which supports:
3040 #
3041 #       - Serial port connections.
3042 #       - TCP/IP (telnet) connections.
3043 #       - VT100 emulation, and selected VT200/300 emulation.
3044 #       - TEK4010 emulation.
3045 #       - File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
3046 #         Quick-VAN).
3047 #       - Scripts using the "Tera Term Language".
3048 #       - Japanese and Russian character sets.
3049 #
3050 # The program does not come with terminfo or termcap entries.  However, the
3051 # emulation (testing with vttest and ncurses) is reasonably close to vt100 (no
3052 # vt52 or doublesize character support; blinking is done with color).  Besides
3053 # the HPA, VPA extensions it also implements CPL and CNL.
3054 #
3055 # All of the function keys can be remapped.  This description shows the default
3056 # mapping, as installed.  Both vt100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
3057 # are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
3058 # is laid out like vt220, rather than the face codes on the PC keyboard, i.e,
3059 #       kfnd    Insert
3060 #       kslt    Delete
3061 #       kich1   Home
3062 #       kdch1   PageUp
3063 #       kpp     End
3064 #       knp     PageDown
3065 #
3066 # ANSI colors are implemented, but cannot be combined with video attributes
3067 # except for reverse.
3068 #
3069 # No fonts are supplied with the program, so the acsc string is chosen to
3070 # correspond with the default Microsoft terminal font.
3071 #
3072 # Tera Term recognizes some xterm sequences, including those for setting and
3073 # retrieving the window title, and for setting the window size (i.e., using
3074 # "resize -s"), though it does not pass SIGWINCH to the application if the
3075 # user resizes the window with the mouse.
3076 teraterm2.3|Tera Term Pro,
3077         km, xon@,
3078         ncv#43, vt@,
3079         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
3080         blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
3081         cnorm=\E[?25h, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
3082         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
3083         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
3084         flash=\E[?5h\E[?5l$<200/>, hpa=\E[%i%p1%dG,
3085         il=\E[%p1%dL, il1=\E[L, kdch1=\E[3~, kf1=\E[11~,
3086         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
3087         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
3088         kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
3089         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
3090         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~,
3091         kpp=\E[5~, kslt=\E[4~, op=\E[100m, rev=\E[7m, ri=\EM,
3092         rmso=\E[27m, rmul=\E[24m, sgr0=\E[0m\017, smso=\E[7m,
3093         smul=\E[4m, vpa=\E[%i%p1%dd, use=vt100+enq,
3094         use=klone+color, use=vt100,
3095
3096 # Version 4.59 has regular vt100 line-drawing (so it is no longer necessary
3097 # to choose a Windows OEM font).
3098 #
3099 # Testing with tack:
3100 #       - it does not have xenl (suppress that)
3101 #       - underline seems to work with color (modify ncv).
3102 # Testing with vttest:
3103 #       - wrapping differs from vt100 (menu 1).
3104 #       - it recognizes xterm's X10 and normal mouse tracking, but none of the
3105 #         other flavors.
3106 #       - it recognizes the dtterm window controls for reporting size in
3107 #         characters and pixels.
3108 #       - it passes SIGWINCH.
3109 teraterm4.59|Tera Term Pro,
3110         bce, xenl@,
3111         ncv#41,
3112         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3113         kmous=\E[M, use=teraterm2.3,
3114
3115 teraterm|Tera Term,
3116         use=teraterm4.59,
3117
3118 # Tested with WinNT 4.0, the telnet application assumes the screensize is
3119 # 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
3120 #
3121 # Other notes:
3122 # a) Fails tack's cup (cursor-addressing) test, though cup works well enough
3123 #    for casual (occasional) use.  Also fails several of the vttest screens,
3124 #    but that is not unusual for vt100 "emulators".
3125 # b) Does not implement vt100 keypad
3126 # c) Recognizes a subset of vt52 controls.
3127 ms-vt100|MS telnet imitating dec vt100,
3128         lines#25,
3129         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
3130         ka1@, ka3@, kb2@, kc1@, kc3@, kent@, kf0@, kf1@, kf10@, kf2@, kf3@, kf4@,
3131         kf5@, kf6@, kf7@, kf8@, kf9@, tbc@, use=vt102+enq, use=vt100,
3132
3133 # Tested with Windows 2000, the telnet application runs in a console window,
3134 # also using 'Terminal' font.
3135 #
3136 # Other notes:
3137 # a) This version has no function keys or numeric keypad.  Unlike the older
3138 #    version, the numeric keypad is entirely ignored.
3139 # b) The program sets $TERM to "ansi", which of course is inaccurate.
3140 ms-vt100-color|vtnt|windows 2000 ansi (sic),
3141         bce,
3142         dch=\E[%p1%dP, ich=\E[%p1%d@, use=ecma+color,
3143         use=ms-vt100,
3144
3145 # Based on comments from Federico Bianchi:
3146 #
3147 #       vt100+ is basically a VT102-noSGR with ANSI.SYS colors and a different
3148 #       scheme for PF keys.
3149 #
3150 # and PuTTY wishlist:
3151 #
3152 #       The modifiers are represented as the codes listed above, prefixed to
3153 #       the normal sequences.  If the modifier is pressed alone, its sequence
3154 #       is transmitted twice in succession.  If multiple modifiers apply,
3155 #       they're transmitted in the order shift, control, alt.
3156 #
3157 #       Shift   \E^S
3158 #       Alt     \E^A,
3159 #       Ctrl    \E^C,
3160 ms-vt100+|vt100+|windows XP vt100+ (sic),
3161         kdch1=\E-, kend=\Ek, kf1=\E1, kf10=\E0, kf11=\E!, kf12=\E@,
3162         kf13=\E\023\E1, kf14=\E\023\E2, kf15=\E\023\E3,
3163         kf16=\E\023\E4, kf17=\E\023\E5, kf18=\E\023\E6,
3164         kf19=\E\023\E7, kf2=\E2, kf20=\E\023\E8, kf21=\E\023\E9,
3165         kf22=\E\023\E0, kf23=\E\023\E!, kf24=\E\023\E@,
3166         kf25=\E\003\E1, kf26=\E\003\E2, kf27=\E\003\E3,
3167         kf28=\E\003\E4, kf29=\E\003\E5, kf3=\E3, kf30=\E\003\E6,
3168         kf31=\E\003\E7, kf32=\E\003\E8, kf33=\E\003\E9,
3169         kf34=\E\003\E0, kf35=\E\003\E!, kf36=\E\003\E@,
3170         kf37=\E\001\E1, kf38=\E\001\E2, kf39=\E\001\E3, kf4=\E4,
3171         kf40=\E\001\E4, kf41=\E\001\E5, kf42=\E\001\E6,
3172         kf43=\E\001\E7, kf44=\E\001\E8, kf45=\E\001\E9,
3173         kf46=\E\001\E0, kf47=\E\001\E!, kf48=\E\001\E@, kf5=\E5,
3174         kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, khome=\Eh, kich1=\E+,
3175         knp=\E/, kpp=\E?, use=ms-vt100-color,
3176
3177 ms-vt-utf8|vt-utf8|UTF-8 flavor of vt100+,
3178         use=ms-vt100+,
3179
3180 # expect-5.44.1.15/example/tkterm
3181 # a minimal subset of a vt100 (compare with "news-unk).
3182 #
3183 # The missing "=" in smkx is not a typo (here), but an error in tkterm.
3184 tt|tkterm|Don Libes' tk text widget terminal emulator,
3185         clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3186         cup=\E[%p1%d;%p2%dH, cuu1=\E[A, ind=^J, kf1=\EOP, kf2=\EOQ,
3187         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
3188         kf9=\EOX, rmkx=\E[?1l\E>, rmso=\E[m, smkx=\E[?1h\E,
3189         smso=\E[7m,
3190
3191 ######## X TERMINAL EMULATORS
3192 #### XTERM
3193 #
3194 # You can add the following line to your .Xdefaults to change the terminal type
3195 # set by the xterms you start up to my-xterm:
3196 #
3197 # *termName:  my-xterm
3198 #
3199 # System administrators can change the default entry for xterm instances
3200 # by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
3201 # case, xterm will detect and reject an invalid terminal type, falling back
3202 # to the default of xterm.
3203 #
3204
3205 # X10/6.6       11/7/86, minus alternate screen, plus (csr)
3206 # (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
3207 # removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
3208 # as these seem not to work -- esr)
3209 x10term|vs100-x10|xterm terminal emulator (X10 window system),
3210         OTbs, am, km, mir, msgr, xenl, xon,
3211         cols#80, it#8, lines#65,
3212         bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
3213         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
3214         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
3215         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
3216         il1=\E[L, ind=^J, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
3217         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
3218         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l,
3219         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3220         sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
3221         smso=\E[7m, smul=\E[4m,
3222 # Compatible with the R5 xterm
3223 # (from the XFree86 3.2 distribution, <blink=@> removed)
3224 # added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
3225 # corrected typos in rs2 string - TD
3226 # added u6-u9 -TD
3227 xterm-r5|xterm R5 version,
3228         OTbs, am, km, msgr, xenl,
3229         cols#80, it#8, lines#24,
3230         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3231         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3232         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3233         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3234         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3235         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
3236         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD,
3237         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
3238         kdl1=\E[31~, kel=\E[8~, kend=\E[4~, kf0=\EOq, kf1=\E[11~,
3239         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
3240         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
3241         kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
3242         kil1=\E[30~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8,
3243         rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
3244         rmul=\E[m,
3245         rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
3246         sc=\E7,
3247         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
3248         sgr0=\E[m, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
3249         smul=\E[4m, tbc=\E[3g, use=vt100+enq,
3250 # Compatible with the R6 xterm
3251 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
3252 # added khome/kend, hts based on the R6 xterm code - TD
3253 # (khome/kend do not actually work in X11R5 or X11R6, but many people use this
3254 # for compatibility with other emulators).
3255 xterm-r6|xterm-old|xterm X11R6 version,
3256         OTbs, am, km, mir, msgr, xenl,
3257         cols#80, it#8, lines#24,
3258         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3259         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3260         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3261         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3262         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3263         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3264         el=\E[K, enacs=\E)0, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
3265         il1=\E[L, ind=^J,
3266         is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8, kbs=^H,
3267         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
3268         kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
3269         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
3270         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
3271         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
3272         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3273         kfnd=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
3274         kslt=\E[4~, meml=\El, memu=\Em, rc=\E8, rev=\E[7m, ri=\EM,
3275         rmacs=^O, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
3276         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3277         rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8, sc=\E7,
3278         sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
3279         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
3280         use=vt100+enq,
3281 # This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
3282 # The name has been changed and some aliases have been removed.
3283 xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
3284         OTbs, am, bce, km, mir, msgr, xenl, XT,
3285         cols#80, it#8, lines#24, ncv@,
3286         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3287         bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
3288         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
3289         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3290         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3291         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3292         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
3293         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
3294         flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
3295         ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
3296         il1=\E[L, ind=^J,
3297         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
3298         kbeg=\EOE, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
3299         kcuu1=\EOA, kdch1=\177, kend=\EOF, kf1=\E[11~, kf10=\E[21~,
3300         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
3301         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
3302         kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
3303         kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
3304         kf9=\E[20~, kfnd=\E[1~, khome=\EOH, kich1=\E[2~,
3305         kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El,
3306         memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
3307         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>,
3308         rmso=\E[27m, rmul=\E[24m, rs1=^O,
3309         rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sc=\E7,
3310         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3311         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3312         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3313         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
3314         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
3315         tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt100+enq,
3316         use=ecma+color, use=vt220+keypad,
3317
3318 # This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
3319 # codes for F1-F4 except while in VT220 mode.
3320 xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System),
3321         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, use=xterm-xf86-v32,
3322
3323 # This version was released in XFree86 3.3.3 (November 1998).
3324 # Besides providing printer support, it exploits a new feature that allows
3325 # xterm to use terminfo-based descriptions with the titeInhibit resource.
3326 # -- the distribution contained incorrect khome/kend values -TD
3327 xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System),
3328         blink=\E[5m, ich1@, invis=\E[8m,
3329         is2=\E[!p\E[?3;4l\E[4l\E>, kdch1=\E[3~, kfnd@, kslt@,
3330         rmcup=\E[?1047l\E[?1048l, rs1=\Ec,
3331         rs2=\E[!p\E[?3;4l\E[4l\E>,
3332         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3333         smcup=\E[?1048h\E[?1047h, use=ansi+pp,
3334         use=xterm-xf86-v33,
3335
3336 # This version was released in XFree86 4.0.
3337 xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System),
3338         npc,
3339         kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
3340         kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C, ka1@,
3341         ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kdch1=\E[3~, kend=\EOF,
3342         kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
3343         kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
3344         kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
3345         kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
3346         kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, kf30=\E[17;5~,
3347         kf31=\E[18;5~, kf32=\E[19;5~, kf33=\E[20;5~,
3348         kf34=\E[21;5~, kf35=\E[23;5~, kf36=\E[24;5~, kf37=\EO6P,
3349         kf38=\EO6Q, kf39=\EO6R, kf40=\EO6S, kf41=\E[15;6~,
3350         kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
3351         kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
3352         kf48=\E[24;6~, khome=\EOH, rmcup=\E[?1049l,
3353         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3354         smcup=\E[?1049h, use=xterm-xf86-v333,
3355
3356 # This version was released in XFree86 4.3.
3357 xterm-xf86-v43|xterm terminal emulator (XFree86 4.3 Window System),
3358         kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
3359         kLFT=\E[1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C,
3360         kbeg@,
3361         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3362         use=xterm-xf86-v40,
3363
3364 # This version was released in XFree86 4.4.
3365 xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System),
3366         cnorm=\E[?12l\E[?25h, cvvis=\E[?12;25h, indn=\E[%p1%dS,
3367         rin=\E[%p1%dT, use=xterm-xf86-v43,
3368
3369 xterm-xfree86|xterm terminal emulator (XFree86),
3370         use=xterm-xf86-v44,
3371
3372 # This version reflects the current xterm features.
3373 xterm-new|modern xterm terminal emulator,
3374         npc,
3375         indn=\E[%p1%dS, kb2=\EOE, kcbt=\E[Z, kent=\EOM,
3376         rin=\E[%p1%dT, use=xterm+pcfkeys, use=xterm+tmux,
3377         use=xterm-basic,
3378
3379 # This fragment is for people who cannot agree on what the backspace key
3380 # should send.
3381 xterm+kbs|fragment for backspace key,
3382         kbs=^H,
3383 #
3384 # This fragment describes as much of XFree86 xterm's "pc-style" function
3385 # keys as will fit into terminfo's 60 function keys.
3386 # From ctlseqs.ms:
3387 #    Code     Modifiers
3388 #  ---------------------------------
3389 #     2       Shift
3390 #     3       Alt
3391 #     4       Shift + Alt
3392 #     5       Control
3393 #     6       Shift + Control
3394 #     7       Alt + Control
3395 #     8       Shift + Alt + Control
3396 #  ---------------------------------
3397 # The meta key may also be used as a modifier in this scheme, adding another
3398 # bit to the parameter.
3399 xterm+pcfkeys|fragment for PC-style fkeys,
3400         use=xterm+app, use=xterm+pcf2, use=xterm+pcc2,
3401         use=xterm+pce2,
3402 #
3403 xterm+noapp|fragment with cursor keys in normal mode,
3404         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F,
3405         khome=\E[H,
3406
3407 xterm+app|fragment with cursor keys in application mode,
3408         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\EOF,
3409         khome=\EOH,
3410 #
3411 # The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
3412 # and revised in patch #167 (2002/8/24).  Some other terminal emulators copied
3413 # the earlier scheme, as noted in the "use=" clauses in this file.
3414 #
3415 # The original assignments from patch #94 for cursor-keys had some technical
3416 # issues:
3417 #
3418 #       A parameter for a function-key to represent a modifier is just more
3419 #       bits.  But for a cursor-key it may change the behavior of the
3420 #       application.  For instance, emacs decodes the first parameter of a
3421 #       cursor-key as a repeat count.
3422 #
3423 #       A parameterized string should (really) not begin with SS3 (\EO).
3424 #       Rather, CSI (\E[) should be used.
3425 #
3426 # For these reasons, the original assignments were deprecated.  For
3427 # compatibility reasons, they are still available as a setting of xterm's
3428 # modifyCursorKeys resource.  These fragments list the modified cursor-keys
3429 # that might apply to xterm+pcfkeys with different values of that resource.
3430 xterm+pcc3|fragment with modifyCursorKeys:3,
3431         kLFT=\E[>1;2D, kRIT=\E[>1;2C, kind=\E[>1;2B,
3432         kri=\E[>1;2A, kDN=\E[>1;2B, kDN3=\E[>1;3B, kDN4=\E[>1;4B,
3433         kDN5=\E[>1;5B, kDN6=\E[>1;6B, kDN7=\E[>1;7B,
3434         kLFT3=\E[>1;3D, kLFT4=\E[>1;4D, kLFT5=\E[>1;5D,
3435         kLFT6=\E[>1;6D, kLFT7=\E[>1;7D, kRIT3=\E[>1;3C,
3436         kRIT4=\E[>1;4C, kRIT5=\E[>1;5C, kRIT6=\E[>1;6C,
3437         kRIT7=\E[>1;7C, kUP=\E[>1;2A, kUP3=\E[>1;3A,
3438         kUP4=\E[>1;4A, kUP5=\E[>1;5A, kUP6=\E[>1;6A,
3439         kUP7=\E[>1;7A,
3440
3441 xterm+pcc2|fragment with modifyCursorKeys:2,
3442         kLFT=\E[1;2D, kRIT=\E[1;2C, kind=\E[1;2B, kri=\E[1;2A,
3443         kDN=\E[1;2B, kDN3=\E[1;3B, kDN4=\E[1;4B, kDN5=\E[1;5B,
3444         kDN6=\E[1;6B, kDN7=\E[1;7B, kLFT3=\E[1;3D, kLFT4=\E[1;4D,
3445         kLFT5=\E[1;5D, kLFT6=\E[1;6D, kLFT7=\E[1;7D,
3446         kRIT3=\E[1;3C, kRIT4=\E[1;4C, kRIT5=\E[1;5C,
3447         kRIT6=\E[1;6C, kRIT7=\E[1;7C, kUP=\E[1;2A, kUP3=\E[1;3A,
3448         kUP4=\E[1;4A, kUP5=\E[1;5A, kUP6=\E[1;6A, kUP7=\E[1;7A,
3449
3450 xterm+pcc1|fragment with modifyCursorKeys:1,
3451         kLFT=\E[2D, kRIT=\E[2C, kind=\E[2B, kri=\E[2A, kDN=\E[2B,
3452         kDN3=\E[3B, kDN4=\E[4B, kDN5=\E[5B, kDN6=\E[6B, kDN7=\E[7B,
3453         kLFT3=\E[3D, kLFT4=\E[4D, kLFT5=\E[5D, kLFT6=\E[6D,
3454         kLFT7=\E[7D, kRIT3=\E[3C, kRIT4=\E[4C, kRIT5=\E[5C,
3455         kRIT6=\E[6C, kRIT7=\E[7C, kUP=\E[2A, kUP3=\E[3A,
3456         kUP4=\E[4A, kUP5=\E[5A, kUP6=\E[6A, kUP7=\E[7A,
3457
3458 xterm+pcc0|fragment with modifyCursorKeys:0,
3459         kLFT=\EO2D, kRIT=\EO2C, kind=\EO2B, kri=\EO2A, kDN=\EO2B,
3460         kDN3=\EO3B, kDN4=\EO4B, kDN5=\EO5B, kDN6=\EO6B, kDN7=\EO7B,
3461         kLFT3=\EO3D, kLFT4=\EO4D, kLFT5=\EO5D, kLFT6=\EO6D,
3462         kLFT7=\EO7D, kRIT3=\EO3C, kRIT4=\EO4C, kRIT5=\EO5C,
3463         kRIT6=\EO6C, kRIT7=\EO7C, kUP=\EO2A, kUP3=\EO3A,
3464         kUP4=\EO4A, kUP5=\EO5A, kUP6=\EO6A, kUP7=\EO7A,
3465
3466 #
3467 # Here are corresponding fragments from xterm patch #216:
3468 #
3469 xterm+pcf0|fragment with modifyFunctionKeys:0,
3470         kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3471         kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
3472         kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~, kf2=\EOQ,
3473         kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
3474         kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
3475         kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, kf3=\EOR,
3476         kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
3477         kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
3478         kf36=\E[24;5~, kf37=\EO6P, kf38=\EO6Q, kf39=\EO6R,
3479         kf4=\EOS, kf40=\EO6S, kf41=\E[15;6~, kf42=\E[17;6~,
3480         kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
3481         kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~, kf49=\EO3P,
3482         kf5=\E[15~, kf50=\EO3Q, kf51=\EO3R, kf52=\EO3S,
3483         kf53=\E[15;3~, kf54=\E[17;3~, kf55=\E[18;3~,
3484         kf56=\E[19;3~, kf57=\E[20;3~, kf58=\E[21;3~,
3485         kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~, kf61=\EO4P,
3486         kf62=\EO4Q, kf63=\EO4R, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3487 #
3488 xterm+pcf2|fragment with modifyFunctionKeys:2,
3489         kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3490         kf13=\E[1;2P, kf14=\E[1;2Q, kf15=\E[1;2R, kf16=\E[1;2S,
3491         kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~, kf2=\EOQ,
3492         kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
3493         kf23=\E[23;2~, kf24=\E[24;2~, kf25=\E[1;5P, kf26=\E[1;5Q,
3494         kf27=\E[1;5R, kf28=\E[1;5S, kf29=\E[15;5~, kf3=\EOR,
3495         kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
3496         kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
3497         kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q, kf39=\E[1;6R,
3498         kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~, kf42=\E[17;6~,
3499         kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
3500         kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~,
3501         kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q, kf51=\E[1;3R,
3502         kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
3503         kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
3504         kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
3505         kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
3506         kf8=\E[19~, kf9=\E[20~,
3507 #
3508 # Chunks from xterm #230:
3509 xterm+pce2|fragment with modifyCursorKeys:2,
3510         kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
3511         kNXT=\E[6;2~, kPRV=\E[5;2~, kich1=\E[2~, knp=\E[6~,
3512         kpp=\E[5~, kDC3=\E[3;3~, kDC4=\E[3;4~, kDC5=\E[3;5~,
3513         kDC6=\E[3;6~, kDC7=\E[3;7~, kEND3=\E[1;3F, kEND4=\E[1;4F,
3514         kEND5=\E[1;5F, kEND6=\E[1;6F, kEND7=\E[1;7F,
3515         kHOM3=\E[1;3H, kHOM4=\E[1;4H, kHOM5=\E[1;5H,
3516         kHOM6=\E[1;6H, kHOM7=\E[1;7H, kIC3=\E[2;3~, kIC4=\E[2;4~,
3517         kIC5=\E[2;5~, kIC6=\E[2;6~, kIC7=\E[2;7~, kNXT3=\E[6;3~,
3518         kNXT4=\E[6;4~, kNXT5=\E[6;5~, kNXT6=\E[6;6~,
3519         kNXT7=\E[6;7~, kPRV3=\E[5;3~, kPRV4=\E[5;4~,
3520         kPRV5=\E[5;5~, kPRV6=\E[5;6~, kPRV7=\E[5;7~,
3521         use=xterm+edit,
3522
3523 xterm+edit|fragment for 6-key editing-keypad,
3524         kdch1=\E[3~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
3525         use=xterm+pc+edit,
3526
3527 xterm+pc+edit|fragment for pc-style editing keypad,
3528         kend=\E[4~, khome=\E[1~,
3529
3530 xterm+vt+edit|fragment for vt220-style editing keypad,
3531         kfnd=\E[1~, kslt=\E[4~,
3532
3533 #
3534 # Those chunks use the new-style (the xterm oldFunctionKeys resource is false).
3535 # Alternatively, the same scheme with old-style function keys as in xterm-r6
3536 # is shown here (because that is used in mrxvt and mlterm):
3537 xterm+r6f2|xterm with oldFunctionKeys and modifyFunctionKeys:2,
3538         kf1=\E[11~, kf13=\E[11;2~, kf14=\E[12;2~, kf15=\E[13;2~,
3539         kf16=\E[14;2~, kf2=\E[12~, kf25=\E[11;5~, kf26=\E[12;5~,
3540         kf27=\E[13;5~, kf28=\E[14;5~, kf3=\E[13~, kf37=\E[11;6~,
3541         kf38=\E[12;6~, kf39=\E[13;6~, kf4=\E[14~, kf40=\E[14;6~,
3542         kf49=\E[11;3~, kf50=\E[12;3~, kf51=\E[13;3~,
3543         kf52=\E[14;3~, kf61=\E[11;4~, kf62=\E[12;4~,
3544         kf63=\E[13;4~, use=xterm+pcf2,
3545 #
3546 # This chunk is used for building the VT220/Sun/PC keyboard variants.
3547 xterm-basic|modern xterm terminal emulator - common,
3548         OTbs, am, bce, km, mir, msgr, xenl, AX, XT,
3549         colors#8, cols#80, it#8, lines#24, pairs#64,
3550         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3551         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
3552         clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=^M,
3553         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3554         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3555         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3556         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
3557         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
3558         flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
3559         ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
3560         ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>,
3561         kmous=\E[M, meml=\El, memu=\Em, op=\E[39;49m, rc=\E8,
3562         rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l,
3563         rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>,
3564         rmm=\E[?1034l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
3565         rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm,
3566         setaf=\E[3%p1%dm,
3567         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3568         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3569         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
3570         sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h,
3571         smir=\E[4h, smkx=\E[?1h\E=, smm=\E[?1034h, smso=\E[7m,
3572         smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=ansi+pp,
3573         use=xterm+kbs, use=vt100+enq,
3574
3575 # From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
3576 # In retrospect, something like xterm-r6 was intended here -TD
3577 xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1,
3578         rmso=\E[m, rmul=\E[m, use=xterm-xf86-v33,
3579
3580 # 16-colors is one of the variants of XFree86 3.3 xterm, updated for 4.0 (T.Dickey)
3581 # If configured to support 88- or 256-colors (which is fairly common in 2009),
3582 # xterm also recognizes the control sequences for initc -TD
3583 xterm-16color|xterm with 16 colors like aixterm,
3584         ccc,
3585         initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
3586         use=ibm+16color, use=xterm-new,
3587
3588 # 256-colors is a compile-time feature of XFree86 xterm beginning with
3589 # patch #111 (1999/7/10) -TD
3590 xterm+256color|xterm 256-color feature,
3591         ccc,
3592         colors#256, pairs#32767,
3593         initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
3594         setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
3595         setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
3596         setb@, setf@,
3597
3598 # 88-colors is a compile-time feature of XFree86 xterm beginning with
3599 # patch #115 (1999/9/18) -TD
3600 #
3601 # Note that the escape sequences used are the same as for 256-colors - xterm
3602 # has a different table of default color resource values.  If built for
3603 # 256-colors, it can still handle an 88-color palette by using the initc
3604 # capability.
3605 #
3606 # At this time (2007/7/14), except for rxvt 2.7.x, none of the other terminals
3607 # which support the xterm+256color feature support the associated initc
3608 # capability.  So it is cancelled in the entries which use this and/or the
3609 # xterm+256color block.
3610 #
3611 # The default color palette for the 256- and 88-colors are different.  A
3612 # given executable will have one palette (perhaps compiled-in).  If the program
3613 # supports xterm's control sequence, it can be programmed using initc.
3614 xterm+88color|xterm 88-color feature,
3615         colors#88, pairs#7744, use=xterm+256color,
3616
3617 # These variants of XFree86 3.9.16 xterm are built as a configure option.
3618 xterm-256color|xterm with 256 colors,
3619         use=xterm+256color, use=xterm-new,
3620 xterm-88color|xterm with 88 colors,
3621         use=xterm+88color, use=xterm-256color,
3622
3623 # These two are used to demonstrate the any-event mouse support, i.e., by
3624 # using an extended name "XM" which tells ncurses to put the terminal into
3625 # a special mode when initializing the xterm mouse.
3626 xterm-1002|testing xterm-mouse,
3627         XM=\E[?1002%?%p1%{1}%=%th%el%;, use=xterm-new,
3628 xterm-1003|testing xterm-mouse,
3629         XM=\E[?1003%?%p1%{1}%=%th%el%;, use=xterm-new,
3630
3631 # This chunk is based on suggestions by Ailin Nemui and Nicholas Marriott, who
3632 # asked for some of xterm's advanced features to be added to its terminfo
3633 # entry.  It defines extended capabilities not found in standard terminfo or
3634 # termcap.  These are useful in tmux, for instance, hence the name.
3635 #
3636 # One caveat in adding extended capabilities in ncurses is that if the names
3637 # are longer than two characters, then they will not be visible through the
3638 # termcap interface.
3639 #
3640 # Ms modifies the selection/clipboard.  Its parameters are
3641 #       p1 = the storage unit (clipboard, selection or cut buffer)
3642 #       p2 = the base64-encoded clipboard content.
3643
3644 # Ss is used to set the cursor style as described by the DECSCUSR
3645 #       function to a block or underline.
3646 # Se resets the cursor style to the terminal power-on default.
3647 #  
3648 # Cs and Cr set and reset the cursor colour.
3649 xterm+tmux|advanced xterm features used in tmux,
3650         Cr=\E]112\007, Cs=\E]12;%p1%s\007,
3651         Ms=\E]52;%p1%s;%p2%s\007, Se=\E[2 q, Ss=\E[%p1%d q,
3652
3653 # This is another variant, for XFree86 4.0 xterm (T.Dickey)
3654 # This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
3655 # To use it, your decTerminalID resource must be set to 200 or above.
3656 #
3657 #       HTS     \E H    \210
3658 #       RI      \E M    \215
3659 #       SS3     \E O    \217
3660 #       CSI     \E [    \233
3661 #
3662 xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
3663         OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl, AX,
3664         colors#8, cols#80, it#8, lines#24, pairs#64,
3665         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3666         bel=^G, blink=\2335m, bold=\2331m, cbt=\233Z,
3667         civis=\233?25l, clear=\233H\2332J,
3668         cnorm=\233?25l\233?25h, cr=^M, csr=\233%i%p1%d;%p2%dr,
3669         cub=\233%p1%dD, cub1=^H, cud=\233%p1%dB, cud1=^J,
3670         cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
3671         cuu=\233%p1%dA, cuu1=\233A, cvvis=\233?12;25h,
3672         dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
3673         ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
3674         flash=\233?5h$<100/>\233?5l, home=\233H,
3675         hpa=\233%i%p1%dG, ht=^I, hts=\210, ich=\233%p1%d@,
3676         il=\233%p1%dL, il1=\233L, ind=^J, invis=\2338m,
3677         is2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
3678         ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kc1=\217q,
3679         kc3=\217s, kcbt=\233Z, kcub1=\217D, kcud1=\217B,
3680         kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\2334~,
3681         kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~,
3682         kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
3683         kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
3684         kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~,
3685         kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~,
3686         kf9=\23320~, khome=\2331~, kich1=\2332~, kmous=\233M,
3687         knp=\2336~, kpp=\2335~, mc0=\233i, mc4=\2334i, mc5=\2335i,
3688         meml=\El, memu=\Em, op=\23339;49m, rc=\E8, rev=\2337m,
3689         ri=\215, rmacs=\E(B, rmam=\233?7l, rmcup=\233?1049l,
3690         rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
3691         rs1=\Ec,
3692         rs2=\E[62"p\E G\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r\E8,
3693         sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm,
3694         setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3695         setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3696         sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
3697         sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h,
3698         smcup=\233?1049h, smir=\2334h, smkx=\233?1h\E=,
3699         smso=\2337m, smul=\2334m, tbc=\2333g, u6=\233[%i%d;%dR,
3700         u7=\E[6n, u8=\233[?1;2c, u9=\E[c, vpa=\233%i%p1%dd,
3701         use=xterm+kbs,
3702
3703 xterm-hp|xterm with hpterm function keys,
3704         kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
3705         kdch1=\EP, kend=\EF, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es,
3706         kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, kich1=\EQ,
3707         knp=\ES, kpp=\ET, use=xterm-basic,
3708
3709 xterm-sco|xterm with SCO function keys,
3710         kbeg=\E[E, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3711         kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
3712         kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
3713         kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
3714         kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
3715         kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
3716         kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
3717         kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
3718         kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
3719         kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
3720         kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
3721         kich1=\E[L, kmous=\E[>M, knp=\E[G, kpp=\E[I,
3722         use=xterm-basic,
3723
3724 # The xterm-new description has all of the features, but is not completely
3725 # compatible with vt220.  If you are using a Sun or PC keyboard, set the
3726 # sunKeyboard resource to true:
3727 #       + maps the editing keypad
3728 #       + interprets control-function-key as a second array of keys, so a
3729 #         12-fkey keyboard can support vt220's 20-fkeys.
3730 #       + maps numeric keypad "+" to ",".
3731 #       + uses DEC-style control sequences for the application keypad.
3732 #
3733 xterm-vt220|xterm emulating vt220,
3734         kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
3735         kend=\E[4~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3736         kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
3737         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
3738         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3739         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
3740         use=xterm+app, use=xterm+edit, use=xterm-basic,
3741         use=vt220+keypad,
3742
3743 xterm-vt52|xterm emulating dec vt52,
3744         cols#80, it#8, lines#24,
3745         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3746         bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
3747         cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
3748         home=\EH, ht=^I, ind=^J, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3749         kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
3750         use=xterm+kbs,
3751
3752 xterm-noapp|xterm with cursor keys in normal mode,
3753         rmcup@, rmkx=\E>, smcup@, smkx=\E=, use=xterm+noapp,
3754         use=xterm,
3755
3756 xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
3757         lines#24, use=xterm,
3758
3759 # This is xterm for ncurses.
3760 xterm|xterm terminal emulator (X Window System),
3761         use=xterm-new,
3762
3763 # This entry assumes that xterm's handling of VT100 SI/SO is disabled by
3764 # setting the vt100Graphics resource to false.
3765 xterm-utf8|xterm with no VT100 line-drawing in UTF-8 mode,
3766         U8#1, use=xterm,
3767
3768 # These building-blocks allow access to the X titlebar and icon name as a
3769 # status line.  There are a few problems in using them in entries:
3770 #
3771 # a) tsl should have a parameter to denote the column on which to transfer to
3772 #    the status line.
3773 # b) the "0" code for xterm updates both icon-title and window title.  Some
3774 #    window managers such as twm (and possibly window managers descended from
3775 #    it such as tvtwm, ctwm, and vtwm) track windows by icon-name. Thus, you
3776 #    don't want to mess with icon-name when using those window managers.
3777 xterm+sl|access X title line and icon name,
3778         hs,
3779         dsl=\E]0;\007, fsl=^G, tsl=\E]0;,
3780 xterm+sl-twm|access X title line (pacify twm-descended window managers),
3781         hs,
3782         dsl=\E]2;\007, fsl=^G, tsl=\E]2;,
3783
3784 # In contrast, this block can be used for a DEC vt320 and up.  There are two
3785 # controls used.
3786 #
3787 # DECSASD (select active status display)
3788 #       \E[0$}  Main display
3789 #       \E[1$}  Status line
3790 #
3791 # DECSSDT (select status line type)
3792 #       \E[0$~  No status line
3793 #       \E[1$~  Indicator status line
3794 #       \E[2$~  Host-writable status line
3795 #
3796 # The building block assumes that the terminal always shows something at the
3797 # status line (either the indicator, or status line).  That is because if no
3798 # status line is used, then the terminal makes that line part of the user
3799 # window, changing its size without notice.
3800 #
3801 # Because there is no "esl" (enable status line) capability, the "tsl"
3802 # capability ensures that the status line is host-writable.  A DEC terminal
3803 # will clear the status line when changing from indicator to host-writable
3804 # mode.
3805 #
3806 # Once on the status line, the row part of cursor addressing is ignored.  Since
3807 # tsl expects a parameter (to specify the column), the shortest addressing that
3808 # can be used for this purpose is HPA, e.g., \E[5d to go to column 5.
3809 #
3810 dec+sl|DEC VTxx status line,
3811         eslok, hs,
3812         dsl=\E[1$~, fsl=\E[0$}, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
3813
3814 #
3815 # The following xterm variants don't depend on your base version
3816 #
3817 # xterm with bold instead of underline
3818 xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold,
3819         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;1%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
3820         smso=\E[7m, smul=\E[1m, use=xterm,
3821
3822 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
3823 xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
3824         ich@, ich1@, use=xterm,
3825 # From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996
3826 xterm1|xterm terminal emulator ignoring the alternate screen buffer,
3827         rmcup@, smcup@, use=xterm,
3828
3829 #### KTERM
3830 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
3831 # (kterm should not invoke DEC Graphics as the alternate character set
3832 #  -- Kenji Rikitake)
3833 # (proper setting of enacs, smacs, rmacs makes kterm to use DEC Graphics
3834 #  -- MATSUMOTO Shoji)
3835 # kterm implements acsc via built-in table of X Drawable's
3836 kterm|kterm kanji terminal emulator (X window system),
3837         eslok, hs, XT,
3838         ncv@,
3839         acsc=``aajjkkllmmnnooppqqrrssttuuvvwwxx~~,
3840         csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs=, fsl=\E[?F,
3841         kmous=\E[M, rc=\E8, rmacs=\E(B, rmam=\E[?7l, sc=\E7,
3842         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
3843         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h,
3844         tsl=\E[?E\E[?%i%p1%dT, use=xterm-r6, use=ecma+color,
3845 kterm-color|kterm-co|kterm with ANSI colors,
3846         ncv@, use=kterm, use=ecma+color,
3847
3848 #### Other XTERM
3849 # These (xtermc and xtermm) are distributed with Solaris.  They refer to a
3850 # variant of xterm which is apparently no longer supported, but are interesting
3851 # because they illustrate SVr4 curses mouse controls - T.Dickey
3852 xtermm|xterm terminal emulator (monocrome),
3853         OTbs, am, km, mir, msgr, xenl,
3854         btns#3, cols#80, it#8, lines#24,
3855         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3856         bel=^G, blink@, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3857         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
3858         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3859         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3860         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3861         el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY,
3862         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
3863         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD,
3864         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kf0=\EOy,
3865         kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf5=\EOT, kf6=\EOU,
3866         kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kmous=\E[^_,
3867         knp=\E[U, kpp=\E[V, rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM,
3868         rmacs=^O, rmcup=\E@0\E[?4r, rmso=\E[m,
3869         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
3870         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3871         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3872         sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
3873         smso=\E[7m, tbc=\E[3g, use=vt100+fnkeys,
3874
3875 xtermc|xterm terminal emulator (color),
3876         colors#8, ncv#7, pairs#64,
3877         op=\E[100m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
3878         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3879         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3880         use=xtermm,
3881
3882 # From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
3883 # Here's a termcap entry I've been using for xterm_color, which comes
3884 # with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
3885 # color stuff, I also have a status line defined as the window manager
3886 # title bar. [I have translated it to terminfo -- ESR]
3887 xterm-pcolor|xterm with color used for highlights and status line,
3888         wsl#40,
3889         bold=\E[1;43m, rev=\E[7;34m,
3890         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1;43%;%?%p2%t;4;42%;%?%p1%t;7;31%;%?%p3%t;7;34%;%?%p4%t;5%;%?%p7%t;8%;m,
3891         smso=\E[7;31m, smul=\E[4;42m, use=xterm+sl, use=xterm-r6,
3892
3893 # This describes the capabilities of color_xterm, an xterm variant from
3894 # before ECMA-64 color support was folded into the main-line xterm release.
3895 # This entry is straight from color_xterm's maintainer.
3896 # From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
3897 # The README's with the distribution also say that it supports SGR 21, 24, 25
3898 # and 27, but they are not present in the terminfo or termcap.
3899 color_xterm|cx|cx100|color_xterm color terminal emulator for X,
3900         OTbs, am, km, mir, msgr, xenl, XT,
3901         cols#80, it#8, lines#65, ncv@,
3902         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3903         bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3904         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3905         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3906         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3907         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3908         el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I,
3909         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
3910         is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, kbs=^H, kcub1=\EOD,
3911         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kf1=\E[11~,
3912         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
3913         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
3914         kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
3915         kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM,
3916         rmacs=^O, rmam=\E[?7l, rmcup=\E>\E[?41;1r, rmir=\E[4l,
3917         rmso=\E[27m, rmul=\E[24m,
3918         rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
3919         sc=\E7,
3920         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3921         sgr0=\E[0m\017, smacs=^N, smam=\E[?7h,
3922         smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m,
3923         smul=\E[4m, use=ecma+color, use=vt220+keypad,
3924
3925 # The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
3926 # xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
3927 # SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
3928 # description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
3929 # that each of those implements the home, end, delete keys differently.
3930 #
3931 # Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
3932 # colors; note that this is not compatible with the 5.2 version.
3933 # csw (2002-05-15): make xterm-color primary instead of nxterm, to
3934 #   match XFree86's xterm.terminfo usage and prevent circular links
3935 xterm-color|nxterm|generic color xterm,
3936         ncv@,
3937         op=\E[m, use=xterm-r6, use=klone+color,
3938
3939 # This entry describes an xterm with Sun-style function keys enabled
3940 # via the X resource setting "xterm*sunFunctionKeys:true"
3941 # To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
3942 # The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
3943 # because we want it to be seen as <kcpy>.
3944 # The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
3945 # with their Sun keyboard labels instead.
3946 # From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
3947 xterm-sun|xterm with sunFunctionKeys true,
3948         kb2=\E[218z, kcpy=\E[197z, kcub1=\EOD, kcud1=\EOB,
3949         kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3z, kend=\E[220z,
3950         kent=\EOM, kf1=\E[224z, kf10=\E[233z, kf11=\E[192z,
3951         kf12=\E[193z, kf13=\E[194z, kf14=\E[195z, kf15=\E[196z,
3952         kf17=\E[198z, kf18=\E[199z, kf19=\E[200z, kf2=\E[225z,
3953         kf20=\E[201z, kf3=\E[226z, kf31=\E[208z, kf32=\E[209z,
3954         kf33=\E[210z, kf34=\E[211z, kf35=\E[212z, kf36=\E[213z,
3955         kf38=\E[215z, kf4=\E[227z, kf40=\E[217z, kf42=\E[219z,
3956         kf44=\E[221z, kf45=\E[222z, kf46=\E[234z, kf47=\E[235z,
3957         kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z,
3958         kf9=\E[232z, kfnd=\E[200z, khlp=\E[196z, khome=\E[214z,
3959         kich1=\E[2z, knp=\E[222z, kpp=\E[216z, kund=\E[195z,
3960         use=xterm-basic,
3961 xterms-sun|small (80x24) xterm with sunFunctionKeys true,
3962         cols#80, lines#24, use=xterm-sun,
3963
3964 #### GNOME (VTE)
3965 # this describes the alpha-version of Gnome terminal shipped with Redhat 6.0
3966 gnome-rh62|Gnome terminal,
3967         bce,
3968         kdch1=\177, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
3969         use=xterm-color,
3970
3971 # GNOME Terminal 1.4.0.4 (Redhat 7.2)
3972 #
3973 # This implements a subset of vt102 with a random selection of features from
3974 # other terminals such as color and function-keys.
3975 #
3976 # shift-f1 to shift-f10 are f11 to f20
3977 #
3978 # NumLock changes the application keypad to approximate vt100 keypad, except
3979 # that there is no escape sequence matching comma (,).
3980 #
3981 # Other defects observed:
3982 #       vt100 LNM mode is not implemented.
3983 #       vt100 80/132 column mode is not implemented.
3984 #       vt100 DECALN is not implemented.
3985 #       vt100 DECSCNM mode is not implemented, so flash does not work.
3986 #       vt100 TBC (tab reset) is not implemented.
3987 #       xterm alternate screen controls do not restore cursor position properly
3988 #       it hangs in tack after running function-keys test.
3989 gnome-rh72|GNOME Terminal,
3990         bce, km@,
3991         civis=\E[?25l, cnorm=\E[?25h, kdch1=\E[3~, kf1=\EOP,
3992         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmam=\E[?7l,
3993         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\016%e\017%;,
3994         sgr0=\E[0m\017, smam=\E[?7h, tbc@, use=xterm-color,
3995
3996 # GNOME Terminal 2.0.1 (Redhat 8.0)
3997 #
3998 # Documentation now claims it implements vt220 (which is demonstrably false).
3999 # However, it does implement ECH, which is a vt220 feature.  And there are
4000 # workable vt100 LNM, DECALN, DECSNM modes, making it possible to display
4001 # more of its bugs using vttest.
4002 #
4003 # However, note that bce and msgr are broken in this release.  Tabs (tbc and
4004 # hts) are broken as well.  Sometimes flash (as in xterm-new) works.
4005 #
4006 # kf1 and kf10 are not tested since they're assigned (hardcoded?) to menu
4007 # operations.  Shift-tab generates a distinct sequence so it can be argued
4008 # that it implements kcbt.
4009 gnome-rh80|GNOME Terminal,
4010         bce@, msgr@,
4011         ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l, kbs=\177,
4012         kcbt=\E^I, op=\E[39;49m, use=gnome-rh72,
4013
4014 # GNOME Terminal 2.2.1 (Redhat 9.0)
4015 #
4016 # bce and msgr are repaired.
4017 gnome-rh90|GNOME Terminal,
4018         bce, msgr, XT,
4019         hpa=\E[%i%p1%dG, kDC=\E[3;2~, kLFT=\EO2D, kRIT=\EO2C,
4020         kb2=\E[E, kcbt=\E[Z, kend=\EOF, khome=\EOH, tbc=\E[3g,
4021         vpa=\E[%i%p1%dd, use=xterm+pcf0, use=xterm+pcfkeys,
4022         use=gnome-rh80,
4023
4024 # GNOME Terminal 2.14.2 (Fedora Core 5)
4025 # Ed Catmur notes that gnome-terminal has recognized soft-reset since May 2002.
4026 gnome-fc5|GNOME Terminal,
4027         rs1=\Ec,
4028         rs2=\E7\E[r\E8\E[m\E[?7h\E[!p\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
4029         use=ansi+enq, use=xterm+pcc0, use=gnome-rh90,
4030
4031 # GNOME Terminal 2.18.1 (2007 snapshot)
4032 #
4033 # For any "recent" version of gnome-terminal, it is futile to attempt to
4034 # support modifiers on cursor- and keypad keys because the program usually
4035 # is hardcoded to set $TERM to "xterm", and on startup, it builds a subset
4036 # of the keys (which more/less correspond to the termcap values), and will
4037 # interpret those according to the $TERM value, but others not in the
4038 # terminfo according to some constantly changing set of hacker guidelines -TD
4039 vte-2007|VTE in GNOME Terminal snapshot 2.18.1,
4040         use=xterm+pcc2, use=gnome-fc5,
4041 gnome-2007|GNOME Terminal snapshot 2.18.1,
4042         use=vte-2007,
4043
4044 # GNOME Terminal 2.22.3 (2008 snapshot)
4045 #
4046 # In vttest, it claims to be a vt220 with national replacement character-sets,
4047 # but aside from the identifier string, implements only a small fraction of
4048 # vt220's behavior, which will make it less usable on a VMS system (unclear
4049 # what the intent of the developer is, since the NRC feature exposed in vttest
4050 # by this change does not work).
4051 vte-2008|VTE in GNOME Terminal snapshot 2.22.3,
4052         use=vte+pcfkeys, use=vte-2007,
4053 gnome-2008|GNOME Terminal snapshot 2.22.3,
4054         use=vte-2008,
4055
4056 # GNOME terminal may automatically use the contents of the "xterm" terminfo to
4057 # supply key information which is not built into the program.  With 2.22.3,
4058 # this list is built into the program (which addresses the inadvertant use of
4059 # random terminfo data, though using a set of values which does not correspond
4060 # to any that xterm produces - still not solving the problem that GNOME
4061 # terminal hardcodes the $TERM variable as "xterm").
4062 #
4063 #       terminfo        modifier        code    keys
4064 #       kf13-kf24       shift           2       F1 to F12
4065 #       kf25-kf36       control         5       F1 to F12
4066 #       kf37-kf48       shift/control   6       F1 to F12
4067 #       kf49-kf60       alt             3       F1 to F12
4068 #       kf61-kf63       shift-alt       4       F1 to F3
4069 #
4070 # The parameters with \EO (SS3) are technically an error, since SS3 should have
4071 # no parameters.  This appears to be rote copying based on xterm+pcc0.
4072 vte+pcfkeys|VTE's variation on xterm+pcfkeys,
4073         kf1=\EOP, kf13=\EO1;2P, kf14=\EO1;2Q, kf15=\EO1;2R,
4074         kf16=\EO1;2S, kf2=\EOQ, kf25=\EO1;5P, kf26=\EO1;5Q,
4075         kf27=\EO1;5R, kf28=\EO1;5S, kf3=\EOR, kf37=\EO1;6P,
4076         kf38=\EO1;6Q, kf39=\EO1;6R, kf4=\EOS, kf40=\EO1;6S,
4077         kf49=\EO1;3P, kf50=\EO1;3Q, kf51=\EO1;3R, kf52=\EO1;3S,
4078         kf61=\EO1;4P, kf62=\EO1;4Q, kf63=\EO1;4R,
4079         use=xterm+pcfkeys,
4080 gnome+pcfkeys|VTE's variation on xterm+pcfkeys,
4081         use=vte+pcfkeys,
4082
4083 vte|VTE aka GNOME Terminal,
4084         use=vte-2008,
4085 gnome|GNOME Terminal,
4086         use=vte,
4087
4088 # palette is hardcoded...
4089 vte-256color|VTE with xterm 256-colors,
4090         initc@, use=xterm+256color, use=vte,
4091 gnome-256color|GNOME Terminal with xterm 256-colors,
4092         use=vte-256color,
4093
4094 # XFCE Terminal 0.2.5.4beta2
4095 #
4096 # This is based on some of the same source code, e.g., the VTE library, as
4097 # gnome-terminal, but has fewer features, fails more screens in vttest.
4098 # Since most of the terminfo-related behavior is due to the VTE library,
4099 # the terminfo is the same as gnome-terminal.
4100 xfce|Xfce Terminal,
4101         use=vte,
4102
4103 #### Other GNOME
4104 # Multi-Gnome-Terminal 1.6.2
4105 #
4106 # This does not use VTE, and does have different behavior (compare xfce and
4107 # gnome).
4108 mgt|Multi GNOME Terminal,
4109         indn=\E[%p1%dS, rin=\E[%p1%dT, use=xterm-xf86-v333,
4110
4111 #### KDE
4112 # This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
4113 # or not is debatable).
4114 kvt|KDE terminal,
4115         bce, km@,
4116         kdch1=\177, kend=\E[F, khome=\E[H, use=xterm-color,
4117
4118 # Konsole 1.0.1
4119 # (formerly known as kvt)
4120 #
4121 # This program hardcodes $TERM to 'xterm', which is not accurate.  However, to
4122 # simplify this entry (and point out why konsole isn't xterm), we base this on
4123 # xterm-r6.  The default keyboard appears to be 'linux'.
4124 #
4125 # Notes:
4126 # a) konsole implements several features from XFree86 xterm, though none of
4127 #    that is documented - except of course in its source code - apparently
4128 #    because its implementors are unaccustomed to reading documentation - as
4129 #    evidenced by the sparse and poorly edited documentation distributed with
4130 #    konsole.  Some features such as the 1049 private mode are recognized but
4131 #    incorrectly implemented as a duplicate of the 47 private mode.
4132 # b) even with the "vt100 (historical)" keyboard setting, the numeric keypad
4133 #    sends PC-style escapes rather than vt100.
4134 # c) fails vttest menu 3 (Test of character sets) because it does not properly
4135 #    parse some control sequences.  Also fails vttest Primary Device Attributes
4136 #    by sending a bogus code (in the source it says it's supposed to be a
4137 #    vt220, which is doubly incorrect because it does not implement vt220
4138 #    control sequences except for a few special cases).  Treat it as a
4139 #    mildly-broken vt102.
4140 #
4141 # Update for konsole 1.3.2:
4142 #    The 1049 private mode works (but see the other xterm screens in vttest).
4143 #    Primary Device Attributes now returns the code for a vt100 with advanced
4144 #    video option.  Perhaps that's intended to be a "mildly-broken vt102".
4145 #
4146 # Updated for konsole 1.6.4:
4147 #    add konsole-solaris
4148 #
4149 # Updated for konsole 1.6.6:
4150 #    add control-key modifiers for function-keys, etc.
4151 #
4152 # vttest menu 1 shows that both konsole and gnome terminal do wrapping
4153 # different from xterm (and vt100's).  They have the same behavior in this
4154 # detail, but it is unclear which copies the other.
4155 konsole-base|KDE console window,
4156         bce, km@, npc, XT,
4157         ncv@,
4158         bel@, blink=\E[5m, civis=\E[?25l, cnorm=\E[?25h,
4159         ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l,
4160         hpa=\E[%i%p1%dG, indn=\E[%p1%dS, kbs=\177, kdch1@,
4161         kend=\E[4~, kf1@, kf10@, kf11@, kf12@, kf13@, kf14@, kf15@, kf16@,
4162         kf17@, kf18@, kf19@, kf2@, kf20@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
4163         kf9@, kfnd@, khome=\E[1~, kslt@, rin=\E[%p1%dT, rmam=\E[?7l,
4164         rmso=\E[27m, rmul=\E[24m,
4165         rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
4166         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
4167         sgr0=\E[0m\017, smam=\E[?7h, vpa=\E[%i%p1%dd,
4168         use=ecma+color, use=xterm-r6,
4169 konsole-linux|KDE console window with linux keyboard,
4170         kdch1=\E[3~, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~,
4171         kf12=\E[24~, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@,
4172         kf2=\E[[B, kf20@, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
4173         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4174         use=konsole-base,
4175 konsole-solaris|KDE console window with Solaris keyboard,
4176         kbs=^H, kend=\E[4~, khome=\E[1~, use=konsole-vt100,
4177 # KDE's "XFree86 3.x.x" keyboard is based on reading the xterm terminfo rather
4178 # than testing the code.
4179 konsole-xf3x|KDE console window with keyboard for XFree86 3.x xterm,
4180         kend=\E[4~, khome=\E[1~, use=konsole-vt100,
4181 # The value for kbs reflects local customization rather than the settings used
4182 # for XFree86 xterm.
4183 konsole-xf4x|KDE console window with keyboard for XFree86 4.x xterm,
4184         kend=\EOF, khome=\EOH, use=konsole+pcfkeys,
4185         use=konsole-vt100,
4186 # Konsole does not implement shifted cursor-keys.
4187 konsole+pcfkeys|konsole subset of xterm+pcfkeys,
4188         kLFT@, kRIT@, kcbt=\E[Z, kind@, kri@, kDN@, kUP@, use=xterm+pcc2,
4189         use=xterm+pcf0,
4190 # KDE's "vt100" keyboard has no relationship to any terminal that DEC made, but
4191 # it is still useful for deriving the other entries.
4192 konsole-vt100|KDE console window with vt100 (sic) keyboard,
4193         kbs=\177, kdch1=\E[3~, kend=\E[F, kf1=\E[11~, kf10=\E[21~,
4194         kf11=\E[23~, kf12=\E[24~, kf13@, kf14@, kf15@, kf16@, kf17@,
4195         kf18@, kf19@, kf2=\E[12~, kf20@, kf3=\E[13~, kf4=\E[14~,
4196         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4197         khome=\E[H, use=konsole-base,
4198 konsole-vt420pc|KDE console window with vt420 pc keyboard,
4199         kbs=^H, kdch1=\177, use=konsole-vt100,
4200 konsole-16color|klone of xterm-16color,
4201         ncv#32, use=ibm+16color, use=konsole,
4202 # make a default entry for konsole
4203 konsole|KDE console window,
4204         use=konsole-xf4x,
4205
4206 # palette is hardcoded...
4207 konsole-256color|KDE console window with xterm 256-colors,
4208         initc@, use=xterm+256color, use=konsole,
4209
4210 #### MLTERM
4211 # This is mlterm 2.9.3's mlterm.ti, with some additions/corrections -TD
4212 #
4213 # It is nominally a vt102 emulator, with features borrowed from rxvt and
4214 # xterm.
4215 #
4216 # The function keys are numbered based on shift/control/alt modifiers, except
4217 # that the control-modifier itself is used to spawn a new copy of mlterm (the
4218 # "-P" option).  So control/F1 to control/F12 may not be usable, depending on
4219 # how it is configured.
4220 #
4221 #                               kf1 to kf12     \E[11~   to \E[24~
4222 #       shift                   kf1 to kf12     \E[11;2~ to \E[24;2~
4223 #       alt                     kf1 to kf12     \E[11;3~ to \E[24;3~
4224 #       shift/alt               kf1 to kf12     \E[11;4~ to \E[24;4~
4225 #       control                 kf1 to kf12     \E[11;5~ to \E[24;5~ (maybe)
4226 #       control/shift           kf1 to kf12     \E[11;6~ to \E[24;6~
4227 #       control/alt             kf1 to kf12     \E[11;7~ to \E[24;7~
4228 #       control/shift/alt       kf1 to kf12     \E[11;8~ to \E[24;8~
4229 #
4230 mlterm|multi lingual terminal emulator,
4231         am, eslok, km, mc5i, mir, msgr, npc, xenl, XT,
4232         colors#8, cols#80, it#8, lines#24, pairs#64,
4233         acsc=00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4234         bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
4235         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
4236         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4237         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4238         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4239         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
4240         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=,
4241         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
4242         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
4243         is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
4244         kbs=\177, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
4245         kcuu1=\EOA, kdch1=\E[3~, kend=\EOF, kent=\EOM, kfnd=\E[1~,
4246         khome=\EOH, kich1=\E[2~, kind=\EO1;2B, kmous=\E[M,
4247         knp=\E[6~, kpp=\E[5~, kri=\EO1;2A, kslt=\E[4~, mc0=\E[i,
4248         nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
4249         rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?1049l,
4250         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
4251         rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l,
4252         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
4253         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
4254         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h,
4255         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
4256         tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
4257         vpa=\E[%i%p1%dd, use=mlterm+pcfkeys, use=xterm+r6f2,
4258
4259 # The insert/delete/home/end keys do not respond to modifiers because mlterm
4260 # looks in its termcap to decide which string to send.  If it used terminfo
4261 # (when available), it could use the extended names introduced for xterm.
4262 mlterm+pcfkeys|fragment for PC-style fkeys,
4263         kLFT=\EO1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\EO1;2C,
4264         kDN=\EO1;2B, kDN3=\EO1;3B, kDN4=\EO1;4B, kDN5=\EO1;5B,
4265         kDN6=\EO1;6B, kDN7=\EO1;7B, kIC5=\E[2;5~, kIC6=\E[2;6~,
4266         kLFT3=\EO1;3D, kLFT4=\EO1;4D, kLFT5=\EO1;5D,
4267         kLFT6=\EO1;6D, kLFT7=\EO1;7D, kNXT5=\E[6;5~,
4268         kNXT6=\E[6;6~, kPRV5=\E[5;5~, kPRV6=\E[5;6~,
4269         kRIT3=\EO1;3C, kRIT4=\EO1;4C, kRIT5=\EO1;5C,
4270         kRIT6=\EO1;6C, kRIT7=\EO1;7C, kUP=\EO1;2A, kUP3=\EO1;3A,
4271         kUP4=\EO1;4A, kUP5=\EO1;5A, kUP6=\EO1;6A, kUP7=\EO1;7A,
4272
4273 mlterm-256color|mlterm 3.0 with xterm 256-colors,
4274         use=xterm+256color, use=rxvt,
4275
4276 #### RXVT
4277 # From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
4278 # Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
4279 # Notes:
4280 # rxvt 2.21b uses
4281 #       smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
4282 # but some applications don't work with that.
4283 # It also has an AIX extension
4284 #       box2=lqkxjmwuvtn,
4285 # and
4286 #       ech=\E[%p1%dX,
4287 # but the latter does not work correctly.
4288 #
4289 # The distributed terminfo says it implements hpa and vpa, but they are not
4290 # implemented correctly, using relative rather than absolute positioning.
4291 #
4292 # rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
4293 # Since rxvt is not really compatible with xterm, it should be configured as
4294 # "rxvt" or "rxvt-color".
4295 #
4296 # removed dch/dch1 because they are inconsistent with bce/ech -TD
4297 # remove km as per tack test -TD
4298 rxvt-basic|rxvt terminal base (X Window System),
4299         OTbs, am, bce, eo, mir, msgr, xenl, xon, XT,
4300         cols#80, it#8, lines#24,
4301         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4302         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
4303         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
4304         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4305         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4306         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4307         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
4308         enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, ht=^I,
4309         hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
4310         ind=^J, is1=\E[?47l\E=\E[?1l,
4311         is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^H,
4312         kcbt=\E[Z, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
4313         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
4314         rmul=\E[24m,
4315         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
4316         rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
4317         s0ds=\E(B, s1ds=\E(0, sc=\E7,
4318         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
4319         sgr0=\E[0m\017, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
4320         smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=vt100+enq,
4321         use=rxvt+pcfkeys, use=vt220+keypad,
4322 # Key Codes from rxvt reference:
4323 #
4324 # Note: Shift + F1-F10 generates F11-F20
4325 #
4326 # For the keypad, use Shift to temporarily override Application-Keypad
4327 # setting use Num_Lock to toggle Application-Keypad setting if Num_Lock
4328 # is off, escape sequences toggle Application-Keypad setting.
4329 # Also note that values of Home, End, Delete may have been compiled
4330 # differently on your system.
4331 #
4332 #                   Normal       Shift        Control      Ctrl+Shift
4333 #  Tab              ^I           ESC [ Z      ^I           ESC [ Z
4334 #  BackSpace        ^H           ^?           ^?           ^?
4335 #  Find             ESC [ 1 ~    ESC [ 1 $    ESC [ 1 ^    ESC [ 1 @
4336 #  Insert           ESC [ 2 ~    paste        ESC [ 2 ^    ESC [ 2 @
4337 #  Execute          ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
4338 #  Select           ESC [ 4 ~    ESC [ 4 $    ESC [ 4 ^    ESC [ 4 @
4339 #  Prior            ESC [ 5 ~    scroll-up    ESC [ 5 ^    ESC [ 5 @
4340 #  Next             ESC [ 6 ~    scroll-down  ESC [ 6 ^    ESC [ 6 @
4341 #  Home             ESC [ 7 ~    ESC [ 7 $    ESC [ 7 ^    ESC [ 7 @
4342 #  End              ESC [ 8 ~    ESC [ 8 $    ESC [ 8 ^    ESC [ 8 @
4343 #  Delete           ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
4344 #  F1               ESC [ 11 ~   ESC [ 23 ~   ESC [ 11 ^   ESC [ 23 ^
4345 #  F2               ESC [ 12 ~   ESC [ 24 ~   ESC [ 12 ^   ESC [ 24 ^
4346 #  F3               ESC [ 13 ~   ESC [ 25 ~   ESC [ 13 ^   ESC [ 25 ^
4347 #  F4               ESC [ 14 ~   ESC [ 26 ~   ESC [ 14 ^   ESC [ 26 ^
4348 #  F5               ESC [ 15 ~   ESC [ 28 ~   ESC [ 15 ^   ESC [ 28 ^
4349 #  F6               ESC [ 17 ~   ESC [ 29 ~   ESC [ 17 ^   ESC [ 29 ^
4350 #  F7               ESC [ 18 ~   ESC [ 31 ~   ESC [ 18 ^   ESC [ 31 ^
4351 #  F8               ESC [ 19 ~   ESC [ 32 ~   ESC [ 19 ^   ESC [ 32 ^
4352 #  F9               ESC [ 20 ~   ESC [ 33 ~   ESC [ 20 ^   ESC [ 33 ^
4353 #  F10              ESC [ 21 ~   ESC [ 34 ~   ESC [ 21 ^   ESC [ 34 ^
4354 #  F11              ESC [ 23 ~   ESC [ 23 $   ESC [ 23 ^   ESC [ 23 @
4355 #  F12              ESC [ 24 ~   ESC [ 24 $   ESC [ 24 ^   ESC [ 24 @
4356 #  F13              ESC [ 25 ~   ESC [ 25 $   ESC [ 25 ^   ESC [ 25 @
4357 #  F14              ESC [ 26 ~   ESC [ 26 $   ESC [ 26 ^   ESC [ 26 @
4358 #  F15 (Help)       ESC [ 28 ~   ESC [ 28 $   ESC [ 28 ^   ESC [ 28 @
4359 #  F16 (Menu)       ESC [ 29 ~   ESC [ 29 $   ESC [ 29 ^   ESC [ 29 @
4360 #  F17              ESC [ 31 ~   ESC [ 31 $   ESC [ 31 ^   ESC [ 31 @
4361 #  F18              ESC [ 32 ~   ESC [ 32 $   ESC [ 32 ^   ESC [ 32 @
4362 #  F19              ESC [ 33 ~   ESC [ 33 $   ESC [ 33 ^   ESC [ 33 @
4363 #  F20              ESC [ 34 ~   ESC [ 34 $   ESC [ 34 ^   ESC [ 34 @
4364 #
4365 #                                                          Application
4366 #  Up               ESC [ A      ESC [ a      ESC O a      ESC O A
4367 #  Down             ESC [ B      ESC [ b      ESC O b      ESC O B
4368 #  Right            ESC [ C      ESC [ c      ESC O c      ESC O C
4369 #  Left             ESC [ D      ESC [ d      ESC O d      ESC O D
4370 #  KP_Enter         ^M                                     ESC O M
4371 #  KP_F1            ESC O P                                ESC O P
4372 #  KP_F2            ESC O Q                                ESC O Q
4373 #  KP_F3            ESC O R                                ESC O R
4374 #  KP_F4            ESC O S                                ESC O S
4375 #  XK_KP_Multiply   *                                      ESC O j
4376 #  XK_KP_Add        +                                      ESC O k
4377 #  XK_KP_Separator  ,                                      ESC O l
4378 #  XK_KP_Subtract   -                                      ESC O m
4379 #  XK_KP_Decimal    .                                      ESC O n
4380 #  XK_KP_Divide     /                                      ESC O o
4381 #  XK_KP_0          0                                      ESC O p
4382 #  XK_KP_1          1                                      ESC O q
4383 #  XK_KP_2          2                                      ESC O r
4384 #  XK_KP_3          3                                      ESC O s
4385 #  XK_KP_4          4                                      ESC O t
4386 #  XK_KP_5          5                                      ESC O u
4387 #  XK_KP_6          6                                      ESC O v
4388 #  XK_KP_7          7                                      ESC O w
4389 #  XK_KP_8          8                                      ESC O x
4390 #  XK_KP_9          9                                      ESC O y
4391 #
4392 # The source-code for rxvt actually defines mappings for F21-F35, using
4393 # "ESC [ 35 ~" to "ESC [  49 ~".  Keyboards with more than 12 function keys
4394 # are rare, so this entry uses the shift- and control-modifiers as in
4395 # xterm+pcfkeys to define keys past F12.
4396 #
4397 # kIC is normally not used, since rxvt performs a paste for that (shifted
4398 # insert), unless private mode 35 is set.
4399 #
4400 # kDN, kDN5, kDN6, etc are extensions based on the names from xterm+pcfkeys -TD
4401 # Removed kDN6, etc (control+shift) since rxvt does not implement this -TD
4402 rxvt+pcfkeys|fragment for PC-style fkeys,
4403         kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kIC=\E[2$, kLFT=\E[d,
4404         kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, kcub1=\E[D, kcud1=\E[B,
4405         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
4406         kend=\E[8~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
4407         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
4408         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
4409         kf2=\E[12~, kf20=\E[34~, kf21=\E[23$, kf22=\E[24$,
4410         kf23=\E[11\^, kf24=\E[12\^, kf25=\E[13\^, kf26=\E[14\^,
4411         kf27=\E[15\^, kf28=\E[17\^, kf29=\E[18\^, kf3=\E[13~,
4412         kf30=\E[19\^, kf31=\E[20\^, kf32=\E[21\^, kf33=\E[23\^,
4413         kf34=\E[24\^, kf35=\E[25\^, kf36=\E[26\^, kf37=\E[28\^,
4414         kf38=\E[29\^, kf39=\E[31\^, kf4=\E[14~, kf40=\E[32\^,
4415         kf41=\E[33\^, kf42=\E[34\^, kf43=\E[23@, kf44=\E[24@,
4416         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4417         kfnd=\E[1~, khome=\E[7~, kich1=\E[2~, kind=\E[a, knp=\E[6~,
4418         kpp=\E[5~, kri=\E[b, kslt=\E[4~, kDC5=\E[3\^, kDC6=\E[3@,
4419         kDN=\E[b, kDN5=\EOb, kEND5=\E[8\^, kEND6=\E[8@,
4420         kHOM5=\E[7\^, kHOM6=\E[7@, kIC5=\E[2\^, kIC6=\E[2@,
4421         kLFT5=\EOd, kNXT5=\E[6\^, kNXT6=\E[6@, kPRV5=\E[5\^,
4422         kPRV6=\E[5@, kRIT5=\EOc, kUP=\E[a, kUP5=\EOa,
4423
4424 rxvt|rxvt terminal emulator (X Window System),
4425         ncv@,
4426         hpa=\E[%i%p1%dG, kf0=\E[21~, sgr0=\E[m\017,
4427         vpa=\E[%i%p1%dd, use=rxvt-basic, use=ecma+color,
4428 rxvt-color|rxvt terminal emulator (X Window System),
4429         use=rxvt,
4430 rxvt-256color|rxvt 2.7.9 with xterm 256-colors,
4431         use=xterm+256color, use=rxvt,
4432 rxvt-88color|rxvt 2.7.9 with xterm 88-colors,
4433         use=xterm+88color, use=rxvt,
4434 rxvt-xpm|rxvt terminal emulator (X Window System),
4435         use=rxvt,
4436 rxvt-cygwin|rxvt terminal emulator (X Window System) on cygwin,
4437         acsc=+\257\,\256-\^0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
4438         use=rxvt,
4439 rxvt-cygwin-native|rxvt terminal emulator (native MS Window System port) on cygwin,
4440         acsc=+\257\,\256-\^0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376,
4441         use=rxvt-cygwin,
4442
4443 # This variant is supposed to work with rxvt 2.7.7 when compiled with
4444 # NO_BRIGHTCOLOR defined.  rxvt needs more work...
4445 rxvt-16color|xterm with 16 colors like aixterm,
4446         ncv#32, use=ibm+16color, use=rxvt,
4447
4448 #### MRXVT
4449 # mrxvt 0.5.4
4450 #
4451 # mrxvt is based on rxvt 2.7.11, but has by default XTERM_FKEYS defined, which
4452 # makes its function-keys different from other flavors of rxvt -TD
4453 mrxvt|multitabbed rxvt,
4454         XT,
4455         kEND=\E[8;2~, kHOM=\E[7;2~, kcub1=\E[D, kcud1=\E[B,
4456         kcuf1=\E[C, kcuu1=\E[A, kend=\E[8~, khome=\E[7~,
4457         kEND3=\E[8;3~, kEND4=\E[8;4~, kEND5=\E[8;5~,
4458         kEND6=\E[8;6~, kEND7=\E[8;7~, kHOM3=\E[7;3~,
4459         kHOM4=\E[7;4~, kHOM5=\E[7;5~, kHOM6=\E[7;6~,
4460         kHOM7=\E[7;7~, use=xterm+r6f2, use=xterm+pcfkeys,
4461         use=rxvt,
4462
4463 mrxvt-256color|multitabbed rxvt with 256 colors,
4464         use=xterm+256color, use=mrxvt,
4465
4466 #### ETERM
4467 # From: Michael Jennings <mej@valinux.com>
4468 #
4469 # Eterm 0.9.3
4470 #
4471 # removed kf0 which conflicts with kf10 -TD
4472 # remove cvvis which conflicts with cnorm -TD
4473 # Eterm does not implement control/shift cursor keys such as kDN6, or kPRV/kNXT
4474 # but does otherwise follow the rxvt+pcfkeys model -TD
4475 # remove nonworking flash -TD
4476 # remove km as per tack test -TD
4477 Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
4478         am, bce, bw, eo, mc5i, mir, msgr, xenl, xon, XT,
4479         btns#5, cols#80, it#8, lines#24, lm#0, ncv@,
4480         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4481         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
4482         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
4483         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4484         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
4485         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4486         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
4487         ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
4488         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
4489         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
4490         is1=\E[?47l\E>\E[?1l,
4491         is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kNXT@,
4492         kPRV@, ka1=\E[7~, ka3=\E[5~, kb2=\EOu, kbeg=\EOu, kbs=^H,
4493         kc1=\E[8~, kc3=\E[6~, kent=\EOM, khlp=\E[28~, kmous=\E[M,
4494         mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
4495         rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=,
4496         rmso=\E[27m, rmul=\E[24m,
4497         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
4498         rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
4499         sc=\E7,
4500         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
4501         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
4502         smir=\E[4h, smkx=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
4503         vpa=\E[%i%p1%dd, use=vt100+enq, use=rxvt+pcfkeys,
4504         use=ecma+color,
4505
4506 Eterm-256color|Eterm with xterm 256-colors,
4507         use=xterm+256color, use=Eterm,
4508
4509 Eterm-88color|Eterm with 88 colors,
4510         use=xterm+88color, use=Eterm,
4511
4512 #### ATERM
4513 # Based on rxvt 2.4.8, it has a few differences in key bindings
4514 aterm|AfterStep terminal,
4515         XT,
4516         kbs=\177, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, use=rxvt,
4517
4518 #### XITERM
4519 # xiterm  0.5-5.2
4520 # This is not based on xterm's source...
4521 # vttest shows several problems with keyboard, cursor-movements.
4522 # see also http://invisible-island.net/xterm/xterm.faq.html#bug_xiterm
4523 xiterm|internationalized terminal emulator for X,
4524         km@,
4525         kbs=\177, kdch1=\E[3~, use=klone+color, use=xterm-r6,
4526
4527
4528 #### HPTERM
4529 # HP ships this (HPUX 9 and 10), except for the pb#9600 which was merged in
4530 # from BSD termcap.  (hpterm:  added empty <acsc>, we have no idea what ACS
4531 # chars look like --esr)
4532 hpterm|X-hpterm|hp X11 terminal emulator,
4533         am, da, db, mir, xhp,
4534         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0,
4535         acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M,
4536         cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC,
4537         cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK,
4538         hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=^J, kbs=^H,
4539         kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4540         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
4541         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
4542         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
4543         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, meml=\El,
4544         memu=\Em, pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
4545         pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
4546         pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
4547         pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
4548         rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@,
4549         rmul=\E&d@,
4550         sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
4551         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
4552         smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4553 # HPUX 11 provides a color version.
4554 hpterm-color|HP X11 terminal emulator with color,
4555         ccc,
4556         colors#64, pairs#8,
4557         home=\E&a0y0C,
4558         initp=\E&v%p2%da%p3%db%p4%dc%p5%dx%p6%dy%p7%dz%p1%dI,
4559         op=\E&v0S, scp=\E&v%p1%dS, use=hpterm,
4560
4561 #### EMU
4562 # This is for the extensible terminal emulator on the X11R6 contrib tape.
4563 # It corresponds to emu's internal emulation:
4564 #       emu -term emu
4565 # emu's default sets TERM to "xterm", but that doesn't work well -TD
4566 # fixes: remove bogus rmacs/smacs, change oc to op, add bce, am -TD
4567 # fixes: add civis, cnorm, sgr -TD
4568 emu|emu native mode,
4569         am, bce, mir, msgr, xon,
4570         colors#15, cols#80, it#8, lines#24, pairs#64, vt#200,
4571         acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244,
4572         bel=^G, blink=\EW, bold=\EU, civis=\EZ, clear=\EP\EE0;0;,
4573         cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;, cub=\Eq-%p1%d;,
4574         cub1=^H, cud=\Ep%p1%d;, cud1=\EB, cuf=\Eq%p1%d;, cuf1=\EC,
4575         cup=\EE%p1%d;%p2%d;, cuu=\Ep-%p1%d;, cuu1=\EA,
4576         dch=\EI%p1%d;, dch1=\EI1;, dl=\ER%p1%d;, dl1=\ER1;,
4577         ech=\Ej%p1%d;, ed=\EN, el=\EK, el1=\EL, home=\EE0;0;, ht=^I,
4578         hts=\Eh, il=\EQ%p1%d;, il1=\EQ1;, ind=\EG,
4579         is2=\ES\Er0;\Es0;, kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED,
4580         kcuu1=\EA, kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01,
4581         kf10=\EF10, kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14,
4582         kf15=\EF15, kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19,
4583         kf2=\EF02, kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05,
4584         kf6=\EF06, kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind,
4585         kich1=\Eins, knp=\Enext, kpp=\Eprior, kslt=\Esel,
4586         op=\Es0;\Er0;, rev=\ET, ri=\EF, rmir=\EX, rmso=\ES, rmul=\ES,
4587         rs2=\ES\Es0;\Er0;, setab=\Es%i%p1%d;,
4588         setaf=\Er%i%p1%d;,
4589         sgr=\ES%?%p1%t\ET%;%?%p2%t\EV%;%?%p3%t\ET%;%?%p4%t\EW%;%?%p6%t\EU%;,
4590         sgr0=\ES, smir=\EY, smso=\ET, smul=\EV, tbc=\Ej,
4591
4592 # vt220 Terminfo entry for the Emu emulation, corresponds to
4593 #       emu -term vt220
4594 # with NumLock set (to make the keypad transmit kf0-kf9).
4595 # fixes: add am, xenl, corrected sgr0 -TD
4596 emu-220|Emu-220 (vt200-7bit mode),
4597         am, xenl, xon,
4598         cols#80, it#8, lines#24, vt#200,
4599         acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
4600         blink=\E[0;5m, bold=\E[0;1m, civis=\E[?25l,
4601         clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
4602         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[1D,
4603         cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
4604         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[1A,
4605         dch=\E[%p1%dP, dch1=\E[1P, dl=\E[%p1%dM, dl1=\E[1M,
4606         ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I,
4607         hts=\EH, if=/usr/share/tabset/vt300, il=\E[%p1%dL,
4608         il1=\E[1L, ind=\ED, is2=\E>\E[?1l\E[?3l\E[4l\E[?7h,
4609         kbs=^H, kcmd=\E[29~, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
4610         kcuu1=\E[A, kdch1=\E[3~, kent=\EOM, kf0=\EOp, kf1=\EOq,
4611         kf10=\EOl, kf11=\EOm, kf12=\EOn, kf13=\EOP, kf14=\EOQ,
4612         kf15=\EOR, kf16=\EOS, kf2=\EOr, kf26=\E[17~, kf27=\E[18~,
4613         kf28=\E[19~, kf29=\E[20~, kf3=\EOs, kf30=\E[21~,
4614         kf34=\E[26~, kf37=\E[31~, kf38=\E[32~, kf39=\E[33~,
4615         kf4=\EOt, kf40=\E[34~, kf5=\EOu, kf6=\EOv, kf7=\EOw,
4616         kf8=\EOx, kf9=\EOy, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~,
4617         knp=\E[6~, kpp=\E[5~, kslt=\E[4~, rc=\E8, rev=\E[0;7m,
4618         ri=\EM, rmacs=^O, rmcup=\E>, rmkx=\E>, rmso=\E[m, rmul=\E[m,
4619         rs2=\E[4l\E[34l\E[?1l\E[?3l\E[?5l\E[?7h, sc=\E7,
4620         sgr=\E[0%?%p1%t;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%;,
4621         sgr0=\E[m, smacs=^N, smcup=\E[?1l\E=, smkx=\E=,
4622         smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g,
4623
4624 #### MVTERM
4625 # A commercial product, Reportedly a version of Xterm with an OPEN LOOK UI,
4626 # print interface, ANSI X3.64 colour escape sequences, etc.  Newsgroup postings
4627 # indicate that it emulates more than one terminal, but incompletely.
4628 #
4629 # This is adapted from a FreeBSD bug-report by Daniel Rudy <dcrudy@pacbell.net>
4630 # It is based on vt102's entry, with some subtle differences, but also
4631 #       has status line
4632 #       supports ANSI colors (except for 'op' string)
4633 #       apparently implements alternate screen like xterm
4634 #       does not use padding, of course.
4635 mvterm|vv100|SwitchTerm aka mvTERM,
4636         am, eslok, hs, km, mir, msgr, xenl,
4637         colors#8, cols#80, it#8, lines#24, pairs#64,
4638         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4639         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
4640         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4641         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4642         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4643         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
4644         dsl=\E[?E, ed=\E[J, el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0,
4645         fsl=\E[?F, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
4646         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H,
4647         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOy,
4648         kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw,
4649         op=\E[100m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
4650         rmcup=\E[2J\E[?47l\E8, rmkx=\E[?1l\E>, rmso=\E[m,
4651         rmul=\E[m,
4652         rs2=\E>\E[1;3;4;5;6l\E[?7h\E[100m\E[m\E[r\E[2J\E[H,
4653         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
4654         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
4655         sgr0=\E[m\017, smacs=^N, smcup=\E7\E[?47h,
4656         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
4657         tsl=\E[?E\E[?%i%p1%dT, use=vt100+fnkeys,
4658
4659 #### MTERM
4660 #
4661 # This application is available by email from <mouse@Rodents.Montreal.QC.CA>.
4662 #
4663 # "mterm -type ansi" sets $TERM to "ansi"
4664 mterm-ansi|ANSI emulation,
4665         am, bw, mir, msgr,
4666         it#8,
4667         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4668         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
4669         cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
4670         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
4671         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
4672         dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
4673         el=\E[K, home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=,
4674         il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS,
4675         invis=\E[8m, is2=\E)0\017, kbs=^H, nel=\EE, rev=\E[7m,
4676         ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmir=\E[4l, rmso=\E[27m,
4677         rmul=\E[24m,
4678         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
4679         sgr0=\E[m, smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m,
4680         vpa=\E[%i%p1%dd,
4681 # mterm normally sets $TERM to "mterm"
4682 mterm|mouse-sun|Der Mouse term,
4683         am, bw, mir,
4684         it#8,
4685         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^N, cuf1=^S,
4686         cup=\006%p1%d.%p2%d., cuu1=^X, dch1=^Y, dl1=^K, ed=^B, el=^C,
4687         home=^P, ht=^I, il1=^A, ind=^U, kbs=^H, ll=^R, nel=^M^U, ri=^W,
4688         rmir=^O, rmso=^T, smir=^Q, smso=^V,
4689 # "mterm -type decansi" sets $TERM to "decansi"
4690 #
4691 # note: kdch1, kfnd, kslt are in the source code, but do not work -TD
4692 decansi|ANSI emulation with DEC compatibility hacks,
4693         am, mir, msgr, xenl,
4694         colors#8, it#8, pairs#64,
4695         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4696         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
4697         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
4698         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
4699         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
4700         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4701         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
4702         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, enacs=\E(B\E)0,
4703         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich1=, il=\E[%p1%dL,
4704         il1=\E[L, ind=\E[S, indn=\E[%p1%dS, invis=\E[8m,
4705         is2=\E)0\E[r\017, kbs=^H, kcub1=\EOD, kcud1=\EOB,
4706         kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\E[11~,
4707         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
4708         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
4709         kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
4710         kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
4711         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~,
4712         kpp=\E[5~, kslt=\E[4~, nel=\EE, op=\E[0m, rc=\E8, rev=\E[7m,
4713         ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
4714         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, sc=\E7,
4715         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
4716         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
4717         sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
4718         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, u6=\E[%i%d;%dR,
4719         u7=\E[6n, vpa=\E[%i%p1%dd,
4720
4721 #### VWM
4722 #
4723 # vwmterm is a terminal emulator written for the VWM console window manager
4724 #
4725 vwmterm|(vwm term),
4726         am, bce, ccc, mir, msgr, npc, xenl, xon,
4727         colors#8, pairs#64,
4728         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4729         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
4730         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, cub=\E[%p1%dD,
4731         cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
4732         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
4733         cuu1=\E[A, cvvis=\E[?25h, dim=\E[2m, ed=\E[J, el=\E[K,
4734         home=\E[H, il1=\E[L, ind=^J, invis=\E[8m, kcub1=\E[D,
4735         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
4736         kend=\E[4~, kf1=\E[[A, kf10=\E[21~, kf11=\E[22~,
4737         kf12=\E[23~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
4738         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4739         khome=\E[1~, knp=\E[6~, kpp=\E[5~, rev=\E[7m, rmacs=\E[10m,
4740         rmam=\E[?7l, rmcup=\E[?1049l, rs1=\E[H\E[J\E[m\Ec,
4741         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
4742         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,
4743         sgr0=\E[0;10m, smacs=\E[11m, smam=\E[?7h,
4744         smcup=\E[?1049h, smso=\E[3m, smul=\E[4m,
4745
4746 #### MGR
4747 #
4748 # MGR is a Bell Labs window system lighter-weight than X.
4749 # These entries describe MGR's xterm-equivalent.
4750 # They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997
4751 #
4752
4753 mgr|Bellcore MGR (non X) window system terminal emulation,
4754         am, km,
4755         bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=^M,
4756         csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er,
4757         cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h,
4758         dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>,
4759         dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u,
4760         ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>,
4761         il1=\Ea$<3>, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
4762         kcuf1=\E[C, kcuu1=\E[A, nel=^M^J, rev=\E1n, rmam=\E5S,
4763         rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n,
4764         smul=\E4n,
4765 mgr-sun|Mgr window with Sun keyboard,
4766         ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z,
4767         kc3=\E[222z, kcpy=\E[197z, kend=\E[220z, kent=\E[250z,
4768         kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z,
4769         kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z,
4770         kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
4771         kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z,
4772         kopn=\E[198z, kpp=\E[216z, kund=\E[195z, use=mgr,
4773 mgr-linux|Mgr window with Linux keyboard,
4774         ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~,
4775         kdch1=\E[3~, kend=\E[4~, kf0=\E[[J, kf1=\E[[A, kf10=\E[21~,
4776         kf11=\E[23~, kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D,
4777         kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4778         khome=\E[1~, knp=\E[6~, kpp=\E[5~, use=mgr,
4779
4780 #### SIMPLETERM
4781 # st.suckless.org
4782 # st-0.1.1
4783 #
4784 # Note:  the original terminfo description uses leading blank to persuade
4785 # ncurses to use "st" as its name.  Proper fix for that is to use "st" as an
4786 # alias.
4787 #
4788 # Reading the code shows it should work for aixterm 16-colors
4789 # - added st-16color
4790 #
4791 # Using tack:
4792 # - set eo (erase-overstrike)
4793 # - set xenl
4794 # - tbc doesn't work
4795 # - hts works
4796 # - cbt doesn't work
4797 # - shifted cursor-keys send sequences like rxvt
4798 # - sgr referred to unimplemented "invis" mode.
4799 # Fixes: add eo and xenl per tack, remove nonworking cbt, hts and tbc, invis
4800 simpleterm|st| simpleterm,
4801         am, eo, mir, msgr, ul, xenl,
4802         colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
4803         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4804         bel=^G, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[2J,
4805         cnorm=\E[?12l\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
4806         cub1=^H, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4807         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4808         dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
4809         hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
4810         il1=\E[L, ind=^J, indn=\E[%p1%dS, kbs=\177, kcub1=\E[D,
4811         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
4812         kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
4813         kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
4814         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4815         khome=\E[1~, knp=\E[6~, kpp=\E[5~, op=\E[37;40m, rc=\E8,
4816         rev=\E[7m, rmacs=\E(B, rmso=\E[m, rmul=\E[m, sc=\E7,
4817         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
4818         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
4819         sgr0=\E[0m, smacs=\E(0, smso=\E[7m, smul=\E[4m,
4820 st-16color|simpleterm with 16-colors,
4821         use=ibm+16color, use=simpleterm,
4822 # 256 colors "works", but when running xterm's test-scripts, some garbage is
4823 # shown in the titlebar.
4824 st-256color|simpleterm with 256 colors,
4825         ccc@,
4826         initc@, use=xterm+256color, use=simpleterm,
4827
4828 ### TERMINATOR
4829 # http://software.jessies.org/terminator/
4830 # Tested using their Debian package org.jessies.terminator 6.104.3256 on 64-bit
4831 # Debian/current -TD (2011/8/20)
4832 #
4833 # There are some packaging problems:
4834 # a) using Java, the program starts off using 50Mb, and climbs from there,
4835 #    up to 114Mb after testing (no scrollback).
4836 # b) it insists on reinstalling its terminal description in $HOME/.terminfo
4837 #    (two copies, just in case the host happens to be Mac OS X).
4838 #    I deleted this after testing with tack.
4839 #
4840 # Issues/features found with tack:
4841 # a) tbc does not work (implying that hts also is broken).
4842 #    Comparing with the tabs utility shows a problem with the last tabstop on
4843 #    a line.
4844 # b) has xterm-style shifted function-key strings
4845 #    meta also is used, but control is ignored.
4846 # c) has xterm-style modifiers for cursor keys (shift, control, shift+control, meta)
4847 # d) some combinations of shift/control send xterm-style sequences for
4848 #    insert/delete/home/end.
4849 # e) numeric keypad sends only numbers (compare with vttest).
4850 # f) meta mode (km) is not implemented.
4851 #
4852 # Issues found with ncurses test-program:
4853 # a) bce is inconsistently implemented
4854 # b) widths of Unicode values above 256 do not always agree with wcwidth.
4855 #
4856 # Checked with vttest, found low degree of compatibility there.
4857 #
4858 # Checked with xterm's scripts, found that the 256-color palette is fixed.
4859 #
4860 # Fixes:
4861 # a) add sgr string
4862 # b) corrected sgr0 to reset alternate character set
4863 # c) modified smacs/rmacs to use SCS rather than SI/SO
4864 # d) removed bce
4865 # e) removed km
4866 terminator|Terminator no line wrap,
4867         eo, mir, msgr, xenl, xon,
4868         colors#256, cols#80, it#8, lines#24, lm#0, pairs#32767,
4869         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4870         bold=\E[1m, civis=\E[?25l, clear=\E[H\E[2J,
4871         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
4872         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
4873         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
4874         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
4875         dl=\E[%p1%dM, dl1=\E[M, dsl=\E]2;\007, ed=\E[J, el=\E[K,
4876         el1=\E[1K, enacs=\E(B\E)0, flash=^G, fsl=^G, home=\E[H,
4877         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L,
4878         ind=^J, is1=\E[?47l\E=\E[?1l,
4879         is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^H,
4880         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
4881         kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
4882         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
4883         kf15=\E[28~, kf16=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
4884         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4885         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
4886         op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B,
4887         rmcup=\E[?47l\E8, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
4888         rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
4889         rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
4890         s0ds=\E(B, s1ds=\E(0, sc=\E7, setab=\E[48;5;%p1%dm,
4891         setaf=\E[38;5;%p1%dm,
4892         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%;m%?%p9%t\E(0%e\E(B%;,
4893         sgr0=\E[m\E(B, smacs=\E(0, smcup=\E7\E[?47h, smir=\E[4h,
4894         smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E]2;%p1,
4895         vpa=\E[%i%p1%dd,
4896
4897 ######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
4898 #
4899
4900 # Columbus UNIX virtual terminal. This terminal also appears in
4901 # UNIX 4.0 and successors as line discipline 1 (?), but is
4902 # undocumented and does not really work quite right.
4903 cbunix|cb unix virtual terminal,
4904         OTbs, am, da, db,
4905         cols#80, lines#24, lm#0,
4906         bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4907         cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL,
4908         el=\EK, ich1=\EO, il1=\EP, ind=^J, kcub1=\ED, kcud1=\EB,
4909         kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A,
4910         smso=\Ea^D, smul=\Ea^A,
4911 # (vremote: removed obsolete ":nl@:" -- esr)
4912 vremote|virtual remote terminal,
4913         am@,
4914         cols#79, use=cbunix,
4915
4916 pty|4bsd pseudo teletype,
4917         cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!,
4918         smso=\Ea$, smul=\Ea!, use=cbunix,
4919
4920 # The codes supported by the term.el terminal emulation in GNU Emacs 19.30
4921 eterm|gnu emacs term.el terminal emulation,
4922         am, mir, xenl,
4923         cols#80, lines#24,
4924         bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
4925         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4926         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4927         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4928         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
4929         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
4930         il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m,
4931         rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
4932         sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m,
4933         smul=\E[4m,
4934
4935 # The codes supported by the term.el terminal emulation in GNU Emacs 22.2
4936 eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
4937         am, mir, msgr, xenl,
4938         colors#8, cols#80, lines#24, pairs#64,
4939         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
4940         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4941         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4942         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
4943         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
4944         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
4945         il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kbs=\177,
4946         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
4947         kdch1=\E[3~, kend=\E[4~, khome=\E[1~, kich1=\E[2~,
4948         knp=\E[6~, kpp=\E[5~, op=\E[39;49m, rc=\E8, rev=\E[7m,
4949         ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
4950         sc=\E7, setab=\E[%p1%'('%+%dm, setaf=\E[%p1%{30}%+%dm,
4951         sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m,
4952         sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
4953         u6=\E[%i%d;%dR, u7=\E[6n,
4954
4955 # Entries for use by the `screen' program by Juergen Weigert,
4956 # Michael Schroeder, Oliver Laumann.  The screen and
4957 # screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
4958 # come from University of Wisconsin and may be older.
4959 # (screen: added <cnorm> on ANSI model -- esr)
4960 #
4961 # 'screen' defines extensions to termcap.  Some are used in its terminal
4962 # description:
4963 #      G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
4964 #      AX   (bool)  Does  understand ANSI set default fg/bg color
4965 #                   (\E[39m / \E[49m).
4966 #      S0   (str)   Switch charset 'G0' to the specified charset.
4967 #      E0   (str)   Switch charset 'G0' back to standard charset.
4968 #
4969 # tested with screen 3.09.08
4970 screen|VT 100/ANSI X3.64 virtual terminal,
4971         OTbs, OTpt, am, km, mir, msgr, xenl, G0,
4972         colors#8, cols#80, it#8, lines#24, ncv@, pairs#64, U8#1,
4973         acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4974         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
4975         clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
4976         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
4977         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
4978         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
4979         cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
4980         dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
4981         flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
4982         il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcbt=\E[Z,
4983         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
4984         kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
4985         kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
4986         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4987         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
4988         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
4989         rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
4990         rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
4991         sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
4992         sgr0=\E[m\017, smacs=^N, smcup=\E[?1049h, smir=\E[4h,
4993         smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g, E0=\E(B,
4994         S0=\E(%p1%c, use=ecma+color,
4995 # The bce and status-line entries are from screen 3.9.13 (and require some
4996 # changes to .screenrc).
4997 screen-bce|VT 100/ANSI X3.64 virtual terminal with bce,
4998         bce,
4999         ech@, use=screen,
5000 screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line,
5001         dsl=\E_\E\\, fsl=\E\\, tsl=\E_, use=screen,
5002
5003 # ======================================================================
5004 # Entries for GNU Screen with 16 colors.
5005 # Those variations permit to benefit from 16 colors palette, and from
5006 # bold font and blink attribute separated from bright colors. But they
5007 # are less portable than the generic "screen" 8 color entries: Their
5008 # usage makes real sense only if the terminals you attach and reattach
5009 # do all support 16 color palette.
5010
5011 screen-16color|GNU Screen with 16 colors,
5012         use=ibm+16color, use=screen,
5013
5014 screen-16color-s|GNU Screen with 16 colors and status line,
5015         use=ibm+16color, use=screen-s,
5016
5017 screen-16color-bce|GNU Screen with 16 colors and BCE,
5018         use=ibm+16color, use=screen-bce,
5019
5020 screen-16color-bce-s|GNU Screen with 16 colors, BCE, and status line,
5021         bce, use=ibm+16color, use=screen-s,
5022
5023 # ======================================================================
5024 # Entries for GNU Screen 4.02 with --enable-colors256.
5025
5026 screen-256color|GNU Screen with 256 colors,
5027         ccc@,
5028         initc@, use=xterm+256color, use=screen,
5029
5030 screen-256color-s|GNU Screen with 256 colors and status line,
5031         ccc@,
5032         initc@, use=xterm+256color, use=screen-s,
5033
5034 screen-256color-bce|GNU Screen with 256 colors and BCE,
5035         ccc@,
5036         initc@, use=xterm+256color, use=screen-bce,
5037
5038 screen-256color-bce-s|GNU Screen with 256 colors, BCE, and status line,
5039         bce, ccc@,
5040         initc@, use=xterm+256color, use=screen-s,
5041
5042 # ======================================================================
5043
5044 # Read the fine manpage:
5045 #       When  screen  tries  to  figure  out  a  terminal name for
5046 #       itself, it first looks for an entry named "screen.<term>",
5047 #       where  <term>  is the contents of your $TERM variable.  If
5048 #       no such entry exists, screen tries "screen" (or "screen-w"
5049 #       if the terminal is wide (132 cols or more)).  If even this
5050 #       entry cannot be found, "vt100" is used as a substitute.
5051 #
5052 # Notwithstanding the manpage, screen uses its own notion of the termcap
5053 # and some keys from "screen.<term>" are ignored.  Here is an entry which
5054 # covers those (tested with screen 4.00.02) -TD
5055 screen+fkeys|function-keys according to screen,
5056         kend=\E[4~, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kfnd@,
5057         khome=\E[1~, kslt@,
5058 #
5059 # Here are a few customized entries which are useful -TD
5060 #
5061 # Notes:
5062 # (a)   screen does not support invis.
5063 # (b)   screen's implementation of bw is incorrect according to tack.
5064 # (c)   screen appears to hardcode the strings for khome/kend, making it
5065 #       necessary to override the "use=" clause's values (screen+fkeys).
5066 # (d)   screen sets $TERMCAP to a termcap-formatted copy of the 'screen' entry,
5067 #       which is NOT the same as the terminfo screen.<term>.
5068 # (e)   when screen finds one of these customized entries, it sets $TERM to
5069 #       match.  Hence, no "screen.xterm" entry is provided, since that would
5070 #       create heartburn for people running remote xterm's.
5071 #
5072 #       xterm (-xfree86 or -r6) does not normally support kIC, kNXT and kPRV
5073 #       since the default translations override the built-in keycode
5074 #       translation.  They are suppressed here to show what is tested by tack.
5075 screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm,
5076         bce@, bw,
5077         invis@, kIC@, kNXT@, kPRV@, meml@, memu@,
5078         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m,
5079         use=screen+fkeys, use=xterm-new,
5080 # xterm-r6 does not really support khome/kend unless it is propped up by
5081 # the translations resource.
5082 screen.xterm-r6|screen customized for X11R6 xterm,
5083         bw, use=screen+fkeys, use=xterm-r6,
5084 # Color applications running in screen and TeraTerm do not play well together
5085 # on Solaris because Sun's curses implementation gets confused.
5086 screen.teraterm|disable ncv in teraterm,
5087         ncv#127,
5088         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
5089         use=screen+fkeys, use=screen,
5090 # Other terminals
5091 screen.rxvt|screen in rxvt,
5092         bw, XT,
5093         cvvis@, flash@, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
5094         kcuu1=\EOA, use=screen+fkeys, use=vt100+enq,
5095         use=rxvt+pcfkeys, use=vt220+keypad, use=screen,
5096 screen.Eterm|screen in Eterm,
5097         use=screen+fkeys, use=Eterm,
5098 screen.mrxvt|screen in mrxvt,
5099         use=screen+fkeys, use=mrxvt,
5100 screen.vte|screen in any VTE-based terminal,
5101         use=screen+fkeys, use=vte,
5102 screen.gnome|screen in GNOME Terminal,
5103         use=screen+fkeys, use=gnome,
5104 screen.konsole|screen in KDE console window,
5105         use=screen+fkeys, use=konsole,
5106 # fix the backspace key
5107 screen.linux|screen in linux console,
5108         bw,
5109         kbs=\177, kcbt@, use=screen+fkeys, use=screen,
5110 screen.mlterm|screen in mlterm,
5111         use=screen+fkeys, use=mlterm,
5112
5113 # The default "screen" entry is reasonably portable, but not optimal for the
5114 # most widely-used terminal emulators.  The "bce" capability is supported in
5115 # screen since 3.9.13, and when used, will require fewer characters to be sent
5116 # to the terminal for updates.
5117 #
5118 # If you are using only terminals which support bce, then you can use this
5119 # feature in your screen configuration.
5120 #
5121 # Adding these lines to your ".screenrc" file will allow using these customized
5122 # entries:
5123 #       term screen-bce
5124 #       bce on
5125 #       defbce on
5126 screen-bce.xterm-new|screen optimized for modern xterm,
5127         bce,
5128         ech@, use=screen.xterm-new,
5129 screen-bce.rxvt|screen optimized for rxvt,
5130         bce,
5131         ech@, use=screen.rxvt,
5132 screen-bce.Eterm|screen optimized for Eterm,
5133         bce,
5134         ech@, use=screen.Eterm,
5135 screen-bce.mrxvt|screen optimized for mrxvt,
5136         bce,
5137         ech@, use=screen.mrxvt,
5138 screen-bce.gnome|screen optimized for GNOME-Terminal,
5139         bce,
5140         ech@, use=screen.gnome,
5141 screen-bce.konsole|screen optimized for KDE console window,
5142         bce,
5143         ech@, use=screen.konsole,
5144 screen-bce.linux|screen optimized for linux console,
5145         bce,
5146         ech@, use=screen.linux,
5147 screen-bce.mlterm|screen optimized for mlterm,
5148         bce,
5149         ech@, use=screen.mlterm,
5150
5151 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
5152         cols#132, use=screen,
5153
5154 screen2|old VT 100/ANSI X3.64 virtual terminal,
5155         cols#80, it#8, lines#24,
5156         cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H,
5157         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
5158         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
5159         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
5160         el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL,
5161         il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
5162         kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
5163         kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
5164         nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m,
5165         rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h,
5166         smso=\E[3m, smul=\E[4m, tbc=\E[3g,
5167 # (screen3: removed unknown ":xv:LP:G0:" -- esr)
5168 screen3|older VT 100/ANSI X3.64 virtual terminal,
5169         km, mir, msgr,
5170         cols#80, it#8, lines#24,
5171         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
5172         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
5173         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
5174         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
5175         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
5176         el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
5177         il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD,
5178         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
5179         kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
5180         rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec,
5181         sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m,
5182         smul=\E[4m, tbc=\E[3g,
5183
5184 # Francesco Potorti <F.Potorti@cnuce.cnr.it>:
5185 # NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
5186 # been maintained until recently by the National Center for Supercomputer
5187 # Applications, and it is feature rich, stable and free.  It can be downloaded
5188 # from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
5189 # xterm+sl, and the docs at NCSA.  It works well.
5190 #
5191 # NCSA Telnet 2.6 for Macintosh in vt220 8-bit emulation mode
5192 # The terminal options should be set as follows:
5193 #         Xterm sequences ON
5194 #         use VT wrap mode ON
5195 #         use Emacs arrow keys OFF
5196 #         CTRL-COMND is Emacs meta ON
5197 #         8 bit mode ON
5198 #         answerback string: "ncsa-vt220-8"
5199 #         setup keys: all disabled
5200 #
5201 # Application mode is not used.
5202 #
5203 # Other special mappings:
5204 #       Apple           VT220
5205 #       HELP            Find
5206 #       HOME            Insert here
5207 #       PAGEUP          Remove
5208 #       DEL             Select
5209 #       END             Prev Screen
5210 #       PAGEDOWN        Next Screen
5211 #
5212 # Though it supports ANSI color, NCSA Telnet uses color to represent blinking
5213 # text.
5214 #
5215 # The status-line manipulation is a mapping of the xterm-compatible control
5216 # sequences for setting the window-title.  So you must use tsl and fsl in
5217 # pairs, since the latter ends the string that is loaded to the window-title.
5218 ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
5219         am, km, mir, msgr, xenl,
5220         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
5221         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
5222         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
5223         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
5224         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
5225         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
5226         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
5227         el=\E[K, el1=\E[1K, enacs=\E)0, flash=\E[?5h\E[?5l,
5228         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
5229         if=/usr/share/tabset/vt100, il=\E[%p1%dL, il1=\E[L,
5230         ind=\n$<150*>,
5231         is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, kbs=^H,
5232         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5233         kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~,
5234         kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~,
5235         kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~,
5236         kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~,
5237         khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i,
5238         rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
5239         rmacs=\E(B, rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l,
5240         rmso=\E[27m, rmul=\E[24m,
5241         rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>, sc=\E7,
5242         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
5243         sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smcup=\E7,
5244         smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
5245         u8=\E[?62;1;6c, use=xterm+sl, use=ansi+enq,
5246 ncsa|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
5247         use=ncsa-m, use=klone+color,
5248 ncsa-ns|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
5249         hs@,
5250         dsl@, fsl@, tsl@, use=ncsa,
5251 ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
5252         hs@,
5253         dsl@, fsl@, tsl@, use=ncsa-m,
5254 # alternate -TD:
5255 # The documented function-key mapping refers to the Apple Extended Keyboard
5256 # (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
5257 # codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
5258 # some keyboards and many applications require these as F1-F4.
5259 #
5260 ncsa-vt220|NCSA Telnet using vt220-compatible function keys,
5261         kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
5262         kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
5263         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
5264         kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
5265         kf8=\E[19~, kf9=\E[20~, use=ncsa,
5266
5267 #### Pilot Pro Palm-Top
5268 #
5269 # Termcap for Top Gun Telnet and SSH on the Palm Pilot.
5270 # http://www.ai/~iang/TGssh/
5271 pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional,
5272         OTbs, am, xenl,
5273         cols#39, lines#16,
5274         bel=^G, clear=\Ec, cr=^M, cub1=^H, cud1=^J,
5275         cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I,
5276         ind=^J, kbs=^H, kcub1=^H, kcud1=^J, knp=^L, kpp=^K, nel=\Em~\s,
5277         rmso=\EB, smso=\Eb,
5278
5279 # From: Federico Bianchi <bianchi@www.arte.unipi.it>
5280 # These entries are for the Embeddable Linux Kernel System (ELKS)
5281 # project - an heavily stripped down Linux to be run on 16 bit
5282 # boxes or, eventually, to be used in embedded systems - and have been
5283 # adapted from the stock ELKS termcap. The project itself looks stalled,
5284 # and the latest improvements I know of date back to March 2000.
5285 #
5286 # To cope with the ELKS dumb console I added an "elks-glasstty" entry;
5287 # as an added bonus, this deals with all the capabilities common to
5288 # both VT52 and ANSI (or, eventually, "special") modes.
5289
5290 elks-glasstty|ELKS glass-TTY capabilities,
5291         OTbs, am,
5292         cols#80, it#8, lines#25,
5293         bel=^G, cr=^M, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
5294         nel=^M^J,
5295
5296 elks-vt52|ELKS vt52 console,
5297         clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
5298         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, el=\EK,
5299         home=\EH, use=elks-glasstty,
5300
5301 elks-ansi|ELKS ANSI console,
5302         clear=\E[H\E[2J, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
5303         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
5304         rmso=\E[m, smso=\E[7m, use=elks-glasstty,
5305
5306 # As a matter of fact, ELKS 0.0.83 on PCs defaults to ANSI emulation
5307 # instead of VT52, but the "elks" entry still refers to the latter.
5308
5309 elks|default ELKS console,
5310         use=elks-vt52,
5311
5312 # Project SIBO (for Psion 3 palmtops) console is identical to the ELKS
5313 # one but in screen size
5314
5315 sibo|ELKS SIBO console,
5316         cols#61, it#8, lines#20, use=elks-vt52,
5317
5318 ######## COMMERCIAL WORKSTATION CONSOLES
5319 #
5320
5321 #### Alpha consoles
5322 #
5323
5324 # This is from the OSF/1 Release 1.0 termcap file
5325 pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation,
5326         am, xon,
5327         cols#80, lines#25,
5328         bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
5329         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
5330         el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H,
5331         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
5332         nel=^M^J, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m,
5333
5334 #### Sun consoles
5335 #
5336
5337 # :is1: resets scrolling region in case a previous user had used "tset vt100"
5338 oldsun|Sun Microsystems Workstation console,
5339         OTbs, am, km, mir, msgr,
5340         cols#80, it#8, lines#34,
5341         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
5342         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
5343         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
5344         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
5345         is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5346         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
5347         rmso=\E[m, sgr0=\E[m, smso=\E[7m,
5348 # From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
5349 # <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
5350 # SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
5351 sun-il|Sun Microsystems console with working insert-line,
5352         am, km, msgr,
5353         cols#80, lines#34,
5354         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
5355         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
5356         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
5357         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
5358         kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
5359         kcuu1=\E[A, kdch1=\177, kend=\E[220z, kf1=\E[224z,
5360         kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z,
5361         kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z,
5362         kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z,
5363         kich1=\E[247z, knp=\E[222z, kopt=\E[194z, kpp=\E[216z,
5364         kres=\E[193z, kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@,
5365         rs2=\E[s, sgr=\E[0%?%p1%p3%|%t;7%;m, sgr0=\E[m,
5366         smso=\E[7m, u8=\E[1t, u9=\E[11t,
5367 # On some versions of CGSIX framebuffer firmware (SparcStation 5), <il1>/<il>
5368 # flake out on the last line.  Unfortunately, without them the terminal has no
5369 # way to scroll.
5370 sun-cgsix|sun-ss5|Sun SparcStation 5 console,
5371         il@, il1@, use=sun-il,
5372 # If you are using an SS5, change the sun definition to use sun-ss5.
5373 sun|sun1|sun2|Sun Microsystems Inc. workstation console,
5374         use=sun-il,
5375
5376 sun+sl|Sun Workstation window status line,
5377         hs,
5378         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l,
5379
5380 # From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
5381 sun-s|Sun Microsystems Workstation window with status line,
5382         hs,
5383         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun,
5384 sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs,
5385         hs,
5386         dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun-e,
5387 sun-48|Sun 48-line window,
5388         cols#80, lines#48, use=sun,
5389 sun-34|Sun 34-line window,
5390         cols#80, lines#34, use=sun,
5391 sun-24|Sun 24-line window,
5392         cols#80, lines#24, use=sun,
5393 sun-17|Sun 17-line window,
5394         cols#80, lines#17, use=sun,
5395 sun-12|Sun 12-line window,
5396         cols#80, lines#12, use=sun,
5397 sun-1|Sun 1-line window for sysline,
5398         eslok, hs,
5399         cols#80, lines#1,
5400         dsl=^L, fsl=\E[K, tsl=^M, use=sun,
5401 sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character,
5402         ich1@, rmir@, smir@, use=sun,
5403 sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history,
5404         lines#35,
5405         rmcup=\E[>4h, smcup=\E[>4l, use=sun,
5406 sun-type4|Sun Workstation console with type 4 keyboard,
5407         kcub1=\E[217z, kcud1=\E[221z, kcuf1=\E[219z,
5408         kcuu1=\E[215z, use=sun-il,
5409
5410 # Most of the current references to sun-color are from users wondering why this
5411 # is the default on install.  Details from reading the wscons manpage, adding
5412 # cub, etc., here (rather than in the base sun-il entry) since it is not clear
5413 # when those were added -TD (2005-05-28)
5414 #
5415 # According to wscons manpage, color is supported only on IA systems.
5416 # Sun's terminfo entry documents bold and smul/rmul capabilities, but wscons
5417 # does not list these.  It also sets ncv#3, however that corresponds to
5418 # underline and standout.
5419 #
5420 # Since the documentation and terminfo do not agree, see also current code at
5421 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/io/tem_safe.c
5422 #
5423 # That (actually a different driver which "supports" sun-color) also supports
5424 # these features:
5425 #       vpa=\E[%i%p1%dd
5426 #       hpa=\E[%i%p1%d`
5427 #       cbt=\E[Z
5428 #       dim=\E[2m
5429 #       blink=\E[5m
5430 # It supports bold, but not underline -TD (2009-09-19)
5431 sun-color|Sun Microsystems Workstation console with color support (IA systems),
5432         colors#8, ncv#3, pairs#64,
5433         cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
5434         cuu=\E[%p1%dA, home=\E[H, op=\E[0m, rs2=\E[s,
5435         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
5436         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
5437         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
5438         sgr=\E[0%?%p1;1%;%?%p3%;7%;m, sgr0=\E[m, smso=\E[1m,
5439         use=sun,
5440
5441 #### Iris consoles
5442 #
5443
5444 # (wsiris: this had extension capabilities
5445 #       :HS=\E7F2:HE=\E7F7:\
5446 #       :CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
5447 # See the note on Iris extensions near the end of this file.
5448 # Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> &
5449 # <flash> from BRL -- esr)
5450 wsiris|iris40|iris emulating a 40 line visual 50 (approximately),
5451         OTbs, OTnc, OTpt, am,
5452         OTkn#3, cols#80, it#8, lines#40,
5453         OTnl=\EB, bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB,
5454         cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
5455         cvvis=\E;, dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK,
5456         flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL,
5457         ind=^J, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB,
5458         kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3,
5459         kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI,
5460         rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P,
5461         smul=\E7R2\E9P,
5462
5463 #### NeWS consoles
5464 #
5465 # Console terminal windows under the NeWS (Sun's Display Postscript windowing
5466 # environment).   Note: these have nothing to do with Sony's News workstation
5467 # line.
5468 #
5469
5470 # Entry for NeWS's psterm from Eric Messick & Hugh Daniel
5471 # (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
5472 psterm|psterm-basic|NeWS psterm-80x34,
5473         OTbs, am, hs, km, ul,
5474         cols#80, it#8, lines#34,
5475         blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;,
5476         cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY,
5477         dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl,
5478         home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D,
5479         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr,
5480         ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^],
5481         sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu,
5482         tsl=\EOl,
5483 psterm-96x48|NeWS psterm 96x48,
5484         cols#96, lines#48, use=psterm,
5485 psterm-90x28|NeWS psterm 90x28,
5486         cols#90, lines#28, use=psterm,
5487 psterm-80x24|NeWS psterm 80x24,
5488         cols#80, lines#24, use=psterm,
5489 # This is a faster termcap for psterm.  Warning:  if you use this termcap,
5490 # some control characters you type will do strange things to the screen.
5491 # (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
5492 psterm-fast|NeWS psterm fast version (flaky ctrl chars),
5493         OTbs, am, hs, km, ul,
5494         cols#80, it#8, lines#34,
5495         blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;,
5496         cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y,
5497         dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I,
5498         il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
5499         kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni,
5500         rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi,
5501         smso=^Oo, smul=^Ou, tsl=^Ol,
5502
5503 #### NeXT consoles
5504 #
5505 # Use `glasstty' for the Workspace application
5506 #
5507
5508 # From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
5509 next|NeXT console,
5510         am, xt,
5511         cols#80, it#8, lines#24,
5512         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
5513         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
5514         ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
5515         rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m,
5516 nextshell|NeXT Shell application,
5517         am,
5518         cols#80,
5519         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H,
5520         kcud1=^J, nel=^M^J,
5521
5522 #### Sony NEWS workstations
5523 #
5524
5525 # (news-unk: this had :KB=news: -- esr)
5526 news-unk|SONY NEWS vt100 emulator common entry,
5527         OTbs, OTpt, am, xenl,
5528         cols#80,
5529         OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
5530         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
5531         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
5532         ed=\E[J, el=\E[K, home=\E[H, ht=^I,
5533         if=/usr/share/tabset/vt100, il=\E[%p1%dL, il1=\E[L,
5534         is2=\E[?7h\E[?1l\E[?3l\E7\E8, kbs=^H, kcub1=\EOD,
5535         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP,
5536         kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
5537         kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM,
5538         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
5539         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sc=\E7,
5540         sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
5541 #
5542 # (news-29: this had :TY=ascii: --esr)
5543 news-29,
5544         lines#29, use=news-unk,
5545 # (news-29-euc: this had :TY=euc: --esr)
5546 news-29-euc,
5547         use=news-29,
5548 # (news-29-sjis: this had :TY=sjis: --esr)
5549 news-29-sjis,
5550         use=news-29,
5551 #
5552 # (news-33: this had :TY=ascii: --esr)
5553 news-33,
5554         lines#33, use=news-unk,
5555 # (news-33-euc: this had :TY=euc: --esr)
5556 news-33-euc,
5557         use=news-33,
5558 # (news-33-sjis: this had :TY=sjis: --esr)
5559 news-33-sjis,
5560         use=news-33,
5561 #
5562 # (news-42: this had :TY=ascii: --esr)
5563 news-42,
5564         lines#42, use=news-unk,
5565 # (news-42-euc: this had :TY=euc: --esr)
5566 news-42-euc,
5567         use=news-42,
5568 # (news-42-sjis: this had :TY=sjis: --esr)
5569 news-42-sjis,
5570         use=news-42,
5571 #
5572 #       NEWS-OS old termcap entry
5573 #
5574 # (news-old-unk: this had :KB=news:TY=sjis: --esr)
5575 news-old-unk|SONY NEWS vt100 emulator common entry,
5576         OTbs, OTpt, am, xenl,
5577         cols#80, vt#3,
5578         OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
5579         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
5580         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
5581         home=\E[H, ht=^I, if=/usr/share/tabset/vt100, kbs=^H,
5582         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
5583         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM,
5584         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
5585         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
5586         sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
5587 #
5588 # (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
5589 nwp512|news|nwp514|news40|vt100-bm|old sony vt100 emulator 40 lines,
5590         OTbs,
5591         lines#40,
5592         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
5593         use=news-old-unk,
5594 #
5595 # (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
5596 nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line,
5597         lines#42,
5598         is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8,
5599         use=news-old-unk,
5600 #
5601 # (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as <OTbs>. --esr)
5602 nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines,
5603         OTbs,
5604         lines#40,
5605         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
5606         use=news-old-unk,
5607 #
5608 # (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
5609 nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines,
5610         OTbs,
5611         lines#31,
5612         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
5613         use=news-old-unk,
5614 #
5615 # (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
5616 # also the alias vt100-bm.
5617 nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|old sony vt100 emulator 33 lines,
5618         OTbs,
5619         lines#33,
5620         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8,
5621         use=news-old-unk,
5622 #
5623 # (nwp513-o: had :DE=^H:, I think that's <OTbs>; also the alias vt100-bm --esr)
5624 nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|old sony vt100 emulator 33 lines,
5625         OTbs,
5626         lines#31,
5627         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
5628         use=news-old-unk,
5629 #
5630 # (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
5631 news28|sony vt100 emulator 28 lines,
5632         OTbs,
5633         lines#28,
5634         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8,
5635         use=news-old-unk,
5636 #
5637 # (news29: this had :TY=ascii:KB=nws1200:\ --esr)
5638 news29|news28-a|sony vt100 emulator 29 lines,
5639         lines#29,
5640         is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8,
5641         use=news-old-unk,
5642 #
5643 # (news511: this had :TY=sjis: --esr)
5644 nwp511|nwp-511|nwp-511 vt100,
5645         OTbs, OTpt, am, xenl,
5646         cols#80, lines#24,
5647         clear=\E[;H\E[2J$<20/>, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
5648         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A$<2/>, dl1=\E[M,
5649         ed=\E[J$<30/>, el=\E[K$<3/>,
5650         flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
5651         il1=\E[L, is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D,
5652         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
5653         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\E#W, khome=\E[H,
5654         ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
5655         rs2=\E7\E[r\E8\E[?5l\E[?1l\E>\E[?7h\E[?8h,
5656         smso=\E[7m$<2/>, smul=\E[4m$<2/>,
5657 # (news517: this had :TY=sjis:. --esr)
5658 nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows,
5659         eslok, hs,
5660         cols#80, lines#30,
5661         OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
5662         is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
5663         tsl=\E[1$}\E[;%df, use=vt200,
5664 # (news517-w: this had :TY=sjis:. --esr)
5665 nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows,
5666         eslok, hs,
5667         cols#132, lines#50,
5668         OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
5669         is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
5670         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
5671         tsl=\E[1$}\E[;%df, use=vt200,
5672
5673 #### Common Desktop Environment
5674 #
5675
5676 # This ships with Sun's CDE in Solaris 2.5
5677 # Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
5678 dtterm|CDE desktop terminal,
5679         am, mir, msgr, xenl, xon,
5680         cols#80, it#8, lines#24, lm#0, ncv@,
5681         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
5682         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
5683         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
5684         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
5685         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
5686         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
5687         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
5688         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
5689         enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H,
5690         ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
5691         ind=\ED, invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l,
5692         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5693         kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
5694         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
5695         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
5696         kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
5697         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
5698         kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
5699         kslt=\E[4~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
5700         rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, rmul=\E[24m,
5701         sc=\E7,
5702         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%;,
5703         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
5704         smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=ecma+color,
5705
5706 #### Non-Unix Consoles
5707 #
5708
5709 #### EMX termcap.dat compatibility modes
5710 #
5711 # Also (possibly only EMX, so we don't put it in ansi.sys, etc): set the
5712 # no_color_video to inform the application that standout(1), underline(2)
5713 # reverse(4) and invisible(64) don't work with color.
5714 emx-base|DOS special keys,
5715         bce, bw,
5716         it#8, ncv#71,
5717         bel=^G, use=ansi.sys,
5718
5719 # Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
5720 # a Unix-style environment used on OS/2.  (Note that the suffix makes some
5721 # names longer than 14 characters, the nominal maximum).
5722 #
5723 # Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
5724 ansi-emx|ANSI.SYS color,
5725         am, bce, eo, mir, msgr, xon,
5726         colors#8, cols#80, it#8, lines#25, pairs#64,
5727         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
5728         clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
5729         cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
5730         dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
5731         home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
5732         kb2=\E[G, kbs=^H, kf0=\0D, kll=\0O, kspd=^Z, nel=^M^J,
5733         rev=\E[5;37;41m, rmir=\E[4l, rmpch=\E[10m,
5734         rmso=\E[0;44m\E[1;33m, rmul=\E[0;44m\E[1;33m, rs1=\Ec,
5735         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
5736         sgr0=\E[0m\E[1;33;44m, smir=\E[4h, smpch=\E[11m,
5737         smso=\E[0;31;47m, smul=\E[1;31;44m, tbc=\E[3g, u8=\E[?6c,
5738         u9=\E[c, use=emx-base,
5739 # nice colors for Emacs (white on blue, mode line white on cyan)
5740 ansi-color-2-emx|ANSI.SYS color 2,
5741         clear=\E[0;37;44m\E[H\E[J, rev=\E[1;37;46m,
5742         rmso=\E[0;37;44m, rmul=\E[0;37;44m, rs1=\Ec,
5743         setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smso=\E[1;37;46m,
5744         smul=\E[1;36;44m, use=ansi-emx,
5745 # nice colors for Emacs (white on black, mode line black on cyan)
5746 ansi-color-3-emx|ANSI.SYS color 3,
5747         clear=\E[0;37;40m\E[H\E[J, rev=\E[1;37;46m,
5748         rmso=\E[0;37;40m, rmul=\E[0;37;40m, rs1=\Ec,
5749         setaf=\E[3%p1%dm, sgr0=\E[0;10m, smso=\E[1;37;46m,
5750         smul=\E[0;36;40m, use=ansi-emx,
5751 mono-emx|stupid monochrome ansi terminal with only one kind of emphasis,
5752         am,
5753         cols#80, it#8, lines#24,
5754         clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
5755         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
5756         ht=^I, kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M,
5757         kcuu1=\0H, kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>,
5758         kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G,
5759         kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I, nel=^M^J, rev=\E[7m,
5760         sgr0=\E[0m,
5761
5762 # Use this for cygwin32 (tested with beta 19.1)
5763 # underline is colored bright magenta
5764 # shifted kf1-kf12 are kf11-kf22
5765 cygwinB19|ansi emulation for cygwin32,
5766         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5767         kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
5768         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
5769         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
5770         kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
5771         kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
5772         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rmam@, smam@,
5773         use=ansi.sys,
5774
5775 # Use this for cygwin (tested with version 1.1.0).
5776 # I've combined pcansi and linux.  Some values of course were different and
5777 # I've indicated which of these were and which I used.
5778 # Cheers, earnie_boyd@yahoo.com
5779 # several changes based on running with tack and comparing with older entry -TD
5780 # more changes from csw:
5781 #   add    cbt   [backtab]
5782 #   remove eo    [erase overstrike with blank]
5783 #   change clear was \E[H\E[J  now \E[2J  (faster?)
5784 #   remove cols
5785 #   remove lines
5786 #   remove ncv#3 [colors collide with highlights, bitmask] not applicable
5787 #                to MSDOS box?
5788 #   add    cub   [cursor back param]
5789 #   add    cuf   [cursor forward param]
5790 #   add    cuu   [cursor up param]
5791 #   add    cud   [cursor down param]
5792 #   add    hs    [has status line]
5793 #   add    fsl   [return from status line]
5794 #   add    tsl   [go to status line]
5795 #   add    smacs [Start alt charset] (not sure if this works)
5796 #   add    rmacs [End alt charset]   (ditto)
5797 #   add    smcup [enter_ca_mode] (save console; thanks Corinna)
5798 #   add    rmcup [exit_ca_mode]  (restore console; thanks Corinna)
5799 #   add    kb2   [center of keypad]
5800 #   add    u8    [user string 8] \E[?6c
5801 #   add    el    [clear to end of line] \E[K
5802 # Notes:
5803 #   cnorm [make cursor normal] not implemented
5804 #   flash [flash] not implemented
5805 #   blink [blink] not implemented very usefully in cygwin? \E[5m
5806 #   dim   [dim] not implemented very usefully in cygwin? \E[2m
5807 #   cub1  [cursor back 1] typically \E[D, but ^H is faster?
5808 #   kNXT  [shifted next key] not implemented
5809 #   kPRV  [shifted prev key] not implemented
5810 #   khome [home key] really is \E[1~ NOT \E[H
5811 #   tbc   [clear tab stops] not implemented
5812 #   xenl  [newline ignnored after 80 cols] messes up last line? Ehud Karni
5813 #   smpch [Start PC charset] is \E[11m, same as smacs
5814 #   rmpch [End PC charset] is \E[10m, same as rmacs
5815 #   mir   [move in insert mode] fails in tack?
5816 #   bce   [back color erase] causes problems with change background color?
5817 #   cvvis [make cursor very visible] causes a stackdump when testing with
5818 #         testcurs using the output option? \E[?25h\E[?8c
5819 #   civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c
5820 #   ech   [erase characters param] broken \E[%p1%dX
5821 #   kcbt  [back-tab key] not implemented in cygwin?  \E[Z
5822 #
5823 # 2005/11/12 -TD
5824 #       Remove cbt since it does not work in current cygwin
5825 #       Add 'mir' and 'in' flags based on tack
5826 cygwin|ansi emulation for Cygwin,
5827         am, hs, mir, msgr, xon,
5828         colors#8, it#8, pairs#64,
5829         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
5830         bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, cub=\E[%p1%dD,
5831         cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
5832         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
5833         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
5834         dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
5835         hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
5836         il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G,
5837         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5838         kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
5839         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
5840         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
5841         kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
5842         kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
5843         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z,
5844         nel=^M^J, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
5845         rmacs=\E[10m, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
5846         rmpch=\E[10m, rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R,
5847         sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
5848         sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
5849         sgr0=\E[0;10m, smacs=\E[11m, smcup=\E7\E[?47h,
5850         smir=\E[4h, smpch=\E[11m, smso=\E[7m, smul=\E[4m, tsl=\E];,
5851         vpa=\E[%i%p1%dd, use=vt102+enq,
5852
5853 # I've supplied this so that you can help test new values and add other
5854 # features.  Cheers, earnie_boyd@yahoo.com.
5855 #
5856 # Some features are from pcansi.  The op value is from linux.  Function-keys
5857 # are from linux.  These have been tested not to cause problems.  xenl was in
5858 # this list, but DOES cause problems so it has been removed
5859 cygwinDBG|Debug Version for Cygwin,
5860         am, eo, mir, msgr, xon,
5861         colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64,
5862         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
5863         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
5864         cnorm=\E[?25h, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
5865         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
5866         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
5867         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
5868         dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
5869         flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG,
5870         ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
5871         il1=\E[L, ind=^J, invis=\E[8m, kNXT=\E[6$, kPRV=\E[5$,
5872         kb2=\E[G, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
5873         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
5874         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
5875         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
5876         kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
5877         kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
5878         kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
5879         knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J, op=\E[39;49m,
5880         rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m, rmir=\E[4l,
5881         rmso=\E[m, rmul=\E[m, rs1=\Ec\E]R, sc=\E7,
5882         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
5883         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;12%;m,
5884         sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smso=\E[7m,
5885         smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt102+enq,
5886
5887 # Key definitions:
5888 # The encodings for unshifted arrow keys, F1-F12, Home, Insert, etc.  match the
5889 # encodings used by other x86 environments.  All others are invented for DJGPP.
5890 # Oddly enough, while several combinations of modifiers are tabulated, there is
5891 # none for shifted cursor keys.
5892 #
5893 #       F1                      \E[[A
5894 #       F2                      \E[[B
5895 #       F3                      \E[[C
5896 #       F4                      \E[[D
5897 #       F5                      \E[[E
5898 #       F6                      \E[17~
5899 #       F7                      \E[18~
5900 #       F8                      \E[19~
5901 #       F9                      \E[20~
5902 #       F10                     \E[21~
5903 #       F11                     \E[23~
5904 #       F12                     \E[24~
5905 #
5906 #       Delete                  \E[3~
5907 #       Down Arrow              \E[B
5908 #       End                     \E[4~
5909 #       Home                    \E[1~
5910 #       Insert                  \E[2~
5911 #       Left Arrow              \E[D
5912 #       Page Down               \E[6~
5913 #       Page Up                 \E[5~
5914 #       Right Arrow             \E[C
5915 #       Up Arrow                \E[A
5916 #
5917 #       Shift-F1                \E[25~
5918 #       Shift-F2                \E[26~
5919 #       Shift-F3                \E[27~
5920 #       Shift-F4                \E[28~
5921 #       Shift-F5                \E[29~
5922 #       Shift-F6                \E[30~
5923 #       Shift-F7                \E[31~
5924 #       Shift-F8                \E[32~
5925 #       Shift-F9                \E[33~
5926 #       Shift-F10               \E[34~
5927 #       Shift-F11               \E[35~
5928 #       Shift-F12               \E[36~
5929 #
5930 #       Ctrl-F1                 \E[47~
5931 #       Ctrl-F2                 \E[48~
5932 #       Ctrl-F3                 \E[49~
5933 #       Ctrl-F4                 \E[50~
5934 #       Ctrl-F5                 \E[51~
5935 #       Ctrl-F6                 \E[52~
5936 #       Ctrl-F7                 \E[53~
5937 #       Ctrl-F8                 \E[54~
5938 #       Ctrl-F9                 \E[55~
5939 #       Ctrl-F10                \E[56~
5940 #       Ctrl-F11                \E[57~
5941 #       Ctrl-F12                \E[58~
5942 #
5943 #       Ctrl-Delete             \E[43~
5944 #       Ctrl-Down Arrow         \E[38~
5945 #       Ctrl-End                \E[44~
5946 #       Ctrl-Home               \E[41~
5947 #       Ctrl-Insert             \E[42~
5948 #       Ctrl-Left Arrow         \E[39~
5949 #       Ctrl-Page Down          \E[46~
5950 #       Ctrl-Page Up            \E[45~
5951 #       Ctrl-Right Arrow        \E[40~
5952 #       Ctrl-Up Arrow           \E[37~
5953 #
5954 #       Alt-F1                  \E[59~
5955 #       Alt-F2                  \E[60~
5956 #       Alt-F3                  \E[61~
5957 #       Alt-F4                  \E[62~
5958 #       Alt-F5                  \E[63~
5959 #       Alt-F6                  \E[64~
5960 #       Alt-F7                  \E[65~
5961 #       Alt-F8                  \E[66~
5962 #       Alt-F9                  \E[67~
5963 #       Alt-F10                 \E[68~
5964 #       Alt-F11                 \E[79~
5965 #       Alt-F12                 \E[80~
5966 #
5967 #       Alt-Delete              \E[65~
5968 #       Alt-Down Arrow          \E[60~
5969 #       Alt-End                 \E[66~
5970 #       Alt-Home                \E[41~
5971 #       Alt-Insert              \E[64~
5972 #       Alt-Left Arrow          \E[61~
5973 #       Alt-Page Down           \E[68~
5974 #       Alt-Page Up             \E[67~
5975 #       Alt-Right Arrow         \E[62~
5976 #       Alt-Up Arrow            \E[59~
5977 #
5978 # Also:
5979 #       Alt-A                   \E[82~
5980 #       Alt-B                   \E[82~
5981 #       Alt-C                   \E[83~
5982 #       Alt-D                   \E[84~
5983 #       Alt-E                   \E[85~
5984 #       Alt-F                   \E[86~
5985 #       Alt-G                   \E[87~
5986 #       Alt-H                   \E[88~
5987 #       Alt-I                   \E[89~
5988 #       Alt-J                   \E[90~
5989 #       Alt-K                   \E[91~
5990 #       Alt-L                   \E[92~
5991 #       Alt-M                   \E[93~
5992 #       Alt-N                   \E[94~
5993 #       Alt-O                   \E[95~
5994 #       Alt-P                   \E[96~
5995 #       Alt-Q                   \E[97~
5996 #       Alt-R                   \E[98~
5997 #       Alt-S                   \E[99~
5998 #       Alt-T                   \E[100~
5999 #       Alt-U                   \E[101~
6000 #       Alt-V                   \E[102~
6001 #       Alt-W                   \E[103~
6002 #       Alt-X                   \E[104~
6003 #       Alt-Y                   \E[105~
6004 #       Alt-Z                   \E[106~
6005 djgpp|ansi emulation for DJGPP alpha,
6006         am, bce, msgr, xhp, xon, xt,
6007         colors#8, it#8, pairs#64,
6008         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
6009         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[1v,
6010         clear=\E[H\E[J, cnorm=\E[v, cr=^M, cub=\E[%p1%dD, cub1=^H,
6011         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
6012         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
6013         cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
6014         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
6015         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@,
6016         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
6017         indn=\E[%p1%dS, invis=\E[8m, kbs=^H, kcub1=\E[D,
6018         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
6019         kend=\E[4~, kf1=\E[[A, kf10=\E[21~, kf11=\E[23~,
6020         kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
6021         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
6022         khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, nel=^M^J,
6023         op=\E[37;40m, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmso=\E[m,
6024         setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
6025         sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%e;25%;%?%p6%t;1%;%?%p7%t;8%;m,
6026         sgr0=\E[m, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
6027
6028 djgpp203|Entry for DJGPP 2.03,
6029         OTbs, am,
6030         cols#80, it#8, lines#25,
6031         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H,
6032         kcud1=^J, nel=^M^J,
6033
6034 djgpp204|Entry for DJGPP 2.04,
6035         OTbs, am, AX,
6036         colors#8, cols#80, it#8, lines#25, ncv#3, pairs#64,
6037         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[1v,
6038         clear=\E[H\E[2J, cnorm=\E[v, cr=^M, cub=\E[%p1%dD,
6039         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
6040         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
6041         cuu1=\E[A, cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P,
6042         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
6043         home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
6044         il1=\E[L, ind=\E[S, indn=\E[%p1%dS, invis=\E[8m, kbs=^H,
6045         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
6046         kdch1=\E[3~, kf0=\E[21~, kf1=\E[[A, kf10=\E[21~, kf2=\E[[B,
6047         kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
6048         kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
6049         kll=\E[4~, knp=\E[6~, kpp=\E[5~, nel=^M^J, rev=\E[7m,
6050         ri=\E[T, rin=\E[%p1%dT, rmso=\E[m, setab=\E[4%p1%dm,
6051         setaf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
6052
6053 # This is tested using U/Win's telnet.  Scrolling is omitted because it is
6054 # buggy.  Another odd bug appears when displaying "~" in alternate character
6055 # set (the emulator spits out error messages).  Compare with att6386 -TD
6056 uwin|U/Win 3.2 console,
6057         am, eo, in, msgr, xenl, xon,
6058         colors#8, it#8, ncv#58, pairs#64,
6059         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
6060         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
6061         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H, cud1=^J,
6062         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
6063         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
6064         ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH,
6065         ich=\E[%p1%d@, ich1=\E[@, kbs=^H, kcub1=\E[D, kcud1=\E[B,
6066         kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[Y, kf1=\EOP,
6067         kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ, kf3=\EOR,
6068         kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX,
6069         khome=\E[H, kich1=\E[@, nel=^M^J, op=\E[39;49m, rc=\E8,
6070         rev=\E[7m, rmacs=\E[10m, rmir=\E[4l, rmpch=\E[10m,
6071         rmso=\E[27m, rmul=\E[m, rs1=\Ec\E]R, sc=\E7,
6072         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0;10m,
6073         smacs=\E[11m, smir=\E[4h, smpch=\E[11m, smso=\E[7m,
6074         smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
6075
6076 # This entry fits the Windows NT console when the _POSIX_TERM environment
6077 # variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
6078 # the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
6079 # stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
6080 # systems is not, and (surprise!) they match very well.
6081 #
6082 # See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
6083 # VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
6084 # are the installation instructions a pile of mind-numbing bureaucratese,
6085 # but the termcap entry is actually broken and unusable as given; the :do:
6086 # capability is misspelled "d".
6087 #
6088 # To use this, you need to a bunch of environment variables:
6089 #
6090 # SET _POSIX_TERM=on
6091 # SET TERM=ansi
6092 # SET TERMCAP=location of termcap file in POSIX file format
6093 # which is case-sensitive.
6094 # e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
6095 # SET TMP=//C/TEMP
6096 #
6097 # Important note: setting the TMP environment variable in POSIX style renders
6098 # it incompatible with a lot of other applications, including Visual C++. So
6099 # you should have a separate command window just for vi. All the other
6100 # variables may be permanently set in the Control Panel\System applet.
6101 #
6102 # You can find out more about the restrictions of this facility at
6103 # <http://www.nentug.org/unix-to-nt/ntposix.htm>.
6104 #
6105 # From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
6106 ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode,
6107         am, bw, msgr,
6108         cols#80, it#8, lines#25,
6109         bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
6110         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
6111         home=\E[H, ht=^I, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[V,
6112         kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S, rc=\E[u, rev=\E[7m,
6113         ri=\E[T, rmso=\E[m, sc=\E[s, sgr0=\E[0m, smso=\E[7m,
6114 # From: jew@venus.sunquest.com
6115 # Date: 19 Feb 93 23:41:07 GMT
6116 # Here's  a  combination of  ansi and  vt100 termcap
6117 # entries   that  works  nearly   perfectly  for  me
6118 # (Gateway 2000 Handbook and Microsoft Works 3.0):
6119 pcmw|PC running Microsoft Works,
6120         am, xenl,
6121         cols#80, it#8, lines#24, vt#3,
6122         bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
6123         clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J,
6124         cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
6125         cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
6126         ht=^I, hts=\EH$<2/>, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H,
6127         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
6128         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED$<5/>,
6129         rc=\E8, rev=\E[7m$<2/>, rf=/usr/share/tabset/vt100,
6130         ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
6131         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
6132         sgr0=\E[m$<2/>, smso=\E[7m$<2/>, smul=\E[4m$<2/>,
6133         tbc=\E[3g$<2/>,
6134
6135 # From: Federico Bianchi
6136 # This is the entry for the OpenNT terminal.
6137 # The ntconsole name is for backward compatability.
6138 # This is for OpenNT 2.0 and later.
6139 # Later OpenNT was renamed to Interix.
6140 #
6141 # Presently it is distributed by Microsoft as Services For Unix (SFU).
6142 # The 3.5 beta contains ncurses 4.2 (that is header files and executables,
6143 # the documentation dates from 1.9.9e) -TD
6144
6145 interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with color,
6146         am, bw, msgr,
6147         colors#8, cols#80, lines#25, ncv#3, pairs#64,
6148         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
6149         bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[2J, cub=\E[%p1%dD,
6150         cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC,
6151         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
6152         cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
6153         home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
6154         indn=\E[%p1%dS, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
6155         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[M, kend=\E[U, kf0=\EFA,
6156         kf1=\EF1, kf10=\EFA, kf11=\EFB, kf12=\EFC, kf13=\EFD,
6157         kf14=\EFE, kf15=\EFF, kf16=\EFG, kf17=\EFH, kf18=\EFI,
6158         kf19=\EFJ, kf2=\EF2, kf20=\EFK, kf21=\EFL, kf22=\EFM,
6159         kf23=\EFN, kf24=\EFO, kf25=\EFP, kf26=\EFQ, kf27=\EFR,
6160         kf28=\EFS, kf29=\EFT, kf3=\EF3, kf30=\EFU, kf31=\EFV,
6161         kf32=\EFW, kf33=\EFX, kf34=\EFY, kf35=\EFZ, kf36=\EFa,
6162         kf37=\EFb, kf38=\EFc, kf39=\EFd, kf4=\EF4, kf40=\EFe,
6163         kf41=\EFf, kf42=\EFg, kf43=\EFh, kf44=\EFi, kf45=\EFj,
6164         kf46=\EFk, kf47=\EFm, kf48=\EFn, kf49=\EFo, kf5=\EF5,
6165         kf50=\EFp, kf51=\EFq, kf52=\EFr, kf53=\EFs, kf54=\EFt,
6166         kf55=\EFu, kf56=\EFv, kf57=\EFw, kf58=\EFx, kf59=\EFy,
6167         kf6=\EF6, kf60=\EFz, kf61=\EF+, kf62=\EF-,
6168         kf63=\EF\014 kf64=\EF$, kf7=\EF7, kf8=\EF8, kf9=\EF9,
6169         kich1=\E[L, kll=\E[U, knp=\E[T, kpp=\E[S, ll=\E[U, nel=^M^J,
6170         op=\E[m, rc=\E[u, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT,
6171         rmcup=\E[2b\E[u\r\E[K, rmso=\E[m, rmul=\E[m, rs1=\Ec,
6172         sc=\E[s, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
6173         setb=\E[%p1%{40}%+%dm, setf=\E[%p1%{30}%+%dm,
6174         sgr0=\E[0m, smcup=\E[s\E[1b, smso=\E[7m, smul=\E[4m,
6175
6176 opennt-35|ntconsole-35|OpenNT-term35 compatible with color,
6177         lines#35, use=opennt,
6178
6179 opennt-50|ntconsole-50|OpenNT-term50 compatible with color,
6180         lines#50, use=opennt,
6181
6182 opennt-60|ntconsole-60|OpenNT-term60 compatible with color,
6183         lines#60, use=opennt,
6184
6185 opennt-100|ntconsole-100|OpenNT-term100 compatible with color,
6186         lines#100, use=opennt,
6187
6188 # OpenNT wide terminals
6189 opennt-w|opennt-25-w|ntconsole-w|ntconsole-25-w|OpenNT-term-w compat with color,
6190         cols#125, use=opennt,
6191
6192 opennt-35-w|ntconsole-35-w|OpenNT-term35-w compatible with color,
6193         lines#35, use=opennt-w,
6194
6195 opennt-50-w|ntconsole-50-w|OpenNT-term50-w compatible with color,
6196         lines#50, use=opennt-w,
6197
6198 opennt-60-w|ntconsole-60-w|OpenNT-term60-w compatible with color,
6199         lines#60, use=opennt-w,
6200
6201 opennt-w-vt|opennt-25-w-vt|ntconsole-w-vt|ntconsole-25-w-vt|OpenNT-term-w-vt compat with color,
6202         cols#132, use=opennt,
6203
6204 # OpenNT terminals with no smcup/rmcup (names match termcap entries)
6205 interix-nti|opennt-nti|opennt-25-nti|ntconsole-25-nti|OpenNT-nti compatible with color,
6206         rmcup@, smcup@, use=opennt,
6207
6208 opennt-35-nti|ntconsole-35-nti|OpenNT-term35-nti compatible with color,
6209         lines#35, use=opennt-nti,
6210
6211 opennt-50-nti|ntconsole-50-nti|OpenNT-term50-nti compatible with color,
6212         lines#50, use=opennt-nti,
6213
6214 opennt-60-nti|ntconsole-60-nti|OpenNT-term60-nti compatible with color,
6215         lines#60, use=opennt-nti,
6216
6217 opennt-100-nti|ntconsole-100-nti|OpenNT-term100-nti compatible with color,
6218         lines#100, use=opennt-nti,
6219
6220 ######## COMMON TERMINAL TYPES
6221 #
6222 # This section describes terminal classes and maker brands that are still
6223 # quite common, but have proprietary command sets not blessed by ANSI.
6224 #
6225
6226 #### Altos
6227 #
6228 # Altos made a moderately successful line of UNIX boxes.  In 1990 they were
6229 # bought out by Acer, a major Taiwanese manufacturer of PC-clones.
6230 # Acer has a web site at http://www.acer.com.
6231 #
6232 # Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
6233 # His comments suggest they were shipped with the system.
6234 #
6235
6236 # (altos2: had extension capabilities
6237 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
6238 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
6239 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
6240 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
6241 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
6242 #       :YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
6243 #       :HL=^AP\r:SP=\E[i:\
6244 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
6245 #       :LO=\E[0q:LC=\E[5q:LL=\E[6q:\
6246 # Comparison with the k* capabilities makes it obvious that the c* things are
6247 # shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
6248 # :sr: was given as a boolean-- esr)
6249 altos2|alt2|altos-2|altos II,
6250         cols#80, it#8, lines#24, xmc#0,
6251         clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[1B, cuf1=\E[1C,
6252         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch1=\E[P, dl1=\E[M,
6253         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
6254         if=/usr/share/tabset/vt100, il1=\E[L, ind=^J,
6255         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r,
6256         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D,
6257         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r,
6258         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
6259         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
6260         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
6261         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
6262         kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r,
6263         nel=^M^J, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
6264         smam=\E[?7h, smso=\E[7m, smul=\E[4m,
6265 # (altos3: had extension capabilities
6266 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
6267 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
6268 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
6269 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
6270 #       :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
6271 #       :HL=^AP\r:SP=\E[i:\
6272 #       :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:
6273 altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V,
6274         blink=\E[5p, ri=\EM, sgr0=\E[p, use=altos2,
6275 altos4|alt4|altos-4|altos IV,
6276         use=wy50,
6277 # (altos7: had extension capabilities:
6278 #       :GG#0:GI=\EH8:GF=\EH7:\
6279 #       :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
6280 #       :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
6281 #       :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
6282 #       :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
6283 # Comparison with the k* capabilities makes it obvious that the c* things are
6284 # shift keys.  I have renamed them to keys 32 and up accordingly.  I have
6285 # also made this entry relative to adm12 in order to give it an <sgr>. The
6286 # <invis> imported by use=adm+sgr may work, let me know. -- esr)
6287 altos7|alt7|altos VII,
6288         am, mir,
6289         cols#80, lines#24, xmc#0,
6290         acsc=j5k3l2m1n8q\:t4u9v=w0x6, blink=\EG2, bold=\EGt,
6291         clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6292         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
6293         dim=\EGp, dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE,
6294         ind=^J, invis=\EG1,
6295         is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r,
6296         kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H,
6297         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r,
6298         kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
6299         kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
6300         kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
6301         kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
6302         kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r,
6303         knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=^M^J, ri=\Ej,
6304         rmir=\Er, smir=\Eq, use=adm+sgr,
6305 altos7pc|alt7pc|altos PC VII,
6306         kend=\ET, use=altos7,
6307
6308 #### Hewlett-Packard (hp)
6309 #
6310 #       Hewlett-Packard
6311 #       8000 Foothills Blvd
6312 #       Roseville, CA 95747
6313 #       Vox: 1-(916)-785-4363   (Technical response line for VDTs)
6314 #            1-(800)-633-3600   (General customer support)
6315 #
6316 #
6317 # As of March 1998, HP no longer has any terminals in production.
6318 # The 700 series (22, 32, 41, 44, 92, 94, 96, 98) is still being
6319 # supported (they still have parts). So are the 2392a and 2394a.
6320 # See the WORKSTATION CONSOLES section for the 700s.
6321 #
6322
6323 # Generic HP terminal - this should (hopefully) work on any HP terminal.
6324 hpgeneric|hp|hewlett-packard generic terminal,
6325         OTbs, OTpt, am, da, db, mir, xhp,
6326         cols#80, lines#24, lm#0, vt#6,
6327         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
6328         cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM,
6329         ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL,
6330         ind=^J, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@,
6331         sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3,
6332         vpa=\E&a%p1%dY,
6333
6334 hp110|hewlett-packard model 110 portable,
6335         lines#16, use=hpgeneric,
6336
6337 hp+pfk+cr|hp function keys with CR,
6338         kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r,
6339         kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r,
6340
6341 hp+pfk-cr|hp function keys w/o CR,
6342         kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev,
6343         kf8=\Ew,
6344
6345 # The hp2621s use the same keys for the arrows and function keys,
6346 # but not separate escape sequences. These definitions allow the
6347 # user to use those keys as arrow keys rather than as function
6348 # keys.
6349 hp+pfk+arrows|hp alternate arrow definitions,
6350         kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@,
6351         kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r,
6352         kll=\Eq\r, kri=\Es\r,
6353
6354 hp+arrows|hp arrow definitions,
6355         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
6356         kind=\ES, kll=\EF, kri=\ET,
6357
6358 # Generic stuff from the HP 262x series
6359 #
6360 hp262x|HP 262x terminals,
6361         xhp,
6362         blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES,
6363         invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
6364         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
6365         kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET,
6366         krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
6367         sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%c,
6368         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
6369
6370 # Note: no <home> on HPs since that homes to top of memory, not screen.
6371 # Due to severe 2621 braindamage, the only way to get the arrow keys to
6372 # transmit anything at all is to turn on the function key labels
6373 # with <smkx>, and even then the user has to hold down shift!
6374 # The default 2621 turns off the labels except when it has to to
6375 # enable the function keys. If your installation prefers labels
6376 # on all the time, or off all the time (at the "expense" of the
6377 # function keys), use 2621-nl or 2621-wl.
6378 #
6379 # Note: there are newer ROMs for 2621's that allow you to set
6380 # strap A so the regular arrow keys xmit \EA, etc, as with the
6381 # 2645. However, even with this strap set, the terminal stops
6382 # xmitting if you reset it, until you unset and reset the strap!
6383 # Since there is no way to set/unset the strap with an escape
6384 # sequence, we don't use it in the default.
6385 # If you like, you can use 2621-ba (brain-damaged arrow keys).
6386 hp2621-ba|2621 w/new rom and strap A set,
6387         rmkx@, smkx@, use=hp+arrows, use=hp2621,
6388
6389 # hp2621 with function labels. Most of the time they are off,
6390 # but inside vi, the function key labels appear. You have to
6391 # hold down shift to get them to xmit.
6392 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels,
6393         is2=\E&jA\r, rmkx=\E&jA, use=hp2621-fl,
6394 hp2621-fl|hp 2621,
6395         xhp@, xon,
6396         pb#19200,
6397         cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>,
6398         ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@,
6399         sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD,
6400         use=hp+pfk+cr, use=hpgeneric,
6401
6402 # To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
6403 hp2621p|hp 2621 with printer,
6404         mc4=\E&p13C, mc5=\E&p11C, use=hp2621,
6405
6406 hp2621p-a|hp2621p with fn as arrows,
6407         use=hp+pfk+arrows, use=hp2621p,
6408
6409 # hp2621 with k45 keyboard
6410 hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard,
6411         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
6412         khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
6413
6414 # 2621 using all 48 lines of memory, only 24 visible at any time.
6415 hp2621-48|48 line 2621,
6416         lines#48,
6417         cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR,
6418         use=hp2621,
6419
6420 # 2621 with no labels ever. Also prevents vi delays on escape.
6421 hp2621-nl|hp 2621 with no labels,
6422         kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@,
6423         use=hp2621-fl,
6424
6425 # Needed for UCB ARPAVAX console, since lsi-11 expands tabs
6426 # (wrong).
6427 #
6428 hp2621-nt|hp 2621 w/no tabs,
6429         ht@, use=hp2621,
6430
6431 # Hp 2624 B with 4 or 10 pages of memory.
6432 #
6433 # Some assumptions are made with this entry. These settings are
6434 # NOT set up by the initialization strings.
6435 #
6436 # Port Configuration
6437 #       RecvPace=Xon/Xoff
6438 #       XmitPace=Xon/Xoff
6439 #       StripNulDel=Yes
6440 #
6441 # Terminal Configuration
6442 #       InhHndShk=Yes
6443 #       InhDC2=Yes
6444 #       XmitFnctn(A)=No
6445 #       InhEolWrp=No
6446 #
6447 # Note: the 2624 DOES have a true <home>, believe it or not!
6448 #
6449 # The 2624 has an "error line" to which messages can be sent.
6450 # This is CLOSE to what is expected for a "status line". However,
6451 # after a message is sent to the "error line", the next carriage
6452 # return is EATEN and the "error line" is turned back off again!
6453 # So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
6454 #
6455 # This entry supports emacs (and any other program that uses raw
6456 # mode) at 4800 baud and less. I couldn't get the padding right
6457 # for 9600.
6458 #
6459 # (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
6460 hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B,
6461         da, db,
6462         lm#96,
6463         flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F,
6464         use=hp+labels, use=scrhp,
6465
6466 # This hp2626 entry does not use any of the fancy windowing stuff
6467 # of the 2626.
6468 #
6469 # Indeed, terminfo does not yet handle such stuff. Since changing
6470 # any window clears memory, it is probably not possible to use
6471 # this for screen opt.
6472 #
6473 # ed is incredibly slow most of the time - I am guessing at the
6474 # exact padding. Since the terminal uses xoff/xon this is intended
6475 # only for cost computation, so that the terminal will prefer el
6476 # or even dl1 which is probably faster!
6477 #
6478 # \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
6479 # extra slow on the last line of the window.
6480 #
6481 # The padding probably should be changed.
6482 #
6483 hp2626|hp2626a|hp2626p|hp 2626,
6484         da, db,
6485         lm#0, pb#19200,
6486         ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>,
6487         is2=\E&j@\r, rin=\E&r%p1%dU, use=hp+pfk-cr,
6488         use=hp+labels, use=scrhp,
6489
6490 # This entry is for sysline. It allocates a 23 line window with
6491 # a 115 line workspace for regular use, and a 1 line window for
6492 # the status line.
6493 #
6494 # This assumes port 2 is being used.
6495 # Turn off horizontal line, Create ws #1 with 115 lines,
6496 # Create ws #2 with 1 line, Create window #1 lines 1-23,
6497 # Create window #2 lines 24-24, Attach cursor to workspace #1.
6498 # Note that this clears the tabs so it must be done by tset before
6499 # it sets the tabs.
6500 #
6501 hp2626-s|hp 2626 using only 23 lines,
6502         eslok, hs,
6503         lines#23,
6504         fsl=\E&d@\E&w7f2p1I\E&w4f1I,
6505         is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r,
6506         tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, use=hp2626,
6507 # Force terminal back to 24 lines after being 23.
6508 hp2626-ns|hp 2626 using all 24 lines,
6509         is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r,
6510         use=hp2626,
6511 # Various entries useful for small windows on 2626.
6512 hp2626-12|hewlett-packard 2626 12 lines,
6513         lines#12, use=hp2626,
6514 hp2626-12x40|hewlett-packard 2626 12 lines 40 columns,
6515         cols#40, lines#12, use=hp2626,
6516 hp2626-x40|hewlett-packard 2626 40 columns,
6517         cols#40, use=hp2626,
6518 hp2626-12-s|hewlett-packard 2626 11 lines plus status,
6519         lines#11, use=hp2626-s,
6520
6521 #
6522 # hp2627 color tubes from University of Wisconsin
6523 #
6524 hp2627a-rev|hp 2627 with reverse video colors,
6525         cr=^M, cud1=^J, ht=^I, ind=^J,
6526         is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r,
6527         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmul=\E&v0S\E&d@,
6528         smul=\E&dD\E&v1S, use=hp2621-nl,
6529 hp2627a|hp 2627 color terminal with no labels,
6530         cr=^M, cud1=^J, ht=^I, ind=^J,
6531         is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r,
6532         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmso=\E&v0S,
6533         rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S,
6534         use=hp2621-nl,
6535 hp2627c|hp 2627 color (cyan) terminal with no labels,
6536         cr=^M, cud1=^J, ht=^I, ind=^J,
6537         is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r,
6538         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, use=hp2627a,
6539
6540 # hp2640a doesn't have the Y cursor addressing feature, and C is
6541 # memory relative instead of screen relative, as we need.
6542 #
6543 hp2640a|hp 2640a,
6544         cup@, rmkx@, smkx@, use=hp2645,
6545
6546 hp2640b|hp2644a|hp 264x series,
6547         rmkx@, smkx@, use=hp2645,
6548
6549 # (hp2641a: removed unknown :gu: -- esr)
6550 hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry,
6551         am, da, db, mir, xhp,
6552         cols#80, lines#24,
6553         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
6554         cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
6555         ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I,
6556         if=/usr/share/tabset/std, il1=\EL, ind=^J,
6557         is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
6558         rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
6559         vpa=\E&a%p1%2dY,
6560
6561 # This terminal should be used at 4800 baud or less. It needs padding for
6562 # plain characters at 9600, I guessed at an appropriate cr delay.  It really
6563 # wants ^E/^F handshaking, but that doesn't work well even if you write
6564 # software to support it.
6565 hp2645|hp45|HP 2645 series,
6566         pb#9600,
6567         blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED,
6568         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
6569         ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL,
6570         kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB,
6571         rmkx=\E&s0A,
6572         sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%?%p5%t%{72}%|%;%?%p6%t%{66}%|%;%c,
6573         sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, use=hpgeneric,
6574 # You should use this terminal at 4800 baud or less.
6575 hp2648|hp2648a|HP 2648a graphics terminal,
6576         clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
6577         dch1=\EP$<7>, ip=$<5>, use=hp2645,
6578
6579 # The HP 150 terminal is a fairly vanilla HP terminal, with the
6580 # clreol standout problem. It also has graphics capabilities and
6581 # a touch screen, which we don't describe here.
6582 hp150|hewlett packard Model 150,
6583         OTbs, use=hp2622,
6584
6585 # HP 2382a terminals, "the little ones." They don't have any
6586 # alternate character set support and sending out ^N/^O will
6587 # leave the screen blank.
6588 hp2382a|hp2382|hewlett packard 2382a,
6589         da, db,
6590         lh#1, lm#48,
6591         acsc@,
6592         pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
6593         rmacs@,
6594         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%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c,
6595         sgr0=\E&d@, smacs@, use=hp+labels, use=scrhp,
6596
6597 hp2621-a|hp2621a-a|hp2621 with fn as arrows,
6598         use=hp+pfk+arrows, use=hp2621-fl,
6599
6600 # newer hewlett packard terminals
6601
6602 newhpkeyboard|generic entry for HP extended keyboard,
6603         kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
6604         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
6605         kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV,
6606         kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A,
6607         use=hp+pfk-cr,
6608
6609 newhp|generic entry for new hewlett packard terminals,
6610         am, bw, mir, xhp, xon,
6611         cols#80, lines#24, pb#4800,
6612         acsc=2[3@4>5I9(\:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\:Y+Z*dHjGkTlRmFn/q\,t5u6v8w7x.,
6613         bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H,
6614         cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH,
6615         dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J,
6616         invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=^M^J,
6617         pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s,
6618         pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s,
6619         pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET,
6620         rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg,
6621         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%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c%?%p9%t\016%e\017%;,
6622         sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD,
6623         tbc=\E3, use=newhpkeyboard,
6624
6625 memhp|memory relative addressing for new HP ttys,
6626         vt#6,
6627         clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR,
6628         cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR,
6629         home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r,
6630         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp,
6631
6632 scrhp|screen relative addressing for new HP ttys,
6633         clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC,
6634         cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC,
6635         cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR,
6636         home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA,
6637         mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp,
6638
6639 # (hp+labels: added label values from a BRL termcap -- esr)
6640 hp+labels|"standard" label info for new HP ttys,
6641         lh#2, lw#8, nlab#8,
6642         lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8,
6643         pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
6644         rmln=\E&j@, smln=\E&jB,
6645
6646 hp+printer|"standard" printer info for HP ttys,
6647         ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C,
6648
6649
6650 # The new hp2621b is kind of a cross between the old 2621 and the
6651 # new 262x series of machines. It has dip-switched options.
6652 # The firmware has a bug in it such that if you give it a null
6653 # length label, the following character is eaten!
6654 hp2621b|hp 2621b with old style keyboard,
6655         lh#1, lm#48, lw#8, nlab#8,
6656         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
6657         kind=\ET, kll=\EF, kri=\ES,
6658         pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c%;%p2%s\E%{111}%p1%+%c\r,
6659         smln=\E&jB, use=hp2621,
6660
6661 hp2621b-p|hp 2621b with printer,
6662         use=hp+printer, use=hp2621b,
6663
6664 # hp2621b - new 2621b with new extended keyboard
6665 # these are closer to the new 26xx series than the other 2621b
6666 hp2621b-kx|hp 2621b with extended keyboard,
6667         use=newhpkeyboard, use=hp2621b,
6668
6669 hp2621b-kx-p|hp 2621b with new keyboard & printer,
6670         use=hp+printer, use=hp2621b-kx,
6671
6672 # Some assumptions are made in the following entries.
6673 # These settings are NOT set up by the initialization strings.
6674 #
6675 #    Port Configuration
6676 # RecvPace=Xon/Xoff     XmitPace=Xon/Xoff       StripNulDel=Yes
6677 #
6678 #    Terminal Configuration
6679 # InhHndShk(G)=Yes      InhDC2(H)=Yes
6680 # XmitFnctn(A)=No               InhEolWrp=No
6681 #
6682 #
6683 # Hp 2622a & hp2623a display and graphics terminals
6684 #
6685 hp2622|hp2622a|hp 2622,
6686         da, db,
6687         lm#0, pb#19200,
6688         is2=\E&dj@\r, use=hp+pfk-cr, use=hp+labels, use=scrhp,
6689
6690 # The 2623 is a 2622 with extra graphics hardware.
6691 hp2623|hp2623a|hp 2623,
6692         use=hp2622,
6693
6694 hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer,
6695         use=hp+printer, use=hp2624,
6696
6697 # The hewlett packard B can have an optional extra 6 pages of memory.
6698 hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory,
6699         lm#240, use=hp2624,
6700
6701 hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer,
6702         lm#240, use=hp2624b-p,
6703
6704 # Color manipulations for HP terminals
6705 hp+color|hp with colors,
6706         ccc,
6707         colors#16, ncv#17, pairs#7,
6708         initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.%p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1%e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=%t1%e.%p7%d%;z%p1%dI,
6709         oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I,
6710         op=\E&v0S, scp=\E&v%p1%dS,
6711
6712 # <is2> sets the screen to be 80 columns wide
6713 hp2397a|hp2397|hewlett packard 2397A color terminal,
6714         is2=\E&w6f80X, use=memhp, use=hp+labels, use=hp+color,
6715
6716 #  HP 700/44 Setup parameters:
6717 # Terminal Mode         HP-PCterm
6718 # Inhibit Auto Wrap     NO
6719 # Status Line           Host Writable
6720 # PC Character Set      YES
6721 # Twenty-Five Line Mode YES
6722 # XON/XOFF              @128 or 64 (sc)
6723 # Keycode Mode          NO   or YES (sc)
6724 # Backspace Key         BS or BS/DEL
6725 #
6726 # <is2>         sets pcterm; autowrap; 25 lines; pc char set; prog DEL key;
6727 # \E\\? does not turn off keycode mode
6728 # <smsc>        sets alternate start/stop; keycode on
6729 hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode,
6730         am, eo, xenl, xon,
6731         cols#80, lines#25,
6732         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
6733         bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H,
6734         cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
6735         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
6736         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
6737         ind=^J,
6738         is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\,
6739         kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
6740         kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
6741         kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~,
6742         kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~,
6743         kpp=\E[5~, rmam=\E[?7l,
6744         rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m,
6745         rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
6746         smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m,
6747         smul=\E[4m, xoffc=g, xonc=e,
6748 #
6749 # (hp2392: copied <rmir> here from hpex -- esr)
6750 hp2392|239x series,
6751         cols#80,
6752         cbt=\Ei, cup=\E&a%p1%dy%p2%dC, kf1=\Ep\r, kf2=\Eq\r,
6753         kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r,
6754         kf8=\Ew\r, khome=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV,
6755         rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY,
6756         use=hpsub,
6757
6758 hpsub|hp terminals -- capability subset,
6759         am, da, db, mir, xhp, xon,
6760         lines#24,
6761         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
6762         cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC,
6763         ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J,
6764         is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB,
6765         kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@,
6766         sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
6767
6768 # hpex:
6769 #       May be used for most 24 x 80 hp terminals,
6770 # but has no padding added, so may allow runover in some terminals at high
6771 # baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and
6772 # hp98x5 terminal emulators or hp98x6 consoles.
6773 #       Adds xy-cursor addressing, vertical cursor addressing, home,
6774 # last line, and underline capabilities.
6775 #
6776 # (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
6777 # moved <rmir> here from hpsub -- esr)
6778 hpex|hp extended capabilites,
6779         cr=^M, cud1=^J, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=^J, kbs=^H,
6780         kcub1=^H, kcud1=^J, nel=^M^J, rmir=\ER, rmul=\E&d@, smir=\EQ,
6781         smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub,
6782
6783 # From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
6784 hp2|hpex2|hewlett-packard extended capabilities newer version,
6785         am, da, db, mir, xhp,
6786         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, xmc#0,
6787         bel=^G, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
6788         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
6789         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
6790         il1=\EL, ind=^J, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
6791         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
6792         ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
6793         kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
6794         kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
6795         krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
6796         pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
6797         pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
6798         pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
6799         pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A,
6800         rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
6801         sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
6802         sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smln=\E&jB, smso=\E&dB,
6803         smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
6804
6805 # HP 236 console
6806 # From: <ddavis@ic.berkeley.edu>
6807 hp236|hp236 internal terminal emulator,
6808         OTbs, am,
6809         cols#80, lines#24,
6810         clear=\EF, cnorm=\EDE, cub1=^H,
6811         cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\EDB,
6812         dch1=\EJ, dl1=\EH, el=\EK, ich1=\EI, il1=\EG, rmso=\ECI,
6813         sgr0=\ECI, smso=\EBI,
6814
6815 # This works on a hp300 console running Utah 4.3 BSD
6816 # From: Craig Leres <leres@okeeffe.berkeley.edu>
6817 hp300h|HP Catseye console,
6818         OTbs, am, da, db, mir, xhp,
6819         cols#128, lines#51, lm#0, xmc#0,
6820         bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
6821         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
6822         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I,
6823         if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, kbs=^H,
6824         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
6825         rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
6826         smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, tbc=\E3,
6827         vpa=\E&a%p1%dY,
6828 # From: Greg Couch <gregc@ernie.berkeley.edu>
6829 hp9837|hp98720|hp98721|HP 9000/300 workstations,
6830         OTbs, am, da, db, mir, xhp,
6831         cols#128, it#8, lines#46, lm#0,
6832         bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB,
6833         cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
6834         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
6835         il1=\EL, ind=^J, is2=\E&v0m1b0i&j@, kbs=^H, kcub1=\ED,
6836         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
6837         ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, knp=\EU,
6838         kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S, rmul=\E&d@,
6839         sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S, smul=\E&dD,
6840         tbc=\E3, vpa=\E&a%p1%dY,
6841 # HP 9845 desktop computer from BRL
6842 # (hp9845: removed unknown capability :gu: -- esr)
6843 hp9845|HP 9845,
6844         OTbs, am, da, db, eo, mir, xhp,
6845         cols#80, lines#21,
6846         OTbc=\ED, clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
6847         cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
6848         ed=\EJ, el=\EK, if=/usr/share/tabset/std, il1=\EL,
6849         rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
6850 # From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
6851 # (hp98550: replaced /usr/share/tabset/9837 with std because <it#8>,<hts=\E1>;
6852 # added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
6853 hp98550|hp98550a|HP 9000 Series 300 color console,
6854         OTbs, am, da, db, mir, xhp,
6855         cols#128, it#8, lines#49, lm#0,
6856         acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR,
6857         clear=\EH\EJ, cnorm=\E*dQ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
6858         cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH,
6859         dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
6860         if=/usr/share/tabset/std, il1=\EL, ind=^J, invis=\E&ds,
6861         kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
6862         kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
6863         kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
6864         khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
6865         knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dJ,
6866         rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
6867         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smso=\E&dJ,
6868         smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
6869 # From: Victor Duchovni <vic@fine.princeton.edu>
6870 # (hp700-wy: removed obsolete ":nl=^J:";
6871 # replaced /usr/share/tabset/hp700-wy with std because <it#8>,<hts=\E1> -- esr)
6872 hp700-wy|HP700/41 emulating wyse30,
6873         OTbs, am, bw, mir, msgr,
6874         cols#80, it#8, lines#24, xmc#1,
6875         cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
6876         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
6877         dl1=\ER, ed=\EY, el=\ET$<10/>, home=^^, ht=^I, hts=\E1,
6878         if=/usr/share/tabset/stdcrt, il1=\EE$<0.7*/>,
6879         is1=\E~"\EC\Er\E(\EG0\003\E`9\E`1, kbs=\177, kcbt=\EI,
6880         kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, ked=\EY,
6881         kel=\ET, khome=^^, khts=\EI, kich1=\Eq, krmir=\Er, ll=^^^K,
6882         ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>,
6883         sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>,
6884         smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c,
6885 hp70092|hp70092a|hp70092A|HP 700/92,
6886         am, da, db, xhp,
6887         cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8,
6888         acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA,
6889         bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H,
6890         cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
6891         dch1=\EP, dim=\E&dH, dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I,
6892         hts=\E1, il1=\EL, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
6893         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
6894         ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
6895         kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
6896         kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
6897         krmir=\ER, ktbc=\E3, rev=\E&dB, ri=\ET, rmacs=^O, rmir=\ER,
6898         rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
6899         sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
6900         smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
6901
6902 bobcat|sbobcat|HP 9000 model 300 console,
6903         am, da, db, mir, xhp,
6904         cols#128, it#8, lines#47, xmc#0,
6905         cbt=\Ei, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
6906         cup=\E&a%p1%dy%p2%dC$<6/>, cuu1=\EA, dch1=\EP,
6907         dl1=\EM$<10*/>, ed=\EJ, el=\EK, hpa=\E&a%p1%dC$<6/>, ht=^I,
6908         il1=\EL$<10*/>, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
6909         kcuf1=\EC, kcuu1=\EA, khome=\Eh, nel=^M^J, rmir=\ER,
6910         rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smir=\EQ,
6911         smkx=\E&s1A, smso=\E&dB, smul=\E&dD, vpa=\E&a%p1%dY$<6/>,
6912 gator-t|HP 9000 model 237 emulating extra-tall AAA,
6913         lines#94, use=gator,
6914 gator|HP 9000 model 237 emulating AAA,
6915         bw, km, mir, ul,
6916         cols#128, it#8, lines#47,
6917         bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J,
6918         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM,
6919         dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>,
6920         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%d`,
6921         ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@, il=\E[%p1%dL$<1*/>,
6922         il1=\E[L, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
6923         rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m,
6924         rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
6925 gator-52|HP 9000 model 237 emulating VT52,
6926         cols#128, lines#47, use=vt52,
6927 gator-52t|HP 9000 model 237 emulating extra-tall VT52,
6928         lines#94, use=gator-52,
6929
6930 #### Honeywell-Bull
6931 #
6932 # From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
6933 #
6934
6935 # Honeywell Bull terminal.  Its cursor and function keys send single
6936 # control characters and it has standout/underline glitch.  Most programs
6937 # do not like these features/bugs.  Visual bell is realized by flashing the
6938 # "keyboard locked" LED.
6939 dku7003-dumb|Honeywell Bull DKU 7003 dumb mode,
6940         cols#80, lines#25,
6941         clear=^]^_, cr=^M, cub1=^Y, cud1=^K, cuf1=^X,
6942         cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, ed=^_, el=\E[K,
6943         flash=\E[2h\E[2l, home=^], ht=^I, ind=^J, kbs=^H, kcub1=^Y,
6944         kcud1=^K, kcuf1=^X, kcuu1=^Z, khome=^], nel=^M^J,
6945 dku7003|Honeywell Bull DKU 7003 all features described,
6946         msgr,
6947         xmc#1,
6948         blink=\E[5m, bold=\E[7m, dim=\E[2m, rev=\E[7m, rmso=\E[m,
6949         rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
6950         use=dku7003-dumb,
6951
6952 #### Lear-Siegler (adm)
6953 #
6954 # These guys are long since out of the terminals business, but
6955 # in 1995 many current terminals still have an adm type as one of their
6956 # emulations (usually their stupidest, and usually labeled adm3, though
6957 # these `adm3' emulations normally have adm3a+ capabilities).
6958 #
6959 # WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a
6960 # `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
6961 # was being held to ground would trigger a send of the top line on the screen.
6962 # A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
6963 # hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
6964 # for clearing up this point.)
6965
6966 adm1a|adm1|lsi adm1a,
6967         am,
6968         cols#80, lines#24,
6969         bel=^G, clear=\E;$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6970         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^,
6971         ind=^J,
6972 adm2|lsi adm2,
6973         OTbs, am,
6974         cols#80, lines#24,
6975         bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6976         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
6977         dl1=\ER, ed=\EY, el=\ET, home=^^, ich1=\EQ, il1=\EE, ind=^J,
6978         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
6979 # (adm3: removed obsolete ":ma=^K^P:" -- esr)
6980 adm3|lsi adm3,
6981         OTbs, am,
6982         cols#80, lines#24,
6983         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, ind=^J,
6984 # The following ADM-3A switch settings are assumed for normal operation:
6985 #       SPACE           U/L_DISP        CLR_SCRN        24_LINE
6986 #       CUR_CTL         LC_EN           AUTO_NL         FDX
6987 # Other switches may be set for operator convenience or communication
6988 # requirements.  I recommend
6989 #       DISABLE_KB_LOCK LOCAL_OFF       103             202_OFF
6990 #       ETX_OFF         EOT_OFF
6991 # Most of these terminals required an option ROM to support lower case display.
6992 # Open the case and look at the motherboard; if you see an open 24-pin DIP
6993 # socket, you may be out of luck.
6994 #
6995 # (adm3a: some capabilities merged in from BRl entry -- esr)
6996 adm3a|lsi adm3a,
6997         OTbs, am,
6998         cols#80, lines#24,
6999         OTma=^K^P, OTnl=^J, bel=^G, clear=\032$<1/>, cr=^M, cub1=^H,
7000         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
7001         cuu1=^K, home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L,
7002         kcuu1=^K, rs2=^N,
7003 adm3a+|adm3a plus,
7004         kbs=^H, use=adm3a,
7005 # (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
7006 adm5|lsi adm5,
7007         xmc#1,
7008         bel=^G, cr=^M, cud1=^J, ed=\EY, el=\ET, kbs=^H, khome=^^,
7009         rmso=\EG, smso=\EG, use=adm3a+,
7010 # A lot of terminals other than adm11s use these.  Wherever you see
7011 # use=adm+sgr with some of its capabilities disabled, try the
7012 # disabled ones.  They may well work but not have been documented or
7013 # expressed in the using entry.  We'd like to cook up an <sgr> but the
7014 # <rmacs>/<smacs> sequences of the using entries vary too much.
7015 adm+sgr|adm style highlight capabilities,
7016         invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0, sgr0=\EG0,
7017         smso=\EG4, smul=\EG8,
7018 # LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
7019 # Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
7020 # <khome> from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  <clear> could also
7021 # be ^Z, according to his entry.
7022 # (adm11: <smul>=\EG4 was obviously erroneous because it also said
7023 # <rev>=\EG4.  Looking at other ADMs confirms this -- esr)
7024 adm11|LSI ADM-11,
7025         OTbs, am, hs,
7026         OTkn#8, cols#80, lines#24,
7027         OTnl=^J, bel=^G, blink=\EG2, clear=\E*, cr=^M, cub1=^H,
7028         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
7029         cuu1=^K, dsl=\Eh, ed=\EY, el=\ET, fsl=\E(\r, home=^^, ht=^I,
7030         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
7031         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
7032         kf7=^AF\r, kf8=^AG\r, khome=^^, nel=^M^J, tsl=\EF\E),
7033         use=adm+sgr,
7034 # From: Andrew Scott Beals <bandy@lll-crg.ARPA>
7035 # Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
7036 # Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
7037 # (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
7038 # <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
7039 # via BRL.  That entry asserted <xmc#1>, but I've left that out because
7040 # neither earlier nor later ADMSs have it -- esr)
7041 #
7042 # You will need to get into the supervisor setup before you can set
7043 # baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
7044 # see a lot more setup options.
7045 #
7046 # While in supervisor setup you can also use following codes:
7047 #
7048 # Ctrl-P Personality character selections (configure for example what
7049 #        arrow keys send, if I recall correctly)
7050 # Ctrl-T tabs 1-80   use left&right to move and up to set and
7051 # Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
7052 # Ctrl-B Binary setup (probably not needed. I think that everything can
7053 #        be set using normal setup)
7054 # Ctrl-A Answerback mode (enter answerback message)
7055 # Ctrl-U User friendly mode (normal setup)
7056 # Ctrl-D Defaults entire setup and function keys from EPROM tables
7057 # Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
7058 # Ctrl-R Reads both setup and functions keys from NVM.
7059 # Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
7060 #
7061 # ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
7062 # RTS/CTS used nowadays with virtually every modem and computer. 19200
7063 # bps works fine with hardware flow control.
7064 #
7065 # The following null-modem cable should fix this and enable you to use
7066 # RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
7067 # set ADM-12+ for DTR handshaking from supervisor setup.
7068 #
7069 # PC Serial   ADM-12+
7070 #  --------   -------
7071 #         2 - 3
7072 #         3 - 2
7073 #         4 - 5
7074 #         5 - 20
7075 #       6,8 - 4
7076 #         7 - 7
7077 #        20 - 6,8
7078 #
7079 adm12|lsi adm12,
7080         OTbs, OTpt, am, mir,
7081         OTug#1, cols#80, it#8, lines#24,
7082         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7083         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7084         dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
7085         is2=\E0        \E1        \E1        \E1        \E1        \E1        \E1        \E1        \E1,
7086         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
7087         kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
7088         kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, smir=\Eq, tbc=\E0,
7089         use=adm+sgr,
7090 # (adm20: removed obsolete ":kn#7:" -- esr)
7091 adm20|lear siegler adm20,
7092         OTbs, am,
7093         cols#80, it#8, lines#24,
7094         bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cuf1=^L,
7095         cup=\E=%i%p2%{31}%+%c%p1%{31}%+%c, cuu1=^K, dch1=\EW,
7096         dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, ich1=\EQ, il1=\EE,
7097         kf1=^A, kf2=^B, kf3=^W, kf4=^D, kf5=^E, kf6=^X, kf7=^Z, rmso=\E(,
7098         sgr0=\E(, smso=\E),
7099 adm21|lear siegler adm21,
7100         xmc#1,
7101         bel=^G, cr=^M, cud1=^J, dch1=\EW, dl1=30*\ER, ed=\EY, el=\ET,
7102         ich1=\EQ, il1=30*\EE, ind=^J, invis@, kbs=^H, kcub1=^H,
7103         kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, use=adm+sgr,
7104         use=adm3a,
7105 # (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
7106 # removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
7107 # removed bogus-looking \200 from before <cup>. -- esr)
7108 adm22|lsi adm22,
7109         OTbs, am,
7110         cols#80, lines#24,
7111         bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7112         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7113         dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE,
7114         is2=\E%\014\014\014\016\003\0\003\002\003\002\0\0\0\0\0\0\0\0\0\0\0,
7115         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
7116         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
7117         kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
7118         lf6=F6, lf7=F7, rmso=\E(, sgr0=\E(, smso=\E),
7119 # ADM 31 DIP Switches
7120 #
7121 # This information comes from two versions of the manual for the
7122 # Lear-Siegler ADM 31.
7123 #
7124 # Main board:
7125 #                  rear of case
7126 #   +-||||-------------------------------------+
7127 #   + S1S2                              ||S    +
7128 #   +                                   ||3    +
7129 #   +                                          +
7130 #   +                                ||S       +
7131 #   +                                ||4       +
7132 #   +                                          +
7133 #   +                                          +
7134 #   +                                          +
7135 #   +                                          +
7136 #   +                                          +
7137 # +-+                                          +-+
7138 # +                                              +
7139 # +                               S5 S6 S7       +
7140 # +                               == == ==       +
7141 # +----------------------------------------------+
7142 #            front of case (keyboard)
7143 #
7144 #  S1 - Data Rate - Modem
7145 #  S2 - Data Rate - Printer
7146 # ------------------------
7147 # Data Rate   Setting
7148 # -------------------
7149 # 50          0 0 0 0
7150 # 75          1 0 0 0
7151 # 110         0 1 0 0
7152 # 134.5       1 1 0 0
7153 # 150         0 0 1 0
7154 # 300         1 0 1 0
7155 # 600         0 1 1 0
7156 # 1200        1 1 1 0
7157 # 1800        0 0 0 1
7158 # 2000        1 0 0 1
7159 # 2400        0 1 0 1
7160 # 3600        1 1 0 1
7161 # 4800        0 0 1 1
7162 # 7200        1 0 1 1
7163 # 9600        0 1 1 1
7164 # x           1 1 1 1
7165 #
7166 # S3 - Interface/Printer/Attributes
7167 # ---------------------------------
7168 # Printer Busy Control
7169 # sw1   sw2   sw3
7170 # ---------------
7171 # off   off   off   Busy not active, CD disabled
7172 # off   off   on    Busy not active, CD enabled
7173 # off   on    off   Busy active on J5-20, CD disabled
7174 # on    off   off   Busy active on J5-19, CD disabled - Factory Set.
7175 # on    off   on    Busy active on J5-19, CD enabled
7176 #
7177 # sw4   Used in conjuction with S4 for comm interface control - Fact 0
7178 #
7179 # sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
7180 #
7181 # sw6   ON enables printer BUSY active LOW - Factory Setting
7182 #       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
7183 #
7184 # sw7   ON - steady cursor - Factory Setting
7185 #       OFF - blinking cursor
7186 #
7187 # sw8   ON causes selected attribute character to be displayed
7188 #       OFF causes SPACE to be displayed instead - Factory Setting
7189 #
7190 # S4 - Interface
7191 # --------------
7192 # Modem Interface
7193 # S3    S4    S4    S4    S4
7194 # sw4   sw1   sw2   sw3   sw4
7195 # ---------------------------
7196 # OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
7197 #                               Current Loop disabled - Factory Setting
7198 # ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
7199 #                               disabled
7200 # OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
7201 #                               Current Loop Disabled
7202 #
7203 # sw5   ON disables dot stretching mode - Factory Setting
7204 #       OFF enables dot stretching mode
7205 # sw6   ON enables blanking function
7206 #       OFF enables underline function - Factory Setting
7207 # sw7   ON causes NULLS to be displayed as NULLS
7208 #       OFF causes NULLS to be displayed as SPACES - Factory Setting
7209 #
7210 # S5 - Word Structure
7211 # -------------------
7212 # sw1   ON enables BREAK key - Factory Setting
7213 #       OFF disables BREAK key
7214 # sw2   ON selects 50Hz monitor refresh rate
7215 #       OFF selects 60Hz monitor refresh rate - Factory Setting
7216 #
7217 # Modem Port Selection
7218 # sw3   sw4   sw5
7219 # ---------------
7220 # ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
7221 # OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
7222 # ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
7223 # OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
7224 # ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
7225 # OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
7226 # ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
7227 # OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
7228 #
7229 # sw6   ON  sends bit 8 a 1 (mark)
7230 #       OFF sends bit 8 as 0 (space) - Factory Setting
7231 # sw7   ON  selects Block Mode
7232 #       OFF selects Conversation Mode - Factory Setting
7233 # sw8   ON  selects Full Duplex operation
7234 #       OFF selects Half Duplex operation - Factory Setting
7235 #
7236 # S6 - Printer
7237 # ------------
7238 # sw1, sw2, sw6, sw7   Reserved - Factory 0
7239 #
7240 # Printer Port Selection
7241 # same as Modem above, bit 8 (when 8 DATA bits) is always = 0
7242 #
7243 # sw8   ON   enables Printer Port
7244 #       OFF disables Printer Port - Factory Setting
7245 #
7246 # S7 - Polling Address
7247 # --------------------
7248 # sw1-7 Establish ASCII character which designates terminal polling address
7249 #       ON  = logic 0
7250 #       OFF = logic 1 - Factory Setting
7251 # sw8   ON   enables Polling Option
7252 #       OFF disables Polling Option - Factory Setting
7253 #
7254 #
7255 # On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
7256 #
7257 # This adm31 entry uses underline as the standout mode.
7258 # If the adm31 gives you trouble with standout mode, check the DIP switch in
7259 # position 6, bank @c11, 25% from back end of the circuit board.  Should be
7260 # OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
7261 # (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
7262 adm31|lsi adm31 with sw6 set for underline mode,
7263         OTbs, am, mir,
7264         cols#80, lines#24,
7265         bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7266         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7267         dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, ind=^J, is2=\Eu\E0,
7268         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
7269         kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
7270         kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, rmso=\EG0,
7271         rmul=\EG0, sgr0=\EG0, smir=\Eq, smso=\EG1, smul=\EG1,
7272 adm31-old|o31|old adm31,
7273         rmul@, smso=\EG4, smul@, use=adm31,
7274 # LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
7275 adm36|LSI ADM36,
7276         OTbs, OTpt,
7277         OTkn#4,
7278         if=/usr/share/tabset/vt100,
7279         is2=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l,
7280         use=vt100,
7281 # (adm42: removed obsolete ":ma=^K^P:" -- esr)
7282 adm42|lsi adm42,
7283         OTbs, am,
7284         cols#80, lines#24,
7285         bel=^G, cbt=\EI, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7286         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
7287         cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ht=^I,
7288         il1=\EE$<270>, ind=^J, invis@, ip=$<6*>, kcub1=^H, kcud1=^J,
7289         kcuf1=^L, kcuu1=^K, khome=^^, pad=\177, rmir=\Er, rmul@,
7290         smir=\Eq, smul@, use=adm+sgr,
7291 # The following termcap for the Lear Siegler ADM-42 leaves the
7292 # "system line" at the bottom of the screen blank (for those who
7293 # find it distracting otherwise)
7294 adm42-ns|lsi adm-42 with no system line,
7295         cbt=\EI\EF \011, clear=\E;\EF \011,
7296         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<6>\EF \011,
7297         dch1=\EW\EF \011, dl1=\ER\EF \011, ed=\EY\EF \011,
7298         el=\ET\EF \011, il1=\EE\EF \011, rmir=\Er\EF \011,
7299         smir=\Eq\EF \011, use=adm42,
7300 # ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
7301 # The insert mode of this terminal is commented out because it's broken for our
7302 # purposes in that it will shift the position of every character on the page,
7303 # not just the cursor line!
7304 # From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
7305 adm1178|1178|lsi adm1178,
7306         am,
7307         cols#80, lines#24, xmc#1,
7308         bel=^G, bold=\E(, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J,
7309         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
7310         cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET,
7311         home=^^, ht=^I, il1=\EE, ind=^J, ip=$<6*/>, kbs=^H, kcub1=^H,
7312         kcud1=^J, nel=^M^J, pad=\177, rev=\EG4, rmso=\EG0, rmul=\EG0,
7313         sgr0=\E), smso=\EG4, smul=\EG1,
7314
7315 #### Prime
7316 #
7317 # Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
7318 # <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
7319 # Prime merged with ComputerVision in the late 1980s; you can reach them at:
7320 #
7321 #       ComputerVision Services
7322 #       500 Old Connecticut Path
7323 #       Framingham, Mass.
7324 #
7325
7326 # Standout mode is dim reverse-video.
7327 pt100|pt200|wren|fenix|prime pt100/pt200,
7328         am, bw, mir, msgr,
7329         cols#80, it#8, lines#24,
7330         cbt=\E[Z, clear=\E?, cr=^M, cub=\E[%p1%dD, cub1=^H,
7331         cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
7332         cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu=\E[%p1%dA,
7333         cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl1=\E[M,
7334         ed=\E[J\E[r, el=\E[K\E[t, flash=\E$$<200/>\E$P,
7335         home=\E$B, ht=^I, il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D,
7336         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J,
7337         rmcup=, rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m,
7338         sgr0=\E[m,
7339         smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q,
7340         smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m,
7341 pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode,
7342         cols#132,
7343         cup=\E[%i%p1%d;%p2%dH, use=pt100,
7344 pt250|Prime PT250,
7345         rmso@, smso@, use=pt100,
7346 pt250w|Prime PT250 in 132-column mode,
7347         rmso@, smso@, use=pt100w,
7348
7349 #### Qume (qvt)
7350 #
7351 #       Qume, Inc.
7352 #       3475-A North 1st Street
7353 #       San Jose CA 95134
7354 #       Vox: (800)-457-4447
7355 #       Fax: (408)-473-1510
7356 #       Net: josed@techsupp.wyse.com (Jose D'Oliveira)
7357 #
7358 # Qume was bought by Wyse, but still (as of early 1995) has its own support
7359 # group and production division.
7360 #
7361 # Discontinued Qume models:
7362 #
7363 # The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
7364 # built to replace them, and a qvt119+ which was a 101+ with available wide
7365 # mode (132 columns).  There was a qvt103 which added vt100/vt131 emulations
7366 # and an ANSI-compatible qvt203 that replaced it.  Qume started producing
7367 # ANSI-compatible terminals with the qvt323 and qvt61.
7368 #
7369 # Current Qume models (as of February 1995):
7370 #
7371 # All current Qume terminals have ANSI-compatible operation modes.
7372 # Qume is still producing the qvt62, which features emulations for other
7373 # popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
7374 # designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
7375 # with many emulations including Wyse370, Wyse 325, etc.  Their newest
7376 # model is the qvt520, which is vt420-compatible.
7377 #
7378 # There are some ancient printing Qume terminals under `Daisy Wheel Printers'
7379 #
7380 # If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
7381 # setup mode.  Shift-s should be a configuration save to NVRAM.
7382
7383 qvt101|qvt108|qume qvt 101 and QVT 108,
7384         xmc#1, use=qvt101+,
7385
7386 # This used to have <cvvis=\E.2> but no <cnorm> or <civis>.  The BSD termcap
7387 # file had <cvvis=\EM4 \200\200\200>.  I've done the safe thing and yanked
7388 # both. The <rev> is from BSD, which also claimed bold=\E( and dim=\E).
7389 # What seems to be going on here is that this entry was designed so that
7390 # the normal highlight is bold and standout is dim plus something else
7391 # (reverse-video maybe?  But then, are there two <rev> sequences?)
7392 qvt101+|qvt101p|qume qvt 101 PLUS product,
7393         am, bw, hs, ul,
7394         cols#80, lines#24, xmc#0,
7395         bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^J,
7396         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
7397         dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
7398         flash=\Eb$<200>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
7399         ich1=\EQ, il1=\EE, ind=^J, invis@, kbs=^H, kcbt=\EI, kcub1=^H,
7400         kcud1=^J, kcuf1=^L, kcuu1=^K, kdl1=\ER, ked=\EY, kel=\ET,
7401         kf1=^A@\r, kf10=^AI\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
7402         kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
7403         khome=^^, kich1=\EQ, kil1=\EE, mc4=\EA, mc5=\E@, rmso=\E(,
7404         smso=\E0P\E), tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
7405 qvt102|qume qvt 102,
7406         cnorm=\E., use=qvt101,
7407 # (qvt103: added <rmam>/<smam> based on init string -- esr)
7408 qvt103|qume qvt 103,
7409         am, xenl, xon,
7410         cols#80, it#8, lines#24, vt#3,
7411         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
7412         clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
7413         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
7414         cuf=\E[%p1%dC, cuf1=\E[C$<2>,
7415         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
7416         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
7417         hts=\EH, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
7418         kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8,
7419         rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E[?1l\E>,
7420         rmso=\E[m$<2>, rmul=\E[m$<2>,
7421         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
7422         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>,
7423         sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=,
7424         smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
7425 qvt103-w|qume qvt103 132 cols,
7426         cols#132, lines#24,
7427         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103,
7428 qvt119+|qvt119p|qvt119|qume qvt 119 and 119PLUS terminals,
7429         am, hs, mir, msgr,
7430         cols#80, lines#24, xmc#0,
7431         bel=^G, cbt=\EI, clear=\E*1, cnorm=\E.4, cr=^M, cub1=^H,
7432         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
7433         cuu1=^K, cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey,
7434         el=\Et, flash=\En0$<200>\En1, fsl=^M, home=^^, ht=^I,
7435         hts=\E1, il1=\EE, ind=^J, is2=\EDF\EC\EG0\Er\E(\E%EX,
7436         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r,
7437         kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
7438         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
7439         mc4=\EA, mc5=\E@, ri=\EJ, rmir=\Er, smir=\Eq, smul=\EG8,
7440         tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
7441 qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines,
7442         lines#25, use=qvt119+,
7443 qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode,
7444         cols#132,
7445         is2=\EDF\EC\EG0\Er\E(\E%\EX\En4, use=qvt119+,
7446 qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25,
7447         lines#25, use=qvt119+,
7448 qvt203|qvt203+|qume qvt 203 Plus,
7449         dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
7450         ip=$<7>, kf0=\E[29~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
7451         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
7452         kf9=\E[28~, rmir=\E[4l, smir=\E[4h, use=qvt103,
7453 qvt203-w|qvt203-w-am|qume qvt 203 PLUS in 132 cols (w/advanced video),
7454         cols#132, lines#24,
7455         rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt203,
7456 #
7457 #       Since a command is present for enabling 25 data lines,
7458 #       a specific terminfo entry may be generated for the 203.
7459 #       If one is desired for the QVT 119 PLUS then 25 lines must
7460 #       be selected in the status line (setup line 9).
7461 #
7462 qvt203-25|QVT 203 PLUS with 25 by 80 column mode,
7463         cols#80, lines#25,
7464         is2=\E[=40h\E[?3l, use=qvt203,
7465 qvt203-25-w|QVT 203 PLUS with 25 by 132 columns,
7466         cols#132, lines#25,
7467         rs2=\E[?3h\E[=40h, use=qvt203,
7468
7469 #### Televideo (tvi)
7470 #
7471 #       TeleVideo
7472 #       550 East Brokaw Road
7473 #       PO Box 49048    95161
7474 #       San Jose CA 95112
7475 #       Vox: (408)-954-8333
7476 #       Fax: (408)-954-0623
7477 #
7478 #
7479 # These require incredible amounts of padding.
7480 #
7481 # All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
7482 # Televideo terminals are ANSI and PC-ANSI compatible.
7483
7484 tvi803|televideo 803,
7485         clear=\E*$<10>, use=tvi950,
7486
7487 # Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
7488 # Switch settings are:
7489 #
7490 # S1  1 2 3 4
7491 #     D D D D  9600
7492 #     D D D U    50
7493 #     D D U D    75
7494 #     D D U U   110
7495 #     D U D D   135
7496 #     D U D U   150
7497 #     D U U D   300
7498 #     D U U U   600
7499 #     U D D D  1200
7500 #     U D D U  1800
7501 #     U D U D  2400
7502 #     U D U U  3600
7503 #     U U D D  4800
7504 #     U U D U  7200
7505 #     U U U D  9600
7506 #     U U U U 19200
7507 #
7508 # S1  5 6 7 8
7509 #     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
7510 #     U D X U  7N2
7511 #     U U D D  7O1
7512 #     U U D U  7O2
7513 #     U U U D  7E1
7514 #     U U U U  7E2
7515 #     D D X D  8N1
7516 #     D D X U  8N2
7517 #     D U D D  8O1
7518 #     D U U U  8E2
7519 #
7520 # S1  9  Autowrap
7521 #     U  on
7522 #     D  off
7523 #
7524 # S1 10  CR/LF
7525 #     U  do CR/LF when CR received
7526 #     D  do CR when CR received
7527 #
7528 # S2  1  Mode
7529 #     U  block
7530 #     D  conversational
7531 #
7532 # S2  2  Duplex
7533 #     U  half
7534 #     D  full
7535 #
7536 # S2  3  Hertz
7537 #     U  50
7538 #     D  60
7539 #
7540 # S2  4  Edit mode
7541 #     U  local
7542 #     D  duplex
7543 #
7544 # S2  5  Cursor type
7545 #     U  underline
7546 #     D  block
7547 #
7548 # S2  6  Cursor down key
7549 #     U  send ^J
7550 #     D  send ^V
7551 #
7552 # S2  7  Screen colour
7553 #     U  green on black
7554 #     D  black on green
7555 #
7556 # S2  8  DSR status (pin 6)
7557 #     U  disconnected
7558 #     D  connected
7559 #
7560 # S2  9  DCD status (pin 8)
7561 #     U  disconnected
7562 #     D  duplex
7563 #
7564 # S2 10  DTR status (pin 20)
7565 #     U  disconnected
7566 #     D  duplex
7567 # (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added <khome>, <cub1>, <cud1>,
7568 # <ind>, <hpa>, <vpa>, <am>, <msgr> from SCO entry -- esr)
7569 tvi910|televideo model 910,
7570         OTbs, am, msgr,
7571         cols#80, it#8, lines#24, xmc#1,
7572         bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7573         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
7574         home=\E=\001\001, hpa=\E]%p1%{32}%+%c, ht=^I,
7575         if=/usr/share/tabset/stdcrt, ind=^J, invis@, kbs=^H,
7576         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r, kf1=^A@\r,
7577         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
7578         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
7579         vpa=\E[%p1%{32}%+%c, use=adm+sgr,
7580 # From: Alan R. Rogers <rogers%albany@csnet-relay>
7581 # as subsequently hacked over by someone at SCO
7582 # (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
7583 #
7584 # Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
7585 #
7586 # S1  1 2 3 4:
7587 #     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
7588 #     D U D D   135     D U D U   150     D U U D   300     D U U U   600
7589 #     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
7590 #     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
7591 #
7592 # S1  5 6 7 8:
7593 #     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
7594 #     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
7595 #     D U D D  8O1     D U U U  8E2
7596 #
7597 # S1  9  Autowrap            (U = on, D = off)
7598 # S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
7599 # S2  1  Mode                (U = block, D = conversational)
7600 # S2  2  Duplex              (U =  half, D = full)
7601 # S2  3  Hertz               (U = 50, D = 60)
7602 # S2  4  Edit mode           (U = local, D = duplex)
7603 # S2  5  Cursor type         (U = underline, D = block)
7604 # S2  6  Cursor down key     (U = send ^J, D = send ^V)
7605 # S2  7  Screen colour       (U = green on black, D = black on green)
7606 # S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
7607 # S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
7608 # S2 10  DTR status (pin 20) (U = disconnected, D = connected)
7609 #
7610 tvi910+|televideo 910+,
7611         dch1=\EW, dl1=\ER$<33*>, home=^^, ich1=\EQ, il1=\EE$<33*>,
7612         kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r,
7613         kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r,
7614         ll=\E=7\s, use=tvi910,
7615
7616 # (tvi912: removed obsolete ":ma=^K^P^L :", added  <flash> and
7617 # <khome> from BRL entry -- esr)
7618 tvi912|tvi914|tvi920|old televideo 912/914/920,
7619         OTbs, OTpt, am, msgr,
7620         cols#80, it#8, lines#24, xmc#1,
7621         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7622         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7623         dl1=\ER$<33*>, ed=\Ey, el=\ET, flash=\Eb$<50/>\Ed, home=^^,
7624         ht=^I, hts=\E1, ich1=\EQ, if=/usr/share/tabset/stdcrt,
7625         il1=\EE$<33*>, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
7626         kcuu1=^K, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
7627         kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
7628         kf9=^AH\r, khome=^^, rmso=\Ek, rmul=\Em, smso=\Ej, smul=\El,
7629         tbc=\E3,
7630 # We got some new tvi912c terminals that act really weird on the regular
7631 # termcap, so one of our gurus worked this up. Seems that cursor
7632 # addressing is broken.
7633 tvi912cc|tvi912 at cowell college,
7634         cup@, use=tvi912c,
7635
7636 # tvi{912,920}[bc] - TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C
7637 # From: Benjamin C. W. Sittler
7638 #
7639 # Someone has put a scanned copy of the manual online at:
7640 #     http://vt100.net/televideo/912b-om/
7641 #
7642 # These terminals were produced ca. 1979, and had a 12" monochrome
7643 # screen, supported 75-9600 baud (no handshaking), monochrome, 7-bit
7644 # ASCII, and were generally similar to adm3a but with attributes
7645 # (including some with magic cookies), fancy half-duplex mode, and
7646 # different bugs.
7647 #
7648 # Some operations reqire truly incredible amounts of padding. The
7649 # insert_line (<il1>) and delete_line (<dl1>) operations in particular
7650 # are so slow as to be nearly unusable.
7651 #
7652 # There may or may not have been a separate, earlier series of 912/920
7653 # terminals (without the "B" and "C" suffix); I have never seen one,
7654 # and the manual only describes the "B" and "C" series. The 912 and 920
7655 # are quite distinct from the 914 and 924, which were much nicer non-
7656 # magic-cookie terminals similar to the 950.
7657 #
7658 # This is a new description for the following TeleVideo terminals,
7659 # distinguished chiefly by their keyboards:
7660 #
7661 #   TVI-912B - very odd layout, no function keys (84 keys)
7662 #   TVI-920B - typewriter layout, no function keys (103 keys)
7663 #   TVI-912C - very odd layout, function keys F1-F11 (82 keys)
7664 #   TVI-920C - typewriter layout, function keys F1-F11 (101 keys)
7665 #
7666 # To choose a setting for the TERM variable, start with the model:
7667 #
7668 #    Model  || base name
7669 # ----------||-----------
7670 #  TVI-912B || tvi912b
7671 #  TVI-912C || tvi912c
7672 #  TVI-920B || tvi920b
7673 #  TVI-920C || tvi920c
7674 #
7675 # Then add a suffix from the following table describing installed options
7676 # and how you'd like to use the terminal:
7677 #
7678 #   Use Video | Second | Visual |  Magic  |  Page || feature
7679 #  Attributes |  Page  |  Bell  | Cookies | Print || suffix
7680 # ------------|--------|--------|---------|-------||---------
7681 #      No     |   No   |  N/A   |   N/A   |   No  || -unk
7682 #      No     |   No   |  N/A   |   N/A   |  Yes  || -p
7683 #      No     |  Yes   |   No   |   N/A   |   No  || -2p-unk
7684 #      No     |  Yes   |   No   |   N/A   |  Yes  || -2p-p
7685 #      No     |  Yes   |  Yes   |   N/A   |   No  || -vb-unk
7686 #      No     |  Yes   |  Yes   |   N/A   |  Yes  || -vb-p
7687 #     Yes     |   No   |  N/A   |    No   |  N/A  ||
7688 #     Yes     |   No   |  N/A   |   Yes   |  N/A  || -mc
7689 #     Yes     |  Yes   |   No   |    No   |  N/A  || -2p
7690 #     Yes     |  Yes   |   No   |   Yes   |  N/A  || -2p-mc
7691 #     Yes     |  Yes   |  Yes   |    No   |  N/A  || -vb
7692 #     Yes     |  Yes   |  Yes   |   Yes   |  N/A  || -vb-mc
7693 #
7694 # So e.g. a model 920 C with second page memory option, visual bell
7695 # and no magic cookies would be tvi920c-vb; a model 912 B without the
7696 # second page memory option and using magic cookies would be
7697 # tvi912b-mc
7698 #
7699 # PADDING
7700 #
7701 # At 9600 baud, the terminal is prone to overflow its input buffer
7702 # during complex operations (insert/delete
7703 # character/line/screen/page), and it does not signal this over the
7704 # RS232 cable. The typical symptom of an overrun is that the terminal
7705 # starts beeping, and output becomes garbled.
7706 #
7707 # The padding delays in this terminfo were derived using tack(1)
7708 # running on a Linux box connected to a TVI-920C with a later-model
7709 # (A49C1-style) ROM running at 9600 baud, so your mileage may
7710 # vary. The numbers below seem to give the terminal enough time so
7711 # that it doesn't overflow its input buffer and start losing
7712 # characters.
7713 #
7714 # KEYS
7715 #
7716 # If you want to use the FUNCT key on a tvi912[bc], use the
7717 # corresponding tvi920[bc] terminfo with FUNCT + ... equivalents from
7718 # the following table (these also work on the 920 series):
7719 #
7720 # Unshifted Function Keys:
7721 #
7722 #  Key | capname|| Equivalent
7723 # -----|--------||------------
7724 #   F1 |  <kf1> || FUNCT + @
7725 #   F2 |  <kf2> || FUNCT + A
7726 #   F3 |  <kf3> || FUNCT + B
7727 #   F4 |  <kf4> || FUNCT + C
7728 #   F5 |  <kf5> || FUNCT + D
7729 #   F6 |  <kf6> || FUNCT + E
7730 #   F7 |  <kf7> || FUNCT + F
7731 #   F8 |  <kf8> || FUNCT + G
7732 #   F9 |  <kf9> || FUNCT + H
7733 #  F10 | <kf10> || FUNCT + I
7734 #  F11 | <kf11> || FUNCT + J
7735 #
7736 # Shifted Function Keys:
7737 #
7738 #  SHIFT + Key | capname|| Equivalent
7739 # -------------|--------||------------
7740 #   SHIFT + F1 | <kf12> || FUNCT + `
7741 #   SHIFT + F2 | <kf13> || FUNCT + a
7742 #   SHIFT + F3 | <kf14> || FUNCT + b
7743 #   SHIFT + F4 | <kf15> || FUNCT + c
7744 #   SHIFT + F5 | <kf16> || FUNCT + d
7745 #   SHIFT + F6 | <kf17> || FUNCT + e
7746 #   SHIFT + F7 | <kf18> || FUNCT + f
7747 #   SHIFT + F8 | <kf19> || FUNCT + g
7748 #   SHIFT + F9 | <kf20> || FUNCT + h
7749 #  SHIFT + F10 | <kf21> || FUNCT + i
7750 #  SHIFT + F11 | <kf22> || FUNCT + j
7751 #
7752 # PORTS AND SWITCH SETTINGS
7753 #
7754 # Here are the switch settings for the TVI-912B/TVI-920B and
7755 # TVI-912C/TVI-920C:
7756 #
7757 # S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
7758 # 2: 9600       3: 4800         4: 2400         5: 1200
7759 # 6:  600       7:  300         8:  150         9:   75
7760 # 10: 110
7761 #
7762 # S2 UART/Terminal options:
7763 #               Up                      Down
7764 # 1:            Not used                Not allowed
7765 # 2:    Alternate character set   Standard character set
7766 # 3:        Full duplex             Half duplex
7767 # 4:        50 Hz refresh           60 Hz refresh
7768 # 5:          No parity              Send parity
7769 # 6:         2 stop bits             1 stop bit
7770 # 7:         8 data bits             7 data bits
7771 # 8:            Not used                Not allowed on Rev E or lower
7772 # 9:         Even parity             Odd parity
7773 # 10:       Steady cursor           Blinking cursor
7774 #       (On Rev E or lower, use W25 instead of switch 10.)
7775 #
7776 # S5 UART/Terminal options:
7777 #               Open                    Closed
7778 # 1:    P3-6 Not connected      DSR received on P3-6
7779 # 2:    P3-8 Not connected      DCD received on P3-8
7780 #
7781 # 3 Open, 4 Open:               P3-20 Not connected
7782 # 3 Open, 4 Closed:     DTR on when terminal is on
7783 # 3 Closed, 4 Open:     DTR is connected to RTS
7784 # 3 Closed, 4 Closed:   Not allowed
7785 #
7786 # 5 Closed:     HDX printer (hardware control) Rev. K with extension port off,
7787 #               all data transmitted out of the modem port (P3) will also be
7788 #               transmitted out of the printer port (P4).
7789 #
7790 # 6 Open, 7 Open:               Not allowed
7791 # 6 Open, 7 Closed:     20ma current loop input
7792 # 6 Closed, 7 Open:     RS232 input
7793 # 6 Closed, 7 Closed:   Not allowed
7794 #
7795 # Jumper options:
7796 # If the jumper is installed, the effect will occur (the next time the terminal
7797 # is switched on).
7798 #
7799 # S4/W31:       Enables automatic LF upon receipt of CR from
7800 #               remote or keyboard.
7801 # S4/W32:       Enables transmission of EOT at the end of Send.  If not
7802 #               installed, a carriage return is sent.
7803 # S4/W33:       Disables automatic carriage return in column 80.
7804 # S4/W34:       Selects Page Print Mode as initial condition.  If not
7805 #               installed, Extension Mode is selected.
7806 #
7807 # NON-STANDARD CAPABILITIES
7808 #
7809 # Sending <u9> or <u7> returns a cursor position report in the format
7810 # YX\r, where Y and X are as in <cup>. This format is described in
7811 # <u8> and <u6>, but it's not clear how one should write an
7812 # appropriate scanf string, since we need to subtract %' ' from the
7813 # character after reading it. The <u9> capability is used by tack(1)
7814 # to synchronize during padding tests, and seems to work for that
7815 # purpose.
7816 #
7817 # This description also includes the obsolete termcap capabilities
7818 # has_hardware_tabs (<OTpt>) and backspaces_with_bs (<OTbs>).
7819 #
7820 # FEATURES NOT YET DESCRIBED IN THIS TERMINFO
7821 #
7822 # The FUNCT modifier actually works with every normal key by sending
7823 # ^AX\r, where X is the sequence normally sent by that key. This is a
7824 # sort of meta key not currently describable in terminfo.
7825 #
7826 # There are quite a few other keys (especially on the 920 models,) but
7827 # they are for the most part only useful in block mode.
7828 #
7829 # These terminals have lots of forms manipulation features, mainly
7830 # useful in block mode, including "clear X to nulls" (vs. "clear X to
7831 # spaces"; nulls are sentinels for "send X" operations); "send X"
7832 # operations for uploading all or part of the screen; and block-mode
7833 # editing keys (they don't send escape sequences, but manipulate video
7834 # memory directly). Block mode is used for local editing, and protect
7835 # mode (in conjunction with the "write protect" attribute,
7836 # a.k.a. half-intensity outside of protect mode) is used to control
7837 # which parts of the screen are edited/sent/printed (by <mc0>).
7838 #
7839 # There are at least two major families of ROM, "early" and
7840 # A49B1/A49C1; the major difference seems to be that the latter ROMs
7841 # support a few extra escape sequences for manipulating the off-screen
7842 # memory page, and for sending whole pages back to the host (mainly
7843 # useful in block mode.) The descriptions in this file don't use any
7844 # of those sequences: set cursor position including page (\E-PYX,
7845 # where P is \s for page 0 and ! for page 1 [actually only the LSB of
7846 # P is taken into account, so e.g. 0 and 1 work too,] and Y and X are
7847 # as in <cup>); read cursor position (\E/), which is analogous to <u9>
7848 # and returns PYX\r, where P is \s for page 0 or ! for page 1, and YX
7849 # are as in <cup>, and some "send page" features mainly useful for
7850 # forms manipulation.
7851 #
7852 # The keyboard enable (\E") and disable (\E#) sequences are unused,
7853 # except that a terminal reset (<is2>) enables the keyboard.
7854 #
7855 # Auto-flip mode (\Ev) is likely faster than the scrolling mode (\Ew)
7856 # enabled in <is2>, but auto-flip is very jarring so we don't use it.
7857 #
7858 # BUGS
7859 #
7860 # At least up to the A49B1 and A49C1 ROMs, there are no \Eb and \Ed
7861 # sequences (I infer that in some TeleVideo terminal they may invert
7862 # and uninvert the display) so the <flash> sequence given here is a
7863 # cheesy page-flip instead.
7864 #
7865 # The back_tab (<cbt>) sequence (\EI) doesn't work according to
7866 # tack(1), so it is not included in the descriptions below.
7867 #
7868 # It's not clear whether auto_left_margin (<bw>) flag should be set
7869 # for these terminals; tack says yes, so it is set here, but this
7870 # differs from other descriptions I've seen.
7871 #
7872 # Extension print mode (<mc5>) echoes all characters to the printer
7873 # port [in addition to displaying them] except for the page print mode
7874 # sequence (<mc4>); this is a slight violation of the terminfo
7875 # definition for <mc5> but I don't expect it to cause problems.  We
7876 # reset to page print mode in <rs1> since it may have been enabled
7877 # accidentally.
7878 #
7879 # The descriptions with plus signs (+) are building blocks.
7880
7881 tvi912b-unk|tvi912c-unk|TeleVideo TVI-912B or TVI-912C (no attributes),
7882         OTbs, OTpt, am, bw,
7883         cols#80, it#8, lines#24,
7884         bel=^G, clear=\032$<50>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
7885         cup=\E=%p1%' '%+%c%p2%' '%+%c, cuu1=^K, dch1=\EW$<30>,
7886         dl1=\ER$<1*>$<100>, ed=\Ey$<2*>$<10>, el=\ET$<15>,
7887         home=^^, ht=^I, hts=\E1, ich1=\EQ$<30>,
7888         if=/usr/share/tabset/stdcrt, il1=\EE$<1*>$<100>,
7889         ind=\n$<10>, is2=\Ew\EA\E'\E"\E(, kcub1=^H, kcud1=^J,
7890         kcuf1=^L, kcuu1=^K, kdch1=\177, kent=^M, khome=^^, mc4=\EA,
7891         mc5=\E@, rs1=\Ek\010\Em\010\Eq\032, tbc=\E3, u6=%c%c\r,
7892         u7=\E?, u8=%c%c\r, u9=\E?,
7893
7894 # This isn't included in the basic capabilities because it is
7895 # typically unusable in combination with the full range of video
7896 # attributes, since the magic cookie attributes turn into ASCII
7897 # control characters, and the half-intensity ("protected") attribute
7898 # converts all affected characters to spaces.
7899
7900 tvi912b+printer|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C page print support,
7901         mc0=\EP,
7902
7903 # This uses half-intensity mode (<dim>) for standout (<smso>), and
7904 # exposes no other attributes (half-intensity is the only attribute
7905 # that does not generate a magic cookie.)
7906
7907 tvi912b+dim|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C half-intensity attribute support,
7908         msgr,
7909         dim=\E), rmso=\E(, sgr=\E%?%p1%p5%|%t)%e(%;, sgr0=\E(,
7910         smso=\E),
7911
7912 # Full magic-cookie attribute support, with half-intensity reverse
7913 # video for standout. Note that we add a space in the <dim> sequence
7914 # to give a consistent magic-cookie count. Also note that <sgr> uses
7915 # backspacing (in the TVI-supported order) to apply all requested
7916 # attributes with only a single magic cookie.
7917
7918 tvi912b+mc|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C full magic-cookie attribute support,
7919         xmc#1,
7920         blink=\E\^, dim=\E)\s, invis=\E_, rev=\Ej, rmso=\E(\Ek,
7921         rmul=\Em,
7922         sgr=\E%?%p1%p5%|%t)%e(%; \010\E%?%p1%p3%|%tj%ek%;\010\E%?%p2%tl%em%;\010\E%?%p7%t_%e%?%p4%t\^%eq%;%;,
7923         sgr0=\E(\Ek\010\Em\010\Eq, smso=\E)\Ej, smul=\El,
7924
7925 # This uses the second page memory option to save & restore screen
7926 # contents. If your terminal is missing the option, this description
7927 # should still work, but that has not been tested.
7928
7929 tvi912b+2p|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option support,
7930         flash=\EK$<100>\EK, rmcup=\032$<50>\EK\E=7\s,
7931         smcup=\EK\032$<50>\E(\Ek\010\Em\010\Eq\032$<50>,
7932
7933 # This simulates flashing by briefly toggling to the other page
7934 # (kludge!)
7935
7936 tvi912b+vb|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option "visible bell" support,
7937         bel=\EK$<100>\EK, use=tvi912b+2p,
7938
7939 # Function keys (<kf12> .. <kf22> are shifted <kf1> .. <kf11>)
7940
7941 tvi920b+fn|TeleVideo TVI-920B and TVI-920C function key support,
7942         kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^A`\r, kf13=^Aa\r,
7943         kf14=^Ab\r, kf15=^Ac\r, kf16=^Ad\r, kf17=^Ae\r, kf18=^Af\r,
7944         kf19=^Ag\r, kf2=^AA\r, kf20=^Ah\r, kf21=^Ai\r, kf22=^Aj\r,
7945         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
7946         kf8=^AG\r, kf9=^AH\r,
7947
7948 # Combinations of the basic building blocks
7949
7950 tvi912b-2p-unk|tvi912c-2p-unk|tvi912b-unk-2p|tvi912c-unk-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; no attributes),
7951         use=tvi912b+2p, use=tvi912b-unk,
7952
7953 tvi912b-vb-unk|tvi912c-vb-unk|tvi912b-unk-vb|tvi912c-unk-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; no attributes),
7954         use=tvi912b+vb, use=tvi912b-unk,
7955
7956 tvi912b-p|tvi912c-p|TeleVideo TVI-912B or TVI-912C (no attributes; page print),
7957         use=tvi912b+printer, use=tvi912b-unk,
7958
7959 tvi912b-2p-p|tvi912c-2p-p|tvi912b-p-2p|tvi912c-p-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; no attributes; page print),
7960         use=tvi912b+2p, use=tvi912b+printer, use=tvi912b-unk,
7961
7962 tvi912b-vb-p|tvi912c-vb-p|tvi912b-p-vb|tvi912c-p-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; no attributes; page print),
7963         use=tvi912b+vb, use=tvi912b+printer, use=tvi912b-unk,
7964
7965 tvi912b-2p|tvi912c-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; half-intensity attribute),
7966         use=tvi912b+2p, use=tvi912b+dim, use=tvi912b-unk,
7967
7968 tvi912b-2p-mc|tvi912c-2p-mc|tvi912b-mc-2p|tvi912c-mc-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; magic cookies),
7969         use=tvi912b+2p, use=tvi912b+mc, use=tvi912b-unk,
7970
7971 tvi912b-vb|tvi912c-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; half-intensity attribute),
7972         use=tvi912b+vb, use=tvi912b+dim, use=tvi912b-unk,
7973
7974 tvi912b-vb-mc|tvi912c-vb-mc|tvi912b-mc-vb|tvi912c-mc-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; magic cookies),
7975         use=tvi912b+vb, use=tvi912b+mc, use=tvi912b-unk,
7976
7977 tvi912b|tvi912c|TeleVideo TVI-912B or TVI-912C (half-intensity attribute),
7978         use=tvi912b+dim, use=tvi912b-unk,
7979
7980 tvi912b-mc|tvi912c-mc|TeleVideo TVI-912B or TVI-912C (magic cookies),
7981         use=tvi912b+mc, use=tvi912b-unk,
7982
7983 tvi920b-unk|tvi920c-unk|TeleVideo TVI-920B or TVI-920C (no attributes),
7984         use=tvi920b+fn, use=tvi912b-unk,
7985
7986 tvi920b-2p-unk|tvi920c-2p-unk|tvi920b-unk-2p|tvi920c-unk-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; no attributes),
7987         use=tvi920b+fn, use=tvi912b+2p, use=tvi912b-unk,
7988
7989 tvi920b-vb-unk|tvi920c-vb-unk|tvi920b-unk-vb|tvi920c-unk-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; no attributes),
7990         use=tvi920b+fn, use=tvi912b+vb, use=tvi912b-unk,
7991
7992 tvi920b-p|tvi920c-p|TeleVideo TVI-920B or TVI-920C (no attributes; page print),
7993         use=tvi920b+fn, use=tvi912b+printer, use=tvi912b-unk,
7994
7995 tvi920b-2p-p|tvi920c-2p-p|tvi920b-p-2p|tvi920c-p-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; no attributes; page print),
7996         use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+printer,
7997         use=tvi912b-unk,
7998
7999 tvi920b-vb-p|tvi920c-vb-p|tvi920b-p-vb|tvi920c-p-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; no attributes; page print),
8000         use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+printer,
8001         use=tvi912b-unk,
8002
8003 tvi920b-2p|tvi920c-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; half-intensity attribute),
8004         use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+dim,
8005         use=tvi912b-unk,
8006
8007 tvi920b-2p-mc|tvi920c-2p-mc|tvi920b-mc-2p|tvi920c-mc-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; magic cookies),
8008         use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+mc,
8009         use=tvi912b-unk,
8010
8011 tvi920b-vb|tvi920c-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; half-intensity attribute),
8012         use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+dim,
8013         use=tvi912b-unk,
8014
8015 tvi920b-vb-mc|tvi920c-vb-mc|tvi920b-mc-vb|tvi920c-mc-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; magic cookies),
8016         use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+mc,
8017         use=tvi912b-unk,
8018
8019 tvi920b|tvi920c|TeleVideo TVI-920B or TVI-920C (half-intensity attribute),
8020         use=tvi920b+fn, use=tvi912b+dim, use=tvi912b-unk,
8021
8022 tvi920b-mc|tvi920c-mc|TeleVideo TVI-920B or TVI-920C (magic cookies),
8023         use=tvi920b+fn, use=tvi912b+mc, use=tvi912b-unk,
8024
8025 # Televideo 921 and variants
8026 # From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
8027 # (tvi921: removed :ko=bt: before translation, I see no backtab cap;
8028 # also added empty <acsc> to suppress tic warning -- esr)
8029 tvi921|televideo model 921 with sysline same as page & real vi function,
8030         OTbs, OTpt, am, hs, xenl, xhp,
8031         cols#80, lines#24, xmc#0,
8032         acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
8033         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
8034         cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
8035         el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
8036         if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, invis@,
8037         is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, kcub1=^H,
8038         kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER$<1*/>,
8039         ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, nel=^M^J, rmacs=\E%%,
8040         rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, use=adm+sgr,
8041 # without the beeper
8042 # (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
8043 # also added empty <acsc> to suppress tic warning -- esr)
8044 tvi92B|televideo model 921 with sysline same as page & real vi function & no beeper,
8045         am, hs, xenl, xhp,
8046         cols#80, lines#24, xmc#0,
8047         acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
8048         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
8049         cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
8050         el=\ET, flash=\Eb$<200/>\Ed, fsl=\Eg, home=^^, ht=^I,
8051         ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
8052         invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z,
8053         kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
8054         kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE,
8055         nel=^M^J, rmacs=\E%%, smacs=\E$, tsl=\Ef\EG0, use=adm+sgr,
8056 # (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
8057 tvi92D|tvi92B with DTR instead of XON/XOFF & better padding,
8058         dl1=\ER$<2*/>, il1=\EE$<2*/>,
8059         is2=\El\E"\EF1\E.3\016\EA\E<, kdl1=\ER$<2*/>,
8060         kil1=\EE$<2*/>, use=tvi92B,
8061
8062 # (tvi924: This used to have <dsl=\Es0>, <fsl=\031>.  I put the new strings
8063 # in from a BSD termcap file because it looks like they do something the
8064 # old ones skip -- esr)
8065 tvi924|televideo tvi924,
8066         am, bw, hs, in, mir, msgr, xenl, xon,
8067         cols#80, it#8, lines#24, wsl#80, xmc#0,
8068         bel=^G, blink=\EG2, cbt=\EI, civis=\E.0, clear=\E*0,
8069         cnorm=\E.3, cr=^M, csr=\E_%p1%{32}%+%c%p2%{32}%+%c,
8070         cub1=^H, cud1=^V, cuf1=^L,
8071         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\E.1,
8072         dch1=\EW, dl1=\ER, dsl=\Es0\Ef\031, ed=\Ey, el=\Et,
8073         flash=\Eb$<200>\Ed, fsl=\031\Es1, home=^^, ht=^I, hts=\E1,
8074         ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
8075         invis@, is1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0,
8076         kbs=^H, kclr=\E*0, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
8077         kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A@\r, kf1=^AA\r,
8078         kf10=^AJ\r, kf11=^AK\r, kf12=^AL\r, kf13=^AM\r, kf14=^AN\r,
8079         kf15=^AO\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, kf5=^AE\r,
8080         kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^,
8081         kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4,
8082         lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10,
8083         pfkey=\E|%p1%{49}%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef,
8084         use=adm+sgr,
8085
8086 # TVI925 DIP switches.  In each of these, D = Down and U = Up,
8087 #
8088 # Here are the settings for the external (baud) switches (S1):
8089 #
8090 #             Position          Baud
8091 # 7     8       9       10              [Printer]
8092 # 1     2       3       4               [Main RS232]
8093 # -----------------------------------------------------
8094 # D     D       D       D       9600
8095 # D     D       D       U         50
8096 # D     D       U       D         75
8097 # D     D       U       U        110
8098 # D     U       D       D        135
8099 # D     U       D       U        150
8100 # D     U       U       D        300
8101 # D     U       U       U        600
8102 # U     D       D       D       1200
8103 # U     D       D       U       1800
8104 # U     D       U       D       2400
8105 # U     D       U       U       3600
8106 # U     U       D       D       4800
8107 # U     U       D       U       7200
8108 # U     U       U       D       9600
8109 # U     U       U       U       19200
8110 #
8111 #
8112 # Settings for word length and stop-bits (S1)
8113 #
8114 #  Position     Description
8115 # 5     6
8116 # ---------------------------
8117 # U     -       7-bit word
8118 # D     -       8-bit word
8119 # -     U       2 stop bits
8120 # -     D       1 stop bit
8121 #
8122 #
8123 # S2 (external) settings
8124 #
8125 # Position      Up      Dn      Description
8126 # --------------------------------------------
8127 # 1             X               Local edit
8128 #                       X       Duplex edit (transmit editing keys)
8129 # --------------------------------------------
8130 # 2             X               912/920 emulation
8131 #                       X       925
8132 # --------------------------------------------
8133 # 3                     X
8134 # 4                     X       No parity
8135 # 5                     X
8136 # --------------------------------------------
8137 # 3                     X
8138 # 4                     X       Odd parity
8139 # 5             X
8140 # --------------------------------------------
8141 # 3                     X
8142 # 4             X               Even parity
8143 # 5             X
8144 # --------------------------------------------
8145 # 3             X
8146 # 4                     X       Mark parity
8147 # 5             X
8148 # --------------------------------------------
8149 # 3             X
8150 # 4             X               Space parity
8151 # 5             X
8152 # --------------------------------------------
8153 # 6             X               White on black display
8154 #                       X       Black on white display
8155 # --------------------------------------------
8156 # 7                     X       Half Duplex
8157 # 8                     X
8158 # --------------------------------------------
8159 # 7             X               Full Duplex
8160 # 8                     X
8161 # --------------------------------------------
8162 # 7                     X       Block mode
8163 # 8             X
8164 # --------------------------------------------
8165 # 9                     X       50 Hz
8166 #               X               60 Hz
8167 # --------------------------------------------
8168 # 10            X               CR/LF (Auto LF)
8169 #                       X       CR only
8170 #
8171 # S3 (internal switch) settings:
8172 #
8173 # Position      Up      Dn      Description
8174 # --------------------------------------------
8175 # 1             X               Keyclick off
8176 #                       X       Keyclick on
8177 # --------------------------------------------
8178 # 2                     X       English
8179 # 3                     X
8180 # --------------------------------------------
8181 # 2                     X       German
8182 # 3             X
8183 # --------------------------------------------
8184 # 2             X               French
8185 # 3                     X
8186 # --------------------------------------------
8187 # 2             X               Spanish
8188 # 3             X
8189 # --------------------------------------------
8190 # 4                     X       Blinking block cursor
8191 # 5                     X
8192 # --------------------------------------------
8193 # 4                     X       Blinking underline cursor
8194 # 5             X
8195 # --------------------------------------------
8196 # 4             X               Steady block cursor
8197 # 5                     X
8198 # --------------------------------------------
8199 # 4             X               Steady underline cursor
8200 # 5             X
8201 # --------------------------------------------
8202 # 6             X               Screen blanking timer (ON)
8203 #                       X       Screen blanking timer (OFF)
8204 # --------------------------------------------
8205 # 7             X               Page attributes
8206 #                       X       Line attributes
8207 # --------------------------------------------
8208 # 8             X               DCD disconnected
8209 #                       X       DCD connected
8210 # --------------------------------------------
8211 # 9             X               DSR disconnected
8212 #                       X       DSR connected
8213 # --------------------------------------------
8214 # 10            X               DTR Disconnected
8215 #                       X       DTR connected
8216 # --------------------------------------------
8217 #
8218 # (tvi925: BSD has <clear=\E*>.  I got <is2> and <ri> from there -- esr)
8219 tvi925|televideo 925,
8220         OTbs, am, bw, hs, ul,
8221         cols#80, lines#24, xmc#1,
8222         bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^V,
8223         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8224         cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
8225         flash=\Eb$<200>\Ed, fsl=^M\Eg, home=^^, ht=^I, hts=\E1,
8226         ich1=\EQ, il1=\EE, ind=^J, invis@, is2=\El\E", kbs=^H, kclr=^Z,
8227         kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
8228         ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
8229         kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
8230         kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, ri=\Ej, tbc=\E3,
8231         tsl=\Eh\Ef, use=adm+sgr,
8232 # TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
8233 # to avoid "magic cookie" standout glitch:
8234 tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
8235         xmc@,
8236         kbs=^H, kcub1=^H, kcud1=^J, rmso=\E(, smso=\E), use=tvi925,
8237
8238 # From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
8239 # Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
8240 # for additional capabilities,
8241 # The following tvi descriptions from B:pjphar and virus!mike
8242 # is for all 950s.  It sets the following attributes:
8243 # full duplex (\EDF)            write protect off (\E()
8244 # conversation mode (\EC)       graphics mode off (\E%)
8245 # white on black (\Ed)          auto page flip off (\Ew)
8246 # turn off status line (\Eg)    clear status line (\Ef\r)
8247 # normal video (\E0)            monitor mode off (\EX or \Eu)
8248 # edit mode (\Er)               load blank char to space (\Ee\040)
8249 # line edit mode (\EO)          enable buffer control (^O)
8250 # protect mode off (\E\047)     duplex edit keys (\El)
8251 # program unshifted send key to send line all (\E016)
8252 # program shifted send key to send line unprotected (\E004)
8253 # set the following to nulls:
8254 #       field delimiter (\Ex0\200\200)
8255 #       line delimiter (\Ex1\200\200)
8256 #       start-protected field delimiter (\Ex2\200\200)
8257 #       end-protected field delimiter (\Ex3\200\200)
8258 # set end of text delimiter to carriage return/null (\Ex4\r\200)
8259 #
8260 #                     TVI 950 Switch Setting Reference Charts
8261 #
8262 #                                     TABLE 1:
8263 #
8264 #      S1     1     2     3     4     5     6     7     8     9    10
8265 #          +-----------------------+-----+-----+-----------------------+
8266 #          | Computer Baud Rate    |Data |Stop | Printer Baud Rate     |
8267 #          |                       |Bits |Bits |                       |
8268 #   +------+-----------------------+-----+-----+-----------------------+
8269 #   |  Up  |        See            |  7  |  2  |        See            |
8270 #   +------+-----------------------+-----+-----+-----------------------+
8271 #   | Down |      TABLE 2          |  8  |  1  |      TABLE 2          |
8272 #   +------+-----------------------+-----+-----+-----------------------+
8273 #
8274 #
8275 #      S2     1     2     3     4     5     6     7     8     9    10
8276 #          +-----+-----+-----------------+-----+-----------+-----+-----+
8277 #          |Edit |Cursr|    Parity       |Video|Transmiss'n| Hz  |Click|
8278 #   +------+-----+-----+-----------------+-----+-----------+-----+-----+
8279 #   |  Up  | Dplx|Blink|      See        |GonBk|   See     | 60  | Off |
8280 #   +------+-----+-----+-----------------+-----+-----------+-----+-----+
8281 #   | Down |Local|St'dy|    TABLE 3      |BkonG|  CHART    | 50  | On  |
8282 #   +------+-----+-----+-----------------+-----+-----------+-----+-----+
8283 #
8284 #                                    TABLE 2:
8285 #
8286 #             +-----------+-----+-----+-----+-----+-----------+
8287 #             | Display   |  1  |  2  |  3  |  4  |   Baud    |
8288 #             +-----------+-----+-----+-----+-----+           |
8289 #             | Printer   |  7  |  8  |  9  | 10  |   Rate    |
8290 #             +-----------+-----+-----+-----+-----+-----------+
8291 #                         |  D  |  D  |  D  |  D  |   9600    |
8292 #                         |  U  |  D  |  D  |  D  |     50    |
8293 #                         |  D  |  U  |  D  |  D  |     75    |
8294 #                         |  U  |  U  |  D  |  D  |    110    |
8295 #                         |  D  |  D  |  U  |  D  |    135    |
8296 #                         |  U  |  D  |  U  |  D  |    150    |
8297 #                         |  D  |  U  |  U  |  D  |    300    |
8298 #                         |  U  |  U  |  U  |  D  |    600    |
8299 #                         |  D  |  D  |  D  |  U  |   1200    |
8300 #                         |  U  |  D  |  D  |  U  |   1800    |
8301 #                         |  D  |  U  |  D  |  U  |   2400    |
8302 #                         |  U  |  U  |  D  |  U  |   3600    |
8303 #                         |  D  |  D  |  U  |  U  |   4800    |
8304 #                         |  U  |  D  |  U  |  U  |   7200    |
8305 #                         |  D  |  U  |  U  |  U  |   9600    |
8306 #                         |  U  |  U  |  U  |  U  |  19200    |
8307 #                         +-----+-----+-----+-----+-----------+
8308 #
8309 #                                    TABLE 3:
8310 #                         +-----+-----+-----+-----------+
8311 #                         |  3  |  4  |  5  |   Parity  |
8312 #                         +-----+-----+-----+-----------+
8313 #                         |  X  |  X  |  D  |    None   |
8314 #                         |  D  |  D  |  U  |     Odd   |
8315 #                         |  D  |  U  |  U  |    Even   |
8316 #                         |  U  |  D  |  U  |    Mark   |
8317 #                         |  U  |  U  |  U  |   Space   |
8318 #                         +-----+-----+-----+-----------+
8319 #                                 X = don't care
8320 #
8321 #                                     CHART:
8322 #                         +-----+-----+-----------------+
8323 #                         |  7  |  8  | Communication   |
8324 #                         +-----+-----+-----------------+
8325 #                         |  D  |  D  |  Half Duplex    |
8326 #                         |  D  |  U  |  Full Duplex    |
8327 #                         |  U  |  D  |     Block       |
8328 #                         |  U  |  U  |     Local       |
8329 #                         +-----+-----+-----------------+
8330 #
8331 # (tvi950: early versions had obsolete ":ma=^Vj^Kk^Hh^Ll^^H:".
8332 # I also inserted <ich1> and <kich1>; the :ko: string indicated that <ich>
8333 # should be present and all tvi native modes use the same string for this.
8334 # Finally, note that BSD has cud1=^V. -- esr)
8335 tvi950|televideo 950,
8336         OTbs, am, hs, mir, msgr, xenl, xon,
8337         cols#80, it#8, lines#24, xmc#1,
8338         acsc=b\011c\014d\re\ni\013, bel=^G, cbt=\EI, clear=\E*,
8339         cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8340         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8341         dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, el=\Et, flash=\Eb$<200/>\Ed,
8342         fsl=^M, home=^^, ht=^I, hts=\E1, ich1=\EQ, il1=\EE, ind=^J,
8343         invis@,
8344         is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\Ef\r,
8345         kbs=^H, kcbt=\EI, kclr=\E*, kcub1=^H, kcud1=^V, kcuf1=^L,
8346         kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A0\r,
8347         kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
8348         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
8349         kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`, ri=\Ej, rmacs=^X,
8350         rmir=\Er, smacs=^U, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
8351         use=adm+sgr,
8352 #
8353 # is for 950 with two pages adds the following:
8354 #       set 48 line page (\E\\2)
8355 #       place cursor at page 0, line 24, column 1 (\E-07 )
8356 #       set local (no send) edit keys (\Ek)
8357 #
8358 # two page 950 adds the following:
8359 #       when entering ex, set 24 line page (\E\\1)
8360 #       when exiting ex, reset 48 line page (\E\\2)
8361 #                        place cursor at 0,24,1 (\E-07 )
8362 #       set duplex (send) edit keys (\El) when entering vi
8363 #       set local (no send) edit keys (\Ek) when exiting vi
8364 #
8365 tvi950-2p|televideo950 w/2 pages,
8366         is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07 \011,
8367         rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
8368         smkx=\El, use=tvi950,
8369 #
8370 # is for 950 with four pages adds the following:
8371 #       set 96 line page (\E\\3)
8372 #       place cursor at page 0, line 24, column 1 (\E-07 )
8373 #
8374 # four page 950 adds the following:
8375 #       when entering ex, set 24 line page (\E\\1)
8376 #       when exiting ex, reset 96 line page (\E\\3)
8377 #                        place cursor at 0,24,1 (\E-07 )
8378 #
8379 tvi950-4p|televideo950 w/4 pages,
8380         is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07 \011,
8381         rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
8382         smkx=\El, use=tvi950,
8383 #
8384 # <is2> for reverse video 950 changes the following:
8385 #       set reverse video (\Ed)
8386 #
8387 # set vb accordingly (\Ed ...delay... \Eb)
8388 #
8389 tvi950-rv|televideo950 rev video,
8390         flash=\Ed$<200/>\Eb,
8391         is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0,
8392         use=tvi950,
8393
8394 # tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
8395 tvi950-rv-2p|televideo950 rev video w/2 pages,
8396         flash=\Ed$<200/>\Eb,
8397         is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07\s,
8398         rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
8399         smkx=\El, use=tvi950,
8400
8401 # tvi950-rv uses the appropriate entries from 950-4p and 950-rv
8402 tvi950-rv-4p|televideo950 rev video w/4 pages,
8403         flash=\Ed$<200/>\Eb,
8404         is2=\EDF\EC\Eb\EG0\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07\s,
8405         rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
8406         smkx=\El, use=tvi950,
8407 # From: Andreas Stolcke <stolcke@icsi.berkeley.edu>
8408 # (tvi955: removed obsolete ":ma:=^Vj^Kk^Hh^Ll^^H";
8409 # removed incorrect (and overridden) ":do=^J:"; fixed broken continuations in
8410 # the :rs: string, inserted the <ich> implied by the termcap :ko: string.  Note
8411 # the :ko: string had :cl: in it, which means that one of the original
8412 # <clear=\E*>, <kclr=\EY> had to be wrong; set <kclr=\E*> because that's what
8413 # the 950 has.   Finally, corrected the <kel> string to match the 950 and what
8414 # ko implies -- esr)
8415 # If the BSD termcap file was right, <cup=\E=%p1%{32}%+%c%p2%{32}%+%c> would
8416 # also work.
8417 tvi955|televideo 955,
8418         OTbs, mc5i, msgr@,
8419         it#8, xmc@,
8420         acsc=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ, blink=\EG2,
8421         civis=\E.0, cnorm=\E.2, cud1=^V, cup=\E[%i%p1%d;%p2%dH,
8422         cvvis=\E.1, dim=\E[=5h, ind@, invis=\EG1,
8423         is2=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El, kctab=\E2, khts=\E1,
8424         knp=\EK, kpp=\EJ, krmir=\EQ, ktbc=\E3, mc0=\EP, rmacs=\E%%,
8425         rmam=\E[=7l, rmxon=^N,
8426         rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\0\E0p\E4\0\Ef\r,
8427         sgr0=\EG0\E[=5l, smacs=\E$, smam=\E[=7h, smxon=^O,
8428         use=tvi950,
8429 tvi955-w|955-w|televideo955 w/132 cols,
8430         cols#132,
8431         is2=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El, use=tvi955,
8432 # use half-intensity as normal mode, full intensity as <bold>
8433 tvi955-hb|955-hb|televideo955 half-bright,
8434         bold=\E[=5l, dim@, is2=\E[=3l\EF1\Ed\EG0\E[=5h\E%\El,
8435         sgr0=\EG0\E[=5h, use=tvi955,
8436 # From: Humberto Appleton <beto@cs.utexas.edu>, 880521 UT Austin
8437 # (tvi970: removed ":sg#0:"; removed <rmso>=\E[m, <rmul>=\E[m;
8438 # added <am>/<csr>/<home>/<hpa>/<vpa>/<smcup>/<rmcup> from BRL.
8439 # According to BRL we could have <rmkx>=\E>, <smkx>=\E= but I'm not sure what
8440 # it does to the function keys.  I deduced <rmam>/<smam>.
8441 # also added empty <acsc> to suppress tic warning,  -- esr)
8442 tvi970|televideo 970,
8443         OTbs, OTpt, am, da, db, mir, msgr,
8444         cols#80, it#8, lines#24,
8445         acsc=, cbt=\E[Z, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
8446         cub1=^H, cud1=\ED, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
8447         cuu1=\EM, cvvis=\E[1Q, dch1=\E[P, dl1=\E[M, dsl=\Eg\Ef\r,
8448         ed=\E[J, el=\E[K, flash=\E[5m$<200/>\E[m, home=\E[H,
8449         hpa=\E[%i%p1%dG, ht=^I, il1=\E[L,
8450         is2=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J,
8451         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8452         kf1=\E?a, kf2=\E?b, kf3=\E?c, kf4=\E?d, kf5=\E?e, kf6=\E?f,
8453         kf7=\E?g, kf8=\E?h, kf9=\E?i, khome=\E[H, ri=\EM, rmacs=\E(B,
8454         rmam=\E[?7h, rmcup=, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
8455         sgr0=\E[m, smacs=\E(B, smam=\E[?7l,
8456         smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h, smso=\E[7m,
8457         smul=\E[4m, vpa=\E[%i%p1%dd,
8458 tvi970-vb|televideo 970 with visual bell,
8459         flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
8460         use=tvi970,
8461 tvi970-2p|televideo 970 with using 2 pages of memory,
8462         rmcup=\E[H\E[J\E[V, smcup=\E[U\E[?20l\E[?7h\E[1Q,
8463         use=tvi970,
8464 # Works with vi and rogue.  NOTE: Esc v sets autowrap on, Esc u sets 80 chars
8465 # per line (rather than 40), Esc K chooses the normal character set.  Not sure
8466 # padding is needed, but adapted from the tvi920c termcap.  The <smso> and
8467 # <smul> strings are klutzy, but at least use no screen space.
8468 # (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
8469 # its absence means <smam>=\Ev isn't safe to use. -- esr)
8470 # From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84.
8471 # The <ed>/<kf0>/<kf1>/<khome>/<mc4>, and <mc5> caps are from BRL, which says:
8472 # F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
8473 tvipt|televideo personal terminal,
8474         OTbs, am,
8475         cols#80, lines#24,
8476         cbt=\EI, clear=^Z, cub1=^H, cuf1=^L,
8477         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER$<5*>,
8478         ed=\EY, el=\ET, home=^^, if=/usr/share/tabset/stdcrt,
8479         il1=\EE$<5*>, is2=\Ev\Eu\EK, kbs=^H, kcub1=^H, kcud1=^J,
8480         kcuf1=^L, kcuu1=^K, kf0=^A, kf1=^B, khome=^^, mc4=^T, mc5=^R,
8481         rmso=\EF, rmul=\EF, smso=\EG1@A\EH, smul=\EG1B@\EH,
8482 # From: Nathan Peterson <nathan@sco.com>, 03 Sep 1996
8483 tvi9065|televideo 9065,
8484         am, bw, chts, hs, mc5i, mir, msgr, xenl, xon,
8485         cols#80, it#8, lh#1, lines#25, lm#0, lw#9, ma#4, nlab#8, vt#0,
8486         wnum#0, wsl#30,
8487         acsc='r0_jhkglfmeniopqksqtmulvownxj, bel=^G,
8488         blink=\EG2, bold=\EG\,, cbt=\EI, civis=\E.0, clear=^Z,
8489         cnorm=\E.3, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD,
8490         cub1=^H, cud=\E[%p1%dB, cud1=^V, cuf=\E[%p1%dC, cuf1=^L,
8491         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu=\E[%p1%dA,
8492         cuu1=^K, cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp,
8493         dl=\E[%p1%dM, dl1=\ER, dsl=\E_30\r, ech=\E[%p1%d@, ed=\EY,
8494         el=\ET, flash=\Eb$<15>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
8495         ich=\E[%p1%d@, if=/usr/share/tabset/stdcrt,
8496         il=\E[%p1%dL, il1=\EE, ind=^J, indn=\E[%p1%dS, invis=\EG1,
8497         ip=$<3>,
8498         is1=\E"\E%\E'\E(\EG@\EO\EX\E[=5l\E[=6l\E[=7h\Ed\Er,
8499         is2=\EF2\EG0\E\\L, is3=\E<\E[=4l\E[=8h, kHOM=\E\s\s\s,
8500         kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
8501         kdch1=\EW, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r,
8502         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
8503         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, ll=\E[25;1H,
8504         mc0=\E[0;0i, mc4=\Ea, mc5=\E`, nel=^M^J,
8505         pfkey=\E|%p1%{48}%+%c3%p2%s\031,
8506         pfloc=\E|%p1%{48}%+%c2%p2%s\031,
8507         pfx=\E|%p1%{48}%+%c1%p2%s\031,
8508         pln=\E_%p1%{63}%+%c%p2%s\r, prot=\E&,
8509         rep=\E[%p2%db%p1%c, rev=\EG4,
8510         rf=/usr/share/tabset/stdcrt, ri=\Ej, rin=\E[%p1%dT,
8511         rmacs=\E%%, rmam=\E[=7l, rmcup=\E.3\Er\E[1;25r\E[25;0H,
8512         rmdc=\0, rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0,
8513         rmxon=^N, rs1=\EC\EDF\E[0;0v\E[8;1v\E[=65l,
8514         rs2=\E.b\E[10;20v\E[14;1v\E[3;0v\E[7;0v\E[=11.h\E[=12.h\E[=13.h\E[=14.h\E[=15l\E[=20h\E[=60l\E[=61h\E[=9l\E[=10l\E[=21l\E[=23l\E[=3l\E_40\E_50\En\Ew\Ee \Ex0\0\0\Ex1\0\0\Ex2\0\0\Ex3\0\0\Ex4\0\0\E1,
8515         rs3=\E[=19h\E.3\E9\E0O\0\0\0\0\0\E0o\0\0\0\0\0\E0J\177\0\0\0\0,
8516         sgr=\EG0%?%p1%t\EGt%;%?%p2%t\EG8%;%?%p3%t\EG4%;%?%p4%t\EG2%;%?%p5%t\EGp%;%?%p6%t\EG\,%;%?%p7%t\EG1%;%?%p8%t\E&%;%?%p9%t\E$%e\E%%%;,
8517         sgr0=\EG0\E%, smacs=\E$, smam=\E=7h, smcup=\E.2, smdc=\Er,
8518         smir=\Eq, smln=\E[4;2v, smso=\EGt, smul=\EG8, smxon=^O,
8519         tbc=\E3, tsl=\E[4;1v\E_30, uc=\EG8\EG0,
8520
8521 #### Visual (vi)
8522 #
8523 # In September 1993, Visual Technology of Westboro, Massachusetts,
8524 # merged with White Pine Software of Nashua, New Hampshire.
8525 #
8526 # White Pine Software may be contacted at +1 603/886-9050.
8527 # Or visit White Pine on the World Wide Web at URL http://www.wpine.com.
8528 #
8529
8530 # Visual 50 from Beau Shekita, BTL-Whippany <whuxlb!ejs>
8531 # Recently I hacked together the following termcap for Visual
8532 # Technology's Visual 50 terminal. It's a slight modification of
8533 # the vt52 termcap.
8534 # It's intended to run when the Visual 50 is in vt52 emulation mode
8535 # (I know what you're thinking; if it's emulating a vt52, then why
8536 # another termcap? Well, it turns out that the Visual 50 can handle
8537 # <dl1> and db(?) among other things, which the vt52 can't)
8538 # The termcap works OK for the most part. The only problem is on
8539 # character inserts. The whole line gets painfully redrawn for each
8540 # character typed. Any suggestions?
8541 # Beau's entry is combined with the vi50 entry from University of Wisconsin.
8542 # Note especially the <il1> function.  <kf4>-<kf6> are really l4-l6 in
8543 # disguise; <kf7>-<kf9> are really l1-l3.
8544 vi50|visual 50,
8545         OTbs, OTpt, am, da, db, msgr,
8546         cols#80, it#8, lines#24,
8547         OTnl=^J, bel=^G, cbt=\Ez$<4/>, clear=\EH\EJ, cr=^M, cub1=^H,
8548         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
8549         cuu1=\EA, dl1=\EM$<3*/>, ed=\EJ, el=\EK$<16/>, home=\EH,
8550         ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
8551         kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
8552         kf5=\EE, kf6=\E], kf7=\EL, kf8=\Ev, kf9=\EM, khome=\EH,
8553         nel=^M^J, ri=\EI, rmso=\ET, rmul=\EW, smso=\EU, smul=\ES,
8554 # this one was BSD & SCO's vi50
8555 vi50adm|visual 50 in adm3a mode,
8556         am, msgr,
8557         cols#80, it#8, lines#24,
8558         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8559         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\EM,
8560         ed=\Ek, el=\EK, home=\EH, ht=^I, il1=\EL, ind=^J, kbs=^H,
8561         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH,
8562         rmso=\ET, smso=\EU,
8563 # From: Jeff Siegal <jbs@quiotix.com>
8564 vi55|Visual 55,
8565         OTbs, am, mir, msgr,
8566         cols#80, it#8, lines#24,
8567         clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H,
8568         cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
8569         cuu1=\EA, dch1=\Ew, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I,
8570         il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, kcub1=\ED,
8571         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EI, rmir=\Eb, rmso=\ET,
8572         smir=\Ea, smso=\EU,
8573
8574 # Visual 200 from BRL
8575 # The following switch settings are assumed for normal operation:
8576 #       FULL_DUPLEX             SCROLL                  CR
8577 #       AUTO_NEW_LINE_ON        VISUAL_200_EMULATION_MODE
8578 # Other switches may be set for operator convenience or communication
8579 # requirements.
8580 # Character insertion is kludged in order to get around the "beep" misfeature.
8581 # (This cap is commented out because <smir>/<rmir> is more efficient -- esr)
8582 # Supposedly "4*" delays should be used for <il1>, <ed>, <clear>, <dch1>,
8583 # and <dl1> strings, but we seem to get along fine without them.
8584 vi200|visual 200,
8585         OTbs, OTpt, am, mir, msgr,
8586         OTkn#10, cols#80, it#8, lines#24,
8587         acsc=, bel=^G, cbt=\Ez, clear=\Ev, cnorm=\Ec, cr=^M, cub1=^H,
8588         cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
8589         cuu1=\EA, cvvis=\Ed, dch1=\EO, dim=\E4, dl1=\EM, ed=\Ey,
8590         el=\Ex, home=\EH, ht=^I, hts=\E1, il1=\EL, ind=^J, invis=\Ea,
8591         kbs=^H, kclr=\Ev, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
8592         kcuu1=\EA, kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p,
8593         kf1=\E?q, kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v,
8594         kf7=\E?w, kf8=\E?x, kf9=\E?y, khome=\EH, khts=\E1, kich1=\Ei,
8595         kil1=\EL, krmir=\Ej, mc0=\EH\E], mc4=\EX, mc5=\EW, ri=\EI,
8596         rmacs=\EG, rmkx=\E>, rmso=\E3,
8597         rs1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX, sgr0=\E3\Eb, smacs=\EF,
8598         smkx=\E=, smso=\E4, tbc=\Eg,
8599 # The older Visuals didn't come with function keys. This entry uses
8600 # <smkx> and <rmkx> so that the keypad keys can be used as function keys.
8601 # If your version of vi doesn't support function keys you may want
8602 # to use vi200-f.
8603 vi200-f|visual 200 no function keys,
8604         is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, kf0=\E?p, kf1=\E?q,
8605         kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v, kf7=\E?w,
8606         kf8=\E?x, kf9=\E?y, rmkx=\E>, rmso@, smkx=\E=, smso@,
8607         use=vi200,
8608 vi200-rv|visual 200 reverse video,
8609         cnorm@, cvvis@, ri@, rmso=\E3, smso=\E4, use=vi200,
8610
8611 # the function keys are programmable but we don't reprogram them to their
8612 # default values with <is2> because programming them is very verbose. maybe
8613 # an initialization file should be made for the 300 and they could be stuck
8614 # in it.
8615 # (vi300: added <rmam>/<smam> based on init string -- esr)
8616 vi300|visual 300 ansi x3.64,
8617         am, bw, mir, xenl,
8618         cols#80, lines#24,
8619         bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
8620         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
8621         dch1=\E[P$<40>, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
8622         il1=\E[L, ind=^J,
8623         is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[1Q\E[0;1(D\E[8s,
8624         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8625         kf1=\E_A\E\\, kf2=\E_B\E\\, kf3=\E_C\E\\, kf4=\E_D\E\\,
8626         kf5=\E_E\E\\, kf6=\E_F\E\\, kf7=\E_G\E\\, kf8=\E_H\E\\,
8627         kf9=\E_I\E\\, khome=\E[H, ri=\EM, rmam=\E[?7l, rmir=\E[4l,
8628         rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
8629         smso=\E[1m, smul=\E[4m,
8630 # some of the vi300s have older firmware that has the command
8631 # sequence for setting editing extent reversed.
8632 vi300-old|visual 300 with old firmware (set edit extent reversed),
8633         is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[2Q\E[0;1(D\E[8s,
8634         use=vi300,
8635
8636 # Visual 500 prototype entry from University of Wisconsin.
8637 # The best place to look for the escape sequences is page A1-1 of the
8638 # Visual 500 manual.  The initialization sequence given here may be
8639 # overkill, but it does leave out some of the initializations which can
8640 # be done with the menus in set-up mode.
8641 # The :xp: line below is so that emacs can understand the padding requirements
8642 # of this slow terminal.  :xp: is 10 time the padding factor.
8643 # (vi500: removed unknown :xp#4: termcap;
8644 # also added empty <acsc> to suppress tic warning -- esr)
8645 vi500|visual 500,
8646         am, mir, msgr,
8647         cols#80, it#8, lines#33,
8648         acsc=, cbt=\Ez$<4/>, clear=\Ev$<6*/>, cr=^M,
8649         csr=\E(%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\EB,
8650         cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
8651         dch1=\EO$<3*/>, dl1=\EM$<3*/>, ed=\Ey$<3*/>,
8652         el=\Ex$<16/>, home=\EH, ht=\011$<8/>, il1=\EL\Ex$<3*/>,
8653         ind=^J,
8654         is2=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\,
8655         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
8656         khome=\EH, nel=^M^J, rmacs=^O, rmir=\Ej, rmso=\E^G,
8657         rmul=\E^C, smacs=^N, smir=\Ei, smso=\E^H, smul=\E^D,
8658
8659 # The visual 550 is a visual 300 with tektronix graphics,
8660 # and with 33 lines. clear screen is modified here to
8661 # also clear the graphics.
8662 vi550|visual 550 ansi x3.64,
8663         lines#33,
8664         clear=\030\E[H\E[2J, use=vi300,
8665
8666 vi603|visual603|visual 603,
8667         hs, mir,
8668         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
8669         csr=\E[%i%p1%d;%p2%dr, cuf1=\E[C,
8670         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
8671         dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, il1=\E[L,
8672         ind=\ED, is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r,
8673         rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
8674         sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=\EP2~,
8675         use=vt100,
8676
8677 #### Wyse (wy)
8678 #
8679 #       Wyse Technology
8680 #       3471 North First Street
8681 #       San Jose, CA 95134
8682 #       Vox: (408)-473-1200
8683 #       Fax: (408) 473-1222
8684 #       Web: http://www.wyse.com
8685 #
8686 # Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
8687 # (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
8688 # obvious address, <http://www.wyse.com>.  They keep terminfo entries at
8689 # <http://www.wyse.co.uk/support/appnotes/idxappnt.htm>.
8690 #
8691 # Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
8692 # They now own the Qume and Amdek brands, too.  So these are the people to
8693 # talk with about all Link, Qume, and Amdek terminals.
8694 #
8695 # These entries include a few small fixes.
8696 # I canceled the bel capacities in the vb entries.
8697 # I made two trivial syntax fixes in the wyse30 entry.
8698 # I made some entries relative to adm+sgr.
8699 #
8700 #
8701 # Note: The wyse75, wyse85, and wyse99 have been discontinued.
8702
8703 #          Although the Wyse 30 can support more than one attribute
8704 #       it requires magic cookies to do so.  Many applications do not
8705 #       function well with magic cookies.  The following terminfo uses
8706 #       the protect mode to support one attribute (dim) without cookies.
8707 #       If more than one attribute is needed then the wy30-mc terminfo
8708 #       should be used.
8709 #
8710 wy30|wyse30|Wyse 30,
8711         am, bw, hs, mc5i, mir, msgr, xon,
8712         cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
8713         acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
8714         civis=\E`0, clear=\E+$<80>, cnorm=\E`1, cr=^M, cub1=^H,
8715         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
8716         cuu1=^K, dch1=\EW$<10>, dim=\E`7\E), dl1=\ER$<1>,
8717         dsl=\EF\r, ed=\EY$<80>, el=\ET, flash=\E`8$<100/>\E`9,
8718         fsl=^M, home=^^, ht=\011$<1>, hts=\E1, il1=\EE$<2>,
8719         ind=\n$<2>, ip=$<2>, is2=\E'\E(\E\^3\E`9\016\024,
8720         kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
8721         kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kent=\E7,
8722         kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
8723         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=^^, kich1=\EQ,
8724         kil1=\EE, knp=\EK, kpp=\EJ, krpl=\Er, ll=^^^K, mc0=\EP, mc4=^T,
8725         mc5=^X, nel=^M^J, pfx=\Ez%p1%{63}%+%c%p2%s\177,
8726         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>,
8727         rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
8728         sgr=%?%p1%p5%p8%|%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
8729         sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
8730         smso=\E`7\E), tbc=\E0, tsl=\EF,
8731 #
8732 #       This terminal description uses the non-hidden attribute mode
8733 #       (with magic cookie).
8734 #
8735 # (wy30-mc: added <smcup> to suppress tic warning --esr)
8736 wy30-mc|wyse30-mc|wyse 30 with magic cookies,
8737         msgr@,
8738         ma@, xmc#1,
8739         blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003,
8740         rmcup=\EG0, rmso=\EG0,
8741         sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
8742         sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
8743         smso=\EG4, use=wy30, use=adm+sgr,
8744 #       The mandatory pause used by <flash> does not work with
8745 #       older versions of terminfo.  If you see this effect then
8746 #       unset xon and delete the / from the delay.
8747 #       i.e. change $<100/> to $<100>
8748 wy30-vb|wyse30-vb|wyse 30 visible bell,
8749         bel@, use=wy30,
8750 #
8751 #          The Wyse 50 can support one attribute (e.g. Dim, Inverse,
8752 #       Normal) without magic cookies by using the protect mode.
8753 #       The following description uses this feature, but when more
8754 #       than one attribute is put on the screen at once, all attributes
8755 #       will be changed to be the same as the last attribute given.
8756 #          The Wyse 50 can support more attributes when used with magic
8757 #       cookies.  The wy50-mc terminal description uses magic cookies
8758 #       to correctly handle multiple attributes on a screen.
8759 #
8760 wy50|wyse50|Wyse 50,
8761         am, bw, hs, mc5i, mir, msgr, xon,
8762         cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
8763         acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
8764         civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M, cub1=^H,
8765         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
8766         cuu1=^K, dch1=\EW$<1>, dim=\E`7\E), dl1=\ER, dsl=\EF\r,
8767         ed=\EY$<20>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
8768         home=^^, ht=^I, hts=\E1, il1=\EE, ind=\n$<2>, ip=$<1>,
8769         is1=\E`\:\E`9$<30>, is2=\016\024\E'\E(, kHOM=\E{, kbs=^H,
8770         kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW,
8771         kdl1=\ER, ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
8772         kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
8773         kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
8774         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
8775         kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
8776         ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J,
8777         pfx=\Ez%p1%{63}%+%c%p2%s\177,
8778         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E),
8779         ri=\Ej, rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
8780         sgr=%?%p1%p3%|%t\E`6\E)%e%p5%p8%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
8781         sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
8782         smso=\E`6\E), tbc=\E0, tsl=\EF,
8783 #
8784 #       This terminal description uses the non-hidden attribute mode
8785 #       (with magic cookie).
8786 #
8787 #       The mandatory pause used by flash does not work with some
8788 #       older versions of terminfo.  If you see this effect then
8789 #       unset <xon> and delete the / from the delay.
8790 #       i.e. change $<100/> to $<100>
8791 # (wy50-mc: added <smcup> to suppress tic warning --esr)
8792 wy50-mc|wyse50-mc|wyse 50 with magic cookies,
8793         msgr@,
8794         ma@, xmc#1,
8795         blink=\EG2, dim=\EGp, prot=\EG0\E), rev=\EG4,
8796         rmacs=\EG0\EH\003, rmcup=\EG0, rmso=\EG0,
8797         sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
8798         sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
8799         smso=\EGt, use=wy50, use=adm+sgr,
8800 wy50-vb|wyse50-vb|wyse 50 visible bell,
8801         bel@, use=wy50,
8802 wy50-w|wyse50-w|wyse 50 132-column,
8803         cols#132, lw#7, nlab#16, wsl#97,
8804         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
8805         use=wy50,
8806 wy50-wvb|wyse50-wvb|wyse 50 132-column visible bell,
8807         bel@, use=wy50-w,
8808
8809 #
8810 #       The Wyse 350 is a Wyse 50 with color.
8811 #       Unfortunately this means that it has magic cookies.
8812 #       The color attributes are designed to overlap the reverse, dim and
8813 #       underline attributes.  This is nice for monochrome applications
8814 #       because you can make underline stuff green (or any other color)
8815 #       but for true color applications it's not so hot because you cannot
8816 #       mix color with reverse, dim or underline.
8817 #           To further complicate things one of the attributes must be
8818 #       black (either the foreground or the background).  In reverse video
8819 #       the background changes color with black letters.  In normal video
8820 #       the foreground changes colors on a black background.
8821 #           This terminfo uses some of the more advanced features of curses
8822 #       to display both color and blink.  In the final analysis I am not
8823 #       sure that the wy350 runs better with this terminfo than it does
8824 #       with the wy50 terminfo (with user adjusted colors).
8825 #
8826 #       The mandatory pause used by flash does not work with
8827 #       older versions of terminfo.  If you see this effect then
8828 #       unset xon and delete the / from the delay.
8829 #       i.e. change $<100/> to $<100>
8830 #
8831 # Bug: The <op> capability resets attributes.
8832 wy350|wyse350|Wyse 350,
8833         am, bw, hs, mc5i, mir, xon,
8834         colors#8, cols#80, lh#1, lines#24, lw#8, ncv#55, nlab#8, pairs#8,
8835         wsl#45, xmc#1,
8836         acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
8837         cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
8838         cub1=^H, cud1=^J, cuf1=^L,
8839         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<1>,
8840         dim=\EGp, dl1=\ER, dsl=\EF\r, ed=\EY$<20>, el=\ET,
8841         flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
8842         il1=\EE, ind=\n$<2>, ip=$<1>, is1=\E`\:\E`9$<30>,
8843         is2=\016\024\E'\E(, is3=\E%?, kHOM=\E{, kbs=^H, kcbt=\EI,
8844         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
8845         ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
8846         kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
8847         kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
8848         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
8849         kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
8850         ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J, oc=\E%?, op=\EG0,
8851         pfx=\Ez%p1%{63}%+%c%p2%s\177,
8852         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\EG0\E), ri=\Ej,
8853         rmacs=\EG0\EH\003, rmir=\Er, rmln=\EA11, setb=,
8854         setf=%?%p1%{0}%=%t%{76}%e%p1%{1}%=%t%{64}%e%p1%{2}%=%t%{8}%e%p1%{3}%=%t%{72}%e%p1%{4}%=%t%{4}%e%p1%{5}%=%t%{68}%e%p1%{6}%=%t%{12}%e%p1%{7}%=%t%{0}%;%PC\EG%gC%gA%+%{48}%+%c,
8855         sgr=%{0}%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;%PA\EG%?%gC%t%gC%e%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p5%t%{64}%|%;%;%gA%+%{48}%+%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
8856         sgr0=\EG0\E(\EH\003%{0}%PA%{0}%PC, smacs=\EG0\EH\002,
8857         smir=\Eq, smln=\EA10, tbc=\E0, tsl=\EF, use=adm+sgr,
8858 wy350-vb|wyse350-vb|wyse 350 visible bell,
8859         bel@, use=wy350,
8860 wy350-w|wyse350-w|wyse 350 132-column,
8861         cols#132, lw#7, nlab#16, wsl#97,
8862         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
8863         use=wy350,
8864 wy350-wvb|wyse350-wvb|wyse 350 132-column visible bell,
8865         bel@, use=wy350-w,
8866 #
8867 #       This terminfo description is untested.
8868 #       The wyse100 emulates an adm31, so the adm31 entry should work.
8869 #
8870 wy100|wyse 100,
8871         hs, mir,
8872         cols#80, lines#24, xmc#1,
8873         bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8874         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8875         dl1=\ER, dsl=\EA31, ed=\EY, el=\ET, fsl=^M, il1=\EE, ind=^J,
8876         invis@, is2=\Eu\E0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
8877         kcuu1=^K, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
8878         kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=\E{,
8879         rmir=\Er, smir=\Eq, tsl=\EF, use=adm+sgr,
8880 #
8881 #       The Wyse 120/150 has most of the features of the Wyse 60.
8882 #       This terminal does not need padding up to 9600 baud!
8883 #       <msgr> should be set but the clear screen fails when in
8884 #       alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
8885 #       then set <msgr>.
8886 #
8887 wy120|wyse120|wy150|wyse150|Wyse 120/150,
8888         am, bw, hs, km, mc5i, mir, msgr, xon,
8889         cols#80, it#8, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
8890         acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
8891         bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
8892         cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8893         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
8894         dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
8895         flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=\011$<1>,
8896         hts=\E1, il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
8897         is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
8898         is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
8899         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
8900         kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
8901         kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
8902         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
8903         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
8904         kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
8905         mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
8906         pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
8907         pfx=\EZ1%p1%{63}%+%c%p2%s\177,
8908         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
8909         rmacs=\EcD, rmam=\Ed., rmcup=\Ew1, rmir=\Er, rmln=\EA11,
8910         rmxon=\Ec20, rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
8911         rs3=\EwG\Ee($<100>,
8912         sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
8913         sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
8914         smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
8915         tbc=\E0, tsl=\EF, use=adm+sgr,
8916 #
8917 wy120-w|wyse120-w|wy150-w|wyse150-w|wyse 120/150 132-column,
8918         cols#132, lw#7, nlab#16, wsl#97,
8919         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
8920         rs2=\E`;$<70>, use=wy120,
8921 #
8922 wy120-25|wyse120-25|wy150-25|wyse150-25|wyse 120/150 80-column 25-lines,
8923         lh@, lines#25, lw@, nlab@,
8924         pln@, rs3=\EwG\Ee)$<100>, use=wy120,
8925 #
8926 wy120-25-w|wyse120-25-w|wy150-25-w|wyse150-25-w|wyse 120/150 132-column 25-lines,
8927         lh@, lines#25, lw@, nlab@,
8928         pln@, rs3=\EwG\Ee)$<100>, use=wy120-w,
8929 #
8930 wy120-vb|wyse120-vb|wy150-vb|wyse150-vb|Wyse 120/150 visible bell,
8931         bel@, use=wy120,
8932 #
8933 wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column visible bell,
8934         bel@, use=wy120-w,
8935 #
8936 #       The Wyse 60 is like the Wyse 50 but with more padding.
8937 #       The reset strings are slow and the pad times very depending
8938 #       on other parameters such as font loading.  I have tried
8939 #       to follow the following outline:
8940 #
8941 #               <rs1> -> set personality
8942 #               <rs2> -> set number of columns
8943 #               <rs3> -> set number of lines
8944 #               <is1> -> select the proper font
8945 #               <is2> -> do the initialization
8946 #               <is3> -> set up display memory (2 pages)
8947 #
8948 #       The Wyse 60's that have vt100 emulation are slower than the
8949 #       older Wyse 60's.  This change happened mid-1987.
8950 #       The capabilities effected are <dch1> <dl1> <il1> <ind> <ri>
8951 #
8952 #       The meta key is only half right.  This terminal will return the
8953 #       high order bit set when you hit CTRL-function_key
8954 #
8955 #       It may be useful to assign two function keys with the
8956 #       values  \E=(\s  look at old data in page 1
8957 #               \E=W,   look at bottom of page 1
8958 #       where \s is a space ( ).
8959 #
8960 #       Note:
8961 #          The Wyse 60 runs faster when the XON/XOFF
8962 #          handshake is turned off.
8963 #
8964 # (wy60: we use \E{ rather than ^^ for home (both are documented) to avoid
8965 # a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
8966 wy60|wyse60|Wyse 60,
8967         am, bw, hs, km, mc5i, mir, msgr,
8968         cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#45,
8969         acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
8970         bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<100>,
8971         cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8972         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8973         dch1=\EW$<11>, dclk=\E`b, dim=\EGp, dl1=\ER$<5>, dsl=\EF\r,
8974         ed=\EY$<100>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
8975         home=\E{, ht=\011$<1>, hts=\E1, il1=\EE$<4>, ind=\n$<5>,
8976         ip=$<3>, is1=\EcB0\EcC1,
8977         is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
8978         is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
8979         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
8980         kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
8981         kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
8982         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
8983         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
8984         kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
8985         mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
8986         pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
8987         pfx=\EZ1%p1%{63}%+%c%p2%s\177,
8988         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
8989         rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew1, rmir=\Er,
8990         rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<150>,
8991         rs2=\EeG$<150>, rs3=\EwG\Ee($<200>,
8992         sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
8993         sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
8994         smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
8995         tbc=\E0, tsl=\EF, use=adm+sgr,
8996 #
8997 wy60-w|wyse60-w|wyse 60 132-column,
8998         cols#132, lw#7, nlab#16, wsl#97,
8999         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<16>, ip=$<5>,
9000         rs2=\EeF$<150>\E`;$<150>, use=wy60,
9001 #
9002 wy60-25|wyse60-25|wyse 60 80-column 25-lines,
9003         lh@, lines#25, lw@, nlab@,
9004         pln@, rs3=\EwG\Ee)$<200>, use=wy60,
9005 wy60-25-w|wyse60-25-w|wyse 60 132-column 25-lines,
9006         lh@, lines#25, lw@, nlab@,
9007         pln@, rs3=\EwG\Ee)$<200>, use=wy60-w,
9008 #
9009 wy60-42|wyse60-42|wyse 60 80-column 42-lines,
9010         lines#42,
9011         clear=\E+$<260>, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<2>,
9012         dch1=\EW$<16>, dl1=\ER$<11>, ed=\Ey$<260>, il1=\EE$<11>,
9013         ind=\n$<9>, ip=$<5>, is1=\EcB2\EcC3, nel=\r\n$<6>,
9014         ri=\Ej$<10>, rs3=\Ee*$<150>, use=wy60,
9015 wy60-42-w|wyse60-42-w|wyse 60 132-column 42-lines,
9016         cols#132, lw#7, nlab#16, wsl#97,
9017         clear=\E+$<260>, cup=\Ea%i%p1%dR%p2%dC$<2>,
9018         dch1=\EW$<19>, ed=\Ey$<260>, home=\036$<2>, ip=$<6>,
9019         nel=\r\n$<11>, rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
9020 #
9021 wy60-43|wyse60-43|wyse 60 80-column 43-lines,
9022         lh@, lines#43, lw@, nlab@,
9023         pln@, rs3=\Ee+$<150>, use=wy60-42,
9024 wy60-43-w|wyse60-43-w|wyse 60 132-column 43-lines,
9025         lh@, lines#43, lw@, nlab@,
9026         pln@, rs3=\Ee+$<150>, use=wy60-42-w,
9027 #
9028 wy60-vb|wyse60-vb|Wyse 60 visible bell,
9029         bel@, use=wy60,
9030 wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell,
9031         bel@, use=wy60-w,
9032
9033 #       The Wyse-99GT looks at lot like the Wyse 60 except that it
9034 #       does not have the 42/43 line mode.  In the Wyse-60 the "lines"
9035 #       setup parameter controls the number of lines on the screen.
9036 #       For the Wyse 99GT the "lines" setup parameter controls the
9037 #       number of lines in a page.  The screen can display 25 lines max.
9038 #           The Wyse-99GT also has personalities for the VT220 and
9039 #       Tektronix 4014.  But this has no bearing on the native mode.
9040 #
9041 #       (msgr) should be set but the clear screen fails when in
9042 #       alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
9043 #       then set msgr, else use msgr@.
9044 #
9045 #       u0 -> enter Tektronix mode
9046 #       u1 -> exit Tektronix mode
9047 #
9048 wy99gt|wyse99gt|Wyse 99gt,
9049         msgr@,
9050         clear=\E+$<130>, dch1=\EW$<7>, dl1=\ER$<4>, ed=\Ey$<130>,
9051         el=\Et$<5>, flash=\E`8$<100/>\E`9, ht=\011$<1>,
9052         il1=\EE$<4>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
9053         ri=\Ej$<3>, rmcup=\Ew0, rs2=\E`\:$<150>, smcup=\Ew1,
9054         u0=\E~>\E8, u1=\E[42h, use=wy60,
9055 #
9056 wy99gt-w|wyse99gt-w|wyse 99gt 132-column,
9057         cols#132, lw#7, nlab#16, wsl#97,
9058         clear=\E+$<160>, cup=\Ea%i%p1%dR%p2%dC$<2>,
9059         dch1=\EW$<9>, ed=\Ey$<160>, ip=$<4>, rs2=\E`;$<150>,
9060         use=wy99gt,
9061 #
9062 wy99gt-25|wyse99gt-25|wyse 99gt 80-column 25-lines,
9063         lh@, lines#25, lw@, nlab@,
9064         pln@, rs2=\E`\:$<150>, rs3=\EwG\Ee)$<200>, use=wy99gt,
9065 #
9066 wy99gt-25-w|wyse99gt-25-w|wyse 99gt 132-column 25-lines,
9067         lh@, lines#25, lw@, nlab@,
9068         pln@, rs2=\E`;$<150>, use=wy99gt-w,
9069 #
9070 wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell,
9071         bel@, use=wy99gt,
9072 #
9073 wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell,
9074         bel@, use=wy99gt-w,
9075
9076 # Can't set tabs! Other bugs (ANSI mode only):
9077 # - can't redefine function keys (anyway, key redefinition in ANSI mode
9078 #   is too much complex to be described);
9079 # - meta key can't be described (the terminal forgets it when reset);
9080 # The xon-xoff handshaking can't be disabled while in ansi personality, so
9081 # emacs can't work at speed greater than 9600 baud.  No padding is needed at
9082 # this speed.
9083 #   dch1 has been commented out because it causes annoying glittering when
9084 # vi deletes one character at the beginning of a line with tabs in it.
9085 #   dch makes sysgen(1M) have a horrible behaviour when deleting
9086 # a screen and makes screen(1) behave badly, so it is disabled too. The nice
9087 # thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
9088 # not, so smir and rmir are commented out as well.
9089 # From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
9090 wy99-ansi|Wyse WY-99GT in ansi mode (int'l PC keyboard),
9091         am, km, mc5i, mir, msgr, xenl,
9092         cols#80, it#8, lines#25, vt#3,
9093         acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~,
9094         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9095         clear=\E[H\E[J$<200>, cnorm=\E[34h\E[?25h, cr=^M,
9096         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<1>,
9097         cub1=\010$<1>, cud=\E[%p1%dB, cud1=\ED,
9098         cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
9099         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
9100         cvvis=\E[34l\E[?25h, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
9101         ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>,
9102         enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, home=\E[H,
9103         hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
9104         il1=\E[L, ind=\n$<1>, invis=\E[8m,
9105         is2=\E7\E[1r\E8\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[4i,
9106         kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
9107         kcuu1=\EOA, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
9108         kf12=\E[24~, kf17=\E[K, kf18=\E[31~, kf19=\E[32~, kf2=\EOQ,
9109         kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~,
9110         kf24=\E[2~, kf3=\EOR, kf4=\EOS, kf5=\E[M, kf6=\E[17~,
9111         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, ll=\E[24E, mc0=\E[?19h,
9112         mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rc=\E8,
9113         rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
9114         rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m,
9115         rs2=\E[61"p\E[40h\E[?6l\E[1r\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[24E\E[4i,
9116         sc=\E7,
9117         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%O%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m\E[%?%p8%t1%;"q%?%p9%t\016%e\017%;,
9118         sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h,
9119         smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
9120
9121 #   This is the american terminal. Here tabs work fine.
9122 # From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
9123 wy99a-ansi|Wyse WY-99GT in ansi mode (US PC keyboard),
9124         hts=\EH, is3=\E[?5l, rs3=\E[?5l, tbc=\E[3g, use=wy99-ansi,
9125
9126 # This terminal (firmware version 02) has a lot of bugs:
9127 # - can't set tabs;
9128 # - other bugs in ANSI modes (see above).
9129 # This description disables handshaking when using cup. This is because
9130 # GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
9131 # cannot be used at speeds greater than 9600 baud, because at greater
9132 # speeds handshaking is needed even for character sending. If you use
9133 # DTR handshaking, you can use even greater speeds.
9134 # From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
9135 wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard),
9136         am, bw, hs, km, mc5i, mir, msgr, xon,
9137         cols#80, it#8, lines#25, wsl#46,
9138         acsc='x+y.w_vi~j(k'l&m%n)o9q*s8t-u.v\,w+x=, bel=^G,
9139         blink=\EG2, cbt=\EI, civis=\E`0, clear=\E'\E(\032,
9140         cnorm=\E`4\E`1, cr=^M, cub1=^H, cud1=\Ej, cuf1=^L,
9141         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
9142         cvvis=\E`2\E`1, dch1=\EW, dim=\EGp, dl1=\ER, dsl=\EF\r,
9143         ed=\EY$<8*>, el=\ET$<8>, enacs=\Ec@1J$<2000>,
9144         flash=\E\^1$<30/>\E\^0, fsl=^M, home=^^, ht=^I, il1=\EE,
9145         ind=^J, invis=\EG3,
9146         is2=\Eu\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\EcD\024,
9147         ka1=^^, ka3=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H,
9148         kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r,
9149         kf11=^AJ\r, kf12=^AK\r, kf13=^A`\r, kf14=^Aa\r, kf15=^Ab\r,
9150         kf16=^Ac\r, kf17=^Ad\r, kf18=^Ae\r, kf19=^Af\r, kf2=^AA\r,
9151         kf20=^Ag\r, kf21=^Ah\r, kf22=^Ai\r, kf23=^Aj\r, kf24=^Ak\r,
9152         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
9153         kf8=^AG\r, kf9=^AH\r, kprt=\EP, mc0=\EP, mc4=^T, mc5=\Ed#,
9154         nel=^_, prot=\E), rev=\EG4, ri=\Ej, rmacs=\EcD, rmam=\Ed.,
9155         rmcup=\Ec21\Ec31, rmir=\Er, rmso=\EG0, rmxon=\Ec20\Ec30,
9156         rs2=\Eu\E~4\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee)\Ew\EwG\Ew0\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\Ec@0B\EcD\024,
9157         sgr=\E(\EG%{48}%?%p1%p3%O%t%{4}%+%;%?%p2%t%{8}%+%;%?%p4%t%{2}%+%;%?%p5%t%{64}%+%;%?%p7%t%{1}%+%;%c%?%p8%t\E)%;%?%p9%t\EcE%e\EcD%;,
9158         sgr0=\E(\EG0, smacs=\EcE, smam=\Ed/, smcup=\Ec20\Ec30,
9159         smir=\Eq, smso=\EG4, smxon=\Ec21\Ec31, tsl=\EF,
9160
9161 # This is the american terminal. Here tabs work.
9162 # From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
9163 wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard),
9164         hts=\E1, tbc=\E0, use=wy99f,
9165
9166 #
9167 #       The Wyse 160 is combination of the WY-60 and the WY-99gt.
9168 #       The reset strings are slow and the pad times very depending
9169 #       on other parameters such as font loading.  I have tried
9170 #       to follow the following outline:
9171 #
9172 #               <rs1> -> set personality
9173 #               <rs2> -> set number of columns
9174 #               <rs3> -> set number of lines
9175 #               <is1> -> select the proper font
9176 #               <is2> -> do the initialization
9177 #               <is3> -> set up display memory (2 pages)
9178 #
9179 #       The display memory may be used for either text or graphics.
9180 #       When "Display Memory = Shared" the terminal will have more pages
9181 #       but garbage may be left on the screen when you switch from
9182 #       graphics to text.  If "Display Memory = Unshared" then the
9183 #       text area will be only one page long.
9184 #
9185 # (wy160: we use \E{ rather than ^^ for home (both are documented) to avoid
9186 # a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
9187 wy160|wyse160|Wyse 160,
9188         am, bw, hs, km, mc5i, mir, msgr,
9189         cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#38,
9190         acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
9191         bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<30>,
9192         cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
9193         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<5>,
9194         dclk=\E`b, dim=\EGp, dl1=\ER$<1>, dsl=\EF\r, ed=\EY$<30>,
9195         el=\ET$<5>, flash=\E`8$<100/>\E`9, fsl=^M, home=\E{, ht=^I,
9196         hts=\E1, il1=\EE$<1>, ind=\n$<1>, ip=$<2>, is1=\EcB0\EcC1,
9197         is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
9198         is3=\Ew0$<100>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
9199         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
9200         kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
9201         kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
9202         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
9203         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
9204         kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
9205         mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<1>,
9206         pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
9207         pfx=\EZ1%p1%{63}%+%c%p2%s\177,
9208         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<1>,
9209         rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew0, rmir=\Er,
9210         rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<70>,
9211         rs2=\E`\:$<100>, rs3=\EwG\Ee($<140>,
9212         sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
9213         sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
9214         smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
9215         tbc=\E0, tsl=\EF, use=adm+sgr,
9216 #
9217 wy160-w|wyse160-w|wyse 160 132-column,
9218         cols#132, lw#7, nlab#16, wsl#90,
9219         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<9>,
9220         rs2=\EeF$<150>\E`;$<150>, use=wy160,
9221 #
9222 wy160-25|wyse160-25|wyse 160 80-column 25-lines,
9223         lh@, lines#25, lw@, nlab@,
9224         pln@, rs3=\EwG\Ee)$<200>, use=wy160,
9225 wy160-25-w|wyse160-25-w|wyse 160 132-column 25-lines,
9226         lh@, lines#25, lw@, nlab@,
9227         pln@, rs3=\EwG\Ee)$<200>, use=wy160-w,
9228 #
9229 wy160-42|wyse160-42|wyse 160 80-column 42-lines,
9230         lines#42,
9231         clear=\E+$<50>, dl1=\ER$<2>, ed=\Ey$<50>, il1=\EE$<2>,
9232         ind=\n$<2>, is1=\EcB2\EcC3, nel=\r\n$<2>, ri=\Ej$<2>,
9233         rs3=\Ee*$<150>, use=wy160,
9234 wy160-42-w|wyse160-42-w|wyse 160 132-column 42-lines,
9235         cols#132, lw#7, nlab#16, wsl#90,
9236         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<8>, ip=$<3>,
9237         rs2=\EeF$<150>\E`;$<150>, use=wy160-42,
9238 #
9239 wy160-43|wyse160-43|wyse 160 80-column 43-lines,
9240         lh@, lines#43, lw@, nlab@,
9241         pln@, rs3=\Ee+$<150>, use=wy160-42,
9242 wy160-43-w|wyse160-43-w|wyse 160 132-column 43-lines,
9243         lh@, lines#43, lw@, nlab@,
9244         pln@, rs3=\Ee+$<150>, use=wy160-42-w,
9245 #
9246 wy160-vb|wyse160-vb|Wyse 160 visible bell,
9247         bel@, use=wy160,
9248 wy160-w-vb|wy160-wvb|wyse160-wvb|Wyse 160 132-column visible bell,
9249         bel@, use=wy160-w,
9250 #
9251 #       The Wyse 75 is a vt100 lookalike without advanced video.
9252 #
9253 #          The Wyse 75 can support one attribute (e.g. Dim, Inverse,
9254 #       Underline) without magic cookies.  The following description
9255 #       uses this capability, but when more than one attribute is
9256 #       put on the screen at once, all attributes will be changed
9257 #       to be the same as the last attribute given.
9258 #          The Wyse 75 can support more attributes when used with magic
9259 #       cookies.  The wy75-mc terminal description uses magic cookies
9260 #       to correctly handle multiple attributes on a screen.
9261 #
9262 wy75|wyse75|wyse 75,
9263         am, hs, mc5i, mir, msgr, xenl, xon,
9264         cols#80, lines#24, ma#1, pb#1201, wsl#78,
9265         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9266         bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[J$<30>,
9267         cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr$<2>,
9268         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
9269         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
9270         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>,
9271         dch1=\E[P$<3>, dim=\E[0t\E[2m, dl=\E[%p1%dM$<1*>,
9272         dl1=\E[M, dsl=\E[>\,\001\001\E[>-\001\001,
9273         ech=\E[%p1%dX, ed=\E[J$<30>, el=\E[K$<3>, el1=\E[1K$<3>,
9274         enacs=\E)0, flash=\E[30h\E\,\E[30l$<250>, fsl=^A,
9275         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
9276         ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
9277         ind=\n$<2>, ip=$<1>,
9278         is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
9279         is2=\E>\E(B\E)0\017, is3=\E[m, kbs=^H, kcub1=\E[D,
9280         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K,
9281         kf1=\E[?5i, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
9282         kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
9283         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[?3i,
9284         kf20=\E[34~, kf21=\E[35~, kf3=\E[2i, kf4=\E[@, kf5=\E[M,
9285         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
9286         khlp=\E[28~, khome=\E[H, kich1=\E[@, kil1=\E[L, knp=\E[6~,
9287         kpp=\E[5~, kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i, mc4=\E[4i,
9288         mc5=\E[5i, rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O,
9289         rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
9290         rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<80>, rs3=\E[?5l,
9291         sc=\E7,
9292         sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t\E[3t%;%?%p1%p2%p3%p4%p5%|%|%|%|%t\E[7m%e\E[m%;%?%p9%t\016%e\017%;,
9293         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
9294         smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
9295         tbc=\E[3g, tsl=\E[>\,\001, use=vt220+keypad,
9296 #
9297 #       This terminal description uses the non-hidden attribute mode
9298 #       (with magic cookie).
9299 #
9300 wy75-mc|wyse75-mc|wyse 75 with magic cookies,
9301         msgr@,
9302         ma@, xmc#1,
9303         blink=\E[2p, dim=\E[1p, invis=\E[4p, is3=\E[m\E[p,
9304         rev=\E[16p, rmacs=\E[0p\017, rmso=\E[0p, rmul=\E[0p,
9305         sgr=\E[%{0}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{16}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{1}%|%;%?%p7%t%{4}%|%;%dp%?%p9%t\016%e\017%;,
9306         sgr0=\E[0p\017, smacs=\E[0p\016, smso=\E[17p, smul=\E[8p,
9307         use=wy75,
9308 wy75-vb|wyse75-vb|wyse 75 with visible bell,
9309         pb@,
9310         bel@, use=wy75,
9311 wy75-w|wyse75-w|wyse 75 in 132 column mode,
9312         cols#132, wsl#130,
9313         rs2=\E[35h\E[?3h$<80>, use=wy75,
9314 wy75-wvb|wyse75-wvb|wyse 75 with visible bell 132 columns,
9315         pb@,
9316         bel@, use=wy75-w,
9317 #
9318 #       Wyse 85 emulating a vt220 7 bit mode.
9319 #               24 line screen with status line.
9320 #
9321 #       The vt220 mode permits more function keys but it wipes out
9322 #       the escape key.  I strongly recommend that <f11> be set to
9323 #       escape (esc).
9324 #       The terminal may have to be set for 8 data bits and 2 stop
9325 #       bits for the arrow keys to work.
9326 #       The Wyse 85 runs faster with XON/XOFF enabled.  Also the
9327 #       <dch> and <ich> work best when XON/XOFF is set.  <ich> and
9328 #       <dch> leave trash on the screen when used without XON/XOFF.
9329 #
9330 wy85|wyse85|wyse 85,
9331         am, hs, mc5i, mir, msgr, xenl, xon,
9332         cols#80, it#8, lines#24, wsl#80,
9333         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9334         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9335         clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
9336         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
9337         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
9338         cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
9339         dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
9340         dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
9341         ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
9342         enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
9343         fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
9344         ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
9345         ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
9346         is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
9347         is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
9348         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf10=\E[21~,
9349         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
9350         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
9351         kf19=\E[33~, kf20=\E[34~, kf6=\E[17~, kf7=\E[18~,
9352         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
9353         khome=\E[26~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
9354         kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
9355         mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
9356         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
9357         rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
9358         rs3=\E[?5l, sc=\E7,
9359         sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
9360         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
9361         smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
9362         tsl=\E[40h\E7\E[25;%i%p1%dH, use=vt220+keypad,
9363 #
9364 #       Wyse 85 with visual bell.
9365 wy85-vb|wyse85-vb|wyse 85 with visible bell,
9366         bel@, flash=\E[30h\E\,\E[30l$<300>, use=wy85,
9367 #
9368 #       Wyse 85 in 132-column mode.
9369 wy85-w|wyse85-w|wyse 85 in 132-column mode,
9370         cols#132, wsl#132,
9371         rs2=\E[35h\E[?3h$<70>, use=wy85,
9372 #
9373 #       Wyse 85 in 132-column mode with visual bell.
9374 wy85-wvb|wyse85-wvb|wyse 85 with visible bell 132-columns,
9375         bel@, use=wy85-w,
9376
9377 # From: Kevin Turner <kevint@aracnet.com>, 12 Jul 1998
9378 # This copes with an apparent firmware bug in the wy85.  He writes:
9379 # "What I did was change leave the terminal cursor keys set to Normal
9380 # (instead of application), and change \E[ to \233 for all the keys in
9381 # terminfo. At one point, I found some reference indicating that this
9382 # terminal bug (not sending \E[) was acknowledged by Wyse (so it's not just
9383 # me), but I can't find that and the server under my bookmark to "Wyse
9384 # Technical" isn't responding.  So there's the question of wether the wy85
9385 # terminfo should reflect the manufactuer's intended behaviour of the terminal
9386 # or the actual."
9387 wy85-8bit|wyse85-8bit|wyse 85 in 8-bit mode,
9388         am, hs, mc5i, mir, msgr, xenl, xon,
9389         cols#80, it#8, lines#24, wsl#80,
9390         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9391         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9392         clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
9393         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
9394         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
9395         cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
9396         dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
9397         dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
9398         ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
9399         enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
9400         fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
9401         ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
9402         ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
9403         is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
9404         is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
9405         kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\233D, kcud1=\233B,
9406         kcuf1=\233C, kcuu1=\233A, kdch1=\2333~, kent=\EOM,
9407         kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
9408         kf13=\23325~, kf14=\23326~, kf15=\23328~, kf16=\23329~,
9409         kf17=\23331~, kf18=\23332~, kf19=\23333~, kf2=\EOQ,
9410         kf20=\23334~, kf3=\EOR, kf4=\EOS, kf6=\23317~, kf7=\23318~,
9411         kf8=\23319~, kf9=\23320~, kfnd=\2331~, khlp=\23328~,
9412         khome=\23326~, kich1=\2332~, knp=\2336~, kpp=\2335~,
9413         kslt=\2334~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
9414         mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
9415         rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
9416         rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
9417         rs3=\E[?5l, sc=\E7,
9418         sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;+m%?%p9%t\016%e\017%;,
9419         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
9420         smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
9421         tsl=\E[40h\E7\E[25;%i%p1%dH,
9422 #
9423 #       Wyse 185 emulating a vt320 7 bit mode.
9424 #
9425 #       This terminal always displays 25 lines.  These lines may be used
9426 #       as 24 data lines and a terminal status line (top or bottom) or
9427 #       25 data lines.  The 48 and 50 line modes change the page size
9428 #       and not the number of lines on the screen.
9429 #
9430 #       The Compose Character key can be used as a meta key if changed
9431 #       by set-up.
9432 #
9433 wy185|wyse185|wyse 185,
9434         am, hs, km, mc5i, mir, msgr, xenl, xon,
9435         cols#80, it#8, lines#24, wsl#80,
9436         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9437         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9438         clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
9439         csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
9440         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
9441         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9442         cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<3>,
9443         dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
9444         dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>,
9445         el=\E[K, el1=\E[1K, enacs=\E)0,
9446         flash=\E[30h\E\,\E[30l$<100>, fsl=\E[1;24r\E8,
9447         home=\E[H, hpa=\E[%i%p1%d`, ht=^I, hts=\EH,
9448         ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
9449         ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
9450         is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
9451         is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
9452         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP,
9453         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
9454         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
9455         kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
9456         kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
9457         kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, kich1=\E[2~,
9458         knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3,
9459         lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
9460         ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
9461         rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
9462         rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
9463         rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
9464         sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
9465         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
9466         smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
9467         tbc=\E[3g, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
9468         use=vt220+keypad,
9469 #
9470 #       Wyse 185 with 24 data lines and top status (terminal status)
9471 wy185-24|wyse185-24|wyse 185 with 24 data lines,
9472         hs@,
9473         dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
9474         use=wy185,
9475 #
9476 #       Wyse 185 with visual bell.
9477 wy185-vb|wyse185-vb|wyse 185+flash,
9478         bel@, use=wy185,
9479 #
9480 #       Wyse 185 in 132-column mode.
9481 wy185-w|wyse185-w|wyse 185 in 132-column mode,
9482         cols#132, wsl#132,
9483         dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
9484         ip=$<7>, rs2=\E[35h\E[?3h, use=wy185,
9485 #
9486 #       Wyse 185 in 132-column mode with visual bell.
9487 wy185-wvb|wyse185-wvb|wyse 185+flash+132 cols,
9488         bel@, use=wy185-w,
9489
9490 # wy325 terminfo entries
9491 # Done by Joe H. Davis        3-9-92
9492
9493 # lines 25  columns 80
9494 #
9495 wy325|wyse325|Wyse epc,
9496         am, bw, hs, mc5i, mir,
9497         cols#80, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
9498         acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
9499         bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
9500         cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
9501         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
9502         dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
9503         flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
9504         il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
9505         is2=\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
9506         is3=\Ew0$<16>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
9507         kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
9508         kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
9509         kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
9510         kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
9511         kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq,
9512         kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
9513         mc0=\EP, mc4=^T, mc5=\Ed#,
9514         pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
9515         pfx=\EZ1%p1%{63}%+%c%p2%s\177,
9516         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
9517         rmacs=\EcD, rmam=\Ed., rmcup=\Ew0, rmir=\Er, rmln=\EA11,
9518         rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
9519         rs3=\EwG\Ee($<100>,
9520         sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
9521         sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
9522         smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, tbc=\E0,
9523         tsl=\EF, use=adm+sgr,
9524
9525 #
9526 # lines 24  columns 80  vb
9527 #
9528 wy325-vb|wyse325-vb|wyse-325 with visual bell,
9529         bel@, use=wy325,
9530
9531 #
9532 # lines 24  columns 132
9533 #
9534 wy325-w|wyse325-w|wy325w-24|wyse-325 in wide mode,
9535         cols#132, lw#7, nlab#16, wsl#97,
9536         cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
9537         rs2=\E`;$<70>, use=wy325,
9538 #
9539 # lines 25  columns 80
9540 #
9541 wy325-25|wyse325-25|wy325-80|wyse-325|wyse-325 25 lines,
9542         lh@, lines#25, lw@, nlab@,
9543         pln@, rs3=\EwG\Ee)$<100>, use=wy325,
9544 #
9545 # lines 25  columns 132
9546 #
9547 wy325-25w|wyse325-25w|wy325 132 columns,
9548         lh@, lines#25, lw@, nlab@,
9549         pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
9550 #
9551 # lines 25  columns 132  vb
9552 #
9553 wy325-w-vb|wy325-wvb|wyse325-wvb|wyse-325 wide mode reverse video,
9554         bel@, use=wy325-w,
9555
9556 #
9557 # lines 42  columns 80
9558 #
9559 wy325-42|wyse325-42|wyse-325 42 lines,
9560         lh@, lines#42, lw@, nlab@,
9561         pln@, rs3=\EwG\Ee)$<100>, use=wy325,
9562 #
9563 # lines 42  columns 132
9564 #
9565 wy325-42w|wyse325-42w|wyse-325 42 lines wide mode,
9566         lh@, lines#42, lw@, nlab@,
9567         pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
9568 #
9569 # lines 42  columns 132  vb
9570 #
9571 wy325-42w-vb|wy325-42wvb|wyse-325 42 lines wide mode visual bell,
9572         bel@, use=wy325-w,
9573 #
9574 # lines 43  columns 80
9575 #
9576 wy325-43|wyse325-43|wyse-325 43 lines,
9577         lh@, lines#43, lw@, nlab@,
9578         pln@, use=wy325,
9579 #
9580 # lines 43  columns 132
9581 #
9582 wy325-43w|wyse325-43w|wyse-325 43 lines wide mode,
9583         lh@, lines#43, lw@, nlab@,
9584         pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
9585 #
9586 # lines 43  columns 132  vb
9587 #
9588 wy325-43w-vb|wy325-43wvb|wyse-325 43 lines wide mode visual bell,
9589         bel@, use=wy325-w,
9590
9591 #       Wyse 370 -- 24 line screen with status line.
9592 #
9593 #       The terminal may have to be set for 8 data bits and 2 stop
9594 #       bits for the arrow keys to work.
9595 #
9596 #       If you change keyboards the terminal will send different
9597 #       escape sequences.
9598 #       The following definition is for the basic terminal without
9599 #       function keys.
9600 #
9601 #       <u0> -> enter Tektronix 4010/4014 mode
9602 #       <u1> -> exit  Tektronix 4010/4014 mode
9603 #       <u2> -> enter ASCII mode (from any ANSI mode)
9604 #       <u3> -> exit  ASCII mode (goto native ANSI mode)
9605 #       <u4> -> enter Tek 4207 ANSI mode (from any ANSI mode)
9606 #       <u5> -> exit  Tek 4207 mode (goto native ANSI mode)
9607 #
9608 # Bug: The <op> capability resets attributes.
9609 wy370-nk|wyse 370 without function keys,
9610         am, ccc, hs, mc5i, mir, msgr, xenl, xon,
9611         colors#64, cols#80, it#8, lines#24, ncv#48, pairs#64, wsl#80,
9612         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9613         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9614         clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
9615         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
9616         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
9617         cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
9618         cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>,
9619         dclk=\E[31h, dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
9620         dsl=\E[40l, ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>,
9621         el=\E[K$<10>, el1=\E[1K$<12>, enacs=\E)0,
9622         flash=\E[30h\E\,\E[30l$<300>, fsl=\E[1;24r\E8,
9623         home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>, hts=\EH,
9624         ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
9625         ind=\n$<2>,
9626         initc=\E[66;%p1%d;%?%p2%{250}%<%t%{0}%e%p2%{500}%<%t%{16}%e%p2%{750}%<%t%{32}%e%{48}%;%?%p3%{250}%<%t%{0}%e%p3%{500}%<%t%{4}%e%p3%{750}%<%t%{8}%e%{12}%;%?%p4%{250}%<%t%{0}%e%p4%{500}%<%t%{1}%e%p4%{750}%<%t%{2}%e%{3}%;%{1}%+%+%+%dw,
9627         invis=\E[8m, ip=$<1>, is1=\E[90;1"p\E[?5W$<6>,
9628         is2=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h,
9629         is3=\E>\017\E)0\E(B\E[63;0w\E[m, mc0=\E[0i, mc4=\E[4i,
9630         mc5=\E[5i,
9631         oc=\E[60w\E[63;0w\E[66;1;4w\E[66;2;13w\E[66;3;16w\E[66;4;49w\E[66;5;51w\E[66;6;61w\E[66;7;64w,
9632         op=\E[m, rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O,
9633         rmam=\E[?7l, rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l,
9634         rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
9635         rs1=\E[13l\E[3l\E!p\E[?4i, rs2=\E[35h\E[?3l$<8>,
9636         rs3=\E[?5l, sc=\E7, setb=\E[62;%p1%dw, setf=\E[61;%p1%dw,
9637         sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
9638         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
9639         smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
9640         tbc=\E[3g, tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH,
9641         u0=\E[?38h\E8, u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B,
9642         u4=\E[92;76"p, u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd,
9643 #
9644 #       Function key set for the ASCII (wy-50 compatible) keyboard
9645 #       This is the default 370.
9646 #
9647 wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
9648         kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
9649         kcuu1=\E[A, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
9650         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
9651         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf2=\E[?3i,
9652         kf3=\E[2i, kf4=\E[@, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
9653         kf8=\E[19~, kf9=\E[20~, khome=\E[H, kich1=\EOP, kil1=\EOP,
9654         knp=\E[U, kpp=\E[V, use=wy370-nk,
9655 #
9656 #       Function key set for the VT-320 (and wy85) compatible keyboard
9657 #
9658 wy370-105k|Wyse 370 with 105 key keyboard,
9659         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9660         kdch1=\E[3~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
9661         kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
9662         kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
9663         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
9664         khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
9665         kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
9666         use=wy370-nk, use=vt220+keypad,
9667 #
9668 #       Function key set for the PC compatible keyboard
9669 #
9670 wy370-EPC|Wyse 370 with 102 key keyboard,
9671         kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
9672         kcuu1=\E[A, kend=\E[1~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
9673         kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
9674         kf5=\E[M, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
9675         khome=\E[H, kich1=\E[2~, knp=\E[U, kpp=\E[V, use=wy370-nk,
9676 #
9677 #       Wyse 370 with visual bell.
9678 wy370-vb|Wyse 370 with visible bell,
9679         bel@, use=wy370,
9680 #
9681 #       Wyse 370 in 132-column mode.
9682 wy370-w|Wyse 370 in 132-column mode,
9683         cols#132, wsl#132,
9684         rs2=\E[35h\E[?3h$<70>, use=wy370,
9685 #
9686 #       Wyse 370 in 132-column mode with visual bell.
9687 wy370-wvb|Wyse 370 with visible bell 132-columns,
9688         flash=\E[30h\E\,\E[30l$<300>, use=wy370-w,
9689 wy370-rv|Wyse 370 reverse video,
9690         rs3=\E[32h\E[?5h, use=wy370,
9691 #
9692 #       Wyse 99gt Tektronix 4010/4014 emulator,
9693 #
9694 wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
9695         am, os,
9696         cols#74, lines#35,
9697         bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
9698         cup=\035%{3040}%{89}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037,
9699         cuu1=^K, ff=^L,
9700         hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
9701         home=^]7`x @\037,
9702         hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
9703         is2=\E8, nel=^M^J, u0=\E~>\E8, u1=\E[42h,
9704 #
9705 #       Wyse 160 Tektronix 4010/4014 emulator,
9706 #
9707 wy160-tek|Wyse 160 Tektronix 4010/4014 emulator,
9708         cup=\035%{3103}%{91}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037,
9709         home=^]8`g @\037, use=wy99gt-tek,
9710 #
9711 #       Wyse 370 Tektronix 4010/4014 emulator,
9712 #
9713 wy370-tek|Wyse 370 Tektronix 4010/4014 emulator,
9714         am, os,
9715         cols#80, lines#36,
9716         bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
9717         cup=\035%{775}%{108}%p1%*%{5}%/%-%Py%p2%{64}%*%{4}%+%{5}%/%Px%gy%{32}%/%{31}%&%{32}%+%c%gy%{31}%&%{96}%+%c%gx%{32}%/%{31}%&%{32}%+%c%gx%{31}%&%{64}%+%c\037,
9718         cuu1=^K, ff=^L,
9719         hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
9720         home=^]8g @\037,
9721         hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
9722         is2=\E8, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^I, kcuu1=^K,
9723         nel=^M^J, u0=\E[?38h\E8, u1=\E[?38l\E)0,
9724
9725 # Vendor-supplied Wyse entries end here.
9726
9727 #
9728 #TITLE:  TERMINFO ENTRY WY520
9729 #DATE:   8/5/93
9730 # The WY520 terminfo is based on the WY285 entry published on the WYSE
9731 # BBS with the addition of more function keys and special keys.
9732 #
9733 #               rs1 -> set personality
9734 #               rs2 -> set number of columns
9735 #               rs3 -> set number of lines
9736 #               is1 -> select the proper font
9737 #               is2 -> do the initialization
9738 #               is3 -> If this string is empty then rs3 gets sent.
9739 #
9740 #       Wyse 520 emulating a vt420 7 bit mode with default ANSI keyboard
9741 #       - The BS key is programmed to generate BS in smcup since
9742 #         is2 doesn't seem to work.
9743 #       - Remove and shift/Remove: delete a character
9744 #       - Insert : enter insert mode
9745 #       - Find   : delete to end of file
9746 #       - Select : clear a line
9747 #       - F11, F12, F13: send default sequences (not ESC, BS, LF)
9748 #       - F14 : Home key
9749 #       - Bottom status line (host writable line) is used.
9750 #       - smkx,rmkx are removed because this would put the numeric
9751 #         keypad in Dec application mode which doesn't seem to work
9752 #         with SCO applications.
9753 #
9754 wy520|wyse520|wyse 520,
9755         am, hs, km, mc5i, mir, xenl, xon,
9756         cols#80, it#8, lines#24, wsl#80,
9757         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9758         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
9759         clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
9760         csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
9761         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
9762         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9763         cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<30>,
9764         dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
9765         ech=\E[%p1%dX, ed=\E[J$<40>, el=\E[K, el1=\E[1K,
9766         enacs=\E)0, fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%d`, ht=^I,
9767         hts=\EH, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
9768         il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
9769         is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
9770         is3=\E>\E(B\E)0\017\E[m, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
9771         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, ked=\E[1~,
9772         kel=\E[4~, kent=\EOM, kf10=\E[21~, kf11=\E[23~,
9773         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
9774         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
9775         kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
9776         kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, khome=\E[26~,
9777         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1,
9778         lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
9779         rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
9780         rmcup=\E[ R, rmir=\E[4l, rmso=\E[m, rmul=\E[24m,
9781         rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
9782         rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
9783         sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
9784         sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
9785         smcup=\E[ Q\E[?67;8h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
9786         tbc=\E[3g, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
9787         vpa=\E[%i%p1%dd, use=vt220+keypad,
9788 #
9789 #       Wyse 520 with 24 data lines and status (terminal status)
9790 wy520-24|wyse520-24|wyse 520 with 24 data lines,
9791         hs@,
9792         dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
9793         use=wy520,
9794 #
9795 #       Wyse 520 with visual bell.
9796 wy520-vb|wyse520-vb|wyse 520 with visible bell,
9797         flash=\E[30h\E\,\E[30l$<100>, use=wy520,
9798 #
9799 #       Wyse 520 in 132-column mode.
9800 wy520-w|wyse520-w|wyse 520 in 132-column mode,
9801         cols#132, wsl#132,
9802         dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
9803         ip=$<7>, rs2=\E[35h\E[?3h, use=wy520,
9804 #
9805 #       Wyse 520 in 132-column mode with visual bell.
9806 wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns,
9807         flash=\E[30h\E\,\E[30l$<100>, use=wy520-w,
9808 #
9809 #
9810 #       Wyse 520 emulating a vt420 7 bit mode.
9811 #       The DEL key is programmed to generate BS in is2.
9812 #       With EPC keyboard.
9813 #       - 'End' key will clear till end of line on EPC keyboard
9814 #       - Shift/End : ignored.
9815 #       - Insert : enter insert mode.
9816 #       - Delete : delete a character (have to change interrupt character
9817 #                  to CTRL-C: stty intr '^c') for it to work since the
9818 #                  Delete key sends 7FH.
9819 wy520-epc|wyse520-epc|wyse 520 with EPC keyboard,
9820         kdch1=\177, kel=\E[4~, kend=\E[4~, kf0=\E[21~, kf1=\E[11~,
9821         kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, khome=\E[H,
9822         use=wy520,
9823 #
9824 #       Wyse 520 with 24 data lines and status (terminal status)
9825 #       with EPC keyboard.
9826 wy520-epc-24|wyse520-pc-24|wyse 520 with 24 data lines and EPC keyboard,
9827         hs@,
9828         dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
9829         use=wy520-epc,
9830 #
9831 #       Wyse 520 with visual bell.
9832 wy520-epc-vb|wyse520-pc-vb|wyse 520 with visible bell and EPC keyboard,
9833         flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc,
9834 #
9835 #       Wyse 520 in 132-column mode.
9836 wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode with EPC keyboard,
9837         cols#132, wsl#132,
9838         dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
9839         ip=$<7>, rs2=\E[35h\E[?3h, use=wy520-epc,
9840 #
9841 #       Wyse 520 in 132-column mode with visual bell.
9842 wy520-epc-wvb|wyse520-p-wvb|wyse 520 with visible bell 132-columns and EPC keyboard,
9843         flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc-w,
9844 #
9845 #       Wyse 520 in 80-column, 36 lines
9846 wy520-36|wyse520-36|wyse 520 with 36 data lines,
9847         hs@,
9848         lines#36,
9849         dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
9850         use=wy520,
9851 #
9852 #       Wyse 520 in 80-column, 48 lines
9853 wy520-48|wyse520-48|wyse 520 with 48 data lines,
9854         hs@,
9855         lines#48,
9856         dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
9857         use=wy520,
9858 #
9859 #       Wyse 520 in 132-column, 36 lines
9860 wy520-36w|wyse520-36w|wyse 520 with 132 columns and 36 data lines,
9861         cols#132, wsl#132,
9862         rs2=\E[?3h,
9863         rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
9864         use=wy520-36,
9865 #
9866 #       Wyse 520 in 132-column, 48 lines
9867 wy520-48w|wyse520-48w|wyse 520 with 48 data lines,
9868         cols#132, wsl#132,
9869         rs2=\E[?3h,
9870         rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
9871         use=wy520-48,
9872 #
9873 #
9874 #       Wyse 520 in 80-column, 36 lines with EPC keyboard
9875 wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines and EPC keyboard,
9876         hs@,
9877         lines#36,
9878         dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
9879         use=wy520-epc,
9880 #
9881 #       Wyse 520 in 80-column, 48 lines with EPC keyboard
9882 wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines and EPC keyboard,
9883         hs@,
9884         lines#48,
9885         dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
9886         use=wy520-epc,
9887 #
9888 #       Wyse 520 in 132-column, 36 lines with EPC keyboard
9889 wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines and EPC keyboard,
9890         cols#132, wsl#132,
9891         rs2=\E[?3h,
9892         rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
9893         use=wy520-36pc,
9894 #
9895 #       Wyse 520 in 132-column, 48 lines with EPC keyboard
9896 wy520-48wpc|wyse520-48wpc|wyse 520 with 48 data lines and EPC keyboard,
9897         cols#132, wsl#132,
9898         rs2=\E[?3h,
9899         rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
9900         use=wy520-48pc,
9901
9902 # From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
9903 # (wyse-vp: removed <if=/usr/share/tabset/wyse-adds>, there's no such
9904 # file and we don't know what <hts> is -- esr)
9905 wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on,
9906         OTbs, am,
9907         cols#80, it#8, lines#24,
9908         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
9909         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EW,
9910         dl1=\El, ed=\Ek, el=\EK, home=^A, ht=^I, il1=\EM, ind=^J,
9911         is2=\E`\:\E`9\017\Er, kbs=^H, kcub1=^U, kcud1=^J, kcuf1=^F,
9912         kcuu1=^Z, khome=^A, ll=^A^Z, nel=^M^J, rmir=\Er, rmso=^O,
9913         rmul=^O, rs1=\E`\:\E`9\017\Er, sgr0=^O, smir=\Eq, smso=^N,
9914         smul=^N,
9915
9916 wy75ap|wyse75ap|wy-75ap|wyse-75ap|Wyse WY-75 Applications and Cursor keypad,
9917         is2=\E[1;24r\E[?10;3l\E[?1;25h\E[4l\E[m\E(B\E=,
9918         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
9919         khome=\EOH, rmkx=\E[?1l\E>$<10/>, smkx=\E[?1h\E=$<10/>,
9920         use=wy75,
9921
9922 # From: Eric Freudenthal <freudent@eric.ultra.nyu.edu>
9923 wy100q|Wyse 100 for Quotron,
9924         OTbs,
9925         cols#80, lines#24, xmc#1,
9926         cbt=\EI, clear=^Z, cub1=^H, cud1=^J, cuf1=^L,
9927         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
9928         dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, invis@,
9929         is2=\E`\:\0\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=^J,
9930         kcuf1=^L, kcuu1=^K, ri=\Ej, rmir=\Er, smir=\Eq, use=adm+sgr,
9931
9932 #### Kermit terminal emulations
9933 #
9934 # Obsolete Kermit versions may be listed in the section describing obsolete
9935 # non-ANSI terminal emulators later in the file.
9936 #
9937
9938 # KERMIT standard all versions.
9939 # Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
9940 # (kermit: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
9941 # From: greg small <gts@populi.berkeley.edu> 9-25-84
9942 kermit|standard kermit,
9943         OTbs,
9944         cols#80, lines#24,
9945         clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
9946         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
9947         el=\EK, home=\EH, is2=K0 Standard Kermit  9-25-84\n,
9948         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
9949 kermit-am|standard kermit plus auto-margin,
9950         am,
9951         is2=K1 Standard Kermit plus Automatic Margins\n,
9952         use=kermit,
9953 # IBMPC Kermit 1.2.
9954 # Bugs: <ed>, <el>: do not work except at beginning of line!  <clear> does
9955 # not work, but fake with :cl=\EH\EJ (since :cd=\EJ: works at beginning of
9956 # line).
9957 # From: greg small <gts@populi.berkeley.edu> 8-30-84
9958 pckermit|pckermit12|UCB IBMPC Kermit 1.2,
9959         am,
9960         lines#25,
9961         clear=\EH\EJ, ed@, el@,
9962         is2=K2 UCB IBMPC Kermit 1.2  8-30-84\n, use=kermit,
9963 # IBMPC Kermit 1.20
9964 # Cannot use line 25, now acts funny like ansi special scrolling region.
9965 # Initialization must escape from that region by cursor position to line 24.
9966 # Cannot use character insert because 1.20 goes crazy if insert at col 80.
9967 # Does not use :am: because autowrap is lost when kermit dropped and restarted.
9968 # From: greg small <gts@populi.berkeley.edu> 12-19-84
9969 pckermit120|UCB IBMPC Kermit 1.20,
9970         it#8, lines#24,
9971         cud1=\EB, cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I,
9972         il1=\EL,
9973         is2=\EO\Eq\EJ\EY7 K3 UCB IBMPC Kermit 1.20  12-19-84\n,
9974         rmir@, rmso=\Eq, smir@, smso=\Ep, use=kermit,
9975 # MS-DOS Kermit 2.27 for the IBMPC
9976 # Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
9977 # Cannot use line 25, now acts funny like ansi special scrolling region.
9978 # Initialization must escape from that region by cursor position to line 24.
9979 # Does not use am: because autowrap is lost when kermit dropped and restarted.
9980 # Reverse video for standout like H19.
9981 # (msk227: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
9982 # From: greg small <gts@populi.berkeley.edu> 3-17-85
9983 msk227|mskermit227|MS-DOS Kermit 2.27 for the IBMPC,
9984         OTbs, am@,
9985         cols#80, it#8, lines#24,
9986         clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
9987         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
9988         cvvis=\EO\Eq\EG\EwK4, dch1=\EN, dl1=\EM, ed=\EJ, el=\EK,
9989         home=\EH, ht=^I, il1=\EL,
9990         is2=\EO\Eq\EG\Ew\EJ\EY7 K4 MS Kermit 2.27 for the IBMPC 3-17-85\n,
9991         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rc=\Ek,
9992         rmir=\EO, rmso=\Eq, sc=\Ej, smir=\E@, smso=\Ep,
9993 # MS-DOS Kermit 2.27 with automatic margins
9994 # From: greg small <gts@populi.berkeley.edu> 3-17-85
9995 msk227am|mskermit227am|UCB MS-DOS Kermit 2.27 with automatic margins,
9996         am,
9997         cvvis=\EO\Eq\EG\EvK5,
9998         is2=\EO\Eq\EG\Ev\EJ\EY7 K5 MS Kermit 2.27 +automatic margins 3-17-85\n,
9999         use=msk227,
10000 # MS-DOS Kermit 2.27 UCB 227.14 for the IBM PC
10001 # Automatic margins now default.  Use ansi <sgr> for highlights.
10002 # Define function keys.
10003 # (msk22714: removed obsolete ":kn#10:" -- esr)
10004 # From: greg small <gts@populi.berkeley.edu> 3-17-85
10005 msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC,
10006         am,
10007         bold=\E[1m, cvvis=\EO\Eq\EG\EvK6,
10008         is2=\EO\Eq\EG\Ev\EJ\EY7 K6 MS Kermit 2.27 UCB 227.14 IBM PC 3-17-85\n,
10009         kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6,
10010         kf7=\E7, kf8=\E8, kf9=\E9, rev=\E[7m, rmso=\E[m, rmul=\E[m,
10011         sgr0=\E[m, smso=\E[1m, smul=\E[4m, use=mskermit227,
10012 # This was designed for a VT320 emulator, but it is probably a good start
10013 # at support for the VT320 itself.
10014 # Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
10015 # (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
10016 vt320-k3|MS-Kermit 3.00's vt320 emulation,
10017         am, eslok, hs, km, mir, msgr, xenl,
10018         cols#80, it#8, lines#49, pb#9600, vt#3,
10019         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10020         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
10021         clear=\E[H\E[J, cmdch=\E, cnorm=\E[?25h, cr=^M,
10022         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10023         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10024         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10025         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
10026         dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
10027         flash=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l,
10028         fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
10029         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
10030         is2=\E>\E F\E[?1l\E[?7h\E[r\E[2$~, kbs=^H, kcub1=\EOD,
10031         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~, kf0=\E[21~,
10032         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
10033         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~,
10034         kpp=\E[5~, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, nel=^M^J, rc=\E8,
10035         rev=\E[7m, ri=\EM, rin=\E[%p1%dL, rmacs=\E(B, rmam=\E[?7l,
10036         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
10037         rs1=\E(B\E)B\E>\E F\E[4;20l\E[12h\E[?1;5;6;38;42l\E[?7;25h\E[4i\E[?4i\E[m\E[r\E[2$~,
10038         sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
10039         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
10040         tsl=\E[1$}\r\E[K, vpa=\E[%i%p1%dd,
10041 # From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
10042 # ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
10043 # (I removed a bogus boolean :mo: and added <msgr>, <smam>, <rmam> -- esr)
10044 vt320-k311|dec vt320 series as defined by kermit 3.11,
10045         am, eslok, hs, mir, msgr, xenl, xon,
10046         cols#80, it#8, lines#24, vt#3,
10047         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10048         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
10049         clear=\E[;H\E[2J, cnorm=\E[?25h, cr=^M,
10050         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10051         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10052         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10053         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
10054         dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
10055         flash=\E[?5h\E[?5l, fsl=\E[$}, home=\E[H, ht=^I, hts=\EH,
10056         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L$<3/>, ind=\ED,
10057         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
10058         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
10059         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
10060         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
10061         lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
10062         rf=/usr/share/tabset/vt100, ri=\EM, rmacs=^O,
10063         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
10064         rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
10065         smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
10066         smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
10067
10068 ######## NON-ANSI TERMINAL EMULATIONS
10069 #
10070
10071 #### Avatar
10072 #
10073 # These entries attempt to describe Avatar, a terminal emulation used with
10074 # MS-DOS bulletin-board systems.  It was designed to give ANSI-like
10075 # capabilities, but with cheaper (shorter) control sequences.  Messy design,
10076 # excessively dependent on PC idiosyncracies, but apparently rather popular
10077 # in the BBS world.
10078 #
10079 # No color support.  Avatar doesn't fit either of the Tektronix or HP color
10080 # models that terminfo knows about.  An Avatar color attribute is the
10081 # low 7 bits of the IBM-PC display-memory attribute.  Bletch.
10082 #
10083 # I wrote these entries while looking at the Avatar spec.  I don't have
10084 # the facilities to test them.  Let me know if they work, or don't.
10085 #
10086 # Avatar escapes not used by these entries (because maybe you're smarter
10087 # and more motivated than I am and can figure out how to wrap terminfo
10088 # around some of them, and because they are weird enough to be funny):
10089 #                               level 0:
10090 # ^L            -- clear window/reset current attribute to default
10091 # ^V^A%p1%c     -- set current color attribute, parameter decodes as follows:
10092 #
10093 #      bit:         6   5   4   3   2   1   0
10094 #                   |       |   |   |       |
10095 #                   +---+---+   |   +---+---+
10096 #                       |       |       |
10097 #                       |       |  foreground color
10098 #                       |  foreground intensity
10099 #                  background color
10100 #                               level 0+:
10101 # ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c -- scroll (p2,p3) to (p4,p5) up by p1 lines
10102 # ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c -- scroll (p2,p3) to (p4,p5) down by p1 lines
10103 # ^V^L%p1%c%p2%c%p3%c           -- clear p2 lines and p3 cols w/attr %p1
10104 # ^V^M%p1%c%p2%c%p3%c%p4%c      -- fill p3 lines & p4 cols w/char p2+attr %p1
10105 # (^V^L and ^V^M set the current attribute as a side-effect.)
10106 # ^V ^Y <a> [...] <c>   -- repeat pattern. <a> specifies the number of bytes
10107 #                          in the pattern, <c> the number of times the pattern
10108 #                          should be repeated. If either value is 0, no-op.
10109 #                          The pattern can contain Avatar console codes,
10110 #                          including other ^V ^Y patterns.
10111 #                               level 1:
10112 # ^V^O          -- clockwise mode on; turn print direction right each time you
10113 #                  hit a window edge (yes, really).  Turned off by CR
10114 # ^V^P          -- no-op
10115 # ^V^Q%c        -- query the driver
10116 # ^V^R          -- driver reset
10117 # ^V^S          -- Sound tone (PC-specific)
10118 # ^V^T                  -- change highlight at current cursor poition to %c
10119 # ^V^U%p1%c%p2%c        -- highlight window <a> with attribute <b>
10120 # ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
10121 #                       -- define window
10122 #
10123 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
10124 # (The <blink>/<bold>/<rev>/<smacs>/<smul>/<smso> capabilities exist only to
10125 # tell ncurses that the corresponding highlights exist; it should use <sgr>,
10126 # which is the only method that will actually work for multiple highlights.)
10127 #
10128 # Update by TD - 2004: half of this was inconsistent.  Found documentation
10129 # and repaired most of the damage.  sgr0 is probably incorrect, but the
10130 # available documentation gives no clues for a workable string.
10131 avatar0|avatar terminal emulator level 0,
10132         am, bce, msgr,
10133         cols#80, it#8, lines#25,
10134         blink=^V^B, bold=^V^A^P, cr=^M, cub1=^V^E, cud1=^V^D,
10135         cuf1=^V^F, cup=\026\010%p1%c%p2%c, cuu1=^V^C, el=^V^G,
10136         ind=^J, invis=^V^A\0, rep=\031%p1%c%p2%c, rev=^V^Ap,
10137         rmacs@, rs2=^L,
10138         sgr=%?%p1%p2%|%p3%|%p6%|%p7%|%t\026\001%?%p7%t%{128}%e%{0}%?%p1%t%{112}%|%;%?%p2%t%{1}%|%;%?%p3%t%{112}%|%;%?%p6%t%{16}%|%;%;%c%;%?%p4%t\026\002%;,
10139         sgr0=^V^A^G, smacs@, smso=^V^Ap, smul=^V^A^A,
10140         use=klone+acs,
10141 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
10142 avatar0+|avatar terminal emulator level 0+,
10143         dch1=^V^N, rmir=\026\n\0\0\0\0, smir=^V^I, use=avatar0,
10144 # From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
10145 avatar|avatar1|avatar terminal emulator level 1,
10146         civis=^V'^B, cnorm=^V'^A, cvvis=^V^C, dl1=^V-, il1=^V+,
10147         rmam=^V", rmir=^V^P, smam=^V$, use=avatar0+,
10148
10149 #### RBcomm
10150 #
10151 # RBComm is a lean and mean terminal emulator written by the Interrupt List
10152 # maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
10153 # '90s), especially in the BBS world, and still has some loyal users due to
10154 # its very small memory footprint and to a cute macro language.
10155 rbcomm|IBM PC with RBcomm and EMACS keybindings,
10156         am, bw, mir, msgr, xenl,
10157         cols#80, it#8, lines#25,
10158         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
10159         clear=^L, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
10160         cub1=^H, cud1=^C, cuf1=^B,
10161         cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^, dch1=^W,
10162         dl=\E[%p1%dM, dl1=^Z, ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I,
10163         il=\E[%p1%dL, il1=^K, ind=\ED, invis=\E[8m,
10164         is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H,
10165         kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=^M\ED,
10166         rc=\E8, rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=,
10167         rmir=^], rmkx=\E>, rmso=^U, rmul=^U,
10168         rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sc=\E7, sgr0=\E[m,
10169         smcup=, smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T,
10170 rbcomm-nam|IBM PC with RBcomm without autowrap,
10171         am@,
10172         bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
10173         is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kbs=^H,
10174         kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
10175 rbcomm-w|IBM PC with RBcomm in 132 column mode,
10176         cols#132,
10177         bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
10178         is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kbs=^H,
10179         kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
10180
10181 ######## LCD DISPLAYS
10182 #
10183
10184 #### Matrix Orbital
10185 # from: Eric Z. Ayers  (eric@ale.org)
10186 #
10187 # Matrix Orbital 20x4 LCD display
10188 # Command Character is 0xFE (decimal 254, octal 376)
10189 #
10190 # On this device, cursor addressability isn't possible.  The LCD expects:
10191 #      0xfe G <col> <row>
10192 #      for cup: %p1 == row and %p2 is column
10193 #
10194 # This line:
10195 #       cup=\376G%p2%c%p1%c
10196 # LOOKS like it will work, but sometimes only one of the two numbers is sent.
10197 # See the terminfo (5) manpage commented regarding 'Terminals which use "%c"'.
10198 #
10199 # Alas, there is no cursor upline capability on this display.
10200 #
10201 # These entries add some 'sanity stuff' to the clear function.  That is, it
10202 # does a 'clear' and also turns OFF auto scroll, turns ON Auto Line Wrapping,
10203 # and turns off the cursor blinking and stuff like that.
10204 #
10205 # NOTE: calling 'beep' turns on the backlight (bell)
10206 # NOTE: calling 'flash' turns it on and back off (visual bell)
10207 #
10208 MtxOrb|Generic Matrix Orbital LCD display,
10209         bel=\376B^A, clear=\376X\376C\376R\376K\376T,
10210         cnorm=\376K\376T, cub1=\376L, cuf1=\376M,
10211         flash=\376B\001$<200>\376F, home=\376H,
10212 MtxOrb204|20x4 Matrix Orbital LCD display,
10213         cols#20, lines#4, use=MtxOrb,
10214 MtxOrb162|16x2 Matrix Orbital LCD display,
10215         cols#16, lines#2, use=MtxOrb,
10216 # The end
10217
10218 ######## OLDER TERMINAL TYPES
10219 #
10220 # This section is devoted to older commercial terminal brands that are now
10221 # discontinued, but known to be still in use or represented by emulations.
10222 #
10223
10224 #### AT&T (att, tty)
10225 #
10226 # This section also includes Teletype-branded VDTs.
10227 #
10228 # The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
10229 # Boundless Technologies); for details, see the header comment on the ADDS
10230 # section.
10231 #
10232 # These are AT&T's official terminfo entries.  All-caps aliases have been
10233 # removed.
10234 #
10235 att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode,
10236         am, eo, mir, msgr, xon,
10237         cols#80, it#8, lines#24,
10238         bel=^G, clear=\E[H\E[J, cr=^M, cub=\E[%p1%dD, cub1=^H,
10239         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10240         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10241         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
10242         el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
10243         il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcbt=\E[Z, kclr=\E[J,
10244         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
10245         kdl1=\E[M, kf1=\E[1r, kf10=\E[10r, kf11=\E[11r,
10246         kf12=\E[12r, kf13=\E[13r, kf14=\E[14r, kf15=\E[15r,
10247         kf16=\E[16r, kf2=\E[2r, kf3=\E[3r, kf4=\E[4r, kf5=\E[5r,
10248         kf6=\E[6r, kf7=\E[7r, kf8=\E[8r, kf9=\E[9r, khome=\E[H,
10249         kich1=\E[@, kil1=\E[L, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
10250         rev=\E[7m, rmir=\E[4l, rmso=\E[m, sgr0=\E[m, smir=\E[4h,
10251         smso=\E[7m,
10252 att2350|AT&T 2350 Video Information Terminal 80 column mode,
10253         mc0@, mc4@, mc5@, use=att2300,
10254
10255 # Must setup RETURN KEY - CR, REC'VD LF - INDEX.
10256 # Seems upward compatible with vt100, plus ins/del line/char.
10257 # On sgr, the protection parameter is ignored.
10258 # No check is made to make sure that only 3 parameters are output.
10259 #       standout= reverse + half-intensity = 3 | 5.
10260 #       bold= reverse + underline = 2 | 3.
10261 # note that half-bright blinking doesn't look different from normal blinking.
10262 # NOTE:you must program the function keys first, label second!
10263 # (att4410: a BSD entry has been seen with the following capabilities:
10264 # <is2=\E[?6l>, <kf1=\EOc>, <kf2=\EOd>, <kf3=\EOe>, <kf4=\EOg>,
10265 # <kf6=\EOh>, <kf7=\EOi>, <kf8=\EOj>, -- esr)
10266 att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
10267         am, hs, mir, msgr, xon,
10268         cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
10269         acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10270         bel=^G, blink=\E[5m, bold=\E[2;7m, clear=\E[H\E[J, cr=^M,
10271         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
10272         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dim=\E[2m,
10273         dl1=\E[M, ed=\E[J, el=\E[K, fsl=\E8, home=\E[H, ht=^I,
10274         ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, is1=\E[?3l\E)0,
10275         is3=\E[1;03q   f1           \EOP\E[2;03q   f2           \EOQ\E[3;03q   f3           \EOR\E[4;03q   f4           \EOS\E[5;03q   f5           \EOT\E[6;03q   f6           \EOU\E[7;03q   f7           \EOV\E[8;03q   f8           \EOW,
10276         kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
10277         kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
10278         kf6=\EOU, kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H,
10279         ll=\E[24H, nel=^M^J,
10280         pfx=\E[%p1%1d;%p2%l%2.2dq   f%p1%1d           %p2%s,
10281         pln=\E[%p1%d;00q%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
10282         rmacs=^O, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
10283         sc=\E7,
10284         sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10285         sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
10286         tsl=\E7\E[25;%p1%{1}%+%dH,
10287
10288 att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1,
10289         cols#132, wsl#132,
10290         is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att5410v1,
10291
10292 att4410|att5410|tty5410|AT&T 4410/5410 80 columns - version 2,
10293         OTbs,
10294         pfx=\E[%p1%d;%p2%l%02dq   f%p1%d           %p2%s,
10295         use=att5410v1,
10296
10297 att5410-w|att4410-w|4410-w|tty5410-w|5410-w|AT&T 4410/5410 in 132 column mode,
10298         cols#132, wsl#132,
10299         is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att4410,
10300
10301 # 5410 in terms of a vt100
10302 # (v5410: added <rmam>/<smam> based on init string -- esr)
10303 v5410|att5410 in terms of a vt100,
10304         am, mir, msgr, xon,
10305         cols#80, it#8, lines#24, vt#3,
10306         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10307         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
10308         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
10309         cub1=^H, cud1=^J, cuf1=\E[C$<2>,
10310         cup=\E[%i%p1%d;%p2%dH$<5>, cuu1=\E[A$<2>, dch1=\E[P,
10311         dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
10312         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ich1=\E[@,
10313         il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
10314         kcuu1=\EOA, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O,
10315         rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
10316         rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
10317         sc=\E7,
10318         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
10319         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
10320         smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
10321         use=vt100+fnkeys,
10322
10323 #
10324 # Teletype Model 5420 -- A souped up 5410, with multiple windows,
10325 # even! the 5420 has three modes: scroll, window or page mode
10326 # this terminfo should work in scroll or window mode, but doesn't
10327 # take advantage of any of the differences between them.
10328 #
10329 # Has memory below (2 lines!)
10330 # 3 pages of memory (plus some spare)
10331 # The 5410 sequences for <cup>, <cvvis>, <dch>, <dl>, <ech>, <flash>, <home>,
10332 # <hpa>, <hts> would work for these, but these work in both scroll and window
10333 # mode... Unset insert character so insert mode works
10334 # <is1> sets 80 column mode,
10335 # <is2> escape sequence:
10336 # 1) turn off all fonts
10337 # 2) function keys off, keyboard lock off, control display off,
10338 #    insert mode off, erasure mode off,
10339 # 3) full duplex, monitor mode off, send graphics off, nl on lf off
10340 # 4) reset origin mode
10341 # 5) set line wraparound
10342 # 6) exit erasure mode, positional attribute mode, and erasure extent mode
10343 # 7) clear margins
10344 # 8) program ENTER to transmit ^J,
10345 # We use \212 to program the ^J because a bare ^J will get translated by
10346 # UNIX into a CR/LF. The enter key is needed for AT&T uOMS.
10347 #     1      2            3              4     5     6    7  8
10348 # <is3> set screen color to black,
10349 # No representation in terminfo for the delete word key: kdw1=\Ed
10350 # Key capabilities assume the power-up send sequence...
10351 # This <rmcup> is not strictly necessary, but it helps maximize
10352 # memory usefulness: <rmcup=\Ez>,
10353 # Alternate sgr0:       <sgr0=\E[m\EW^O>,
10354 # Alternate sgr:        <sgr=\E[%?%p1%t2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t^N%e^O%;>,
10355 # smkx programs the SYS PF keys to send a set sequence.
10356 # It also sets up labels f1, f2, ..., f8, and sends edit keys.
10357 # This string causes them to send the strings <kf1>-<kf8>
10358 # when pressed in SYS PF mode.
10359 # (att4415: I added <rmam>/<smam> based on the init string -- esr)
10360 att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
10361         OTbs, db, mir, xon,
10362         lh#2, lm#78, lw#8, nlab#8, wsl#55,
10363         cbt=\E[Z, clear=\E[x\E[J, cnorm=\E[11;0j, cub=\E[%p1%dD,
10364         cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dx,
10365         cuu=\E[%p1%dA, cvvis=\E[11;1j, dch=\E[%p1%dP,
10366         dl=\E[%p1%dM, ech=\E[%p1%ds\E[%p1%dD,
10367         flash=\E[?5h$<200>\E[?5l, home=\E[x,
10368         hpa=\E[%p1%{1}%+%dG, hts=\EH, ich=\E[%p1%d@, ich1@,
10369         il=\E[%p1%dL, indn=\E[%p1%dE, is1=\E[?3l$<100>,
10370         is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h\E[4i\Ex\E[21;1j\212,
10371         is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
10372         kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc, kf2=\EOd,
10373         kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
10374         kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
10375         kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
10376         lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?2i, mc4=\E[?9i,
10377         mc5=\E[?4i, mrcup=\E[%i%p1%d;%p2%dt,
10378         pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s,
10379         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV,
10380         rin=\E[%p1%dF, rmam=\E[?7l, rmir=\E[4l,
10381         rmkx=\E[19;0j\E[21;1j\212, rmln=\E|,
10382         sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
10383         sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h,
10384         smkx=\E[19;1j\E[21;4j\Eent, smln=\E~, tbc=\E[3g,
10385         tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
10386         use=att4410,
10387
10388 att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols,
10389         cols#132, lm#54, wsl#97,
10390         is1=\E[?3h$<100>, use=att4415,
10391
10392 att4415-rv|tty5420-rv|att5420-rv|AT&T 4415/5420 80 cols/rv,
10393         flash=\E[?5l$<200>\E[?5h, is3=\E[?5h, use=att4415,
10394
10395 att4415-w-rv|tty5420-w-rv|att5420-w-rv|AT&T 4415/5420 132 cols/rv,
10396         cols#132, lm#54, wsl#97,
10397         flash=\E[?5l$<200>\E[?5h, is1=\E[?3h$<100>, is3=\E[?5h,
10398         use=att4415,
10399
10400 # Note that this mode permits programming USER PF KEYS and labels
10401 # However, when you program user pf labels you have to reselect
10402 # user pf keys to make them appear!
10403 att4415+nl|tty5420+nl|att5420+nl|generic AT&T 4415/5420 changes for not changing labels,
10404         kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
10405         pfx=\E[%p1%d;%p2%l%02d;0;1q   F%p1%d           %p2%s,
10406         pln=\E[%p1%d;0;0;1q%p2%:-16.16s,
10407
10408 att4415-nl|tty5420-nl|att5420-nl|AT&T 4415/5420 without changing labels,
10409         kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
10410         use=att4415,
10411
10412 att4415-rv-nl|tty5420-rv-nl|att5420-rv-nl|AT&T 4415/5420 reverse video without changing labels,
10413         kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
10414         use=att4415-rv,
10415
10416 att4415-w-nl|tty5420-w-nl|att5420-w-nl|AT&T 4415/5420 132 cols without changing labels,
10417         kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
10418         use=att4415-w,
10419
10420 att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse without changing labels,
10421         kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
10422         use=att4415-w-rv,
10423
10424 att5420_2|AT&T 5420 model 2 80 cols,
10425         am, db, hs, mir, msgr, xon,
10426         cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
10427         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10428         blink=\E[5m, cbt=\E[1Z, clear=\EH\EJ, cnorm=\E[11;0j,
10429         cr=\EG, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10430         cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
10431         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[1A,
10432         cvvis=\E[11;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
10433         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[0J,
10434         el=\E[0K, el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
10435         home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH,
10436         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
10437         indn=\E[%p1%dE, invis=\E[8m,
10438         is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;0j\E[6;0j\E[7;0j\E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j\E[29;0j\E[1;24r,
10439         kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D,
10440         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
10441         kel=\E[2K, kend=\Ez, kent=^J, kf1=\EOc, kf2=\EOd, kf3=\EOe,
10442         kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, khome=\E[H,
10443         kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
10444         kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
10445         lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?;2i, mc4=\E[4i,
10446         mc5=\E[5i, mrcup=\E[%i%p1%d;%p2%dt, nel=^M^J,
10447         pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s\E~,
10448         pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV, rc=\E8,
10449         rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmkx=\E[19;0j,
10450         rmln=\E|, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
10451         sc=\E7,
10452         sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10453         sgr0=\E[m\017, smacs=^N, smkx=\E[19;1j, smln=\E~,
10454         smso=\E[7m, smul=\E[4m, tbc=\E[3g,
10455         tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
10456 att5420_2-w|AT&T 5420 model 2 in 132 column mode,
10457         cols#132,
10458         is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;1j\E[6;0j\E[7;0j\E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j\E[29;0j\E[1;24r,
10459         use=att5420_2,
10460
10461 att4418|att5418|AT&T 5418 80 cols,
10462         am, xon,
10463         cols#80, lines#24,
10464         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10465         bel=^G, blink=\E[5m, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD,
10466         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
10467         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
10468         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m,
10469         dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H,
10470         ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=^J,
10471         is1=\E[?3l, is2=\E)0\E?6l\E?5l, kclr=\E[%%, kcub1=\E@,
10472         kcud1=\EU, kcuf1=\EA, kcuu1=\ES, kent=\E[, kf1=\E[h,
10473         kf10=\E[m, kf11=\E[n, kf12=\E[o, kf13=\E[H, kf14=\E[I,
10474         kf15=\E[J, kf18=\E[K, kf19=\E[L, kf2=\E[i, kf20=\E[E,
10475         kf21=\E[_, kf22=\E[M, kf23=\E[N, kf24=\E[O, kf3=\E[j,
10476         kf6=\E[k, kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec, rc=\E8,
10477         rev=\E[7m, rmacs=^O, rmso=\E[m, rmul=\E[m, sc=\E7,
10478         sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
10479 att4418-w|att5418-w|AT&T 5418 132 cols,
10480         cols#132,
10481         is1=\E[?3h, use=att5418,
10482
10483 att4420|tty4420|teletype 4420,
10484         OTbs, da, db, eo, msgr, ul, xon,
10485         cols#80, lines#24, lm#72,
10486         bel=^G, clear=\EH\EJ, cr=\EG, cub1=\ED, cud1=\EB, cuf1=\EC,
10487         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
10488         dl1=\EM, ed=\EJ, el=\Ez, home=\EH, il1=\EL, ind=\EH\EM\EY7\s,
10489         kcbt=\EO, kclr=\EJ, kcub1=^H, kcud1=\EB, kcuf1=\EC,
10490         kcuu1=\EA, kdch1=\EP, kdl1=\EM, kf0=\EU, kf3=\E@, khome=\EH,
10491         kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
10492         lf0=segment advance, lf3=cursor tab, rmdc@, rmso=\E~,
10493         rmul=\EZ, smdc@, smso=\E}, smul=\E\\,
10494
10495 #  The following is a terminfo entry for the Teletype 4424
10496 #  asynchronous keyboard-display terminal.  It supports
10497 #  the vi editor.  The terminal must be set up as follows,
10498 #
10499 #       HIGHLIGHT DEFINITION    3-TONE
10500 #       DISPLAY FUNCTION        GROUP III
10501 #
10502 #  The second entry below provides limited (a la adm3a)
10503 #  operation under GROUP II.
10504 #
10505 #  This must be used with DISPLAY FUNCTION GROUP I or III
10506 #       and HIGHLIGHT DEFINITION 3-TONE
10507 # The terminal has either bold or blink, depending on options
10508 #
10509 # (att4424: commented out <smcup>=\E[1m, we don't need bright locked on -- esr)
10510 att4424|tty4424|teletype 4424,
10511         OTbs, am, xon,
10512         cols#80, lines#24,
10513         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10514         bel=^G, blink=\E3, bold=\E3, cbt=\EO, clear=\E[H\E[2J, cr=^M,
10515         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10516         cud=\E[%p1%dB, cud1=\EB, cuf=\E[%p1%dC, cuf1=\EC,
10517         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EA,
10518         dch=\E[%p1%dP, dch1=\EP, dim=\EW, dl=\E[%p1%dM, dl1=\EM,
10519         ed=\EJ, el=\Ez, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
10520         ich1=\E\^, il=\E[%p1%dL, il1=\EL, ind=^J, is2=\E[20l\E[?7h,
10521         kbs=^H, kclr=\EJ, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
10522         kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
10523         khome=\E[H, nel=\EE, rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~,
10524         rmul=\EZ,
10525         sgr=\E[%?%p1%t7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p6%p4%|%t;5%;%?%p5%t;0%;m,
10526         sgr0=\EX\E~\EZ\E4\E(B, smacs=\E(0, smso=\E}, smul=\E\\,
10527         tbc=\EF,
10528
10529 att4424-1|tty4424-1|teletype 4424 in display function group I,
10530         kclr@, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome@,
10531         use=att4424,
10532
10533 # This entry is not one of AT&T's official ones, it was translated from the
10534 # 4.4BSD termcap file.  The highlight strings are different from att4424.
10535 # I have no idea why this is -- older firmware version, maybe?
10536 # The following two lines are the comment originally attached to the entry:
10537 # This entry appears to avoid the top line - I have no idea why.
10538 # From: jwb Wed Mar 31 13:25:09 1982 remote from ihuxp
10539 att4424m|tty4424m|teletype 4424M,
10540         am, da, db, mir,
10541         cols#80, it#8, lines#23,
10542         bel=^G, clear=\E[2;H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
10543         cup=\E[%i%p1%2d;%p2%2dH\E[B, cuu1=\E[A, dch1=\EP,
10544         dl1=\EM, el=\E[K, ht=^I, ich1=\E\^, il1=\EL, ind=^J, ip=$<2/>,
10545         is2=\E[m\E[2;24r, kbs=^H, kcub1=\E[D, kcud1=\E[B,
10546         kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
10547         kf4=\EOS, khome=\E[H, nel=^M^J, ri=\ET, rmso=\E[m, rmul=\E[m,
10548         sgr0=\E[m, smso=\E[7m, smul=\E[4m,
10549
10550 # The Teletype 5425 is really version 2 of the Teletype 5420. It
10551 # is quite similar, except for some minor differences. No page
10552 # mode, for example, so all of the <cup> sequences used above have
10553 # to change back to what's being used for the 5410. Many of the
10554 # option settings have changed their numbering as well.
10555 #
10556 # This has been tested on a preliminary model.
10557 #
10558 # (att5425: added <rmam>/<smam> based on the init string -- esr)
10559 att5425|tty5425|att4425|AT&T 4425/5425,
10560         am, da, db, hs, mir, msgr, xenl, xon,
10561         cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
10562         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10563         bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
10564         clear=\E[H\E[J, cnorm=\E[12;0j, cr=^M,
10565         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10566         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10567         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10568         cvvis=\E[12;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
10569         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[J,
10570         el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
10571         flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
10572         hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
10573         il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dE,
10574         invis=\E[8m, is1=\E<\E[?3l$<100>,
10575         is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h\E[4i\Ex\E[25;1j\212,
10576         is3=\E[?5l, kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[J,
10577         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
10578         kdl1=\E[M, kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc,
10579         kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi,
10580         kf8=\EOj, khome=\E[H, kich1=\E[4h, kil1=\E[L, kind=\E[T,
10581         kri=\E[S, ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i,
10582         nel=^M^J,
10583         pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
10584         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, rc=\E8,
10585         rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmam=\E[?7l,
10586         rmir=\E[4l, rmkx=\E[21;0j\E[25;1j\212, rmln=\E|,
10587         rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7,
10588         sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
10589         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
10590         smkx=\E[21;1j\E[25;4j\Eent\E~, smln=\E~, smso=\E[7m,
10591         smul=\E[4m, tbc=\E[3g, tsl=\E7\E[25;%p1%{8}%+%dH,
10592         vpa=\E[%p1%{1}%+%dd,
10593
10594 att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels,
10595         smkx=\E[21;1j\E[25;4j\Eent, use=att4425,
10596
10597 att5425-w|att4425-w|tty5425-w|teletype 4425/5425 in 132 column mode,
10598         cols#132, lm#54, wsl#97,
10599         is1=\E[?3h$<100>, use=tty5425,
10600
10601 # (att4426: his had bogus capabilities: :ri=\EM:, :ri=\E[1U:.
10602 # I also added <rmam>/<smam> -- esr)
10603 att4426|tty4426|teletype 4426S,
10604         am, da, db, xon,
10605         cols#80, lines#24, lm#48,
10606         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10607         bel=^G, bold=\E[5m, clear=\E[H\E[2J\E[1U\E[H\E[2J\E[1V,
10608         cr=^M, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
10609         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
10610         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EP,
10611         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[0K, home=\E[H,
10612         hpa=\E[%p1%dG, ht=^I, hts=\E1, ich=\E[%p1%d@, ich1=\E\^,
10613         il=\E[%p1%dL, il1=\EL, ind=^J, indn=\E[%p1%dS,
10614         is1=\Ec\E[?7h, is2=\E[m\E[1;24r, kbs=^H, kcbt=\EO,
10615         kclr=\E[2J, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
10616         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
10617         kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H, ll=\E[24H,
10618         nel=^M^J, rc=\E8, rev=\E[7m, ri=\ET, rin=\E[%p1%dT,
10619         rmacs=\E(B, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
10620         rs2=\Ec\E[?3l\E[2;0y, sc=\E7, sgr0=\E[m\E(B, smacs=\E(0,
10621         smam=\E[?7h, smso=\E[5m, smul=\E[4m, tbc=\E[3g,
10622         vpa=\E[%p1%dd,
10623
10624 # Terminfo entry for the AT&T 510 A Personal Terminal
10625 # Function keys 9 - 16 are available only after the
10626 # screen labeled (soft keys/action blocks) are labeled.  Function key
10627 # 9 corresponds to the leftmost touch target on the screen,
10628 # function key 16 corresponds to the rightmost.
10629 #
10630 # This entry is based on one done by Ernie Rice at Summit, NJ and
10631 # changed by Anne Gallup, Skokie, IL, ttrdc!anne
10632 att510a|bct510a|AT&T 510A Personal Terminal,
10633         am, mir, msgr, xenl, xon,
10634         cols#80, lh#2, lines#24, lw#7, nlab#8,
10635         acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
10636         bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
10637         civis=\E[11;0|, clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M,
10638         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
10639         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
10640         cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP,
10641         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J,
10642         el=\E[0K, el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H, ht=^I,
10643         hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E(B\E)1\E[2l,
10644         is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
10645         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
10646         kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
10647         kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
10648         kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
10649         mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, nel=\EE,
10650         pln=\E[%p1%dp%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
10651         rmacs=^O, rmkx=\E[19;0|, rmso=\E[m, rmul=\E[m, sc=\E7,
10652         sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;m%?%p9%t\016%e\017%;,
10653         sgr0=\E[m\017, smacs=^N, smkx=\E[19;1|, smso=\E[7m,
10654         smul=\E[4m, tbc=\E[3g,
10655
10656 # Terminfo entry for the AT&T 510 D Personal Terminal
10657 # Function keys 9 through 16 are accessed by bringing up the
10658 # system blocks.
10659 # Function key 9 corresponds to the leftmost touch target on the screen,
10660 # function key 16 corresponds to the rightmost.
10661 #
10662 # There are problems with soft key labeling.  These are due to
10663 # strangenesses in the native terminal that are impossible to
10664 # describe in a terminfo.
10665 att510d|bct510d|AT&T 510D Personal Terminal,
10666         am, da, db, mir, msgr, xenl, xon,
10667         cols#80, lh#2, lines#24, lm#48, lw#7, nlab#8,
10668         acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
10669         bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
10670         clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M, cub=\E[%p1%dD,
10671         cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
10672         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
10673         cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P,
10674         dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K,
10675         el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H,
10676         hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
10677         il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
10678         invis=\E[8m, is1=\E(B\E)1\E[5;0|, is3=\E[21;1|\212,
10679         kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
10680         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd,
10681         kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi,
10682         kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf,
10683         kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, ll=\E#2,
10684         mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, mgc=\E\:, nel=\EE,
10685         pln=\E[%p1%dp%p2%:-16s, rc=\E8,
10686         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
10687         rin=\E[%p1%dT, rmacs=^O, rmir=\E[4l, rmkx=\E[19;0|,
10688         rmln=\E<, rmso=\E[m, rmul=\E[m, rmxon=\E[29;1|,
10689         rs2=\E[5;0|, sc=\E7,
10690         sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10691         sgr0=\E[m\017, smacs=^N, smgl=\E4, smgr=\E5, smir=\E[4h,
10692         smkx=\E[19;1|, smln=\E?, smso=\E[7m, smul=\E[4m,
10693         smxon=\E[29;0|, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
10694
10695 # (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
10696 att500|att513|AT&T 513 using page mode,
10697         am, chts, mir, msgr, xenl, xon,
10698         cols#80, lh#2, lines#24, lw#8, nlab#8,
10699         acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
10700         bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
10701         clear=\E[H\E[J, cnorm=\E[11;0|, cr=^M,
10702         csr=%i\E[%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10703         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10704         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10705         cvvis=\E[11;1|, dch=\E[%p1%dP, dch1=\E[P$<1>, dim=\E[2m,
10706         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
10707         enacs=\E(B\E)1, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
10708         hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
10709         indn=\E[%p1%dE, invis=\E[8m,
10710         is1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l,
10711         kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
10712         kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
10713         kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK,
10714         kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ,
10715         kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY,
10716         kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kbs=^H, kcan=\EOw,
10717         kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd,
10718         kcrt=\EOn, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10719         kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\Eent,
10720         kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
10721         kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm,
10722         khome=\E[H, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
10723         kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
10724         kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
10725         kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB,
10726         ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, ll=\E#2,
10727         mc0=\E[?98l\E[0i, mc4=\E[?98l\E[?8i, mc5=\E[?98l\E[?4i,
10728         nel=\EE,
10729         pfkey=\E[%p1%d;%p2%l%d;3;0p   F%p1%d           %p2%s,
10730         pfloc=\E[%p1%d;%p2%l%d;2;0p   F%p1%d           %p2%s,
10731         pfx=\E[%p1%d;%p2%l%d;1;0p   F%p1%d           %p2%s,
10732         pln=\E[%p1%dp%p2%:-16s, rc=\E8,
10733         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
10734         rin=\E[%p1%dF, rmacs=^O, rmir=\E[4l,
10735         rmkx=\E[19;0|\E[21;1|\212, rmln=\E<, rmso=\E[m,
10736         rmul=\E[m,
10737         rs1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l\E[2;0|\E[6;1|\E[8;0|\E[19;0|\E[1{\E[?99l,
10738         rs2=\E[5;0|, sc=\E7,
10739         sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10740         sgr0=\E[m\017, smacs=^N, smir=\E[4h,
10741         smkx=\E[19;1|\E[21;4|\Eent, smln=\E?, smso=\E[7m,
10742         smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
10743
10744 # 01-07-88
10745 # printer must be set to EMUL ANSI to accept ESC codes
10746 # <cuu1> stops at top margin
10747 # <is1> sets cpi 10,lpi 6,form 66,left 1,right 132,top 1,bottom 66,font
10748 #       and alt font ascii,wrap on,tabs cleared
10749 # <is2> disables newline on LF,Emphasized off
10750 # The <u0> capability sets form length
10751 att5310|att5320|AT&T Model 53210 or 5320 matrix printer,
10752         xhpa, xvpa,
10753         bufsz#8192, cols#132, cps#120, it#8, lines#66, orc#10,
10754         orhi#100, orl#12, orvi#72,
10755         cpi=%?%p1%{10}%=%t\E[w%e%p1%{12}%=%t\E[2w%e%p1%{5}%=%t\E[5w%e%p1%{13}%=%p1%{14}%=%O%t\E[3w%e%p1%{16}%=%p1%{17}%=%O%t\E[4w%e%p1%{6}%=%t\E[6w%e%p1%{7}%=%t\E[7w%e%p1%{8}%=%t\E[8w%;,
10756         cr=^M,
10757         csnm=%?%p1%{0}%=%tusascii%e%p1%{1}%=%tenglish%e%p1%{2}%=%tfinnish%e%p1%{3}%=%tjapanese%e%p1%{4}%=%tnorwegian%e%p1%{5}%=%tswedish%e%p1%{6}%=%tgermanic%e%p1%{7}%=%tfrench%e%p1%{8}%=%tcanadian_french%e%p1%{9}%=%titalian%e%p1%{10}%=%tspanish%e%p1%{11}%=%tline%e%p1%{12}%=%tsecurity%e%p1%{13}%=%tebcdic%e%p1%{14}%=%tapl%e%p1%{15}%=%tmosaic%;,
10758         cud=\E[%p1%de, cud1=^J, cuf=\E[%p1%da, cuf1=\s, cuu1=\EM,
10759         ff=^L, hpa=\E[%p1%d`, ht=^I, is1=\Ec, is2=\E[20l\r,
10760         lpi=%?%p1%{2}%=%t\E[4z%e%p1%{3}%=%t\E[5z%e%p1%{4}%=%t\E[6z%e%p1%{6}%=%t\E[z%e%p1%{8}%=%t\E[2z%e%p1%{12}%=%t\E[3z%;,
10761         rshm=\E[m,
10762         scs=%?%p1%{0}%=%t\E(B%e%p1%{1}%=%t\E(A%e%p1%{2}%=%t\E(C%e%p1%{3}%=%t\E(D%e%p1%{4}%=%t\E(E%e%p1%{5}%=%t\E(H%e%p1%{6}%=%t\E(K%e%p1%{7}%=%t\E(R%e%p1%{8}%=%t\E(Q%e%p1%{9}%=%t\E(Y%e%p1%{10}%=%t\E(Z%e%p1%{11}%=%t\E(0%e%p1%{12}%=%t\E(1%e%p1%{13}%=%t\E(3%e%p1%{14}%=%t\E(8%e%p1%{15}%=%t\E(}%;,
10763         smgbp=\E[;%p1%dr, smglp=\E[%{1}%p1%+%ds,
10764         smgrp=\E[;%{1}%p1%+%ds, smgtp=\E[%p1%dr, sshm=\E[5m,
10765         u0=\E[%p1%dt, vpa=\E[%p1%dd,
10766
10767 # Teletype 5620, firmware version 1.1 (8;7;3) or earlier from BRL
10768 # The following SET-UP modes are assumed for normal operation:
10769 #       CR_DEF=CR       NL_DEF=INDEX    DUPLEX=FULL
10770 # Other SET-UP modes may be set for operator convenience or communication
10771 # requirements.  This termcap description is for the Resident Terminal Mode.
10772 # No delays specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
10773 # The BRL entry also said: UNSAFE :ll=\E[70H:
10774 att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
10775         am, xon,
10776         cols#88, it#8, lines#70, vt#3,
10777         bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
10778         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
10779         dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
10780         home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
10781         il1=\E[L, ind=^J, indn=\E[%p1%dS, kbs=^H, kclr=\E[2J,
10782         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
10783         kll=\E[70;1H, nel=^M^J, rc=\E8, ri=\E[T, rin=\E[%p1%dT,
10784         rs1=\Ec, sc=\E7,
10785
10786 # 5620 terminfo  (2.0 or later ROMS with char attributes)
10787 # The following SET-UP modes are assumed for normal operation:
10788 #       DUPLEX=FULL     GEN_FLOW=ON     NEWLINE=INDEX   RETURN=CR
10789 # Other SET-UP modes may be set for operator convenience or communication
10790 # requirements.  This termcap description is for Resident Terminal Mode.  No
10791 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
10792 # assumptions: <ind> (scroll forward one line) is only done at screen bottom
10793 # Be aware that older versions of the dmd have a firmware bug that affects
10794 # parameter defaulting; for this terminal, the 0 in \E[0m is not optional.
10795 # <msgr> is from an otherwise inferior BRL for this terminal.  That entry
10796 # also has <ll>=\E[70H commented out and marked unsafe.
10797 # For more, see the 5620 FAQ maintained by David Breneman <daveb@dgtl.com>.
10798 att5620|dmd|tty5620|ttydmd|5620|5620 terminal 88 columns,
10799         OTbs, am, msgr, npc, xon,
10800         cols#88, it#8, lines#70,
10801         bel=^G, bold=\E[2m, clear=\E[H\E[J, cr=^M, cub1=^H,
10802         cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
10803         dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
10804         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich=\E[%p1%d@,
10805         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
10806         indn=\E[%p1%dS, kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
10807         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kll=\E[70;1H, nel=^J,
10808         pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\E[T,
10809         rin=\E[%p1%dT, rmso=\E[0m, rmul=\E[0m, rs1=\Ec, sc=\E7,
10810         sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
10811 att5620-24|tty5620-24|dmd-24|teletype dmd 5620 in a 24x80 layer,
10812         lines#24, use=att5620,
10813 att5620-34|tty5620-34|dmd-34|teletype dmd 5620 in a 34x80 layer,
10814         lines#34, use=att5620,
10815 # 5620 layer running the "S" system's downloaded graphics handler:
10816 att5620-s|tty5620-s|layer|vitty|5620 S layer,
10817         OTbs, OTpt, am,
10818         cols#80, it#8, lines#72,
10819         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
10820         cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=^K, dl1=\ED,
10821         el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=^J, kbs=^H, kclr=\E[2J,
10822         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
10823         kll=\E[70;1H,
10824
10825 # Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
10826 #
10827 # Entries for <kf29> thru <kf46> refer to the alternate keypad mode
10828 # keys:  = * / + 7 8 9 - 4 5 6 , 1 2 3 0 . ENTER
10829 att605|AT&T 605 80 column 102key keyboard,
10830         am, eo, xon,
10831         cols#80, lines#24, lw#8, nlab#8, wsl#80,
10832         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10833         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
10834         cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
10835         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
10836         dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
10837         el=\E[K, el1=\E[1K, fsl=\E8, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
10838         il1=\E[L, ind=^J, invis=\E[8m,
10839         is1=\E[8;0|\E[?\E[13;20l\E[?\E[12h, is2=\E[m\017,
10840         kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z, kclr=\E[2J,
10841         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
10842         kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, kf11=\ENq,
10843         kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
10844         kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
10845         kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
10846         kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
10847         kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
10848         kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
10849         kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
10850         kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
10851         kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H, kich1=\E[@,
10852         kil1=\E[L, kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H,
10853         mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
10854         pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
10855         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
10856         rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
10857         rs2=\Ec\E[?3l, sc=\E7, sgr0=\E[m\017, smacs=\E)0\016,
10858         smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
10859         tsl=\E7\E[25;%i%p1%dx,
10860 att605-pc|ATT 605 in pc term mode,
10861         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
10862         cbt=\E[Z, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
10863         dch1=\E[P, dl1=\E[M, ich1=\E[@, il1=\E[L, kcbt=\E[Z,
10864         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
10865         kdl1=\E[M, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
10866         kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
10867         kf9=\E[U, khome=\E[H, kich1=\E[@, knp=\E[G, kpp=\E[I,
10868         rmsc=400\E[50;0|, smsc=250\E[?11l\E[50;1|, xoffc=g,
10869         xonc=e, use=att605,
10870 att605-w|AT&T 605-w 132 column 102 key keyboard,
10871         cols#132, wsl#132,
10872         is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0,
10873         use=att605,
10874 # (att610: I added <rmam>/<smam> based on the init string.  I also
10875 # added <indn> and <rin> because the BSD file says the att615s have them,
10876 # and the 615 is like a 610 with a big keyboard, and most of their other
10877 # smart terminals support the same sequence -- esr)
10878 att610|AT&T 610; 80 column; 98key keyboard,
10879         am, eslok, hs, mir, msgr, xenl, xon,
10880         cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
10881         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10882         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
10883         clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
10884         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10885         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
10886         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10887         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
10888         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
10889         flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
10890         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
10891         indn=\E[%p1%dS, invis=\E[8m,
10892         is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0,
10893         is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
10894         kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
10895         kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
10896         kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
10897         kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
10898         kind=\E[S, kri=\E[T, ll=\E[24H, mc4=\E[?4i, mc5=\E[?5i,
10899         nel=\EE,
10900         pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
10901         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
10902         ri=\EM, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
10903         rmln=\E[2p, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l, sc=\E7,
10904         sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10905         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
10906         smln=\E[p, smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
10907 att610-w|AT&T 610; 132 column; 98key keyboard,
10908         cols#132, wsl#132,
10909         is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
10910         use=att610,
10911
10912 att610-103k|AT&T 610; 80 column; 103key keyboard,
10913         kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
10914         kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
10915         kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
10916         kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
10917         kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
10918         kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
10919         kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
10920         kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf9@, kfnd=\EOx,
10921         khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi, kmsg=\EOl,
10922         knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V,
10923         kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, kres=\EOq,
10924         krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB, ksav=\EOo,
10925         kslt=\ENI, kspd=\EOp, kund=\EOs, use=att610,
10926 att610-103k-w|AT&T 610; 132 column; 103key keyboard,
10927         cols#132, wsl#132,
10928         is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
10929         use=att610-103k,
10930 att615|AT&T 615; 80 column; 98key keyboard,
10931         kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
10932         kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
10933         kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
10934         kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
10935         kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
10936         kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
10937         kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610,
10938 att615-w|AT&T 615; 132 column; 98key keyboard,
10939         kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
10940         kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
10941         kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
10942         kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
10943         kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
10944         kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
10945         kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610-w,
10946 att615-103k|AT&T 615; 80 column; 103key keyboard,
10947         kLFT=\E[ A, kRIT=\E[ @, use=att610-103k,
10948 att615-103k-w|AT&T 615; 132 column; 103key keyboard,
10949         kLFT=\E[ A, kRIT=\E[ @, use=att610-103k-w,
10950 # (att620: I added <rmam>/<smam> based on the init string and
10951 # <rin>/<indn> from a BSD termcap -- esr)
10952 att620|AT&T 620; 80 column; 98key keyboard,
10953         am, eslok, hs, mir, msgr, xenl, xon,
10954         cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
10955         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
10956         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
10957         clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
10958         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10959         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
10960         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10961         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
10962         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
10963         flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
10964         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
10965         indn=\E[%p1%dS, invis=\E[8m,
10966         is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h,
10967         is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H,
10968         kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
10969         kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
10970         kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD, kf17=\EOE,
10971         kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH, kf21=\EOI,
10972         kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR,
10973         kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe, kf30=\EOQ,
10974         kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx, kf35=\EOy,
10975         kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv, kf4=\EOf,
10976         kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs, kf44=\EOp,
10977         kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
10978         kf9=\ENo, khome=\E[H, kind=\E[S, kri=\E[T, ll=\E[24H,
10979         mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
10980         pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
10981         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
10982         ri=\EM, rin=\E[%p1%dT, rmacs=\E(B\017, rmam=\E[?7l,
10983         rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
10984         rs2=\Ec\E[?3l, sc=\E7,
10985         sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\E)0\016%e\E(B\017%;,
10986         sgr0=\E[m\E(B\017, smacs=\E)0\016, smam=\E[?7h,
10987         smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
10988         tsl=\E7\E[25;%i%p1%dx,
10989 att620-w|AT&T 620; 132 column; 98key keyboard,
10990         cols#132, wsl#132,
10991         is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
10992         use=att620,
10993 att620-103k|AT&T 620; 80 column; 103key keyboard,
10994         kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
10995         kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
10996         kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
10997         kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
10998         kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
10999         kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
11000         kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
11001         kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@,
11002         kf18@, kf19@, kf20@, kf21@, kf22@, kf23@, kf24@, kf25@, kf26@, kf27@,
11003         kf28@, kf29@, kf30@, kf31@, kf32@, kf33@, kf34@, kf35@, kf36@, kf37@,
11004         kf38@, kf39@, kf40@, kf41@, kf42@, kf43@, kf44@, kf45@, kf46@, kf9@,
11005         kfnd=\EOx, khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi,
11006         kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
11007         kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
11008         kres=\EOq, krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB,
11009         ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, use=att620,
11010
11011 att620-103k-w|AT&T 620; 132 column; 103key keyboard,
11012         cols#132, wsl#132,
11013         is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
11014         use=att620-103k,
11015
11016 # AT&T (formerly Teletype) 630 Multi-Tasking Graphics terminal
11017 # The following SETUP modes are assumed for normal operation:
11018 #       Local_Echo=Off  Gen_Flow=On     Return=CR       Received_Newline=LF
11019 #       Font_Size=Large         Non-Layers_Window_Cols=80
11020 #                               Non-Layers_Window_Rows=60
11021 # Other SETUP modes may be set for operator convenience or communication
11022 # requirements.  Some capabilities assume a printer attached to the Aux EIA
11023 # port.  This termcap description is for the Fixed Non-Layers Window.  No
11024 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
11025 # (att630: added <ich1>, <blink> and <dim> from a BSD termcap file -- esr)
11026 att630|AT&T 630 windowing terminal,
11027         OTbs, am, da, db, mir, msgr, npc, xon,
11028         cols#80, it#8, lines#60, lm#0,
11029         bel=^G, blink=\E[5m, cbt=\E[Z, clear=\E[H\E[J, cr=^M,
11030         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
11031         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11032         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
11033         dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
11034         el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
11035         il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS, is2=\E[m,
11036         kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
11037         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kent=^M,
11038         kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
11039         kf15=\ENu, kf16=\ENv, kf17=\ENw, kf18=\ENx, kf19=\ENy,
11040         kf20=\ENz, kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~,
11041         kf9=\ENo, khome=\E[H, kich1=\E[@, kil1=\E[L, mc4=\E[?4i,
11042         mc5=\E[?5i, nel=^M^J, pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8,
11043         rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmir=\E[4l, rmso=\E[m,
11044         rmul=\E[m, rs2=\Ec, sc=\E7,
11045         sgr=\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%p4%|%t;7%;m,
11046         sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11047 att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
11048         lines#24, use=att630,
11049
11050 # This is the att700 entry for 700 native emulation of the AT&T 700
11051 # terminal.  Comments are relative to changes from the 605V2 entry and
11052 # att730 on which the entry is based.  Comments show the terminfo
11053 # capability name, termcap name, and description.
11054 #
11055 # Here is what's going onm in the init string:
11056 #       ESC [ 50;4|     set 700 native mode (really is 605)
11057 # x     ESC [ 56;ps|    set lines to 24: ps=0; 40: ps=1 (plus status line)
11058 #       ESC [ 53;0|     set GenFlow to Xon/Xoff
11059 #       ESC [ 8 ;0|     set CR on NL
11060 # x     ESC [ ? 3 l/h   set workspace: 80 col(l); 132 col(h)
11061 #       ESC [ ? 4 l     jump scroll
11062 #       ESC [ ? 5 l/h   video: normal (l); reverse (h)
11063 #       ESC [ ?13 l     Labels on
11064 #       ESC [ ?15 l     parity check = no
11065 #       ESC [ 13 l      monitor mode off
11066 #       ESC [ 20 l      LF on NL (not CRLF on NL)
11067 #       ESC [ ? 7 h     autowrap on
11068 #       ESC [ 12 h      local echo off
11069 #       ESC ( B         GO = ASCII
11070 #       ESC ) 0         G1 = Special Char & Line Drawing
11071 #       ESC [ ? 31 l    Set 7 bit controls
11072 #
11073 # Note: Most terminals, especially the 600 family use Reverse Video for
11074 # standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
11075 # Assume we should stay with reverse video for 70..  However, the 605V2 exits
11076 # standout mode with \E[m (all normal attributes).  The 730 entry simply
11077 # exits reverse video which would leave other current attributes intact.  It
11078 # was assumed the 730 entry to be more correct so rmso has changed.  The
11079 # 605V2 has no sequences to turn individual attributes off, thus its setting
11080 # and the rmso/smso settings from the 730.
11081 #
11082 # Note: For the same reason as above in rmso I changed exit under-score mode
11083 # to specifically turn off underscore, rather than return to all normal
11084 # attributes
11085 #
11086 # Note: The following pkey_xmit is taken from the 605V2 which contained the
11087 # capability as pfxl.  It was changed here to pfx since pfxl
11088 # will only compile successfully with Unix 4.0 tic.  Also note that pfx only
11089 # allows strings to be parameters and label values must be programmed as
11090 # constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
11091 # and strings to be parameters.  The 605V2 pfx entry should be examined later
11092 # in this regard. For reference the 730 pfxl entry is shown here for comparison
11093 # 730 pfx entry:
11094 #     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
11095 # SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
11096 #
11097 # (for 4.0 tic)
11098 #     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
11099 #
11100 # (for <4.0 tic)
11101 #     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
11102 #
11103 # From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
11104 #
11105 # Port1 Interface
11106 #
11107 # modular 10 pin Connector
11108 # Left side       Right side
11109 # Pin 1 2 3 4 5 6 7 8 9 10
11110 #
11111 #        Key (notch) at bottom
11112 #
11113 # Pin    1 DSR
11114 #        3 DCD
11115 #        4 DTR
11116 #        5 Sig Ground
11117 #        6 RD
11118 #        7 SD
11119 #        8 CTS
11120 #        9 RTS
11121 #        10 Frame Ground
11122 #
11123 # The manual is 189 pages and is loaded with details about the escape codes,
11124 # etc..... Available from AT&T CIC 800-432-6600...
11125 # ask for Document number 999-300-660..
11126 #
11127 att700|AT&T 700 24x80 column display w/102key keyboard,
11128         am, eslok, hs, mir, msgr, xenl, xon,
11129         cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
11130         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
11131         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
11132         clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
11133         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
11134         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
11135         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
11136         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
11137         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
11138         enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fln=4\,4,
11139         fsl=\E8, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
11140         il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m,
11141         is2=\E[50;4|\E[53;0|\E[8;0|\E[?4;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0\E[?31l\E[0m\017,
11142         is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z,
11143         kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
11144         kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp,
11145         kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC,
11146         kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd,
11147         kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP,
11148         kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOq,
11149         kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt, kf33=\EOu,
11150         kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy, kf38=\EOu,
11151         kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr,
11152         kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg,
11153         kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
11154         kich1=\E[@, kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H,
11155         mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
11156         pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
11157         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
11158         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
11159         rmir=\E[4l, rmln=\E[2p, rmso=\E[27m, rmul=\E[24m,
11160         rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|, sc=\E7,
11161         sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
11162         sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p, smso=\E[7m,
11163         smul=\E[4m, smxon=\E[53;0|, tbc=\E[3g,
11164         tsl=\E7\E[99;%i%p1%dx,
11165
11166 # This entry was modified 3/13/90 by JWE.
11167 # fixes include additions of <enacs>, correcting <rep>, and modification
11168 # of <kHOM>.  (See comments below)
11169 # att730 has status line of 80 chars
11170 # These were commented out: <indn=\E[%p1%dS>, <rin=\E[%p1%dT>,
11171 # the <kf25> and up keys are used for shifted system Fkeys
11172 # NOTE: JWE 3/13/90 The 98 key keyboard translation for shift/HOME is
11173 # currently the same as <khome> (unshifted HOME or \E[H).  On the 102, 102+1
11174 # and 122 key keyboards, the 730's translation is \E[2J.  For consistency
11175 # <kHOM> has been commented out.  The user can uncomment <kHOM> if using the
11176 # 102, 102+1, or 122 key keyboards
11177 #       kHOM=\E[2J,
11178 # (att730: I added <rmam>/<smam> based on the init string -- esr)
11179 att730|AT&T 730 windowing terminal,
11180         am, da, db, eslok, hs, mir, msgr, npc, xenl, xon,
11181         cols#80, it#8, lh#2, lines#60, lm#0, lw#8, nlab#24, wsl#80,
11182         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
11183         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
11184         clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
11185         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
11186         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
11187         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
11188         cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
11189         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
11190         enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
11191         home=\E[H, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
11192         ind=\ED, invis=\E[8m,
11193         is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B,
11194         is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
11195         kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
11196         kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
11197         kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv, kf17=\ENw,
11198         kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz, kf21=\EN{,
11199         kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC, kf26=\EOD,
11200         kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe, kf30=\EOH,
11201         kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP, kf35=\ENQ,
11202         kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU, kf4=\EOf,
11203         kf40=\EOV, kf41=\EOW, kf42=\EOX, kf43=\EOY, kf44=\EOZ,
11204         kf45=\EO[, kf46=\EO\s, kf47=\EO], kf48=\EO\^, kf5=\EOg,
11205         kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
11206         kich1=\E[@, kil1=\E[L, kind=\E[S, kri=\E[T,
11207         mc0=\E[?19h\E[0i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
11208         pfx=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq   SYS     F%p1%:-2d  %e;0;3q%;%p2%s,
11209         pfxl=\E[%p1%d;%p2%l%02d;0;0q%p3%:-16.16s%p2%s,
11210         pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
11211         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
11212         rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h, rmso=\E[27m,
11213         rmul=\E[24m, rmxon=\E[?21l, rs2=\Ec\E[?3l, sc=\E7,
11214         sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
11215         sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
11216         smln=\E[?13l, smso=\E[7m, smul=\E[4m, smxon=\E[?21h,
11217         swidm=\E#6, tsl=\E7\E[;%i%p1%dx,
11218 att730-41|730MTG-41|AT&T 730-41 windowing terminal Version,
11219         lines#41, use=att730,
11220 att730-24|730MTG-24|AT&T 730-24 windowing terminal Version,
11221         lines#24, use=att730,
11222 att730r|730MTGr|AT&T 730 rev video windowing terminal Version,
11223         flash=\E[?5l$<200>\E[?5h,
11224         is1=\E[8;0|\E[?3;4;13;15l\E[?5h\E[13;20l\E[?7h\E[12h\E(B\E)B,
11225         use=att730,
11226 att730r-41|730MTG-41r|AT&T 730r-41 rev video windowing terminal Version,
11227         lines#41, use=att730r,
11228 att730r-24|730MTGr-24|AT&T 730r-24 rev video windowing terminal Version,
11229         lines#24, use=att730r,
11230
11231 # The following represents the screen layout along with the associated
11232 # bezel buttons for the 5430/pt505 terminal. The "kf" designations do
11233 # not appear on the screen but are shown to reference the bezel buttons.
11234 # The "CMD", "MAIL", and "REDRAW" buttons are shown in their approximate
11235 # position relative to the screen.
11236 #
11237 #
11238 #
11239 #      +----------------------------------------------------------------+
11240 #      |                                                                |
11241 # XXXX | kf0                                                       kf24 | XXXX
11242 #      |                                                                |
11243 #      |                                                                |
11244 # XXXX | kf1                                                       kf23 | XXXX
11245 #      |                                                                |
11246 #      |                                                                |
11247 # XXXX | kf2                                                       kf22 | XXXX
11248 #      |                                                                |
11249 #      |                                                                |
11250 # XXXX | kf3                                                       kf21 | XXXX
11251 #      |                                                                |
11252 #      |                                                                |
11253 # XXXX | kf4                                                       kf20 | XXXX
11254 #      |                                                                |
11255 #      |                                                                |
11256 # XXXX | kf5                                                       kf19 | XXXX
11257 #      |                                                                |
11258 #      |                                                                |
11259 # XXXX | kf6                                                       kf18 | XXXX
11260 #      |                                                                |
11261 #      |                                                                |
11262 # XXXX |                                                                | XXXX
11263 #      |                                                                |
11264 #      |                                                                |
11265 #      +----------------------------------------------------------------+
11266 #
11267 #          XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX
11268 #
11269 # Note: XXXX represents the screen buttons
11270 #                                                          CMD   REDRAW
11271 #
11272 #                                                          MAIL
11273 #
11274 # version 1 note:
11275 #       The character string sent by key 'kf26' may be user programmable
11276 #       to send either \E[16s, or \E[26s.
11277 #       The character string sent by key 'krfr' may be user programmable
11278 #       to send either \E[17s, or \E[27s.
11279 #
11280 # Depression of the "CMD" key sends    \E!    (kcmd)
11281 # Depression of the "MAIL" key sends   \E[26s (kf26)
11282 # "REDRAW" same as "REFRESH" (krfr)
11283 #
11284 # "kf" functions adds carriage return to output string if terminal is in
11285 # 'new line' mode.
11286 #
11287 # The following are functions not covered in the table above:
11288 #
11289 #       Set keyboard character (SKC): \EPn1;Pn2w
11290 #                       Pn1= 0 Back Space key
11291 #                       Pn1= 1 Break key
11292 #                       Pn2=   Program char (hex)
11293 #
11294 #       Screen Definition (SDF): \E[Pn1;Pn2;Pn3;Pn4;Pn5t
11295 #                       Pn1=     Window number (1-39)
11296 #                       Pn2-Pn5= Y;X;Y;X coordinates
11297 #
11298 #       Screen Selection (SSL): \E[Pnu
11299 #                       Pn= Window number
11300 #
11301 #       Set Terminal Modes (SM): \E[Pnh
11302 #                       Pn= 3 Graphics mode
11303 #                       Pn= > Cursor blink
11304 #                       Pn= < Enter new line mode
11305 #                       Pn= = Enter reverse insert/replace mode
11306 #                       Pn= ? Enter no scroll mode
11307 #
11308 #       Reset Terminal Mode (RM): \E[Pnl
11309 #                       Pn= 3 Exit graphics mode
11310 #                       Pn= > Exit cursor blink
11311 #                       Pn= < Exit new line mode
11312 #                       Pn= = Exit reverse insert/replace mode
11313 #                       Pn= ? Exit no scroll mode
11314 #
11315 #       Screen Status Report (SSR): \E[Pnp
11316 #                       Pn= 0 Request current window number
11317 #                       Pn= 1 Request current window dimensions
11318 #
11319 #       Device Status Report (DSR): \E[6n    Request cursor position
11320 #
11321 #       Call Status Report (CSR): \E[Pnv
11322 #                       Pn= 0 Call failed
11323 #                       Pn= 1 Call successful
11324 #
11325 #       Transparent Button String (TBS): \E[Pn1;Pn2;Pn3;{string
11326 #                       Pn1= Button number to be loaded
11327 #                       Pn2= Character count of "string"
11328 #                       Pn3= Key mode being loaded:
11329 #                               0= Unshifted
11330 #                               1= Shifted
11331 #                               2= Control
11332 #                       String= Text string (15 chars max)
11333 #
11334 #       Screen Number Report (SNR): \E[Pnp
11335 #                       Pn= Screen number
11336 #
11337 #       Screen Dimension Report (SDR): \E[Pn1;Pn2r
11338 #                       Pn1= Number of rows available in window
11339 #                       Pn2= Number of columns available in window
11340 #
11341 #       Cursor Position Report (CPR): \E[Pn1;Pn2R
11342 #                       Pn1= "Y" Position of cursor
11343 #                       Pn2= "X" Position of cursor
11344 #
11345 #       Request Answer Back (RAB): \E[c
11346 #
11347 #       Answer Back Response (ABR): \E[?;*;30;VSV
11348 #                       *=  0 No printer available
11349 #                       *=  2 Printer available
11350 #                       V=  Software version number
11351 #                       SV= Software sub version number
11352 #       (printer-available field not documented in v1)
11353 #
11354 #       Screen Alignment Aid: \En
11355 #
11356 #       Bell (lower pitch): \E[x
11357 #
11358 #       Dial Phone Number: \EPdstring\
11359 #                       string= Phone number to be dialed
11360 #
11361 #       Set Phone Labels: \EPpstring\
11362 #                       string= Label for phone buttons
11363 #
11364 #       Set Clock: \EPchour;minute;second\
11365 #
11366 #       Position Clock: \EPsY;X\
11367 #                       Y= "Y" coordinate
11368 #                       X= "X" coordinate
11369 #
11370 #       Delete Clock: \Epr\
11371 #
11372 #       Programming The Function Buttons: \EPfPn;string\
11373 #                       Pn= Button number (00-06, 18-24)
11374 #                                         (kf00-kf06, kf18-kf24)
11375 #                       string= Text to sent on button depression
11376 #
11377 # The following in version 2 only:
11378 #
11379 #       Request For Local Directory Data: \EPp12;\
11380 #
11381 #       Local Directory Data to host: \EPp11;LOCAL...DIRECTORY...DATA\
11382 #
11383 #       Request for Local Directory Data in print format: \EPp13;\
11384 #
11385 #       Enable 'Prt on Line' mode: \022 (DC2)
11386 #
11387 #       Disable 'Prt on Line' mode: \024 (DC4)
11388 #
11389
11390 # 05-Aug-86:
11391 # The following Terminfo entry describes functions which are supported by
11392 # the AT&T 5430/pt505 terminal software version 2 and later.
11393 att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
11394         am, xon,
11395         cols#80, it#8, lines#24,
11396         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
11397         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
11398         cnorm=\E[>l, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
11399         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
11400         cup=\E[%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
11401         cvvis=\E[>h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
11402         dl1=\E[M, ed=\E[0J, el=\E[0K, el1=\E[2K, home=\E[H, ht=^I,
11403         il=\E[%p1%dL, il1=\E[L, ind=^J,
11404         is1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l,
11405         kbs=^H, kcmd=\E!, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
11406         kcuu1=\E[A, kf0=\E[00s, kf1=\E[01s, kf18=\E[18s,
11407         kf19=\E[19s, kf2=\E[02s, kf20=\E[20s, kf21=\E[21s,
11408         kf22=\E[22s, kf23=\E[23s, kf24=\E[24s, kf26=\E[26s,
11409         kf3=\E[03s, kf4=\E[04s, kf5=\E[05s, kf6=\E[06s,
11410         krfr=\E[27s, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
11411         rmacs=\E[10m, rmam=\E[11;1j, rmir=\E[4l, rmso=\E[m,
11412         rmul=\E[m, rs1=\Ec, sc=\E7, sgr0=\E[m, smacs=\E[11m,
11413         smam=\E[11;0j, smir=\E[4h, smso=\E[1m, smul=\E[4m,
11414
11415 # The following Terminfo entry describes functions which are supported by
11416 # the AT&T 5430/pt505 terminal software version 1.
11417 att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines,
11418         lines#24,
11419         mc4@, mc5@, rc@, rmam@, sc@, smam@, use=att505,
11420 tt505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines,
11421         lines#22, use=att505,
11422 #
11423 #### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
11424 # This cut mark helps make life less painful for people running ncurses tic
11425 # on machines with relatively little RAM.  The file can be broken in half here
11426 # cleanly and compiled in sections -- no `use' references cross this cut
11427 # going forward.
11428 #
11429
11430 #### Ampex (Dialogue)
11431 #
11432 # Yes, these are the same people who are better-known for making audio- and
11433 # videotape.  I'm told they are located in Redwood City, CA.
11434 #
11435
11436 # From: <cbosg!ucbvax!SRC:george> Fri Sep 11 22:38:32 1981
11437 # (ampex80: some capabilities merged in from SCO's entry -- esr)
11438 ampex80|a80|d80|dialogue|dialogue80|ampex dialogue 80,
11439         OTbs, am, bw, ul,
11440         cols#80, it#8, lines#24,
11441         bel=^G, cbt=\EI, clear=\E*$<75>, cr=^M, cub1=^H, cud1=^J,
11442         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11443         dch1=\EW, dl1=\ER$<5*>, ed=\Ey, el=\Et, ht=^I, hts=\E1,
11444         ich1=\EQ, il1=\EE$<5*>, ind=^J, is2=\EA, rmso=\Ek, rmul=\Em,
11445         smso=\Ej, smul=\El, tbc=\E3,
11446 # This entry was from somebody anonymous, Tue Aug  9 20:11:37 1983, who wrote:
11447 ampex175|ampex d175,
11448         am,
11449         cols#80, lines#24,
11450         bel=^G, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
11451         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11452         dl1=\ER, ed=\Ey, el=\Et, home=^^, ich1=\EQ, il1=\EE, ind=^J,
11453         is2=\EX\EA\EF, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
11454         kdch1=\EW, kdl1=\ER, khome=^^, kich1=\EQ, kil1=\EE, ll=^^^K,
11455         rmcup=\EF, rmso=\Ek, rmul=\Em, smcup=\EN, smso=\Ej, smul=\El,
11456 # No backspace key in the main QWERTY cluster. Fortunately, it has a
11457 # NEWLINE/PAGE key just above RETURN that sends a strange single-character
11458 # code.  Given a suitable Unix (one that lets you set an echo-erase-as-BS-SP-BS
11459 # mode), this key can be used as the erase key; I find I like this. Because
11460 # some people and some systems may not, there is another termcap ("ampex175")
11461 # that suppresses this little eccentricity by omitting the relevant capability.
11462 ampex175-b|ampex d175 using left arrow for erase,
11463         kbs=^_, use=ampex175,
11464 # From: Richard Bascove <atd!dsd!rcb@ucbvax.berkeley.edu>
11465 # (ampex210: removed obsolete ":kn#10:" -- esr)
11466 ampex210|a210|ampex a210,
11467         OTbs, am, hs, xenl,
11468         cols#80, it#8, lines#24, xmc#1,
11469         cbt=\EI, clear=\E*, cub1=^H, cuf1=^L,
11470         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11471         dl1=\ER, ed=\Ey, el=\Et, flash=\EU\EX\EU\EX\EU\EX\EU\EX,
11472         fsl=\E.2, home=^^, ht=^I, ich1=\EQ,
11473         if=/usr/share/tabset/std, il1=\EE, invis@,
11474         is2=\EC\Eu\E'\E(\El\EA\E%\E{\E.2\EG0\Ed\En, kcub1=^H,
11475         kcud1=^V, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
11476         kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
11477         kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, khome=^^,
11478         tsl=\E.0\Eg\E}\Ef, use=adm+sgr,
11479 # (ampex219: I added <rmam>/<smam> based on the init string, added <cvvis>
11480 # from ampex219w, added <cnorm>=\E[?3l, irresistibly suggested by <cvvis>,
11481 # and moved the padding to be *after* the caps -- esr)
11482 ampex219|ampex-219|amp219|Ampex with Automargins,
11483         hs, xenl,
11484         cols#80, it#8, lines#24,
11485         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, cbt=\E[Z,
11486         clear=\E[H\E[2J$<50>, cnorm=\E[?3l, cr=^M,
11487         csr=%i\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B,
11488         cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
11489         cuu1=\E[A$<2>, cvvis=\E[?3h, dim=\E[1m, ed=\E[J$<50>,
11490         el=\E[K$<3>, home=\E[H, ht=^I, ind=^J,
11491         is2=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
11492         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[21~,
11493         kf1=\E[7~, kf2=\E[8~, kf3=\E[9~, kf4=\E[10~, kf5=\E[11~,
11494         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
11495         rev=\E[7m, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E>,
11496         rmso=\E[m$<2>, rmul=\E[m$<2>, sgr0=\E[m$<2>, smam=\E[?7h,
11497         smkx=\E=, smso=\E[7m$<2>, smul=\E[4m$<2>,
11498 ampex219w|ampex-219w|amp219w|Ampex 132 cols,
11499         cols#132, lines#24,
11500         bel=^G, cr=^M, cud1=^J, ind=^J,
11501         is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, use=ampex219,
11502 # (ampex232: removed <if=/usr/share/tabset/ampex>, no file and no <hts> --esr)
11503 ampex232|ampex-232|Ampex Model 232,
11504         am,
11505         cols#80, lines#24, xmc#1,
11506         cbt=\EI, civis=\E.0, clear=\E+, cnorm=\E.4, cub1=^H, cud1=^V,
11507         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11508         dch1=\EW, dl1=\ER$<5*/>, ed=\EY, el=\ET,
11509         flash=\Eb$<200/>\Ed, ht=^I, ich1=\EQ, il1=\EE$<5*/>,
11510         invis@, is2=\Eg\El, kbs=^H, kcub1=^H, kcud1=^V, kcuf1=^L,
11511         kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
11512         kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
11513         kf9=^AI\r, khome=^^, use=adm+sgr,
11514 # (ampex: removed <if=/usr/share/tabset/amp-132>, no file and no <hts> -- esr)
11515 ampex232w|Ampex Model 232 / 132 columns,
11516         cols#132, lines#24,
11517         is2=\E\034Eg\El, use=ampex232,
11518
11519 #### Ann Arbor (aa)
11520 #
11521 # Ann Arbor made dream terminals for hackers -- large screen sizes and huge
11522 # numbers of function keys.  At least some used monitors in portrait mode,
11523 # allowing up to 76-character screen heights!  They were reachable at:
11524 #
11525 #       Ann Arbor Terminals
11526 #       6175 Jackson Road
11527 #       Ann Arbor, MI 48103
11528 #       (313)-663-8000
11529 #
11530 # But in 1996 the phone number reaches some kitschy retail shop, and Ann Arbor
11531 # can't be found on the Web; I fear they're long dead.  R.I.P.
11532 #
11533
11534
11535 # Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
11536 # Highly modified 6/22 by Mike O'Brien.
11537 # split out into several for the various screen sizes by dave-yost@rand
11538 # Modifications made 3/82 by Mark Horton
11539 # Modified by Tom Quarles at UCB for greater efficiency and more diversity
11540 # status line moved to top of screen, <flash> removed 5/82
11541 # Some unknown person at SCO then hacked the init strings to make them more
11542 # efficient.
11543 #
11544 # assumes the following setup:
11545 #   A menu: 0000 1010  0001 0000
11546 #   B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
11547 #   C menu: 56   66   0    0    9600  0110 1100
11548 #   D menu: 0110 1001   1   0
11549 #
11550 #       Briefly, the settings are for the following modes:
11551 #          (values are for bit set/clear with * indicating our preference
11552 #           and the value used to test these termcaps)
11553 #       Note that many of these settings are irrelevent to the terminfo
11554 #       and are just set to the default mode of the terminal as shipped
11555 #       by the factory.
11556 #
11557 # A menu: 0000 1010  0001 0000
11558 #       Block/underline cursor*
11559 #       blinking/nonblinking cursor*
11560 #       key click/no key click*
11561 #       bell/no bell at column 72*
11562 #
11563 #       key pad is cursor control*/key pad is numeric
11564 #       return and line feed/return for <cr> key *
11565 #       repeat after .5 sec*/no repeat
11566 #       repeat at 25/15 chars per sec. *
11567 #
11568 #       hold data until pause pressed/process data unless pause pressed*
11569 #       slow scroll/no slow scroll*
11570 #       Hold in area/don't hold in area*
11571 #       functions keys have default*/function keys disabled on powerup
11572 #
11573 #       show/don't show position of cursor during page transmit*
11574 #       unused
11575 #       unused
11576 #       unused
11577 #
11578 # B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
11579 #       Baud rate (9600*)
11580 #
11581 #       2 bits of parity - 00=odd,01=even*,10=space,11=mark
11582 #       1 stop bit*/2 stop bits
11583 #       parity error detection off*/on
11584 #
11585 #       keyboard local/on line*
11586 #       half/full duplex*
11587 #       disable/do not disable keyboard after data transmission*
11588 #
11589 #       transmit entire page/stop transmission at cursor*
11590 #       transfer/do not transfer protected characters*
11591 #       transmit all characters/transmit only selected characters*
11592 #       transmit all selected areas/transmit only 1 selected area*
11593 #
11594 #       transmit/do not transmit line separators to host*
11595 #       transmit/do not transmit page tab stops tabs to host*
11596 #       transmit/do not transmit column tab stop tabs to host*
11597 #       transmit/do not transmit graphics control (underline,inverse..)*
11598 #
11599 #       enable*/disable auto XON/XOFF control
11600 #       require/do not require receipt of a DC1 from host after each LF*
11601 #       pause key acts as a meta key/pause key is pause*
11602 #       unused
11603 #
11604 #       unused
11605 #       unused
11606 #       unused
11607 #       unused
11608 #
11609 #       XON character (17*)
11610 #       XOFF character (19*)
11611 #
11612 # C menu: 56   66   0    0    9600  0110 1100
11613 #       number of lines to print data on (printer) (56*)
11614 #
11615 #       number of lines on a sheet of paper (printer) (66*)
11616 #
11617 #       left margin (printer) (0*)
11618 #
11619 #       number of pad chars on new line to printer (0*)
11620 #
11621 #       printer baud rate (9600*)
11622 #
11623 #       printer parity: 00=odd,01=even*,10=space,11=mark
11624 #       printer stop bits: 2*/1
11625 #       print/do not print guarded areas*
11626 #
11627 #       new line is: 01=LF,10=CR,11=CRLF*
11628 #       unused
11629 #       unused
11630 #
11631 # D menu: 0110 1001   1   0
11632 #       LF is newline/LF is down one line, same column*
11633 #       wrap to preceding line if move left from col 1*/don't wrap
11634 #       wrap to next line if move right from col 80*/don't wrap
11635 #       backspace is/is not destructive*
11636 #
11637 #       display*/ignore DEL character
11638 #       display will not/will scroll*
11639 #       page/column tab stops*
11640 #       erase everything*/erase unprotected only
11641 #
11642 #       editing extent: 0=display,1=line*,2=field,3=area
11643 #
11644 #       unused
11645 #
11646
11647 annarbor4080|aa4080|ann arbor 4080,
11648         OTbs, am,
11649         cols#80, lines#40,
11650         bel=^G, clear=\014$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=^_,
11651         cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t%{12}%+%;%{64}%+%c,
11652         cuu1=^N, home=^K, ht=^I, hts=^]^P1, ind=^J, kbs=^^, kcub1=^H,
11653         kcud1=^J, kcuf1=^_, kcuu1=^N, khome=^K, tbc=^\^P^P,
11654
11655 # Strange Ann Arbor terminal from BRL
11656 aas1901|Ann Arbor K4080 w/S1901 mod,
11657         am,
11658         cols#80, lines#40,
11659         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^N,
11660         home=^K, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, ll=^O\0c,
11661         nel=^M^J,
11662
11663 # If you're using the GNU termcap library, add
11664 #       :cS=\E[%p1%d;%p2%d;%p3%d;%p4%dp:
11665 # to these capabilities.  This is the nonstandard GNU termcap scrolling
11666 # capability, arguments are:
11667 #   1. Total number of lines on the screen.
11668 #   2. Number of lines above desired scroll region.
11669 #   3. Number of lines below (outside of) desired scroll region.
11670 #   4. Total number of lines on the screen, the same as the first parameter.
11671 # The generic Ann Arbor entry is the only one that uses this.
11672 aaa+unk|aaa-unk|ann arbor ambassador (internal - don't use this directly),
11673         OTbs, am, km, mc5i, mir, xon,
11674         cols#80, it#8,
11675         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
11676         clear=\E[H\E[J$<156>, cr=^M, cub=\E[%p1%dD, cub1=^H,
11677         cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
11678         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
11679         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
11680         el=\E[K$<5>, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
11681         hts=\EH, ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il=\E[%p1%dL,
11682         il1=\E[L$<3>, ind=^K, invis=\E[8m, is1=\E[m\E7\E[H\E9\E8,
11683         is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kbs=^H, kcbt=\E[Z,
11684         kclr=\E[J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
11685         kdch1=\E[P, kdl1=\E[M, kf1=\EOA, kf10=\EOJ, kf11=\EOK,
11686         kf12=\EOL, kf13=\EOM, kf14=\EON, kf15=\EOO, kf16=\EOP,
11687         kf17=\EOQ, kf18=\EOR, kf19=\EOS, kf2=\EOB, kf20=\EOT,
11688         kf21=\EOU, kf22=\EOV, kf23=\EOW, kf24=\EOX, kf3=\EOC,
11689         kf4=\EOD, kf5=\EOE, kf6=\EOF, kf7=\EOG, kf8=\EOH, kf9=\EOI,
11690         khome=\E[H, kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i,
11691         mc4=^C, mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8,
11692         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
11693         rmkx=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E\\,
11694         rmm=\E[>52l, rmso=\E[m, rmul=\E[m, sc=\E7,
11695         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
11696         sgr0=\E[m,
11697         smkx=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E\\,
11698         smm=\E[>52h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
11699         vpa=\E[%p1%{1}%+%dd,
11700
11701 aaa+rv|ann arbor ambassador in reverse video,
11702         blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
11703         is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
11704         rs1=\E[H\E[7m\E[J$<156>,
11705         sgr=\E[%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p1%p2%|%p3%!%t7;%;%?%p7%t8;%;m\016,
11706         sgr0=\E[7m\016, smso=\E[m, smul=\E[4;7m,
11707 # Ambassador with the DEC option, for partial vt100 compatibility.
11708 aaa+dec|ann arbor ambassador in dec vt100 mode,
11709         acsc=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}},
11710         csr=\E[%i%p1%d;%p2%dr, enacs=\E(0, rmacs=^N,
11711         sgr=\E[%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p1%p3%|%!%t7;%;%?%p7%t8;%;m%?%p9%t\017%e\016%;,
11712         smacs=^O,
11713 aaa-18|ann arbor ambassador/18 lines,
11714         lines#18,
11715         is2=\E7\E[60;0;0;18p\E8,
11716         rmcup=\E[60;0;0;18p\E[60;1H\E[K, smcup=\E[18;0;0;18p,
11717         use=aaa+unk,
11718 aaa-18-rv|ann arbor ambassador/18 lines+reverse video,
11719         use=aaa+rv, use=aaa-18,
11720 aaa-20|ann arbor ambassador/20 lines,
11721         lines#20,
11722         is2=\E7\E[60;0;0;20p\E8,
11723         rmcup=\E[60;0;0;20p\E[60;1H\E[K, smcup=\E[20;0;0;20p,
11724         use=aaa+unk,
11725 aaa-22|ann arbor ambassador/22 lines,
11726         lines#22,
11727         is2=\E7\E[60;0;0;22p\E8,
11728         rmcup=\E[60;0;0;22p\E[60;1H\E[K, smcup=\E[22;0;0;22p,
11729         use=aaa+unk,
11730 aaa-24|ann arbor ambassador/24 lines,
11731         lines#24,
11732         is2=\E7\E[60;0;0;24p\E8,
11733         rmcup=\E[60;0;0;24p\E[60;1H\E[K, smcup=\E[24;0;0;24p,
11734         use=aaa+unk,
11735 aaa-24-rv|ann arbor ambassador/24 lines+reverse video,
11736         use=aaa+rv, use=aaa-24,
11737 aaa-26|ann arbor ambassador/26 lines,
11738         lines#26,
11739         is2=\E7\E[60;0;0;26p\E8,
11740         rmcup=\E[60;0;0;26p\E[26;1H\E[K,
11741         smcup=\E[H\E[J$<156>\E[26;0;0;26p, use=aaa+unk,
11742 aaa-28|ann arbor ambassador/28 lines,
11743         lines#28,
11744         is2=\E7\E[60;0;0;28p\E8,
11745         rmcup=\E[60;0;0;28p\E[28;1H\E[K,
11746         smcup=\E[H\E[J$<156>\E[28;0;0;28p, use=aaa+unk,
11747 aaa-30-s|aaa-s|ann arbor ambassador/30 lines w/status,
11748         eslok, hs,
11749         lines#29,
11750         dsl=\E7\E[60;0;0;30p\E[1;1H\E[K\E[H\E8\r\n\E[K,
11751         fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;30p\E8,
11752         rmcup=\E[60;1;0;30p\E[29;1H\E[K,
11753         smcup=\E[H\E[J$<156>\E[30;1;0;30p\E[30;1H\E[K,
11754         tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
11755 aaa-30-s-rv|aaa-s-rv|ann arbor ambassador/30 lines+status+reverse video,
11756         use=aaa+rv, use=aaa-30-s,
11757 aaa-s-ctxt|aaa-30-s-ctxt|ann arbor ambassador/30 lines+status+save context,
11758         rmcup=\E[60;1;0;30p\E[59;1H\E[K,
11759         smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s,
11760 aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context+reverse video,
11761         rmcup=\E[60;1;0;30p\E[59;1H\E[K,
11762         smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s-rv,
11763 aaa|aaa-30|ambas|ambassador|ann arbor ambassador/30 lines,
11764         lines#30,
11765         is2=\E7\E[60;0;0;30p\E8,
11766         rmcup=\E[60;0;0;30p\E[30;1H\E[K,
11767         smcup=\E[H\E[J$<156>\E[30;0;0;30p, use=aaa+unk,
11768 aaa-30-rv|aaa-rv|ann arbor ambassador/30 lines in reverse video,
11769         use=aaa+rv, use=aaa-30,
11770 aaa-30-ctxt|aaa-ctxt|ann arbor ambassador/30 lines; saving context,
11771         rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
11772         use=aaa-30,
11773 aaa-30-rv-ctxt|aaa-rv-ctxt|ann arbor ambassador/30 lines reverse video; saving context,
11774         rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
11775         use=aaa+rv, use=aaa-30,
11776 aaa-36|ann arbor ambassador/36 lines,
11777         lines#36,
11778         is2=\E7\E[60;0;0;36p\E8,
11779         rmcup=\E[60;0;0;36p\E[36;1H\E[K,
11780         smcup=\E[H\E[J$<156>\E[36;0;0;36p, use=aaa+unk,
11781 aaa-36-rv|ann arbor ambassador/36 lines+reverse video,
11782         use=aaa+rv, use=aaa-36,
11783 aaa-40|ann arbor ambassador/40 lines,
11784         lines#40,
11785         is2=\E7\E[60;0;0;40p\E8,
11786         rmcup=\E[60;0;0;40p\E[40;1H\E[K,
11787         smcup=\E[H\E[J$<156>\E[40;0;0;40p, use=aaa+unk,
11788 aaa-40-rv|ann arbor ambassador/40 lines+reverse video,
11789         use=aaa+rv, use=aaa-40,
11790 aaa-48|ann arbor ambassador/48 lines,
11791         lines#48,
11792         is2=\E7\E[60;0;0;48p\E8,
11793         rmcup=\E[60;0;0;48p\E[48;1H\E[K,
11794         smcup=\E[H\E[J$<156>\E[48;0;0;48p, use=aaa+unk,
11795 aaa-48-rv|ann arbor ambassador/48 lines+reverse video,
11796         use=aaa+rv, use=aaa-48,
11797 aaa-60-s|ann arbor ambassador/59 lines+status,
11798         eslok, hs,
11799         lines#59,
11800         dsl=\E7\E[60;0;0;60p\E[1;1H\E[K\E[H\E8\r\n\E[K,
11801         fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;60p\E8,
11802         tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
11803 aaa-60-s-rv|ann arbor ambassador/59 lines+status+reverse video,
11804         use=aaa+rv, use=aaa-60-s,
11805 aaa-60-dec-rv|ann arbor ambassador/dec mode+59 lines+status+rev video,
11806         use=aaa+dec, use=aaa+rv, use=aaa-60-s,
11807 aaa-60|ann arbor ambassador/60 lines,
11808         lines#60,
11809         is2=\E7\E[60;0;0;60p\E[1Q\E[m\E[>20;30l\E8,
11810         use=aaa+unk,
11811 aaa-60-rv|ann arbor ambassador/60 lines+reverse video,
11812         use=aaa+rv, use=aaa-60,
11813 aaa-db|ann arbor ambassador 30/destructive backspace,
11814         OTbs@,
11815         cub1=\E[D, is3=\E[1Q\E[m\E[>20l\E[>30h, use=aaa-30,
11816
11817 guru|guru-33|guru+unk|ann arbor guru/33 lines 80 cols,
11818         lines#33,
11819         flash=\E[>59h$<100>\E[>59l,
11820         is2=\E7\E[255;0;0;33;80;80p\E8\E[J, is3=\E[>59l,
11821         rmcup=\E[255p\E[255;1H\E[K, smcup=\E[33p, use=aaa+unk,
11822 guru+rv|guru changes for reverse video,
11823         flash=\E[>59l$<100>\E[>59h, is3=\E[>59h,
11824 guru-rv|guru-33-rv|ann arbor guru/33 lines+reverse video,
11825         use=guru+rv, use=guru-33,
11826 guru+s|guru status line,
11827         eslok, hs,
11828         dsl=\E7\E[;0p\E[1;1H\E[K\E[H\E8\r\n\E[K, fsl=\E[>51l,
11829         rmcup=\E[255;1p\E[255;1H\E[K, smcup=,
11830         tsl=\E[>51h\E[1;%p1%dH\E[2K,
11831 guru-nctxt|guru with no saved context,
11832         smcup=\E[H\E[J$<156>\E[33p\E[255;1H\E[K, use=guru,
11833 guru-s|guru-33-s|ann arbor guru/33 lines+status,
11834         lines#32,
11835         is2=\r\n\E[A\E7\E[255;1;0;33;80;80p\E8\E[J,
11836         smcup=\E[33;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
11837 guru-24|ann arbor guru 24 lines,
11838         cols#80, lines#24,
11839         is2=\E7\E[255;0;0;24;80;80p\E8\E[J, smcup=\E[24p,
11840         use=guru+unk,
11841 guru-44|ann arbor guru 44 lines,
11842         cols#97, lines#44,
11843         is2=\E7\E[255;0;0;44;97;100p\E8\E[J, smcup=\E[44p,
11844         use=guru+unk,
11845 guru-44-s|ann arbor guru/44 lines+status,
11846         lines#43,
11847         is2=\r\n\E[A\E7\E[255;1;0;44;80;80p\E8\E[J,
11848         smcup=\E[44;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
11849 guru-76|guru with 76 lines by 89 cols,
11850         cols#89, lines#76,
11851         is2=\E7\E[255;0;0;76;89;100p\E8\E[J, smcup=\E[76p,
11852         use=guru+unk,
11853 guru-76-s|ann arbor guru/76 lines+status,
11854         cols#89, lines#75,
11855         is2=\r\n\E[A\E7\E[255;1;0;76;89;100p\E8\E[J,
11856         smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
11857 guru-76-lp|guru-lp|guru with page bigger than line printer,
11858         cols#134, lines#76,
11859         is2=\E7\E[255;0;0;76;134;134p\E8\E[J, smcup=\E[76p,
11860         use=guru+unk,
11861 guru-76-w|guru 76 lines by 178 cols,
11862         cols#178, lines#76,
11863         is2=\E7\E[255;0;0;76;178;178p\E8\E[J, smcup=\E[76p,
11864         use=guru+unk,
11865 guru-76-w-s|ann arbor guru/76 lines+status+wide,
11866         cols#178, lines#75,
11867         is2=\r\n\E[A\E7\E[255;1;0;76;178;178p\E8\E[J,
11868         smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
11869 guru-76-wm|guru 76 lines by 178 cols with 255 cols memory,
11870         cols#178, lines#76,
11871         is2=\E7\E[255;0;0;76;178;255p\E8\E[J, smcup=\E[76p,
11872         use=guru+unk,
11873 aaa-rv-unk|ann arbor unknown type,
11874         lh#0, lw#0, nlab#0,
11875         blink=\E[5;7m, bold=\E[1;7m, home=\E[H, invis=\E[7;8m,
11876         is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
11877         rs1=\E[H\E[7m\E[J,
11878         sgr=\E[%?%p6%t1;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p1%!%t7;%;%?%p7%t8;%;m,
11879         sgr0=\E[7m, smso=\E[m, smul=\E[4;7m,
11880
11881 #### Applied Digital Data Systems (adds)
11882 #
11883 # ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
11884 # ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
11885 # terminals was merged again.  Then AT&T sold the terminal business to
11886 # SunRiver, which later changed its  name to Boundless Technologies.  The
11887 # engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
11888 # as of early 1995) are at:
11889 #
11890 #       Boundless Technologies
11891 #       100 Marcus Boulevard
11892 #       Hauppauge, NY 11788-3762
11893 #       Vox: (800)-231-5445
11894 #       Fax: (516)-342-7378
11895 #       Web: http://boundless.com
11896 #
11897 # Their voice mail used to describe the place as "SunRiver (formerly ADDS)".
11898 # In 1995 Boundless acquired DEC's terminals business.
11899 #
11900
11901 # Regent: lowest common denominator, works on all regents.
11902 # (regent: renamed ":bc:" to ":le:" -- esr)
11903 regent|Adds Regent Series,
11904         OTbs, am,
11905         cols#80, lines#24,
11906         bel=^G, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F, cuu1=^Z,
11907         home=\EY\s\s, ind=^J, ll=^A,
11908 # Regent 100 has a bug where if computer sends escape when user is holding
11909 # down shift key it gets confused, so we avoid escape.
11910 regent100|Adds Regent 100,
11911         xmc#1,
11912         bel=^G,
11913         cup=\013%p1%' '%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
11914         kf0=^B1\r, kf1=^B2\r, kf2=^B3\r, kf3=^B4\r, kf4=^B5\r,
11915         kf5=^B6\r, kf6=^B7\r, kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3,
11916         lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@,
11917         sgr0=\E0@, smso=\E0P, smul=\E0`, use=regent,
11918 regent20|Adds Regent 20,
11919         bel=^G, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, ed=\Ek, el=\EK,
11920         use=regent,
11921 regent25|Adds Regent 25,
11922         bel=^G, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z, khome=^A,
11923         use=regent20,
11924 regent40|Adds Regent 40,
11925         xmc#1,
11926         bel=^G, dl1=\El$<2*>, il1=\EM$<2*>, kf0=^B1\r, kf1=^B2\r,
11927         kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
11928         kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6,
11929         lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@, sgr0=\E0@, smso=\E0P,
11930         smul=\E0`, use=regent25,
11931 regent40+|Adds Regent 40+,
11932         is2=\EB, use=regent40,
11933 regent60|regent200|Adds Regent 60,
11934         dch1=\EE, is2=\EV\EB, kdch1=\EE, kich1=\EF, krmir=\EF,
11935         rmir=\EF, rmso=\ER\E0@\EV, smir=\EF, smso=\ER\E0P\EV,
11936         use=regent40+,
11937 # From: <edward@onyx.berkeley.edu> Thu Jul  9 09:27:33 1981
11938 # (viewpoint: added <kcuf1>, function key, and <dl1> capabilities -- esr)
11939 viewpoint|addsviewpoint|adds viewpoint,
11940         OTbs, am,
11941         cols#80, lines#24,
11942         bel=^G, clear=^L, cnorm=\017\E0`, cr=^M, cub1=^H, cud1=^J,
11943         cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
11944         cvvis=\017\E0P, dl1=\El, ed=\Ek$<16.1*>, el=\EK$<16>,
11945         ind=^J, is2=\017\E0`, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
11946         kf0=^B1, kf2=^B2, kf3=^B!, kf4=^B", kf5=^B#, khome=^A, ll=^A,
11947         rmso=^O, rmul=^O, sgr0=^O, smso=^N, smul=^N,
11948 # Some viewpoints have bad ROMs that foo up on ^O
11949 screwpoint|adds viewpoint with ^O bug,
11950         cvvis@, rmso@, rmul@, smso@, smul@, use=viewpoint,
11951
11952 # From: Jay S. Rouman <jsr@dexter.mi.org> 5 Jul 92
11953 # The <civis>/<cnorm>/<sgr>/<sgr0> strings were added by ESR from specs.
11954 # Theory; the vp3a+ wants \E0%c to set highlights, where normal=01000000,
11955 # underline=01100000, rev=01010000, blink=01000010,dim=01000001,
11956 # invis=01000100 and %c is the logical or of desired attributes.
11957 # There is also a `tag bit' enabling attributes, set by \E) and unset by \E(.
11958 #
11959 # Update by TD - 2004:
11960 # Adapted from
11961 #       http://www.cs.utk.edu/~shuford/terminal/adds_viewpoint_news.txt
11962 #
11963 # COMMANDS                        ASCII CODE
11964 #
11965 # Address, Absolute               ESC,=,row,column
11966 # Beep                            BEL
11967 # Aux Port Enable                 ESC,@
11968 # Aux Port Disable                ESC,A
11969 # Backspace                       BS
11970 # Cursor back                     BS
11971 # Cursor down                     LF
11972 # Cursor forward                  FF
11973 # Cursor home                     RS
11974 # Cursor up                       VT
11975 # Cursor supress                  ETB
11976 # Cursor enable                   CAN
11977 # Erase to end of line            ESC,T
11978 # Erase to end of page            ESC,Y
11979 # Erase screen                    SUB
11980 # Keyboard lock                   SI
11981 # Keyboard unlock                 SO
11982 # Read current cursor position    ESC,?
11983 # Set Attribute                   ESC,0,x  (see below for values of x)
11984 # Tag bit reset                   ESC,(
11985 # Tag bit set                     ESC,)
11986 # Transparent Print on            ESC,3
11987 # Transparent Print off           ESC,4
11988 #
11989 #
11990 # ATTRIBUTES
11991 #
11992 # Normal                          @     0100
11993 # Half Intensity                  A     0101
11994 # Blinking                        B     0102
11995 # Half Intensity Blinking         C     0103
11996 # Reverse Video                   P     0120
11997 # Reverse Video Half Intensity    Q     0121
11998 # Reverse Video Blinking          R     0122
11999 # Reverse Video Half Intensity
12000 #    Blinking                     S     0123
12001 # Underlined                      `     0140
12002 # Underlined Half Intensity       a     0141
12003 # Underlined Blinking             b     0142
12004 # Underlined Half Intensity
12005 #    Blinking                     c     0143
12006 # Video suppress                  D     0104
12007 vp3a+|viewpoint3a+|adds viewpoint 3a+,
12008         am, bw,
12009         cols#80, it#8, lines#24,
12010         blink=\E0B\E), civis=^W, clear=\E*$<80>, cnorm=^X, cr=^M,
12011         cub1=^H, cud1=^J, cuf1=^L,
12012         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dim=\E0A\E),
12013         ed=\EY$<80>, el=\ET, home=^^, ht=^I, ind=^J, invis=\E0D\E),
12014         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
12015         nel=^M^J, rev=\E0P\E), rmso=\E(,
12016         sgr=%?%p1%p2%|%p3%|%p4%|%p5%|%p7%|%t\E0%{64}%?%p1%t%{17}%|%;%?%p2%t%{32}%|%;%?%p3%t%{16}%|%;%?%p4%t%{2}%|%;%?%p5%t%{1}%|%;%c%?%p7%tD%;\E)%e\E(%;,
12017         sgr0=\E(, smso=\E0Q\E), smul=\E0`\E),
12018 vp60|viewpoint60|addsvp60|adds viewpoint60,
12019         use=regent40,
12020 #
12021 # adds viewpoint 90 - from cornell
12022 # Note:  emacs sends ei occasionally to insure the terminal is out of
12023 #        insert mode. This unfortunately puts the viewpoint90 IN insert
12024 #        mode.  A hack to get around this is <ich1=\EF\s\EF^U>.  (Also,
12025 #   -    :ei=:im=: must be present in the termcap translation.)
12026 #   -    <xhp> indicates glitch that attributes stick to location
12027 #   -    <msgr> means it's safe to move in standout mode
12028 #   -    <clear=\EG\Ek>: clears screen and visual attributes without affecting
12029 #               the status line
12030 # Function key and label capabilities merged in from SCO.
12031 vp90|viewpoint90|adds viewpoint 90,
12032         OTbs, bw, msgr, xhp,
12033         cols#80, lines#24,
12034         clear=\EG\Ek, cub1=^H, cud1=^J, cuf1=^F,
12035         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EE,
12036         dl1=\El, ed=\Ek, el=\EK, home=\EY\s\s, ht=^I,
12037         ich1=\EF \EF\025, ind=^J, kbs=^H, kcub1=^U, kcud1=^J,
12038         kcuf1=^F, kcuu1=^Z, kf0=^B1\r, kf1=^B2\r, kf10=^B;\r,
12039         kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
12040         kf7=^B8\r, kf8=^B9\r, kf9=^B\:\r, khome=^A, lf0=F1, lf1=F2,
12041         lf10=F11, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9,
12042         lf9=F10, ll=^A, rmso=\ER\E0@\EV, rmul=\ER\E0@\EV,
12043         sgr0=\ER\E0@\EV, smso=\ER\E0Q\EV, smul=\ER\E0`\EV,
12044 # Note: if return acts weird on a980, check internal switch #2
12045 # on the top chip on the CONTROL pc board.
12046 adds980|a980|adds consul 980,
12047         OTbs, am,
12048         cols#80, lines#24,
12049         bel=^G, clear=\014$<1>\013@, cr=^M, cub1=^H, cud1=^J,
12050         cuf1=\E^E01, cup=\013%p1%{64}%+%c\E\005%p2%2d,
12051         dl1=\E\017$<13>, il1=\E\016$<13>, ind=^J, kf0=\E0, kf1=\E1,
12052         kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
12053         kf9=\E9, rmso=^O, sgr0=^O, smso=^Y^^^N,
12054
12055 #### C. Itoh Electronics
12056 #
12057 # As of 1995 these people no longer make terminals (they're still in the
12058 # printer business).  Their terminals were all clones of the DEC VT series.
12059 # They're located in Orange County, CA.
12060 #
12061
12062 # CIT 80  - vt-52 emulator, the termcap has been modified to remove
12063 #           the delay times and do an auto tab set rather than the indirect
12064 #           file used in vt100.
12065 cit80|cit-80|citoh 80,
12066         OTbs, am,
12067         cols#80, lines#24,
12068         clear=\E[H\EJ, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
12069         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\EJ, el=\EK, ff=^L,
12070         ind=^J, is2=\E>, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
12071         kcuu1=\EOA, rmkx=\E[?1l\E>, smkx=\E[?1h\E=,
12072 # From: Tim Wood <mtxinu!sybase!tim> Fri Sep 27 09:39:12 PDT 1985
12073 # (cit101: added <rmam>/<smam> based on init string, merged this with c101 -- esr)
12074 cit101|citc|C.itoh fast vt100,
12075         OTbs, am, xenl,
12076         cols#80, lines#24,
12077         bel=^G, clear=\E[H\E[2J, cnorm=\E[V\E8, cub1=^H, cud1=\E[B,
12078         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
12079         cvvis=\E7\E[U, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K,
12080         flash=\E[?5h$<200/>\E[?5l, ich1=\E[@, il1=\E[L,
12081         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[3g\E[>5g,
12082         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12083         rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
12084         sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
12085         smul=\E[4m,
12086 # CIE Terminals CIT-101e from Geoff Kuenning <callan!geoff> via BRL
12087 # The following termcap entry was created from the Callan cd100 entry.  The
12088 # last two lines (with the capabilities in caps) are used by RM-cobol to allow
12089 # full selection of combinations of reverse video, underline, and blink.
12090 # (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
12091 # f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
12092 # :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
12093 cit101e|C. Itoh CIT-101e,
12094         OTbs, OTpt, am, mir, msgr,
12095         cols#80, it#8, lines#24,
12096         acsc=, clear=\E[H\E[J, cnorm=, csr=\E[%i%p1%2d;%p2%2dr,
12097         cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH,
12098         cuu1=\E[A, cvvis=\E[?1l\E[?4l\E[?7h, dch1=\E[P, dl1=\E[M,
12099         ed=\E[J, el=\E[K, if=/usr/share/tabset/vt100, il1=\E[L,
12100         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT,
12101         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOm, kf6=\EOl,
12102         kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l,
12103         rmkx=\E>, rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h,
12104         smkx=\E=, smso=\E[7m, smul=\E[4m,
12105 # From: David S. Lawyer, June 1997:
12106 # The CIT 101-e was made in Japan in 1983-4 and imported by CIE
12107 # Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
12108 # late 1980's CIT Terminals went out of business.
12109 # There is no need to use the initialization string is=... (by invoking
12110 # tset or setterm etc.) provided that the terminal has been manually set
12111 # up (and the setup saved with ^S) to be compatible with this termcap.  To be
12112 # compatible it should be in ANSI mode (not VT52).   A set-up that
12113 # works is to set all the manually setable stuff to factory defaults
12114 # by pressing ^D in set-up mode.  Then increse the brighness with the
12115 # up-arrow key since the factory default will likely be dim on an old
12116 # terminal.  Then change any options you want (provided that they are
12117 # compatible with the termcap).  For my terminal I set: Screen
12118 # Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
12119 # on.  I also set up mine for parity (but you may not need it).  Then
12120 # save the setup with ^S.
12121 # (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
12122 cit101e-rv|Citoh CIT-101e (sets reverse video),
12123         am, eo, mir, msgr, xenl, xon,
12124         cols#80, it#8, lines#24,
12125         OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
12126         civis=\E[1v, clear=\E[H\E[J, cnorm=\E[0;3;4v, cr=^M,
12127         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
12128         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
12129         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12130         cvvis=\E[3;5v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
12131         dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l\E[?5h$<200/>,
12132         home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
12133         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
12134         is2=\E<\E>\E[?1l\E[?3l\E[?4l\E[?5h\E[?7h\E[?8h\E[3g\E[>5g\E(B\E[m\E[20l\E[1;24r\E[24;1H,
12135         kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12136         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8,
12137         rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=, rmir=\E[4l,
12138         rmso=\E[m, rmul=\E[m, rs1=\Ec\E[?7h\E[>5g, sc=\E7,
12139         sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h, smir=\E[4h,
12140         smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR,
12141         u7=\E[6n, u8=\E[?6c, u9=\E[c,
12142 cit101e-n|CIT-101e w/o am,
12143         am@,
12144         cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
12145         use=cit101e,
12146 cit101e-132|CIT-101e with 132 cols,
12147         cols#132,
12148         kbs=^H, kcub1=^H, kcud1=^J, use=cit101e,
12149 cit101e-n132|CIT-101e with 132 cols w/o am,
12150         am@,
12151         cols#132,
12152         cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
12153         use=cit101e,
12154 # CIE Terminals CIT-500 from BRL
12155 # The following SET-UP modes are assumed for normal operation:
12156 #       GENERATE_XON/XOFF:YES   DUPLEX:FULL             NEWLINE:OFF
12157 #       AUTOWRAP:ON             MODE:ANSI               SCREEN_LENGTH:64_LINES
12158 #       DSPLY_CNTRL_CODES?NO    PAGE_WIDTH:80           EDIT_MODE:OFF
12159 # Other SET-UP modes may be set for operator convenience or communication
12160 # requirements.
12161 # Hardware tabs are assumed to be set every 8 columns; they can be set up
12162 # by the "reset", "tset", or "tabs" utilities.  No delays are specified; use
12163 # "stty ixon -ixany" to enable DC3/DC1 flow control!
12164 # (cit500: I added <rmam>/<smam> based on the init string -- esr)
12165 cit500|CIE Terminals CIT-500,
12166         OTbs, OTpt, mir, msgr, xon,
12167         OTkn#10, cols#80, it#8, lines#64, vt#3,
12168         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
12169         clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
12170         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
12171         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
12172         cuu=\E[%p1%dA, cuu1=\EM, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12173         ed=\EJ, el=\EK, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
12174         il1=\E[L, ind=^J, is2=\E<\E)0, kbs=^H, kcbt=\E[Z, kcub1=\EOD,
12175         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[P, kdl1=\E[M,
12176         ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
12177         kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY, kf9=\EOZ,
12178         khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l, lf0=PF1,
12179         lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17, lf7=F18,
12180         lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rc=\E8, rev=\E[7m,
12181         ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
12182         rmso=\E[m, rmul=\E[m,
12183         rs1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>,
12184         sc=\E7, sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
12185         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
12186
12187 # C. Itoh printers begin here
12188 citoh|ci8510|8510|c.itoh 8510a,
12189         cols#80, it#8,
12190         bold=\E!, cub1@,
12191         is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073.,
12192         rep=\ER%p2%03d%p1%c, ri=\Er, rmul=\EY, sgr0=\E"\EY,
12193         smul=\EX, use=lpr,
12194 citoh-pica|citoh in pica,
12195         is1=\EN, use=citoh,
12196 citoh-elite|citoh in elite,
12197         cols#96,
12198         is1=\EE,
12199         is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089.,
12200         use=citoh,
12201 citoh-comp|citoh in compressed,
12202         cols#136,
12203         is1=\EQ,
12204         is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089\,097\,105\,113\,121\,129.,
12205         use=citoh,
12206 # citoh has infinite cols because we don't want lp ever inserting \n\t**.
12207 citoh-prop|citoh-ps|ips|citoh in proportional spacing mode,
12208         cols#32767,
12209         is1=\EP, use=citoh,
12210 citoh-6lpi|citoh in 6 lines per inch mode,
12211         is3=\EA, use=citoh,
12212 citoh-8lpi|citoh in 8 lines per inch mode,
12213         lines#88,
12214         is3=\EB, use=citoh,
12215
12216 #### Control Data (cdc)
12217 #
12218
12219 cdc456|cdc 456 terminal,
12220         OTbs, am,
12221         cols#80, lines#24,
12222         bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
12223         cup=\E1%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dl1=\EJ, ed=^X,
12224         el=^V, home=^Y, il1=\EL, ind=^J,
12225
12226 # Assorted CDC terminals from BRL (improvements by DAG & Ferd Brundick)
12227 cdc721|CDC Viking,
12228         OTbs, am,
12229         cols#80, lines#24,
12230         clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
12231         cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
12232         kcuu1=^W, khome=^Y,
12233 cdc721ll|CDC Vikingll,
12234         OTbs, am,
12235         cols#132, lines#24,
12236         clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
12237         cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
12238         kcuu1=^W, khome=^Y,
12239 # (cdc752: the BRL entry had :ll=\E1  ^Z: commented out
12240 cdc752|CDC 752,
12241         OTbs, am, bw, xhp,
12242         cols#80, lines#24,
12243         bel=^G, clear=\030\E1\s\s, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
12244         cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z, el=^V,
12245         home=\E1\s\s, ind=^J, ll=^Y, rs1=\E1  \030\002\003\017,
12246 # CDC 756
12247 # The following switch/key settings are assumed for normal operation:
12248 #       96 chars        SCROLL          FULL duplex     not BLOCK
12249 # Other switches may be set according to communication requirements.
12250 # Insert/delete-character cannot be used, as the whole display is affected.
12251 # "so" & "se" are commented out until jove handles "sg" correctly.
12252 cdc756|CDC 756,
12253         OTbs, am, bw,
12254         OTkn#10, cols#80, lines#24,
12255         bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
12256         cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z,
12257         dl1=\EJ$<6*/>, ed=^X, el=^V, home=^Y, il1=\EL$<6*/>, ind=^J,
12258         kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z, kdch1=\EI,
12259         kdl1=\EL, ked=^X, kel=^V, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED,
12260         kf4=\EE, kf5=\EF, kf6=\EG, kf7=\EH, kf8=\Ea, kf9=\Eb, khome=^Y,
12261         khts=^O, kich1=\EK, kil1=\EL, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
12262         lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, ll=^Y^Z,
12263         rs1=\031\030\002\003\017,
12264 #
12265 # CDC 721 from Robert Viduya, Ga. Tech. <ihnp4!gatech!gitpyr!robert> via BRL.
12266 #
12267 # Part of the long initialization string defines the "DOWN" key to the left
12268 # of the tab key to send an ESC.  The real ESC key is positioned way out
12269 # in right field.
12270 #
12271 # The termcap won't work in 132 column mode due to the way it it moves the
12272 # cursor.  Termcap doesn't have the capability (as far as I could tell) to
12273 # handle the 721 in 132 column mode.
12274 #
12275 # (cdc721: changed :ri: to :sr: -- esr)
12276 cdc721-esc|Control Data 721,
12277         OTbs, OTpt, am, bw, msgr, xon,
12278         OTkn#10, cols#80, it#8, lines#30,
12279         bel=^G, blink=^N, cbt=^^^K, clear=^L, cub1=^H, cud1=^Z,
12280         cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c, cuu1=^W,
12281         dch1=^^N, dim=^\, dl1=^^Q, ed=^^P, el=^K, home=^Y, hts=^^^RW,
12282         ich1=^^O, il1=^^R, ind=\036W =\036U, invis=^^^R[,
12283         is2=\036\022B\003\036\035\017\022\025\035\036E\036\022H\036\022J\036\022L\036\022N\036\022P\036\022Q\036\022\036\022\^\036\022b\036\022i\036W =\036\022Z\036\011C1-` `!k/o,
12284         kbs=^H, kcub1=^H, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^q,
12285         kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, kf7=^^x,
12286         kf8=^^y, kf9=^^z, khome=^Y, ll=^B =, rev=^^D,
12287         ri=\036W =\036V, rmir=, rmkx=^^^Rl, rmso=^^E, rmul=^],
12288         sgr0=\017\025\035\036E\036\022\\, smir=, smkx=^^^Rk,
12289         smso=^^D, smul=^\, tbc=^^^RY,
12290
12291 #### Getronics
12292 #
12293 # Getronics is a Dutch electronics company that at one time was called
12294 # `Geveke' and made async terminals; but (according to the company itself!)
12295 # they've lost all their documentation on the command set.  The hardware
12296 # documentation suggests the terminals were actually manufactured by a
12297 # Taiwanese electronics company named Cal-Comp.  There are known
12298 # to have been at least two models, the 33 and the 50.
12299 #
12300
12301 # The 50 seems to be a top end vt220 clone, with the addition of a higher
12302 # screen resolution, a larger screen, at least 1 page of memory above and
12303 # below the screen, apparently pages of memory right and left of the screen
12304 # which can be panned, and about 75 function keys (15 function keys x normal,
12305 # shift, control, func A, func B). It also has more setup possibilities than
12306 # the vt220. The monitor case is dated November 1978 and the keyboard case is
12307 # May 1982.
12308 #
12309 # The vt100 emulation works as is.  The entry below describes the rather
12310 # non-conformant (but more featureful) ANSI mode.
12311 #
12312 # From: Stephen Peterson <stv@utrecht.ow.nl>, 27 May 1995
12313 visa50|geveke visa 50 terminal in ansi 80 character mode,
12314         bw, mir, msgr,
12315         cols#80, lines#25,
12316         acsc=0_aaffggh jjkkllmmnnooqqssttuuvvwwxx, bel=^G,
12317         blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=^M,
12318         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
12319         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
12320         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12321         dch=\E[%p1%dX, dch1=\E[X, dim=\E[2m, dl=\E[%p1%dM,
12322         dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, home=\E[H,
12323         hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
12324         il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m,
12325         is2=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h,
12326         ka1=\E[f, ka3=\EOQ, kb2=\EOP, kbs=^H, kc1=\EOR, kc3=\EOS,
12327         kcub1=\E[D, kcud1=\E[A, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
12328         kdl1=\EOS, kf0=\E010, kf1=\E001, kf10=\E011, kf2=\E002,
12329         kf3=\E003, kf4=\E004, kf5=\E005, kf6=\E006, kf7=\E007,
12330         kf8=\E008, kf9=\E009, khome=\E[f, lf2=A delete char,
12331         lf3=A insert line, lf4=A delete line, lf5=A clear,
12332         lf6=A ce of/cf gn, lf7=A print, lf8=A on-line,
12333         lf9=A funcl0=A send, nel=^M^J, rev=\E[7m, rmacs=\E[3l,
12334         rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[0;2m,
12335         rmul=\E[0m, sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h,
12336         smir=\E[4h, smkx=\E=, smso=\E[2;7m, smul=\E[4m, tbc=\E[3g,
12337         vpa=\E[%i%p1%dd,
12338
12339 #### Human Designed Systems (Concept)
12340 #
12341 #       Human Designed Systems
12342 #       400 Fehley Drive
12343 #       King of Prussia, PA 19406
12344 #       Vox: (610)-277-8300
12345 #       Fax: (610)-275-5739
12346 #       Net: support@hds.com
12347 #
12348 # John Martin <john@hds.com> is their termcap expert.  They're mostly out of
12349 # the character-terminal business now (1995) and making X terminals.  In
12350 # particular, the whole `Concept' line described here was discontinued long
12351 # ago.
12352 #
12353
12354 # From: <vax135!hpk>  Sat Jun 27 07:41:20 1981
12355 # Extensive changes to c108 by arpavax:eric Feb 1982
12356 # Some unknown person at SCO then translated it to terminfo.
12357 #
12358 # There seem to be a number of different versions of the C108 PROMS
12359 # (with bug fixes in its Z-80 program).
12360 #
12361 # The first one that we had would lock out the keyboard of you
12362 # sent lots of short lines (like /usr/dict/words) at 9600 baud.
12363 # Try that on your C108 and see if it sends a ^S when you type it.
12364 # If so, you have an old version of the PROMs.
12365 #
12366 # You should configure the C108 to send ^S/^Q before running this.
12367 # It is much faster (at 9600 baud) than the c100 because the delays
12368 # are not fixed.
12369 # new status line display entries for c108-8p:
12370 # <is3> - init str #3 - setup term for status display -
12371 # set programmer mode, select window 2, define window at last
12372 # line of memory, set bkgnd stat mesg there, select window 0.
12373 #
12374 # <tsl> - to status line - select window 2, home cursor, erase to
12375 # end-of-window, 1/2 bright on, goto(line#0, col#?)
12376 #
12377 # <fsl> - from status line - 1/2 bright off, select window 0
12378 #
12379 # <dsl> - disable status display - set bkgnd status mesg with
12380 # illegal window #
12381 #
12382 # There are probably more function keys that should be added but
12383 # I don't know what they are.
12384 #
12385 # No delays needed on c108 because of ^S/^Q handshaking
12386 #
12387 c108|concept108|c108-8p|concept108-8p|concept 108 w/8 pages,
12388         is3=\EU\E z"\Ev\001\177 !p\E ;"\E z \Ev  \001\177p\Ep\n,
12389         rmcup=\Ev  \001\177p\Ep\r\n, use=c108-4p,
12390 c108-4p|concept108-4p|concept 108 w/4 pages,
12391         OTbs, eslok, hs, xon,
12392         pb@,
12393         acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=^M,
12394         cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}%>%t\001%{96}%-%;%{32}%+%c,
12395         cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s,
12396         ind=^J, is1=\EK\E!\E F,
12397         is3=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n,
12398         rmacs=\Ej\s, rmcup=\Ev  \001 p\Ep\r\n, smacs=\Ej!,
12399         smcup=\EU\Ev  8p\Ep\r\E\025,
12400         tsl=\E z"\E?\E\005\EE\Ea %+\s, use=c100,
12401 c108-rv|c108-rv-8p|concept 108 w/8 pages in reverse video,
12402         rmcup=\Ev  \002 p\Ep\r\n, smcup=\EU\Ev  8p\Ep\r,
12403         use=c108-rv-4p,
12404 c108-rv-4p|concept108rv4p|concept 108 w/4 pages in reverse video,
12405         flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee, smso=\EE,
12406         use=c108-4p,
12407 c108-w|c108-w-8p|concept108-w-8|concept108-w8p|concept 108 w/8 pages in wide mode,
12408         cols#132,
12409         is1=\E F\E", rmcup=\Ev  ^A0\001D\Ep\r\n,
12410         smcup=\EU\Ev  8\001D\Ep\r, use=c108-8p,
12411
12412 # Concept 100:
12413 # These have only window relative cursor addressing, not screen
12414 # relative. To get it to work right here, smcup/rmcup (which
12415 # were invented for the concept) lock you into a one page
12416 # window for screen style programs.
12417 #
12418 # To get out of the one page window, we use a clever trick:
12419 # we set the window size to zero ("\Ev    " in rmcup) which the
12420 # terminal recognizes as an error and resets the window to all
12421 # of memory.
12422 #
12423 # This trick works on c100 but does not on c108, sigh.
12424 #
12425 # Some tty drivers use cr3 for concept, others use nl3, hence
12426 # the delays on cr and ind below. This padding is only needed at
12427 # 9600 baud and up.  One or the other is commented out depending on
12428 # local conventions.
12429 #
12430 # 2 ms padding on <rmcup> isn't always enough. 6 works fine. Maybe
12431 # less than 6 but more than 2 will work.
12432 #
12433 # Note: can't use function keys f7-f10 because they are
12434 # indistinguishable from arrow keys (!), also, del char and
12435 # clear eol use xon/xoff so they probably won't work very well.
12436 #
12437 # Also note that we don't define insrt/del char/delline/eop/send
12438 # because they don't transmit unless we reset them - I figured
12439 # it was a bad idea to clobber their definitions.
12440 #
12441 # The <mc5> sequence changes the escape character to ^^ so that
12442 # escapes will be passed through to the printer. Only trouble
12443 # is that ^^ won't be - ^^ was chosen to be unlikely.
12444 # Unfortunately, if you're sending raster bits through to be
12445 # plotted, any character you choose will be likely, so we lose.
12446 #
12447 # \EQ"\EY(^W (send anything from printer to host, for xon/xoff)
12448 # cannot be # in is2 because it will hang a c100 with no printer
12449 # if sent twice.
12450 c100|concept100|concept|c104|c100-4p|hds concept 100,
12451         OTbs, am, eo, mir, ul, xenl,
12452         cols#80, lines#24, pb#9600, vt#8,
12453         bel=^G, blink=\EC, clear=\E?\E\005$<2*>, cr=$<9>\r,
12454         cub1=^H, cud1=^J, cuf1=\E=,
12455         cup=\Ea%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E;,
12456         dch1=\E\021$<16*>, dim=\EE, dl1=\E\002$<3*>,
12457         ed=\E\005$<16*>, el=\E\025$<16>, flash=\Ek$<200>\EK,
12458         ht=\011$<8>, il1=\E\022$<3*>, ind=^J, invis=\EH, ip=$<16*>,
12459         is1=\EK,
12460         is2=\EU\Ef\E7\E5\E8\El\ENH\E\0\Eo&\0\Eo'\E\Eo!\0\E\007!\E\010A@ \E4#\:"\E\:a\E4#;"\E\:b\E4#<"\E\:c,
12461         is3=\Ev    $<6>\Ep\n, kbs=^H, kcbt=\E', kctab=\E_,
12462         kcub1=\E>, kcud1=\E<, kcuf1=\E=, kcuu1=\E;, kdch1=\E^Q,
12463         kdl1=\E^B, ked=\E^C, kel=\E^S, kf1=\E5, kf2=\E6, kf3=\E7,
12464         kf4=\E8, kf5=\E9, kf6=\E\:a, kf7=\E\:b, kf8=\E\:c, khome=\E?,
12465         khts=\E], kich1=\E^P, kil1=\E^R, kind=\E[, knp=\E-, kpp=\E.,
12466         kri=\E\\, krmir=\E\0, mc4=\036o \E\EQ!\EYP\027,
12467         mc5=\EQ"\EY(\027\EYD\Eo \036, prot=\EI,
12468         rep=\Er%p1%c%p2%{32}%+%c$<.2*>, rev=\ED,
12469         rmcup=\Ev    $<6>\Ep\r\n, rmir=\E\s\s, rmkx=\Ex,
12470         rmso=\Ed, rmul=\Eg, sgr0=\EN@,
12471         smcup=\EU\Ev  8p\Ep\r\E\025$<16>, smir=\E^P, smkx=\EX,
12472         smso=\ED, smul=\EG,
12473 c100-rv|c100-rv-4p|concept100-rv|c100 rev video,
12474         cnorm@, cvvis@, flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee,
12475         smso=\EE, use=c100,
12476 oc100|oconcept|c100-1p|old 1 page concept 100,
12477         in,
12478         is3@, use=c100,
12479
12480 # From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
12481 # Lots of notes, originally inline, but ncurses doesn't grok that.
12482 #
12483 # am:   not available in power on mode, but turned on with \E[=107;207h in
12484 #       is2=.  Also, \E=124l in is2= could have been used to prevent needing
12485 #       to specify xenl:, but that would have rendered the last space on the
12486 #       last line useless.
12487 # bw:   Not available in power on mode, but turned on with \E[=107;207h in
12488 #       is2=.
12489 # clear: Could be done with \E[2J alone, except that vi (and probably most
12490 #       other programs) assume that this also homes the cursor.
12491 # dsl:  Go to window 2, go to the beginning of the line, use a line feed to
12492 #       scroll the window, and go back to window 1.
12493 # is2:  the string may cause a warning to be issued by tic that it
12494 #       found a very long line and that it suspects that a comma is missing
12495 #       somewhere.  This warning can be ignored (unless it comes up more than
12496 #       once).  The initialization string contains the following commands:
12497 #
12498 #        [Setup mode items changed from factory defaults:]
12499 #               \E)0                    set alternate character set to
12500 #                                               graphics
12501 #               ^O                      set character set to default
12502 #        [In case it wasn't]
12503 #               \E[m                    turn off all attributes
12504 #        [In case they weren't off]
12505 #               \E[=107;                cursor wrap and
12506 #                       207h                    character wrap on
12507 #               \E[90;3u                set Fkey definitions to "transmit"
12508 #                                               defaults
12509 #               \E[92;3u                set cursor key definitions to
12510 #                                               "transmit" defaults
12511 #               \E[43;1u                set shift F13 to transmit...
12512 #               \177\E$P\177
12513 #               \E[44;1u                set shift F14 to transmit...
12514 #                       \177\E$Q\177
12515 #               \E[45;1u                set shift F15 to transmit...
12516 #                       \177\E$R\177
12517 #               \E[46;1u                set shift F16 to transmit...
12518 #                       \177\E$S\177
12519 #               \E[200;1u               set shift up to transmit...
12520 #                       \177\E$A\177
12521 #               \E[201;1u               set shift down to transmit...
12522 #                       \177\E$B\177
12523 #               \E[202;1u               set shift right to transmit...
12524 #                       \177\E$C\177
12525 #               \E[203;1u               set shift left to transmit...
12526 #                       \177\E$D\177
12527 #               \E[204;1u               set shift home to transmit...
12528 #                       \177\E$H\177
12529 #               \E[212;1u               set backtab to transmit...
12530 #                       \177\E$I\177
12531 #               \E[213;1u               set shift backspace to transmit...
12532 #                       \177\E$^H\177
12533 #               \E[214;1u               set shift del to transmit...
12534 #                       "\E$\177"
12535 #        [Necessary items not mentioned in setup mode:]
12536 #               \E[2!w                  move to window 2
12537 #               \E[25;25w               define window as line 25 of memory
12538 #               \E[!w                   move to window 1
12539 #               \E[2*w                  show current line of window 2 as
12540 #                                               status line
12541 #               \E[2+x                  set meta key to use high bit
12542 #               \E[;3+}                 move underline to bottom of character
12543 #
12544 #       All Fkeys are set to their default transmit definitions with \E[90;3u
12545 #       in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
12546 #       setting MUST be redefined or deactivated, because the default is
12547 #       contained in almost all of this terminal's Fkey strings!  If for some
12548 #       reason "quit" cannot be altered, the Fkeys can, but it would be
12549 #       necessary to change ^| to ^] in all of these definitions, and add
12550 #       \E[2;029!t to is2.
12551 # lines: is set to 24 because this terminal refuses to treat the 25th
12552 #       line normally.
12553 # ll:   Not available in power on mode, but turned on with \E[=107;207h in
12554 #       is2=.
12555 # lm:   Pointless, given that this definition locks a single screen of
12556 #       memory into view, but what the hey...
12557 # rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
12558 #       other attributes alone), but some programs expect this to turn off
12559 #       everything.
12560 # rmul: Could use \E[4!{ to turn off only underline (leaving any other
12561 #       attributes alone), but some programs expect this to turn off
12562 #       everything.
12563 # sgr:  Attributes are set on this terminal with the string \E[ followed by
12564 #       a list of attribute code numbers (in decimal, separated by
12565 #       semicolons), followed by the character m.  The attribute code
12566 #       numbers are:
12567 #                 1 for bold;
12568 #                 2 for dim (which is ignored in power on mode);
12569 #                 4 for underline;
12570 #                 5 for blinking;
12571 #                 7 for inverse;
12572 #                 8 for not displayable; and
12573 #               =99 for protected (except that there are strange side
12574 #               effects to protected characters which make them inadvisable).
12575 #        The mapping of terminfo parameters to attributes is as follows:
12576 #               %p1 (standout) = bold and inverse together;
12577 #               %p2 (underline) = underline;
12578 #               %p3 (reverse) = inverse;
12579 #               %p4 (blink) = blinking;
12580 #               %p5 (dim) is ignored;
12581 #               %p6 (bold) = bold;
12582 #               %p7 (invisible) = not displayable;
12583 #               %p8 (protected) is ignored; and
12584 #               %p9 (alt char set) = alt char set.
12585 #        The code to do this is:
12586 #               \E[0            OUTPUT  \E[0
12587 #               %?%p1%p6%O      IF      (standout; bold) OR
12588 #               %t;1            THEN    OUTPUT  ;1
12589 #               %;              ENDIF
12590 #               %?%p2           IF      underline
12591 #               %t;4            THEN    OUTPUT  ;4
12592 #               %;              ENDIF
12593 #               %?%p4           IF      blink
12594 #               %t;5            THEN    OUTPUT  ;5
12595 #               %;              ENDIF
12596 #               %?%p1%p3%O      IF      (standout; reverse) OR
12597 #               %t;7            THEN    OUTPUT  ;7
12598 #               %;              ENDIF
12599 #               %?%p7           IF      invisible
12600 #               %t;8            THEN    OUTPUT  ;8
12601 #               %;              ENDIF
12602 #               m               OUTPUT  m
12603 #               %?%p9           IF      altcharset
12604 #               %t^N            THEN    OUTPUT  ^N
12605 #               %e^O            ELSE    OUTPUT  ^O
12606 #               %;              ENDIF
12607 # sgr0: Everything is turned off (including alternate character set), since
12608 #       there is no way of knowing what it is that the program wants turned
12609 #       off.
12610 # smul: The "underline" attribute is reconfigurable to an overline or
12611 #       strikethru, or (as done with \E[;3+} in is2=), to a line at the true
12612 #       bottom of the character cell.  This was done to allow for more readable
12613 #       underlined characters, and to be able to distinguish between an
12614 #       underlined space, an underscore, and an underlined underscore.
12615 # xenl: Terminal can be configured to not need this, but this "glitch"
12616 #       behavior is actually preferable with autowrap terminals.
12617 #
12618 # Parameters kf31= thru kf53= actually contain the strings sent by the shifted
12619 # Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
12620 # string modifies the 'O' in kf43 to kf46 to a '$'.
12621 #
12622 # kcbt was originally ^I but redefined in is2=.
12623 # kHOM was \E[H originally but redefined in is2=, as were a number of
12624 # other keys.
12625 # kDC was originally \177 but redefined in is2=.
12626 #
12627 # kbs:  Shift was also ^H originally but redefined as \E$^H in is2=.
12628 # tsl:  Go to window 2, then do an hpa=.
12629 #
12630 #------- flash=\E[8;3!}^G\E[3;3!}
12631 #------- flash=\E[?5h$<100>\E[?5l
12632 # There are two ways to flash the screen, both of which have their drawbacks.
12633 # The first is to set the bell mode to video, transmit a bell character, and
12634 # set the bell mode back - but to what?  There is no way of knowing what the
12635 # user's old bell setting was before we messed with it.  Worse, the command to
12636 # set the bell mode also sets the key click volume, and there is no way to say
12637 # "leave that alone", or to know what it's set to, either.
12638 # The second way to do a flash is to set the screen to inverse video, pad for a
12639 # tenth of a second, and set it back - but like before, there's no way to know
12640 # that the screen wasn't ALREADY in inverse video, or that the user may prefer
12641 # it that way.  The point is moot anyway, since vi (and probably other
12642 # programs) assume that by defining flash=, you want the computer to use it
12643 # INSTEAD of bel=, rather than as a secondary type of signal.
12644 #
12645 #------- cvvis=\E[+{
12646 # The is the power on setting, which is also as visible as the cursor
12647 # gets.
12648 #-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
12649 # Windowing is possible, but not defined here because it is also used to
12650 # emulate status line functions.  Allowing a program to set a window could
12651 # clobber the status line or render it unusable.  There is additional memory,
12652 # but screen scroll functions are destructive and do not make use of it.
12653 #
12654 #-------   dim=                 Not available in power on mode.
12655 # You have a choice of defining low intensity characters as "half bright" and
12656 # high intensity as "normal", or defining low as "normal" and high as "bold".
12657 # No matter which you choose, only one of either "half bright" or "bold" is
12658 # available at any time, so taking the time to override the default is
12659 # pointless.
12660 #
12661 #-------  prot=\E[=0;99m
12662 # Not defined, because it appears to have some strange side effects.
12663 #------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
12664 #------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
12665 #-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
12666 #        Available, but making them available to programs is inadvisable.
12667 #        The code to do this is:
12668 #               %?%p1%{24}%<    IF      ((key; 24) <;
12669 #               %p1%{30}%>               ((key; 30) >;
12670 #               %p1%{54}%<                (key; 54) <
12671 #               %A                       ) AND
12672 #               %O                      ) OR
12673 #        [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
12674 #               %t\E[           THEN    OUTPUT  \E[
12675 #               %p1%d                   OUTPUT  (key) as decimal
12676 #        [next line applies to pfx only]
12677 #               ;1                      OUTPUT  ;1
12678 #               u                       OUTPUT  u
12679 #               \177                    OUTPUT  \177
12680 #               %p2%s                   OUTPUT  (string) as string
12681 #               \177                    OUTPUT  \177
12682 #        [DEL chosen as delimiter, but could be any character]
12683 #        [implied:              ELSE    do nothing]
12684 #               %;              ENDIF
12685 #
12686 #-------   rs2=
12687 # Not defined since anything it might do could be done faster and easier with
12688 # either Meta-Shift-Reset or the main power switch.
12689 #
12690 #-------  smkx=\E[1!z
12691 #-------  rmkx=\E[!z
12692 # These sequences apply to the cursor and setup keys only, not to the
12693 # numeric keypad.  But it doesn't matter anyway, since making these
12694 # available to programs is inadvisable.
12695 # For the key definitions below, all sequences beginning with \E$ are
12696 # custom and programmed into the terminal via is2.  \E$ also has no
12697 # meaning to any other terminal.
12698 #
12699 #------- cmdch=\E[;%p1%d!t
12700 # Available, but making it available to programs is inadvisable.
12701 #------- smxon=\E[1*q
12702 # Available, but making it available to programs is inadvisable.
12703 # Terminal will send XON/XOFF on buffer overflow.
12704 #------- rmxon=\E[*q
12705 # Available, but making it available to programs is inadvisable.
12706 # Terminal will not notify on buffer overflow.
12707 #-------   smm=\E[2+x
12708 #-------   rmm=\E[+x
12709 # Available, but making them available to programs is inadvisable.
12710 #
12711 # Printing:
12712 #        It's not made clear in the manuals, but based on other ansi/vt type
12713 #        terminals, it's a good guess that this terminal is capable of both
12714 #        "transparent print" (which doesn't copy data to the screen, and
12715 #        therefore needs mc5i: specified to say so) and "auxilliary print"
12716 #        (which does duplicate printed data on the screen, in which case mc4=
12717 #        and mc5= should use the \E[?4i and \E[?5i strings instead).
12718
12719 hds200|Human Designed Systems HDS200,
12720         am, bw, eslok, hs, km, mir, msgr, xenl, xon,
12721         cols#80, it#8, lines#24, lm#0,
12722         acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12723         blink=\E[0;5m, bold=\E[0;1m, cbt=\E[Z, civis=\E[6+{,
12724         clear=\E[H\E[J, cnorm=\E[+{, cr=^M,
12725         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
12726         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
12727         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12728         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12729         dsl=\E[2!w\r\n\E[!w, ed=\E[J, el=\E[K, el1=\E[1K,
12730         fsl=\E[!w, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
12731         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
12732         invis=\E[0;8m,
12733         is2=\E)0\017\E[m\E[=107;207h\E[90;3u\E[92;3u\E[43;1u\177\E$P\177\E[44;1u\177\E$Q\177\E[45;1u\177\E$R\177\E[46;1u\177\E$S\177\E[200;1u\177\E$A\177\E[201;1u\177\E$B\177\E[202;1u\177\E$C\177\E[203;1u\177\E$D\177\E[204;1u\177\E$H\177\E[212;1u\177\E$I\177\E[213;1u\177\E$\010\177\E[214;1u"\E$\177"\E[2!w\E[25;25w\E[!w\E[2*w\E[2+x\E[;3+},
12734         kDC=\E$\177, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kbs=^H,
12735         kcbt=\E$I, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12736         kdch1=\177, kent=^M, kf1=^\001\r, kf10=^\010\r,
12737         kf11=^\011\r, kf12=^\012\r, kf13=\EOP, kf14=\EOQ,
12738         kf15=\EOR, kf16=\EOS, kf17=^\017\r, kf18=^\018\r,
12739         kf19=^\019\r, kf2=^\002\r, kf20=^\020\r, kf21=^\021\r,
12740         kf22=^\022\r, kf23=^\023\r, kf3=^\003\r, kf31=^\031\r,
12741         kf32=^\032\r, kf33=^\033\r, kf34=^\034\r, kf35=^\035\r,
12742         kf36=^\036\r, kf37=^\037\r, kf38=^\038\r, kf39=^\039\r,
12743         kf4=^\004\r, kf40=^\040\r, kf41=^\041\r, kf42=^\042\r,
12744         kf43=\E$P, kf44=\E$Q, kf45=\E$R, kf46=\E$S, kf47=^\047\r,
12745         kf48=^\048\r, kf49=^\049\r, kf5=^\005\r, kf50=^\050\r,
12746         kf51=^\051\r, kf52=^\052\r, kf53=^\053\r, kf6=^\006\r,
12747         kf7=^\007\r, kf8=^\008\r, kf9=^\009\r, khome=\E[H,
12748         kind=\E[T, knp=\E[U, kpp=\E[V, kri=\E[S, ll=\E[H\E[A,
12749         nel=\E[E, rc=\E8, rev=\E[0;7m, ri=\EM, rmacs=^O, rmir=\E[4l,
12750         rmso=\E[m\017, rmul=\E[m\017, sc=\E7,
12751         sgr=\E[0%?%p1%p6%O%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%O%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
12752         sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m,
12753         smul=\E[0;4m, tbc=\E[3g, tsl=\E[2!w\E[%i%p1%dG,
12754         vpa=\E[%i%p1%dd, use=ansi+pp,
12755
12756 # <ht> through <el> included to specify padding needed in raw mode.
12757 # (avt-ns: added empty <acsc> to suppress a tic warning --esr)
12758 avt-ns|concept avt no status line,
12759         OTbs, am, eo, mir, ul, xenl, xon,
12760         cols#80, it#8, lines#24, lm#192,
12761         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
12762         clear=\E[H\E[J$<38>, cnorm=\E[=119l, cr=^M,
12763         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
12764         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
12765         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12766         cvvis=\E[=119h, dch1=\E[P, dim=\E[1!{, dl=\E[%p1%dM$<4*>,
12767         dl1=\E[M$<4>, ed=\E[J$<96>, el=\E[K$<6>, home=\E[H,
12768         hpa=\E[%p1%{1}%+%dG, ht=\011$<4>, hts=\EH, ich=\E[%p1%d@,
12769         ich1=\E[@, il=\E[%p1%dL$<4*>, il1=\E[L$<4>, ind=\n$<8>,
12770         invis=\E[8m, ip=$<4>, is1=\E[=103l\E[=205l,
12771         is2=\E[1*q\E[2!t\E[7!t\E[=4;101;119;122l\E[=107;118;207h\E)1\E[1Q\EW\E[!y\E[!z\E>\E[0\:0\:32!r\E[0*w\E[w\E2\r\n\E[2;27!t,
12772         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12773         kdch1=\E^B\r, ked=\E^D\r, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
12774         kf4=\EOS, khome=\E[H, kich1=\E^A\r, kil1=\E^C\r, ll=\E[24H,
12775         mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
12776         pfloc=\E[%p1%d;0u#%p2%s#, pfx=\E[%p1%d;1u#%p2%s#,
12777         prot=\E[99m, rc=\E8, rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
12778         ri=\EM$<4>, rmacs=\016$<1>, rmcup=\E[w\E2\r\n,
12779         rmir=\E[4l, rmkx=\E[!z\E[0;2u, rmso=\E[7!{, rmul=\E[4!{,
12780         sc=\E7,
12781         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;%?%p8%t99;%;m%?%p5%t\E[1!{%;%?%p9%t\017%e\016%;$<1>,
12782         sgr0=\E[m\016$<1>, smacs=\017$<1>,
12783         smcup=\E[=4l\E[1;24w\E2\r, smir=\E[4h,
12784         smkx=\E[1!z\E[0;3u, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
12785         vpa=\E[%p1%{1}%+%dd,
12786 avt-rv-ns|concept avt in reverse video mode/no status line,
12787         flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
12788         use=avt-ns,
12789 avt-w-ns|concept avt in 132 column mode/no status line,
12790         is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
12791         use=avt-ns,
12792 avt-w-rv-ns|concept avt in 132 column mode/no status line/reverse video,
12793         flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
12794         smcup=\E[H\E[1;24;1;132w, use=avt-ns,
12795
12796 # Concept AVT with status line. We get the status line using the
12797 # "Background status line" feature of the terminal. We swipe the
12798 # first line of memory in window 2 for the status line, keeping
12799 # 191 lines of memory and 24 screen lines for regular use.
12800 # The first line is used instead of the last so that this works
12801 # on both 4 and 8 page AVTs. (Note the lm#191 or 192 - this
12802 # assumes an 8 page AVT but lm isn't currently used anywhere.)
12803 #
12804 avt+s|concept avt status line changes,
12805         eslok, hs,
12806         lm#191,
12807         dsl=\E[0*w, fsl=\E[1;1!w,
12808         is3=\E[2w\E[2!w\E[1;1;1;80w\E[H\E[2*w\E[1!w\E2\r\n,
12809         rmcup=\E[2w\E2\r\n, smcup=\E[2;25w\E2\r,
12810         tsl=\E[2;1!w\E[;%p1%dH\E[2K,
12811 avt|avt-s|concept-avt|avt w/80 columns,
12812         use=avt+s, use=avt-ns,
12813 avt-rv|avt-rv-s|avt reverse video w/sl,
12814         flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
12815         use=avt+s, use=avt-ns,
12816 avt-w|avt-w-s|concept avt 132 cols+status,
12817         is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
12818         use=avt+s, use=avt-ns,
12819 avt-w-rv|avt-w-rv-s|avt wide+status+rv,
12820         flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
12821         smcup=\E[H\E[1;24;1;132w, use=avt+s, use=avt-ns,
12822
12823 #### Contel Business Systems.
12824 #
12825
12826 # Contel c300 and c320 terminals.
12827 contel300|contel320|c300|Contel Business Systems C-300 or C-320,
12828         am, in, xon,
12829         cols#80, lines#24, xmc#1,
12830         bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
12831         cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
12832         dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
12833         el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
12834         hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
12835         kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
12836         kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
12837         rmso=\E!\0, sgr0=\E!\0, smso=\E!\r, tbc=\E3,
12838 # Contel c301 and c321 terminals.
12839 contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321,
12840         flash@, ich1@, ip@, rmso=\E!\0$<20>, smso=\E!\r$<20>,
12841         use=contel300,
12842
12843 #### Data General (dg)
12844 #
12845 # According to James Carlson <carlson@xylogics.com> writing in January 1995,
12846 # the terminals group at Data General was shut down in 1991; all these
12847 # terminals have thus been discontinued.
12848 #
12849 # DG terminals have function keys that respond to the SHIFT and CTRL keys,
12850 # e.g., SHIFT-F1 generates a different code from F1.  To number the keys
12851 # sequentially, first the unmodified key codes are listed as F1 through F15.
12852 # Then their SHIFT versions are listed as F16 through F30, their CTRL versions
12853 # are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
12854 # F46 through F60.  This is done in the private "includes" below whose names
12855 # start with "dgkeys+".
12856 #
12857 # DG terminals generally support 8 bit characters.  For each of these terminals
12858 # two descriptions are supplied:
12859 #       1) A default description for 8 bits/character communications, which
12860 #          uses the default DG international character set and keyboard codes.
12861 #       2) A description with suffix "-7b" for 7 bits/character communications.
12862 #          This description must use the NON-DEFAULT native keyboard language.
12863
12864 # Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
12865 # Ctrl/Shift fdkeys (kf34-kf44).
12866
12867 dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys,
12868         ka1=\233020z, ka3=\233021z, kc1=\233022z, kc3=\233023z,
12869         kclr=\2332J, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
12870         kcuu1=\233A, kel=\233K, kf1=\233001z, kf10=\233010z,
12871         kf11=\233011z, kf12=\233012z, kf13=\233013z,
12872         kf14=\233014z, kf15=\233000z, kf16=\233101z,
12873         kf17=\233102z, kf18=\233103z, kf19=\233104z,
12874         kf2=\233002z, kf20=\233105z, kf21=\233106z,
12875         kf22=\233107z, kf23=\233108z, kf24=\233109z,
12876         kf25=\233110z, kf26=\233111z, kf27=\233112z,
12877         kf28=\233113z, kf29=\233114z, kf3=\233003z,
12878         kf30=\233100z, kf31=\233201z, kf32=\233202z,
12879         kf33=\233203z, kf34=\233204z, kf35=\233205z,
12880         kf36=\233206z, kf37=\233207z, kf38=\233208z,
12881         kf39=\233209z, kf4=\233004z, kf40=\233210z,
12882         kf41=\233211z, kf42=\233212z, kf43=\233213z,
12883         kf44=\233214z, kf45=\233200z, kf46=\233301z,
12884         kf47=\233302z, kf48=\233303z, kf49=\233304z,
12885         kf5=\233005z, kf50=\233305z, kf51=\233306z,
12886         kf52=\233307z, kf53=\233308z, kf54=\233309z,
12887         kf55=\233310z, kf56=\233311z, kf57=\233312z,
12888         kf58=\233313z, kf59=\233314z, kf6=\233006z,
12889         kf60=\233300z, kf7=\233007z, kf8=\233008z, kf9=\233009z,
12890         khome=\233H, kprt=\233i,
12891
12892 dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys,
12893         ka1=\E[020z, ka3=\E[021z, kc1=\E[022z, kc3=\E[023z,
12894         kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12895         kel=\E[K, kf1=\E[001z, kf10=\E[010z, kf11=\E[011z,
12896         kf12=\E[012z, kf13=\E[013z, kf14=\E[014z, kf15=\E[000z,
12897         kf16=\E[101z, kf17=\E[102z, kf18=\E[103z, kf19=\E[104z,
12898         kf2=\E[002z, kf20=\E[105z, kf21=\E[106z, kf22=\E[107z,
12899         kf23=\E[108z, kf24=\E[109z, kf25=\E[110z, kf26=\E[111z,
12900         kf27=\E[112z, kf28=\E[113z, kf29=\E[114z, kf3=\E[003z,
12901         kf30=\E[100z, kf31=\E[201z, kf32=\E[202z, kf33=\E[203z,
12902         kf34=\E[204z, kf35=\E[205z, kf36=\E[206z, kf37=\E[207z,
12903         kf38=\E[208z, kf39=\E[209z, kf4=\E[004z, kf40=\E[210z,
12904         kf41=\E[211z, kf42=\E[212z, kf43=\E[213z, kf44=\E[214z,
12905         kf45=\E[200z, kf46=\E[301z, kf47=\E[302z, kf48=\E[303z,
12906         kf49=\E[304z, kf5=\E[005z, kf50=\E[305z, kf51=\E[306z,
12907         kf52=\E[307z, kf53=\E[308z, kf54=\E[309z, kf55=\E[310z,
12908         kf56=\E[311z, kf57=\E[312z, kf58=\E[313z, kf59=\E[314z,
12909         kf6=\E[006z, kf60=\E[300z, kf7=\E[007z, kf8=\E[008z,
12910         kf9=\E[009z, khome=\E[H, kprt=\E[i,
12911
12912 dgkeys+11|Private entry describing 11 minimal-subset DG mode special keys,
12913         kclr=^L, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kel=^K,
12914         kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^a, kf13=^^b, kf14=^^c,
12915         kf15=^^d, kf16=^^e, kf17=^^f, kf18=^^g, kf19=^^h, kf2=^^r,
12916         kf20=^^i, kf21=^^j, kf22=^^k, kf23=^^1, kf24=^^2, kf25=^^3,
12917         kf26=^^4, kf27=^^5, kf28=^^6, kf29=^^7, kf3=^^s, kf30=^^8,
12918         kf31=^^9, kf32=^^\:, kf33=^^;, kf34=^^!, kf35=^^", kf36=^^#,
12919         kf37=^^$, kf38=^^%%, kf39=^^&, kf4=^^t, kf40=^^', kf41=^^(,
12920         kf42=^^), kf43=^^*, kf44=^^+, kf5=^^u, kf6=^^v, kf7=^^w,
12921         kf8=^^x, kf9=^^y, khome=^H,
12922
12923 dgkeys+15|Private entry describing 15 DG mode special keys,
12924         kHOM=^^^H, kLFT=^^^Y, kRIT=^^^X, ka1=^^\\, ka3=^^], kc1=^^\^,
12925         kc3=^^_, kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^|, kf13=^^},
12926         kf14=^^~, kf15=^^p, kf16=^^a, kf17=^^b, kf18=^^c, kf19=^^d,
12927         kf2=^^r, kf20=^^e, kf21=^^f, kf22=^^g, kf23=^^h, kf24=^^i,
12928         kf25=^^j, kf26=^^k, kf27=^^l, kf28=^^m, kf29=^^n, kf3=^^s,
12929         kf30=^^`, kf31=^^1, kf32=^^2, kf33=^^3, kf34=^^4, kf35=^^5,
12930         kf36=^^6, kf37=^^7, kf38=^^8, kf39=^^9, kf4=^^t, kf40=^^\:,
12931         kf41=^^;, kf42=^^<, kf43=^^=, kf44=^^>, kf45=^^0, kf46=^^!,
12932         kf47=^^", kf48=^^#, kf49=^^$, kf5=^^u, kf50=^^%%, kf51=^^&,
12933         kf52=^^', kf53=^^(, kf54=^^), kf55=^^*, kf56=^^+, kf57=^^\,,
12934         kf58=^^-, kf59=^^., kf6=^^v, kf60=^^\s, kf7=^^w, kf8=^^x,
12935         kf9=^^y,
12936
12937 # Data General color terminals use the "Tektronix" color model.  The total
12938 # number of colors varies with the terminal model, as does support for
12939 # attributes used in conjunction with color.
12940
12941 # Removed u7, u8 definitions since they conflict with tack:
12942 #               Preserve user-defined colors in at least some cases.
12943 #       u7=^^Fh,
12944 #               Default is ACM mode.
12945 #       u8=^^F}20^^Fi^^F}21,
12946 #
12947 dgunix+fixed|Fixed color info for DG D430C terminals in DG-UNIX mode,
12948         bce,
12949         colors#16, ncv#53, pairs#256,
12950         op=\036Ad\036Bd,
12951         setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
12952         setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
12953         setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
12954
12955 dg+fixed|Fixed color info for DG D430C terminals in DG mode,
12956         use=dgunix+fixed,
12957
12958 # Video attributes are coordinated using static variables set by "sgr", then
12959 # checked by "op", "seta[bf]", and "set[bf]" to refresh the attribute settings.
12960 # (D=dim, U=underline, B=blink, R=reverse.)
12961 dg+color8|Color info for Data General D220 and D230C terminals in ANSI mode,
12962         bce,
12963         colors#8, ncv#16, pairs#64,
12964         op=\E[%?%gD%t2;%;%?%gU%t4;%;%?%gB%t5;%;%?%gR%t7;%;m,
12965         setab=\E[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12966         setaf=\E[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12967         setb=\E[4%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12968         setf=\E[3%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12969
12970 dg+color|Color info for Data General D470C terminals in ANSI mode,
12971         colors#16, ncv#53, pairs#256,
12972         setab=\E[%?%p1%{8}%<%t4%p1%e=%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12973         setaf=\E[%?%p1%{8}%<%t3%p1%e<%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12974         setb=\E[%?%p1%{8}%<%t4%e=%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12975         setf=\E[%?%p1%{8}%<%t3%e<%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
12976         use=dg+color8,
12977
12978 dgmode+color8|Color info for Data General D220/D230C terminals in DG mode,
12979         bce,
12980         colors#8, ncv#16, pairs#64,
12981         op=\036Ad\036Bd,
12982         setab=\036B%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
12983         setaf=\036A%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
12984         setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
12985
12986 dgmode+color|Color info for Data General D470C terminals in DG mode,
12987         colors#16, pairs#256,
12988         setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
12989         setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
12990         use=dgmode+color8,
12991
12992 dgunix+ccc|Configurable color info for DG D430C terminals in DG-UNIX mode,
12993         bce, ccc,
12994         colors#52, ncv#53, pairs#26,
12995         initp=\036RG0%p1%02X%p2%{255}%*%{1000}%/%02X%p3%{255}%*%{1000}%/%02X%p4%{255}%*%{1000}%/%02X%p5%{255}%*%{1000}%/%02X%p6%{255}%*%{1000}%/%02X%p7%{255}%*%{1000}%/%02X,
12996         oc=\036RG01A00FF00000000\036RG01B00000000FF00\036RG01C007F00000000\036RG01D000000007F00,
12997         op=\036RF4831A\036RF2E31B\036RF1D31C\036RF3F31D,
12998         scp=\036RG2%p1%02X,
12999
13000 # Colors are in the order:  normal, reverse, dim, dim + reverse.
13001 dg+ccc|Configurable color info for DG D430C terminals in DG mode,
13002         bce, ccc,
13003         colors#52, ncv#53, pairs#26,
13004         initp=\036RG0%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c%p2%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p3%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p4%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p5%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p6%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p7%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c,
13005         oc=\036RG01\:00??00000000\036RG01;00000000??00\036RG01<007?00000000\036RG01=000000007?00,
13006         op=\036RF4831\:\036RF2>31;\036RF1=31<\036RF3?31=,
13007         scp=\036RG2%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c,
13008
13009 # The generic DG terminal type (an 8-bit-clean subset of the 6053)
13010 # Initialization string 1 sets:
13011 #       ^R              - vertical scrolling enabled
13012 #       ^C              - blinking enabled
13013 dg-generic|Generic Data General terminal in DG mode,
13014         am, bw, msgr, xon,
13015         cols#80, lines#24,
13016         bel=^G, blink=^N, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
13017         cup=\020%p2%c%p1%c, cuu1=^W, dim=^\, el=^K, ind=^J, is1=^R^C,
13018         mc0=^Q, nel=^J, rmso=^], rmul=^U, sgr0=^O^U^], smso=^\,
13019         smul=^T, use=dgkeys+11,
13020
13021 # According to the 4.4BSD termcap file, the dg200 <cup> should be the
13022 # termcap equivalent of \020%p2%{128}%+%c%p1%{128}%+%c (in termcap
13023 # notation that's "^P%r%+\200%+\200").  Those \200s are suspicious,
13024 # maybe they were originally nuls (which would fit).
13025
13026 dg200|data general dasher 200,
13027         OTbs, am, bw,
13028         cols#80, lines#24,
13029         bel=^G, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
13030         cup=\020%p2%c%p1%c, cuu1=^W, el=^K, home=^H, ind=^J,
13031         kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^z, kf1=^^q,
13032         kf2=^^r, kf3=^^s, kf4=^^t, kf5=^^u, kf6=^^v, kf7=^^w, kf8=^^x,
13033         kf9=^^y, khome=^H, lf0=f10, nel=^J, rmso=^^E, rmul=^U,
13034         smso=^^D, smul=^T,
13035
13036 # Data General 210/211 (and 410?)       from Lee Pearson (umich!lp) via BRL
13037 dg210|dg-ansi|Data General 210/211,
13038         am,
13039         cols#80, lines#24,
13040         OTnl=\E[B, clear=\E[2J, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
13041         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
13042         home=\E[H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
13043         khome=\E[H, nel=\r\E[H\E[A\n, rmso=\E[0;m, rmul=\E[0;m,
13044         smso=\E[7;m, smul=\E[4;m,
13045 # From: Peter N. Wan <ihnp4!gatech!gacsr!wan>
13046 # courtesy of Carlos Rucalde of Vantage Software, Inc.
13047 # (dg211: this had <cup=\020%r%.%>., which was an ancient termcap hangover.
13048 # I suspect the d200 function keys actually work on the dg211, check it out.)
13049 dg211|Data General d211,
13050         cnorm=^L, cvvis=^L^R, ht=^I, ind@, kbs=^Y, kf0@, kf1@, kf2@, kf3@,
13051         kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, lf0@, nel=^M^Z, rmcup=^L,
13052         rmso=\036E$<\0/>, smcup=^L^R, smso=\036D$<5/>, use=dg200,
13053
13054 # dg450 from Cornell (not official)
13055 dg450|dg6134|data general 6134,
13056         cub1@, cuf1=^X, use=dg200,
13057
13058 # Not official...
13059 # Note: lesser Dasher terminals will not work with vi because vi insists upon
13060 # having a command to move straight down from any position on the bottom line
13061 # and scroll the screen up, or a direct vertical scroll command.  The 460 and
13062 # above have both, the D210/211, for instance, has neither.  We must use ANSI
13063 # mode rather than DG mode because standard UNIX tty drivers assume that ^H is
13064 # backspace on all terminals.  This is not so in DG mode.
13065 # (dg460-ansi: removed obsolete ":kn#6:"; also removed ":mu=\EW:", on the
13066 # grounds that there is no matching ":ml:"
13067 dg460-ansi|Data General Dasher 460 in ANSI-mode,
13068         OTbs, am, msgr, ul,
13069         cols#80, it#8, lines#24,
13070         OTnl=\ED, blink=\E[5m, clear=\E[2J, cub1=^H, cud1=\E[B,
13071         cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P,
13072         dim=\E[2m, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
13073         ich1=\E[@, il1=\E[L, ind=\E[S, is2=^^F@, kbs=\E[D,
13074         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
13075         kf0=\E[001z, kf1=\E[002z, kf2=\E[003z, kf3=\E[004z,
13076         kf4=\E[005z, kf5=\E[006z, kf6=\E[007z, kf7=\E[008z,
13077         kf8=\E[009z, kf9=\E[00\:z, khome=\E[H, lf0=f1, lf1=f2,
13078         lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10,
13079         mc0=\E[i, rev=\E[7m, ri=\E[T, rmso=\E[m, rmul=\E[05,
13080         sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m,
13081         sgr0=\E(B\E[m, smso=\E[7m, smul=\E[4m, u6=\E[%d;%dR,
13082         u7=\E[6n, u8=\E[5n, u9=\E[0n,
13083 # From: Wayne Throop <mcnc!rti-sel!rtp47!throopw> (not official)
13084 # Data General 605x
13085 # Ought to work for a Model 6242, Type D210 as well as a 605x.
13086 # Note that the cursor-down key transmits ^Z.  Job control users, beware!
13087 # This also matches a posted description of something called a `Dasher 100'
13088 # so there's a dg100 alias here.
13089 # (dg6053: the 4.4BSD file had <cub1=^H>, <cud1=^J>, <cuf1=^S>. -- esr)
13090 dg6053-old|dg100|data general 6053,
13091         OTbs, am, bw, ul,
13092         cols#80, lines#24,
13093         OTbc=^Y, bel=^G, clear=^L, cnorm=^L, cr=^M, cub1=^Y, cud1=^Z,
13094         cuf1=^X, cup=\020%p2%c%p1%c, cuu1=^W, cvvis=^L^R, el=^K,
13095         home=^H, ht=^I, is2=^R, kbs=^Y, kcub1=^Y, kcud1=^Z, kcuf1=^X,
13096         kcuu1=^W, kf0=^^q, kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v,
13097         kf6=^^w, kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L,
13098         rmso=\0^^E, rmul=^U, smcup=^L^R, smso=\0\0\0\0\0\036D,
13099         smul=^T,
13100
13101 # (Some performance can be gained over the generic DG terminal type)
13102 dg6053|6053|6053-dg|dg605x|605x|605x-dg|d2|d2-dg|Data General DASHER 6053,
13103         xon@,
13104         home=^P\0\0, ll=^P\0^W, use=dg-generic,
13105
13106 # Like 6053, but adds reverse video and more keypad and function keys.
13107 d200|d200-dg|Data General DASHER D200,
13108         bold=^^D^T, home@, ll@, rev=^^D, rmso=^^E^],
13109         sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;,
13110         sgr0=\017\025\035\036E, smso=^^D^\, use=dgkeys+15,
13111         use=dg6053,
13112
13113 # DASHER D210 series terminals in ANSI mode.
13114 #       Reverse video, no insert/delete character/line, 7 bits/character only.
13115 #
13116 # Initialization string 1 sets:
13117 #       <0              - scrolling enabled
13118 #       <1              - blink enabled
13119 #       <4              - print characters regardless of attributes
13120 d210|d214|Data General DASHER D210 series,
13121         am, bw, msgr, xon,
13122         cols#80, lines#24,
13123         bel=^G, blink=\E[5m, bold=\E[4;7m, clear=\E[2J, cr=^M,
13124         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
13125         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13126         cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, ed=\E[J, el=\E[K,
13127         el1=\E[1K, home=\E[H, ind=^J, is1=\E[<0;<1;<4l,
13128         ll=\E[H\E[A, nel=^J, rev=\E[7m, rmso=\E[m, rmul=\E[m,
13129         sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m,
13130         sgr0=\E[m, smso=\E[2;7m, smul=\E[4m, use=dgkeys+7b,
13131
13132 # DASHER D210 series terminals in DG mode.
13133 # Like D200, but adds clear to end-of-screen and needs XON/XOFF.
13134 d210-dg|d214-dg|Data General DASHER D210 series in DG mode,
13135         xon,
13136         ed=^^FF, use=d200-dg,
13137
13138 # DASHER D211 series terminals in ANSI mode.
13139 # Like the D210, but with 8-bit characters and local printer support.
13140 #
13141 # Initialization string 2 sets:
13142 #       \E[2;1;1;1v
13143 #               2;1     - 8 bit operations
13144 #               1;1     - 8 bit (international) keyboard language
13145 #       \E(B            - default primary character set (U.S. ASCII)
13146 #       \E)4            - default secondary character set (international)
13147 #       ^O              - primary character set
13148 #
13149 d211|d215|Data General DASHER D211 series,
13150         km,
13151         is2=\E[2;1;1;1v\E(B\E)4\017, mc0=\E[i, use=dgkeys+8b,
13152         use=d210,
13153
13154 # Initialization string 2 sets:
13155 #       \E[2;0;1;0v
13156 #               2;0     - 7 bit operations
13157 #               1;0     - 7 bit (native) keyboard language
13158 #       \E(0            - default character set (the keyboard native language)
13159 #       ^O              - primary character set
13160 d211-7b|d215-7b|Data General DASHER D211 series in 7 bit mode,
13161         km@,
13162         is2=\E[2;0;1;0v\E(0\017, use=dgkeys+7b, use=d211,
13163
13164 # Like the D210 series, but adds support for 8-bit characters.
13165 #
13166 # Reset string 2 sets:
13167 #       ^^N     - secondary character set
13168 #       ^^FS0>  - 8 bit international character set
13169 #       ^^O     - primary character set
13170 #       ^^FS00  - default character set (matching the native keyboard language)
13171 #
13172 d211-dg|d215-dg|Data General DASHER D211 series in DG mode,
13173         km,
13174         rs2=\036N\036FS0>\036O\036FS00, use=d210-dg,
13175
13176 d216-dg|d216e-dg|d216+dg|d216e+dg|d217-dg|Data General DASHER D216 series in DG mode,
13177         use=d211-dg,
13178
13179 # Enhanced DG mode with changes to be more UNIX compatible.
13180 d216-unix|d216e-unix|d216+|d216e+|Data General DASHER D216+ in DG-UNIX mode,
13181         mc5i,
13182         it#8,
13183         acsc=a\177j$k"l!m#n)q+t'u&v(w%x*, blink=^^PI,
13184         clear=^^PH, cub1=^^PD, cud1=^^PB, cuf1=^^PC, cuu1=^^PA,
13185         el=^^PE, home=^^PF, hpa=\020%p1%c\177, ht=^I, ind=^J,
13186         is1=\022\003\036P@1, is3=\036Fz0, kHOM=^^Pf, kLFT=^^Pd,
13187         kPRT=^^P1, kRIT=^^Pc, kclr=^^PH, kcub1=^^PD, kcud1=^^PB,
13188         kcuf1=^^PC, kcuu1=^^PA, kel=^^PE, khome=^^PF, kprt=^^P0,
13189         mc0=\036F?9, mc4=^^Fa, mc5=^^F`, rmacs=\036FS00,
13190         rs2=\036N\036FS0E\036O\036FS00,
13191         sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;\036P%?%p4%tI%eJ%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;,
13192         sgr0=\036PJ\025\035\036E\036FS00, smacs=\036FS11,
13193         vpa=\020\177%p1%c, use=dgkeys+15, use=d216-dg,
13194 d216-unix-25|d216+25|Data General DASHER D216+ in DG-UNIX mode with 25 lines,
13195         lines#25,
13196         is3=\036Fz2, use=d216+,
13197
13198 d217-unix|Data General DASHER D217 in DG-UNIX mode,
13199         use=d216-unix,
13200 d217-unix-25|Data General DASHER D217 in DG-UNIX mode with 25 lines,
13201         use=d216-unix-25,
13202
13203 # DASHER D220 color terminal in ANSI mode.
13204 # Like the D470C but with fewer colors and screen editing features.
13205 #
13206 # Initialization string 1 sets:
13207 #       \E[<0;<1;<4l
13208 #               <0      - scrolling enabled
13209 #               <1      - blink enabled
13210 #               <4      - print characters regardless of attributes
13211 #       \E[m            - all attributes off
13212 # Reset string 1 sets:
13213 #       \Ec             - initial mode defaults (RIS)
13214 #
13215 d220|Data General DASHER D220,
13216         mc5i@,
13217         dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
13218         use=dg+color8, use=d470c,
13219
13220 d220-7b|Data General DASHER D220 in 7 bit mode,
13221         mc5i@,
13222         dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
13223         use=dg+color8, use=d470c-7b,
13224
13225 # Initialization string 3 sets:
13226 #       - default cursor (solid rectangle)
13227 # Reset string 2 sets:
13228 #       ^^N     - secondary character set
13229 #       ^^FS0>  - 8 bit international character set
13230 #       ^^O     - primary character set
13231 #       ^^FS00  - default character set (matching the native keyboard language)
13232 #
13233 d220-dg|Data General DASHER D220 color terminal in DG mode,
13234         mc5i@,
13235         dl1@, home@, il1@, is2@, is3=\036FQ2, ll@, mc4@, mc5@, rs1@,
13236         rs2=\036N\036FS0>\036O\036FS00, use=dgmode+color8,
13237         use=d470c-dg,
13238
13239 # DASHER D230C color terminal in ANSI mode.
13240 # Like the D220 but with minor ANSI compatibility improvements.
13241 #
13242 d230c|d230|Data General DASHER D230C,
13243         blink=\E[5;50m, bold=\E[4;7;50m, dim=\E[2;50m, nel=^M^J,
13244         rev=\E[7;50m, rmkx=\E[2;1v, rmso=\E[50m, rmul=\E[50m,
13245         sgr=\E[50%?%p1%p3%|%p6%|%t;7%{1}%e%{0}%;%PR%?%p4%t;5%{1}%e%{0}%;%PB%?%p2%p6%|%t;4%{1}%e%{0}%;%PU%?%p1%p5%|%t;2%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;,
13246         sgr0=\E[50m\E)4\017, smkx=\E[2;0v, smso=\E[2;7;50m,
13247         smul=\E[4;50m, use=dgkeys+7b, use=d220,
13248
13249 d230c-dg|d230-dg|Data General DASHER D230C in DG mode,
13250         use=d220-dg,
13251
13252 # DASHER D400/D450 series terminals.
13253 # These add intelligent features like insert/delete to the D200 series.
13254 #
13255 # Initialization string 2 sets:
13256 #       ^^FQ2           - default cursor (solid rectangle)
13257 #       ^^FW            - character protection disabled
13258 #       ^^FJ            - normal (80 column) mode
13259 #       ^^F\^           - horizontal scrolling enabled (for alignment)
13260 #       ^^FX004?        - margins at columns 0 and 79
13261 #       ^^F]            - horizontal scrolling disabled
13262 #       ^^O             - primary character set
13263 #       ^^FS00          - default character set (the keyboard native language)
13264 #       - (should reset scrolling regions, but that glitches the screen)
13265 # Reset string 1 sets:
13266 #       ^^FA            - all terminal defaults except scroll rate
13267 # Reset string 2 sets:
13268 #       ^^F]            - horizontal scrolling disabled
13269 #       ^^FT0           - jump scrolling
13270 #
13271 d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series,
13272         mc5i,
13273         acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\036FQ0,
13274         cnorm=\036FQ2, dch1=^^K, dl1=^^FI,
13275         enacs=\036N\036FS11\036O, home=^^FG, hpa=\020%p1%c\177,
13276         ich1=^^J, il1=^^FH,
13277         is2=\036FQ2\036FW\036FJ\036F\^\036FX004?\036F]\036O\036FS00,
13278         ll=\036FG\027, mc4=^^Fa, mc5=^^F`, ri=^^I, rmacs=^^O,
13279         rs1=^^FA, rs2=\036F]\036FT0,
13280         sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036%?%p9%tN%eO%;,
13281         sgr0=\017\025\035\036E\036O, smacs=^^N,
13282         vpa=\020\177%p1%c, use=d210-dg,
13283
13284 # DASHER D410/D460 series terminals in ANSI mode.
13285 # These add a large number of intelligent terminal features.
13286 #
13287 # Initialization string 1 sets:
13288 #       \E[<0;<1;<2;<4l
13289 #               <0      - scrolling enabled
13290 #               <1      - blink enabled
13291 #               <2      - horizontal scrolling enabled (for alignment)
13292 #               <4      - print characters regardless of attributes
13293 #       \E[5;0v         - normal (80 column) mode
13294 #       \E[1;1;80w      - margins at columns 1 and 80
13295 #       \E[1;6;<2h
13296 #               1       - print all characters even if protected
13297 #               6       - character protection disabled
13298 #               <2      - horizontal scrolling disabled
13299 #       - (should reset scrolling regions, but that glitches the screen)
13300 #
13301 # Initialization string 2 sets:
13302 #       \E[3;2;2;1;1;1v
13303 #               3;2     - default cursor (solid rectangle)
13304 #               2;1     - 8 bit operations
13305 #               1;1     - international keyboard language
13306 #       \E(B            - default primary character set (U.S. ASCII)
13307 #       \E)4            - default secondary character set (international)
13308 #       ^O              - primary character set
13309 #
13310 #       Reset string 1 sets:
13311 #       \Ec             - initial mode defaults (RIS)
13312 #       \E[<2h          - horizontal scrolling disabled
13313 #
13314 # Reset string 2 sets:
13315 #       \E[4;0;2;1;1;1v
13316 #               4;0     - jump scrolling
13317 #               2;1     - 8 bit operations
13318 #               1;1     - 8 bit (international) keyboard language
13319 #       \E(B            - default primary character set (U.S. ASCII)
13320 #       \E)4            - default secondary character set (international)
13321 #
13322 d410|d411|d460|d461|Data General DASHER D410/D460 series,
13323         mc5i,
13324         acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v,
13325         cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
13326         dl1=\E[M, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
13327         is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h,
13328         is2=\E[3;2;2;1;1;1v\E(B\E)4\017, mc4=\E[4i, mc5=\E[5i,
13329         ri=\EM, rmacs=\E)4\017, rs1=\Ec\E[<2h,
13330         rs2=\E[4;0;2;1;1;1v\E(B\E)4,
13331         sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m\E)%?%p9%t6\016%e4\017%;,
13332         sgr0=\E[m\E)4\017, smacs=\E)6\016, use=d211,
13333
13334 # Initialization string 2 sets:
13335 #       \E[3;2;2;0;1;0v
13336 #               3;2     - default cursor (solid rectangle)
13337 #               2;0     - 7 bit operations
13338 #               1;0     - 7 bit (native) keyboard language
13339 #       \E(0            - default character set (the keyboard native language)
13340 #       ^O              - primary character set
13341 #
13342 # Reset string 2 sets:
13343 #       \E[4;0;2;0;1;0v
13344 #               4;0     - jump scrolling
13345 #               2;0     - 7 bit operations
13346 #               1;0     - 7 bit (native) keyboard language
13347 #       \E(0            - default character set (the keyboard native language)
13348 #
13349 d410-7b|d411-7b|d460-7b|d461-7b|Data General DASHER D410/D460 series in 7 bit mode,
13350         km@,
13351         enacs=\E)6, is2=\E[3;2;2;0;1;0v\E(0\017, rmacs=^O,
13352         rs2=\E[4;0;2;0;1;0v\E(0,
13353         sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m%?%p9%t\016%e\017%;,
13354         sgr0=\E[m\017, smacs=^N, use=dgkeys+7b, use=d410,
13355
13356 d410-dg|d460-dg|d411-dg|d461-dg|Data General DASHER D410/D460 series in DG mode,
13357         km,
13358         enacs@, rmacs=\036FS00,
13359         sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;,
13360         sgr0=\017\025\035\036E\036FS00, smacs=\036FS11,
13361         use=d400-dg,
13362
13363 # DASHER D410/D460 series terminals in wide (126 columns) ANSI mode.
13364 #
13365 # Initialization string 1 sets:
13366 #       \E[<0;<1;<2;<4l
13367 #               <0      - scrolling enabled
13368 #               <1      - blink enabled
13369 #               <2      - horizontal scrolling enabled (for alignment)
13370 #               <4      - print characters regardless of attributes
13371 #       \E[5;1v         - compressed (135 column) mode
13372 #       \E[1;1;126      - margins at columns 1 and 126
13373 #       \E[1;6;<2h
13374 #               1       - print all characters even if protected
13375 #               6       - character protection disabled
13376 #               <2      - horizontal scrolling disabled
13377 #       - (should reset scrolling regions, but that glitches the screen)
13378 #
13379 # Reset string 1 sets:
13380 #       \Ec             - initial mode defaults (RIS)
13381 #       \E[5;1v         - compressed (135 column) mode
13382 #       \E[1;1;126w     - margins at columns 1 and 126
13383 #       \E[<2h          - horizontal scrolling disabled
13384 #
13385 d410-w|d411-w|d460-w|d461-w|Data General DASHER D410/D460 series in wide mode,
13386         cols#126,
13387         is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
13388         rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410,
13389
13390 d410-7b-w|d411-7b-w|d460-7b-w|d461-7b-w|Data General DASHER D410/D460 series in wide 7 bit mode,
13391         cols#126,
13392         is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
13393         rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410-7b,
13394
13395 d412-dg|d462-dg|d462e-dg|d412+dg|d462+dg|d413-dg|d463-dg|Data General DASHER D412/D462 series in DG mode,
13396         use=d410-dg,
13397
13398 # These add intelligent features like scrolling regions.
13399 d412-unix|d462-unix|d412+|d462+|Data General DASHER D412+/D462+ series in Unix mode,
13400         civis=\036FQ0, clear=^^FE, cnorm=\036FQ5,
13401         cup=\036FP%p2%2.2X%p1%2.2X, dch1=^^K, dl1=^^FI,
13402         home=^^FG, hpa=\036FP%p1%2.2XFF, ich1=^^J, il1=^^FH,
13403         is2=\036FQ5\036FW\036FJ\036F\^\036FX004F\036O\036FS00,
13404         ll=\036FG\036PA, mc0=^A, rc=\036F}11, ri=^^I,
13405         rs1=\036FA\036FT0, rs2=\036P@1, sc=\036F}10,
13406         vpa=\036FPFF%p1%2.2X,
13407         wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
13408         use=d216+,
13409 d412-unix-w|d462-unix-w|d412+w|d462+w|Data General DASHER D412+/D462+ series in wide Unix mode,
13410         cols#132,
13411         is2=\036FQ5\036FW\036FK\036F\^\036FX0083\036O\036FS00,
13412         rs2=\036P@1\036FK\036FX0083,
13413         wind=\036FB%?%p1%t%p1%2.2X1%;%p2%p1%-%{1}%+%2.2X1%?%{23}%p2%>%t001%;\036FX%p3%2.2X%p4%2.2X,
13414         use=d412-unix,
13415 d412-unix-25|d462-unix-25|d412+25|d462+25|Data General DASHER D412+/D462+ series in Unix mode with 25 lines,
13416         lines#25,
13417         is3=\036Fz2,
13418         wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{24}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
13419         use=d462+,
13420 d412-unix-s|d462-unix-s|d412+s|d462+s|Data General DASHER D412+/D462+ in Unix mode with status line,
13421         eslok, hs,
13422         clear=\036FG\036PH, fsl=\036F}01\022,
13423         is3=\036Fz2\036F}00\036FB180000\036F}01, ll@,
13424         tsl=\036F}00\036FP%p1%2.2X18\036PG,
13425         wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t%{23}%p2%-%2.2X0%;000\036FX%p3%2.2X%p4%2.2X,
13426         use=d462+,
13427
13428 #       Relative cursor motions are confined to the current window,
13429 #       which is not what the scrolling region specification expects.
13430 #       Thus, relative vertical cursor positioning must be deleted.
13431 d412-unix-sr|d462-unix-sr|d412+sr|d462+sr|Data General DASHER D412+/D462+ in Unix mode with scrolling region,
13432         csr=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;,
13433         cud1@, cuu1@, ll@, use=d462+,
13434
13435 d413-unix|d463-unix|Data General DASHER D413/D463 series in DG-UNIX mode,
13436         use=d412-unix,
13437 d413-unix-w|d463-unix-w|Data General DASHER D413/D463 series in wide DG-UNIX mode,
13438         use=d412-unix-w,
13439 d413-unix-25|d463-unix-25|Data General DASHER D413/D463 series in DG-UNIX mode with 25 lines,
13440         use=d412-unix-25,
13441 d413-unix-s|d463-unix-s|Data General DASHER D413/D463 in DG-UNIX mode with status line,
13442         use=d412-unix-s,
13443 d413-unix-sr|d463-unix-sr|Data General DASHER D413/D463 in DG-UNIX mode with scrolling region,
13444         use=d412-unix-sr,
13445
13446 d414-unix|d464-unix|Data General D414/D464 in DG-UNIX mode,
13447         use=d413-unix,
13448 d414-unix-w|d464-unix-w|Data General D414/D464 in wide DG-UNIX mode,
13449         use=d413-unix-w,
13450 d414-unix-25|d464-unix-25|Data General D414/D464 in DG-UNIX mode with 25 lines,
13451         use=d413-unix-25,
13452 d414-unix-s|d464-unix-s|Data General D414/D464 in DG-UNIX mode with status line,
13453         use=d413-unix-s,
13454 d414-unix-sr|d464-unix-sr|Data General D414/D464 in DG-UNIX mode with scrolling region,
13455         use=d413-unix-sr,
13456
13457 d430c-dg|d430-dg|Data General D430C in DG mode,
13458         use=d413-dg, use=dg+fixed,
13459 d430c-dg-ccc|d430-dg-ccc|Data General D430C in DG mode with configurable colors,
13460         use=d413-dg, use=dg+ccc,
13461
13462 d430c-unix|d430-unix|Data General D430C in DG-UNIX mode,
13463         use=d413-unix, use=dgunix+fixed,
13464 d430c-unix-w|d430-unix-w|Data General D430C in wide DG-UNIX mode,
13465         use=d413-unix-w, use=dgunix+fixed,
13466 d430c-unix-25|d430-unix-25|Data General D430C in DG-UNIX mode with 25 lines,
13467         use=d413-unix-25, use=dgunix+fixed,
13468 d430c-unix-s|d430-unix-s|Data General D430C in DG-UNIX mode with status line,
13469         use=d413-unix-s, use=dgunix+fixed,
13470 d430c-unix-sr|d430-unix-sr|Data General D430C in DG-UNIX mode with scrolling region,
13471         use=d413-unix-sr, use=dgunix+fixed,
13472 d430c-unix-ccc|d430-unix-ccc|Data General D430C in DG-UNIX mode with configurable colors,
13473         use=d413-unix, use=dgunix+ccc,
13474 d430c-unix-w-ccc|d430-unix-w-ccc|Data General D430C in wide DG-UNIX mode with configurable colors,
13475         use=d413-unix-w, use=dgunix+ccc,
13476 d430c-unix-25-ccc|d430-unix-25-ccc|Data General D430C in DG-UNIX mode with 25 lines and configurable colors,
13477         use=d413-unix-25, use=dgunix+ccc,
13478 d430c-unix-s-ccc|d430-unix-s-ccc|Data General D430C in DG-UNIX mode with status line and configurable colors,
13479         use=d413-unix-s, use=dgunix+ccc,
13480 d430c-unix-sr-ccc|d430-unix-sr-ccc|Data General D430C in DG-UNIX mode with scrolling region and configurable colors,
13481         use=d413-unix-sr, use=dgunix+ccc,
13482
13483 # DASHER D470C color terminal in ANSI mode.
13484 # Like the D460 but with 16 colors and without a compressed mode.
13485 #
13486 # Initialization string 1 sets:
13487 #       \E[<0;<1;<2;<4l
13488 #               <0      - scrolling enabled
13489 #               <1      - blink enabled
13490 #               <2      - horizontal scrolling enabled (for alignment)
13491 #               <4      - print characters regardless of attributes
13492 #       \E[1;1;80w      - margins at columns 1 and 80
13493 #       \E[1;6;<2h
13494 #               1       - print all characters even if protected
13495 #               6       - character protection disabled
13496 #               <2      - horizontal scrolling disabled
13497 #       - (should reset scrolling regions, but that glitches the screen)
13498 #
13499 d470c|d470|Data General DASHER D470C,
13500         is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
13501         sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;,
13502         use=dg+color, use=d460,
13503
13504 d470c-7b|d470-7b|Data General DASHER D470C in 7 bit mode,
13505         is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
13506         sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm%?%p9%t\016%e\017%;,
13507         use=dg+color, use=d460-7b,
13508
13509 # Initialization string 2 sets:
13510 #       ^^FQ2           - default cursor (solid rectangle)
13511 #       ^^FW            - character protection disabled
13512 #       ^^F\^           - horizontal scrolling enabled (for alignment)
13513 #       ^^FX004?        - margins at columns 0 and 79
13514 #       ^^F]            - horizontal scrolling disabled
13515 #       ^^O             - primary character set
13516 #       ^^FS00          - default character set (the keyboard native language)
13517 #       - (should reset scrolling regions, but that glitches the screen)
13518 #
13519 d470c-dg|d470-dg|Data General DASHER D470C in DG mode,
13520         is2=\036FQ2\036FW\036F\^\036FX004?\036F]\036O\036FS00,
13521         use=dgmode+color, use=d460-dg,
13522
13523 # DASHER D555 terminal in ANSI mode.
13524 # Like a D411, but has an integrated phone.
13525 d555|Data General DASHER D555,
13526         use=d411,
13527 d555-7b|Data General DASHER D555 in 7-bit mode,
13528         use=d411-7b,
13529 d555-w|Data General DASHER D555 in wide mode,
13530         use=d411-w,
13531 d555-7b-w|Data General DASHER D555 in wide 7-bit mode,
13532         use=d411-7b-w,
13533 d555-dg|Data General DASHER D555 series in DG mode,
13534         use=d411-dg,
13535
13536 # DASHER D577 terminal in ANSI mode.
13537 # Like a D411, but acts as a keyboard for serial printers ("KSR" modes).
13538 d577|Data General DASHER D577,
13539         use=d411,
13540 d577-7b|Data General DASHER D577 in 7-bit mode,
13541         use=d411-7b,
13542 d577-w|Data General DASHER D577 in wide mode,
13543         use=d411-w,
13544 d577-7b-w|Data General DASHER D577 in wide 7-bit mode,
13545         use=d411-7b-w,
13546
13547 d577-dg|d578-dg|Data General DASHER D577/D578 series in DG mode,
13548         use=d411-dg,
13549
13550 # DASHER D578 terminal.
13551 # Like a D577, but without compressed mode; like a D470C in this respect.
13552 #
13553 # Initialization string 1 sets:
13554 #       \E[<0;<1;<2;<4l
13555 #               <0      - scrolling enabled
13556 #               <1      - blink enabled
13557 #               <2      - horizontal scrolling enabled (for alignment)
13558 #               <4      - print characters regardless of attributes
13559 #       \E[1;1;80w      - margins at columns 1 and 80
13560 #       \E[1;6;<2h
13561 #               1       - print all characters even if protected
13562 #               6       - character protection disabled
13563 #               <2      - horizontal scrolling disabled
13564 #       - (should reset scrolling regions, but that glitches the screen)
13565 #
13566 d578|Data General DASHER D578,
13567         is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577,
13568 d578-7b|Data General DASHER D578 in 7-bit mode,
13569         is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577-7b,
13570
13571 #### Datamedia (dm)
13572 #
13573 # Datamedia was headquartered in Nashua, New Hampshire until it went
13574 # out of business in 1993, but the ID plates on the terminals referred
13575 # to the factory in Pennsauken, NJ.  The factory was sold to a PCB board
13576 # manufacturer which threw out all information about the terminals.
13577 #
13578
13579 cs10|colorscan|Datamedia Color Scan 10,
13580         msgr,
13581         cols#80, lines#24,
13582         bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
13583         cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ed=\E[J, el=\E[K,
13584         ind=^J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
13585         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmso=\E[m, rmul=\E[m,
13586         sgr0=\E[m, smso=\E[7m, smul=\E[4m,
13587 cs10-w|Datamedia Color Scan 10 with 132 columns,
13588         cols#132,
13589         cup=\E[%i%p1%02d;%p2%03dH, use=cs10,
13590
13591 # (dm1520: removed obsolete ":ma=^\ ^_^P^YH:" -- esr)
13592 dm1520|dm1521|datamedia 1520,
13593         OTbs, am, xenl,
13594         cols#80, it#8, lines#24,
13595         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
13596         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
13597         home=^Y, ht=^I, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
13598         khome=^Y,
13599 # dm2500: this terminal has both <ich> and <smir>. Applications using
13600 # termcap/terminfo directly (rather than through ncurses) might be confused.
13601 dm2500|datamedia2500|datamedia 2500,
13602         OTbs, OTnc,
13603         cols#80, lines#24,
13604         bel=^G, clear=^^^^\177, cub1=^H, cud1=^J, cuf1=^\,
13605         cup=\014%p2%{96}%^%c%p1%{96}%^%c, cuu1=^Z,
13606         dch1=\020\010\030\035$<10*>,
13607         dl1=\020\032\030\035$<10*>, el=^W, home=^B,
13608         ich1=\020\034\030\035$<10*>,
13609         il1=\020\n\030\035\030\035$<15>, ind=^J, pad=\377,
13610         rmdc=^X^], rmir=\377\377\030\035$<10>, rmso=^X^],
13611         smdc=^P, smir=^P, smso=^N,
13612 # dmchat is like DM2500, but DOES need "all that padding" (jcm 1/31/82)
13613 # also, has a meta-key.
13614 # From: <goldberger@su-csli.arpa>
13615 # (dmchat: ":MT:" changed to ":km:" -- esr)
13616 dmchat|dmchat version of datamedia 2500,
13617         km,
13618         dl1=\020\032\030\035$<2/>,
13619         il1=\020\n\030\035\030\035$<1*/>, use=dm2500,
13620 # (dm3025: ":MT:" changed to ":km:" -- esr)
13621 dm3025|datamedia 3025a,
13622         OTbs, km,
13623         cols#80, it#8, lines#24,
13624         bel=^G, clear=\EM$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
13625         cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
13626         dch1=\010$<6>, dl1=\EP\EA\EQ$<130>, ed=\EJ$<2>, el=\EK,
13627         home=\EH, ht=^I, il1=\EP\n\EQ$<130>, ind=^J, ip=$<6>,
13628         is2=\EQ\EU\EV, rmdc=\EQ, rmir=\EQ, rmso=\EO0, smdc=\EP,
13629         smir=\EP, smso=\EO1,
13630 dm3045|datamedia 3045a,
13631         OTbs, am, eo, km@, ul, xenl,
13632         dch1=\EB$<6>, dl1@, il1@, is2=\EU\EV, kcuf1=\EC, kcuu1=\EA,
13633         kf0=\Ey\r, kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r,
13634         kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r, kf9=\Ex\r,
13635         khome=\EH, pad=\177, rmdc@, rmir=\EP, rmso@, smdc@, smso@,
13636         use=dm3025,
13637 # Datamedia DT80 soft switches:
13638 # 1     0=Jump  1=Smooth
13639 #       Autorepeat      0=off  1=on
13640 #       Screen          0=Dark 1=light
13641 #       Cursor          0=u/l  1=block
13642 #
13643 # 2     Margin Bell     0=off  1=on
13644 #       Keyclick        0=off  1=on
13645 #       Ansi/VT52       0=VT52 1=Ansi
13646 #       Xon/Xoff        0=Off  1=On
13647 #
13648 # 3     Shift3          0=Hash 1=UK Pound
13649 #       Wrap            0=Off  1=On
13650 #       Newline         0=Off  1=On
13651 #       Interlace       0=Off  1=On
13652 #
13653 # 4     Parity          0=Odd  1=Even
13654 #       Parity          0=Off  1=On
13655 #       Bits/Char       0=7    1=8
13656 #       Power           0=60Hz 1=50Hz
13657 #
13658 # 5     Line Interface  0=EIA  1=Loop
13659 #       Aux Interface   0=EIA  1=Loop
13660 #       Local Copy      0=Off  1=On
13661 #       Spare
13662 #
13663 # 6     Aux Parity      0=Odd  1=Even
13664 #       Aux Parity      0=Off  1=On
13665 #       Aux Bits/Char   0=7    1=8
13666 #       CRT Saver       0=Off  1=On
13667 # dm80/1 is a vt100 lookalike, but it doesn't seem to need any padding.
13668 dm80|dmdt80|dt80|datamedia dt80/1,
13669         clear=\E[2J\E[H, cud1=^J, cuf1=\E[C,
13670         cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
13671         home=\E[H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, ri=\EM,
13672         rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
13673         use=vt100,
13674 # except in 132 column mode, where it needs a little padding.
13675 # This is still less padding than the vt100, and you can always turn on
13676 # the ^S/^Q handshaking, so you can use vt100 flavors for things like
13677 # reverse video.
13678 dm80w|dmdt80w|dt80w|datamedia dt80/1 in 132 char mode,
13679         cols#132,
13680         clear=\E[H\E[2J$<50/>, cud1=^J,
13681         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<5/>,
13682         ed=\E[0J$<20/>, el=\E[0K$<20/>, use=dm80,
13683 # From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
13684 dt80-sas|Datamedia DT803/DTX for SAS usage,
13685         am, bw,
13686         cols#80, lines#24,
13687         acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
13688         bel=^G, clear=^L, cr=^M,
13689         csr=\E=%p1%{32}%+%c%{32}%c\E#1\E=%p2%{32}%+%c%{32}%c\E#2,
13690         cub1=^H, cud1=\EB, cuf1=^\,
13691         cup=\E=%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, dl1=\EM, ed=^K,
13692         el=^], ff=^L, home=^Y, ht=^I, hts=\E'1, il1=\EL, ind=\EB,
13693         is2=\E)0\E<\EP\E'0\E$2, kclr=^L, kcub1=^H, kcud1=^J,
13694         kcuf1=^\, kcuu1=^_, ked=^K, kel=^], khome=^Y, mc4=^O, mc5=^N,
13695         rev=\E$2\004, ri=\EI, rmacs=\EG, rmso=^X, sgr0=^X, smacs=\EF,
13696         smso=\E$2\004, tbc=\E'0,
13697
13698 # Datamedia Excel 62, 64 from Gould/SEL UTX/32 via BRL
13699 # These aren't end-all Excel termcaps; but do insert/delete char/line
13700 # and name some of the extra function keys.  (Mike Feldman ccvaxa!feldman)
13701 # The naming convention has been bent somewhat, with the use of E? (where
13702 # E is for 'Excel') as # a name.  This was done to distinguish the entries
13703 # from the other Datamedias in use here, and yet to associate a model of
13704 # the Excel terminals with the regular datamedia terminals that share
13705 # major characteristics.
13706 excel62|excel64|datamedia Excel 62,
13707         dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
13708         kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
13709         use=dt80,
13710 excel62-w|excel64-w|datamedia Excel 62 in 132 char mode,
13711         dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
13712         kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
13713         use=dt80w,
13714 excel62-rv|excel64-rv|datamedia Excel 62 in reverse video mode,
13715         dch1=\E[P, flash=\E[?5l\E[?5h, kbs=^H, kcub1=^H, kcud1=^J,
13716         kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l,
13717         smir=\E[4h, use=dt80,
13718
13719 #### Falco
13720 #
13721 #       Falco Data Products
13722 #       440 Potrero Avenue
13723 #       Sunnyvale, CA 940864-196
13724 #       Vox: (800)-325-2648
13725 #       Fax: (408)-745-7860
13726 #       Net: techsup@charm.sys.falco.com
13727 #
13728 # Current Falco models as of 1995 are generally ANSI-compatible and support
13729 # emulations of DEC VT-series, Wyse, and Televideo types.
13730 #
13731
13732 # Test version for Falco ts-1. See <arpavax.hickman@ucb> for info
13733 # This terminal was released around 1983 and was discontinued long ago.
13734 # The standout and underline highlights are the same.
13735 falco|ts1|ts-1|falco ts-1,
13736         OTbs, am,
13737         cols#80, it#8, lines#24,
13738         bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
13739         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
13740         dl1=\ER, ed=\EY, el=\ET\EG0\010, home=^^, ht=^I, il1=\EE,
13741         ind=^J, is2=\Eu\E3, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
13742         kf0=^A0\r, rmir=\Er, rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0,
13743         smir=\Eq, smso=\Eg1, smul=\Eg1,
13744 falco-p|ts1p|ts-1p|falco ts-1 with paging option,
13745         OTbs, am, da, db, mir, msgr, ul,
13746         cols#80, it#8, lines#24,
13747         bel=^G, cbt=\EI, clear=\E*, cr=^M, cub1=^H, cud1=\E[B,
13748         cuf1=\E[C, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E[A,
13749         dch1=\EW, dl1=\ER, ed=\EY, el=\ET\EG0\010\Eg0, ht=^I,
13750         il1=\EE, ind=^J, is2=\EZ\E3\E_c, kcub1=\E[D, kcud1=\E[B,
13751         kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, rmcup=\E_b, rmir=\Er,
13752         rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0, smcup=\E_d, smir=\Eq,
13753         smso=\Eg4, smul=\Eg1,
13754 # (ts100: I added <rmam>/<smam> based on the init string -- esr)
13755 ts100|ts100-sp|falco ts100-sp,
13756         am, mir, msgr, xenl, xon,
13757         cols#80, it#8, lines#24, vt#3,
13758         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13759         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
13760         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13761         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13762         cuf=\E[%p1%dC, cuf1=\E[C$<2>,
13763         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
13764         cuu1=\E[A$<2>, dch1=\E~W, dl1=\E~R, ed=\E[J$<50>,
13765         el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
13766         ht=^I, hts=\EH, ich1=\E~Q, il1=\E~E, ind=^J, is1=\E~)\E~ea,
13767         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13768         rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
13769         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
13770         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
13771         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
13772         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
13773         smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
13774         use=vt100+fnkeys,
13775 ts100-ctxt|falco ts-100 saving context,
13776         rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
13777
13778 #### Florida Computer Graphics
13779 #
13780
13781 # Florida Computer Graphics Beacon System, using terminal emulator program
13782 # "host.com", as provided by FCG.  This description is for an early release
13783 # of the "host" program.  Known bug: <ed> clears the whole screen, so it's
13784 # commented out.
13785
13786 # From: David Bryant <cbosg!djb> 1/7/83
13787 beacon|FCG Beacon System,
13788         am, da, db,
13789         cols#80, lines#32,
13790         bel=\ESTART\r\E37\r\EEND\r$<1>,
13791         blink=\ESTART\r\E61\,1\r\EEND\r, clear=\EZ$<10>, cr=^M,
13792         cub1=^H, cud1=^J, cuf1=\EV,
13793         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=\EU,
13794         dch1=\EW, dl1=\ER, el=\ET, home=\EH$<10>, ich1=\EQ, il1=\EE,
13795         ind=^J, rev=\ESTART\r\E59\,1\r\EEND\r, rmcup=,
13796         rmso=\ESTART\r\E70\,0\r\EEND\r$<20>,
13797         rmul=\ESTART\r\E60\,0\r\EEND\r,
13798         sgr0=\ESTART\r\E78\r\E70\,0\r\EEND\r$<20>,
13799         smcup=\ESTART\r\E2\,0\r\E12\r\EEND\r$<10>,
13800         smso=\ESTART\r\E70\,6\r\EEND\r$<20>,
13801         smul=\ESTART\r\E60\,1\r\EEND\r,
13802
13803 #### Fluke
13804 #
13805
13806 # The f1720a differences from ANSI: no auto margin, destructive
13807 # tabs, # of lines, funny highlighting and underlining
13808 f1720|f1720a|fluke 1720A,
13809         xt,
13810         cols#80, lines#16, xmc#1,
13811         bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
13812         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J,
13813         el=\E[K, ind=\ED, is2=\E[H\E[2J, kcub1=^_, kcud1=^],
13814         kcuf1=^^, kcuu1=^\, ri=\EM, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
13815         smso=\E[7m, smul=\E[4m,
13816
13817 #### Liberty Electronics (Freedom)
13818 #
13819 #       Liberty Electronics
13820 #       48089 Fremont Blvd
13821 #       Fremont CA 94538
13822 #       Vox: (510)-623-6000
13823 #       Fax: (510)-623-7021
13824
13825 # From: <faletti@berkeley.edu>
13826 # (f100: added empty <acsc> to suppress a tic warning;
13827 # made this relative to adm+sgr -- note that <invis> isn't
13828 # known to work for f100 but does on the f110. --esr)
13829 f100|freedom|freedom100|freedom model 100,
13830         OTbs, am, bw, hs, mir, msgr, xon,
13831         cols#80, lines#24,
13832         acsc=, bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J,
13833         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
13834         dch1=\EW, dl1=\ER$<11.5*>, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
13835         flash=\Eb$<200>\Ed, fsl=^M, home=^^, hpa=\E]%p1%{32}%+%c,
13836         ht=^I, hts=\E1, il1=\EE$<8.5*>, ind=^J, ip=$<6>,
13837         is2=\Eg\Ef\r\Ed, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V,
13838         kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r, kf2=^AA\r,
13839         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
13840         kf8=^AG\r, kf9=^AH\r, khome=^^, ri=\Ej, rmacs=\E$, rmir=\Er,
13841         smacs=\E%%, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
13842         vpa=\E[%p1%{32}%+%c, use=adm+sgr,
13843 f100-rv|freedom-rv|freedom 100 in reverse video,
13844         flash=\Ed$<200>\Eb, is2=\Eg\Ef\r\Eb, use=f100,
13845 # The f110 and f200 have problems with vi(1).  They use the ^V
13846 # code for the down cursor key. When kcud1 is defined in terminfo
13847 # as ^V, the Control Character Quoting capability (^V in insert mode)
13848 # is lost! It cannot be remapped in vi because it is necessary to enter
13849 # a ^V to to quote the ^V that is being remapped!!!
13850 #
13851 # f110/f200 users will have to decide whether
13852 # to lose the down cursor key or the quoting capability. We will opt
13853 # initially for leaving the quoting capability out, since use of VI
13854 # is not generally applicable to most interactive applications
13855 # (f110: added <ht>, <khome> & <kcbt> from f100 -- esr)
13856 f110|freedom110|Liberty Freedom 110,
13857         bw@, eslok,
13858         it#8, wsl#80,
13859         blink=\EG2, bold=\EG0, civis=\E.1, cnorm=\E.2, cud1=^V,
13860         dim=\EG@, dl1=\ER, dsl=\Ef\r, flash=\Eb$<200/>\Ed, il1=\EE,
13861         ip@, is2@, kclr=^^, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET,
13862         kf0=^AI\r, kf10@, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
13863         ri=\EJ, rmacs=\E%%, rmir=\Er\EO, smacs=\E$, smir=\EO\Eq,
13864         smso=\EG<, tsl=\Ef, use=f100,
13865 f110-14|Liberty Freedom 110 14inch,
13866         dch1@, use=f110,
13867 f110-w|Liberty Freedom 110 - 132 cols,
13868         cols#132, use=f110,
13869 f110-14w|Liberty Freedom 110 14in/132 cols,
13870         cols#132,
13871         dch1@, use=f110,
13872 # (f200: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13873 f200|freedom200|Liberty Freedom 200,
13874         OTbs, am, eslok, hs, mir, msgr, xon,
13875         cols#80, it#8, lines#24, wsl#80,
13876         acsc=, bel=^G, blink=\EG2, bold=\EG0, cbt=\EI, civis=\E.0,
13877         clear=^Z, cnorm=\E.1, cr=^M,
13878         csr=\Em0%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^V,
13879         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
13880         dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET,
13881         flash=\Eo$<200/>\En, fsl=^M, home=^^,
13882         hpa=\E]%p1%{32}%+%c, hts=\E1, il1=\EE, ind=^J, kbs=^H,
13883         kclr=^^, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
13884         kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
13885         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
13886         kf8=^AG\r, kf9=^AH\r, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
13887         ri=\EJ, rmacs=\E%%, rmir=\Er, smacs=\E$, smir=\Eq, smso=\EG<,
13888         tbc=\E3, tsl=\Ef, vpa=\E[%p1%{32}%+%c, use=adm+sgr,
13889 f200-w|Liberty Freedom 200 - 132 cols,
13890         cols#132, use=f200,
13891 # The f200 has the ability to reprogram the down cursor key. The key is
13892 # reprogrammed to ^J (linefeed). This value is remembered in non-volatile RAM,
13893 # so powering the terminal off and on will not cause the change to be lost.
13894 f200vi|Liberty Freedom 200 for vi,
13895         flash=\Eb$<200/>\Ed, kcud1=^J, use=f200,
13896 f200vi-w|Liberty Freedom 200 - 132 cols for vi,
13897         cols#132, use=f200vi,
13898
13899 #### GraphOn (go)
13900 #
13901 #       Graphon Corporation
13902 #       544 Division Street
13903 #       Campbell, CA 95008
13904 #       Vox: (408)-370-4080
13905 #       Fax: (408)-370-5047
13906 #       Net: troy@graphon.com (Troy Morrison)
13907 #
13908 #
13909 # The go140 and go225 have been discontinued.  GraphOn now makes X terminals,
13910 # including one odd hybrid that starts out life on power-up as a character
13911 # terminal, than can be switched to X graphics mode (driven over the serial
13912 # line) by an escape sequence.  No info on this beast yet.
13913 # (go140: I added <rmam>/<smam> based on the init string -- esr)
13914 go140|graphon go-140,
13915         OTbs,
13916         cols#80, it#8, lines#24,
13917         clear=\E[H\E[2J$<10/>, cub1=^H, cud1=\E[B, cuf1=\E[C,
13918         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
13919         ed=\E[J$<10/>, el=\E[K, ht=^I,
13920         if=/usr/share/tabset/vt100, il1=\E[L,
13921         is2=\E<\E=\E[?3l\E[?7l\E(B\E[J\E7\E[;r\E8\E[m\E[q,
13922         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
13923         kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
13924         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
13925         rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
13926         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
13927 go140w|graphon go-140 in 132 column mode,
13928         am,
13929         cols#132,
13930         is2=\E<\E=\E[?3h\E[?7h\E(B\E[J\E7\E[;r\E8\E[m\E[q,
13931         use=go140,
13932 # Hacked up vt200 termcap to handle GO-225/VT220
13933 # From: <edm@nwnexus.WA.COM>
13934 # (go225: I added <rmam>/<smam> based on the init string -- esr)
13935 go225|go-225|Graphon 225,
13936         OTbs, am, mir, xenl,
13937         cols#80, it#8, lines#25, vt#3,
13938         blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
13939         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
13940         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
13941         ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L, ind=\ED,
13942         is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^H,
13943         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
13944         kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, rc=\E8, rev=\E[7m,
13945         rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
13946         rmcup=\E[!p\E[?7h\E[2;1;1#w, rmir=\E[4l, rmkx=\E>,
13947         rmso=\E[27m, rmul=\E[24m, rs1=\E[!p\E[?7h\E[2;1;1#w,
13948         sc=\E7, sgr0=\E[m, smam=\E[?7h, smcup=\E[2;0#w\E[1;25r,
13949         smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
13950
13951 #### Harris (Beehive)
13952 #
13953 # Bletch.  These guys shared the Terminal Brain Damage laurels with Hazeltine.
13954 # Their terminal group is ancient history now (1995) though the parent
13955 # company is still in business.
13956 #
13957
13958 # Beehive documentation is undated and marked Preliminary and has no figures
13959 # so we must have early Superbee2 (Model 600, according to phone conversation
13960 # with mfr.). It has proved reliable except for some missing padding
13961 # (notably after \EK and <nl> at bottom of screen).
13962 #
13963 # The key idea is that AEP mode is poison for <cup> & that US's in
13964 # the local memory should be avoided like the plague. That means
13965 # that the 2048 character local buffer is used as 25 lines of 80
13966 # characters, period. No scrolling local memory, folks. It also
13967 # appears that we cannot use naked INS LINE feature since it uses
13968 # US. The sbi fakes <il1> with an 80-space insert that may be too
13969 # slow at low speeds; also spaces get converted to \040 which is
13970 # too long for some programs (not vi).  DEL LINE is ok but slow.
13971 #
13972 # The <nl> string is designed for last line of screen ONLY; cup to
13973 # 25th line corrects the motion inherent in scrolling to Page 1.
13974 #
13975 # There is one understood bug. It is that the screen appears to
13976 # pop to a new (blank) page after a <nel>, or leave a half-line
13977 # ellipsis to a quad that is the extra 48 memory locations. The
13978 # data received is dumped into memory but not displayed.  Not to
13979 # worry if <cup> is being used; the lines not displayed will be,
13980 # whenever the cursor is moved up there. Since <cup> is addressed
13981 # relative to MEMORY of window, nothing is lost; but beware of
13982 # relative cursor motion (<cuu1>,<cud1>,<cuf1>,<cub1>). Recommended,
13983 # therefore, is setenv MORE -c .
13984 #
13985 # WARNING: Not all features tested.
13986 #
13987 # Timings are assembled from 3 sources. Some timings may reflect
13988 # SB2/Model 300 that were used if more conservative.
13989 # Tested on a Model 600 at 1200 and 9600 bd.
13990 #
13991 # The BACKSPACEkb option is cute. The NEWLINE key, so cleverly
13992 # placed on the keyboard and useless because of AEP, is made
13993 # into a backspace key. In use ESC must be pressed twice (to send)
13994 # and sending ^C must be prefixed by ESC to avoid that weird
13995 # transmit mode associated with ENTER key.
13996 #
13997 # IF TERMINAL EVER GOES CATATONIC with the cursor buzzing across
13998 # the screen, then it has dropped into ENTER mode; hit
13999 # RESET--ONLINE--!tset.
14000 #
14001 # As delivered this machine has a FATAL feature that will throw
14002 # it into that strange transmit state (SPOW) if the space bar is
14003 # hit after a CR is received, but before receiving a LF (or a
14004 # few others).
14005 #
14006 # The circuits MUST be modified to eliminate the SPOW latch.
14007 # This is done by strapping on chip A46 of the I/O board; cut
14008 # the p.c. connection to Pin 5 and strap Pin 5 to Pin 8 of that
14009 # chip. This mod has been checked out on a Mod 600 of Superbee II.
14010 # With this modification absurdly high timings on cr are
14011 # unnecessary.
14012 #
14013 # NOTE WELL that the rear panel switch should be set to CR/LF,
14014 # not AEP!
14015 #
14016 sb1|beehive superbee,
14017         OTbs, am, bw, da, db, mir, ul, xsb,
14018         cols#80, lines#25, xmc#1,
14019         bel=^G, cbt=\E`$<650>, clear=\EH$<1>\EJ$<3>, cr=$<1>\r,
14020         cub1=^H, cud1=^J, cuf1=\EC$<3>, cup=\EF%p2%03d%p1%03d,
14021         cuu1=\EA$<3>, dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>,
14022         el=\EK$<3>, home=\EH$<1>, ht=^I, hts=\E1,
14023         il1=\EN\EL$<3>\EQ                                                                                \EP$<3> \EO\ER\EA$<3>,
14024         ind=^J, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kcub1=\ED,
14025         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdl1=\EM, ked=\EJ, kel=\EK,
14026         kf0=\E2, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu,
14027         kf7=\Ev, kf8=\Ew, kf9=\E1, khome=\EH, kich1=\EQ\EO,
14028         krmir=\ER, lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER,
14029         rmso=\E_3, rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO,
14030         smso=\E_1, smul=\E_0, tbc=\E3,
14031 sbi|superbee|beehive superbee at Indiana U.,
14032         xsb,
14033         cr=\r$<1>, il1=1\EN\EL$<9>\EQ \EP$<9> \EO\ER\EA,
14034         use=sb1,
14035 # Alternate (older) description of Superbee - f1=escape, f2=^C.
14036 # Note: there are at least 3 kinds of superbees in the world.  The sb1
14037 # holds onto escapes and botches ^C's.  The sb2 is the best of the 3.
14038 # The sb3 puts garbage on the bottom of the screen when you scroll with
14039 # the switch in the back set to CRLF instead of AEP.  This description
14040 # is tested on the sb2 but should work on all with either switch setting.
14041 # The f1/f2 business is for the sb1 and the <xsb> can be taken out for
14042 # the other two if you want to try to hit that tiny escape key.
14043 # This description is tricky: being able to use cup depends on there being
14044 # 2048 bytes of memory and the hairy <nl> string.
14045 superbee-xsb|beehive super bee,
14046         am, da, db, xsb,
14047         cols#80, it#8, lines#25,
14048         clear=\EH\EJ$<3>, cnorm=^J, cr=\r$<1000>, cub1=^H, cud1=^J,
14049         cuf1=\EC, cup=\EF%p2%3d%p1%3d, cuu1=\EA$<3>,
14050         dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>,
14051         home=\EH, ht=^I, hts=\E1,
14052         ind=\n\0\0\0\n\0\0\0\EA\EK\0\0\0\ET\ET, is2=\EH\EJ,
14053         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ep, kf2=\Eq,
14054         kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
14055         khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3,
14056 # This loses on lines > 80 chars long, use at your own risk
14057 superbeeic|super bee with insert char,
14058         ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb,
14059 sb2|sb3|fixed superbee,
14060         xsb@, use=superbee,
14061
14062 #### Beehive Medical Electronics
14063 #
14064 # Steve Seymour <srseymour@mindspring.com> writes (Wed, 03 Feb 1999):
14065 # Regarding your question though; Beehive terminals weren't made by Harris.
14066 # They were made by Beehive Medical Electronics in Utah. They went out of
14067 # business in the early '80s.
14068 #
14069 # (OK, then, I don't know why a couple of these say "harris beehive".)
14070 #
14071
14072 # Reports are that most of these Beehive entries (except superbee) have not
14073 # been tested and do not work right.  <rmso> is a trouble spot.  Be warned.
14074
14075 # (bee: <ich1> was empty, which is obviously bogus -- esr)
14076 beehive|bee|harris beehive,
14077         OTbs, am, mir,
14078         cols#80, lines#24,
14079         cbt=\E>, clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
14080         cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
14081         dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, kbs=^H, kcbt=\E>,
14082         kclr=\EE, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
14083         kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ, kil1=\EL,
14084         krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@, sgr0=\Ed@,
14085         smir=\EQ, smso=\EdP, smul=\Ed`,
14086 # set tab is ^F, clear (one) tab is ^V, no way to clear all tabs.
14087 # good grief - does this entry make :sg:/:ug: when it doesn't have to?
14088 # look at those spaces in <rmso>/<smso>.  Seems strange to me...
14089 # (beehive: <if=/usr/share/tabset/beehive> removed, no such file.  If you
14090 # really care, cook up one using ^F -- esr)
14091 beehive3|bh3m|beehiveIIIm|harris beehive 3m,
14092         OTbs, am,
14093         cols#80, it#8, lines#20,
14094         bel=^G, clear=^E^R, cr=^M, cub1=^H, cud1=^J, cuf1=^L, cuu1=^K,
14095         dl1=\021$<350>, ed=^R, el=^P, home=^E, ht=^I, hts=^F,
14096         il1=\023$<160>, ind=^J, ll=^E^K, rmso=\s^_, smso=^]\s,
14097 beehive4|bh4|beehive 4,
14098         am,
14099         cols#80, lines#24,
14100         bel=^G, clear=\EE, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
14101         cuu1=\EA, ed=\EJ, el=\EK, home=\EH, ind=^J,
14102 # There was an early Australian kit-built computer called a "Microbee".
14103 # It's not clear whether this is for one of those or for a relative
14104 # of the Beehive.
14105 microb|microbee|micro bee series,
14106         OTbs, am,
14107         cols#80, it#8, lines#24,
14108         bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
14109         cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
14110         el=\EK, ht=^I, ind=^J, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
14111         kcuu1=\EA, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
14112         kf6=\Eu, kf7=\Ev, kf8=\Ew, kf9=\Ex, khome=\EH, rmso=\Ed@,
14113         rmul=\Ed@, sgr0=\Ed@, smso=\s\EdP, smul=\Ed`,
14114
14115 # 8675, 8686, and bee from Cyrus Rahman
14116 # (8675: changed k10, k11...k16 to k;, F1...F6 -- esr)
14117 ha8675|harris 8675,
14118         is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU, kf1=^F,
14119         kf10=\Ed, kf11=^W, kf12=\ER, kf13=\EE, kf14=\EI, kf15=\Ei,
14120         kf16=\Eg, kf2=^P, kf3=^N, kf4=^V, kf5=^J, kf6=^T, kf7=^H,
14121         kf8=\177, kf9=\Ee, use=bee,
14122 # (8686: changed k10, k11...k16 to k;, F1...F6; fixed broken continuation
14123 # in :is: -- esr)
14124 ha8686|harris 8686,
14125         is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU\E"*Z01\E"8F35021B7C83#\E"8F45021B7D83#\E"8F55021B7E83#\E"8F65021B7F83#\E"8F75021B7383#\E"8F851BD7#\E"8F95021B7083#\E"8FA5021B7183#\E"8FB5021B7283#,
14126         kf1=\002\Ep\003, kf10=\Ej, kf11=\EW, kf12=\002\E{\003,
14127         kf13=\002\E|\003, kf14=\002\E}\003, kf15=\002\E~\003,
14128         kf16=\002\E\177\003, kf2=\002\Eq\003, kf3=\002\Er\003,
14129         kf4=\002\Es\003, kf5=\E3, kf6=\EI, kf7=\ER, kf8=\EJ, kf9=\E(,
14130         use=bee,
14131
14132 #### Hazeltine
14133 #
14134 # Hazeltine appears to be out of the terminal business as of 1995.  These
14135 # guys were co-owners of the Terminal Brain Damage Hall Of Fame along with
14136 # Harris. They have a hazeltine.com domain (but no web page there ) and can
14137 # be reached at:
14138 #
14139 #       Hazeltine
14140 #       450 East Pulaski Road
14141 #       Greenlawn, New York 11740
14142 #
14143 # As late as 1993, manuals for the terminal product line could still be
14144 # purchased from:
14145 #
14146 #       TRW Customer Service Division
14147 #       15 Law Drive
14148 #       P.O. Box 2076
14149 #       Fairfield, NJ 07007-2078
14150 #
14151 # They're now (1998) a subsidiary of General Electric, operating under the
14152 # marque "GEC-Marconi Hazeltine" and doing military avionics.  Web page
14153 # at <http://www.gec.com/cpd/1ncpd.htm#1.55>.
14154 #
14155
14156 # Since <cuf1> is blank, when you want to erase something you
14157 # are out of luck.  You will have to do ^L's a lot to
14158 # redraw the screen.  h1000 is untested.  It doesn't work in
14159 # vi - this terminal is too dumb for even vi.  (The code is
14160 # there but it isn't debugged for this case.)
14161 hz1000|hazeltine 1000,
14162         OTbs,
14163         cols#80, lines#12,
14164         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s, home=^K,
14165         ind=^J,
14166 # From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
14167 hz1420|hazeltine 1420,
14168         OTbs, am,
14169         cols#80, lines#24,
14170         bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=^J, cuf1=^P,
14171         cup=\E\021%p2%c%p1%{32}%+%c, cuu1=\E^L, dl1=\E^S,
14172         ed=\E^X, el=\E^O, ht=^N, il1=\E^Z, ind=^J, rmso=\E^Y,
14173         smso=\E^_,
14174 # New "safe" cursor movement (11/87) from <cgs@umd5.umd.edu>.  Prevents
14175 # freakout with out-of-range args and tn3270.  No hz since it needs to
14176 # receive tildes.
14177 hz1500|hazeltine 1500,
14178         OTbs, am, hz,
14179         cols#80, lines#24,
14180         bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
14181         cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%{96}%+%c%p1%{96}%+%c,
14182         cuu1=~^L, dl1=~\023$<40>, ed=~\030$<10>, el=~^O, home=~^R,
14183         il1=~\032$<40>, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^P,
14184         kcuu1=~^L, khome=~^R, rmso=~^Y, smso=~^_,
14185 # h1510 assumed to be in sane escape mode.  Else use h1500.
14186 # (h1510: early versions of this entry apparently had "<rmso=\E^_>,
14187 # <smso=\E^Y>, but these caps were commented out in 8.3; also,
14188 # removed incorrect and overridden ":do=^J:" -- esr)
14189 hz1510|hazeltine 1510,
14190         OTbs, am,
14191         cols#80, lines#24,
14192         bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K, cuf1=^P,
14193         cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S, ed=\E^X,
14194         el=\E^O, il1=\E^Z, ind=^J,
14195 # Hazeltine 1520
14196 # The following switch settings are assumed for normal operation:
14197 #       FULL            CR              U/L_CASE        ESCAPE
14198 #       FORMAT_OFF      EOM_A_OFF       EOM_B_OFF       WRAPAROUND_ON
14199 # Other switches may be set for operator convenience or communication
14200 # requirements.
14201 hz1520|Hazeltine 1520,
14202         OTbs, am, bw, msgr,
14203         cols#80, lines#24,
14204         bel=^G, bold=\E^_, clear=\E^\, cr=^M, cub1=^H, cud1=^J,
14205         cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
14206         ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, kbs=^H,
14207         kclr=\E^\, kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L,
14208         kdl1=\E^S, ked=\E^X, kel=\E^O, khome=\E^R, kil1=\E^Z,
14209         rmso=\E^Y, rs1=\E$\E\005\E?\E\031, sgr0=\E^Y, smso=\E^_,
14210 # This version works with the escape switch off
14211 # (h1520: removed incorrect and overridden ":do=^J:" -- esr)
14212 hz1520-noesc|hazeltine 1520,
14213         am, hz,
14214         cols#80, lines#24,
14215         bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
14216         cup=~\021%p2%c%p1%c$<1>, cuu1=~^L, dl1=~^S, ed=~^X, el=~^O,
14217         home=~^R, il1=~^Z, ind=^J, rmso=~^Y, smso=~^_,
14218 # Note: the h1552 appears to be the first Hazeltine terminal which
14219 # is not braindamaged.  It has tildes and backprimes and everything!
14220 # Be sure the auto lf/cr switch is set to cr.
14221 hz1552|hazeltine 1552,
14222         OTbs,
14223         cud1=^J, dl1=\EO, il1=\EE, kf1=\EP, kf2=\EQ, kf3=\ER, lf1=blue,
14224         lf2=red, lf3=green, use=vt52,
14225 hz1552-rv|hazeltine 1552 reverse video,
14226         cud1=^J, rmso=\ET, smso=\ES, use=hz1552,
14227 # Note: h2000 won't work well because of a clash between upper case and ~'s.
14228 hz2000|hazeltine 2000,
14229         OTbs, OTnc, am,
14230         cols#74, lines#27,
14231         bel=^G, clear=~\034$<6>, cub1=^H, cud1=^J,
14232         cup=~\021%p2%c%p1%c, dl1=~\023$<6>, home=~^R,
14233         il1=~\032$<6>, ind=^J, pad=\177,
14234 # Date: Fri Jul 23 10:27:53 1982.  Some unknown person wrote:
14235 # I tested this termcap entry for the Hazeltine Esprit with vi. It seems
14236 # to work ok. There is one problem though if one types a lot of garbage
14237 # characters very fast vi seems not able to keep up and hangs while trying
14238 # to insert. That's in insert mode while trying to insert in the middle of
14239 # a line. It might be because the Esprit doesn't have insert char and delete
14240 # char as a built in function. Vi has to delete to end of line and then
14241 # redraw the rest of the line.
14242 esprit|Hazeltine Esprit I,
14243         OTbs, am, bw,
14244         cols#80, lines#24,
14245         bel=^G, cbt=\E^T, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K,
14246         cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
14247         ed=\E^W, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, is2=\E?, kbs=^H,
14248         kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L, kf0=^B0^J,
14249         kf1=^B1^J, kf2=^B2^J, kf3=^B3^J, kf4=^B4^J, kf5=^B5^J,
14250         kf6=^B6^J, kf7=^B7^J, kf8=^B8^J, kf9=^B9^J, khome=\E^R,
14251         lf0=0, lf1=1, lf2=2, lf3=3, lf4=4, lf5=5, lf6=6, lf7=7, lf8=8, lf9=9,
14252         rmkx=\E>, rmso=\E^Y, smkx=\E<, smso=\E^_,
14253 esprit-am|hazeltine esprit auto-margin,
14254         am, use=esprit,
14255 # Hazeltine Modular-1 from Cliff Shackelton <ittvax!ittral!shackelt> via BRL
14256 # Vi it seems always wants to send a control J for "do" and it turned out
14257 # that the terminal would work somewhat if the auto LF/CR was turned off.
14258 # (hmod1: removed :dn=~^K: -- esr)
14259 hmod1|Hazeltine Modular 1,
14260         OTbs, am, hz,
14261         cols#80, lines#24,
14262         bel=^G, cbt=~^T, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
14263         cup=~\021%p2%c%p1%c, cuu1=~^L, dl1=~^S, home=~^R, il1=~^Z,
14264         ind=^J, kcub1=^H, kcud1=~^K, kcuf1=^P, kcuu1=~^L, khome=~^R,
14265         rc=~^Q, rmso=~^Y, sc=~^E, sgr0=~^Y, smso=~^_,
14266 #
14267 # Hazeltine Executive 80 Model 30 (1554?)
14268 #       from  Will Martin <control@ALMSA-1.ARPA> via BRL
14269 # Like VT100, except for different "am" behavior.
14270 hazel|exec80|h80|he80|Hazeltine Executive 80,
14271         OTbs, OTpt, am,
14272         cols#80, it#8, lines#24, vt#3,
14273         OTnl=^J, bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
14274         clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
14275         cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
14276         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
14277         ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
14278         is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
14279         kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
14280         kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
14281         rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
14282         rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
14283         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
14284         sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
14285         smul=\E[4m$<2/>,
14286
14287 #### IBM
14288 #
14289
14290 ibm327x|line mode IBM 3270 style,
14291         gn,
14292         clear=^M^J, el=^M, home=^M,
14293
14294 ibm3101|i3101|IBM 3101-10,
14295         OTbs, am, xon,
14296         cols#80, lines#24,
14297         bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
14298         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
14299         el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB,
14300         kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH,
14301 ibm3151|IBM 3151 display,
14302         is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B,
14303         sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E>B%;,
14304         sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162,
14305 # From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992
14306 # removed kend, knp, kpp -TD
14307 ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
14308         OTbs, am, mir, msgr,
14309         cols#80, it#8, lines#24,
14310         acsc=j\352k\353l\354m\355n\356q\361t\364u\365v\366w\367x\370,
14311         bel=^G, blink=\E4D, bold=\E4H, clear=\EH\EJ, cr=^M, cub1=\ED,
14312         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14313         cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH, ind=^J,
14314         invis=\E4P, kbs=^H, kcbt=\E2, kclr=\EL\r, kctab=\E1,
14315         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EQ,
14316         kdl1=\EO, ked=\EJ, kel=\EI, kf1=\Ea\r, kf10=\Ej\r,
14317         kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r, kf14=\E!b\r,
14318         kf15=\E!c\r, kf16=\E!d\r, kf17=\E!e\r, kf18=\E!f\r,
14319         kf19=\E!g\r, kf2=\Eb\r, kf20=\E!h\r, kf21=\E!i\r,
14320         kf22=\E!j\r, kf23=\E!k\r, kf24=\E!l\r, kf3=\Ec\r,
14321         kf4=\Ed\r, kf5=\Ee\r, kf6=\Ef\r, kf7=\Eg\r, kf8=\Eh\r,
14322         kf9=\Ei\r, khome=\EH, khts=\E0, kich1=\EP \010, kil1=\EN,
14323         ktbc=\E 1, mc4=^P^T, mc5=^P^R, rev=\E4A, rmcup=\E>A,
14324         rmso=\E4@, rmul=\E4@,
14325         sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E<@%;,
14326         sgr0=\E4@\E<@, smcup=\E>A, smso=\E4A, smul=\E4B,
14327
14328 ibm3161-C|IBM 3161-C NLS terminal using cartridge,
14329         rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, use=ibm3161,
14330 ibm3162|IBM 3162 display,
14331         blink=\E4$a, bold=\E4(a, il1=\EN, invis=\E40a, rev=\E4!a,
14332         rmso=\E4>b, rmul=\E4=b, sgr0=\E4@, smso=\E4!a, smul=\E4"a,
14333         use=ibm3161-C,
14334
14335 # This really should not use setab/setaf, but it is clear that the
14336 # original terminfo does not toggle red/blue colors as in setb/setf.
14337 ibm3164|i3164|IBM 3164,
14338         msgr,
14339         colors#8, pairs#64,
14340         op=\E4 "@, rmcup=\E!9(N\E>B, s0ds=\E>B, s1ds=\E>A,
14341         setab=\E4  %p1%{64}%+%c,
14342         setaf=\E4%?%p1%t %p1%{32}%+%c%e!'%;@,
14343         smcup=\E!9/N\E>B, use=ibm3161,
14344
14345 ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display,
14346         am, bw, msgr, xon,
14347         cols#80, it#8, lines#25,
14348         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
14349         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
14350         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
14351         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14352         cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
14353         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H,
14354         hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
14355         indn=\E[%p1%dS, invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z,
14356         kclr=\E[144q, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14357         kcuu1=\E[A, kdch1=\E[P, ked=\E[148q, kel=\E[142q,
14358         kend=\E[146q, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
14359         kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, kf15=\E[015q,
14360         kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, kf19=\E[019q,
14361         kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, kf22=\E[022q,
14362         kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, kf26=\E[026q,
14363         kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, kf3=\E[003q,
14364         kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, kf33=\E[033q,
14365         kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, kf4=\E[004q,
14366         kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
14367         kf9=\E[009q, khome=\E[H, kich1=\E[139q, kil1=\E[140q,
14368         kind=\E[151q, knp=\E[154q, kpp=\E[150q, kri=\E[155q,
14369         krmir=\E[4l, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmir=\E[4l,
14370         rmso=\E[m, rmul=\E[m, rs2=\Ec,
14371         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m,
14372         sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
14373
14374 ibmaed|IBM Experimental display,
14375         OTbs, am, eo, msgr,
14376         cols#80, it#8, lines#52,
14377         clear=\EH\EK, cub1=^H, cud1=\EB, cuf1=\EC,
14378         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
14379         dl1=\EO, ed=\EJ, el=\EI, flash=\EG, home=\EH, ht=^I, ich1=\EP,
14380         il1=\EN, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
14381         rmso=\E0, sgr0=\E0, smso=\E0,
14382 ibm-apl|apl|IBM apl terminal simulator,
14383         lines#25, use=dm1520,
14384 # (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.
14385 # Also it had ":I0=f10:" which pretty obviously should be "l0=f10" -- esr)
14386 ibmmono|IBM workstation monochrome,
14387         eslok, hs,
14388         bold=\EZ, dl1=\EM, dsl=\Ej\EY8 \EI\Ek, fsl=\Ek, il1=\EL,
14389         invis=\EF\Ef0;\Eb0;, kbs=^H, kf0=\E<, kf1=\ES, kf2=\ET,
14390         kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EY,
14391         khome=\EH, kich1=\0, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG,
14392         lf0=f10, rev=\Ep, ri=\EA, rmso=\Ez, rmul=\Ew,
14393         sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo,
14394         use=ibm3101,
14395 ibmega|IBM Enhanced Color Display,
14396         cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
14397         nel=^M^J, use=ibmmono,
14398 # This color scheme is assumed in some recent IBM terminal descriptions
14399 # (green on black, emulated on a 16-color terminal).
14400 ibm+color|IBM color definitions,
14401         colors#8, ncv#3, pairs#64,
14402         op=\E[32m\E[40m,
14403         setb=\E[%?%p1%{0}%=%t40m%e%p1%{1}%=%t41m%e%p1%{2}%=%t42m%e%p1%{3}%=%t43m%e%p1%{4}%=%t44m%e%p1%{5}%=%t45m%e%p1%{6}%=%t46m%e%p1%{7}%=%t107m%;,
14404         setf=\E[%?%p1%{0}%=%t30m%e%p1%{1}%=%t31m%e%p1%{2}%=%t32m%e%p1%{3}%=%t33m%e%p1%{4}%=%t34m%e%p1%{5}%=%t35m%e%p1%{6}%=%t36m%e%p1%{7}%=%t97m%;,
14405 ibm+16color|IBM aixterm color definitions,
14406         colors#16, pairs#256,
14407         setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
14408         setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
14409         setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
14410         setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
14411 ibm5154|IBM 5154 Color display,
14412         colors#8, ncv@, pairs#64,
14413         bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
14414         use=ibm+color,
14415 ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline,
14416         rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;,
14417         use=ibmmono,
14418 ibmvga-c|IBM VGA display color termcap,
14419         cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
14420         nel=^M^J, use=ibmega-c,
14421 ibmvga|IBM VGA display,
14422         cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
14423         nel=^M^J, use=ibmega,
14424 # ibmapa* and ibmmono entries come from ACIS 4.3 distribution
14425 rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display,
14426         lines#32,
14427         dsl=\Ej\EY@ \EI\Ek, tsl=\Ej\EY@%+ \Eo, use=ibmmono,
14428 ibm6155|IBM 6155 Black & White display,
14429         blink@, bold@, use=ibm5151,
14430 # Advanced Monochrome (6153) and Color (6154) Graphics Display:
14431 ibmapa8c|ibmapa8|IBM 6154 Advanced Graphics Display,
14432         lines#31,
14433         dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmmono,
14434 ibmapa8c-c|ibm6154-c|IBM 6154 Advanced Color Graphics Display,
14435         lines#31,
14436         dim=\EF\Ef7;, dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo,
14437         use=ibmega-c,
14438 ibm6154|IBM 6154 Color displays,
14439         blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
14440         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
14441         sgr0=\E[0;10m, use=ibm5154,
14442 ibm6153|IBM 6153 Black & White display,
14443         blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
14444         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
14445         sgr0=\E[0;10m, use=ibm5151,
14446 ibm6153-90|IBM 6153 Black & White display,
14447         cols#90, lines#36,
14448         blink@, bold@, use=ibm5151,
14449 ibm6153-40|IBM 6153 Black & White display,
14450         cols#40, lines#12, use=ibm6153-90,
14451 ibm8512|ibm8513|IBM color VGA Terminal,
14452         am, mir, msgr,
14453         cols#80, it#8, lines#25,
14454         acsc=jjkkllmmnnqqttuuvvwwxx, blink=\E[5m, bold=\E[1m,
14455         clear=\E[H\E[J, cub1=\E[D, cud1=^J, cuf1=\E[C,
14456         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
14457         ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, il=\E[%p1%dL,
14458         il1=\E[L, is2=\Eb\E[m\017\E[?7h, kcud1=\E[B, kcuu1=\E[A,
14459         kf0=\E[010q, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
14460         kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
14461         kf8=\E[008q, kf9=\E[009q, khome=\E[H, rc=\E[u, rev=\E[7m,
14462         rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l,
14463         rmir=\E[4l, rmso=\E[m, rmul=\E[m,
14464         rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m,
14465         smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb,
14466         smdc=\E[4h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
14467         use=ibm8503,
14468 hft-c|HFT with Color,
14469         colors#8, pairs#64,
14470         acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0,
14471         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B,
14472         use=ibm5151, use=ibm+color,
14473 hft-c-old|HFT with Color PC850,
14474         colors#8, pairs#64,
14475         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
14476         use=ibm+color,
14477 hft-old|AIWS High Function Terminal,
14478         am, xon,
14479         cols#80, lines#25,
14480         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
14481         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14482         cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
14483         ht=^I, ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, kbs=^H,
14484         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
14485         kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q,
14486         kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
14487         kf9=\E[009q, khome=\E[H, knp=\E[153q, kpp=\E[159q,
14488         ktbc=\E[010q, rev=\E[7m, rmir=\E6, rmso=\E[m, rmul=\E[m,
14489         sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m, use=ibm+color,
14490 ibm-system1|system1|ibm system/1 computer,
14491         am, xt,
14492         cols#80, lines#24,
14493         bel=^G, clear=^Z, cub1=^H, cuf1=^\,
14494         cup=\005%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, home=^K,
14495         ind=^J,
14496 #       lft-pc850 : IBM Low Function Terminal Device
14497 #    lft "supports" underline, bold, and blink in the sense that the lft code
14498 #    sets all the right bits.  HOWEVER, depending upon the adapter, these
14499 #    attributes may or may not be supported by the device driver.
14500 lft|lft-pc850|LFT-PC850|IBM LFT PC850 Device,
14501         am, bw, msgr, xon,
14502         cols#80, it#8, lines#25,
14503         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
14504         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
14505         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
14506         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14507         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14508         dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[2J, el=\E[0K,
14509         home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, il=\E[%p1%dL,
14510         il1=\E[L, ind=\ED, indn=\E[%p1%dS, invis=\E[8m, is2=\Ec,
14511         kbs=^H, kcbt=\E[Z, kclr=\E[144q, kcub1=\E[D, kcud1=\E[B,
14512         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, ked=\E[148q,
14513         kel=\E[142q, kend=\E[146q, kf1=\E[001q, kf10=\E[010q,
14514         kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q,
14515         kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q,
14516         kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q,
14517         kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q,
14518         kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q,
14519         kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q,
14520         kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q,
14521         kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
14522         kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
14523         kil1=\E[140q, kind=\E[151q, knp=\E[154q, kpp=\E[150q,
14524         kri=\E[155q, krmir=\E[4l, rev=\E[7m, ri=\EL, rin=\E[%p1%dT,
14525         rmacs=\E(B, rmir=\E[4l, rmso=\E[0m, rmul=\E[0m, rs2=\Ec,
14526         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
14527         sgr0=\E[0m, smacs=\E(0, smir=\E[4h, smso=\E[7m, smul=\E[4m,
14528         tbc=\E[3g,
14529 ibm5081|hft|IBM Megapel Color display,
14530         acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
14531         s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
14532 ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
14533         eslok, hs,
14534         lines#33,
14535         dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo,
14536         use=ibmega-c,
14537 ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display,
14538         use=hft-c,
14539 ibm8514|IBM 8514/a color VGA display,
14540         eslok, hs,
14541         dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft,
14542 ibm8514-c|IBM 8514 color display with standout and underline,
14543         eslok, hs,
14544         lines#41,
14545         cr=^M, cud1=^J, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=^J,
14546         kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, tsl=\Ej\EYI%+ \Eo,
14547         use=ibmega-c,
14548
14549 #
14550 # AIX entries.  IBM ships these with AIX 3.2.5.
14551 # -- added rc, sc based on manpage -TD
14552 # Note that we could use ibm+16color, but that is not how IBM defines this one.
14553 aixterm|IBM Aixterm Terminal Emulator,
14554         eslok, hs,
14555         acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
14556         fsl=\E[?F, rc=\E8, ri@, s0ds=\E(B, s1ds=\E(0, sc=\E7,
14557         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
14558         sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6154,
14559 aixterm-m|IBM AIXterm Monochrome Terminal Emulator,
14560         eslok, hs,
14561         acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
14562         fsl=\E[?F, ri@, s0ds=\E(B, s1ds=\E(0,
14563         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
14564         sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6153,
14565 aixterm-m-old|old IBM AIXterm Monochrome Terminal Emulator,
14566         eslok, hs,
14567         bold=\E[1m, dsl=\E[?E, fsl=\E[?F, ri@,
14568         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
14569         tsl=\E[?%p1%dT, use=ibm6153,
14570 jaixterm|IBM Kanji Aixterm Terminal Eemulator,
14571         acsc@, use=aixterm,
14572 jaixterm-m|IBM Kanji AIXterm Monochrome Terminal Emulator,
14573         acsc@, use=aixterm-m,
14574
14575 # This flavor is adapted from xterm, in turn from aixterm documentation -TD
14576 aixterm-16color|IBM Aixterm Terminal Emulator with 16 colors,
14577         use=ibm+16color, use=aixterm,
14578
14579 #### Infoton/General Terminal Corp.
14580 #
14581
14582 # gt100 sounds like something DEC would come out with.  Let's hope they don't.
14583 i100|gt100|gt100a|General Terminal 100A (formerly Infoton 100),
14584         OTbs, am,
14585         cols#80, lines#24,
14586         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
14587         cup=\Ef%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dl1=\EM,
14588         ed=\EJ, el=\EK, flash=\Eb$<200/>\Ea, home=\EH, il1=\EL,
14589         ind=^J, rmso=\Ea, smso=\Eb,
14590 i400|infoton 400,
14591         OTbs, am,
14592         cols#80, lines#25,
14593         bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
14594         cup=\E[%i%p1%3d;%p2%3dH, cuu1=\E[A,
14595         dch1=\E[4h\E[2Q\E[P\E[4l\E[0Q, dl1=\E[M, el=\E[N,
14596         il1=\E[L, ind=^J, rmir=\E[4l\E[0Q, smir=\E[4h\E[2Q,
14597 # (addrinfo: removed obsolete ":bc=^Z:" -- esr)
14598 addrinfo,
14599         am,
14600         cols#80, lines#24,
14601         bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y,
14602         cup=\037%p1%c%p2%c, cuu1=^\, ed=^K, home=^H, ind=^J, ll=^H^\,
14603 # (infoton: used to have the no-ops <lh#0>, <lw#0>, <nlab#0> -- esr)
14604 infoton,
14605         am,
14606         cols#80, lines#24,
14607         bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y, cuu1=^\,
14608         ed=^K, ind=^J, ll=^H^\,
14609
14610 # The ICL6402 was actually the Kokusai Display System 6402.
14611 # The 6404 was the KDS7372 (color version of the 6402).
14612 #
14613 # ICL6404 control codes follow:
14614 #
14615 #code            function
14616 #~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14617 #ctrl-A          set SOM position at cursor position
14618 #ctrl-G          Bell
14619 #ctrl-H          Backspace
14620 #ctrl-I          Horiz tab
14621 #ctrl-J          Linefeed
14622 #ctrl-K          Cursor up
14623 #ctrl-L          Cursor right
14624 #ctrl-M          Carriage return
14625 #ctrl-N          Disable xon/xoff to host
14626 #ctrl-O          Enable xon/xoff to host
14627 #ctrl-R          Enable bidirectional mode
14628 #ctrl-T          Disable bidirectional mode
14629 #ctrl-V          Cursor down
14630 #ctrl-Z          Clear unprotected data to insert char
14631 #ctrl-^          Cursor home
14632 #ctrl-_          Newline
14633 #
14634 #ESC             lead-in char for multiple character command
14635 #
14636 #ESC space R     execute power on sequence
14637 #ESC ! p1 p2     define scroll region:
14638 #                p1 = scroll top    line:  20h - 37h
14639 #                p1 = scroll bottom line:  20h - 37h
14640 #ESC "           unlock keyboard
14641 #ESC #           lock keyboard
14642 #ESC $           Semi-graphics mode on
14643 #ESC %           Semi-graphics mode off
14644 #ESC &           protect mode on
14645 #ESC '           protect mode off
14646 #ESC (           write protect mode off (full intensity)
14647 #ESC )           write protect mode on (half intensity)
14648 #
14649 #ESC *           clear screen
14650 #ESC +           clear unprotected data to insert char
14651 #ESC ,           clear unprotected data to half intensity spaces
14652 #ESC - p1 p2 p3 p4     address cursor to page, row, column:
14653 #                      p1 = page number  0 - 3
14654 #                      p2 = row          20h - 7fh
14655 #                      p3 = column (lo)  20h - 7fh
14656 #                      p4 = column (hi)  20h - 21h (only 132 col)
14657 #ESC . p1        set cursor style:
14658 #                p1 = 0  invisible cursor
14659 #                p1 = 1  block blinking cursor
14660 #                p1 = 2  block steady cursor
14661 #                p1 = 3  underline blinking cursor
14662 #                p1 = 4  underline steady cursor
14663 #ESC /           transmit cursor location (page, row, column)
14664 #ESC 0 p1 p2 p3 p4     program edit key:
14665 #                      p1 = edit key code: '@'-'S', '`'-'s'
14666 #                      p2 p3 p4 = program data (3 bytes)
14667 #
14668 #ESC 1           set tab
14669 #ESC 2           clear tab at cursor
14670 #ESC 3           clear all tabs
14671 #ESC 4           send unprotect line to cursor
14672 #ESC 5           send unprotect page to cursor
14673 #ESC 6           send line to cursor
14674 #ESC 7           send page to cursor
14675 #ESC 8 n         set scroll mode:
14676 #                n = 0   set jump scroll
14677 #                n = 1   set smooth scroll
14678 #ESC 9 n         control display:
14679 #                n = 0   display off
14680 #                n = 1   display on
14681 #ESC :           clear unprotected data to null
14682 #ESC ;           clear unprotected data to insert char
14683 #
14684 #ESC <           keyclick on
14685 #ESC = p1 p2     address cursor to row, column
14686 #                p1 = row          20h - 7fh
14687 #                p2 = column (lo)  20h - 7fh
14688 #                p3 = column (hi)  20h - 21h (only 132 col)
14689 #ESC >           keyclick off
14690 #ESC ?           transmit cursor location (row, column)
14691 #
14692 #ESC @           copy print mode on
14693 #ESC A           copy print mode off
14694 #ESC B           block mode on
14695 #ESC C           block mode off (conversation mode)
14696 #ESC D F         set full duplex
14697 #ESC D H         set half duplex
14698 #ESC E           line insert
14699 #ESC F p1 p2     set page colour (p1 = f/grnd, p2 = b/grnd)
14700 #                0 = black, 1 = red,     2 = green, 3 = yellow
14701 #                4 = blue,  5 = magenta, 6 = cyan,  7 = white
14702 #ESC G n         set serial field attribute (n = 30h - 3Fh)
14703 #ESC H n         full graphics mode:
14704 #                n = 0  exit full graphics mode
14705 #                n = 1  enter full graphics mode
14706 #ESC I           back tab
14707 #ESC J           back page
14708 #ESC K           forward page
14709 #
14710 #ESC L           unformatted page print
14711 #ESC M L         move window left  (132 col mode only)
14712 #ESC M R         move window right (132 col mode only)
14713 #ESC N           set page edit (clear line edit)
14714 #ESC O           set line edit (clear page edit)
14715 #ESC P           formatted page print
14716 #ESC Q           character insert
14717 #ESC R           line delete
14718 #ESC S           send message unprotected only
14719 #ESC T           erase line to insert char
14720 #ESC U           set monitor mode   (see ESC X, ESC u)
14721 #
14722 #ESC V n         select video attribute mode:
14723 #                n = 0   serial field attribute mode
14724 #                n = 1   parallel character attribute mode
14725 #ESC V 2 n       define line attribute:
14726 #                n = 0   single width single height
14727 #                n = 1   single width double height
14728 #                n = 2   double width single height
14729 #                n = 3   double width double height
14730 #ESC V 3 n       select character font:
14731 #                n = 0   system font
14732 #                n = 1   user defined font
14733 #ESC V 4 n       select screen mode:
14734 #                n = 0   page screen mode
14735 #                n = 1   virtual screen mode
14736 #ESC V 5 n       control mouse mode:
14737 #                n = 0   disable mouse
14738 #                n = 1   enable sample mode
14739 #                n = 2   send mouse information
14740 #                n = 3   enable request mode
14741 #ESC W           character delete
14742 #ESC X           clear monitor mode (see ESC U, ESC u)
14743 #ESC Y           erase page to insert char
14744 #
14745 #ESC Z n         send user/status line:
14746 #                n = 0   send user line
14747 #                n = 1   send status line
14748 #                n = 2   send terminal ID
14749 #ESC [ p1 p2 p3  set character attribute (parallel char mode):
14750 #                p1: 0 = normal
14751 #                    1 = blank
14752 #                    2 = blink
14753 #                    3 = blink blank (= blank)
14754 #                    4 = reverse
14755 #                    5 = reverse blank
14756 #                    6 = reverse blink
14757 #                    7 = reverse blink blank (= reverse blank)
14758 #                    8 = underline
14759 #                    9 = underline blank
14760 #                    : = underline blink
14761 #                    ; = underline blink blank
14762 #                    < = reverse underline
14763 #                    = = reverse underline blank
14764 #                    > = reverse underline blink
14765 #                    ? = reverse underline blink blank
14766 #                p2, p3: f/grnd, b/grnd colour
14767 #                (see ESC F for colours)
14768 #                use ZZ for mono, eg.
14769 #                    ESC [ 0 Z Z for normal
14770 #                    ESC [ 4 Z Z for inverse etc.
14771 #
14772 #ESC \ n         set page size:
14773 #                n = 1   24 lines/page
14774 #                n = 2   48 lines/page
14775 #                n = 3   72 lines/page
14776 #                n = 4   96 lines/page
14777 #ESC ] n         set Wordstar mode:
14778 #                n = 0   normal (KDS7372) mode
14779 #                n = 1   Wordstar mode
14780 #
14781 #ESC b           set foreground colour screen
14782 #
14783 #ESC c n         enter self-test mode:
14784 #                n = 0   exit self test mode
14785 #                n = 1   ROM test
14786 #                n = 2   RAM test
14787 #                n = 3   NVRAM test
14788 #                n = 4   screen display test
14789 #                n = 5   main/printer port test
14790 #                n = 6   mouse port test
14791 #                n = 7   graphics board test
14792 #                n = 8   graphics memory test
14793 #                n = 9   display all 'E'
14794 #                n = :   display all 'H'
14795 #ESC d           set background colour screen
14796 #
14797 #ESC e n         program insert char (n = insert char)
14798 #ESC f text CR   load user status line with 'text'
14799 #
14800 #ESC g           display user status line on 25th line
14801 #ESC h           display system status line on 25th line
14802 #ESC i           tab
14803 #ESC j           reverse linefeed
14804 #ESC k n         duplex/local edit mode:
14805 #                n = 0   duplex edit mode
14806 #                n = 1   local edit mode
14807 #ESC l n         select virtual screen:
14808 #                n = 0   screen 1
14809 #                n = 1   screen 2
14810 #ESC m           save current config to NVRAM
14811 #ESC n p1        select display screen:
14812 #                p1 = 0  screen 1
14813 #                p1 = 1  screen 2
14814 #                p1 = 2  screen 3
14815 #                p1 = 3  screen 4
14816 #ESC o p1 p2     set characters/line and attribute:
14817 #                p1 = 0  80 chars/line
14818 #
14819 #ESC o p1 p2     set characters/line and attribute:
14820 #                p1 = 0  80 chars/line
14821 #                p1 = 1  132 chars/line
14822 #                p2 = 0  single width single height
14823 #                p2 = 1  single width double height
14824 #                p2 = 2  double width single height
14825 #                p2 = 3  double width double height
14826 #
14827 #ESC q           insert mode on
14828 #ESC r           edit mode on
14829 #ESC s           send message all
14830 #ESC t           erase line to null
14831 #ESC u           clear monitor mode (see ESC U, ESC X)
14832 #ESC v           autopage mode on
14833 #ESC w           autopage mode off
14834 #ESC x p1 p2 p3  define delimiter code...
14835 #ESC y           erase page to null
14836 #
14837 #ESC z 2 p1 p2 p3 p4   draw quadrangle:
14838 #                      p1 = starting row
14839 #                      p2 = starting column
14840 #                      p3 = end row
14841 #                      p4 = end column
14842 #
14843 #ESC { p1 p2 p3 p4     configure main port
14844 #                      (baud, stop bits, parity, word length)
14845 #
14846 #ESC | p1 p2 text Ctrl-Y    program function key with 'text':
14847 #                        p1 = function key code:
14848 #                             '1' - ';'  normal f1- f11
14849 #                             '<' - 'F'  shifted f1 - f11
14850 #                        p2 = program mode:
14851 #                             1 = FDX
14852 #                             2 = LOC
14853 #                             3 = HDX
14854 #                        Ctrl-Y = terminator
14855 #                        (use Ctrl-P to escape ^P, ^Y )
14856 #
14857 #ESC } p1 p2 p3 p4     configure printer port
14858 #                      (baud, stop bits, parity, word length)
14859 #ESC ~           send system status
14860 #
14861 # Codes and info from Peter Disdale <pete@pdlmail.demon.co.uk> 12 May 1997
14862 #
14863 # Entry is by esr going solely on above information and is UNTESTED.
14864 # This actually looks a lot like a Televideo 9xx.
14865 # This entry uses page 0 and is monochrome; I'm not brave enough to try
14866 # to make color work without a test terminal.  The <am> capability is a guess.
14867 # The initialization string sets conversation mode, blinking underline cursor,
14868 # full duplex, parallel attribute mode, display user status line, white
14869 # foreground, black background, normal highlight.
14870 #
14871 icl6404|kds7372|icl6402|kds6402|ICL 6404 aka Kokusai Display Systems 7372,
14872         OTbs, am, hs,
14873         cols#80, lines#24,
14874         bel=^G, blink=\E[2ZZ, cbt=\EI, civis=\E.0, clear=\E*,
14875         cnorm=\E.3, cr=^M,
14876         csr=\E!%+%p1%{32}%+%p2%{32} cud1=\026, cuf1=^L,
14877         cup=\E=%p1%{32}%+%c%p2%{80}%m%{32}%+%c%p2%{80}%>%{32}%+%c,
14878         cuu1=^K, cvvis=\E.1, dch1=\EW, dl1=\ER, home=^^, ht=^I,
14879         hts=\E1, il1=\EE, invis=\E[1ZZ,
14880         is1=\EC\E.3\EDF\EV1\Eg\E[0ZZ, nel=^_, rev=\E[4ZZ,
14881         rmir=\Er, rmso=\E[%gh%{4}%^%Ph%gh%dZZ,
14882         rmul=\E[%gh%{8}%^%Ph%gh%dZZ, rs2=\Eo1,
14883         sgr=\E[%'0'%?%p1%t%'8'%|%;%?%p2%t%'8'%|%;%?%p3%t%'4'%|%;%?%p4%t%'2'%|%;%?%p7%t%'1'%|%;%cZZ,
14884         sgr0=\E[0ZZ, smir=\Eq, smso=\E[8ZZ, smul=\E[8ZZ, tbc=\E3,
14885 icl6404-w|kds7372-w|ICL 6404 aka Kokusai Display Systems 7372 132 cols,
14886         rs2=\Eo1, use=icl6404,
14887
14888 #### Interactive Systems Corp
14889 #
14890 # ISC used to sell OEMed and customized hardware to support ISC UNIX.
14891 # ISC UNIX still exists in 1995, but ISC itself is no more; they got
14892 # bought out by Sun.
14893 #
14894
14895 # From: <cithep!eric>  Wed Sep 16 08:06:44 1981
14896 # (intext: removed obsolete ":ma=^K^P^R^L^L ::bc=^_:", also the
14897 # ":le=^_:" later overridden -- esr)
14898 intext|Interactive Systems Corporation modified owl 1200,
14899         OTbs, am,
14900         cols#80, it#8, lines#24, xmc#1,
14901         bel=^G, cbt=^Y, clear=\014$<132>, cr=^M, cub1=^H, cud1=^J,
14902         cuf1=^^, cup=\017%p1%{32}%+%c%p2%{32}%+%c, cuu1=^\,
14903         dch1=\022$<5.5*>, dl1=\021$<5.5*>, ed=\026J$<5.5*>,
14904         el=^Kp^R, ht=^I, il1=\020$<5.5*>, ind=^J, ip=$<5.5*>, kbs=^H,
14905         kcub1=^_, kcud1=^J, kcuf1=^^, kcuu1=^\, kf0=^VJ\r, kf1=^VA\r,
14906         kf2=^VB\r, kf3=^VC\r, kf4=^VD\r, kf5=^VE\r, kf6=^VF\r,
14907         kf7=^VG\r, kf8=^VH\r, kf9=^VI\r, khome=^Z, rmir=^V<,
14908         rmkx=^V9, rmso=^V#\s, smir=^V;, smkx=\036\:\264\026%%,
14909         smso=^V$\,,
14910 intext2|intextii|INTERACTIVE modified owl 1251,
14911         am, bw, ul,
14912         cols#80, lines#24, xmc#0,
14913         bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cub1=\E[D,
14914         cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
14915         dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K,
14916         flash=\E[;;;;;;;;;2;;u$<200/>\E[;;;;;;;;;1;;u,
14917         hpa=\E[%p1%{1}%+%dG, ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S,
14918         kbs=^H, kcub1=\ED\r, kcud1=\EB\r, kcuf1=\EC\r, kcuu1=\EA\r,
14919         kf0=\E@\r, kf1=\EP\r, kf2=\EQ\r, kf3=\ES\r, kf4=\ET\r,
14920         kf5=\EU\r, kf6=\EV\r, kf7=\EW\r, kf8=\EX\r, kf9=\EY\r,
14921         khome=\ER\r, lf0=REFRSH, lf1=DEL CH, lf2=TABSET, lf3=GOTO,
14922         lf4=+PAGE, lf5=+SRCH, lf6=-PAGE, lf7=-SRCH, lf8=LEFT,
14923         lf9=RIGHT, ri=\E[T, rmso=\E[2 D, rmul=\E[2 D, smso=\E[6 D,
14924         smul=\E[18 D,
14925
14926 #### Kimtron (abm, kt)
14927 #
14928 # Kimtron seems to be history, but as March 1998 these people are still
14929 # offering repair services for Kimtron equipment:
14930 #
14931 #    Com/Pair Monitor Service
14932 #    1105 N. Cliff Ave.
14933 #    Sioux Falls, South Dakota 57103
14934 #
14935 #    WATS voice:  1-800/398-4946
14936 #    POTS   fax: +1 605/338-8709
14937 #    POTS voice: +1 605/338-9650
14938 #         Email: <compair@sd.cybernex.net>
14939 #  Internet/Web: <http://www.com-pair.com>
14940 #
14941 # Kimtron entries include (undocumented) codes for: enter dim mode,
14942 # enter bold mode, enter reverse mode, turn off all attributes.
14943 #
14944
14945 # Kimtron ABM 85 added by Dual Systems
14946 # (abm85: removed duplicated ":kd=^J:" -- esr)
14947 abm85|Kimtron ABM 85,
14948         OTbs, am, bw, msgr,
14949         cols#80, it#8, lines#24, xmc#1,
14950         cbt=\EI, clear=\E*, cub1=^H, cud1=^J, cuf1=^L,
14951         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
14952         dl1=\ER, ed=\Ey, el=\Et, ht=^I,
14953         if=/usr/share/tabset/stdcrt, il1=\EE,
14954         is2=\EC\EX\Eg\En\E%\Er\E(\Ek\Em\Eq, kbs=^H, kcub1=^H,
14955         kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rmir=\Er, rmso=\Ek,
14956         rmul=\Em, smir=\EQ, smso=\Ej, smul=\El,
14957 # Kimtron ABM 85H added by Dual Systems.
14958 # Some notes about the abm85h entries:
14959 # 1) there are several firmware revs of 85H in the world. Use abm85h-old for
14960 #    firmware revs prior to SP51
14961 # 2) Make sure to use abm85h entry if the terminal is in 85h mode and the
14962 #    abm85e entry if it is in tvi920 emulation mode. They are incompatible
14963 #    in some places and NOT software settable i.e., <is2> can't fix it)
14964 # 3) In 85h mode, the arrow keys and special functions transmit when
14965 #    the terminal is in dup-edit, and work only locally in local-edit.
14966 #    Vi won't swallow `del char' for instance, but <smcup> turns on
14967 #    dup-edit anyway so that the arrow keys will work right. If the
14968 #    arrow keys don't work the way you like, change <smcup>, <rmcup>, and
14969 #    <is2>.  Note that 920E mode does not have software commands to toggle
14970 #    between dup and local edit, so you get whatever was set last on the
14971 #    terminal.
14972 # 4) <flash> attribute is nice, but seems too slow to work correctly
14973 #    (\Eb<pad>\Ed)
14974 # 5) Make sure `hidden' attributes are selected. If `embedded' attributes
14975 #    are selected, the <xmc@> entry should be removed.
14976 # 6) auto new-line should be on (selectable from setup mode only)
14977 #
14978 # From: Erik Fair <fair@ucbarpa>  Sun Oct 27 07:21:05 1985
14979 abm85h|Kimtron ABM 85H native mode,
14980         hs,
14981         xmc@,
14982         bel=^G, cnorm=\E.4, cvvis=\E.2, dim=\E), dsl=\Ee, flash@,
14983         fsl=^M, invis@,
14984         is2=\EC\EN\EX\024\016\EA\Ea\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\EG0\Ed\E.4\El,
14985         kcud1=^V, sgr0=\E(\EG0, smir=\EZ, tsl=\Eg\Ef, use=adm+sgr,
14986         use=abm85,
14987 abm85e|Kimtron ABM 85H in 920E mode,
14988         xmc@,
14989         bel=^G, dim=\E), flash@,
14990         is2=\EC\EX\EA\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\Ek\Eq\Em,
14991         rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
14992 abm85h-old|oabm85h|o85h|Kimtron ABM 85H with old firmware rev.,
14993         xmc@,
14994         bel=^G, dim=\E),
14995         is2=\E}\EC\EX\Ee\En\E%\Er\E(\Ek\Em\Eq\Ed\ET\EC\E9\EF,
14996         rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
14997 # From: <malman@bbn-vax.arpa>
14998 # (kt7: removed obsolete :ma=^V^J^L :" -- esr)
14999 kt7|kimtron model kt-7,
15000         OTbs, am,
15001         cols#80, it#8, lines#24,
15002         cbt=\EI, clear=^Z, cub1=^H, cud1=^V, cuf1=^L,
15003         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
15004         dl1=\ER, ed=\EY, el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
15005         if=/usr/share/tabset/stdcrt, il1=\EE, invis@, is2=\El\E",
15006         kbs=^H, kcbt=\EI, kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L,
15007         kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r,
15008         kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
15009         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
15010         kich1=\EQ, kil1=\EE, tsl=\Ef, use=adm+sgr,
15011 # Renamed TB=^I to :ta:, BE=^G to :bl:, BS=^H to :kb:, N to :kS: (based on the
15012 # other kt7 entry and the adjacent key capabilities).  Removed EE which is
15013 # identical to :mh:.  Removed :ES=\EGD: which is some kind of highlight
15014 # but we can't figure out what.
15015 kt7ix|kimtron model kt-7 or 70 in IX mode,
15016         am, bw,
15017         cols#80, it#8, lines#25,
15018         acsc=jYk?lZm@nEqDt4uCvAwBx3, bel=^G, blink=\EG2, cbt=\EI,
15019         civis=\E.0, clear=\E*, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V,
15020         cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
15021         dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=^M,
15022         home=^^, ht=^I, ich1=\EQ, il1=\EE, ind=^J,
15023         is2=\EG0\E s\017\E~, kbs=^H, kcbt=\EI, kclr=\E*,
15024         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\ER,
15025         ked=\EY, kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
15026         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
15027         kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, knp=\EJ,
15028         nel=^M^J, pulse=\EK, rmacs=\E%%, rmir=, rmso=\EG0, rmul=\EG0,
15029         sgr0=\EG0, smacs=\E$, smir=, smso=\EG4, smul=\EG8, tsl=\Ef,
15030
15031 #### Microdata/MDIS
15032 #
15033 # This was a line of terminals made by McDonnell-Douglas Information Systems.
15034 # These entries come direct from MDIS documentation.  I have edited them only
15035 # to move primary names of the form p[0-9] * to aliases, and to comment out
15036 # <rmacs>/<smacs> in a couple of entries without <acsc> strings.  I have
15037 # also removed the change history; the last version indicates this is
15038 # version 4.3 by A.Barkus, September 1990 (earliest entry is October 1989).
15039 #
15040
15041 # McDonnell Information Systems Terminal Family History
15042 # =========================================
15043 #
15044 # Prism-1, Prism-2 and P99:
15045 #       Ancient Microdata and CMC terminals, vaguely like Adds Regent 25.
15046 #
15047 # Prism-4 and Prism-5:
15048 #       Slightly less ancient range of Microdata terminals. Follow-on from
15049 #       Prism-2, but with many enhancements. P5 has eight display pages.
15050 #
15051 # Prism-6:
15052 #       A special terminal for use with library systems, primarily in Germany.
15053 #       Limited numbers. Similar functionality to P5 (except attributes?).
15054 #
15055 # Prism-7, Prism-8 and Prism-9:
15056 #       More recent range of MDIS terminals, in which P7 and P8
15057 #       replace the P4 & P5, with added functionality, and P9 is the flagship.
15058 #       The P9 has two emulation modes - P8 and ANSI - and includes a
15059 #       large number of the DEC VT220 control sequences. Both
15060 #       P8 and P9 support 80c/24ln/8pg and 132cl/24li/4pg formats.
15061 #
15062 # Prism-12 and Prism-14:
15063 #       Latest range, functionally very similar to the P9.  The P14 has a
15064 #       black-on-white overscanning screen.
15065 #
15066 # The terminfo definitions given here are:
15067 #
15068 # p2      - Prism-2 (or Prism-1 or P99).
15069 #
15070 # p4      - Prism-4 (and older P7s & P8s).
15071 # p5      - Prism-5 (or Prism-6).
15072 #
15073 # p7      - Prism-7.
15074 # p8      - Prism-8 (in national or multinational mode).
15075 # p8-w    - 132 column version of p8.
15076 # p9      - Prism-9 in ANSI mode.
15077 # p9-w    - 132 column version of p9.
15078 # p9-8    - Prism-9 in Prism-8 emulation mode.
15079 # p9-8-w  - As p9-8, but with 132 columns.
15080 #
15081 # p12     - Prism-12 in ANSI mode.
15082 # p12-w   - 132 column version of p12.
15083 # p12-m   - Prism-12 in MDC emulation mode.
15084 # p12-m-w - As p12-m, but with 132 columns.
15085 # p14     - Prism-14 in ANSI mode.
15086 # p14-w   - 132 column version of p14.
15087 # p14-m   - Prism-14 in MDC emulation mode.
15088 # p14-m-w - As p14-m, but with 132 columns.
15089 #
15090 # p2: Prism-2
15091 # -----------
15092 #
15093 # Includes Prism-1 and basic P99 without SP or MP loaded.
15094 # The simplest form of Prism-type terminal.
15095 # Basic cursor movement and clearing operations only.
15096 # No video attributes.
15097 # Notes:
15098 #  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
15099 #  value up, followed by backspace.
15100 #
15101 prism2|MDC Prism-2,
15102         am, bw, msgr,
15103         cols#80, lines#24,
15104         bel=^G, clear=\014$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
15105         cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
15106         cuu1=^Z, ed=\EJ, el=\EK, home=^A,
15107         hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
15108         ind=^J, kbs=^H, khome=^A, vpa=\013%p1%{32}%+%c,
15109
15110 # p4: Prism-4
15111 # -----------
15112 #
15113 # Includes early versions of P7 & P8.
15114 # Basic family definition for most Prisms (except P2 and P9 ANSI).
15115 # Notes:
15116 #  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
15117 #  value up, followed by backspace.
15118 #  Cursor key definitions removed because they interfere with vi and csh keys.
15119 #
15120 prism4|p4|P4|MDC Prism-4,
15121         am, bw, hs, mc5i, msgr,
15122         cols#80, lines#24, wsl#72, xmc#1,
15123         bel=^G, blink=^CB, civis=^]\344, clear=\014$<20>,
15124         cnorm=^]\342, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
15125         cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
15126         cuu1=^Z, dim=^CA, dsl=\035\343\035\345, ed=\EJ, el=\EK,
15127         fsl=^]\345, home=^A,
15128         hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
15129         ind=^J, invis=^CH, kbs=^H, khome=^A, mc0=\EU, mc4=\ET, mc5=\ER,
15130         rev=^CD, rmso=^C\s, rmul=^C\s,
15131         sgr=\003%{64}%?%p1%p3%|%t%{4}%+%;%?%p2%t%{16}%+%;%?%p4%t%{2}%+%;%?%p5%t%{1}%+%;%?%p7%t%{8}%+%;%c%?%p9%t\016%e\017%;,
15132         sgr0=^C\s, smso=^CD, smul=^CP, tsl=^]\343,
15133         vpa=\013%p1%{32}%+%c,
15134
15135 # p5: Prism-5
15136 # -----------
15137 #
15138 # Same definition as p4. Includes Prism-6 (not tested!).
15139 # Does not use any multi-page features.
15140 #
15141 prism5|p5|P5|MDC Prism-5,
15142         use=p4,
15143
15144 # p7: Prism-7
15145 # -----------
15146 #
15147 # Similar definition to p4. Uses ANSI cursor motion to avoid network problems.
15148 # Notes:
15149 #  Use p4 for very early models of P7.
15150 #  Rev-index removed; can't send nulls to terminal in 8-bit modes.
15151 #
15152 prism7|p7|P7|MDC Prism-7,
15153         cup=\E[%i%p1%d;%p2%dH, hpa@, vpa@, use=p4,
15154
15155 # p8: Prism-8
15156 # -----------
15157 #
15158 # Similar definition to p7. Uses ANSI cursor motion to avoid network problems.
15159 # Supports national and multinational character sets.
15160 # Notes:
15161 #  Alternate char set operations only work in multinational mode.
15162 #  Use p4 for very early models of P8.
15163 #  Rev-index removed; can't send nulls to terminal in 8-bit modes.
15164 # (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
15165 #
15166 prism8|p8|P8|MDC Prism-8,
15167         cup=\E[%i%p1%d;%p2%dH, hpa=\E[%i%p1%d`, is2=\E[<12h,
15168         vpa=\E[%i%p1%dd, use=p4,
15169
15170 # p8-w: Prism-8 in 132 column mode
15171 # --------------------------------
15172 #
15173 # 'Wide' version of p8.
15174 # Notes:
15175 #  Rev-index removed; can't send nulls to terminal in 8-bit modes.
15176 #
15177 prism8-w|p8-w|P8-W|MDC Prism-8 in 132 column mode,
15178         cols#132,
15179         is2=\E[<12h\E[<14h, use=p8,
15180
15181 # p9: Prism-9 in ANSI mode
15182 # -------------------------
15183 #
15184 # The "flagship" model of this generation of terminals.
15185 # ANSI X3.64 (ISO 6429) standard sequences, plus many DEC VT220 ones.
15186 # Notes:
15187 #  Tabs only reset by "reset". Otherwise assumes default (8 cols).
15188 #  Fixes to deal with terminal firmware bugs:
15189 #  . 'ri' uses insert-line since rev index doesn't always
15190 #  . 'sgr0' has extra '0' since esc[m fails
15191 #  . 'fsl' & 'dsl' use illegal char since cr is actioned wrong on line 25
15192 #  Not covered in the current definition:
15193 #  . Labels
15194 #  . Programming Fn keys
15195 #  . Graphic characters (defaults correctly to vt100)
15196 #  . Padding values (sets xon)
15197 # (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
15198 #
15199 prism9|p9|P9|MDC Prism-9 in ANSII mode,
15200         am, bw, hs, msgr, xenl, xon,
15201         cols#80, it#8, lines#24, vt#3, wsl#72,
15202         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[<4l,
15203         clear=^L, cnorm=\E[<4h, cr=^M, csr=\E[%i%p1%d;%p2%d%%v,
15204         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
15205         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
15206         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
15207         dl=\E[%p1%dM, dl1=\E[M, dsl=\E[%}\024, ech=\E[%p1%dX,
15208         ed=\E[J$<10>, el=\E[K, fsl=^T, home=\E[H, hpa=\E[%i%p1%d`,
15209         ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J,
15210         is2=\E[&p\E[<12l\E F, kbs=^H, kclr=^L, kcub1=\E[D,
15211         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
15212         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
15213         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
15214         kf18=\E[32~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
15215         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
15216         khome=\E[H, nel=^M^J, prot=\E[32%{, rc=\E[%z,
15217         rep=\E[%p2%db%p1%c, rev=\E[7m, ri=\E[L, rmir=\E[4l,
15218         rmso=\E[27m, rmul=\E[24m,
15219         rs2=\E[&p\E[<12l\E F\E[3g\E[9;17;25;33;41;49;57;65;73 N,
15220         sc=\E[%y,
15221         sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;m%?%p8%t\E[32%%{%;%?%p9%t\016%e\017%;,
15222         sgr0=\E[0m\017, smir=\E[4h, smso=\E[7m, smul=\E[4m,
15223         tbc=\E[3g, tsl=\E[%i%p1%d%%}, vpa=\E[%i%p1%dd,
15224         use=ansi+pp,
15225
15226 # p9-w: Prism-9 in 132 column mode
15227 # --------------------------------
15228 #
15229 # 'Wide' version of p9.
15230 #
15231 prism9-w|p9-w|P9-W|MDC Prism-9 in 132 column mode,
15232         cols#132,
15233         is2=\E[&p\E[<12l\E F\E[<14h,
15234         rs2=\E[&p\E[<12l\E F\E[<14h, use=p9,
15235
15236 # p9-8: Prism-9 in P8 mode
15237 # ------------------------
15238 #
15239 # P9 terminal in P8 emulation mode.
15240 # Similar to p8 definition.
15241 # Insertion and deletion operations possible.
15242 #
15243 prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
15244         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
15245         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8,
15246
15247 # p9-8-w: Prism-9 in P8 and 132 column modes
15248 # ------------------------------------------
15249 #
15250 # P9 terminal in P8 emulation mode and 132 column mode.
15251 #
15252 prism9-8-w|p9-8-w|P9-8-W|MDC Prism-9 in Prism 8 emulation and 132 column mode,
15253         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
15254         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8-w,
15255
15256 # p12: Prism-12 in ANSI mode
15257 # ---------------------------
15258 #
15259 # See p9 definition.
15260 #
15261 prism12|p12|P12|MDC Prism-12 in ANSI mode,
15262         use=p9,
15263
15264 # p12-w: Prism-12 in 132 column mode
15265 # ----------------------------------
15266 #
15267 # 'Wide' version of p12.
15268 #
15269 prism12-w|p12-w|P12-W|MDC Prism-12 in 132 column mode,
15270         use=p9-w,
15271
15272 # p12-m: Prism-12 in MDC emulation mode
15273 # -------------------------------------
15274 #
15275 # P12 terminal in MDC emulation mode.
15276 # Similar to p8 definition.
15277 # Insertion and deletion operations possible.
15278 #
15279 prism12-m|p12-m|P12-M|MDC Prism-12 in MDC emulation mode,
15280         use=p9-8,
15281
15282 # p12-m-w: Prism-12 in MDC emulation and 132 column modes
15283 # -------------------------------------------------------
15284 #
15285 # P12 terminal in MDC emulation mode and 132 column mode.
15286 #
15287 prism12-m-w|p12-m-w|P12-M-W|MDC Prism-12 in MDC emulation and 132 column mode,
15288         use=p9-8-w,
15289
15290 # p14: Prism-14 in ANSII mode
15291 # ---------------------------
15292 #
15293 # See p9 definition.
15294 #
15295 prism14|p14|P14|MDC Prism-14 in ANSII mode,
15296         use=p9,
15297
15298 # p14-w: Prism-14 in 132 column mode
15299 # ----------------------------------
15300 #
15301 # 'Wide' version of p14.
15302 #
15303 prism14-w|p14-w|P14-W|MDC Prism-14 in 132 column mode,
15304         use=p9-w,
15305
15306 # p14-m: Prism-14 in MDC emulation mode
15307 # -------------------------------------
15308 #
15309 # P14 terminal in MDC emulation mode.
15310 # Similar to p8 definition.
15311 # Insertion and deletion operations possible.
15312 #
15313 prism14-m|p14-m|P14-M|MDC Prism-14 in MDC emulation mode,
15314         use=p9-8,
15315
15316 # p14-m-w: Prism-14 in MDC emulation and 132 column modes
15317 # -------------------------------------------------------
15318 #
15319 # P14 terminal in MDC emulation mode and 132 column mode.
15320 #
15321 prism14-m-w|p14-m-w|P14-M-W|MDC Prism-14 in MDC emulation and 132 column mode,
15322         use=p9-8-w,
15323
15324 # End of McDonnell Information Systems Prism definitions
15325
15326 # These things were popular in the Pick database community at one time
15327 # From: George Land <georgeland@aol.com> 24 Sep 1996
15328 p8gl|prism8gl|McDonnell-Douglas Prism-8 alternate definition,
15329         am, bw, hs, mir,
15330         cols#80, lines#24, ma#1, wsl#78, xmc#1,
15331         bel=^G, blink=^CB, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F,
15332         cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, dch1=\s^H, dim=^CA, dl1=^P,
15333         ed=\EJ, el=\EK, home=^A, ind=^J, invis=^CH, kbs=^H, kcub1=^U,
15334         kcud1=^J, kcuf1=^F, kcuu1=^Z, kdch1=\s^H, kdl1=^P, ked=\EJ,
15335         kel=\EK, kf1=^A@\r, kf10=^AI\r, kf12=^AJ\r, kf13=^AK\r,
15336         kf14=^AL\r, kf15=^AM\r, kf16=^AN\r, kf17=^AO\r, kf2=^AA\r,
15337         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
15338         kf8=^AG\r, kf9=^AH\r, khome=^A, lf1=F1, lf10=F10, lf2=F2,
15339         lf3=F3, lf4=F4, lf5=F5, lf6=F6, lf7=F7, lf8=F8, lf9=F9, nel=^J^M,
15340         pad=\0, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE,
15341         smul=^C0,
15342
15343 #### Microterm (act, mime)
15344 #
15345 # The mime1 entries refer to the Microterm Mime I or Mime II.
15346 # The default mime is assumed to be in enhanced act iv mode.
15347 #
15348
15349 # New "safe" cursor movement (5/87) from <reuss@umd5.umd.edu>.  Prevents
15350 # freakout with out-of-range args on Sytek multiplexors.  No <smso=^N> and
15351 # <rmso=^N> since  it gets confused and it's too dim anyway.  No <ich1>
15352 # since Sytek insists ^S means xoff.
15353 # (act4: found ":ic=2^S:ei=:im=:ip=.1*^V:" commented out in 8.3 -- esr)
15354 act4|microterm|microterm act iv,
15355         OTbs, am,
15356         cols#80, lines#24,
15357         bel=^G, clear=\014$<12/>, cr=^M, cub1=^H, cud1=^K, cuf1=^X,
15358         cup=\024%p1%{24}%+%c%p2%p2%?%{47}%>%t%{48}%+%;%{80}%+%c,
15359         cuu1=^Z, dch1=\004$<.1*/>, dl1=\027$<2.3*/>,
15360         ed=\037$<2.2*/>, el=\036$<.1*/>, home=^],
15361         il1=\001<2.3*/>, ind=^J, kcub1=^H, kcud1=^K, kcuf1=^X,
15362         kcuu1=^Z,
15363 # The padding on :sr: and :ta: for act5 and mime is a guess and not final.
15364 # The act 5 has hardware tabs, but they are in columns 8, 16, 24, 32, 41 (!)...
15365 # (microterm5: removed obsolete ":ma==^Z^P^Xl^Kj:" -- esr)
15366 act5|microterm5|microterm act v,
15367         kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, ri=\EH$<3>, uc=^H\EA,
15368         use=act4,
15369 # Mimes using brightness for standout.  Half bright is really dim unless
15370 # you turn up the brightness so far that lines show up on the screen.
15371 mime-fb|full bright mime1,
15372         is2=^S\E, rmso=^S, smso=^Y, use=mime,
15373 mime-hb|half bright mime1,
15374         is2=^Y\E, rmso=^Y, smso=^S, use=mime,
15375 # (mime: removed obsolete ":ma=^X ^K^J^Z^P:"; removed ":do=^K:" that overrode
15376 # the more plausible ":do=^J:" -- esr)
15377 # uc was at one time disabled to get around a curses bug, be wary of it
15378 mime|mime1|mime2|mimei|mimeii|microterm mime1,
15379         OTbs, am,
15380         cols#80, it#8, lines#24, vt#9,
15381         bel=^G, clear=^]^C, cr=^M, cub1=^H, cud1=^J, cuf1=^X,
15382         cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%{48}%+%;%{80}%+%c,
15383         cuu1=^Z, dl1=\027$<80>, ed=^_, el=^^, home=^], ht=\011$<2>,
15384         il1=\001$<80>, ind=^J, is2=^S\E^Q, kcub1=^H, kcud1=^K,
15385         kcuf1=^X, kcuu1=^Z, ri=\022$<3>, uc=^U,
15386 # These termcaps (for mime2a) put the terminal in low intensity mode
15387 # since high intensity mode is so obnoxious.
15388 mime2a-s|microterm mime2a (emulating an enhanced soroc iq120),
15389         OTbs, am,
15390         cols#80, lines#24,
15391         bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
15392         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EI, dch1=\ED,
15393         dl1=\027$<20*>, ed=\EJ$<20*>, el=\EK, home=^^,
15394         il1=\001$<20*>, ind=^J, ip=$<2>, is2=\E), kcub1=^H, kcud1=^J,
15395         kcuf1=^L, kcuu1=^K, ri=\EI, rmir=^Z, rmso=\E;, rmul=\E7,
15396         smir=\EE, smso=\E\:, smul=\E6,
15397 # This is the preferred mode (but ^X can't be used as a kill character)
15398 mime2a|mime2a-v|microterm mime2a (emulating an enhanced vt52),
15399         OTbs,
15400         cols#80, it#8, lines#24,
15401         bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15402         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=^N,
15403         dl1=\027$<20*>, ed=\EQ$<20*>, el=\EP, home=\EH, ht=^I,
15404         il1=\001$<20*>, ind=^J, ip=$<2>, is2=^Y, kcub1=\ED,
15405         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EA, rmir=^Z, rmso=\E9,
15406         rmul=\E5, smir=^O, smso=\E8, smul=\E4,
15407 # (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
15408 mime3a|mime1 emulating 3a,
15409         am@,
15410         kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
15411 mime3ax|mime-3ax|mime1 emulating enhanced 3a,
15412         it#8,
15413         dl1=\027$<80>, ed=^_, el=^X, ht=\011$<3>, il1=\001$<80>,
15414         use=mime3a,
15415 # Wed Mar  9 18:53:21 1983
15416 # We run our terminals at 2400 baud, so there might be some timing problems at
15417 # higher speeds. The major improvements in this model are the terminal now
15418 # scrolls down and insert mode works without redrawing the rest of the line
15419 # to the right of the cursor. This is done with a bit of a kludge using the
15420 # exit graphics mode to get out of insert, but it does not appear to hurt
15421 # anything when using vi at least. If you have some users using act4s with
15422 # programs that use curses and graphics mode this could be a problem.
15423 mime314|mm314|mime 314,
15424         am,
15425         cols#80, lines#24,
15426         clear=^L, cub1=^H, cuf1=^X, cup=\024%p1%c%p2%c, cuu1=^Z,
15427         dch1=^D, dl1=^W, ed=^_, el=^^, home=^], ht=^I, il1=^A, kcub1=^H,
15428         kcud1=^K, kcuf1=^X, kcuu1=^Z, rmir=^V, smir=^S,
15429 # Microterm mime 340 from University of Wisconsin
15430 mm340|mime340|mime 340,
15431         cols#80, lines#24,
15432         clear=\032$<12/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
15433         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
15434         dch1=\E#$<2.1*/>, dl1=\EV$<49.6/>, ed=\037$<2*/>,
15435         el=\EL$<2.1/>, ht=^I, il1=\EU$<46/>, ind=^J, is2=\E\,,
15436         kbs=^H, kcub1=^H, kcud1=^J, kcuu1=^K, nel=^M^J,
15437 # This came from University of Wisconsin marked "astro termcap for jooss".
15438 # (mt4520-rv: removed obsolete ":kn#4:" and incorrect ":ri=\E[C:";
15439 # also added <rmam>/<smam> based  on the init string -- esr)
15440 mt4520-rv|micro-term 4520 reverse video,
15441         am, hs, msgr, xenl, xon,
15442         cols#80, it#8, lines#24, wsl#80,
15443         bel=^G, clear=\E[H\E[J, cnorm=\E[0V\E8, cr=^M,
15444         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
15445         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
15446         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
15447         cvvis=\E7\E[0U, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
15448         dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l$<200/>\E[?5h,
15449         fsl=\E[?5l\E[?5h, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
15450         ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
15451         is2=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[1;24r\E[24;1H\E[H\E[J,
15452         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
15453         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
15454         ll=\E[24;1H, nel=\EE, rc=\E8, rf=/usr/share/tabset/vt100,
15455         ri=\EM, rmam=\E[?7l, rmso=\E[0m, rmul=\E[24m,
15456         rs1=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[H\E[J,
15457         sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
15458         tbc=\E[g, tsl=\E[25;1H,
15459
15460 # Fri Aug  5 08:11:57 1983
15461 # This entry works for the ergo 4000 with the following setups:
15462 # ansi,wraparound,newline disabled, xon/xoff disabled in both
15463 # setup a & c.
15464 #
15465 # WARNING!!! There are multiple versions of ERGO 4000 microcode
15466 # Be advised that very early versions DO NOT WORK RIGHT !!
15467 # Microterm does have a ROM exchange program- use it or lose big
15468 # (ergo400: added <rmam>/<smam> based on the init string -- esr)
15469 ergo4000|microterm ergo 4000,
15470         da, db, msgr,
15471         cols#80, lines#66,
15472         bel=^G, clear=\E[H\E[2J$<80>, cr=^M, cub1=^H, cud1=\E[B,
15473         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
15474         dch1=\E[1P$<80>, dl1=\E[1M$<5*>, ed=\E[0J$<15>,
15475         el=\E[0K$<13>, ht=^I, il1=\E[1L$<5*>, ind=\ED$<20*>,
15476         is2=\E<\E=\E[?1l\E[?4l\E[?5l\E[?7h\E[?8h$<300>,
15477         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
15478         kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=pf1, lf2=pf2, lf3=pf3,
15479         lf4=pf4, ri=\EM$<20*>, rmam=\E[?7l, rmir=\E[4l,
15480         rmkx=\E=$<4>, rmso=\E[m$<20>, sgr0=\E[m$<20>,
15481         smam=\E[?7m, smir=\E[4h$<6>, smkx=\E=$<4>,
15482         smso=\E[7m$<20>,
15483
15484 #### NCR
15485 #
15486 # NCR's terminal group was merged with AT&T's when AT&T bought the company.
15487 # For what happened to that group, see the ADDS section.
15488 #
15489 # There is an NCR4103 terminal that's just a re-badged Wyse-50.
15490 #
15491
15492 # The following vendor-supplied termcaps were captured from the Boundless
15493 # Technologies site, 8 March 1998.  I removed all-upper-case names that were
15494 # identical, except for case, to lower-case ones.  I also uncommented the acsc
15495 # capabilities.X
15496 #
15497 # The Intecolor emulation of the NCR 2900/260C color terminal is basically a
15498 # DEC vt200/300 with color capabilities added.
15499 ncr260intan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
15500         colors#8, pairs#64,
15501         op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
15502         use=ncr260vt300an,
15503 # The Intecolor emulation of the NCR 2900/260C color terminal is basically a
15504 # DEC vt200/300 with color capabilities added.
15505 ncr260intwan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
15506         colors#8, pairs#64,
15507         op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
15508         use=ncr260vt300wan,
15509 # The Intecolor emulation of the NCR 2900/260C color terminal is basically a
15510 # DEC vt200/300 with color capabilities added.
15511 ncr260intpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard,
15512         colors#8, pairs#64,
15513         op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
15514         use=ncr260vt300pp,
15515 # The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
15516 # DEC vt200/300 with color capabilities added.
15517 ncr260intwpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard in 132 column mode,
15518         colors#8, pairs#64,
15519         op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
15520         use=ncr260vt300wpp,
15521 # This definition for ViewPoint supports several attributes.  This means
15522 # that it has magic cookies (extra spaces where the attributes begin).
15523 # Some applications do not function well with magic cookies.  The System
15524 # Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
15525 # If supporting various attributes is not vital, 'xmc#1' and the extra
15526 # attributes can be removed.
15527 # Mapping to ASCII character set ('acsc' capability) can also be
15528 # restored if needed.
15529 ncr260vppp|NCR 2900_260 viewpoint,
15530         am, bw, hs, km, mc5i, mir, msgr, xon,
15531         cols#80, lines#24, nlab#32, xmc#1,
15532         acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
15533         cbt=\EI, civis=\E`0, clear=\014$<40>, cnorm=\E`5,
15534         cr=\r$<2>, cub1=\010$<2>, cud1=\n$<2>, cuf1=\006$<2>,
15535         cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5>, cuu1=\032$<2>,
15536         dch1=\EW$<2>, dim=\EGp, dl1=\El$<2>, dsl=\E`c, ed=\Ek$<2>,
15537         el=\EK$<2>, fsl=^M, home=\036$<2>, ht=^I, hts=\E1,
15538         il1=\EM$<2>, ind=\n$<2>, invis=\EG1,
15539         is2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
15540         kDC=\El, kEND=\Ek, kHOM=^A, kPRT=\E7, kRIT=^F, ka1=^A, ka3=\EJ,
15541         kbs=^H, kc1=\ET, kc3=\EJ, kcub1=^U, kcud1=^J, kcuf1=^F,
15542         kcuu1=^Z, kdch1=\EW, kend=\EK, kf1=^B1\r, kf10=^B\:\r,
15543         kf11=^B;\r, kf12=^B<\r, kf13=^B=\r, kf14=^B>\r, kf15=^B?\r,
15544         kf16=^B@\r, kf17=^B!\r, kf18=^B"\r, kf19=^B#\r, kf2=^B2\r,
15545         kf20=^B$\r, kf21=\002%^M, kf22=^B&\r, kf23=^B'\r,
15546         kf24=^B(\r, kf25=^B)\r, kf26=^B*\r, kf27=^B+\r,
15547         kf28=^B\,\r, kf29=^B-\r, kf3=^B3\r, kf30=^B.\r, kf31=^B/\r,
15548         kf32=^B0\r, kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r,
15549         kf8=^B8\r, kf9=^B9\r, khome=^A, kich1=\Eq, knp=\EJ, kpp=\EJ,
15550         kprt=\EP, ll=\001$<5>, mc0=\EP$<100>, mc4=^T, mc5=^R,
15551         mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<5>,
15552         nel=\037$<2>, rev=\EG4, ri=\Ej$<2>, rmacs=\EcB0\EH\003,
15553         rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
15554         rs2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
15555         sgr0=\EG0\EH\003, smacs=\EcB1\EH\002, smir=\Eq,
15556         smso=\EG4, smul=\EG8, smxon=\Ec21, tsl=\EF,
15557 ncr260vpwpp|NCR 2900_260 viewpoint wide mode,
15558         cols#132,
15559         cup=\Ea%i%p1%dR%p2%dC$<30>,
15560         is2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
15561         rs2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
15562         use=ncr260vppp,
15563 ncr260vt100an|NCR 2900_260 vt100 with ansi kybd,
15564         am, hs, mir, msgr, xenl, xon,
15565         cols#80, lines#24, nlab#32,
15566         acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
15567         blink=\E[5m, bold=\E[1m, civis=\E[?25l,
15568         clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
15569         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<5>,
15570         cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
15571         cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
15572         cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
15573         cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
15574         dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
15575         ech=\E[%p1%dX, ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>,
15576         fsl=\E[0$}, home=\E[H$<1>, hpa=\E[%p1%dG$<40>, ht=^I,
15577         hts=\EH, ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>,
15578         il1=\E[L$<5>, ind=\ED$<5>, indn=\E[%p1%dE$<5>,
15579         invis=\E[8m,
15580         is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15581         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
15582         kdch1=\E[3~, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~,
15583         knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>,
15584         rc=\E8, rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
15585         rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m,
15586         rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15587         sc=\E7,
15588         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
15589         sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
15590         smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
15591         tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>, use=vt220+keypad,
15592 ncr260vt100wan|NCR 2900_260 vt100 wide mode ansi kybd,
15593         cols#132,
15594         cup=\E[%i%p1%d;%p2%dH$<30>,
15595         is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15596         rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15597         use=ncr260vt100an,
15598 ncr260vt100pp|NCR 2900_260 vt100 with PC+ kybd,
15599         is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15600         ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
15601         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
15602         kend=\E[5~, khome=\E[2~, kich1=\E[1~, knp=\E[6~, kpp=\E[3~,
15603         lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>,
15604         rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15605         smkx=\E=, use=ncr260vt100an,
15606 ncr260vt100wpp|NCR 2900_260 vt100 wide mode pc+  kybd,
15607         cols#132,
15608         cup=\E[%i%p1%d;%p2%dH$<30>,
15609         is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15610         rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15611         use=ncr260vt100pp,
15612 ncr260vt200an|NCR 2900_260 vt200 with ansi kybd,
15613         am, hs, mir, msgr, xenl, xon,
15614         cols#80, lines#24, nlab#32,
15615         acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
15616         blink=\E[5m, bold=\E[1m, civis=\E[?25l,
15617         clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
15618         csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
15619         cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
15620         cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
15621         cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
15622         cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
15623         dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
15624         ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
15625         fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
15626         ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
15627         ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
15628         is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15629         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
15630         kdch1=\E[3~, kf0=\EOy, kf10=\E[21~, kf11=\E[23~,
15631         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
15632         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
15633         kf2=\EOQ, kf20=\E[34~, kf21=\E[31~, kf22=\E[32~,
15634         kf23=\E[33~, kf24=\E[34~, kf25=\E[35~, kf26=\E[1~,
15635         kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR, kf30=\E[5~,
15636         kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
15637         kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
15638         kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
15639         kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
15640         mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
15641         ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
15642         rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
15643         rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15644         sc=\E7,
15645         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
15646         sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
15647         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
15648         tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
15649         use=vt220+keypad,
15650 ncr260vt200wan|NCR 2900_260 vt200 wide mode ansi kybd,
15651         cols#132,
15652         cup=\E[%i%p1%d;%p2%dH$<30>,
15653         is2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
15654         rs2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
15655         use=ncr260vt200an,
15656 ncr260vt200pp|NCR 2900_260 vt200 with pc+ kybd,
15657         ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
15658         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
15659         kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15660         lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
15661         use=ncr260vt200an,
15662 ncr260vt200wpp|NCR 2900_260 vt200 wide mode pc+  kybd,
15663         cols#132,
15664         cup=\E[%i%p1%d;%p2%dH$<30>,
15665         is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15666         rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15667         use=ncr260vt200pp,
15668 ncr260vt300an|NCR 2900_260 vt300 with ansi kybd,
15669         am, hs, mir, msgr, xenl, xon,
15670         cols#80, lines#24, nlab#32,
15671         acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
15672         blink=\E[5m, bold=\E[1m, civis=\E[?25l,
15673         clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
15674         csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
15675         cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
15676         cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
15677         cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
15678         cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
15679         dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
15680         ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
15681         fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
15682         ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
15683         ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
15684         is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15685         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
15686         kdch1=\E[3~, kf0=\EOy, kf10=\E[21~, kf11=\E[23~,
15687         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
15688         kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
15689         kf20=\E[34~, kf21=\E[31~, kf22=\E[32~, kf23=\E[33~,
15690         kf24=\E[34~, kf25=\E[35~, kf26=\E[1~, kf27=\E[2~,
15691         kf28=\E[3~, kf29=\E[4~, kf30=\E[5~, kf31=\E[6~, kf32=\E[7~,
15692         kf33=\E[8~, kf34=\E[9~, kf35=\E[10~, kf5=\E[M, kf6=\E[17~,
15693         kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
15694         khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15695         krdo=\E[29~, kslt=\E[4~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
15696         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM$<5>, rmacs=\017$<20>,
15697         rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
15698         rmul=\E[24m,
15699         rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15700         sc=\E7,
15701         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
15702         sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
15703         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
15704         tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
15705         use=vt220+keypad,
15706 ncr260vt300wan|NCR 2900_260 vt300 wide mode ansi kybd,
15707         cols#132,
15708         cup=\E[%i%p1%d;%p2%dH$<30>,
15709         is2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>,
15710         rs2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>,
15711         use=ncr260vt300an,
15712 ncr260vt300pp|NCR 2900_260 vt300 with pc+ kybd,
15713         ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
15714         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
15715         kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15716         lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
15717         use=ncr260vt300an,
15718 NCR260VT300WPP|ncr260vt300wpp|NCR 2900_260 vt300 wide mode pc+  kybd,
15719         cols#132,
15720         cup=\E[%i%p1%d;%p2%dH$<30>,
15721         is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15722         rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
15723         use=ncr260vt300pp,
15724 # This terminfo file contains color capabilities for the Wyse325 emulation of
15725 # the NCR 2900/260C color terminal.  Because of the structure of the command
15726 # (escape sequence) used to set color attributes, one of the fore/background
15727 # colors must be preset to a given value. I have set the background color to
15728 # black.  The user can change this setup by altering the last section of the
15729 # 'setf' definition.  The escape sequence to set color attributes is
15730 #               ESC d y <foreground_color> <background_color> 1
15731 # In addition, the background color can be changed through the desk accessories.
15732 # The capablitiy 'op' sets colors to green on black (default combination).
15733 #
15734 # NOTE:  The NCR Unix System Administrator's Shell will not function properly
15735 #           if the 'pairs' capability is defined. Un-Comment the 'pairs'
15736 #           capability and recompile if you wish to have it included.
15737 #
15738 ncr260wy325pp|NCR 2900_260 wyse 325,
15739         am, bw, hs, km, mc5i, mir, msgr, xon,
15740         colors#16, cols#80, lines#24, ncv#33, nlab#32,
15741         acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
15742         cbt=\EI, civis=\E`0, clear=\E*$<10>, cnorm=\E`1, cr=^M,
15743         cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
15744         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
15745         cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
15746         ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<5>, ht=^I,
15747         hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
15748         is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15749         kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
15750         kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI,
15751         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kend=\ET,
15752         kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r,
15753         kf14=^AM\r, kf15=^AN\r, kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r,
15754         kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r,
15755         kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r,
15756         kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r, kf30=^Am\r, kf31=^An\r,
15757         kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
15758         kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ,
15759         kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
15760         mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
15761         nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
15762         rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
15763         rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15764         setb=\s,
15765         setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{64}%e%p1%{8}%=%t%{57}%e%p1%{9}%=%t%{58}%e%p1%{10}%=%t%{59}%e%p1%{11}%=%t%{60}%e%p1%{12}%=%t%{61}%e%p1%{13}%=%t%{62}%e%p1%{14}%=%t%{63}%e%p1%{15}%=%t%{56}%;\Edy%c11$<100>,
15766         sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH\002\EcB1, smam=\Ed/,
15767         smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
15768         tsl=\EF,
15769 ncr260wy325wpp|NCR 2900_260 wyse 325 wide mode,
15770         cols#132,
15771         cup=\Ea%i%p1%dR%p2%dC$<30>,
15772         is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15773         rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15774         use=ncr260wy325pp,
15775 # This definition for Wyse 350 supports several attributes.  This means
15776 # that it has magic cookies (extra spaces where the attributes begin).
15777 # Some applications do not function well with magic cookies.  The System
15778 # Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
15779 # If supporting various attributes is not vital, 'xmc#1' and the extra
15780 # attributes can be removed.
15781 # Mapping to ASCII character set ('acsc' capability) can also be
15782 # restored if needed.
15783 # In addition, color capabilities have been added to this file.  The drawback,
15784 # however, is that the background color has to be black.  The foreground colors
15785 # are numbered 0 through 15.
15786 #
15787 # NOTE:  The NCR Unix System Administrator's Shell does not function properly
15788 #           with the 'pairs' capability defined as below.  If you wish to
15789 #           have it included, Un-comment it and recompile (using 'tic').
15790 #
15791 ncr260wy350pp|NCR 2900_260 wyse 350,
15792         am, bw, hs, km, mc5i, mir, msgr, xon,
15793         colors#16, cols#80, lines#24, ncv#33, nlab#32, pairs#16, xmc#1,
15794         acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
15795         cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
15796         cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
15797         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, cuu1=\013$<5>,
15798         cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
15799         ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<10>, ht=^I,
15800         hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
15801         is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15802         kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
15803         kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
15804         kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
15805         kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
15806         kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
15807         kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
15808         kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
15809         kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
15810         kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
15811         khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
15812         mc0=\EP$<10>, mc4=^T, mc5=^R,
15813         mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<20>,
15814         nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
15815         rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
15816         rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15817         setb=\s,
15818         setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{102}%e%p1%{8}%=%t%{97}%e%p1%{9}%=%t%{98}%e%p1%{10}%=%t%{99}%e%p1%{11}%=%t%{101}%e%p1%{12}%=%t%{106}%e%p1%{13}%=%t%{110}%e%p1%{14}%=%t%{111}%e%p1%{15}%=%t%{56}%;\Em0%c$<100>,
15819         sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, smam=\Ed/,
15820         smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
15821         tsl=\EF,
15822 ncr260wy350wpp|NCR 2900_260 wyse 350 wide mode,
15823         cols#132,
15824         cup=\Ea%i%p1%dR%p2%dC$<30>,
15825         is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
15826         rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
15827         use=ncr260wy350pp,
15828 # This definition for Wyse 50+ supports several attributes.  This means
15829 # that it has magic cookies (extra spaces where the attributes begin).
15830 # Some applications do not function well with magic cookies.  The System
15831 # Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
15832 # If supporting various attributes is not vital, 'xmc#1' and the extra
15833 # attributes can be removed.
15834 # Mapping to ASCII character set ('acsc' capability) can also be
15835 # restored if needed.
15836 # (ncr260wy50+pp: originally contained commented-out
15837 # <acsc=j5k3l2m1n8q:t4u9v=w0x6>, as well as the commented-out one there -- esr)
15838 ncr260wy50+pp|NCR 2900_260 wyse 50+,
15839         am, bw, hs, km, mc5i, mir, msgr, xon,
15840         cols#80, lines#24, nlab#32, xmc#1,
15841         acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
15842         cbt=\EI$<5>, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
15843         cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
15844         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<30>, cuu1=\013$<5>,
15845         cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
15846         ed=\EY$<5>, el=\ET$<5>, fsl=^M, home=\036$<10>,
15847         ht=\011$<5>, hts=\E1$<5>, il1=\EE$<5>, ind=\n$<5>,
15848         invis=\EG1,
15849         is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15850         kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
15851         kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
15852         kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
15853         kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
15854         kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
15855         kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
15856         kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
15857         kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
15858         kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
15859         khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
15860         mc0=\EP$<10>, mc4=^T, mc5=^R,
15861         mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
15862         nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
15863         rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
15864         rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15865         sgr0=\EG0\EH\003$<15>, smacs=\EH^B, smam=\Ed/, smir=\Eq,
15866         smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<5>, tsl=\EF,
15867 ncr260wy50+wpp|NCR 2900_260 wyse 50+ wide mode,
15868         cols#132,
15869         cup=\Ea%i%p1%dR%p2%dC$<30>,
15870         is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
15871         rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
15872         use=ncr260wy50+pp,
15873 ncr260wy60pp|NCR 2900_260 wyse 60,
15874         am, bw, hs, km, mc5i, mir, msgr, xon,
15875         cols#80, lines#24, nlab#32,
15876         acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
15877         cbt=\EI$<15>, civis=\E`0, clear=\E*$<100>, cnorm=\E`1,
15878         cr=^M, cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
15879         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
15880         cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
15881         ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<25>,
15882         ht=\011$<15>, hts=\E1$<15>, il1=\EE$<5>, ind=\n$<5>,
15883         invis=\EG1,
15884         is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15885         kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
15886         kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK,
15887         kcbt=\EI$<15>, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
15888         kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
15889         kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
15890         kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r,
15891         kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r,
15892         kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r,
15893         kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r,
15894         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
15895         kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
15896         mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<30>,
15897         nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
15898         rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
15899         rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15900         sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH^B, smam=\Ed/,
15901         smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<15>,
15902         tsl=\EF,
15903 ncr260wy60wpp|NCR 2900_260 wyse 60 wide mode,
15904         cols#132,
15905         cup=\Ea%i%p1%dR%p2%dC$<30>,
15906         is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15907         rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
15908         use=ncr260wy60pp,
15909 ncr160vppp|NCR 2900_160 viewpoint,
15910         use=ncr260vppp,
15911 ncr160vpwpp|NCR 2900_160 viewpoint wide mode,
15912         use=ncr260vpwpp,
15913 ncr160vt100an|NCR 2900_160 vt100 with ansi kybd,
15914         use=ncr260vt100an,
15915 ncr160vt100pp|NCR 2900_160 vt100 with PC+ kybd,
15916         use=ncr260vt100pp,
15917 ncr160vt100wan|NCR 2900_160 vt100 wide mode ansi kybd,
15918         use=ncr260vt100wan,
15919 ncr160vt100wpp|NCR 2900_160 vt100 wide mode pc+  kybd,
15920         use=ncr260vt100wpp,
15921 ncr160vt200an|NCR 2900_160 vt200 with ansi kybd,
15922         use=ncr260vt200an,
15923 ncr160vt200pp|NCR 2900_160 vt200 with pc+ kybd,
15924         use=ncr260vt200pp,
15925 ncr160vt200wan|NCR 2900_160 vt200 wide mode ansi kybd,
15926         use=ncr260vt200wan,
15927 ncr160vt200wpp|NCR 2900_160 vt200 wide mode pc+  kybd,
15928         use=ncr260vt200wpp,
15929 ncr160vt300an|NCR 2900_160 vt300 with ansi kybd,
15930         use=ncr260vt300an,
15931 ncr160vt300pp|NCR 2900_160 vt300 with pc+ kybd,
15932         use=ncr260vt300pp,
15933 ncr160vt300wan|NCR 2900_160 vt300 wide mode ansi kybd,
15934         use=ncr260vt300wan,
15935 ncr160vt300wpp|NCR 2900_160 vt300 wide mode pc+  kybd,
15936         use=ncr260vt300wpp,
15937 ncr160wy50+pp|NCR 2900_160 wyse 50+,
15938         use=ncr260wy50+pp,
15939 ncr160wy50+wpp|NCR 2900_160 wyse 50+ wide mode,
15940         use=ncr260wy50+wpp,
15941 ncr160wy60pp|NCR 2900_160 wyse 60,
15942         use=ncr260wy60pp,
15943 ncr160wy60wpp|NCR 2900_160 wyse 60 wide mode,
15944         use=ncr260wy60wpp,
15945 ncrvt100an|ncrvt100pp|NCR vt100 for the 2900 terminal,
15946         am, hs, mc5i, mir, msgr, xon,
15947         cols#80, it#8, lines#24, nlab#32,
15948         acsc=``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~,
15949         bel=^G, blink=\E[5m$<30>, bold=\E[1m$<30>,
15950         clear=\E[2J\E[1;1H$<300>, cr=^M,
15951         csr=\E[%i%p1%d;%p2%dr$<100>, cub=\E[%p1%dD$<30>,
15952         cub1=\E[D$<2>, cud=\E[%p1%dB$<30>, cud1=\E[B$<2>,
15953         cuf=\E[%p1%dC$<30>, cuf1=\E[C$<2>,
15954         cup=\E[%i%p1%d;%p2%dH$<100>, cuu=\E[%p1%dA$<30>,
15955         cuu1=\E[A$<2>, dch=\E[%p1%dP$<40>, dch1=\E[1P$<10>,
15956         dl=\E[%p1%dM$<70>, dl1=\E[M$<40>, dsl=\E[31l$<25>,
15957         ed=\E[0J$<300>, el=\E[0K$<30>, el1=\E[1K$<30>,
15958         enacs=\E(B\E)0$<40>, fsl=1$<10>, home=\E[H$<2>$<80>,
15959         ht=^I, hts=\EH, il=\E[%p1%dL$<80>, il1=\E[B\E[L$<80>,
15960         ind=\ED,
15961         is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3l\E(B\E)0$<200>,
15962         kLFT=\E[D, kRIT=\E[C, ka1=\E[H, kbs=^H, kcub1=\E[D,
15963         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kent=^M, kf1=\EOP,
15964         kf2=\EOQ, kf3=\EOR, kf4=\EOS, mc0=\E[i$<100>, nel=\EE,
15965         rc=\E8, rev=\E[7m$<30>, ri=\EM$<50>, rmacs=\017$<90>,
15966         rmir=\E[4l$<80>, rmso=\E[0m$<30>, rmul=\E[0m$<30>,
15967         rs2=\Ec\E[12;31h\E[?3;4;5;10l\E[?6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>,
15968         sc=\E7,
15969         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<100>,
15970         sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>,
15971         smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>,
15972         tsl=\E[>+1$<70>,
15973 ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal,
15974         cols#132,
15975         is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>,
15976         rs2=\Ec\E[12;31h\E[?4;5;10l\E?3;6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>,
15977         use=ncrvt100an,
15978 #
15979 # Vendor-supplied NCR termcaps end here
15980
15981 # NCR7900 DIP switches:
15982 #
15983 # Switch A:
15984 # 1-4 - Baud Rate
15985 # 5   - Parity (Odd/Even)
15986 # 6   - Don't Send or Do Send Spaces
15987 # 7   - Parity Enable
15988 # 8   - Stop Bits (One/Two)
15989 #
15990 # Switch B:
15991 # 1   - Upper/Lower Shift
15992 # 2   - Typewriter Shift
15993 # 3   - Half Duplex / Full Duplex
15994 # 4   - Light/Dark Background
15995 # 5-6 - Carriage Return Without / With Line Feed
15996 # 7   - Extended Mode
15997 # 8   - Suppress Keyboard Display
15998 #
15999 # Switch C:
16000 # 1   - End of line entry disabled/enabled
16001 # 2   - Conversational mode / (Local?) Mode
16002 # 3   - Control characters displayed / not displayed
16003 # 4   - (2-wire?) / 4-wire communications
16004 # 5   - RTS on and off for each character
16005 # 6   - (50Hz?) / 60 Hz
16006 # 7   - Exit after level zero diagnostics
16007 # 8   - RS-232 interface
16008 #
16009 # Switch D:
16010 # 1   - Reverse Channel (yes / no)
16011 # 2   - Manual answer (no / yes)
16012 # 3-4 - Cursor appearance
16013 # 5   - Communication Rate
16014 # 6   - Enable / Disable EXT turnoff
16015 # 7   - Enable / Disable CR turnoff
16016 # 8   - Enable / Disable backspace
16017 #
16018 # Since each attribute parameter is 0 or 1, we shift each attribute (standout,
16019 # reverse, blink, dim, and underline) the appropriate number of bits (by
16020 # multiplying the 0 or 1 by a correct factor to shift) so the bias character,
16021 # '@' is (effectively) "or"ed with each attribute to generate the proper third
16022 # character in the <ESC>0 sequence.  The <sgr> string implements the following
16023 # equation:
16024 #
16025 # ((((('@' + P5) | (P4 << 1)) | (P3 << 3)) | (P2 << 4)) | (p1 * 17))    =>
16026 # ((((('@' + P5) + (P4 << 1)) + (P3 << 3)) + (P2 << 4)) + (p1 * 17))
16027 #
16028 #       Where:  P1 <==> Standout attribute parameter
16029 #               P2 <==> Underline attribute parameter
16030 #               P3 <==> Reverse attribute parameter
16031 #               P4 <==> Blink attribute parameter
16032 #               P5 <==> Dim attribute parameter
16033 # From <root@goliath.un.atlantaga.NCR.COM>, init string hacked by SCO.
16034 ncr7900i|ncr7900|ncr 7900 model 1,
16035         am, bw, ul,
16036         cols#80, lines#24, xmc#1,
16037         bel=^G, blink=\E0B, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
16038         cup=\E1%p2%c%p1%c, cuu1=^Z, dim=\E0A, ed=\Ek, el=\EK, ind=^J,
16039         is2=\E0@\010\E3\E4\E7, kcub1=^U, kcud1=^J, kcuf1=^F,
16040         kcuu1=^Z, khome=^A, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=\E0@,
16041         rmul=\E0@,
16042         sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c,
16043         sgr0=\E0@, smso=\E0Q, smul=\E0`,
16044 ncr7900iv|ncr 7900 model 4,
16045         am, bw, eslok, hs,
16046         cols#80, lines#24,
16047         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
16048         cup=\013%p1%{64}%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1,
16049         fsl=\Ek\Ey5, home=\013@\E^E00, il1=\E^N, ind=^J, kbs=^H,
16050         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET,
16051         kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
16052         khome=\EH, lf6=blue, lf7=red, lf8=white, nel=^M^J,
16053         tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo,
16054 # Warning: This terminal will lock out the keyboard when it receives a CTRL-D.
16055 #          The user can enter a CTRL-B to get out of this locked state.
16056 # In <hpa>, we want to output the character given by the formula:
16057 #               ((col / 10) * 16) + (col % 10)          where "col" is "p1"
16058 ncr7901|ncr 7901 model,
16059         am, bw, ul,
16060         cols#80, lines#24,
16061         bel=^G, blink=\E0B, civis=^W, clear=^L, cnorm=^X, cr=^M,
16062         cub1=^H, cud1=^J, cuf1=^F,
16063         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dim=\E0A,
16064         ed=\Ek, el=\EK,
16065         hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c, ind=^J,
16066         is2=\E4^O, kclr=^L, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
16067         khome=^H, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=^O, rmul=^O,
16068         sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c\016,
16069         sgr0=^O, smso=\E0Q\016, smul=\E0`\016,
16070         vpa=\013%p1%{64}%+%c,
16071
16072 # Newbury Data Recording Limited (Newbury Data)
16073 #
16074 # Have been manufacturing and reselling  various peripherals for a long time
16075 # They don't make terminals anymore, but are still in business (in 2007).
16076 # Their e-mail address is at ndsales@newburydata.co.uk
16077 # and their post address is:
16078 #
16079 # Newbury Data Recording Ltd,
16080 # Premier Park, Road One,
16081 # Winsford, Cheshire, CW7 3PT
16082 #
16083 # Their technical support is still good, they sent me for free a printed copy
16084 # of the 9500 user manual and I got it just 1 week after I first contacted them
16085 # (in 2005)!
16086
16087 # NDR 9500
16088 # Manufactured in the early/mid eighties, behaves almost the same as a
16089 # Televideo 950.  Take a 950, change its cabinet for a more 80s-ish one (but
16090 # keep the same keyboard layout), add an optional 25-line mode, replace the DIP
16091 # switches with a menu and remove the "lock line" feature (ESC !  1 and ESC ! 
16092 # 2), here is the NDR 9500.  Even the line-lock, albeit disabled, is
16093 # recognized:  if you type in "ESC !", the next (third) character is not
16094 # echoed, showing that the terminal was actually waiting for a parameter!
16095 ndr9500|nd9500|Newbury Data 9500,
16096         am, bw, hs, mc5i, mir, msgr, ul, xon,
16097         cols#80, lines#24, wsl#79,
16098         acsc=jDkClBmAnIqKtMuLvOwNxJ, bel=^G, cbt=\EI, civis=\E.0,
16099         clear=\E;, cnorm=\E.1, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
16100         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
16101         dim=\E), dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
16102         flash=\Eb$<50/>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
16103         ich1=\EQ, il1=\EE, ind=^J, is2=\Ew\E'\EDF\El\Er\EO,
16104         kDC=\Er, kDL=\EO, kEOL=\Et, kIC=\Eq, kcbt=\EI, kclr=^Z,
16105         kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
16106         ked=\EY, kel=\ET, kent=^M, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
16107         kf12=^A`\r, kf13=^Aa\r, kf14=^Ab\r, kf15=^Ac\r, kf16=^Ad\r,
16108         kf17=^Ae\r, kf18=^Af\r, kf19=^Ag\r, kf2=^AA\r, kf20=^Ah\r,
16109         kf21=^Ai\r, kf22=^Aj\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
16110         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
16111         kich1=\EQ, kil1=\EE, kprt=\EP, mc4=\Ea, mc5=\E`, nel=^_,
16112         pfloc=\E|%{48}%p1%+%c2%p2\031,
16113         pfx=\E|%{48}%p1%+%c1%p2\031, prot=\E), ri=\Ej,
16114         rmacs=\E%%, rmir=\Er, rmso=\E(, rmxon=^N,
16115         sgr=\E%%\E(%?%p1%p5%p8%|%|%t\E)%;%?%p9%t\E$%;,
16116         sgr0=\EG0\E%%\E(, smacs=\E$, smir=\Eq, smso=\E), smxon=^O,
16117         tbc=\E3, tsl=\Eg\Ef\011%p1%{32}%+%c, .kbs=^H,
16118
16119 ndr9500-nl|NDR 9500 with no status line,
16120         hs@,
16121         wsl@,
16122         dsl@, fsl@, tsl@, use=ndr9500,
16123
16124 ndr9500-25|NDR 9500 with 25th line enabled,
16125         lines#25, use=ndr9500,
16126
16127 ndr9500-25-nl|NDR 9500 with 25 lines and no status line,
16128         lines#25, use=ndr9500-nl,
16129
16130 ndr9500-mc|NDR 9500 with magic cookies (enables underline inverse video invisible and blink),
16131         msgr@,
16132         xmc#1,
16133         blink=\EG2, invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0,
16134         sgr=\E%%\E(%?%p5%p8%|%t\E)%;%?%p9%t\E$%;\EG%{48}%?%p7%t%{1}%+%;%?%p4%t%{2}%+%;%?%p3%p1%|%t%{4}%+%;%?%p2%t%{8}%+%;%c,
16135         sgr0=\EG0\E%%\E(, smso=\EG4, smul=\EG8, use=ndr9500,
16136
16137 ndr9500-25-mc|NDR 500 with 25 lines and magic cookies,
16138         lines#25, use=ndr9500-mc,
16139
16140 ndr9500-mc-nl|NDR 9500 with magic cookies and no status line,
16141         hs@,
16142         wsl@,
16143         dsl@, fsl@, tsl@, use=ndr9500-mc,
16144
16145 ndr9500-25-mc-nl|NDR 9500 with 25 lines and magic cookies and no status line,
16146         lines#25, use=ndr9500-mc-nl,
16147
16148 #### Perkin-Elmer (Owl)
16149 #
16150 # These are official terminfo entries from within Perkin-Elmer.
16151 #
16152
16153 bantam|pe550|pe6100|perkin elmer 550,
16154         OTbs,
16155         cols#80, lines#24,
16156         bel=^G, clear=\EK$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16157         cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
16158         el=\EI$<20>, home=\EH, ind=^J, ll=\EH\EA,
16159 fox|pe1100|perkin elmer 1100,
16160         OTbs, am,
16161         cols#80, lines#24,
16162         bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
16163         cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
16164         ed=\EJ$<5.5*>, el=\EI, flash=\020\002$<200/>\020\003,
16165         home=\EH, hts=\E1, ind=^J, ll=\EH\EA, tbc=\E3,
16166 owl|pe1200|perkin elmer 1200,
16167         OTbs, am, in,
16168         cols#80, lines#24,
16169         bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
16170         cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
16171         dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
16172         el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
16173         hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
16174         kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
16175         kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
16176         rmso=\E!\0, sgr0=\E!\0, smso=\E!^H, tbc=\E3,
16177 pe1251|pe6300|pe6312|perkin elmer 1251,
16178         am,
16179         cols#80, it#8, lines#24, pb#300, vt#8, xmc#1,
16180         bel=^G, clear=\EK$<332>, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
16181         cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
16182         ed=\EJ$<20*>, el=\EI$<10*>, home=\EH, hts=\E1, ind=^J,
16183         kf0=\ERA, kf1=\ERB, kf10=\ERK, kf2=\ERC, kf3=\ERD, kf4=\ERE,
16184         kf5=\ERF, kf6=\ERG, kf7=\ERH, kf8=\ERI, kf9=\ERJ, tbc=\E3,
16185 # (pe7000m: this had
16186 #       rmul=\E!\0, smul=\E!\040,
16187 # which is probably wrong, it collides with kf0
16188 pe7000m|perkin elmer 7000 series monochrome monitor,
16189         am,
16190         cols#80, lines#24,
16191         bel=^G, cbt=\E!Y, clear=\EK, cr=^M, cub1=\ED, cud1=\EB,
16192         cuf1=\EC, cup=\ES%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
16193         ed=\EJ, el=\EI, home=\EH, ind=^J,
16194         is1=\E!\0\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V,
16195         kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\0, kf1=\E!^A,
16196         kf10=\E!^J, kf2=\E!^B, kf3=\E!^C, kf4=\E!^D, kf5=\E!^E,
16197         kf6=\E!^F, kf7=\E!^G, kf8=\E!^H, kf9=\E!^I, khome=\E!S,
16198         ll=\ES7\s, ri=\ER,
16199 pe7000c|perkin elmer 7000 series colour monitor,
16200         is1=\E!\0\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0,
16201         rmul=\E!\0, smso=\Eb2, smul=\E!\s, use=pe7000m,
16202
16203 #### Sperry Univac
16204 #
16205 # Sperry Univac has merged with Burroughs to form Unisys.
16206 #
16207
16208 # This entry is for the Sperry UTS30 terminal running the TTY
16209 # utility under control of CP/M Plus 1R1. The functionality
16210 # provided is comparable to the DEC vt100.
16211 # (uts30: I added <rmam>/<smam> based on the init string -- esr)
16212 uts30|sperry uts30 with cp/m@1R1,
16213         am, bw, hs,
16214         cols#80, lines#24, wsl#40,
16215         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16216         bel=^G, blink=\E[5m, bold=\E[1m, civis=\ER, clear=^L,
16217         cnorm=\ES, cr=^M, csr=\EU%p1%{32}%+%c%p2%{32}%+%c,
16218         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
16219         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16220         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EM,
16221         dl=\E[%p1%dM, dl1=\EL, ed=\E[J, el=\E[K, fsl=^M, home=\E[H,
16222         ht=^I, ich=\E[%p1%d@, ich1=\EO, il=\E[%p1%dL, il1=\EN,
16223         ind=^J, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H, kbs=^H,
16224         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
16225         rc=\EX, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EI,
16226         rin=\E[%p1%dA, rmacs=\Ed, rmam=\E[?7l, rmso=\E[m,
16227         rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
16228         sc=\EW, sgr0=\E[m, smacs=\EF, smam=\E[?7m, smso=\E[7m,
16229         smul=\E[4m, tsl=\E], uc=\EPB,
16230
16231 #### Tandem
16232 #
16233 # Tandem builds these things for use with its line of fault-tolerant
16234 # transaction-processing computers.  They aren't generally available
16235 # on the merchant market, and so are fairly uncommon.
16236 #
16237
16238 tandem6510|adm3a repackaged by Tandem,
16239         use=adm3a,
16240
16241 # A funny series of terminal that TANDEM uses.  The actual model numbers
16242 # have a fourth digit after 653 that designates minor variants.  These are
16243 # natively block-mode and rather ugly, but they have a character mode which
16244 # this doubtless(?) exploits.  There is a 6520 that is slightly dumber.
16245 # (tandem653: had ":sb=\ES:", probably someone's mistake for sf; also,
16246 # removed <if=/usr/share/tabset/tandem653>, no such file -- esr)
16247 tandem653|t653x|Tandem 653x multipage terminal,
16248         OTbs, am, da, db, hs,
16249         cols#80, lines#24, wsl#64, xmc#1,
16250         clear=\EI, cub1=^H, cud1=^J, cuf1=\EC,
16251         cup=\023%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dsl=\Eo\r,
16252         ed=\EJ, el=\EK, fsl=^M, home=\EH, ind=\ES, ri=\ET, rmso=\E6\s,
16253         rmul=\E6\s, sgr0=\E6\s, smso=\E6$, smul=\E60, tsl=\Eo,
16254
16255 #### Tandy/Radio Shack
16256 #
16257 # Tandy has a line of VDTs distinct from its microcomputers.
16258 #
16259
16260 dmterm|deskmate terminal,
16261         am, bw,
16262         cols#80, lines#24,
16263         bel=^G, civis=\EG5, clear=\Ej, cnorm=\EG6, cr=^M, cub1=^H,
16264         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16265         cuu1=\EA, dch1=\ES, dl1=\ER, ed=\EJ, el=\EK, home=\EH, ht=^I,
16266         ich1=\EQ, il1=\EP, ind=\EX, invis@, kcub1=\ED, kcud1=\EB,
16267         kcuf1=\EC, kcuu1=\EA, kf0=\E1, kf1=\E2, kf2=\E3, kf3=\E4,
16268         kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
16269         khome=\EH, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6,
16270         lf6=f7, lf7=f8, lf8=f9, lf9=f10, ll=\EE, rmul@, smul@,
16271         use=adm+sgr,
16272 dt100|dt-100|Tandy DT-100 terminal,
16273         xon,
16274         cols#80, lines#24, xmc#1,
16275         acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
16276         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
16277         csr=\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
16278         cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
16279         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
16280         il1=\E[L, ind=^J, is2=\E[?3l\E)0\E(B, kcub1=\E[D,
16281         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[?3i,
16282         kf10=\E[?5i, kf2=\E[2i, kf3=\E[@, kf4=\E[M, kf5=\E[17~,
16283         kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, khome=\E[H,
16284         knp=\E[29~, kpp=\E[28~, lf1=f1, lf2=f2, lf3=f3, lf4=f4, lf5=f5,
16285         lf6=f6, lf7=f7, lf8=f8, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m,
16286         sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
16287 dt100w|dt-100w|Tandy DT-100 terminal (wide mode),
16288         cols#132, use=dt100,
16289 dt110|Tandy DT-110 emulating ansi,
16290         xon,
16291         cols#80, lines#24,
16292         acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
16293         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
16294         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
16295         cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[0P,
16296         dl1=\E[0M, ed=\E[0J, el=\E[0K, enacs=\E(B\E)0, home=\E[H,
16297         ht=^I, ich1=\E[0@, il1=\E[0L, ind=^J, is2=\E[?3l\E)0\E(B,
16298         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[K,
16299         kf1=\E[1~, kf10=\E[10~, kf2=\E[2~, kf3=\E[3~, kf4=\E[4~,
16300         kf5=\E[5~, kf6=\E[6~, kf7=\E[7~, kf8=\E[8~, kf9=\E[9~,
16301         khome=\E[G, kich1=\E[@, knp=\E[26~, kpp=\E[25~, lf0=f1,
16302         lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf8=f9,
16303         lf9=f10, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
16304         smacs=^N, smso=\E[7m, smul=\E[4m,
16305 pt210|TRS-80 PT-210 printing terminal,
16306         hc, os,
16307         cols#80,
16308         bel=^G, cr=^M, cud1=^J, ind=^J,
16309
16310 #### Tektronix (tek)
16311 #
16312 # Tektronix tubes are graphics terminals.  Most of them use modified
16313 # oscilloscope technology incorporating a long-persistence green phosphor,
16314 # and support vector graphics on a main screen with an attached "dialogue
16315 # area" for interactive text.
16316 #
16317
16318 tek|tek4012|tektronix 4012,
16319         OTbs, os,
16320         cols#75, lines#35,
16321         bel=^G, clear=\E\014$<1000>, cr=^M, cub1=^H, cud1=^J,
16322         ff=\014$<1000>, is2=\E^O,
16323 # (tek4013: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
16324 tek4013|tektronix 4013,
16325         acsc=, rmacs=\E^O, smacs=\E^N, use=tek4012,
16326 tek4014|tektronix 4014,
16327         cols#81, lines#38,
16328         is2=\E\017\E9, use=tek4012,
16329 # (tek4015: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
16330 tek4015|tektronix 4015,
16331         acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014,
16332 tek4014-sm|tektronix 4014 in small font,
16333         cols#121, lines#58,
16334         is2=\E\017\E\:, use=tek4014,
16335 # (tek4015-sm: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
16336 tek4015-sm|tektronix 4015 in small font,
16337         acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014-sm,
16338 # Tektronix 4023 from Andrew Klossner <orca!andrew.tektronix@csnet-relay>
16339 #
16340 # You need to have "stty nl2" in effect.  Some versions of tset(1) know
16341 # how to set it for you.
16342 #
16343 # It's got the Magic Cookie problem around stand-out mode.  If you can't
16344 # live with Magic Cookie, remove the :so: and :se: fields and do without
16345 # reverse video.  If you like reverse video stand-out mode but don't want
16346 # it to flash, change the letter 'H' to 'P' in the :so: field.
16347 tek4023|tektronix 4023,
16348         OTbs, am,
16349         OTdN#4, cols#80, lines#24, vt#4, xmc#1,
16350         OTnl=^J, bel=^G, clear=\E\014$<4/>, cr=^M, cub1=^H, cud1=^J,
16351         cuf1=^I, cup=\034%p2%{32}%+%c%p1%{32}%+%c, kbs=^H,
16352         rmso=^_@, smso=^_P,
16353 # It is recommended that you run the 4025 at 4800 baud or less;
16354 # various bugs in the terminal appear at 9600.  It wedges at the
16355 # bottom of memory (try "cat /usr/dict/words"); ^S and ^Q typed
16356 # on keyboard don't work.  You have to hit BREAK twice to get
16357 # one break at any speed - this is a documented feature.
16358 # Can't use cursor motion because it's memory relative, and
16359 # because it only works in the workspace, not the monitor.
16360 # Same for home. Likewise, standout only works in the workspace.
16361 #
16362 # <el> was commented out since vi and rogue seem to work better
16363 # simulating it with lots of spaces!
16364 #
16365 # <il1> and <il> had 145ms of padding, but that slowed down vi's ^U
16366 # and didn't seem necessary.
16367 #
16368 tek4024|tek4025|tek4027|tektronix 4024/4025/4027,
16369         OTbs, am, da, db,
16370         cols#80, it#8, lines#34, lm#0,
16371         bel=^G, clear=\037era\r\n\n, cmdch=^_, cr=^M,
16372         cub=\037lef %p1%d\r, cub1=^H, cud=\037dow %p1%d\r,
16373         cud1=^F^J, cuf=\037rig %p1%d\r, cuf1=\037rig\r,
16374         cuu=\037up %p1%d\r, cuu1=^K, dch1=\037dch\r,
16375         dl=\037dli %p1%d\r\006, dl1=\037dli\r\006,
16376         ed=\037dli 50\r, ht=^I, ich1=\037ich\r \010,
16377         il=\037up\r\037ili %p1%d\r, il1=\037up\r\037ili\r,
16378         ind=^F^J,
16379         is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
16380         rmkx=\037lea p2\r\037lea p4\r\037lea p6\r\037lea p8\r\037lea f5\r,
16381         smkx=\037lea p4 /h/\r\037lea p8 /k/\r\037lea p6 / /\r\037lea p2 /j/\r\037lea f5 /H/\r,
16382 tek4025-17|tek 4025 17 line window,
16383         lines#17, use=tek4025,
16384 tek4025-17-ws|tek 4025 17 line window in workspace,
16385         is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r\037wor 17\r\037mon 17\r,
16386         rmcup=\037mon h\r, rmso=\037att s\r, smcup=\037wor h\r,
16387         smso=\037att e\r, use=tek4025-17,
16388 tek4025-ex|tek4027-ex|tek 4025/4027 w/!,
16389         is2=\037com 33\r\n!sto 9 17 25 33 41 49 57 65 73\r,
16390         rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
16391 # Tektronix 4025a
16392 # From: Doug Gwyn <gwyn@brl-smoke.ARPA>
16393 # The following status modes are assumed for normal operation (replace the
16394 # initial "!" by whatever the current command character is):
16395 #       !COM 29                 # NOTE: changes command character to GS (^])
16396 #       ^]DUP
16397 #       ^]ECH R
16398 #       ^]EOL
16399 #       ^]RSS T
16400 #       ^]SNO N
16401 #       ^]STO 9 17 25 33 41 49 57 65 73
16402 # Other modes may be set according to communication requirements.
16403 # If the command character is inadvertently changed, termcap can't restore it.
16404 # Insert-character cannot be made to work on both top and bottom rows.
16405 # Clear-to-end-of-display emulation via !DLI 988 is too grotty to use, alas.
16406 # There also seems to be a problem with vertical motion, perhaps involving
16407 # delete/insert-line, following a typed carriage return.  This terminal sucks.
16408 # Delays not specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
16409 # (tek4025a: removed obsolete ":xx:". This may mean the tek4025a entry won't
16410 # work any more. -- esr)
16411 tek4025a|Tektronix 4025A,
16412         OTbs, OTpt, am, bw, da, db, xon,
16413         cols#80, it#8, lines#34,
16414         bel=^G, cbt=\035bac;, clear=\035era;\n\035rup;, cmdch=^],
16415         cr=^M, cub=\035lef %p1%d;, cub1=^H, cud=\035dow %p1%d;,
16416         cud1=^J, cuf=\035rig %p1%d;, cuf1=\035rig;,
16417         cuu=\035up %p1%d;, cuu1=^K, dch=\035dch %p1%d;,
16418         dch1=\035dch;, dl=\035dli %p1%d;, dl1=\035dli;,
16419         el=\035dch 80;, hpa=\r\035rig %p1%d;, ht=^I,
16420         il1=\013\035ili;, ind=^J, indn=\035dow %p1%d;,
16421         rs2=!com 29\035del 0\035rss t\035buf\035buf n\035cle\035dis\035dup\035ech r\035eol\035era g\035for n\035pad 203\035pad 209\035sno n\035sto 9 17 25 33 41 49 57 65 73\035wor 0;,
16422         tbc=\035sto;,
16423 # From: cbosg!teklabs!davem Wed Sep 16 21:11:41 1981
16424 # Here's the command file that I use to get rogue to work on the 4025.
16425 # It should work with any program using the old curses (e.g. it better
16426 # not try to scroll, or cursor addressing won't work.  Also, you can't
16427 # see the cursor.)
16428 # (This "learns" the arrow keys for rogue. I have adapted it for termcap - mrh)
16429 tek4025-cr|tek 4025 for curses and rogue,
16430         OTbs, am,
16431         cols#80, it#8, lines#33,
16432         clear=\037era;, cub1=^H, cud1=^F^J, cuf1=\037rig;,
16433         cup=\037jum%i%p1%d\,%p2%d;, cuu1=^K, ht=^I, ind=^F^J,
16434         is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
16435         rmcup=\037wor 0, smcup=\037wor 33h,
16436 # next two lines commented out since curses only allows 128 chars, sigh.
16437 #       :ti=\037lea p1/b/\037lea p2/j/\037lea p3/n/\037lea p4/h/\037lea p5/ /\037lea p6/l/\037lea p7/y/\037lea p8/k/\037lea p9/u/\037lea p./f/\037lea pt/`era w/13\037lea p0/s/\037wor 33h:\
16438 #       :te=\037lea p1\037lea p2\037lea p3\037lea p4\037lea pt\037lea p5\037lea p6\037lea p7\037lea p8\037lea p9/la/13\037lea p.\037lea p0\037wor 0:
16439 tek4025ex|4025ex|4027ex|tek 4025 w/!,
16440         is2=\037com 33\r\n!sto 9\,17\,25\,33\,41\,49\,57\,65\,73\r,
16441         rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
16442 tek4105|tektronix 4105,
16443         OTbs, am, mir, msgr, ul, xenl, xt,
16444         cols#79, it#8, lines#29,
16445         acsc=, bel=^G, blink=\E[=3;<7m, bold=\E[=7;<4m, cbt=\E[Z,
16446         clear=\E[2J\E[H, cr=^M, cub1=\E[1D, cud1=\E[1B, cuf1=\E[1C,
16447         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[1A, dch1=\E[1P,
16448         dim=\E[=1;<6m, dl1=\E[1M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
16449         il1=\E[1L, ind=\E[S, invis=\E[=6;<5, is1=\E%!1\E[m,
16450         is2=\E%!1\E[?6141\E[m, kbs=^H, kcub1=\E[1D, kcud1=\E[1B,
16451         kcuf1=\E[1C, kcuu1=\E[1A, rev=\E[=1;<3m, ri=\E[T,
16452         rmacs=\E[m, rmcup=, rmir=\E[4l, rmso=\E[=0;<1m,
16453         rmul=\E[=0;<1m, sgr0=\E[=0;<1m, smacs=\E[1m,
16454         smcup=\E%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
16455         smul=\E[=5;<2m, tbc=\E[1g,
16456
16457 # (tek4105-30: I added <rmam>/<smam> based on the init string -- esr)
16458 tek4105-30|4015 emulating 30 line vt100,
16459         am, mir, msgr, xenl, xon,
16460         cols#80, it#8, lines#30, vt#3,
16461         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16462         bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
16463         clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
16464         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16465         cuf=\E[%p1%dC, cuf1=\E[C$<2>,
16466         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
16467         cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
16468         enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H,
16469         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
16470         rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
16471         rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
16472         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
16473         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
16474         sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
16475         smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
16476         use=vt100+fnkeys,
16477
16478 # Tektronix 4105 from BRL
16479 # The following setup modes are assumed for normal operation:
16480 #       CODE ansi               CRLF no                 DABUFFER 141
16481 #       DAENABLE yes            DALINES 30              DAMODE replace
16482 #       DAVISIBILITY yes        ECHO no                 EDITMARGINS 1 30
16483 #       FLAGGING input          INSERTREPLACE replace   LFCR no
16484 #       ORIGINMODE relative     PROMPTMODE no           SELECTCHARSET G0 B
16485 #       SELECTCHARSET G1 0      TABS -2
16486 # Other setup modes may be set for operator convenience or communication
16487 # requirements; I recommend
16488 #       ACURSOR 1 0             AUTOREPEAT yes          AUTOWRAP yes
16489 #       BYPASSCANCEL <LF>       CURSORKEYMODE no        DAINDEX 1 0 0
16490 #       EOFSTRING ''            EOLSTRING <CR>          EOMCHARS <CR> <NU>
16491 #       GAMODE overstrike       GCURSOR 0 100 0         GSPEED 10 1
16492 #       IGNOREDEL no            KEYEXCHAR <DL>          NVDEFINE -53 "<NU>"
16493 #       PROMPTSTRING ''         QUEUESIZE 2460          WINDOW 0 0 4095 3132
16494 #       XMTDELAY 0
16495 # and factory color maps.  After setting these modes, save them with NVSAVE. No
16496 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
16497 # "IC" cannot be used in combination with "im" & "ei".
16498 # "tek4105a" is just a guess:
16499 tek4105a|Tektronix 4105,
16500         OTbs, OTpt, msgr, xon,
16501         OTkn#8, cols#80, it#8, lines#30, vt#3,
16502         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
16503         civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
16504         cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
16505         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16506         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16507         cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
16508         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
16509         ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16510         il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
16511         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
16512         kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
16513         kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
16514         lf5=F6, lf6=F8, ll=\E[30;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
16515         rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
16516         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16517         rs2=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40\ELI100\ELLA>\ELM0\EKE0\ENF1\EKS0\END0\E%!1\Ec\E[?3;5l\E[?7;8h\E[r\E[m\E>,
16518         sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
16519         smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
16520
16521 #
16522 # Tektronix 4106/4107/4109 from BRL
16523 # The following setup modes are assumed for normal operation:
16524 #       CODE ansi               COLUMNMODE 80           CRLF no
16525 #       DABUFFER 141            DAENABLE yes            DALINES 32
16526 #       DAMODE replace          DAVISIBILITY yes        ECHO no
16527 #       EDITMARGINS 1 32        FLAGGING input          INSERTREPLACE replace
16528 #       LFCR no                 LOCKKEYBOARD no         ORIGINMODE relative
16529 #       PROMPTMODE no           SELECTCHARSET G0 B      SELECTCHARSET G1 0
16530 #       TABS -2
16531 # Other setup modes may be set for operator convenience or communication
16532 # requirements; I recommend
16533 #       ACURSOR 1 0             AUTOREPEAT yes          AUTOWRAP yes
16534 #       BYPASSCANCEL <LF>       CURSORKEYMODE no        DAINDEX 1 0 0
16535 #       EOFSTRING ''            EOLSTRING <CR>          EOMCHARS <CR> <NU>
16536 #       GAMODE overstrike       GCURSOR 0 100 0         GSPEED 9 3
16537 #       IGNOREDEL no            KEYEXCHAR <DL>          NVDEFINE -53 "<NU>"
16538 #       PROMPTSTRING ''         QUEUESIZE 2620          WINDOW 0 0 4095 3132
16539 #       XMTDELAY 0
16540 # and factory color maps.  After setting these modes, save them with NVSAVE.  No
16541 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
16542 # "IC" cannot be used in combination with "im" & "ei".
16543 tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109,
16544         msgr, xon,
16545         cols#80, it#8, lines#32, vt#3,
16546         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
16547         civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
16548         cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
16549         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16550         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16551         cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
16552         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
16553         ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16554         il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
16555         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
16556         kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
16557         kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
16558         lf5=F6, lf6=F8, ll=\E[32;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
16559         rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
16560         rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16561         rs1=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40\ELI100\ELLB0\ELM0\EKE0\ENF1\EKS0\END0\ERE0\E%!1\Ec\E[?3;5l\E[?7;8h\E[r\E[m\E>,
16562         sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
16563         smkx=\E[?1h\E=, smso=\E[7;42m, smul=\E[4m, tbc=\E[3g,
16564
16565 # Tektronix 4107/4109 interpret 4 modes using "\E%!" followed by a code:
16566 # 0 selects Tek mode, i.e., \E%!0
16567 # 1 selects ANSI mode
16568 # 2 selects ANSI edit-mode
16569 # 3 selects VT52 mode
16570 #
16571 # One odd thing about the description (which has been unchanged since the 90s)
16572 # is that the cursor addressing is using VT52 mode, and a few others use the
16573 # VT52's non-CSI versions of ANSI, e.g., \EJ.
16574 tek4107|tek4109|tektronix terminals 4107 4109,
16575         OTbs, am, mir, msgr, ul, xenl, xt,
16576         cols#79, it#8, lines#29,
16577         bel=^G, blink=\E%!1\E[5m$<2>\E%!0,
16578         bold=\E%!1\E[1m$<2>\E%!0, clear=\ELZ, cnorm=\E%!0, cr=^M,
16579         cub1=^H, cud1=^J, cuf1=\EC,
16580         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E%!3,
16581         dim=\E%!1\E[<0m$<2>\E%!0, ed=\EJ, el=\EK, ht=^I, ind=^J,
16582         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
16583         rev=\E%!1\E[7m$<2>\E%!0, ri=\EI,
16584         rmso=\E%!1\E[m$<2>\E%!0, rmul=\E%!1\E[m$<2>\E%!0,
16585         sgr=\E%%!1\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>\E%%!0,
16586         sgr0=\E%!1\E[m$<2>\E%!0, smso=\E%!1\E[7;5m$<2>\E%!0,
16587         smul=\E%!1\E[4m$<2>\E%!0,
16588 # Tektronix 4207 with sysline.  In the ancestral termcap file this was 4107-s;
16589 # see the note attached to tek4207.
16590 tek4207-s|Tektronix 4207 with sysline but no memory,
16591         eslok, hs,
16592         dsl=\E7\E[?6l\E[2K\E[?6h\E8, fsl=\E[?6h\E8,
16593         is1=\E%!1\E[2;32r\E[132D\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
16594         is2=\E7\E[?6l\E[2K\E[?6h\E8,
16595         tsl=\E7\E[?6l\E[2K\E[;%i%df, use=tek4107,
16596
16597 # The 4110 series may be a wonderful graphics series, but they make the 4025
16598 # look good for screen editing.  In the dialog area, you can't move the cursor
16599 # off the bottom line.  Out of the dialog area, ^K moves it up, but there
16600 # is no way to scroll.
16601 #
16602 # Note that there is a floppy for free from Tek that makes the
16603 # 4112 emulate the vt52 (use the vt52 termcap). There is also
16604 # an expected enhancement that will use ANSI standard sequences.
16605 #
16606 # 4112 in non-dialog area pretending to scroll. It really wraps
16607 # but vi is said to work (more or less) in this mode.
16608 #
16609 # 'vi' works reasonably well with this entry.
16610 #
16611 otek4112|o4112-nd|otek4113|otek4114|old tektronix 4110 series,
16612         am,
16613         cols#80, lines#34,
16614         bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuu1=^K, ind=^J,
16615         rmcup=\EKA1\ELV1, smcup=\EKA0\ELV0\EMG0,
16616 # The 4112 with the ANSI compatibility enhancement
16617 tek4112|tek4114|tektronix 4110 series,
16618         OTbs, am, db,
16619         cols#80, lines#34,
16620         cbt=\E[Z, clear=\E[2J\E[0;0H, cub1=^H, cud1=\E[B,
16621         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch1=\E[P,
16622         dl1=\E[M, ed=\E[0J, el=\E[0K, ich1=\E[@, il1=\E[L,
16623         ind=\E7\E[0;0H\E[M\E8, is2=\E3!1, ri=\E7\E[0;0H\E[L\E8,
16624         rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
16625 tek4112-nd|4112 not in dialog area,
16626         OTns,
16627         cuu1=^K, use=tek4112,
16628 tek4112-5|4112 in 5 line dialog area,
16629         lines#5, use=tek4112,
16630 # (tek4113: this used to have "<cuf1=\LM1\s\LM0>", someone's mistake;
16631 # removed "<smacs=\E^N>, <rmacs=\E^O>", which had been commented out in 8.3.
16632 # Note, the !0 and !1 sequences in <rmcup>/<smcup>/<cnorm>/<civis> were
16633 # previously \0410 and \0411 sequences...I don't *think* they were supposed
16634 # to be 4-digit octal -- esr)
16635 tek4113|tektronix 4113 color graphics with 5 line dialog area,
16636         OTbs, am, da, eo,
16637         cols#80, lines#5,
16638         clear=\ELZ, cub1=^H, cud1=^J, cuf1=\ELM1 \ELM0,
16639         flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
16640         is2=\EKA1\ELL5\ELV0\ELV1, uc=\010\ELM1_\ELM0,
16641 tek4113-34|tektronix 4113 color graphics with 34 line dialog area,
16642         lines#34,
16643         is2=\EKA1\ELLB2\ELV0\ELV1, use=tek4113,
16644 # :ns: left off to allow vi visual mode. APL font (:as=\E^N:/:ae=\E^O:) not
16645 # supported here. :uc: is slow, but looks nice. Suggest setenv MORE -up .
16646 # :vb: needs enough delay to let you see the background color being toggled.
16647 tek4113-nd|tektronix 4113 color graphics with no dialog area,
16648         OTbs, am, eo,
16649         cols#80, it#8, lines#34,
16650         clear=\E^L, cub1=^H, cud1=^J, cuf1=^I, cuu1=^K,
16651         cvvis=\ELZ\EKA0,
16652         flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
16653         home=\ELF7l\177 @, ht=^I, is2=\ELZ\EKA0\ELF7l\177 @,
16654         ll=\ELF hl @, rmso=\EMT1, smso=\EMT2, uc=\010\EMG1_\EMG0,
16655 # This entry is from Tek. Inc.  (Brian Biehl)
16656 # (tek4115: :bc: renamed to :le:, <rmam>/<smam> added based on init string -- esr)
16657 otek4115|Tektronix 4115,
16658         OTbs, am, da, db, eo,
16659         cols#80, it#8, lines#34,
16660         cbt=\E[Z, clear=\E[H\E[2J,
16661         cnorm=\E%!0\ELBG8\E%!1\E[34;1H, cub1=\E[D, cud1=\E[B,
16662         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
16663         cvvis=\E%!0\ELBB2\E%!1, dch1=\E[P, dl1=\E[M, ed=\E[J,
16664         el=\E[K, home=\E[H, ht=^I, if=/usr/share/tabset/vt100,
16665         il1=\E[L,
16666         is2=\E%!0\E%\014\ELV0\EKA1\ELBB2\ENU@=\ELLB2\ELM0\ELV1\EKYA?\E%!1\E[<1l\E[?7h\E[?8h\E[34;1H\E[34B\E[m,
16667         kbs=^H, ri=\EM, rmam=\E[?7l,
16668         rmcup=\E%!0\ELBG8\E%!1\E[34;1H\E[J, rmir=\E[4l,
16669         rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
16670         smcup=\E%!0\ELBB2\E%!1, smir=\E[4h, smkx=\E=, smso=\E[7m,
16671         smul=\E[4m,
16672 tek4115|newer tektronix 4115 entry with more ANSI capabilities,
16673         am, xon,
16674         cols#80, lines#34,
16675         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
16676         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16677         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16678         cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
16679         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%p1%{1}%+%dG,
16680         ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
16681         il1=\E[L, ind=^J, invis=\E[8m, kbs=^H, kcub1=\E[D,
16682         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
16683         rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, rmam=\E[?7l,
16684         rmso=\E[m, rmul=\E[m,
16685         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
16686         sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
16687         vpa=\E[%p1%{1}%+%dd,
16688 # The tek4125 emulates a vt100 incorrectly - the scrolling region
16689 # command is ignored.  The following entry replaces <csr> with the needed
16690 # <il>, <il>, and <smir>; removes some cursor pad commands that the tek4125
16691 # chokes on; and adds a lot of initialization for the tek dialog area.
16692 # Note that this entry uses all 34 lines and sets the cursor color to green.
16693 # Steve Jacobson 8/85
16694 # (tek4125: there were two "\!"s in the is that I replaced with "\E!";
16695 # commented out, <smir>=\E1 because there's no <rmir>  -- esr)
16696 tek4125|tektronix 4125,
16697         lines#34,
16698         csr@, dl1=\E[1M, il1=\E[1L,
16699         is2=\E%\E!0\EQD1\EUX03\EKA\ELBB2\ELCE0\ELI100\ELJ2\ELLB2\ELM0\ELS1\ELX00\ELV1\E%\E!1\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
16700         rc@, sc@, smkx=\E=, use=vt100,
16701
16702 # From: <jcoker@ucbic>
16703 # (tek4207: This was the termcap file's entry for the 4107/4207, but SCO
16704 # supplied another, less capable 4107 entry.  So we'll use that for 4107 and
16705 # note that if jcoker wasn't confused you may be able to use this one.
16706 # I merged in <msgr>,<ind>,<ri>,<invis>,<tbc> from a BRL entry -- esr)
16707 tek4207|Tektronix 4207 graphics terminal with memory,
16708         am, bw, mir, msgr, ul, xenl,
16709         cols#80, it#8, lines#32,
16710         blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J$<156/>,
16711         cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16712         cuu1=\EM, dch1=\E[P$<4/>, dl1=\E[M$<3/>, ed=\E[J,
16713         el=\E[K$<5/>, home=\E[H, ht=^I, ich1=\E[@$<4/>,
16714         il1=\E[L$<3/>, ind=\E[S, invis=\E[=6;<5,
16715         is2=\E%!0\ELBP0\E%!1\E[H\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
16716         kcub1=\E[D, kcud1=\ED, kcuf1=\E[C, kcuu1=\EM, khome=\E[H,
16717         rev=\E[7m, ri=\E[T,
16718         rmcup=\E[?6h\E%!0\ELBP0\E%!1\E[32;1f, rmso=\E[m,
16719         rmul=\E[m, sgr0=\E[m, smcup=\E[?6l\E[H\E[J, smso=\E[7m,
16720         smul=\E[4m, tbc=\E[1g,
16721
16722 # From: <carolyn@dali.berkeley.edu>  Thu Oct 31 12:54:27 1985
16723 # (tek4404: There was a "\!" in <smcup> that I replaced with "\E!".
16724 # Tab had been given as \E2I,that must be the tab-set capability -- esr)
16725 tek4404|tektronix 4404,
16726         OTbs,
16727         cols#80, it#8, lines#32,
16728         blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
16729         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
16730         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[1M,
16731         ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\E[2I, il1=\E[1L,
16732         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rc=\E8,
16733         rmcup=\E[1;1H\E[0J\E[?6h\E[?1l, rmir=\E[4l,
16734         rmkx=\E[?1h, rmso=\E[27m, rmul=\E[m, sc=\E7, sgr0=\E[m,
16735         smcup=\E%\E!1\E[1;32r\E[?6l\E>, smir=\E[4h,
16736         smkx=\E[?1l, smso=\E[7m, smul=\E[4m,
16737 # Some unknown person wrote:
16738 # I added the is string - straight Unix has ESC ; in the login
16739 # string which sets a ct8500 into monitor mode (aka 4025 snoopy
16740 # mode). The is string here cleans up a few things (but not
16741 # everything).
16742 ct8500|tektronix ct8500,
16743         am, bw, da, db,
16744         cols#80, lines#25,
16745         bel=^G, cbt=\E^I, clear=\E^E, cr=^M, cub1=^H, cud1=^J,
16746         cuf1=\ES, cup=\E|%p1%{32}%+%c%p2%{32}%+%c, cuu1=\ER,
16747         dch1=\E^], dl1=\E^M, ed=\E^U, el=\E^T, ht=^I, ich1=\E^\,
16748         il1=\E^L, ind=^J, is2=\037\EZ\Ek, ri=\E^A, rmso=\E\s,
16749         rmul=\E\s, sgr0=\E\s, smso=\E$, smul=\E!,
16750
16751 # Tektronix 4205 terminal.
16752 #
16753 # am is not defined because the wrap around occurs not when the char.
16754 # is placed in the 80'th column, but when we are attempting to type
16755 # the 81'st character on the line.  (esr: hmm, this is like the vt100
16756 # version of xenl, perhaps am + xenl would work!)
16757 #
16758 # Bold, dim, and standout are simulated by colors and thus not allowed
16759 # with colors.  The tektronix color table is mapped into the RGB color
16760 # table by setf/setb. All colors are reset to factory specifications by oc.
16761 # The <initc> cap uses RGB notation to define colors.  for arguments 1-3 the
16762 # interval (0-1000) is broken into 8 smaller sub-intervals (125).  Each sub-
16763 # interval then maps into pre-defined value.
16764 tek4205|tektronix 4205,
16765         ccc, mir, msgr,
16766         colors#8, cols#80, it#8, lines#30, ncv#49, pairs#63,
16767         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16768         bel=^G, blink=\E[5m, bold=\E[=7;<4m, cbt=\E[Z,
16769         clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
16770         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
16771         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
16772         dch1=\E[1P, dim=\E[=1;<6m, dl1=\E[1M, ech=\E%p1%dX,
16773         ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I,
16774         ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
16775         initc=\E%%!0\ETF4%?%p1%{0}%=%t0%e%p1%{1}%=%t4%e%p1%{2}%=%t3%e%p1%{3}%=%t5%e%p1%{4}%=%t2%e%p1%{5}%=%t6%e%p1%{6}%=%t7%e1%;%?%p2%{125}%<%t0%e%p2%{250}%<%tA2%e%p2%{375}%<%tA?%e%p2%{500}%<%tC8%e%p2%{625}%<%tD4%e%p2%{750}%<%tE1%e%p2%{875}%<%tE\:%eF4%;%?%p3%{125}%<%t0%e%p3%{250}%<%tA2%e%p3%{375}%<%tA?%e%p3%{500}%<%tC8%e%p3%{625}%<%tD4%e%p3%{750}%<%tE1%e%p3%{875}%<%tE\:%eF4%;%?%p4%{125}%<%t0%e%p4%{250}%<%tA2%e%p4%{375}%<%tA?%e%p4%{500}%<%tC8%e%p4%{625}%<%tD4%e%p4%{750}%<%tE1%e%p4%{875}%<%tE\:%eF4%;\E%%!1,
16776         invis=\E[=6;<5, is1=\E%!0\ETM1\E%!1\E[m, kbs=^H,
16777         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOA,
16778         kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EP, kf5=\EQ, kf6=\ER,
16779         kf7=\ES,
16780         oc=\E%!0\ETFB000001F4F4F42F40030F404A4C<F450F4F46F40F47F4F40\E%!1,
16781         op=\E[39;40m, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=,
16782         rmir=\E[4l, rmso=\E[=0;<1m, rmul=\E[24m,
16783         setb=\E[=%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;,
16784         setf=\E[<%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;,
16785         sgr0=\E[=0;<1m\E[24;25;27m\017, smacs=^N,
16786         smcup=\E%%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
16787         smul=\E[4m, tbc=\E[1g,
16788
16789 #### Teletype (tty)
16790 #
16791 # These are the hardcopy Teletypes from before AT&T bought the company,
16792 # clattering electromechanical dinosaurs in Bakelite cases that printed on
16793 # pulpy yellow roll paper.  If you remember these you go back a ways.
16794 # Teletype-branded VDTs are listed in the AT&T section.
16795 #
16796 # The earliest UNIXes were designed to use these clunkers; nroff and a few
16797 # other programs still default to emitting codes for the Model 37.
16798 #
16799
16800 tty33|tty35|model 33 or 35 teletype,
16801         hc, os, xon,
16802         cols#72,
16803         bel=^G, cr=^M, cud1=^J, ind=^J,
16804 tty37|model 37 teletype,
16805         OTbs, hc, os, xon,
16806         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
16807         ind=^J,
16808
16809 # There are known to be at least three flavors of the tty40, all seem more
16810 # like IBM half duplex forms fillers than ASCII terminals.  They have lots of
16811 # awful braindamage, such as printing a visible newline indicator after each
16812 # newline.  The 40-1 is a half duplex terminal and is hopeless.  The 40-2 is
16813 # braindamaged but has hope and is described here.  The 40-4 is a 3270
16814 # lookalike and beyond hope.  The terminal has visible bell but I don't know
16815 # it - it's null here to prevent it from showing the BL character.
16816 # There is an \EG in <nl> because of a bug in old vi (if stty says you have
16817 # a "newline" style terminal (-crmode) vi figures all it needs is nl
16818 # to get crlf, even if <cr> is not ^M.)
16819 # (tty40: removed obsolete ":nl=\EG\EB:", it's just do+cr -- esr)
16820 tty40|ds40|ds40-2|dataspeed40|teletype dataspeed 40/2,
16821         OTbs, xon,
16822         cols#80, lines#24,
16823         clear=\EH$<20>\EJ$<80>, cr=\EG, cub1=^H, cud1=\EB,
16824         cuf1=\EC, cuu1=\E7, dch1=\EP$<50>, dl1=\EM$<50>,
16825         ed=\EJ$<75>, home=\EH$<10>, ht=\E@$<10>, hts=\E1,
16826         ich1=\E\^$<50>, il1=\EL$<50>, ind=\ES$<20>, kbs=^],
16827         kcub1=^H, mc4=^T, mc5=\022$<2000>, ri=\ET$<10>, rmso=\E4,
16828         rs2=\023\ER$<60>, smso=\E3, tbc=\EH\E2$<80>,
16829 tty43|model 43 teletype,
16830         OTbs, am, hc, os, xon,
16831         cols#132,
16832         bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
16833
16834 #### Tymshare
16835 #
16836
16837 # You can add <is2=\E<> to put this 40-column mode, though I can't
16838 # for the life of me think why anyone would want to.
16839 scanset|sc410|sc415|Tymshare Scan Set,
16840         am, bw, msgr,
16841         cols#80, lines#24,
16842         acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=^M, cub1=^H,
16843         cud1=^J, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16844         cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=^J, kcub1=\ED,
16845         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, mc0=\E;3, mc4=\E;0,
16846         mc5=\E;0, rc=^C, rmacs=^O, rs1=\E>, sc=^B, smacs=^N,
16847
16848 #### Volker-Craig (vc)
16849 #
16850 # If you saw a Byte Magazine cover with a terminal on it during the early
16851 # 1980s, it was probably one of these.  Carl Helmers liked them because
16852 # they could crank 19.2 and were cheap (that is, he liked them until he tried
16853 # to program one...)
16854 #
16855
16856 # Missing in vc303a and vc303 descriptions:  they scroll 2 lines at a time
16857 # every other linefeed.
16858 vc303|vc103|vc203|volker-craig 303,
16859         OTbs, OTns, am,
16860         cols#80, lines#24,
16861         bel=^G, clear=\014$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
16862         cuu1=^N, home=\013$<40>, kcub1=^H, kcud1=^J, kcuf1=^I,
16863         kcuu1=^N, ll=\017$<1>W,
16864 vc303a|vc403a|volker-craig 303a,
16865         clear=\030$<40>, cuf1=^U, cuu1=^Z, el=\026$<20>,
16866         home=\031$<40>, kcuf1=^U, kcuu1=^Z, ll=^P, use=vc303,
16867 # (vc404: removed obsolete ":ma=^Z^P^U :" -- esr)
16868 vc404|volker-craig 404,
16869         OTbs, am,
16870         cols#80, lines#24,
16871         bel=^G, clear=\030$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
16872         cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
16873         ed=\027$<40>, el=\026$<20>, home=\031$<40>, ind=^J,
16874         kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z,
16875 vc404-s|volker-craig 404 w/standout mode,
16876         cud1=^J, rmso=^O, smso=^N, use=vc404,
16877 # From: <wolfgang@cs.sfu.ca>
16878 # (vc414: merged in cup/dl1/home from an old vc414h-noxon)
16879 vc414|vc414h|Volker-Craig 414H in sane escape mode.,
16880         OTbs, am,
16881         cols#80, lines#24,
16882         clear=\E\034$<40>, cud1=\E^K, cuf1=^P,
16883         cup=\E\021%p2%c%p1%c$<40>, cuu1=\E^L, dch1=\E3,
16884         dl1=\E\023$<40>, ed=\E^X, el=\E\017$<10/>, home=\E^R,
16885         ich1=\E\:, il1=\E\032$<40>, kcub1=^H, kcud1=\E^K, kcuf1=^P,
16886         kcuu1=\E^L, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED, kf4=\EE,
16887         kf5=\EF, kf6=\EG, kf7=\EH, khome=\E^R, lf0=PF1, lf1=PF2,
16888         lf2=PF3, lf3=PF4, lf4=PF5, lf5=PF6, lf6=PF7, lf7=PF8,
16889         rmso=\E^_, smso=\E^Y,
16890 vc415|volker-craig 415,
16891         clear=^L, use=vc404,
16892
16893 ######## OBSOLETE PERSONAL-MICRO CONSOLES AND EMULATIONS
16894 #
16895
16896 #### IBM PC and clones
16897 #
16898
16899 # The pcplot IBM-PC terminal emulation program is really messed up. It is
16900 # supposed to emulate a vt-100, but emulates the wraparound bug incorrectly,
16901 # doesn't support scrolling regions, ignores add line commands, and ignores
16902 # delete line commands. Consequently, the resulting behavior looks like a
16903 # crude adm3a-type terminal.
16904 # Steve Jacobson 8/85
16905 pcplot|pc-plot terminal emulation program,
16906         xenl@,
16907         csr@, dl@, dl1@, il@, il1@, rc@, sc@, use=vt100,
16908 # KayPro II from Richard G Turner <rturner at Darcom-Hq.ARPA>
16909 # I've found that my KayPro II, running MDM730, continues to emulate an
16910 # ADM-3A terminal, just like I was running TERM.COM. On our 4.2 UNIX
16911 # system the following termcap entry works well:
16912 # I have noticed a couple of minor glitches, but nothing I can't work
16913 # around. (I added two capabilities from the BRL entry -- esr)
16914 kaypro|kaypro2|kaypro II,
16915         OTbs, am,
16916         cols#80, lines#24,
16917         bel=^G, clear=\032$<1/>, cr=^M, cud1=^J, cuf1=^L,
16918         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER, ed=^W,
16919         el=^X, home=^^, il1=\EE, ind=^J, kcud1=^J, kcuf1=^L, kcuu1=^K,
16920
16921 # From IBM, Thu May  5 19:35:27 1983
16922 # (ibmpc: commented out <smir>=\200R because we don't know <rmir> -- esr)
16923 ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS),
16924         OTbs, am,
16925         cols#80, lines#24,
16926         bel=^G, clear=^L^K, cr=^M^^, cub1=^], cud1=^J, cuf1=^\,
16927         cuu1=^^, home=^K, ind=\n$<10>, kcud1=^_,
16928
16929 ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX,
16930         OTbs, am, bw, eo, hs, km, msgr, ul,
16931         cols#80, it#8, lines#24,
16932         acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
16933         bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M,
16934         cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
16935         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16936         cuu=\E[%p1%dA, cuu1=\E[A, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
16937         home=\E[H, hpa=\E[%i%p1%dG, ind=\E[S\E[B,
16938         indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kbs=^H,
16939         kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
16940         kdch1=\177, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241,
16941         kf3=\242, kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247,
16942         kf9=\250, khome=\E[H, kich1=\E[^H, knp=\E[U, kpp=\E[V,
16943         ll=\E[24;1H, nel=^M, rev=\E[7m, ri=\E[T\E[A,
16944         rin=\E[%p1%dT\E[%p1%dA, rmso=\E[m, rmul=\E[m,
16945         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
16946         sgr0=\E[m, smso=\E[7m, smul=\E[4m,
16947
16948 #### Apple II
16949 #
16950 # Apple II firmware console first, then various 80-column cards and
16951 # terminal emulators.  For two cents I'd toss all these in the UFO file
16952 # along with the 40-column apple entries.
16953 #
16954
16955 # From: brsmith@umn-cs.cs.umn.edu (Brian R. Smith) via BRL
16956 #       'it#8' tells UNIX that you have tabs every 8 columns.  This is a
16957 #               function of TIC, not the firmware.
16958 #       The clear key on a IIgs will do something like clear-screen,
16959 #               depending on what you're in.
16960 appleIIgs|appleIIe|appleIIc|Apple 80 column firmware interface,
16961         OTbs, am, bw, eo, msgr,
16962         cols#80, it#8, lines#24,
16963         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
16964         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
16965         home=^Y, ht=^I, ind=^W, kbs=^H, kclr=^X, kcub1=^H, kcud1=^J,
16966         kcuf1=^U, kcuu1=^K, kdch1=\177, nel=^M^W, ri=^V, rmso=^N,
16967         smso=^O,
16968 # Apple //e with 80-column card, entry from BRL
16969 # The modem interface is permitted to discard LF (maybe DC1), otherwise
16970 # passing characters to the 80-column firmware via COUT (PR#3 assumed).
16971 # Auto-wrap does not work right due to newline scrolling delay, which also
16972 # requires that you set "stty cr2".
16973 # Note: Cursor addressing is only available via the Pascal V1.1 entry,
16974 # not via the BASIC PR#3 hook.  All this nonsense can be avoided only by
16975 # using a terminal emulation program instead of the built-in firmware.
16976 apple2e|Apple //e,
16977         bw, msgr,
16978         cols#80, lines#24,
16979         bel=^G, clear=\014$<100/>, cub1=^H, cud1=^J, cuu1=^_,
16980         ed=\013$<4*/>, el=\035$<4/>, home=^Y, ht=^I, ind=^W,
16981         is2=^R^N, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^K,
16982         nel=\r$<100/>, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
16983         smso=^O,
16984 # mcvax!vu44!vu45!wilcke uses the "ap" entry together with Ascii Express Pro
16985 # 4.20, with incoming and outgoing terminals both on 0, emulation On.
16986 apple2e-p|Apple //e via Pascal,
16987         cup=\036%p2%{32}%+%c%p1%{32}%+%c, kbs=^H, kcub1=^H,
16988         kcud1=^J, use=apple2e,
16989 # (ASCII Express) MouseTalk "Standard Apple //" emulation from BRL
16990 # Enable DC3/DC1 flow control with "stty ixon -ixany".
16991 apple-ae|ASCII Express,
16992         OTbs, am, bw, msgr, nxon, xon,
16993         cols#80, it#8, lines#24,
16994         bel=\007$<500/>, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
16995         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
16996         home=^Y, ind=^W, is2=^R^N, kclr=^X, kcub1=^H, kcud1=^J,
16997         kcuf1=^U, kcuu1=^K, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
16998         smso=^O,
16999 appleII|apple ii plus,
17000         OTbs, am,
17001         cols#80, it#8, lines#24,
17002         clear=^L, cnorm=^TC2, cub1=^H, cud1=^J, cuf1=^\,
17003         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, cvvis=^TC6,
17004         ed=^K, el=^], flash=\024G1$<200/>\024T1, home=\E^Y, ht=^I,
17005         is2=\024T1\016, kcud1=^J, kcuf1=^U, rmso=^N, sgr0=^N,
17006         smso=^O,
17007 # Originally by Gary Ford 21NOV83
17008 # From: <ee178aci%sdcc7@SDCSVAX.ARPA>  Fri Oct 11 21:27:00 1985
17009 apple-80|apple II with smarterm 80 col,
17010         OTbs, am, bw,
17011         cols#80, lines#24,
17012         cbt=^R, clear=\014$<10*/>, cr=\r$<10*/>, cub1=^H, cud1=^J,
17013         cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_,
17014         ed=\013$<10*/>, el=\035$<10/>, home=^Y,
17015 apple-soroc|apple emulating soroc 120,
17016         am,
17017         cols#80, lines#24,
17018         bel=^G, clear=\E*$<300>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
17019         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
17020         home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
17021 # From Peter Harrison, Computer Graphics Lab, San Francisco
17022 #   ucbvax!ucsfmis!harrison  .....uucp
17023 #   ucbvax!ucsfmis!harrison@BERKELEY   .......ARPA
17024 # "These two work.  If you don't have the inverse video chip for the
17025 # Apple with videx then remove the :so: and :se: fields."
17026 # (apple-videx: this used to be called DaleApple -- esr)
17027 apple-videx|Apple with videx videoterm 80 column board with inverse video,
17028         OTbs, am, xenl,
17029         cols#80, it#8, lines#24,
17030         clear=\014$<300/>, cub1=^H, cud1=^J, cuf1=^\,
17031         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
17032         home=^Y, ht=^I, kcub1=^H, kcud1=^J, kcuf1=^U, khome=^Y,
17033         rmso=^Z2, sgr0=^Z2, smso=^Z3,
17034 # My system [for reference] : Apple ][+, 64K, Ultraterm display card,
17035 #                             Apple Cat ][ 212 modem, + more all
17036 #                             controlled by ASCII Express: Pro.
17037 # From Dave Shaver <isucs1!shaver>
17038 apple-uterm-vb|Videx Ultraterm for Apple micros with Visible Bell,
17039         OTbs, am, eo, xt,
17040         cols#80, lines#24,
17041         acsc=, clear=^L, cuf1=^\,
17042         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
17043         flash=^W35^W06, home=^Y,
17044         is2=^V4^W06\017\rVisible Bell Installed.\016\r\n,
17045         rmso=^N, smso=^O,
17046 apple-uterm|Ultraterm for Apple micros,
17047         OTbs, am, eo, xt,
17048         cols#80, lines#24,
17049         acsc=, clear=^L, cuf1=^\,
17050         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
17051         home=^Y, is2=^V4^W06\016, rmso=^N, smso=^O,
17052 # from trwrba!bwong (Bradley W. Wong):
17053 #
17054 # This entry assumes that you are using an apple with the UCSD Pascal
17055 # language card.  SYSTEM.MISCINFO is assumed to be the same as that
17056 # supplied with the standard apple except that screenwidth should be set
17057 # using SETUP to 80 columns.  Note that the right arrow is not mapped in
17058 # this termcap entry.  This is because that key, on the Apple, transmits
17059 # a ^U and would thus preempt the more useful "up" function of vi.
17060 #
17061 # HMH 2/23/81
17062 apple80p|80-column apple with Pascal card,
17063         am, bw,
17064         cols#80, lines#24,
17065         clear=^Y^L, cuf1=^\\:,
17066         cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
17067         home=^Y, kcub1=^H,
17068 #
17069 # Apple II+ equipped with Videx 80 column card
17070 #
17071 # Terminfo from ihnp4!ihu1g!djc1 (Dave Christensen) via BRL;
17072 # manually converted by D A Gwyn
17073 #
17074 # DO NOT use any terminal emulation with this data base, it works directly
17075 # with the Videx card.  This has been tested with vi 1200 baud and works fine.
17076 #
17077 # This works great for vi, except I've noticed in pre-R2, ^U will scroll back
17078 # 1 screen, while in R2 ^U doesn't.
17079 # For inverse alternate character set add:
17080 #       <smacs>=^O:<rmacs>=^N:
17081 # (apple-v: added it#8 -- esr)
17082 apple-videx2|Apple II+ w/ Videx card (similar to Datamedia h1520),
17083         am, xenl,
17084         cols#80, it#8, lines#24,
17085         bel=\007$<100/>, clear=\014$<16*/>, cr=^M, cub1=^H,
17086         cud1=^J, cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c,
17087         cuu1=^_, ed=\013$<16*/>, el=^], home=^Y, ht=\011$<8/>,
17088         ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
17089         khome=^Y, rmso=^Z2, smso=^Z3,
17090 apple-videx3|vapple|Apple II with 80 col card,
17091         OTbs, am,
17092         cols#80, lines#24,
17093         clear=\Ev, cub1=\ED, cud1=\EB, cuf1=\EC,
17094         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, el=\Ex,
17095         home=\EH, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
17096         kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!, kf5=\E", kf6=\E#,
17097         kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
17098 #From: decvax!cbosgd!cbdkc1!mww Mike Warren via BRL
17099 aepro|Apple II+ running ASCII Express Pro--vt52,
17100         OTbs,
17101         cols#80, lines#24,
17102         clear=\014$<300/>, cub1=\ED, cud1=\EB, cuf1=\EC,
17103         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
17104         el=\EK, home=\EH,
17105 # UCSD addition: Yet another termcap from Brian Kantor's Micro Munger Factory
17106 apple-vm80|ap-vm80|apple with viewmax-80,
17107         OTbs,
17108         cols#80, lines#24,
17109         clear=\014$<300/>, cuf1=^\\:,
17110         cup=\036%p1%{32}%+%c%p2%{32}%+%c$<100/>, cuu1=^_,
17111         ed=\013$<300/>, el=^], home=\031$<200/>,
17112
17113 #### Apple Lisa & Macintosh
17114 #
17115
17116 # (lisa: changed <cvvis> to <cnorm> -- esr)
17117 lisa|apple lisa console display (black on white),
17118         OTbs, am, eo, msgr,
17119         cols#88, it#8, lines#32,
17120         acsc=jdkclfmenbqattuvvuwsx`, civis=\E[5h, clear=^L,
17121         cnorm=\E[5l, cub1=^H, cud1=\E[B, cuf1=\E[C,
17122         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
17123         ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
17124         is2=\E>\E[m\014, kbs=^H, kcub1=\E[D, kcud1=\E[B,
17125         kcuf1=\E[C, kcuu1=\E[A, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
17126         sgr0=\E[m, smacs=\E[11m, smso=\E[7m, smul=\E[4m,
17127 liswb|apple lisa console display (white on black),
17128         is2=\E>\E[0;7m\014, rmso=\E[0;7m, rmul=\E[0;7m,
17129         smso=\E[m, smul=\E[4m, use=lisa,
17130
17131 # lisaterm from ulysses!gamma!epsilon!mb2c!jed (John E. Duncan III) via BRL;
17132 # <is2> revised by Ferd Brundick <fsbrn@BRL.ARPA>
17133 #
17134 # These entries assume that the 'Auto Wraparound' is enabled.
17135 # Xon-Xoff flow control should also be enabled.
17136 #
17137 # The vt100 uses :rs2: and :rf: rather than :is2:/:tbc:/:hts: because the tab
17138 # settings are in non-volatile memory and don't need to be reset upon login.
17139 # Also setting the number of columns glitches the screen annoyingly.
17140 # You can type "reset" to get them set.
17141 #
17142 lisaterm|Apple Lisa or Lisa/2 running LisaTerm vt100 emulation,
17143         OTbs, OTpt, am, xenl, xon,
17144         OTkn#4, cols#80, it#8, lines#24, vt#3,
17145         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
17146         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
17147         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
17148         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
17149         el=\E[K, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H, kcub1=\EOD,
17150         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP, kf1=\EOQ,
17151         kf2=\EOR, kf3=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, rc=\E8,
17152         rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
17153         rs1=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r,
17154         sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
17155         tbc=\E[3g,
17156 # Lisaterm in 132 column ("wide") mode.
17157 lisaterm-w|Apple Lisa with Lisaterm in 132 column mode,
17158         cols#132,
17159         kbs=^H, kcub1=^H, kcud1=^J, use=lisaterm,
17160 # Although MacTerminal has insert/delete line, it is commented out here
17161 # since it is much faster and cleaner to use the "lock scrolling region"
17162 # method of inserting and deleting lines due to the MacTerminal implementation.
17163 # Also, the "Insert/delete ch" strings have an extra character appended to them
17164 # due to a bug in MacTerminal V1.1.  Blink is disabled since it is not
17165 # supported by MacTerminal.
17166 mac|macintosh|Macintosh with MacTerminal,
17167         xenl,
17168         OTdN#30,
17169         blink@, dch1=\E[P$<7/>, ich1=\E[@$<9/>, ip=$<7/>, use=lisa,
17170 # Lisaterm in 132 column ("wide") mode.
17171 mac-w|macterminal-w|Apple Macintosh with Macterminal in 132 column mode,
17172         cols#132, use=mac,
17173
17174 # nsterm*|Apple_Terminal - AppKit Terminal.app
17175 #
17176 # Terminal.app is a Terminal emulator bundled with NeXT's NeXTStep and
17177 # OPENSTEP/Mach operating systems, and with Apple's Rhapsody, Mac OS X
17178 # Server and Mac OS X operating systems. There is also a
17179 # "terminal.app" in GNUStep, but I believe it to be an unrelated
17180 # codebase and I have not attempted to describe it here.
17181 #
17182 # For NeXTStep, OPENSTEP/Mach, Rhapsody and Mac OS X Server 1.0, you
17183 # are pretty much on your own. Use "nsterm-7-m" and hope for the best.
17184 # You might also try "nsterm-7" and "nsterm-old" if you suspect your
17185 # version supports color.
17186 #
17187 # To determine the version of Terminal.app you're using by running:
17188 #
17189 #     echo "$TERM_PROGRAM" "$TERM_PROGRAM_VERSION"
17190 #
17191 # For Apple_Terminal v200+, use "nsterm-16color" (a.k.a. "nsterm")
17192 #
17193 # For Apple_Terminal v71+/v100+, use "nsterm-bce".
17194 #
17195 # For Apple_Terminal v51+, use "nsterm-7-c" or "nsterm-7-c-s".
17196 #
17197 # For Apple_Terminal v41+, use "nsterm-old", or "nsterm-s".
17198 #
17199 # For all earlier versions (Apple_Terminal), try "nsterm-7-m"
17200 # (monochrome) or "nsterm-7" (color); "nsterm-7-m-s" and "nsterm-7-s"
17201 # might work too, but really you're on your own here since these
17202 # systems are very obsolete and I can't test them. I do welcome
17203 # patches, though :).
17204
17205 # Other Terminals:
17206 #
17207 # For GNUstep_Terminal, you're probably best off using "linux" or
17208 # writing your own terminfo.
17209
17210 # For MacTelnet, you're on your own. It's a different codebase, and
17211 # seems to be somewhere between "vt102", "ncsa" and "xterm-color".
17212
17213 # For iTerm.app, see "iterm".
17214
17215 #
17216 # The AppKit Terminal.app descriptions all have names beginning with
17217 # "nsterm". Note that the statusline (-s) versions use the window
17218 # titlebar as a phony status line, and may produce warnings during
17219 # compilation as a result ("tsl uses 0 parameters, expected 1".)
17220 # Ignore these warnings, or even ignore these entries entirely. Apps
17221 # which need to position the cursor or do other fancy stuff inside the
17222 # status line won't work with these entries. They're primarily useful
17223 # for programs like Pine which provide simple notifications in the
17224 # status line. Please note that non-ASCII characters don't work right
17225 # in the status line, since Terminal.app incorrectly interprets their
17226 # Unicode codepoints as MacRoman codepoints (in earlier Mac OS X
17227 # versions) or only accepts status lines consisting entirely of
17228 # characters from the first 256 Unicode positions (including C1 but
17229 # not C0 or DEL.)
17230 #
17231 # The Mythology* of AppKit Terminal.app:
17232 #
17233 # In the days of NeXTSTep 0.x and 1.x there were two incompatible
17234 # bundled terminal emulators, Shell and Terminal. Scott Hess wrote a
17235 # shareware replacement for Terminal called "Stuart" which NeXT bought
17236 # and used as the basis for the Terminal.app in NeXTstep 2+,
17237 # OPENSTEP/Mach, Apple Rhapsody, Mac OS X Server 1.0, and Mac OS X. I
17238 # don't know the TERM_PROGRAM and TERM_PROGRAM_VERSION settings or
17239 # capabilities for the early versions, but I believe that the
17240 # TERM_PROGRAM_VERSION may have been reset at some point.
17241 #
17242 # The early versions were tailored to the NeXT character set. Sometime
17243 # after the Apple aquisition the encoding was swiched to MacRoman
17244 # (initally with serious altcharset bugs due to incomplete conversion
17245 # of the old NeXT code,) and then later to UTF-8. Alos sometime during
17246 # or just prior to the early days of Mac OS X, the Terminal grew ANSI
17247 # 8-color support (initially buggy when combined with attributes, but
17248 # that was later fixed.) More recently, around Mac OS X version 10.3
17249 # or so (Terminal.app v100+) xterm-like 16-color support was added. In
17250 # some versions (for instance 133-1 which shipped with Mac OS X
17251 # version 10.4) this suffered from the <bce> bug, but that seems to
17252 # have been fixed in Mac OS X version 10.5 (Terminal.app v240.2+).
17253 #
17254 # In the early days of Mac OS X the terminal was fairly buggy and
17255 # would routinely crash under load. Many of these bugs seem to have
17256 # been fixed around Mac OS X version 10.3 (Terminal.app v100+) but
17257 # some may still remain. This change seems to correspond to
17258 # Terminal.app reporting "xterm-color" as $TERM rather than "vt100" as
17259 # it did previously.
17260 #
17261 # * This may correspond with what actually happened, but I don't
17262 #   know. It is based on guesswork, hearsay, private correspondence,
17263 #   my faulty memory, and the following online sources and references:
17264 #
17265 # [1] "Three Scotts and a Duane" by Simson L. Garfinkel
17266 # http://www.nextcomputers.org/NeXTfiles/Articles/NeXTWORLD/93.8/93.8.Dec.Community1.html
17267 #
17268 # [2] NeXTSTEP entry from Wikipedia, the free encyclopedia
17269 # https://secure.wikimedia.org/wikipedia/en/wiki/Nextstep
17270 #
17271 # * Renamed the AppKit Terminal.app entry from "Apple_Terminal" to
17272 #   "nsterm" to comply with the name length and case conventions and
17273 #   limitations of various software packages [notably Solaris terminfo
17274 #   and UNIX.] A single Apple_Terminal alias is retained for
17275 #   backwards-compatbility.
17276 #
17277 # * Added function key support (F1-F4). These only work in Terminal.app
17278 #   version 51, hopefully the capabilities won't cause problems for people
17279 #   using version 41.
17280 #
17281 # * Added "full color" (-c) entries which support the 16-color mode in
17282 #   version 51.
17283 #
17284 # * By default, version 51 uses UTF-8 encoding with broken altcharset
17285 #   support, so "ASCII" (-7) entries without altcharset support were
17286 #   added.
17287
17288 # nsterm - AppKit Terminal.app
17289 #
17290 # Apple's Mac OS X includes a Terminal.app derived from the old NeXT
17291 # Terminal.app. It is a partial VT100 emulation with some xterm-like
17292 # extensions. This terminfo was written to describe versions 41
17293 # (shipped with Mac OS X version 10.0) and 51 (shipped with Mac OS X
17294 # version 10.1) of Terminal.app.
17295 #
17296 # Terminal.app runs under the Mac OS X Quartz windowing system (and
17297 # other AppKit-supported windowing systems.)  On the Mac OS X machine I
17298 # use, the executable for Terminal.app is:
17299 # /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
17300 #
17301 # If you're looking for a description of the full-screen system
17302 # console which runs under Apple's Darwin operating system on PowerPC
17303 # platforms, see the "xnuppc" entry instead.
17304 #
17305 # There were no function keys in version 41. In version 51, there are
17306 # four working function keys (F1, F2, F3 and F4.) The function keys
17307 # are included in all of these entries.
17308 #
17309 # It does not support mouse pointer position reporting. Under some
17310 # circumstances the cursor can be positioned using option-click; this
17311 # works by comparing the cursor position and the selected position,
17312 # and simulating enough cursor-key presses to move the cursor to the
17313 # selected position. This technique fails in all but the simplest
17314 # applications.
17315 #
17316 # It provides partial ANSI color support (background colors interacted
17317 # badly with bold in version 41, though, as reflected in :ncv:.) The
17318 # monochrome (-m) entries are useful if you've disabled color support
17319 # or use a monochrome monitor. The full color (-c) entries are useful
17320 # in version 51, which doesn't exhibit the background color bug. They
17321 # also enable an xterm-compatible 16-color mode.
17322 #
17323 # The configurable titlebar is set using xterm-compatible sequences;
17324 # it is used as a status bar in the statusline (-s) entries. Its width
17325 # depends on font sizes and window sizes, but 50 characters seems to
17326 # be the default for an 80x24 window.
17327 #
17328 # The MacRoman character encoding is used for some of the alternate
17329 # characters in the "MacRoman" entries; the "ASCII" (-7) entries
17330 # disable alternate character set support entirely, and the "VT100"
17331 # (-acs) entries rely instead on Terminal.app's own buggy VT100
17332 # graphics emulation, which seems to think the character encoding is
17333 # the old NeXT charset instead of MacRoman. The "ASCII" (-7) entries
17334 # are useful in Terminal.app version 51, which supports UTF-8 and
17335 # other ASCII-compatible character encodings but does not correctly
17336 # implement VT100 graphics; once VT100 graphics are correctly
17337 # implemented in Terminal.app, the "VT100" (-acs) entries should be
17338 # usable in any ASCII-compatible character encoding [except perhaps
17339 # in UTF-8, where some experts argue for disallowing alternate
17340 # characters entirely.]
17341 #
17342 # Terminal.app reports "vt100" as the terminal type, but exports
17343 # several environment variables which may aid detection in a shell
17344 # profile (i.e. .profile or .login):
17345 #
17346 # TERM=vt100
17347 # TERM_PROGRAM=Apple_Terminal
17348 # TERM_PROGRAM_VERSION=41      # in Terminal.app version 41
17349 # TERM_PROGRAM_VERSION=51      # in Terminal.app version 51
17350 #
17351 # For example, the following Bourne shell script would detect the
17352 # correct terminal type:
17353 #
17354 # if [ :"$TERM" = :"vt100" -a :"$TERM_PROGRAM" = :"Apple_Terminal" ]
17355 # then
17356 #     export TERM
17357 #     if [ :"$TERM_PROGRAM_VERSION" = :41 ]
17358 #     then
17359 #         TERM="nsterm-old"
17360 #     else
17361 #         TERM="nsterm-c-7"
17362 #     fi
17363 # fi
17364 #
17365 # In a C shell derivative, this would be accomplished by:
17366 #
17367 # if ( $?TERM && $?TERM_PROGRAM && $?TERM_PROGRAM_VERSION) then
17368 #     if ( :"$TERM" == :"vt100" && :"$TERM_PROGRAM" == :"Apple_Terminal" ) then
17369 #          if ( :"$TERM_PROGRAM_VERSION" == :41 ) then
17370 #              setenv TERM "nsterm-old"
17371 #          else
17372 #              setenv TERM "nsterm-c-7"
17373 #          endif
17374 #     endif
17375 # endif
17376
17377 # The '+' entries are building blocks
17378 nsterm+7|AppKit Terminal.app v41+ basic capabilities w/ASCII charset,
17379         am, bw, msgr, xenl, xon,
17380         cols#80, it#8, lines#24,
17381         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
17382         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
17383         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
17384         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
17385         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
17386         home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J,
17387         invis=\E[8m, kbs=\177, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
17388         kcuu1=\EOA, kent=\EOM, rc=\E8, rev=\E[7m, ri=\EM,
17389         rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
17390         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
17391         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
17392         sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
17393         smul=\E[4m, tbc=\E[3g, use=vt100+enq, use=vt100+pfkeys,
17394
17395 nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 alternate-charset,
17396         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
17397         enacs=\E(B\E)0, rmacs=^O,
17398         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
17399         sgr0=\E[m\017, smacs=^N, use=nsterm+7,
17400
17401 nsterm+mac|AppKit Terminal.app v41+ basic capabilities w/MacRoman alternate-charset,
17402         acsc=+\335\,\334-\366.\3770#`\327a\:f\241g\261h#i\360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{\271|\255}\243~\245,
17403         enacs=\E(B\E)0, rmacs=^O,
17404         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
17405         sgr0=\E[m\017, smacs=^N, use=nsterm+7,
17406
17407 # compare with xterm+sl-twm
17408 nsterm+s|AppKit Terminal.app v41+ status-line (window titlebar) support,
17409         hs,
17410         wsl#50,
17411         dsl=\E]2;\007, fsl=^G, tsl=\E]2;,
17412
17413 nsterm+c|AppKit Terminal.app v51+ full color support (including 16 colors),
17414         op=\E[0m, use=ibm+16color,
17415
17416 nsterm+c41|AppKit Terminal.app v41 color support,
17417         colors#8, ncv#37, pairs#64,
17418         op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
17419
17420 # These are different combinations of the building blocks
17421
17422 # ASCII charset (-7)
17423 nsterm-m-7|nsterm-7-m|AppKit Terminal.app v41+ w/ASCII charset (monochrome),
17424         use=nsterm+7,
17425
17426 nsterm-m-s-7|nsterm-7-m-s|AppKit Terminal.app v41+ w/ASCII charset (monochrome w/statusline),
17427         use=nsterm+s, use=nsterm+7,
17428
17429 nsterm-7|AppKit Terminal.app v41+ w/ASCII charset (color),
17430         use=nsterm+c41, use=nsterm+7,
17431
17432 nsterm-7-c|nsterm-c-7|AppKit Terminal.app v51+ w/ASCII charset (full color),
17433         use=nsterm+c, use=nsterm+7,
17434
17435 nsterm-s-7|nsterm-7-s|AppKit Terminal.app v41+ w/ASCII charset (color w/statusline),
17436         use=nsterm+s, use=nsterm+c41, use=nsterm+7,
17437
17438 nsterm-c-s-7|nsterm-7-c-s|AppKit Terminal.app v51+ w/ASCII charset (full color w/statusline),
17439         use=nsterm+s, use=nsterm+c, use=nsterm+7,
17440
17441 # VT100 alternate-charset (-acs)
17442 nsterm-m-acs|nsterm-acs-m|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome),
17443         use=nsterm+acs,
17444
17445 nsterm-m-s-acs|nsterm-acs-m-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome w/statusline),
17446         use=nsterm+s, use=nsterm+acs,
17447
17448 nsterm-acs|AppKit Terminal.app v41+ w/VT100 alternate-charset (color),
17449         use=nsterm+c41, use=nsterm+acs,
17450
17451 nsterm-c-acs|nsterm-acs-c|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color),
17452         use=nsterm+c, use=nsterm+acs,
17453
17454 nsterm-s-acs|nsterm-acs-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (color w/statusline),
17455         use=nsterm+s, use=nsterm+c41, use=nsterm+acs,
17456
17457 nsterm-c-s-acs|nsterm-acs-c-s|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color w/statusline),
17458         use=nsterm+s, use=nsterm+c, use=nsterm+acs,
17459
17460 # MacRoman charset
17461 nsterm-m|AppKit Terminal.app v41+ w/MacRoman charset (monochrome),
17462         use=nsterm+mac,
17463
17464 nsterm-m-s|AppKit Terminal.app v41+ w/MacRoman charset (monochrome w/statusline),
17465         use=nsterm+s, use=nsterm+mac,
17466
17467 nsterm-old|AppKit Terminal.app v41+ w/MacRoman charset (color),
17468         use=nsterm+c41, use=nsterm+mac,
17469
17470 nsterm-c|AppKit Terminal.app v51+ w/MacRoman charset (full color),
17471         use=nsterm+c, use=nsterm+mac,
17472
17473 nsterm-s|AppKit Terminal.app v41+ w/MacRoman charset (color w/statusline),
17474         use=nsterm+s, use=nsterm+c41, use=nsterm+mac,
17475
17476 nsterm-c-s|AppKit Terminal.app v51+ w/MacRoman charset (full color w/statusline),
17477         use=nsterm+s, use=nsterm+c, use=nsterm+mac,
17478
17479 # In Mac OS X version 10.5 the format of the preferences has changed
17480 # and a new, more complex technique is needed, e.g.,
17481 #
17482 #       python -c 'import sys,objc;NSUserDefaults=objc.lookUpClass(
17483 #       "NSUserDefaults");ud=NSUserDefaults.alloc();
17484 #       ud.init();prefs=ud.persistentDomainForName_(
17485 #       "com.apple.Terminal");prefs["Window Settings"][
17486 #       prefs["Default Window Settings"]]["TerminalType"
17487 #       ]=sys.argv[1];ud.setPersistentDomain_forName_(prefs,
17488 #       "com.apple.Terminal")' nsterm-16color
17489 #
17490 # and it is still not settable from the preferences dialog. This is
17491 # tracked under rdar://problem/7365108 and rdar://problem/7365134
17492 # in Apple's bug reporter.
17493 nsterm-16color|AppKit Terminal.app v240.2+ with Mac OS X version 10.5,
17494         bw@, mir, npc,
17495         civis=\E[?25l, cnorm=\E[?25h, dch=\E[%p1%dP, dch1=\E[P,
17496         flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG,
17497         ich=\E[%p1%d@, ich1=\E[@, kdch1=\E[3~, kend=\E[F,
17498         kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
17499         kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
17500         kf18=\E[22~, kf19=\E[33~, kf20=\E[34~, kf5=\E[15~,
17501         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
17502         knp=\E[6~, kpp=\E[5~, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
17503         smcup=\E7\E[?47h, smir=\E[4h, vpa=\E[%i%p1%dd,
17504         use=nsterm-c-s-acs,
17505
17506 # The versions of Terminal.app in Mac OS X version 10.3.x seem to have
17507 # the background color erase bug. The newer version 240.2 in Mac OS X
17508 # version 10.5 does not.
17509 #
17510 # This entry is based on newsgroup comments by Alain Bench, Christian Ebert,
17511 # and D P Schreber comparing to nsterm-c-s-acs.
17512 #
17513 # In Mac OS X version 10.4 and earlier, D P Schreber notes that $TERM
17514 # can be set in Terminal.app, e.g.,
17515 #
17516 #       defaults write com.apple.Terminal TermCapString nsterm-bce
17517 #
17518 # and that it is not set in Terminal's preferences dialog.
17519 nsterm-bce|AppKit Terminal.app v71+/v100.1.8+ with Mac OS X version 10.3/10.4 (bce),
17520         bce, bw, use=nsterm-16color,
17521
17522 # This is an alias which should always point to the "current" version
17523 nsterm|Apple_Terminal|AppKit Terminal.app,
17524         use=nsterm-16color,
17525
17526 # iTerm.app from http://iterm.sourceforge.net/ is an alternative (and
17527 # more featureful) terminal emulator for Mac OS X. It is similar
17528 # enough in capabilities to nsterm-16color that I have derived this
17529 # description from that one, but as far as I know they share no code.
17530 # Many of the features are user-configurable, but I attempt only to
17531 # describe the default configuration.
17532 #
17533 # NOTE: When tack tests (csr) + (nel) iTerm.app crashes, so (csr) is
17534 # disabled.
17535 iTerm.app|iTerm.app terminal emulator for Mac OS X,
17536         bce, bw@, ccc@,
17537         csr@, initc@, kend=\EOF, khome=\EOH, use=xterm+256color,
17538         use=nsterm-16color,
17539
17540 # xnuppc - Darwin PowerPC Console (a.k.a. "darwin")
17541 #
17542 # On PowerPC platforms, Apple's Darwin operating system uses a
17543 # full-screen system console derived from a NetBSD framebuffer
17544 # console. It is an ANSI-style terminal, and is not really VT-100
17545 # compatible.
17546 #
17547 # Under Mac OS X, this is the system console driver used while in
17548 # single-user mode [reachable by holding down Command-S during the
17549 # boot process] and when logged in using console mode [reachable by
17550 # typing ">console" at the graphical login prompt.]
17551 #
17552 # If you're looking for a description of the Terminal.app terminal
17553 # emulator which runs under the Mac OS X Quartz windowing system (and
17554 # other AppKit-supported windowing systems,) see the "nsterm"
17555 # entry instead.
17556 #
17557 # NOTE: Under Mac OS X version 10.1, the default login window does not
17558 # prompt for user name, instead requiring an icon to be selected from
17559 # a list of known users. Since the special ">console" login is not in
17560 # this list, you must make one of two changes in the Login Window
17561 # panel of the Login section of System Prefs to make the special
17562 # ">console" login accessible. The first option is to enable 'Show
17563 # "Other User" in list for network users', which will add a special
17564 # "Other..." icon to the graphical login panel. Selecting "Other..."
17565 # will present the regular graphical login prompt. The second option
17566 # is to change the 'Display Login Window as:' setting to 'Name and
17567 # password entry fields', which replaces the login panel with a
17568 # graphical login prompt.
17569 #
17570 # There are no function keys, at least not in Darwin 1.3.
17571 #
17572 # It has no mouse support.
17573 #
17574 # It has full ANSI color support, and color combines correctly with
17575 # all three supported attributes: bold, inverse-video and underline.
17576 # However, bold colored text is almost unreadable (bolding is
17577 # accomplished using shifting and or-ing, and looks smeared) so bold
17578 # has been excluded from the list of color-compatible attributes
17579 # [using (ncv)]. The monochrome entry (-m) is useful if you use a
17580 # monochrome monitor.
17581 #
17582 # There is one serious bug with this terminal emulation's color
17583 # support: repositioning the cursor onto a cell with non-matching
17584 # colors obliterates that cell's contents, replacing it with a blank
17585 # and displaying a colored cursor in the "current" colors. There is
17586 # no complete workaround at present [other than using the monochrome
17587 # (-m) entries,] but removing the (msgr) capability seemed to help.
17588 #
17589 # The "standout" chosen was simple reverse-video, although a colorful
17590 # standout might be more aesthetically pleasing. Similarly, the bold
17591 # chosen is the terminal's own smeared bold, although a simple
17592 # color-change might be more readable. The color-bold (-b) entries
17593 # uses magenta colored text for bolding instead. The fancy color (-f
17594 # and -f2) entries use color for bold, standout and underlined text
17595 # (underlined text is still underlined, though.)
17596 #
17597 # Apparently the terminal emulator does support a VT-100-style
17598 # alternate character set, but all the alternate character set
17599 # positions have been left blank in the font. For this reason, no
17600 # alternate character set capabilities have been included in this
17601 # description. The console driver appears to be ASCII-only, so (enacs)
17602 # has been excluded [although the VT-100 sequence does work.]
17603 #
17604 # The default Mac OS X and Darwin installation reports "vt100" as the
17605 # terminal type, and exports no helpful environment variables. To fix
17606 # this, change the "console" entry in /etc/ttys from "vt100" to
17607 # "xnuppc-WxH", where W and H are the character dimensions of your
17608 # console (see below.)
17609 #
17610 # The font used by the terminal emulator is apparently one originally
17611 # drawn by Ka-Ping Yee, and uses 8x16-pixel characters. This
17612 # file includes descriptions for the following geometries:
17613 #
17614 #     Pixels        Characters   Entry Name (append -m for monochrome)
17615 #    -------------------------------------------------------------------
17616 #     640x400       80x25        xnuppc-80x25
17617 #     640x480       80x30        xnuppc-80x30
17618 #     720x480       90x30        xnuppc-90x30
17619 #     800x600       100x37       xnuppc-100x37
17620 #     896x600       112x37       xnuppc-112x37
17621 #     1024x640      128x40       xnuppc-128x40
17622 #     1024x768      128x48       xnuppc-128x48
17623 #     1152x768      144x48       xnuppc-144x48
17624 #     1280x1024     160x64       xnuppc-160x64
17625 #     1600x1024     200x64       xnuppc-200x64
17626 #     1600x1200     200x75       xnuppc-200x75
17627 #     2048x1536     256x96       xnuppc-256x96
17628 #
17629 # The basic "xnuppc" entry includes no size information, and the
17630 # emulator includes no reporting capability, so you'll be at the mercy
17631 # of the TTY device (which reports incorrectly on my hardware.) The
17632 # color-bold entries do not include size information.
17633
17634 # The '+' entries are building blocks
17635 xnuppc+basic|Darwin PowerPC Console basic capabilities,
17636         am, bce, mir, xenl,
17637         it#8,
17638         bold=\E[1m, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
17639         cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
17640         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
17641         cuu=\E[%p1%dA, cuu1=\E[A, dsl=\E]2;\007, ed=\E[J, el=\E[K,
17642         el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=\177,
17643         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rc=\E8,
17644         rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m,
17645         rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
17646         sc=\E7,
17647         sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
17648         sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
17649         smul=\E[4m, tbc=\E[3g, use=vt100+keypad,
17650
17651 xnuppc+c|Darwin PowerPC Console ANSI color support,
17652         colors#8, ncv#32, pairs#64,
17653         op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
17654
17655 xnuppc+b|Darwin PowerPC Console color-bold support,
17656         ncv#32,
17657         bold=\E[35m,
17658         sgr=\E[0%?%p6%t;35%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
17659         use=xnuppc+basic,
17660
17661 xnuppc+f|Darwin PowerPC Console fancy color support,
17662         ncv#35,
17663         sgr=\E[0%?%p6%t;35%;%?%p2%t;36;4%;%?%p1%t;33;44%;%?%p3%t;7%;m,
17664         smso=\E[33;44m, smul=\E[36;4m, use=xnuppc+b,
17665
17666 xnuppc+f2|Darwin PowerPC Console alternate fancy color support,
17667         ncv#35,
17668         bold=\E[33m,
17669         sgr=\E[0%?%p6%t;33%;%?%p2%t;34%;%?%p1%t;31;47%;%?%p3%t;7%;m,
17670         smso=\E[31;47m, smul=\E[34m, use=xnuppc+basic,
17671
17672 # Building blocks for specific screen sizes
17673 xnuppc+80x25|Darwin PowerPC Console 80x25 support (640x400 pixels),
17674         cols#80, lines#25,
17675
17676 xnuppc+80x30|Darwin PowerPC Console 80x30 support (640x480 pixels),
17677         cols#80, lines#30,
17678
17679 xnuppc+90x30|Darwin PowerPC Console 90x30 support (720x480 pixels),
17680         cols#90, lines#30,
17681
17682 xnuppc+100x37|Darwin PowerPC Console 100x37 support (800x600 pixels),
17683         cols#100, lines#37,
17684
17685 xnuppc+112x37|Darwin PowerPC Console 112x37 support (896x600 pixels),
17686         cols#112, lines#37,
17687
17688 xnuppc+128x40|Darwin PowerPC Console 128x40 support (1024x640 pixels),
17689         cols#128, lines#40,
17690
17691 xnuppc+128x48|Darwin PowerPC Console 128x48 support (1024x768 pixels),
17692         cols#128, lines#48,
17693
17694 xnuppc+144x48|Darwin PowerPC Console 144x48 support (1152x768 pixels),
17695         cols#144, lines#48,
17696
17697 xnuppc+160x64|Darwin PowerPC Console 160x64 support (1280x1024 pixels),
17698         cols#160, lines#64,
17699
17700 xnuppc+200x64|Darwin PowerPC Console 200x64 support (1600x1024 pixels),
17701         cols#200, lines#64,
17702
17703 xnuppc+200x75|Darwin PowerPC Console 200x75 support (1600x1200 pixels),
17704         cols#200, lines#75,
17705
17706 xnuppc+256x96|Darwin PowerPC Console 256x96 support (2048x1536 pixels),
17707         cols#256, lines#96,
17708
17709 # These are different combinations of the building blocks
17710
17711 xnuppc-m|darwin-m|Darwin PowerPC Console (monochrome),
17712         use=xnuppc+basic,
17713
17714 xnuppc|darwin|Darwin PowerPC Console (color),
17715         use=xnuppc+c, use=xnuppc+basic,
17716
17717 xnuppc-m-b|darwin-m-b|Darwin PowerPC Console (monochrome w/color-bold),
17718         use=xnuppc+b,
17719
17720 xnuppc-b|darwin-b|Darwin PowerPC Console (color w/color-bold),
17721         use=xnuppc+b, use=xnuppc+c,
17722
17723 xnuppc-m-f|darwin-m-f|Darwin PowerPC Console (fancy monochrome),
17724         use=xnuppc+f,
17725
17726 xnuppc-f|darwin-f|Darwin PowerPC Console (fancy color),
17727         use=xnuppc+f, use=xnuppc+c,
17728
17729 xnuppc-m-f2|darwin-m-f2|Darwin PowerPC Console (alternate fancy monochrome),
17730         use=xnuppc+f2,
17731
17732 xnuppc-f2|darwin-f2|Darwin PowerPC Console (alternate fancy color),
17733         use=xnuppc+f2, use=xnuppc+c,
17734
17735 # Combinations for specific screen sizes
17736 xnuppc-80x25-m|darwin-80x25-m|Darwin PowerPC Console (monochrome) 80x25,
17737         use=xnuppc+80x25, use=xnuppc+basic,
17738
17739 xnuppc-80x25|darwin-80x25|Darwin PowerPC Console (color) 80x25,
17740         use=xnuppc+c, use=xnuppc+80x25, use=xnuppc+basic,
17741
17742 xnuppc-80x30-m|darwin-80x30-m|Darwin PowerPC Console (monochrome) 80x30,
17743         use=xnuppc+80x30, use=xnuppc+basic,
17744
17745 xnuppc-80x30|darwin-80x30|Darwin PowerPC Console (color) 80x30,
17746         use=xnuppc+c, use=xnuppc+80x30, use=xnuppc+basic,
17747
17748 xnuppc-90x30-m|darwin-90x30-m|Darwin PowerPC Console (monochrome) 90x30,
17749         use=xnuppc+90x30, use=xnuppc+basic,
17750
17751 xnuppc-90x30|darwin-90x30|Darwin PowerPC Console (color) 90x30,
17752         use=xnuppc+c, use=xnuppc+90x30, use=xnuppc+basic,
17753
17754 xnuppc-100x37-m|darwin-100x37-m|Darwin PowerPC Console (monochrome) 100x37,
17755         use=xnuppc+100x37, use=xnuppc+basic,
17756
17757 xnuppc-100x37|darwin-100x37|Darwin PowerPC Console (color) 100x37,
17758         use=xnuppc+c, use=xnuppc+100x37, use=xnuppc+basic,
17759
17760 xnuppc-112x37-m|darwin-112x37-m|Darwin PowerPC Console (monochrome) 112x37,
17761         use=xnuppc+112x37, use=xnuppc+basic,
17762
17763 xnuppc-112x37|darwin-112x37|Darwin PowerPC Console (color) 112x37,
17764         use=xnuppc+c, use=xnuppc+112x37, use=xnuppc+basic,
17765
17766 xnuppc-128x40-m|darwin-128x40-m|Darwin PowerPC Console (monochrome) 128x40,
17767         use=xnuppc+128x40, use=xnuppc+basic,
17768
17769 xnuppc-128x40|darwin-128x40|Darwin PowerPC Console (color) 128x40,
17770         use=xnuppc+c, use=xnuppc+128x40, use=xnuppc+basic,
17771
17772 xnuppc-128x48-m|darwin-128x48-m|Darwin PowerPC Console (monochrome) 128x48,
17773         use=xnuppc+128x48, use=xnuppc+basic,
17774
17775 xnuppc-128x48|darwin-128x48|Darwin PowerPC Console (color) 128x48,
17776         use=xnuppc+c, use=xnuppc+128x48, use=xnuppc+basic,
17777
17778 xnuppc-144x48-m|darwin-144x48-m|Darwin PowerPC Console (monochrome) 144x48,
17779         use=xnuppc+144x48, use=xnuppc+basic,
17780
17781 xnuppc-144x48|darwin-144x48|Darwin PowerPC Console (color) 144x48,
17782         use=xnuppc+c, use=xnuppc+144x48, use=xnuppc+basic,
17783
17784 xnuppc-160x64-m|darwin-160x64-m|Darwin PowerPC Console (monochrome) 160x64,
17785         use=xnuppc+160x64, use=xnuppc+basic,
17786
17787 xnuppc-160x64|darwin-160x64|Darwin PowerPC Console (color) 160x64,
17788         use=xnuppc+c, use=xnuppc+160x64, use=xnuppc+basic,
17789
17790 xnuppc-200x64-m|darwin-200x64-m|Darwin PowerPC Console (monochrome) 200x64,
17791         use=xnuppc+200x64, use=xnuppc+basic,
17792
17793 xnuppc-200x64|darwin-200x64|Darwin PowerPC Console (color) 200x64,
17794         use=xnuppc+c, use=xnuppc+200x64, use=xnuppc+basic,
17795
17796 xnuppc-200x75-m|darwin-200x75-m|Darwin PowerPC Console (monochrome) 200x75,
17797         use=xnuppc+200x75, use=xnuppc+basic,
17798
17799 xnuppc-200x75|darwin-200x75|Darwin PowerPC Console (color) 200x75,
17800         use=xnuppc+c, use=xnuppc+200x75, use=xnuppc+basic,
17801
17802 xnuppc-256x96-m|darwin-256x96-m|Darwin PowerPC Console (monochrome) 256x96,
17803         use=xnuppc+256x96, use=xnuppc+basic,
17804
17805 xnuppc-256x96|darwin-256x96|Darwin PowerPC Console (color) 256x96,
17806         use=xnuppc+c, use=xnuppc+256x96, use=xnuppc+basic,
17807
17808 #### Radio Shack/Tandy
17809 #
17810
17811 # (coco3: This had "ta" used incorrectly as a boolean and bl given as "bl#7".
17812 # I read these as mistakes for ":it#8:" and ":bl=\007:" respectively -- esr)
17813 # From: <{pbrown,ctl}@ocf.berkeley.edu> 12 Mar 90
17814 coco3|os9LII|Tandy CoCo3 24*80 OS9 Level II,
17815         OTbs, am,
17816         cols#80, it#8, lines#24,
17817         bel=^G, blink=^_", bold=\E\:^A, civis=^E\s,
17818         clear=\014$<5*/>, cnorm=^E!, cub1=^H, cud1=^J, cuf1=^F,
17819         cup=\002%p2%{32}%+%c%p1%{32}%+%c$<2/>, cuu1=^I,
17820         dl1=^_1, ed=^K, el=^D, home=^A, il1=^_0, kcub1=^H, kcud1=^J,
17821         kcuf1=^I, kcuu1=^L, rev=^_\s, rmso=^_!, rmul=^_#,
17822         sgr0=\037!\E\:\0, smso=^_\s, smul=^_",
17823 # (trs2: removed obsolete ":nl=^_:" -- esr)
17824 trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M,
17825         OTbs, am, msgr,
17826         cols#80, it#8, lines#24,
17827         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^_, cuf1=^],
17828         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, dl1=^K, ed=^B,
17829         el=^A, home=^F, ht=^I, il1=^D, ind=^J, kbs=^H, kcub1=^\,
17830         kcud1=^_, kcuf1=^], kcuu1=^^, rmso=^O, sgr0=^O, smso=^N,
17831 # From: Kevin Braunsdorf <ksb@mentor.cc.purdue.edu>
17832 # (This had extension capabilities
17833 #       :BN=\E[?33h:BF=\E[?33l:UC=\E[_ q:BC=\E[\177 q:\
17834 #       :CN=\ERC:CF=\ERc:NR=\ERD:NM=\ER@:
17835 # I also deleted the unnecessary ":kn#2:", ":sg#0:" -- esr)
17836 trs16|trs-80 model 16 console,
17837         OTbs, am,
17838         cols#80, it#8, lines#24,
17839         acsc=jak`l_mbquvewcxs, bel=^G, civis=\ERc, clear=^L,
17840         cnorm=\ERC, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
17841         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
17842         dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
17843         ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
17844         kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P, kf6=^N, kf7=^S,
17845         khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7,
17846         lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg, rmso=\ER@, sgr0=\ER@,
17847         smacs=\ERG, smso=\ERD,
17848
17849 #### Commodore Business Machines
17850 #
17851 # Formerly located in West Chester, PA; went spectacularly bust in 1994
17852 # after years of shaky engineering and egregious mismanagement.  Made one
17853 # really nice machine (the Amiga) and boatloads of nasty ones (PET, C-64,
17854 # C-128, VIC-20).  The C-64 is said to have been the most popular machine
17855 # ever (most units sold); they can still be found gathering dust in closets
17856 # everywhere.
17857 #
17858
17859 # From: Kent Polk <kent@swrinde.nde.swri.edu>, 30 May 90
17860 # Added a few more entries, converted caret-type control sequence (^x) entries
17861 # to '\0xx' entries since a couple of people mentioned losing '^x' sequences.
17862 # Corrections by Ty Sarna <tsarna@endicor.com>, Sat Feb 28 18:55:15 1998
17863 #
17864 # :as:, :ae:                    Support for alternate character sets.
17865 # :ve=\E[\040p:vi=\E[\060\040p: cursor visible/invisible.
17866 # :xn:  vt100 kludginess at column 80/NEWLINE ignore after 80 cols(Concept)
17867 #     This one appears to fix a problem I always had with a line ending
17868 #     at 'width+1' (I think) followed by a blank line in vi. The blank
17869 #     line tended to disappear and reappear depending on how the screen
17870 #     was refreshed. Note that this is probably needed only if you use
17871 #     something like a Dnet Fterm with the window sized to some peculiar
17872 #     dimension larger than 80 columns.
17873 # :k0=\E9~:     map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
17874 # (amiga: removed obsolete :kn#10:,
17875 # also added empty <acsc> to suppress a warning --esr)
17876 amiga|Amiga ANSI,
17877         OTbs, am, bw, xenl,
17878         cols#80, lines#24,
17879         acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z,
17880         civis=\E[0 p, clear=\E[H\E[J, cnorm=\E[ p, cub=\E[%p1%dD,
17881         cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
17882         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
17883         cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
17884         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
17885         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
17886         indn=\E[%p1%dS, invis=\E[8m, is2=\E[20l, kbs=^H,
17887         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[9~,
17888         kf1=\E[0~, kf2=\E[1~, kf3=\E[2~, kf4=\E[3~, kf5=\E[4~,
17889         kf6=\E[5~, kf7=\E[6~, kf8=\E[7~, kf9=\E[8~, rev=\E[7m,
17890         ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmso=\E[m, rmul=\E[m,
17891         rs1=\Ec, sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
17892
17893 # From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
17894 # (amiga: added empty <acsc> to suppress a warning.
17895 # I'm told this entry screws up badly with AS225, the Amiga
17896 # TCP/IP package once from Commodore, and now sold by InterWorks.--esr)
17897 amiga-h|Hans Verkuil's Amiga ANSI,
17898         OTbs, bw, msgr,
17899         cols#80, lines#24,
17900         acsc=, bel=^G, blink=\2337;2m, bold=\2331m, cbt=\233Z,
17901         civis=\2330 p, clear=\233H\233J, cnorm=\233 p, cr=^M,
17902         cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
17903         cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
17904         cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
17905         dim=\2332m, ech=\233%p1%dP, ed=\233J, el=\233K, flash=^G,
17906         home=\233H, ht=^I, ich=\233%p1%d@, ich1=\233@, ind=\233S,
17907         indn=\233%p1%dS, invis=\2338m, is2=\23320l, kbs=^H,
17908         kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
17909         kdch1=\177, kf0=\2339~, kf1=\2330~, kf2=\2331~, kf3=\2332~,
17910         kf4=\2333~, kf5=\2334~, kf6=\2335~, kf7=\2336~, kf8=\2337~,
17911         kf9=\2338~, nel=\233B\r, rev=\2337m, ri=\233T,
17912         rin=\233%p1%dT, rmacs=^O, rmcup=\233?7h, rmso=\2330m,
17913         rmul=\2330m, rs1=\Ec, sgr0=\2330m, smacs=^N, smcup=\233?7l,
17914         smso=\2337m, smul=\2334m,
17915
17916 # From: Henning 'Faroul' Peters <Faroul@beyond.kn-bremen.de>, 25 Sep 1999
17917 #
17918 # Pavel Fedin added
17919 #       Home    Shift+Left
17920 #       End     Shift+Right
17921 #       PgUp    Shift+Up
17922 #       PgDn    Shift+Down
17923 amiga-8bit|Amiga ANSI using 8-bit controls,
17924         acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
17925         ind=\204, indn@, kend=\233 @, khome=\233 A, knp=\233S,
17926         kpp=\233T, ri=\215, rin@, use=amiga-h,
17927
17928 # From: Ruediger Kuhlmann <terminfo@ruediger-kuhlmann.de>, 18 Jul 2000
17929 # requires use of appropriate preferences settings.
17930 amiga-vnc|Amiga using VNC console (black on light gray),
17931         am, da, db, msgr, ndscr,
17932         btns#1, colors#16, cols#80, lines#24, lm#0, ncv#0, pairs#256,
17933         bel=^G, blink=\E[7;2m, bold=\E[1m, civis=\E[0p,
17934         clear=\E[H\E[J, cnorm=\E[p\E[>?6l, cr=^M,
17935         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
17936         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
17937         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
17938         cvvis=\E[>?6h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
17939         dl=\E[%p1%dM, dl1=\E[1M, ed=\E[J, el=\E[K, flash=^G,
17940         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
17941         indn=\E[%p1%dS, invis=\E8m,
17942         is2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
17943         kbs=^H, kcbt=\233Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
17944         kcuu1=\E[A, kdch1=\177, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
17945         kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
17946         kf8=\E[7~, kf9=\E[8~, khlp=\E[?~, khome=\E[44~, kll=\E[45~,
17947         kmous=\E[M, knp=\E[42~, kpp=\E[41~, nel=\EE, oc=\E[0m,
17948         rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=\E[?7h\E[r\E[J,
17949         rmkx=\E[?1l, rmso=\E[21m, rmul=\E[24m, rs1=\Ec,
17950         rs2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
17951         setab=\E[%?%p1%{8}%>%t%'F'%p1%+%d%e4%p1%d%;m,
17952         setaf=\E[%?%p1%{8}%>%t%'2'%p1%+%d%e3%p1%d%;m,
17953         sgr0=\E[0m\017\E[30;85;>15m, smcup=\E[?7h, smkx=\E[?1h,
17954         smso=\E[1m, smul=\E[4m,
17955
17956 # MorphOS on Genesi Pegasos
17957 # By Pavel Fedin <sonic_amiga@rambler.ru>
17958 morphos,
17959         acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
17960         ind=\204, indn@, kend=\23345~, kf11=\23320~, kf12=\23321~,
17961         khome=\23344~, kich1=\23340~, knp=\23342~, kpp=\23341~,
17962         ri=\215, rin@, use=amiga-h,
17963
17964 # Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
17965 #       I'm trying to write a termcap for a commodore b-128, and I'm
17966 # having a little trouble. I've had to map most of my control characters
17967 # to something that unix will accept (my delete-char is a ctrl-t, etc),
17968 # and create some functions (like cm), but thats life.
17969 #       The problem is with the arrow keys - right, and up work fine, but
17970 # left deletes the previous character and down I just can't figure out.
17971 # Jove knows what I want, but I don't know what it's sending to me (it
17972 # isn't thats bound to next-line in jove).
17973 #       Anybody got any ideas? Here's my termcap.
17974 # DAG -- I changed his "^n" entries to "\n"; see if that works.
17975 #
17976 commodore|b-128|Commodore B-128 micro,
17977         am, bw,
17978         OTdN#20, cols#80, lines#24, pb#150,
17979         OTbc=^H, OTnl=^M, clear=\E\006$<10/>, cr=^M, cud1=^J,
17980         cuf1=^F, cup=\E\013%p1%2d\,%p2%2d\,$<20/>, cuu1=^P,
17981         dch1=\177$<10*/>, dl1=\Ed$<10*/>, el=\Eq$<10/>,
17982         home=\E^E, ht=\011$<5/>, ich1=\E\n$<5/>, il1=\Ei$<10/>,
17983         kcub1=^B, kcud1=^J, kcuf1=^F, kcuu1=^P, khome=\E^E, rmir=,
17984         smir=,
17985
17986 #### North Star
17987 #
17988 # North Star Advantage from Lt. Fickie <brl-ibd!fickie> via BRL
17989 northstar|North Star Advantage,
17990         OTbs,
17991         cols#80, lines#24,
17992         clear=\004$<200/>,
17993         cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1/>, ed=\017$<200/>,
17994         el=\016$<200/>, home=\034\032$<200/>,
17995
17996 #### Osborne
17997 #
17998 # Thu Jul  7 03:55:16 1983
17999 #
18000 # As an aside, be careful; it may sound like an anomaly on the
18001 # Osborne, but with the 80-column upgrade, it's too easy to
18002 # enter lines >80 columns!
18003 #
18004 # I've already had several comments...
18005 # The Osborne-1 with the 80-col option is capable of being
18006 # 52, 80, or 104 characters wide; default to 80 for compatibility
18007 # with most systems.
18008 #
18009 # The tab is destructive on the Ozzie; make sure to 'stty -tabs'.
18010 osborne-w|osborne1-w|osborne I in 104-column mode,
18011         msgr, ul, xt,
18012         cols#104, lines#24,
18013         bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
18014         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
18015         dl1=\ER, el=\ET, ich1=\EQ, il1=\EE, ind=^J, kcub1=^H, kcud1=^J,
18016         kcuf1=^L, kcuu1=^K, rmso=\E(, rmul=\Em, smso=\E), smul=\El,
18017 # Osborne I     from ptsfa!rhc (Robert Cohen) via BRL
18018 osborne|osborne1|osborne I in 80-column mode,
18019         OTbs, am, mir, msgr, ul, xhp,
18020         OTdB#4, cols#80, lines#24,
18021         clear=^Z, cub1=\010$<4>, cud1=^J, cuf1=^L,
18022         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
18023         dch1=\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H,
18024         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmir=, rmso=\E),
18025         rmul=\Em, smir=\EQ, smso=\E(, smul=\El,
18026 #
18027 # Osborne Executive definition from BRL
18028 # Similar to tvi920
18029 # Added by David Milligan and Tom Smith (SMU)
18030 osexec|Osborne executive,
18031         OTbs, am,
18032         OTug#1, cols#80, lines#24, xmc#1,
18033         OTnl=^J, bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
18034         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
18035         dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
18036         is2=\Eq\Ek\Em\EA\Ex0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
18037         kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
18038         kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
18039         kf9=^AI\r, rmir=, rmso=\Ek, rmul=\Em, smir=, smso=\Ej,
18040         smul=\El, tbc=\E3,
18041
18042 #### Console types for obsolete UNIX clones
18043 #
18044 # Coherent, Minix, Venix, and several lesser-known kin were OSs for 8088
18045 # machines that tried to emulate the UNIX look'n'feel.  Coherent and Venix
18046 # were commercial, Minix an educational tool sold in conjunction with a book.
18047 # Memory-segmentation limits and a strong tendency to look like V7 long after
18048 # it was obsolete made all three pretty lame.  Venix croaked early.  Coherent
18049 # and Minix were ported to 32-bit Intel boxes, only to be run over by a
18050 # steamroller named `Linux' (which, to be fair, traces some lineage to Minix).
18051 # Coherent's vendor, the Mark Williams Company, went belly-up in 1994.  There
18052 # are also, I'm told, Minix ports that ran on Amiga and Atari machines and
18053 # even as single processes under SunOS and the Macintosh OS.
18054 #
18055
18056 # See
18057 #       http://www.minix3.org/manpages/man4/console.4.html
18058 minix|minix console (v3),
18059         acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
18060         kdch1=\177, kend=\E[Y, kf0=\E[21~, kf1=\E[11~, kf10=\E[21~,
18061         kf11=\E[11;2~, kf12=\E[12;2~, kf13=\E[13;2~,
18062         kf14=\E[14;2~, kf15=\E[15;2~, kf16=\E[17;2~,
18063         kf17=\E[18;2~, kf18=\E[19;2~, kf19=\E[20;2~, kf2=\E[12~,
18064         kf20=\E[21;2~, kf21=\E[11;5~, kf22=\E[12;5~,
18065         kf23=\E[13;5~, kf24=\E[14;5~, kf25=\E[15;5~,
18066         kf26=\E[17;5~, kf27=\E[18;5~, kf28=\E[19;5~,
18067         kf29=\E[20;5~, kf3=\E[13~, kf30=\E[21;5~, kf31=\E[11;6~,
18068         kf32=\E[12;6~, kf33=\E[13;6~, kf34=\E[14;6~,
18069         kf35=\E[15;6~, kf36=\E[17;6~, kf37=\E[18;6~,
18070         kf38=\E[19;6~, kf39=\E[20;6~, kf4=\E[14~, kf40=\E[21;6~,
18071         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
18072         kich1=\E[@, knp=\E[U, kpp=\E[V, lf0@, lf1@, lf2@, lf3@, lf4@, lf5@,
18073         use=minix-3.0,
18074
18075 minix-3.0|minix console (v3.0),
18076         use=ecma+color, use=minix-1.7,
18077
18078 # See
18079 #       http://www.minix-vmd.org/pub/Minix-vmd/1.7.0/wwwman/man4/console.4.html
18080 # This is the entry provided with minix 1.7.4, with bogus :ri: removed.
18081 minix-1.7|minix console (v1.7),
18082         am, xenl,
18083         cols#80, it#8, lines#25,
18084         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
18085         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
18086         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
18087         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
18088         dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, el1=\E[2K,
18089         home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
18090         il1=\E[L, ind=^J, is2=\E[0m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
18091         kcuf1=\E[C, kcuu1=\E[A, kf0=\E[Y, kf1=\E[V, kf2=\E[U,
18092         kf3=\E[T, kf4=\E[S, kf5=\E[G, khome=\E[H, lf0=End, lf1=PgUp,
18093         lf2=PgDn, lf3=Num +, lf4=Num -, lf5=Num 5, nel=^M^J,
18094         rev=\E[7m, ri=\EM, rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m,
18095         smso=\E[7m, smul=\E[4m,
18096 # Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
18097 minix-old|minix-1.5|minix console (v1.5),
18098         xon,
18099         cols#80, it#8, lines#25,
18100         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
18101         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
18102         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
18103         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
18104         dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
18105         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
18106         kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
18107         kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G,
18108         khome=\E[H, nel=^M^J, rev=\E[7m, ri=\EM, rmso=\E[0m,
18109         rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
18110 # The linewrap option can be specified by editing /usr/include/minix/config.h
18111 # before recompiling the minix 1.5 kernel.
18112 minix-old-am|minix console with linewrap,
18113         am, use=minix-old,
18114
18115 pc-minix|minix console on an Intel box,
18116         use=klone+acs, use=minix-3.0,
18117
18118 # According to the Coherent 2.3 manual, the PC console is similar
18119 # to a z19. The differences seem to be (1) 25 lines, (2) no status
18120 # line, (3) standout is broken, (4) ins/del line is broken, (5)
18121 # has blinking and bold.
18122 pc-coherent|pcz19|coherent|IBM PC console running Coherent,
18123         am, mir,
18124         cols#80, it#8, lines#25,
18125         bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
18126         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EN,
18127         ed=\EJ, el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED,
18128         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, ri=\EI, rmir=\EO,
18129         rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
18130
18131 # According to the Venix 1.1 manual, the PC console is similar
18132 # to a DEC vt52.  Differences seem to be (1) arrow keys send
18133 # different strings, (2) enhanced standout, (3) added insert/delete line.
18134 # Note in particular that it doesn't have automatic margins.
18135 # There are other keys (f1-f10, kpp, knp, kcbt, kich1, kdch1) but they
18136 # not described here because this derives from an old termcap entry.
18137 pc-venix|venix|IBM PC console running Venix,
18138         cols#80, it#8, lines#25,
18139         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
18140         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
18141         ed=\EJ, el=\EK, ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\EK,
18142         kcud1=\EP, kcuf1=\EM, kcuu1=\EH, khome=\EG, ri=\EI,
18143
18144 #### Miscellaneous microcomputer consoles
18145 #
18146 # If you know anything more about any of these, please tell me.
18147 #
18148
18149 # The MAI Basic Four computer was obsolete at the end of the 1980s.
18150 # It may be used as a terminal by putting it in "line" mode as seen on
18151 # one of the status lines.
18152 # Initialization is similar to CIT80. <is2> will set ANSI mode for you.
18153 # Hardware tabs set by <if> at 8-spacing.  Auto line wrap causes glitches so
18154 # wrap mode is reset by <cvvis>.  Using <ind>=\E[S caused errors so I
18155 # used \ED instead.
18156 # From: bf347@lafn.org (David Lawyer), 28 Jun 1997
18157 mai|basic4|MAI Basic Four in ansi mode,
18158         am, da, db, mir, msgr,
18159         cols#82, it#8, lines#25,
18160         bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h,
18161         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=^X,
18162         cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P,
18163         dl1=\E[M, ed=^_, el=^^, home=^], ht=^I,
18164         if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED,
18165         is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H,
18166         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
18167         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
18168         kf7=\EOV, kf8=\EOW, nel=^M\ED, rc=\E8, rev=\E[7m, ri=\E[T,
18169         rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m,
18170         smir=\E[4h, smso=\E[7m, smul=\E[4m,
18171 # basis from Peter Harrison, Computer Graphics Lab, San Francisco
18172 #   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
18173 #
18174 # On Sat, 7 Aug 1999, Torsten Jerzembeck <toje@nightingale.ms.sub.org> wrote:
18175 # The Basis 108 was a Apple II clone, manufactured by the "Basis
18176 # Mikrocomputer GmbH" in Munster, Germany (the company still exists today,
18177 # about 1,5 km from where I live, but doesn't build own computers any
18178 # more). A Basis 108 featured a really heavy (cast aluminium?) case, was
18179 # equipped with one or two 5.25" disk drives, had a monochrome and colour
18180 # video output for a TV set or a dedicated monitor and several slots for
18181 # Apple II cards. Basis 108 were quite popular at german schools before
18182 # the advent of the IBM PC. They run, for example, the UCSD Pascal
18183 # development system (which I used even in 1993 to program the steering
18184 # and data recording for our school's experimental solar panel :), Apple DOS
18185 # or CP/M.
18186 # (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
18187 basis|BASIS108 computer with terminal translation table active,
18188         clear=\E*$<300/>, cud1=\n$<5000/>, ed=\EY, el=\ET, kbs=^H,
18189         kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmso=\E), sgr0=\E),
18190         smso=\E(, use=adm3a,
18191 # luna's BMC terminal emulator
18192 luna|luna68k|LUNA68K Bitmap console,
18193         cols#88, lines#46, use=ansi-mini,
18194 megatek|pegasus workstation terminal emulator,
18195         am, os,
18196         cols#83, lines#60,
18197 # The Xerox 820 was a Z80 micro with a snazzy XEROX PARC-derived
18198 # interface (pre-Macintosh by several years) that went nowhere.
18199 xerox820|x820|Xerox 820,
18200         am,
18201         cols#80, lines#24,
18202         bel=^G, clear=1^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
18203         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^Q, el=^X,
18204         home=^^, ind=^J,
18205
18206 #### Videotex and teletext
18207 #
18208
18209 # \E\:1}        switch to te'le'informatique mode (ascii terminal/ISO 6429)
18210 # \E[?3l        80 columns
18211 # \E[?4l        scrolling on
18212 # \E[12h        local echo off
18213 # \Ec           reset: G0 U.S. charset (to get #,@,{,},...), 80 cols, clear screen
18214 # \E)0          G1 DEC set (line graphics)
18215 #
18216 # From: Igor Tamitegama <igor@ppp1493-ft.teaser.fr>, 18 Jan 1997
18217 m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'informatique,
18218         OTbs, eslok, hs, xenl,
18219         cols#80, it#8, lines#24, wsl#72, xmc#0,
18220         acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G,
18221         blink=\E[5m, bold=\E[1m, civis=\E[<1h, clear=\E[H\E[J,
18222         cnorm=\E[<1l, cr=^M, csr=\E[%i%p1%d;%p2%dr,
18223         cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
18224         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
18225         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
18226         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, flash=^G, fsl=^J,
18227         home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J, ip=$<7/>,
18228         is1=\E\:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0,
18229         is3=\E[?3l kbs=\010, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
18230         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
18231         kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu,
18232         kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khome=\E[H,
18233         kich1=\E[4h, kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H,
18234         mc0=\E[i, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
18235         rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
18236         rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sc=\E7, sgr0=\E[m,
18237         smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=^_@A,
18238         u6=\E[%i%d;%dR, u7=\E[6n,
18239
18240 # From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998
18241 #
18242 minitel1|minitel 1,
18243         am, bw, eslok, hs, hz, msgr,
18244         colors#8, cols#40, lines#24, pairs#8,
18245         acsc=+.\,\,./f0g1, bel=^G, blink=\EH, civis=^T, clear=^L,
18246         cnorm=^Q, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
18247         cup=\037%p1%{65}%+%c%p2%{65}%+%c, cuu1=^K, el=^X,
18248         enacs=^Y, fsl=^J, home=^^, ind=^J,
18249         is2=\E;`ZQ\E\:iC\E\:iE\021, nel=^M^J, op=\EG,
18250         rep=%p1%c\022%p2%{63}%+%c, rev=\E], ri=^K, rmso=\E\\,
18251         setf=\E%?%p1%{1}%=%tD%e%p1%{3}%=%tF%e%p1%{4}%=%tA%e%p1%{6}%=%tC%e%p1%{64}%+%c%;,
18252         sgr=%?%p1%t\E]%;%?%p3%t\E]%;%?%p4%t\EH%;,
18253         sgr0=\EI\E\\, smso=\E], tsl=\037@%p1%{65}%+%c,
18254 # is2=Fnct TE, Fnct MR, Fnct CM et pour finir: curseur ON.
18255 minitel1b|minitel 1-bistandard (in 40cols mode),
18256         mir,
18257         cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
18258         cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
18259         dl1=\E[M, ed=\E[J, el1=\E[1K, il=\E[%p1%dL, il1=\E[L,
18260         is1=\E;iYA\E;jYC, kclr=\E[2J, kctab=^I, kcub1=\E[D,
18261         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
18262         kel=^X, khome=\E[H, kich1=\E[4h, kil1=\E[L, rmir=\E[4l,
18263         smir=\E[4h, smkx=\E;iYA\E;jYC, use=minitel1,
18264 # <rmkx> posait des problemes (logout en sortant de vi).
18265 minitel1b-80|minitel 1-bistandard (standard teleinformatique),
18266         am@, bw@, hz@,
18267         colors@, cols#80, it#8, pairs@,
18268         blink=\E[5m, bold=\E[1m, civis=\037@A\024\n,
18269         clear=\E[H\E[2J, cnorm=\037@A\021\n, cuf1=\E[C,
18270         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
18271         ht=^I, ind=\ED, is1@, is2@, kent=\EOM, kf0=\EOp, kf1=\EOq,
18272         kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu, kf6=\EOv, kf7=\EOw,
18273         kf8=\EOx, kf9=\EOy, nel=\EE, op@, rc=\E8, rep@, rev=\E[7m,
18274         ri=\EM, rmkx@, rmso=\E[27m, rmul=\E[24m, sc=\E7, setf@,
18275         sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
18276         sgr0=\E[m, smkx@, smso=\E[7m, smul=\E[4m, use=minitel1b,
18277
18278 ######## OBSOLETE VDT TYPES
18279 #
18280 # These terminals are *long* dead -- these entries are retained for
18281 # historical interest only.
18282
18283 #### Amtek Business Machines
18284 #
18285
18286 # (abm80: early versions of this entry apparently had ":se=\E^_:so=\E^Y",
18287 # but these caps were commented out in 8.3; also, removed overridden
18288 # ":do=^J:" -- esr)
18289 abm80|amtek business machines 80,
18290         OTbs, am, bw,
18291         cols#80, lines#24,
18292         cbt=^T, clear=\E^\, cub1=^H, cud1=\E^K, cuf1=^P,
18293         cup=\E\021%p2%{32}%+%c%p1%{32}%+%c, cuu1=\E^L,
18294         dl1=\E^S, ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z,
18295
18296 #### Bell Labs blit terminals
18297 #
18298 # These were AT&T's official entries.  The 5620 FAQ maintained by
18299 # David Breneman <daveb@dgtl.com> has this to say:
18300 #
18301 #  Actually, in the beginning was the Jerq, and the Jerq was white with a
18302 #  green face, and Locanthi and Pike looked upon the Jerq and said the Jerq
18303 #  was good.  But lo, upon the horizon loomed a mighty management-type person
18304 #  (known now only by the initials VP) who said, the mighty Jerq must stay
18305 #  alone, and could not go forth into the world. So Locanthi and Pike put the
18306 #  Jerq to sleep, cloned its parts, and the Blit was brought forth unto the
18307 #  world. And the Jerq lived the rest of its days in research, but never
18308 #  strayed from those paths.
18309 #
18310 #  In all seriousness, the Blit was originally known as the Jerq, but when
18311 #  it started to be shown outside of the halls of the Bell Labs Research
18312 #  organization, the management powers that be decided that the name could
18313 #  not remain. So it was renamed to be Blit. This was in late 1981.
18314 #
18315 # (The AT&T 5620 was the commercialized Blit.  Its successors were the 630,
18316 # 730, and 730+.)
18317 #
18318
18319 blit|jerq|blit running teletype rom,
18320         am, eo, ul, xon,
18321         cols#87, it#8, lines#72,
18322         bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
18323         cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
18324         dch=\Ee%p1%{32}%+%c, dch1=\Ee!, dl=\EE%p1%{32}%+%c,
18325         dl1=\EE!, el=\EK, ht=^I, ich=\Ef%p1%{32}%+%c, ich1=\Ef!,
18326         il=\EF%p1%{32}%+%c, il1=\EF!, ind=^J, kbs=^H, kcub1=\ED,
18327         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ex, kf2=\Ey, kf3=\Ez,
18328
18329 # (cbblit: here's a BSD termcap that says <cud1=\EG> -- esr)
18330 cbblit|fixterm|blit running columbus code,
18331         cols#88,
18332         ed=\EJ, flash=\E^G, ich1@, mc4=^T, mc5=^R, mc5p=\EP%p1%03d,
18333         rmir=\ER, rmso=\EV!, rmul=\EV", smir=\EQ, smso=\EU!,
18334         smul=\EU", use=blit,
18335
18336 oblit|ojerq|first version of blit rom,
18337         am, da, db, eo, mir, ul, xon,
18338         cols#88, it#8, lines#72,
18339         bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
18340         cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\EO,
18341         dl=\Ee%p1%{32}%+%c, dl1=\EE, ed=\EJ, el=\EK, flash=\E^G,
18342         ht=^I, il=\Ef%p1%{32}%+%c, il1=\EF, ind=^J, kbs=^H, rmir=\ER,
18343         smir=\EQ,
18344
18345 #### Bolt, Beranek & Newman (bbn)
18346 #
18347 # The BitGraph was a product of the now-defunct BBN Computer Corporation.
18348 # The parent company, best known as the architects of the Internet, is
18349 # still around.
18350 #
18351 # Jeff DelPapa <dp@world.std.com> writes:
18352 # The bitgraph was a large white box that contained a monochrome bitmap
18353 # display, and a 68000 to run it.  You could download code and run it on
18354 # the cpu, it had 128kb (I think) of memory.  I used one in the late
18355 # 70's, sure beat a vt100.  It had one strange feature tho -- it used
18356 # the cpu to bitblt pixels to scroll, it took longer than the refresh
18357 # rate, and looked like a rubber sheet stretching, then snapping
18358 # upwards.  It had everything the early mac had, except a floppy drive a
18359 # small screen (it had a 17" crisp beauty) and a real OS. They (Bolt
18360 # Beranek and Neuman) sold at most a few hundred of them to the real
18361 # world.  DOD may have bought more...
18362 #
18363
18364 # Entries for the BitGraph terminals.  The problem
18365 # with scrolling in vi can only be fixed by getting BBN to put
18366 # smarter scroll logic in the terminal or changing vi or padding
18367 # scrolls with about 500 ms delay.
18368 #
18369 # I always thought the problem was related to the terminal
18370 # counting newlines in its input buffer before scrolling and
18371 # then moving the screen that much. Then vi comes along and
18372 # paints lines in on the bottom line of the screen, so you get
18373 # this big white gap.
18374
18375 bitgraph|bg2.0nv|bg3.10nv|bbn bitgraph 2.0 or later (normal video),
18376         flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
18377         use=bg2.0,
18378 bg2.0rv|bg3.10rv|bbn bitgraph 2.0 (reverse video),
18379         flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
18380         use=bg2.0,
18381 bg2.0|bg3.10|bbn bitgraph 2.0 or later (no init),
18382         OTbs, xenl,
18383         cols#85, lines#64,
18384         bel=^G, clear=\E[H\E[J$<150>, cr=^M,
18385         csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
18386         cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, dl1=\E[M$<2*>,
18387         ed=\E[J$<150>, el=\E[K$<2>, ht=^I, il1=\E[L$<2*>,
18388         ind=\n$<280>, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
18389         kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=PF1,
18390         lf2=PF2, lf3=PF3, lf4=PF4, rc=\E8, rmkx=\E>, rmso=\E[m, sc=\E7,
18391         sgr0=\E[m, smkx=\E=, smso=\E[7m,
18392
18393 bg1.25rv|bbn bitgraph 1.25 (reverse video),
18394         flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
18395         use=bg1.25,
18396 bg1.25nv|bbn bitgraph 1.25 (normal video),
18397         flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
18398         use=bg1.25,
18399 # (bg1.25: I added <rmam>/<smam> based on the init string -- esr)
18400 bg1.25|bbn bitgraph 1.25,
18401         cols#85, lines#64,
18402         bel=^G, clear=\E[H\E[J$<150>, cr=^M, cub1=^H, cud1=\E[B,
18403         cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A,
18404         dl1=\E[M$<2*>, ed=\E[J$<150>, el=\E[K$<2>, ht=^I,
18405         il1=\E[L$<2*>, ind=\n$<280>, kcub1=\ED, kcud1=\EB,
18406         kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\ES,
18407         lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, ll=\E[64;1H, rmam=\E[?7l,
18408         rmkx=\E>, rmso=\E[m, sgr0=\E[m, smam=\E[?7h, smkx=\E=,
18409         smso=\E[7m,
18410
18411 #### Bull (bq, dku, vip)
18412 #
18413 # (Adapted for terminfo; AIX extension capabilities translated -- esr)
18414
18415 #============================================#
18416 # BULL QUESTAR 210 `SDP' terminals emulation #
18417 #============================================#
18418 #
18419 # Description written by R.K.Saunders (Bull Transac)
18420 #
18421 # Modifications written by F. Girard (Bull MTS)
18422 #               19-05-87 V02.00.01
18423 #               17-12-87 V02.00.02
18424 #               15-09-89 V02.00.05
18425 #
18426 #       Typical technical selections F1 (modes SDP/ROLL):
18427 # -------------------------------------------------------
18428 # |   01   02   03   04   05   06   07   08   09   10   |
18429 # |  1010 0011 1010 0110 0110 0001 0100 0000 0000 0000  |
18430 # |                                                     |
18431 # |   11   12   13   14   15   16   17   18   19   20   |
18432 # |  0000 0110 100? 0000 0000 0000 0001 0000 0000 0001  |
18433 # |                                                     |
18434 # |   21   22   23   24   25   26   27   28   29   30   |
18435 # |  0011 0000 0001 1000 0000 0000 0000 0000 0000 0000  |
18436 # |                                                     |
18437 # |   31   32   33   34   35   36   37   38   39   40   |
18438 # |  1010 0011 0000 0000 0000 0000 0000 0000 0000 0000  |
18439 # -------------------------------------------------------
18440 #       Typical firmware identification F5 "etat 6":
18441 #  P287.02.04b  (AZERTY)
18442 #  P297.11.04   (24-pin: 2732)  or P798.11.04   (28-pin: 2764)
18443 #  P298.03.03   (monochrome)    or P374.03.02   (colour)
18444 #
18445 #       SM SDP mode (VIP command):      ^[[?=h
18446 #       RIS (erases screen):            ^[c
18447 #       DMI disable keyboard:           ^[`
18448 #       SM double rendition mode:       ^[[?>h
18449 #       RM solicited status mode:       ^[[5l
18450 #       RM character mode:              ^[[>l
18451 #       RM echoplex mode:               ^[[12l
18452 #       RM column tab mode:             ^[[18l
18453 #       RM forbid SS2 keyboard mode:    ^[[?<l
18454 #       SM scroll mode:                 ^[[=h
18455 #       FCF enable XON/XOFF:            ^[P1s^[\
18456 #       MTL select end msg character:   ^[[^Wp
18457 #       EMI enable keyboard:            ^[b
18458 #       RIS retour etat initial:        ^[c
18459 #       enable FC keypad:               ^[[?<h,
18460 #       MPW map status line window:     ^[PY99:98^[\
18461 #       SCP select status line:         ^[[0;98v
18462 #       ED erase entire partition:      ^[[2J
18463 #       SCP select main partition:      ^[[v
18464 #       SM character insertion mode:    ^[[4h
18465 #       RM character replacement mode:  ^[[4l
18466 #       COO cursor on:                  ^[[r
18467 #       COO cursor off:                 ^[[1r
18468 #       SGR dim (turquoise) rev attr:   ^[[2;7m
18469 #       SGR Data normal attr:           ^[[m
18470 #       SO Line-graphic mode ON:        ^N
18471 #       SI Line-graphic mode OFF:       ^O
18472 #       MC start routing to printer:    ^[[5i
18473 #       MC stop routing to printer:     ^M^[[4i
18474 #
18475
18476 # This entry covers the following terminals:
18477 # dku7102, tws2102, and tws models 2105 to 2112
18478 tws-generic|dku7102|Bull Questar tws terminals,
18479         am, eslok, hs, mir, msgr, xenl, xhp@, xon,
18480         cols#80, it#8, lines#24, wsl#80,
18481         acsc=``aaffggj)k\,l&m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~,
18482         bel=^G, blink=\E[0;5m, cbt=\E[Z, civis=\E[1r, clear=\E[2J,
18483         cnorm=\E[r, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
18484         cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
18485         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
18486         dim=\E[0;2m, dl=\E[%p1%dM, dl1=\E[M,
18487         dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[v, ed=\E[J, el=\E[K,
18488         fsl=\E[v, home=\E[H, ht=\E[I, hts=\EH, il=\E[%p1%dL,
18489         il1=\E[L, ind=^J, invis=\E[0;8m,
18490         is1=\E[?=h\Ec\E`\E[?>h\EPY99\:98\E\\,
18491         is2=\E[5;>;12;18;?<l\E[=h\EP1s\E\\\E[\027p,
18492         is3=\Eb\E[?<h, kbs=^H, kcbt=\E[Z, kctab=\E[g, kcub1=\E[D,
18493         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
18494         ked=\E[J, kel=\E[K, kf1=\E[1u\027, kf2=\E[2u\027,
18495         kf3=\E[3u\027, kf4=\E[4u\027, kf5=\E[5u\027,
18496         kf6=\E[6u\027, kf7=\E[7u\027, kf8=\E[8u\027, khome=\E[H,
18497         khts=\EH, kil1=\E[L, krmir=\E[4l, ll=\E[H\E[A, mc0=\E[0i,
18498         mc4=\r\E[4i, mc5=\E[5i, rev=\E[0;7m, rmacs=^O,
18499         rmcup=\E[0;98v\E[2J\E[v, rmir=\E[4l, rmso=\E[m,
18500         rmul=\E[m, rs2=\E[?=h\Ec, s0ds=^O, s1ds=^N,
18501         sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
18502         sgr0=\E[m\017, smacs=^N, smcup=\E[?>h\EPY99\:98\E\\,
18503         smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g,
18504         tsl=\EPY99\:98\E\\\E[0;98v\E[2;7m,
18505 tws2102-sna|dku7102-sna|BULL Questar tws2102 for SNA,
18506         dsl=\E[0;98v\E[2J\E[v, fsl=\E[v, is3=\Eb, tsl=\E[0;98v,
18507         use=tws-generic,
18508 tws2103|xdku|BULL Questar tws2103,
18509         ht=^I, use=tws-generic,
18510 tws2103-sna|dku7103-sna|BULL Questar tws2103 for SNA,
18511         ht=^I, use=tws2102-sna,
18512 dku7102-old|BULL Questar 200 DKU7102 (microcode version < 6),
18513         clear=\E[2J\E[H, cup@, dl@, dl1@,
18514         dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[H\E[v, el=\E[K\E[m,
18515         il@, il1@, tsl=\EPY99\:98\E\\\E[0;98v\E[H\E[2;7m,
18516         use=tws-generic,
18517 dku7202|BULL Questar 200 DKU7202 (colour/character attributes),
18518         blink=\E[0;2;4m, dim=\E[0;5m, ht=^I, is3=\E[?3h\Eb,
18519         smso=\E[0;4;5;7m, smul=\E[0;2m, use=tws-generic,
18520
18521 #=========================================================#
18522 # BULL QUESTAR 303 & 310 `DEC VT 320' terminals emulation #
18523 #=========================================================#
18524 #
18525 # Description written by J. Staerck (BULL SA)
18526 #       Copyright (c) 1989 BULL SA
18527 #---------------------------------------------------------------------------
18528 #  This entry is used for terminals with vt320 emulation mode
18529 #  and following set-up :
18530 #    8 bit ISO Latin Character Set (ISO 8859-1),
18531 #    7 bit Control Characters,
18532 #    80 columns screen.
18533 #  Hereafter are some DEC vt terminals' commands. (valid on vt200 and 300)
18534 #  They are used in string capabilities with vt220-320 emulation mode.
18535 #  In the following DEC definitions, two kinds of terminfo databases are
18536 #    provided :
18537 #    1. the first with Command Sequence Introducer starting with escape
18538 #       sequence in 7 bits characters ex. ESC [ : 2 chars. in 7-bit mode.
18539 #    2. the second with Command Sequence Introducer starting with escape
18540 #       sequence in 8 bits characters ex. ESC [ : 1 char. 'CSI' =x9B.
18541 #       Soft Terminal Reset             esc [ ! p
18542 #       RIS (erases screen):            esc c
18543 #       DECKPNM numeric keypad mode:    esc >
18544 #       DECKPAM applic. keypad mode:    esc =
18545 #       DECSTBM Scrolling region:       esc [ r
18546 #       SCS select G0 = US:             esc ( B
18547 #       SCS select G1 = line-graphic:   esc ) 0
18548 #       Select 7-bit C1 controls:       esc sp F
18549 #       Select 8-bit C1 controls:       esc sp G
18550 #       Select cursor home:             esc [  H
18551 #       Select erase screen:            esc [  J
18552 #       SM KAM lock keyboard:           esc [ 2 h
18553 #       RM KAM unlock keyboard:         esc [ 2 l
18554 #       SM SRM local echo off:          esc [ 1 2 h
18555 #       RM SRM local echo on:           esc [ 1 2 l
18556 #       SM LNM New line :               esc [ 2 0 h
18557 #       RM LNM return = CR only:        esc [ 2 0 l
18558 #       SM DECCKM cursor keys mode:     esc [ ? 1 h
18559 #       RM DECCKM appli. keys mode:     esc [ ? 1 l
18560 #       SM DECANM ANSI mode on:         esc [ ? 2 h
18561 #       RM DECANM ANSI mode off:        esc [ ? 2 l
18562 #       SM DECCOLM 132-column screen:   esc [ ? 3 h
18563 #       RM DECCOLM 80-column screen:    esc [ ? 3 l
18564 #       SM DECSCLM Smooth scroll:       esc [ ? 4 h
18565 #       RM DECSCLM Jump scroll:         esc [ ? 4 l
18566 #       SM DECSCNM screen light backgr. esc [ ? 5 h
18567 #       RM DECSCNM screen dark backgr.  esc [ ? 5 l
18568 #       SM DECOM move within margins:   esc [ ? 6 h
18569 #       RM DECOM move outside margins:  esc [ ? 6 l
18570 #       SM DECAWM auto right margin:    esc [ ? 7 h
18571 #       RM DECAWM auto right margin:    esc [ ? 7 l
18572 #       SM DECARM auto repeat:          esc [ ? 8 h
18573 #       RM DECARM auto repeat:          esc [ ? 8 l
18574 #       DECSASD Select active main:     esc [ 0 $ }
18575 #       DECSASD Select active status:   esc [ 1 $ }
18576 #       DECSSDT Select status none:     esc [ 0 $ ~
18577 #       DECSSDT Select status indic.:   esc [ 1 $ ~
18578 #       DECSSDT Select status host-wr:  esc [ 2 $ ~
18579 #       SM DECTCEM Visible cursor:      esc [ ? 2 5 h
18580 #       RM DECTCEM Invisible cursor:    esc [ ? 2 5 l
18581 #       SM DECNCRM 7 bits NCR set:      esc [ ? 4 2 h
18582 #       RM DECNCRM Multi or ISO latin:  esc [ ? 4 2 l
18583 #       SM DECNKM numeric keypad mode:  esc [ ? 6 6 h
18584 #       RM DECNKM numeric keypad appl.: esc [ ? 6 6 l
18585 #       SM DECKBUM clavier informatique esc [ ? 6 8 h
18586 #       RM DECKBUM clavier bureautique: esc [ ? 6 8 l
18587 #       DECSCL vt300 mode 8-bit ctrl:   esc [ 6 3 " p
18588 # or    DECSCL vt300 mode 8-bit ctrl:   esc [ 6 3 ; 0 " p
18589 # or    DECSCL vt300 mode 8-bit ctrl:   esc [ 6 3 ; 2 " p
18590 #       DECSCL vt300 mode 7-bit ctrl:   esc [ 6 3 ; 1 " p
18591 #       Char. and Line attributes:      esc [ Ps ... Ps m
18592 # with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
18593 # and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
18594 #
18595
18596 # This entry covers BQ303, BQ306, BQ310, Q303, Q306, Q310
18597 bq300|Bull vt320 ISO Latin 1 80 columns terminal,
18598         am, eo, eslok, hs, km, mir, msgr, xenl, xon,
18599         cols#80, it#8, lines#24, vt#3, wsl#80,
18600         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
18601         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
18602         clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
18603         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
18604         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
18605         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
18606         dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
18607         dsl=\E[1$}\E[2$~\n\E[0$}, ech=\E[%p1%dX, ed=\E[J,
18608         el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
18609         flash=\E[?5h$<50>\E[?5l, fsl=\E[0$}, home=\E[H, ht=^I,
18610         hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
18611         is1=\E[63;1"p\E[2h,
18612         is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18613         is3=\E[0$}\E[?25h\E[2l\E[H\E[J, ka1=\EOw, ka3=\EOy,
18614         kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
18615         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~,
18616         kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
18617         kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
18618         kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
18619         kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
18620         khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
18621         krdo=\E[29~, kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
18622         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l,
18623         rmcup=\E[?7h, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
18624         rmul=\E[24m, rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0,
18625         sc=\E7,
18626         sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\E(0%e\E(B%;,
18627         sgr0=\E[0m\E(B, smacs=\E(0, smam=\E[?7h,
18628         smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smso=\E[7m,
18629         smul=\E[4m, tbc=\E[3g, tsl=\E[1$}\E[2$~, use=ansi+pp,
18630 bq300-rv|Bull vt320 reverse 80 columns,
18631         flash=\E[?5l$<50>\E[?5h,
18632         is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18633         use=bq300,
18634 bq300-w|Bull vt320 132 columns,
18635         cols#132, wsl#132,
18636         is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18637         rs2=\E[?3h, use=bq300,
18638 bq300-w-rv|Bull vt320 reverse mode 132 columns,
18639         cols#132, wsl#132,
18640         flash=\E[?5l$<50>\E[?5h,
18641         is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18642         rs2=\E[?3h, use=bq300,
18643
18644 #  This entry is used for terminals with vt320 emulation mode
18645 #  and following set-up :
18646 #    8 bit ISO Latin Character Set (ISO 8859-1),
18647 #    8 bit Control Characters, (CSI coded as x9B for ESC [)
18648 #    80 columns screen.
18649 #       Soft Terminal Reset             csi ! p
18650 #       RIS (erases screen):            esc c
18651 #       DECKPNM numeric keypad mode:    esc >
18652 #       DECKPAM applic. keypad mode:    esc =
18653 #       DECSTBM Scrolling region:       esc [ r
18654 #       SCS select G0 = US:             esc ( B
18655 #       SCS select G1 = line-graphic:   esc ) 0
18656 #       Select 7-bit C1 controls:       esc sp F
18657 #       Select 8-bit C1 controls:       esc sp G
18658 #       Select cursor home:             csi H
18659 #       Select erase screen:            csi J
18660 #       SM KAM lock keyboard:           csi 2 h
18661 #       RM KAM unlock keyboard:         csi 2 l
18662 #       SM SRM local echo off:          csi 1 2 h
18663 #       RM SRM local echo on:           csi 1 2 l
18664 #       SM LNM New line :               csi 2 0 h
18665 #       RM LNM return = CR only:        csi 2 0 l
18666 #       SM DECCKM cursor keys mode:     csi ? 1 h
18667 #       RM DECCKM appli. keys mode:     csi ? 1 l
18668 #       SM DECANM ANSI mode on:         csi ? 2 h
18669 #       RM DECANM ANSI mode off:        csi ? 2 l
18670 #       SM DECCOLM 132-column screen:   csi ? 3 h
18671 #       RM DECCOLM 80-column screen:    csi ? 3 l
18672 #       SM DECSCLM Smooth scroll:       csi ? 4 h
18673 #       RM DECSCLM Jump scroll:         csi ? 4 l
18674 #       SM DECSCNM screen light backgr. csi ? 5 h
18675 #       RM DECSCNM screen dark backgr.  csi ? 5 l
18676 #       SM DECOM move within margins:   csi ? 6 h
18677 #       RM DECOM move outside margins:  csi ? 6 l
18678 #       SM DECAWM auto right margin:    csi ? 7 h
18679 #       RM DECAWM auto right margin:    csi ? 7 l
18680 #       SM DECARM auto repeat:          csi ? 8 h
18681 #       RM DECARM auto repeat:          csi ? 8 l
18682 #       DECSASD Select active main:     csi 0 $ }
18683 #       DECSASD Select active status:   csi 1 $ }
18684 #       DECSSDT Select status none:     csi 0 $ ~
18685 #       DECSSDT Select status indic.:   csi 1 $ ~
18686 #       DECSSDT Select status host-wr:  csi 2 $ ~
18687 #       SM DECTCEM Visible cursor:      csi ? 2 5 h
18688 #       RM DECTCEM Invisible cursor:    csi ? 2 5 l
18689 #       SM DECNCRM 7 bits NCR set:      csi ? 4 2 h
18690 #       RM DECNCRM Multi or ISO latin:  csi ? 4 2 l
18691 #       DECSCL vt300 mode 8-bit ctrl:   csi 6 3 " p
18692 # or    DECSCL vt300 mode 8-bit ctrl:   csi 6 3 ; 0 " p
18693 #       DECSCL vt300 mode 7-bit ctrl:   csi 6 3 ; 1 " p
18694 #       Char. and Line attributes:      csi Ps ... Ps m
18695 # with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
18696 # and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
18697 # (bq300-8: <cub1>,<cuf1>,<cuu1>,<cud1>,<dl1>,<il1> to get under 1024 --esr)
18698 bq300-8|Bull vt320 full 8 bits 80 columns,
18699         am, eo, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
18700         cols#80, it#8, lines#24, vt#3, wsl#80,
18701         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
18702         bel=^G, blink=\2335m, bold=\2331m, civis=\233?25l,
18703         clear=\233H\233J, cnorm=\233?25h, cr=^M,
18704         csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=\2331D,
18705         cud=\233%p1%dB, cud1=\2331B, cuf=\233%p1%dC, cuf1=\2331C,
18706         cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\2331A,
18707         dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM,
18708         dsl=\2331$}\2332$~\n\2330$}, ech=\233%p1%dX, ed=\233J,
18709         el=\233K, el1=\2331K, enacs=\E(B\E)0,
18710         flash=\233?5h$<50>\233?5l, fsl=\2330$}, home=\233H,
18711         ht=^I, hts=\EH, ich=\233%p1%d@, il=\233%p1%dL, ind=\ED,
18712         is1=\E[63;2"p\E[2h,
18713         is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18714         is3=\2330$}\233?25h\2332l\233H\233J, ka1=\217w,
18715         ka3=\217y, kb2=\217u, kbs=^H, kc1=\217q, kc3=\217s,
18716         kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
18717         kdch1=\2333~, kf1=\217P, kf10=\23321~, kf11=\23323~,
18718         kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
18719         kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
18720         kf2=\217Q, kf20=\23334~, kf3=\217R, kf4=\217S, kf6=\23317~,
18721         kf7=\23318~, kf8=\23319~, kf9=\23320~, kfnd=\2331~,
18722         khlp=\23328~, kich1=\2332~, knp=\2336~, kpp=\2335~,
18723         krdo=\23329~, kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3,
18724         lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8,
18725         rev=\2337m, ri=\EM, rmacs=^O, rmam=\233?7l, rmcup=\233?7h,
18726         rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
18727         rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0, sc=\E7,
18728         sgr=\233%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\E(0%e\E(B%;,
18729         sgr0=\2330m\E(B, smacs=^N, smam=\233?7h,
18730         smcup=\233?7l\233?1l\E(B, smir=\2334h, smso=\2337m,
18731         smul=\2334m, tbc=\2333g, tsl=\2331$}\2332$~,
18732 bq300-8rv|Bull vt320 8-bit reverse mode 80 columns,
18733         flash=\233?5l$<50>\233?5h,
18734         is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18735         use=bq300-8,
18736 bq300-8w|Bull vt320 8-bit 132 columns,
18737         cols#132, wsl#132,
18738         is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18739         rs2=\233?3h, use=bq300-8,
18740 bq300-w-8rv|Bull vt320 8-bit reverse mode 132 columns,
18741         cols#132, wsl#132,
18742         flash=\233?5l$<50>\233?5h,
18743         is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18744         rs2=\233?3h, use=bq300-8,
18745
18746 #  This entry is used for terminals with vt320 emulation mode
18747 #  a 102 keys keyboard (PC scancode !) and following set-up :
18748 #    8 bit ISO Latin Character Set (ISO 8859-1),
18749 #    7 bit Control Characters,
18750 #    80 columns screen.
18751 bq300-pc|Questar 303 with PC keyboard ISO Latin 1 80 columns,
18752         kbs=^H, kdch1=\E[3~, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
18753         kf11=\E[29~, kf12=\E[31~, kf13@, kf14@, kf15@, kf16@, kf17@,
18754         kf18@, kf19@, kf2=\E[18~, kf20@, kf3=\E[19~, kf4=\E[20~,
18755         kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
18756         kfnd@, khlp@, khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
18757         krdo@, kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300,
18758 bq300-pc-rv|Questar 303 with PC keyboard reverse mode 80 columns,
18759         flash=\E[?5l$<50>\E[?5h,
18760         is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18761         use=bq300-pc,
18762 bq300-pc-w|Questar 303 with PC keyboard 132 columns terminal,
18763         cols#132, wsl#132,
18764         is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18765         rs2=\E[?3h, use=bq300-pc,
18766 bq300-pc-w-rv|Questar 303 with PC keyboard reverse mode 132 columns,
18767         cols#132, wsl#132,
18768         flash=\E[?5l$<50>\E[?5h,
18769         is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
18770         rs2=\E[?3h, use=bq300-pc,
18771 #    8 bit ISO Latin Character Set (ISO 8859-1),
18772 #    8 bit Control Characters,
18773 #    80 columns screen.
18774 bq300-8-pc|Q306-8-pc|Questar 303 with PC keyboard in full 8 bits 80 columns,
18775         kbs=^H, kdch1=\2333~, kend=\2334~, kf1=\23317~,
18776         kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13@, kf14@,
18777         kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\23318~, kf20@,
18778         kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
18779         kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@, khlp@,
18780         khome=\2331~, kich1=\2332~, knp=\2336~, kpp=\2335~, krdo@,
18781         kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300-8,
18782 bq300-8-pc-rv|Questar 303 with PC keyboard full 8 bits reverse mode 80 columns,
18783         flash=\E[?5l$<50>\E[?5h,
18784         is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18785         use=bq300-8-pc,
18786 bq300-8-pc-w|Questar 303 with PC keyboard full 8 bits 132 columns,
18787         cols#132, wsl#132,
18788         is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18789         rs2=\E[?3h, use=bq300-8-pc,
18790 bq300-8-pc-w-rv|Questar 303 with PC keyboard full 8 bits reverse 132 columns,
18791         cols#132, wsl#132,
18792         flash=\E[?5l$<50>\E[?5h,
18793         is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
18794         rs2=\E[?3h, use=bq300-8-pc,
18795
18796 #======================================================#
18797 # BULL QUESTAR 310 `VIP 7800/8800' terminals emulation #
18798 #======================================================#
18799
18800 # normal mode, 8 bits, 80 columns terminal.
18801 #       RES reset :                     ^[e
18802 #       RIS reset initial state:        ^[c
18803 #       BLE bell enable                 ^[h
18804 #       BLD bell disable                ^[g
18805 #       CAMS char. attr. mode set       ^[[D
18806 #       CAMR char. attr. mode reset     ^[[G
18807 #       CLR clear                       ^[`
18808 #       KBU keyboard unlock (set)       ^[[W
18809 #       KBL keyboard lock (reset)       ^[[X
18810 #       CM  character mode (async.)     ^[k
18811 #       NEP non echoplex mode (by host) ^[l
18812 #       EP  echoplex mode (by host)     ^[m
18813 #       IM  insert mode set             ^[[I
18814 #       IM  insert mode reset           ^[[J
18815 #       RMS roll mode set               ^[r
18816 #       RMR roll mode reset             ^[q
18817 #       SM78 set mode vip7800           ^[[1q
18818 #       SD  scroll up   (72 lines)      ^[[0s
18819 #       SD  scroll down (72 lines)      ^[[1s
18820 #       RBM block mode reset            ^[[E
18821 #       SLS status line set             ^[w
18822 #       SLR status line reset           ^[v
18823 #       SLL status line lock            ^[O
18824 #       LGS Line-graphic mode set       ^[G
18825 #       LGR Line-graphic mode reset     ^[F
18826 #       TBC tab clear (at cursor pos.)  ^[[g
18827 #       TBI tab initialize              ^[[N
18828 #       TBS tab set (at cursor pos.)    ^[p
18829 #       PDS  print data space           ^[[0p
18830 #       PHD  print host data            ^[[3p
18831 #       PDT  print data terminator      ^[[<p
18832 #       PRES print adapter reset        ^[[2p
18833 #       SSPR multi-part. reset          ^[[<>u
18834 #       SSP0 partition 0 set            ^[[00u
18835 #       SSP1 partition n format 1       ^[[PnPnSTRINGu
18836 #       SSP2 partition n format 2       ^[[PnPnSTRINGu
18837 #       SSP3 partition n format 3       ^[[PnPnu
18838 #       ATR attribute (visual)
18839 #           blink :                     ^[sB
18840 #           dim :                       ^[sL
18841 #           hide (blank) :              ^[sH
18842 #           restore :                   ^[sR
18843 #           inverse video :             ^[sI
18844 #           prot. :                     ^[sP
18845 #           underline :                 ^[s_
18846 #           reset :                     ^{
18847 #
18848 # This covers the vip7800 and BQ3155-vip7800
18849 vip|Bull Questar 3155-7800,
18850         am, eslok, hs, km, mc5i, msgr, xenl, xon,
18851         cols#80, it#8, lines#24, vt#3, wsl#80,
18852         acsc=0pjdkblamcnkqitgufvhwexj, bel=^G, blink=\EsB,
18853         cbt=\E[Z, clear=\E`, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
18854         cup=\E[%i%p1%03d%p2%03df, cuu1=\EA, dch1=\E[P, dim=\EsL,
18855         dl1=\E[M, dsl=\Ev, ed=\EJ, el=\EK,
18856         flash=\007$<80>\007$<80>\007, fsl=\EO, home=\EH, ht=^I,
18857         hts=\Ep, ich1=\E[I, ind=^J, invis=\EsH,
18858         is2=\E[00u\E[<>001001024080024080u\E[01u,
18859         is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kbs=^H,
18860         kcbt=\E[Z, kclr=\E`, kctab=\E[g, kcub1=\ED, kcud1=\EB,
18861         kcuf1=\EC, kcuu1=\EA, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
18862         kel=\EK, kf1=\E0, kf10=\ET, kf11=\E\\, kf12=\E\^, kf13@, kf14@,
18863         kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E2, kf20@, kf21=\E1,
18864         kf22=\E5, kf23=\E7, kf24=\E9, kf25=\E;, kf26=\E=, kf27=\E?,
18865         kf28=\EQ, kf29=\ES, kf3=\E6, kf30=\EV, kf31=\E], kf32=\E_,
18866         kf4=\E8, kf5=\E\:, kf6=\E<, kf7=\E>, kf8=\EP, kf9=\ER,
18867         khome=\EH, khts=\Ep, kich1=\E[I, kil1=\E[L, kind=\E[0s,
18868         kll=\EH\EA, kri=\E[1s, krmir=\E[J, ktbc=\E[N, lf1=pf1,
18869         lf2=pf2, lf3=pf3, lf4=pf4, ll=\EH\EA, mc0=\E[0p, mc4=\E[<p,
18870         mc5=\E[3p, nel=^M, prot=\EsP, rev=\EsI,
18871         ri=\EA\EJ\EH\E[L$<10>, rmacs=\EF, rmir=\E[J, rmso=\EsR,
18872         rmul=\EsR, rs1=\Ec, rs2=\E[G, s0ds=\EF, s1ds=\EG,
18873         sgr0=\EsR\EsU\EF, smacs=\EG, smir=\E[I, smso=\EsI,
18874         smul=\Es_, tbc=\E[N, tsl=\Ew,
18875 # normal screen, 8 bits, 132 columns terminal.
18876 vip-w|vip7800-w|Q310-vip-w|Q310-vip-w-am|Questar 3155-vip7800 wide,
18877         cols#132, wsl#132,
18878         is2=\E[00u\E[<>001001024132024132u\E[01u, use=vip,
18879 vip-H|vip7800-H|Q310-vip-H|Q310-vip-H-am|Questar 3155-vip7800 72 lines,
18880         lines#72,
18881         is2=\E[00u\E[<>001001024080072080u\E[01u, use=vip,
18882 vip-Hw|vip7800-Hw|Q310-vip-Hw|Questar 3155-vip7800 wide 72 lines,
18883         cols#132, lines#72, wsl#132,
18884         is2=\E[00u\E[<>001001024132072132u\E[01u, use=vip,
18885
18886 #### Chromatics
18887 #
18888
18889 # I have put the long strings in <smcup>/<rmcup>. Ti sets up a window
18890 # that is smaller than the screen, and puts up a warning message
18891 # outside the window. Te erases the warning message, puts the
18892 # window back to be the whole screen, and puts the cursor at just
18893 # below the small window. I defined <cnorm> and <civis> to really turn
18894 # the cursor on and off, but I have taken this out since I don't
18895 # like the cursor being turned off when vi exits.
18896 cg7900|chromatics|chromatics 7900,
18897         am,
18898         cols#80, lines#40,
18899         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^],
18900         cup=\001M%p2%d\,%p1%d\,, cuu1=^K, dch1=^A<1, dl1=^A<2,
18901         ed=^Al, el=^A`, home=^\, ich1=^A>1, il1=^A>2, ind=^J, ll=^A|,
18902         rmcup=\001W0\,40\,85\,48\,\014\001W0\,0\,85\,48\,\001M0\,40\,,
18903         rmso=\001C1\,\001c2\,,
18904         smcup=\001P0\001O1\001R1\001C4\,\001c0\,\014\001M0\,42\,WARNING DOUBLE ENTER ESCAPE and \025\001C1\,\001c2\,\001W0\,0\,79\,39\,,
18905         smso=\001C4\,\001c7\,, uc=\001\001_\001\0,
18906
18907 #### Computer Automation
18908 #
18909
18910 ca22851|computer automation 22851,
18911         am,
18912         cols#80, lines#24,
18913         bel=^G, clear=\014$<8>, cr=^M, cub1=^U, cud1=^J, cuf1=^I,
18914         cup=\002%i%p1%c%p2%c, cuu1=^V, ed=^\, el=^], home=^^, ind=^J,
18915         kcub1=^U, kcud1=^W, kcuu1=^V, khome=^^,
18916
18917 #### Cybernex
18918 #
18919
18920 # This entry has correct padding and the undocumented "ri" capability
18921 cyb83|xl83|cybernex xl-83,
18922         OTbs, am,
18923         cols#80, lines#24,
18924         bel=^G, clear=\014$<62>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
18925         cup=\027%p1%{32}%+%c%p2%{32}%+%c, cuu1=^N,
18926         ed=\020$<62>, el=\017$<3>, home=^K, ind=^J, kcub1=^H,
18927         kcud1=^J, kcuf1=^I, kcuu1=^N, ri=^N,
18928 # (mdl110: removed obsolete ":ma=^Z^P:" and overridden ":cd=145^NA^W:" -- esr)
18929 cyb110|mdl110|cybernex mdl-110,
18930         OTbs, am,
18931         cols#80, lines#24,
18932         bel=^G, clear=\030$<70>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
18933         cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
18934         dch1=\016A\036$<3.5>, dl1=\016A\016\036$<40>,
18935         ed=\016@\026$<6>, el=\016@\026$<145>, home=^Y,
18936         ht=\011$<43>, ich1=\016A\035$<3.5>,
18937         il1=\016A\016\035$<65>, ind=^J, rmso=^NG, smso=^NF,
18938
18939 #### Datapoint
18940 #
18941 # Datapoint is gone.  They used to be headquartered in Texas.
18942 # They created ARCnet, an Ethernet competitor that flourished for a while
18943 # in the early 1980s before 3COM got wise and cut its prices.  The service
18944 # side of Datapoint still lives (1995) in the form of Intelogic Trace.
18945 #
18946
18947 dp3360|datapoint|datapoint 3360,
18948         OTbs, am,
18949         cols#82, lines#25,
18950         bel=^G, clear=^]^_, cr=^M, cub1=^H, cud1=^J, cuf1=^X, cuu1=^Z,
18951         ed=^_, el=^^, home=^], ind=^J,
18952
18953 # From: Jan Willem Stumpel <jw.stumpel@inter.nl.net>, 11 May 1997
18954 # The Datapoint 8242 Workstation was sold at least between 1985
18955 # and 1989. To make the terminal work with this entry, press
18956 # CONTROL-INT-INT to take the terminal off-line, and type (opt).
18957 # Set the options AUTO ROLL, ROLL DN, and ESC KBD on, and AUTO
18958 # CR/LF off. Use control-shift-[] as escape key, control-I as tab,
18959 # shift-F1 to shift-F5 as F6 to F10 (unshifted F1 to F5 are in
18960 # fact unusable because the strings sent by the terminal conflict
18961 # with other keys).
18962 # The terminal is capable of displaying "box draw" characters.
18963 # For each graphic character you must send 2 ESC's (\E\E) followed
18964 # by a control character as follows:
18965 #         character        meaning
18966 #         =========        =======
18967 #         ctrl-E           top tee
18968 #         ctrl-F           right tee
18969 #         ctrl-G           bottom tee
18970 #         ctrl-H           left tee
18971 #         ctrl-I           cross
18972 #         ctrl-J           top left corner
18973 #         ctrl-K           top right corner
18974 #         ctrl-L           bottom left corner
18975 #         ctrl-M           bottom right corner
18976 #         ctrl-N           horizontal line
18977 #         ctrl-O           vertical line
18978 # Unfortunately this cannot be fitted into the termcap/terminfo
18979 # description scheme.
18980 dp8242|datapoint 8242,
18981         msgr,
18982         cols#80, lines#25,
18983         bel=^G, civis=^Y, clear=\025\E\004\027\030, cnorm=^X,
18984         cr=^M, cub1=^H, cud1=^J,
18985         cup=\011%p2%'\0'%+%c%p1%'\0'%+%c, dl1=\E^Z, ed=^W, el=^V,
18986         home=^U, ht=^I, il1=\E^T, ind=^C,
18987         is1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
18988         kbs=^H, kcub1=^D, kcud1=^B, kcuf1=^F, kcuu1=^E, kf1=^G\Ee,
18989         kf10=\EK\Ea, kf2=^I\Ed, kf3=^J\Ec, kf4=^J\Eb, kf5=^S\Ea,
18990         kf6=\EO\Ee, kf7=\EN\Ed, kf8=\EM\Ec, kf9=\EL\Eb, nel=^M^J,
18991         rep=\E\023%p1%c%p2%c, ri=^K, rmso=\E^D, rmul=\E^D,
18992         rs1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
18993         smso=\E^E, smul=\E^F,
18994         wind=\E\014\E\016%p1%'\0'%+%c%p2%'\0'%+%c%p3%'\0'%+%c%p4%'\0'%+%c\025,
18995
18996 #### DEC terminals (Obsolete types: DECwriter and vt40/42/50)
18997 #
18998 # These entries are DEC's official terminfos for its older terminals.
18999 # Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
19000 # Engineering for more information.  Updated terminfos and termcaps
19001 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
19002 #
19003
19004 gt40|dec gt40,
19005         OTbs, os,
19006         cols#72, lines#30,
19007         bel=^G, cr=^M, cub1=^H, cud1=^J,
19008 gt42|dec gt42,
19009         OTbs, os,
19010         cols#72, lines#40,
19011         bel=^G, cr=^M, cub1=^H, cud1=^J,
19012 vt50|dec vt50,
19013         OTbs,
19014         cols#80, lines#12,
19015         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
19016         cuu1=\EA, ed=\EJ, el=\EK, ht=^I, ind=^J,
19017 vt50h|dec vt50h,
19018         OTbs,
19019         cols#80, lines#12,
19020         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
19021         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
19022         el=\EK, ht=^I, ind=^J, ri=\EI,
19023 # (vt61: there's a BSD termcap that claims <dl1=\EPd>, <il1=\EPf.> <kbs=^H>)
19024 vt61|vt-61|vt61.5|dec vt61,
19025         cols#80, lines#24,
19026         bel=^G, clear=\EH\EJ$<120>, cr=\r$<20>, cub1=^H, cud1=^J,
19027         cuf1=\EC$<20>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>,
19028         cuu1=\EA$<20>, ed=\EJ$<120>, el=\EK$<70>, ht=^I,
19029         ind=\n$<20>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
19030         ri=\E$<20>I,
19031
19032 # The gigi does standout with red!
19033 # (gigi: I added <rmam>/<smam> based on the init string, corrected cub1 -- esr)
19034 gigi|vk100|dec gigi graphics terminal,
19035         OTbs, am, xenl,
19036         cols#84, lines#24,
19037         bel=^G, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD, cub1=^H,
19038         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
19039         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
19040         el=\E[K, ht=^I, ind=^J,
19041         is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h,
19042         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
19043         kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
19044         rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
19045         sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7;31m,
19046         smul=\E[4m,
19047
19048 # DEC PRO-350 console (VT220-style).  The 350 was DEC's attempt to produce
19049 # a PC differentiated from the IBM clones.  It was a total, ludicrous,
19050 # grossly-overpriced failure (among other things, DEC's OS didn't include
19051 # a format program, so you had to buy pre-formatted floppies from DEC at
19052 # a hefty premium!).
19053 pro350|decpro|dec pro console,
19054         OTbs,
19055         cols#80, it#8, lines#24,
19056         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
19057         clear=\EH\EJ, cub1=^H, cud1=\EB, cuf1=\EC,
19058         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
19059         el=\EK, home=\EH, ht=^I, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
19060         kcuu1=\EA, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH, kf4=\EI,
19061         kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI, rmacs=\EG,
19062         rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H, smul=\E^D,
19063
19064 dw1|decwriter I,
19065         OTbs, hc, os,
19066         cols#72,
19067         bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J,
19068 dw2|decwriter|dw|decwriter II,
19069         OTbs, hc, os,
19070         cols#132,
19071         bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
19072 # \E(B          Use U.S. character set (otherwise # => british pound !)
19073 # \E[20l        Disable "linefeed newline" mode (else puts \r after \n,\f,\v)
19074 # \E[w          10 char/in pitch
19075 # \E[1;132      full width horizontal margins
19076 # \E[2g         clear all tab stops
19077 # \E[z          6 lines/in
19078 # \E[66t        66 lines/page (for \f)
19079 # \E[1;66r      full vertical page can be printed
19080 # \E[4g         clear vertical tab stops
19081 # \E>           disable alternate keypad mode (so it transmits numbers!)
19082 # \E[%i%p1%du   set tab stop at column %d (origin == 1)
19083 #               (Full syntax is \E[n;n;n;n;n;...;nu where each 'n' is
19084 #               a tab stop)
19085 #
19086 #       The dw3 does standout with wide characters.
19087 #
19088 dw3|la120|decwriter III,
19089         OTbs, hc, os,
19090         cols#132,
19091         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J,
19092         is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
19093         is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u\r,
19094         kbs=^H, rmso=\E[w, sgr0=\E[w, smso=\E[6w,
19095 dw4|decwriter IV,
19096         OTbs, am, hc, os,
19097         cols#132,
19098         bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J, is2=\Ec, kbs=^H,
19099         kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
19100
19101 # These aren't official
19102 ln03|dec ln03 laser printer,
19103         hc,
19104         cols#80, lines#66,
19105         bel=^G, cr=^M, cud1=^J, hd=\EK, ht=^I, hu=\EL, ind=^J, nel=^M^J,
19106         rmso=\E[22m, rmul=\E[24m, sgr0=\E[m, smso=\E[1m,
19107         smul=\E[4m,
19108 ln03-w|dec ln03 laser printer 132 cols,
19109         cols#132,
19110         bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H,
19111         kcud1=^J, nel=^M^J, use=ln03,
19112
19113 #### Delta Data (dd)
19114 #
19115
19116 # Untested. The cup sequence is hairy enough that it probably needs work.
19117 # The idea is ctrl(O), dd(row), dd(col), where dd(x) is x - 2*(x%16) + '9'.
19118 # There are BSD-derived termcap entries floating around for this puppy
19119 # that are *certainly* wrong.
19120 delta|dd5000|delta data 5000,
19121         OTbs, am,
19122         cols#80, lines#27,
19123         bel=^G, clear=^NR, cub1=^H, cud1=^J, cuf1=^Y,
19124         cup=\017%p1%p1%{16}%m%{2}%*%-%{57}%+%c%p2%p2%{16}%m%{2}%*%-%{57}%+%c,
19125         cuu1=^Z, dch1=^NV, el=^NU, home=^NQ, ind=^J,
19126
19127 #### Digital Data Research (ddr)
19128 #
19129
19130 # (ddr: I added <rmam>/<smam> based on the init string -- esr)
19131 ddr|rebus3180|ddr3180|Rebus/DDR 3180 vt100 emulator,
19132         OTbs, am, xenl,
19133         cols#80, it#8, lines#24, vt#3,
19134         blink=\E[5m$<2/>, bold=\E[1m$<2/>,
19135         clear=\E[H\E[2J$<50/>, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
19136         cud1=^J, cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
19137         cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
19138         ht=^I, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H,
19139         kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
19140         kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
19141         rf=/usr/share/tabset/vt100, ri=\EM$<5/>, rmam=\E[7l,
19142         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m$<2/>,
19143         rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
19144         sgr0=\E[m$<2/>, smam=\E[7l, smkx=\E[?1h\E=, smso=\E[7m,
19145         smul=\E[4m$<2/>,
19146
19147 #### Evans & Sutherland
19148 #
19149
19150 # Jon Leech <leech@cs.unc.edu> tells us:
19151 # The ps300 was the Evans & Sutherland Picture System 300, a high
19152 # performance 3D vector graphics system with a bunch of specialized hardware.
19153 # Approximate date of release was 1982 (early 80s, anyway), and it had several
19154 # evolutions including (limited) color versions such as the PS330C. PS300s
19155 # were effectively obsolete by the late 80s, replaced by raster graphics
19156 # systems, although specialized applications like molecular modelling
19157 # hung onto them for a while longer.  AFAIK all E&S vector graphics systems
19158 # are out of production, though of course E&S is very much alive (in 1996).
19159 # (ps300: changed ":pt@:" to "it@" -- esr)
19160 #
19161 ps300|Picture System 300,
19162         xt,
19163         it@,
19164         rmso@, rmul@, smso@, smul@, use=vt100,
19165
19166 #### General Electric (ge)
19167 #
19168
19169 terminet1200|terminet300|tn1200|tn300|terminet|GE terminet 1200,
19170         OTbs, hc, os,
19171         cols#120,
19172         bel=^G, cr=^M, cud1=^J, ind=^J,
19173
19174 #### Heathkit/Zenith
19175 #
19176
19177 # Here is a description of the H19 DIP switches:
19178 #
19179 # S401
19180 # 0-3 = baud rate as follows:
19181 #
19182 #         3       2       1       0
19183 #       ---     ---     ---     ---
19184 #         0       0       1       1       300 baud
19185 #         0       1       0       1       1200 baud
19186 #         1       0       0       0       2400 baud
19187 #         1       0       1       0       4800 baud
19188 #         1       1       0       0       9600 baud
19189 #         1       1       0       1       19.2K baud
19190 #
19191 # 4 = parity (0 = no parity)
19192 # 5 = even parity (0 = odd parity)
19193 # 6 = stick parity (0 = normal parity)
19194 # 7 = full duplex (0 = half duplex)
19195 #
19196 # S402
19197 # 0 = block cursor (0 = underscore cursor)
19198 # 1 = no key click (0 = keyclick)
19199 # 2 = wrap at end of line (0 = no wrap)
19200 # 3 = auto LF on CR (0 = no LF on CR)
19201 # 4 = auto CR on LF (0 = no CR on LF)
19202 # 5 = ANSI mode (0 = VT52 mode)
19203 # 6 = keypad shifted (0 = keypad unshifted)
19204 # 7 = 50Hz refresh (1 = 60Hz refresh)
19205 #
19206 # Factory Default settings are as follows:
19207 #          7 6 5 4 3 2 1 0
19208 # S401     1 0 0 0 1 1 0 0
19209 # S402     0 0 0 0 0 0 0 0
19210 # (h19: I added <rmam>/<smam> based on the init string;
19211 # also added empty <acsc> to suppress a tic warning -- esr)
19212 h19-a|h19a|heath-ansi|heathkit-a|heathkit h19 ansi mode,
19213         OTbs, am, mir, msgr,
19214         cols#80, it#8, lines#24,
19215         acsc=, bel=^G, clear=\E[2J, cnorm=\E[>4l, cr=^M, cub1=^H,
19216         cud1=\E[1B, cuf1=\E[1C, cup=\E[%i%p1%d;%p2%dH,
19217         cuu1=\E[1A, cvvis=\E[>4h, dch1=\E[1P, dl1=\E[1M$<1*>,
19218         ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[1L$<1*>, ind=^J,
19219         is2=\E<\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m\E[?7h,
19220         kbs=^H, kcub1=\E[1D, kcud1=\E[1B, kcuf1=\E[1C, kcuu1=\E[1A,
19221         kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
19222         kf7=\EOQ, kf8=\EOR, khome=\E[H, lf6=blue, lf7=red, lf8=white,
19223         ri=\EM, rmacs=\E[11m, rmam=\E[?7l, rmir=\E[4l, rmso=\E[m,
19224         smacs=\E[10m, smam=\E[?7h, smir=\E[4h, smso=\E[7m,
19225 h19-bs|heathkit w/keypad shifted,
19226         rmkx=\Eu, smkx=\Et, use=h19-b,
19227 h19-us|h19us|h19-smul|heathkit w/keypad shifted/underscore cursor,
19228         rmkx=\Eu, smkx=\Et, use=h19-u,
19229 # (h19: merged in <ip> from BSDI hp19-e entry>;
19230 # also added empty <acsc> to suppress a tic warning --esr)
19231 # From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998
19232 # Tim tells us that:
19233 # I have an old Zenith-19 terminal at home that still gets a lot of use.
19234 # This terminal suffers from the same famous insert-mode padding lossage
19235 # that has been acknowledged for the Z29 terminal.  Emacs is nearly
19236 # unusable on this box, since even a half-scroll up or down the window
19237 # causes flaming terminal death.
19238 #
19239 # On the Z19, the only way I have found around this problem is to remove
19240 # the :al: and :dl: entries entirely.  No amount of extra padding will
19241 # help (I have tried up to 20000).  Removing <il1=\EL$> and <dl1=\EM$>
19242 # makes Emacs a little slower, but it remains in the land of the living.
19243 # Big win.
19244 h19|heath|h19-b|heathkit|heath-19|z19|zenith|heathkit h19,
19245         OTbs, am, eslok, hs, mir, msgr,
19246         cols#80, it#8, lines#24,
19247         acsc=+h.kaiggjdkclfmenbozqas{tvutvuwsx`~\^, bel=^G,
19248         clear=\EE, cnorm=\Ey4, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
19249         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ex4,
19250         dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I, ind=^J,
19251         ip=<1.5/>, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
19252         kcuu1=\EA, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW,
19253         kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue, lf7=red,
19254         lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq, smacs=\EF,
19255         smir=\E@, smso=\Ep, tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo,
19256 h19-u|heathkit with underscore cursor,
19257         cnorm@, cvvis@, use=h19-b,
19258 h19-g|h19g|heathkit w/block cursor,
19259         cnorm=\Ex4, cvvis@, use=h19-b,
19260 alto-h19|altoh19|altoheath|alto-heath|alto emulating heathkit h19,
19261         lines#60,
19262         dl1=\EM, il1=\EL, use=h19,
19263
19264 # The major problem with the Z29 is that it requires more padding than the Z19.
19265 #
19266 # The problem with declaring an H19 to be synonymous with a Z29 is that
19267 # it needs more padding. It especially loses if a program attempts
19268 # to put the Z29 into insert mode and insert text at 9600 baud. It
19269 # even loses worse if the program attempts to insert tabs at 9600
19270 # baud. Adding padding to text that is inserted loses because in
19271 # order to make the Z29 not die, one must add so much padding that
19272 # whenever the program tries to use insert mode, the effective
19273 # rate is about 110 baud.
19274 #
19275 # What program would want to put the terminal into insert mode
19276 # and shove stuff at it at 9600 baud you ask?
19277 #
19278 # Emacs. Emacs seems to want to do the mathematically optimal
19279 # thing in doing a redisplay rather than the practical thing.
19280 # When it is about to output a line on top of a line that is
19281 # already on the screen, instead of just killing to the end of
19282 # the line and outputting the new line, it compares the old line
19283 # and the new line and if there are any similarities, it
19284 # constructs the new line by deleting the text on the old line
19285 # on the terminal that is already there and then inserting new
19286 # text into the line to transform it into the new line that is
19287 # to be displayed. The Z29 does not react kindly to this.
19288 #
19289 # But don't cry for too long.... There is a solution. You can make
19290 # a termcap entry for the Z29 that says the Z29 has no insert mode.
19291 # Then Emacs cannot use it. "Oh, no, but now inserting into a
19292 # line will be really slow", you say. Well there is a sort of a
19293 # solution to that too. There is an insert character option on
19294 # the Z29 that will insert one character. Unfortunately, it
19295 # involves putting the terminal into ansi mode, inserting the
19296 # character, and changing it back to H19 mode. All this takes 12
19297 # characters. Pretty expensive to insert one character, but it
19298 # works. Either Emacs doesn't try to use its inserting hack when
19299 # it's only given an insert character ability or the Z29 doesn't
19300 # require padding with this (the former is probably more likely,
19301 # but I haven't checked it out).
19302 # (z29: added empty <acsc> to suppress a tic warning, merged in
19303 # status line capabilities from BRL entry --esr)
19304 z29|zenith29|z29b|zenith z29b,
19305         OTbs, OTpt, am, eslok, hs, mir, msgr,
19306         OTkn#10, cols#80, lines#24,
19307         OTbc=\ED, acsc=, bel=^G, cbt=\E-, clear=\EE$<14>, cnorm=\Ey4,
19308         cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
19309         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E$<1>A,
19310         cvvis=\Ex4, dch1=\EN$<0.1*>, dl1=\EM$<1/>, dsl=\Ey1,
19311         ed=\EJ$<14>, el=\EK$<1>, fsl=\Ek\Ey5, home=\EH, ht=^I,
19312         ich1=\E<\E[1@\E[?2h$<1>, il1=\EL$<1/>, ind=\n$<2>,
19313         is2=\E<\E[?2h\Ev, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
19314         kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
19315         kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
19316         lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO, rmso=\Eq,
19317         rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep, smul=\Es8,
19318         tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
19319 # z29 in ansi mode. Assumes that the cursor is in the correct state, and that
19320 # the world is stable. <rs1> causes the terminal to be reset to the state
19321 # indicated by the name. kc -> key click, nkc -> no key click, uc -> underscore
19322 # cursor, bc -> block cursor.
19323 # From: Mike Meyers
19324 # (z29a: replaced nonexistent <if=/usr/share/tabset/zenith29> befause <hts>
19325 # looks vt100-compatible -- esr)
19326 z29a|z29a-kc-bc|h29a-kc-bc|heath/zenith 29 in ansi mode,
19327         OTbs, OTpt, am, eslok, hs, mir, msgr,
19328         OTkn#10, cols#80, it#8, lines#24,
19329         OTbc=\ED, bel=^G, blink=\E[5m, bold=\E[2m, clear=\E[2J,
19330         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
19331         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
19332         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
19333         dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
19334         dsl=\E[>1l, ed=\E[J, el=\E[K, fsl=\E[u\E[>5l, home=\E[H,
19335         ht=^I, hts=\EH, if=/usr/share/tabset/vt100, il=\E[%p1%dL,
19336         ind=\ED, kbs=^H, kclr=\E[J, kcub1=\EOD, kcud1=\EOB,
19337         kcuf1=\EOC, kcuu1=\EOA, ked=\E[J, kf0=\E[~, kf1=\EOS,
19338         kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
19339         kf8=\EOR, kf9=\EOX, khome=\E[H, lf0=help, mc0=\E#7,
19340         nel=^M\ED, rc=\E[r, rev=\E[7m, ri=\EM, rmcup=\E[?7h,
19341         rmso=\E[m, rmul=\E[m,
19342         rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>4h\E[>1;2;3;5;6;7;8;9l\E[m\E[11m,
19343         sc=\E[s, sgr0=\E[m, smcup=\E[?7l, smso=\E[7;2m, smul=\E[4m,
19344         tbc=\E[3g, tsl=\E[s\E[>5;1h\E[25;%i%dH\E[1K,
19345 z29a-kc-uc|h29a-kc-uc|z29 ansi mode with keyckick and underscore cursor,
19346         rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m,
19347         use=z29a,
19348 z29a-nkc-bc|h29a-nkc-bc|z29 ansi mode with block cursor and no keyclick,
19349         rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2;4h\E[>1;3;5;6;7;8;9l\E[m\E[11m,
19350         use=z29a,
19351 z29a-nkc-uc|h29a-nkc-uc|z29 ansi mode with underscore cursor and no keyclick,
19352         rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2h\E[>1;3;4;5;6;7;8;9l\E[m\E[11m,
19353         use=z29a,
19354 # From: Jeff Bartig <jeffb@dont.doit.wisc.edu> 31 Mar 1995
19355 z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
19356         am, eslok, hs, mc5i, mir, msgr, xon,
19357         cols#80, lines#24,
19358         acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
19359         blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h,
19360         clear=\E[2J\E[H, cnorm=\E[>5l, cr=^M,
19361         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
19362         cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
19363         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
19364         dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
19365         dl1=\E[1M, dsl=\E[>1l, ed=\E[0J, el=\E[0K, el1=\E[1K,
19366         fsl=\E[u, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[1L,
19367         ind=^J, is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J, ka1=\EOw,
19368         ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D,
19369         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ked=\E[J, kf1=\EOS,
19370         kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
19371         kf8=\EOR, kf9=\EOX, khlp=\E[~, khome=\E[H, ll=\E[24;1H,
19372         mc0=\E[?19h\E[i, mc4=\E[4i, mc5=\E[5i, rc=\E[u, rev=\E[7m,
19373         rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m,
19374         rmul=\E[0m, rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0,
19375         smir=\E[4h, smkx=\E[>7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
19376         tsl=\E[s\E[>1h\E[25;%i%p1%dH,
19377
19378 # From: Brad Brahms <Brahms@USC-ECLC>
19379 z100|h100|z110|z-100|h-100|heath/zenith z-100 pc with color monitor,
19380         cnorm=\Ey4\Em70, cvvis=\Ex4\Em71, use=z100bw,
19381 # (z100bw: removed obsolete ":kn#10:", added empty <acsc> -- esr)
19382 z100bw|h100bw|z110bw|z-100bw|h-100bw|heath/zenith z-100 pc,
19383         OTbs, OTpt, mir, msgr,
19384         OTkn#10, cols#80, it#8, lines#24,
19385         acsc=+h.kaiggjdkclfmenbozqas{tvutvuwsx`~\^,
19386         clear=\EE$<5*/>, cnorm=\Ey4, cub1=^H, cud1=\EB, cuf1=\EC,
19387         cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<1*/>, cuu1=\EA,
19388         cvvis=\Ex4, dch1=\EN$<1*/>, dl1=\EM$<5*/>, ed=\EJ, el=\EK,
19389         home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H, kcub1=\ED, kcud1=\EB,
19390         kcuf1=\EC, kcuu1=\EA, kf0=\EJ, kf1=\ES, kf2=\ET, kf3=\EU,
19391         kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EOI,
19392         khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq, smacs=\EF,
19393         smir=\E@, smso=\Ep,
19394 p19|h19-b with il1/dl1,
19395         dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
19396 # From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
19397 # (ztx: removed duplicate :sr: -- esr)
19398 ztx|ztx11|zt-1|htx11|ztx-1-a|ztx-10 or 11,
19399         OTbs, am, eslok, hs,
19400         cols#80, it#8, lines#24,
19401         clear=\EE, cub1=^H, cud1=^J, cuf1=\EC,
19402         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
19403         dsl=\Ey1, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I,
19404         il1=\EL, is2=\Ej\EH\Eq\Ek\Ev\Ey1\Ey5\EG\Ey8\Ey9\Ey>,
19405         kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\ES,
19406         kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP, kf6=\EQ, kf7=\ER,
19407         ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5, smul=\Es2,
19408         tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
19409
19410 #### IMS International (ims)
19411 #
19412 # There was a company called IMS International located in Carson City,
19413 # Nevada, that flourished from the mid-70s to mid-80s.  They made S-100
19414 # bus/Z80 hardware and a line of terminals called Ultimas.
19415 #
19416
19417 # From: Erik Fair <fair@ucbarpa.berkeley.edu>  Sun Oct 27 07:21:05 1985
19418 ims950-b|bare ims950 no init string,
19419         is2@, use=ims950,
19420 # (ims950: removed obsolete ":ko@:" -- esr)
19421 ims950|ims televideo 950 emulation,
19422         xenl@,
19423         flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
19424         kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950,
19425 # (ims950-rv: removed obsolete ":ko@:" -- esr)
19426 ims950-rv|ims tvi950 rev video,
19427         xenl@,
19428         flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
19429         kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950-rv,
19430 ims-ansi|ultima2|ultimaII|IMS Ultima II,
19431         OTbs, am,
19432         cols#80, it#8, lines#24,
19433         clear=\E[H\E[2J, cub1=^H, cud1=\ED, cuf1=\EC,
19434         cup=\E[%i%p1%2d;%p2%2dH, cuu1=\EM, ed=\E[0J, el=\E[0K,
19435         ht=^I, if=/usr/share/tabset/vt100,
19436         is2=\E[m\E[>14l\E[?1;?5;20l\E>\E[1m\r, kcub1=\E[D,
19437         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, ri=\EM,
19438         rmso=\E[m\E[1m, rmul=\E[m\E[1m, sgr0=\E[m, smso=\E[7m,
19439         smul=\E[4m,
19440
19441 #### Intertec Data Systems
19442 #
19443 # I think this company is long dead as of 1995.  They made an early CP/M
19444 # micro called the "Intertec Superbrain" that was moderately popular,
19445 # then sank out of sight.
19446 #
19447
19448 superbrain|intertec superbrain,
19449         OTbs, am, bw,
19450         cols#80, lines#24,
19451         OTbc=^U, bel=^G, clear=\014$<5*>, cr=^M, cub1=^H, cud1=^J,
19452         cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=^K,
19453         ed=\E~k<10*>, el=\E~K$<15>, ht=^I, ind=^J, kcub1=^U,
19454         kcud1=^J, kcuf1=^F, kcuu1=^K, rmcup=^L, smcup=^L,
19455 # (intertube: a Gould entry via BRL asserted smul=\E0@$<200/>,
19456 # rmul=\E0A$<200/>; my guess is the highlight letter is bit-coded like an ADM,
19457 # and the reverse is actually true.  Try it. -- esr)
19458 intertube|intertec|Intertec InterTube,
19459         OTbs, am,
19460         cols#80, lines#25,
19461         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
19462         cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<50>, cuu1=^Z, home=^A,
19463         ind=^J, rmso=\E0@, smso=\E0P,
19464 # The intertube 2 has the "full duplex" problem like the tek 4025: if you
19465 # are typing and a command comes in, the keystrokes you type get interspersed
19466 # with the command and it messes up
19467 intertube2|intertec data systems intertube 2,
19468         OTbs,
19469         cup=\016%p1%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
19470         el=\EK, hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c,
19471         ll=^K^X\r, vpa=\013%p1%c, use=intertube,
19472
19473 #### Ithaca Intersystems
19474 #
19475 # This company made S100-bus personal computers long ago in the pre-IBM-PC
19476 # past.  They used to be reachable at:
19477 #
19478 #       Ithaca Intersystems
19479 #       1650 Hanshaw Road
19480 #       Ithaca, New York 14850
19481 #
19482 # However, the outfit went bankrupt years ago.
19483 #
19484
19485 # The Graphos III was a color graphics terminal from Ithaca Intersystems.
19486 # These entries were written (originally in termcap syntax) by Brian Yandell
19487 # <yandell@stat.wisc.edu> and Mike Meyer <mikem@stat.wisc.edu> at the
19488 # University of Wisconsin.
19489
19490 # (graphos: removed obsolete and syntactically incorrect :kn=4:,
19491 # removed <if=/usr/share/tabset/init.graphos> and
19492 # <rf=/usr/share/tabset/init.graphos> no such file & no <hts> -- esr)
19493 graphos|graphos III,
19494         am, mir,
19495         cols#80, it#8, lines#24,
19496         clear=\E[H\E[2J, cnorm=\Ez56;2;0;0z\Ez73z\Ez4;1;1z,
19497         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
19498         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
19499         cuu=\E[%p1%dA, cuu1=\E[A,
19500         cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P, dl=\E[%p1%dM,
19501         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
19502         il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
19503         kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
19504         kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
19505         rmir=\E[4l, rmso=\E[m, sc=\E7, sgr0=\E[m, smdc=\E[4h,
19506         smir=\E[4h, smso=\E[7m,
19507 graphos-30|graphos III with 30 lines,
19508         lines#30,
19509         cvvis=\Ez4;2;1z\Ez56;2;80;30z, use=graphos,
19510
19511 #### Modgraph
19512 #
19513 # These people used to be reachable at:
19514 #
19515 #       Modgraph, Inc
19516 #       1393 Main Street,
19517 #       Waltham, MA 02154
19518 #       Vox: (617)-890-5796.
19519 #
19520 # However, if you call that number today you'll get an insurance company.
19521 # I have mail from "Michael Berman, V.P. Sales, Modgraph" dated
19522 # 26 Feb 1997 that says:
19523 #
19524 # Modgraph GX-1000, replaced by GX-2000.  Both are out of production, have been
19525 # for ~7 years.  Modgraph still in business.  Products are rugged laptop and
19526 # portable PC's and specialized CRT and LCD monitors (rugged, rack-mount
19527 # panel-mount etc).  I can be emailed at sonfour@aol.com
19528 #
19529 # Peter D. Smith <pdsmith@nbbn.com> notes that his modgraph manual was
19530 # dated 1984.  According to the manual, it featured Tek 4010/4014
19531 # graphics and DEC VT100/VT52 + ADM-3A emulation with a VT220-style keyboard.
19532 #
19533
19534 modgraph|mod24|modgraph terminal emulating vt100,
19535         xenl@,
19536         cols#80, lines#24,
19537         cvvis=\E\^9;0s\E\^7;1s,
19538         is2=\E\^9;0s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s\E\^11;81s\E\^11;89s,
19539         rf@, ri=\EM\E[K$<5/>, use=vt100,
19540 # The GX-1000 manual is dated 1984.  This looks rather like a VT-52.
19541 modgraph2|modgraph gx-1000 80x24 with keypad not enabled,
19542         am, da, db,
19543         cols#80, it#8, lines#24,
19544         clear=\EH\EJ$<50/>, cub1=^H, cud1=\EB$<2/>,
19545         cuf1=\EC$<2/>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5/>,
19546         cuu1=\EA$<2/>, ed=\EJ$<50/>, el=\EK$<3/>, ht=^I,
19547         is2=\E<\E\^5;2s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s\E\^11;81s\E\^11;89s\E\^12;0s\E\^14;2s\E\^15;9s\E\^25;1s\E\^9;1s\E\^27;1,
19548         ri=\EI$<5/>,
19549 #
19550 # Modgraph from Nancy L. Cider <nancyc@brl-tbd>
19551 # BUG NOTE from Barbara E. Ringers <barb@brl-tbd>:
19552 # If we set TERM=vt100, and set the Modgraph screen to 24 lines, setting a
19553 # mark and using delete-to-killbuffer work correctly.  However, we would
19554 # like normal mode of operation to be using a Modgraph with 48 line setting.
19555 # If we set TERM=mod (which is a valid entry in termcap with 48 lines)
19556 # the setting mark and delete-to-killbuffer results in the deletion of only
19557 # the line the mark is set on.
19558 # We've discovered that the delete-to-killbuffer works correctly
19559 # with TERM=mod and screen set to 80x48 but it's not obvious.  Only
19560 # the first line disappears but a ctrl-l shows that it did work
19561 # correctly.
19562 modgraph48|mod|Modgraph w/48 lines,
19563         OTbs, OTpt, am, xenl,
19564         cols#80, it#8, lines#48, vt#3,
19565         OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
19566         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
19567         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
19568         flash=\E[?5h\E[0q\E[1;2q\E[?5l\E[0q\E[4;3q,
19569         home=\E[H, ht=^I, is2=\E<\E[1;48r\E[0q\E[3;4q\E=\E[?1h,
19570         kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19571         kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m,
19572         ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
19573         rs1=\E=\E[0q\E>, sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=,
19574         smso=\E[7m, smul=\E[4m,
19575
19576 #### Morrow Designs
19577 #
19578 # This was George Morrow's company.  They started in the late 1970s making
19579 # S100-bus machines.  They used to be reachable at:
19580 #
19581 #        Morrow
19582 #        600 McCormick St.
19583 #        San Leandro, CA 94577
19584 #
19585 # but they're long gone now (1995).
19586 #
19587
19588 # The mt70 terminal was shipped with the Morrow MD-3 microcomputer.
19589 # Jeff's specimen was dated June 1984.
19590 # From: Jeff Wieland <wieland@acn.purdue.edu> 24 Feb 1995
19591 mt70|mt-70|Morrow MD-70; native Morrow mode,
19592         am, mir, msgr, xon,
19593         cols#80, it#8, lines#24,
19594         acsc=+z\,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI, bel=^G,
19595         cbt=\EI, civis=\E"0, clear=^Z, cnorm=\E"2, cr=^M, cub1=^H,
19596         cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1>,
19597         cuu1=^K, dch1=\EW, dim=\EG2, dl1=\ER, ed=\EY, el=\ET$<10>,
19598         flash=\EK1$<200>\EK0, home=^^, ht=^I, ich1=\EQ, il1=\EE,
19599         ind=^J, invis@, is1=\E"2\EG0\E], kbs=^H, kcbt=^A^Z\r,
19600         kclr=^An\r, kcub1=^AL\r, kcud1=^AK\r, kcuf1=^AM\r,
19601         kcuu1=^AJ\r, kdch1=\177, kf1=^A@\r, kf10=^AI\r, kf11=^A`\r,
19602         kf12=^Aa\r, kf13=^Ab\r, kf14=^Ac\r, kf15=^Ad\r, kf16=^Ae\r,
19603         kf17=^Af\r, kf18=^Ag\r, kf19=^Ah\r, kf2=^AA\r, kf20=^Ai\r,
19604         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
19605         kf8=^AG\r, kf9=^AH\r, khlp=^AO\r, khome=^AN\r, nel=^_,
19606         rmacs=\E%%, rmcup=, smacs=\E$, smcup=\E"2\EG0\E],
19607         smul=\EG1, tbc=\E0, use=adm+sgr,
19608
19609 #### Motorola
19610 #
19611
19612 # Motorola EXORterm 155 from {decvax, ihnp4}!philabs!sbcs!megad!seth via BRL
19613 # (Seth H Zirin)
19614 ex155|Motorola Exorterm 155,
19615         OTbs, am, bw,
19616         OTkn#5, OTug#1, cols#80, lines#24,
19617         cbt=\E[, clear=\EX, cub1=\ED, cud1=\EB, cuf1=\EC,
19618         cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\ET,
19619         el=\EU, home=\E@, ht=\EZ, kbs=^H, kcbt=\E[, kclr=\EX, kcub1=^H,
19620         kcud1=^J, kcuf1=^L, kcuu1=^K, ked=\ET, kel=\EU, khome=\E@,
19621         rmso=\Ec\ED, rmul=\Eg\ED, smso=\Eb\ED, smul=\Ef\ED,
19622
19623 #### Omron
19624 #
19625 # This company is still around in 1995, manufacturing point-of-sale systems.
19626
19627 omron|Omron 8025AG,
19628         OTbs, am, da, db,
19629         cols#80, lines#24,
19630         bel=^G, clear=\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, cuu1=\EA,
19631         cvvis=\EN, dch1=\EP, dl1=\EM, ed=\ER, el=\EK, home=\EH,
19632         il1=\EL, ind=\ES, ri=\ET, rmso=\E4, smso=\Ef,
19633
19634 #### Ramtek
19635 #
19636 # Ramtek was a vendor of high-end graphics terminals around 1979-1983; they
19637 # were competition for things like the Tektronics 4025.
19638 #
19639
19640 # Ramtek 6221 from BRL, probably by Doug Gwyn
19641 # The following SET-UP modes are assumed for normal operation:
19642 #       UNDERLINE_CURSOR        ANSI_MODE       AUTO_XON/XOFF_ON
19643 #       NEWLINE_OFF             80_COLUMNS
19644 # Other SET-UP modes may be set for operator convenience or communication
19645 # requirements; I recommend
19646 #       SMOOTH_SCROLL   AUTO_REPEAT_ON  3_#_SHIFTED     WRAP_AROUND_ON
19647 # Hardware tabs are assumed to be every 8 columns; they can be set up by the
19648 # "reset", "tset", or "tabs" utilities (use rt6221-w, 160 columns, for this).
19649 # Note that the Control-E key is useless on this brain-damaged terminal.  No
19650 # delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
19651 rt6221|Ramtek 6221 80x24,
19652         OTbs, OTpt, msgr, xon,
19653         OTkn#4, cols#80, it#8, lines#24, vt#3,
19654         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l,
19655         clear=\E[1;1H\E[J, cnorm=\E[>5h\E[>9h, cr=^M,
19656         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
19657         cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
19658         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
19659         cvvis=\E[>7h\E[>9l, ed=\E[J, el=\E[K, home=\E[1;1H, ht=^I,
19660         hts=\EH, ind=^J, is2=\E)0, kbs=^H, kcub1=\E[D, kcud1=\E[B,
19661         kcuf1=\E[C, kcuu1=\E[A, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
19662         kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[24;1H,
19663         nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E>,
19664         rmso=\E[m, rmul=\E[m,
19665         rs1=\E[1w\E[>37m\E[>39m\E[1v\E[20l\E[?3l\E[?6l\E[>5h\E[>6h\E[>7h\E[>8l\E[>9h\E[>10l\E[1;24r\E[m\E[q\E(B\017\E)0\E#5\E>,
19666         sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m,
19667         smul=\E[4m, tbc=\E[3g,
19668 # [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
19669 rt6221-w|Ramtek 6221 160x48,
19670         cols#160, lines#48,
19671         ll=\E[48;1H, use=rt6221,
19672
19673 #### RCA
19674 #
19675
19676 # RCA VP3301 or VP3501
19677 rca|rca vp3301/vp3501,
19678         OTbs,
19679         cols#40, lines#24,
19680         clear=^L, cuf1=^U, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
19681         cuu1=^K, home=^Z, rmso=\E\ES0, smso=\E\ES1,
19682
19683
19684 #### Selanar
19685 #
19686
19687 # Selanar HiREZ-100 from BRL, probably by Doug Gwyn
19688 # The following SET-UP modes are assumed for normal operation:
19689 #       SET_DEFAULT_TABS        48_LINES                80_COLUMNS
19690 #       ONLINE                  ANSI                    CURSOR_VISIBLE
19691 #       VT102_AUTO_WRAP_ON      VT102_NEWLINE_OFF       VT102_MONITOR_MODE_OFF
19692 #       LOCAL_ECHO_OFF          US_CHAR_SET             WPS_TERMINAL_DISABLED
19693 #       CPU_AUTO_XON/XOFF_ENABLED                       PRINT_FULL_SCREEN
19694 # For use with graphics software, all graphics modes should be set to factory
19695 # default.  Other SET-UP modes may be set for operator convenience or
19696 # communication requirements.  No delays are specified; use "stty ixon -ixany"
19697 # to enable DC3/DC1 flow control!
19698 # I commented out the scrolling capabilities since they are too slow.
19699 hirez100|Selanar HiREZ-100,
19700         OTbs, OTpt, mir, msgr, xon,
19701         OTkn#4, cols#80, it#8, lines#48, vt#3,
19702         acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
19703         cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
19704         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
19705         cuu=\E[%p1%dA, cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P,
19706         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
19707         hts=\EH, il=\E[%p1%dL, il1=\E[L, is2=\E<\E)0, kbs=^H,
19708         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP,
19709         kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3,
19710         lf3=PF4, ll=\E[48H, mc0=\E[i, mc4=\E[4i\E[?4i,
19711         mc5=\E[?5i\E[5i, nel=\EE, rc=\E8, rev=\E[7m, rmacs=^O,
19712         rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
19713         rs1=\030\E2\E<\E[4i\E[?4i\E[12h\E[2;4;20l\E[?0;7h\E[?1;3;6;19l\E[r\E[m\E(B\017\E)0\E>,
19714         sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E[?1h\E=, smso=\E[7m,
19715         smul=\E[4m, tbc=\E[3g,
19716 hirez100-w|Selanar HiREZ-100 in 132-column mode,
19717         cols#132, use=hirez100,
19718
19719 #### Signetics
19720 #
19721
19722 # From University of Wisconsin
19723 vsc|Signetics Vsc Video driver by RMC,
19724         am, msgr,
19725         cols#80, it#8, lines#26,
19726         clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
19727         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
19728         ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rev=^_\s,
19729         rmso=^_!, rmul=^_#, sgr0=^_!, smso=^_\s, smul=^_",
19730
19731 #### Soroc
19732 #
19733 # Alan Frisbie <frisbie@flying-disk.com> writes:
19734 #
19735 # As you may recall, the Soroc logo consisted of their name,
19736 # with the letter "S" superimposed over an odd design.   This
19737 # consisted of a circle with a slightly smaller 15 degree (approx.)
19738 # wedge with rounded corners inside it.   The color was sort of
19739 # a metallic gold/yellow.
19740 #
19741 # If I had been more of a beer drinker it might have been obvious
19742 # to me, but it took a clue from their service department to make
19743 # me exclaim, "Of course!"   The circular object was the top of
19744 # a beer can (the old removable pop-top style) and "Soroc" was an
19745 # anagram for "Coors".
19746 #
19747 # I can just imagine the founders of the company sitting around
19748 # one evening, tossing back a few and trying to decide what to
19749 # call their new company and what to use for a logo.
19750 #
19751
19752 # (soroc120: removed obsolete ":ma=^K^P^R^L^L :" -- esr)
19753 soroc120|iq120|soroc|soroc iq120,
19754         clear=\E*$<2>, cud1=^J, ed=\EY, el=\ET, kcub1=^H, kcud1=^J,
19755         kcuf1=^L, kcuu1=^K, use=adm3a,
19756 soroc140|iq140|soroc iq140,
19757         OTbs, am, mir,
19758         cols#80, lines#24,
19759         bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
19760         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\Ew,
19761         dl1=\Er$<.7*>, ed=\Ey, el=\Et, home=^^, il1=\Ee$<1*>, ind=^J,
19762         kbs=^H, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A@\r, kf2=^AA\r,
19763         kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
19764         kf8=^AG\r, kf9=^AH\r, khome=^^, ll=^^^K, rmir=\E8,
19765         rmso=\E\177, rmul=\E^A, smir=\E9, smso=\E\177, smul=\E^A,
19766
19767 #### Southwest Technical Products
19768 #
19769 # These guys made an early personal micro called the M6800.
19770 # The ct82 was probably its console terminal.
19771 #
19772
19773 # (swtp: removed obsolete ":bc=^D:" -- esr)
19774 swtp|ct82|southwest technical products ct82,
19775         am,
19776         cols#82, lines#20,
19777         bel=^G, clear=^L, cr=^M, cub1=^D, cud1=^J, cuf1=^S,
19778         cup=\013%p2%c%p1%c, cuu1=^A, dch1=^\^H, dl1=^Z, ed=^V, el=^F,
19779         home=^P, ich1=^\^X, il1=^\^Y, ind=^N,
19780         is2=\034\022\036\023\036\004\035\027\011\023\036\035\036\017\035\027\022\011,
19781         ll=^C, ri=^O, rmso=^^^F, smso=^^^V,
19782
19783 #### Synertek
19784 #
19785 # Bob Manson <manson@pattyr.acs.ohio-state.edu> writes (28 Apr 1995):
19786 #
19787 # Synertek used to make ICs, various 6502-based single-board process
19788 # control and hobbyist computers, and assorted peripherals including a
19789 # series of small inexpensive terminals (I think they were one of the
19790 # first to have a "terminal-on-a-keyboard", where the terminal itself
19791 # was only slightly larger than the keyboard).
19792 #
19793 # They apparently had a KTM-1 model, which I've never seen. The KTM-2/40
19794 # was a 40x24 terminal that could connect to a standard TV through a
19795 # video modulator.  The KTM-2/80 was the 80-column version (the 2/40
19796 # could be upgraded to the 2/80 by adding 2 2114 SRAMs and a new ROM).
19797 # I have a KTM-2/80 still in working order.  The KTM-2s had fully
19798 # socketed parts, used 2 6507s, a 6532 as keyboard scanner, a program
19799 # ROM and 2 ROMs as character generators. They were incredibly simple,
19800 # and I've never had any problems with mine (witness the fact that mine
19801 # was made in 1981 and is still working great... I've blown the video
19802 # output transistor a couple of times, but it's a 2N2222 :-)
19803 #
19804 # The KTM-3 (which is what is listed in the terminfo file) was their
19805 # attempt at putting a KTM-2 in a box (and some models came with a
19806 # CRT). It wasn't much different from the KTM-2 hardware-wise, but the
19807 # control and escape sequences are very different. The KTM-3 was always
19808 # real broken, at least according to the folks I've talked to about it.
19809 #
19810 # The padding in the entry is probably off--these terminals were very
19811 # slow (it takes like 100ms for the KTM-2 to clear the screen...) And
19812 # anyone with any sanity replaced the ROMs with something that provided
19813 # a reasonable subset of VT100 functionality, since the usual ROMs were
19814 # obviously very primitive... oh, you could get an upgraded ROM from
19815 # Synertek for some incredible amount of money, but what hacker with an
19816 # EPROM burner would do that? :)
19817 #
19818 # Sorry I don't have any contact info; I believe they were located in
19819 # Sunnyvale, and I'm fairly sure they are still manufacturing ICs
19820 # (they've gone to ASICs and FPGAs), but I doubt they're in the computer
19821 # business these days.
19822 #
19823
19824 # Tested, seems to work fine with vi.
19825 synertek|ktm|synertek380|synertek ktm 3/80 tubeless terminal,
19826         am,
19827         cols#80, lines#24,
19828         clear=^Z, cub1=^H, cuf1=^L,
19829         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
19830
19831 #### Tab Office Products
19832 #
19833 #       TAB Products Co. - Palo Alto, California
19834 #       Electronic Office Products,
19835 #       1451 California Avenue 94304
19836 #
19837 # I think they're out of business.
19838 #
19839
19840 # The tab 132 uses xon/xoff, so no padding needed.
19841 # <smkx>/<rmkx> have nothing to do with arrow keys.
19842 # <is2> sets 80 col mode, normal video, autowrap on (for <am>).
19843 # Seems to be no way to get rid of status line.
19844 # The manual for this puppy was dated June 1981.  It claims to be VT52-
19845 # compatible but looks more vt100-like.
19846 tab132|tab|tab132-15|tab 132/15,
19847         da, db,
19848         OTdN@, cols#80, lines#24, lm#96,
19849         cud1=^J, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M,
19850         il1=\E[L, is2=\E[?7h\E[?3l\E[?5l, kcub1=\E[D, kcud1=\E[B,
19851         kcuu1=\E[A, rmir=\E[4l, rmkx@, smir=\E[4h, smkx@, use=vt100,
19852 tab132-w|tab132 in wide mode,
19853         cols#132,
19854         is2=\E[?7h\E[?3h\E[?5l, use=tab132,
19855 tab132-rv|tab132 in reverse-video mode,
19856         is2=\E[?7h\E[?3l\E[?5h, use=tab132,
19857 tab132-w-rv|tab132 in reverse-video/wide mode,
19858         is2=\E[?7h\E[?3h\E[?5h, use=tab132-w,
19859
19860
19861 #### Teleray
19862 #
19863 #       Research Incorporated
19864 #       6425 Flying Cloud Drive
19865 #       Eden Prairie, MN 55344
19866 #       Vox: (612)-941-3300
19867 #
19868 # The Teleray terminals were all discontinued in 1992-93.  RI still services
19869 # and repairs these beasts, but no longer manufactures them.  The Teleray
19870 # people believe that all the types listed below are very rare now (1995).
19871 # There was a newer line of Telerays (Model 7, Model 20, Model 30, and
19872 # Model 100) that were ANSI-compatible.
19873 #
19874 # Note two things called "teleray".  Reorder should move the common one
19875 # to the front if you have either.  A dumb teleray with the cursor stuck
19876 # on the bottom and no obvious model number is probably a 3700.
19877 #
19878
19879 t3700|dumb teleray 3700,
19880         OTbs,
19881         cols#80, lines#24,
19882         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ind=^J,
19883 t3800|teleray 3800 series,
19884         OTbs,
19885         cols#80, it#8, lines#24,
19886         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
19887         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
19888         home=\EH, ht=^I, ind=^J, ll=\EY7\s,
19889 t1061|teleray|teleray 1061,
19890         OTbs, am, km, xhp, xt,
19891         cols#80, it#8, lines#24, xmc#1,
19892         bel=^G, clear=\014$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
19893         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
19894         dl1=\EM$<2*>, ed=\EJ$<1>, el=\EK, home=\EH, ht=^I, hts=\EF,
19895         ich1=\EP, il1=\EL$<2*>, ind=^J, ip=$<0.4*>,
19896         is2=\Ee\EU01^Z1\EV\EU02^Z2\EV\EU03^Z3\EV\EU04^Z4\EV\EU05^Z5\EV\EU06^Z6\EV\EU07^Z7\EV\EU08^Z8\EV\Ef,
19897         kf1=^Z1, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5, kf6=^Z6, kf7=^Z7,
19898         kf8=^Z8, rmso=\ER@, rmul=\ER@, smso=\s\ERD, smul=\ERH,
19899         tbc=\EG,
19900 t1061f|teleray 1061 with fast PROMs,
19901         dl1=\EM, il1=\EL, ip@, use=t1061,
19902 # "Teleray Arpa Special", officially designated as
19903 # "Teleray Arpa network model 10" with "Special feature 720".
19904 # This is the new (1981) fast microcode updating the older "arpa" proms
19905 # (which gave meta-key and programmable-fxn keys).  720 is much much faster,
19906 # converts the keypad to programmable function keys, and has other goodies.
19907 # Standout mode is still broken (magic cookie, etc) so is suppressed as no
19908 # programs handle such lossage properly.
19909 # Note: this is NOT the old termcap's "t1061f with fast proms."
19910 # From: J. Lepreau <lepreau@utah-cs> Tue Feb  1 06:39:37 1983, Univ of Utah
19911 # (t10: removed overridden ":so@:se@:us@:ue@:" -- esr)
19912 t10|teleray 10 special,
19913         OTbs, km, xhp, xt,
19914         cols#80, it#8, lines#24, xmc#2,
19915         clear=\Ej$<30/>, cub1=^H, cud1=\EB, cuf1=\EC,
19916         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
19917         dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
19918         ind=\Eq, pad=\0, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD,
19919         smul=\ERH,
19920 # teleray 16 - map the arrow keys for vi/rogue, shifted to up/down page, and
19921 # back/forth words. Put the function keys (f1-f10) where they can be
19922 # found, and turn off the other magic keys along the top row, except
19923 # for line/local. Do the magic appropriate to make the page shifts work.
19924 # Also toggle ^S/^Q for those of us who use Emacs.
19925 t16|teleray 16,
19926         am, da, db, mir, xhp, xt,
19927         cols#80, lines#24,
19928         bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
19929         cuf1=\E[C, cup=%i\E[%p1%d;%p2%df, cuu1=\E[A, dch1=\E[P,
19930         dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H, ht=^I, il1=\E[L,
19931         ind=^J, kf1=^Z1, kf10=^Z0, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5,
19932         kf6=^Z6, kf7=^Z7, kf8=^Z8, kf9=^Z9, ri=\E[T,
19933         rmcup=\E[V\E[24;1f\E[?38h, rmir=\E[4l, rmso=\E[m,
19934         rmul=\E[m, sgr0=\E[m, smcup=\E[U\E[?38l, smir=\E[4h,
19935         smso=\E[7m, smul=\E[4m,
19936
19937 #### Texas Instruments (ti)
19938 #
19939
19940 # The Silent 700 was so called because it was built around a quiet thermal
19941 # printer.  It was portable, equipped with an acoustic coupler, and pretty
19942 # neat for its day.
19943 ti700|ti733|ti735|ti745|ti800|ti silent 700/733/735/745 or omni 800,
19944         OTbs, hc, os,
19945         cols#80,
19946         bel=^G, cr=\r$<162>, cub1=^H, cud1=^J, ind=^J,
19947
19948 #
19949 # Texas Instruments 916 VDT 7 bit control mode
19950 #
19951 ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 vt220 mode 7 bit CTRL,
19952         da, db, in, msgr,
19953         cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J$<6>,
19954         cnorm=\E[?25h, cub=\E[%p1%dD, cud=\E[%p1%dB,
19955         cuf=\E[%p1%dC, cup=\E[%p1%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
19956         dch=\E[%p1%dP$<250>, dch1=\E[P, dl=\E[%p1%dM,
19957         ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K, el1=\E[1K,
19958         enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>,
19959         hpa=\E[%p1%{1}%+%dG, hts=\E[0W, ich=\E[%p1%d@$<250>,
19960         il=\E[%p1%dL$<36>, ip=$<10>, is2=\E[1;24r\E[24;1H,
19961         kcmd=\E[29~, kdch1=\E[P, kent=^J, kf1=\E[17~, kf10=\E[28~,
19962         kf11=\E[29~, kf12=\E[31~, kf2=\E[18~, kf3=\E[19~,
19963         kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
19964         kf9=\E[26~, khome=\E[H, kich1=\E[@, knp=\E[S, kpp=\E[T,
19965         kprt=^X, prot=\E&, rmacs=\017$<2>, rs2=\E[!p, sgr@,
19966         smacs=\016$<2>, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
19967         use=vt220,
19968 #
19969 # Texas Instruments 916 VDT 8 bit control mode
19970 #
19971 ti916-8|ti916-220-8|Texas Instruments 916 VDT 8859/1 8 vt220 mode bit CTRL,
19972         kcmd=\23329~, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
19973         kcuu1=\233A, kdch1=\233P, kent=^J, kf1=\23317~,
19974         kf10=\23328~, kf11=\23329~, kf12=\23331~, kf2=\23318~,
19975         kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
19976         kf7=\23324~, kf8=\23325~, kf9=\23326~, khome=\233H,
19977         kich1=\233@, knp=\233S, kpp=\233T, kprt=^X, use=ti916,
19978 #
19979 # Texas Instruments 916 VDT 8859/1 7 bit control 132 column mode
19980 #
19981 ti916-132|Texas Instruments 916 VDT vt220 132 column,
19982         cols#132, use=ti916,
19983 #
19984 # Texas Instruments 916 VDT 8859/1 8 bit control 132 column mode
19985 #
19986 ti916-8-132|Texas Instruments 916 VDT 8-bit vt220 132 column,
19987         cols#132, use=ti916-8,
19988 ti924|Texas Instruments 924 VDT 8859/1 7 bit CTRL,
19989         OTbs, am, xon,
19990         cols#80, it#8, lines#24,
19991         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
19992         clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
19993         csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
19994         cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
19995         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
19996         il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
19997         kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kf1=\EOP, kf2=\EOQ,
19998         kf3=\EOR, kf4=\EOS, kf5=\E[16~, kf6=\E[17~, kf7=\E[18~,
19999         kf8=\E[19~, kf9=\E[20~, kich1=\E[@, rc=\E8, rev=\E[7m,
20000         ri=\EM, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
20001         smul=\E[4m, tbc=\E[3g,
20002 ti924-8|Texas Instruments 924 VDT 8859/1 8 bit CTRL,
20003         am, xon,
20004         cols#80, it#8, lines#24,
20005         bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
20006         clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
20007         csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
20008         cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
20009         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
20010         il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
20011         kcuf1=\E[C, kcuu1=\E[A, kdch1=P$<\233>, kf1=P$<\217>,
20012         kf2=Q$<\217>, kf3=R$<\217>, kf4=S$<\217>, kf5=~$<\23316>,
20013         kf6=~$<\23317>, kf7=~$<\23318>, kf8=~$<\23319>,
20014         kf9=~$<\23320>, kich1=@$<\233>, rc=\E8, rev=\E[7m, ri=\EM,
20015         rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
20016         smul=\E[4m, tbc=\E[3g,
20017 ti924w|Texas Instruments 924 VDT 7 bit - 132 column mode,
20018         cols#132, use=ti924,
20019 ti924-8w|Texas Instruments 924 VDT 8 bit - 132 column mode,
20020         cols#132, use=ti924-8,
20021 ti931|Texas Instruments 931 VDT,
20022         OTbs, am, xon,
20023         cols#80, lines#24,
20024         bel=^G, blink=\E4P, clear=\EL, cnorm=\E4@, cr=^M, cub1=\ED,
20025         cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
20026         cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
20027         ich1=\ER\EP\EM, il1=\EN, ind=\Ea, invis=\E4H,
20028         is2=\EGB\E(@B@@\E), kcub1=\ED, kcud1=\EB, kcuf1=\EC,
20029         kcuu1=\EA, kdch1=\EQ, kdl1=\EO, kf1=\Ei1, kf2=\Ei2, kf3=\Ei3,
20030         kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7, kf8=\Ei8, kf9=\Ei9,
20031         kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb, rmso=\E4@, rmul=\E4@,
20032         sgr0=\E4@, smso=\E4A, smul=\E4D,
20033 ti926|Texas Instruments 926 VDT 8859/1 7 bit CTRL,
20034         csr@, ind=\E[1S, ri=\E[1T, use=ti924,
20035 # (ti926-8: I corrected this from the broken SCO entry -- esr)
20036 ti926-8|Texas Instruments 926 VDT 8859/1 8 bit CTRL,
20037         csr@, ind=\2331S, ri=\2331T, use=ti924-8,
20038 ti_ansi|basic entry for ti928,
20039         am, bce, eo, xenl, xon,
20040         colors#8, cols#80, it#8, lines#25, pairs#64,
20041         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[2J\E[H,
20042         cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B,
20043         cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
20044         dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
20045         il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[B,
20046         kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf0=\E[V, kf1=\E[M,
20047         kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
20048         kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I,
20049         op=\E[37;40m, ri=\E[T, rmso=\E[m, rmul=\E[m,
20050         setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
20051         smso=\E[7m, smul=\E[4m,
20052 #
20053 #       928 VDT 7 bit control mode
20054 #
20055 ti928|Texas Instruments 928 VDT 8859/1 7 bit CTRL,
20056         kdch1=\E[P, kend=\E_1\E\\, kent=\E[8~, kf1=\E[17~,
20057         kf10=\E[28~, kf11=\E[29~, kf12=\E[31~, kf13=\E[32~,
20058         kf15=\E[34~, kf2=\E[18~, kf3=\E[19~, kf4=\E[20~,
20059         kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
20060         kich1=\E[@, knp=\E[S, kpp=\E[T, kprt=\E[35~, use=ti_ansi,
20061 #
20062 #       928 VDT 8 bit control mode
20063 #
20064 ti928-8|Texas Instruments 928 VDT 8859/1 8 bit CTRL,
20065         kdch1=\233P, kend=\2371\234, kent=\2338~, kf1=\23317~,
20066         kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13=\23332~,
20067         kf15=\23334~, kf2=\23318~, kf3=\23319~, kf4=\23320~,
20068         kf5=\23321~, kf6=\23323~, kf7=\23324~, kf8=\23325~,
20069         kf9=\23326~, khome=\233H, kich1=\233@, knp=\233S,
20070         kpp=\233T, kprt=\23335~, use=ti_ansi,
20071
20072 #### Zentec (zen)
20073 #
20074
20075 # (zen30: removed obsolete :ma=^L ^R^L^K^P:.  This entry originally
20076 # had just <smso>=\EG6 which I think means standout was supposed to be
20077 # dim-reverse using ADM12-style attributes. ADM12 <smul>/<rmul> and
20078 # <invis> might work-- esr)
20079 zen30|z30|zentec 30,
20080         OTbs, am, mir, ul,
20081         cols#80, lines#24,
20082         bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
20083         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
20084         dim=\EG2, dl1=\ER$<1.5*>, ed=\EY, el=\ET$<1.0*>, home=^^,
20085         il1=\EE$<1.5*>, ind=^J, rmir=\Er, rmul@, smir=\Eq, smso=\EG6,
20086         smul@, use=adm+sgr,
20087 # (zen50: this had extension capabilities
20088 #       :BS=^U:CL=^V:CR=^B:
20089 # UK/DK/RK/LK/HM were someone's aliases for ku/kd/kl/kr/kh,
20090 # which were also in the original entry -- esr)
20091 # (zen50: removed obsolete ":ma=^Hh^Ll^Jj^Kk:" -- esr)
20092 zen50|z50|zentec zephyr,
20093         OTbs, am,
20094         cols#80, lines#24, xmc#1,
20095         clear=\E+, cub1=^H, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
20096         cuu1=^K, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ich1=\EQ, il1=\EE,
20097         invis@, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
20098         rmul@, smul@, use=adm+sgr,
20099
20100 # CCI 4574 (Office Power) from Will Martin <wmartin@BRL.ARPA> via BRL
20101 cci|cci1|z8001|zen8001|CCI Custom Zentec 8001,
20102         OTbs, am, bw,
20103         cols#80, lines#24,
20104         blink=\EM", clear=\EH\EJ, cnorm=\EP,
20105         csr=\ER%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^J,
20106         cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
20107         cvvis=\EF\EQ\EM \ER 7, dim=\EM!, ed=\EJ, el=\EK, home=\EH,
20108         invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, kcub1=\ED,
20109         kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, mc4=^T, mc5=^R,
20110         rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s, sgr0=\EM\s,
20111         smso=\EM$, smul=\EM0,
20112
20113 ######## OBSOLETE UNIX CONSOLES
20114 #
20115
20116 #### Apollo consoles
20117 #
20118 # Apollo got bought by Hewlett-Packard.  The Apollo workstations are
20119 # labeled HP700s now.
20120 #
20121
20122 # From: Gary Darland <goodmanc@garnet.berkeley.edu>
20123 apollo|apollo console,
20124         OTbs, am, mir,
20125         cols#88, lines#53,
20126         clear=^L, cub1=^H, cud1=\EB, cuf1=\EC,
20127         cup=\EM%p1%{32}%+%c%p2%d), cuu1=\EA, dch1=\EP, dl1=\EL,
20128         ed=\EJ, el=\EK, hpa=\EN%p1%d, il1=\EI, ind=\EE, ri=\ED,
20129         rmcup=\EX, rmir=\ER, rmso=\ET, rmul=\EV, smcup=\EW, smir=\EQ,
20130         smso=\ES, smul=\EU, vpa=\EO+\s,
20131
20132 # We don't know whether or not the apollo guys replicated DEC's firmware bug
20133 # in the VT132 that reversed <rmir>/<smir>.  To be on the safe side, disable
20134 # both these capabilities.
20135 apollo_15P|apollo 15 inch display,
20136         rmir@, smir@, use=vt132,
20137 apollo_19L|apollo 19 inch display,
20138         rmir@, smir@, use=vt132,
20139 apollo_color|apollo color display,
20140         rmir@, smir@, use=vt132,
20141
20142 #### Convergent Technology
20143 #
20144 # Burroughs bought Convergent shortly before it merged with Univac.
20145 # CTOS is (I believe) dead.  Probably the aws is too (this entry dates
20146 # from 1991 or earlier).
20147 #
20148
20149 # Convergent AWS workstation from Gould/SEL UTX/32 via BRL
20150 # (aws: removed unknown :dn=^K: -- esr)
20151 aws|Convergent Technologies AWS workstation under UTX and Xenix,
20152         am,
20153         OTug#0, cols#80, lines#28, xmc#0,
20154         OTbc=^H, OTma=\016h\013j\001k\022l\002m, OTnl=^J, acsc=,
20155         clear=^L, cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A,
20156         dch1=\EDC, dl1=\EDL, ed=\EEF, el=\EEL, hpa=\EH%p1%c,
20157         ich1=\EIC, il1=\EIL, ind=\ESU, kbs=^H, kcub1=^N, kcud1=^K,
20158         kcuf1=^R, kcuu1=^A, ri=\ESD, rmacs=\EAAF, rmso=\EARF,
20159         rmul=\EAUF, smacs=\EAAN, smso=\EARN, smul=\EAUN,
20160         vpa=\EV%p1%c,
20161 awsc|Convergent Technologies AWS workstation under CTOS,
20162         am,
20163         OTug#0, cols#80, lines#24, xmc#0,
20164         OTbc=^N, OTma=\016h\013j\001k\022l\002m, acsc=, clear=^L,
20165         cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A, ed=\EEF,
20166         el=\EEL, kbs=^H, kcub1=^N, kcud1=^K, kcuf1=^R, kcuu1=^A,
20167         rmacs=\EAAF, rmso=\EAA, rmul=\EAA, smacs=\EAAN, smso=\EAE,
20168         smul=\EAC,
20169
20170 #### DEC consoles
20171 #
20172
20173 # The MicroVax console.  Tim Theisen <tim@cs.wisc.edu> writes:
20174 # The digital uVax II's had a graphic display called a qdss.  It was
20175 # supposed to be a high performance graphic accelerator, but it was
20176 # late to market and barely appeared before faster dumb frame buffers
20177 # appeared.  I have only used this display while running X11.  However,
20178 # during bootup, it was in text mode, and probably had a terminal emulator
20179 # within it.  And that is what your termcap entry is for.  In graphics
20180 # mode the screen size is 1024x864 pixels.
20181 qdss|qdcons|qdss glass tty,
20182         OTbs, am,
20183         cols#128, lines#57,
20184         clear=\032$<1/>, cub1=^H, cud1=^J, cuf1=^L,
20185         cup=\E=%p1%c%p2%c, cuu1=^K,
20186
20187 #### Fortune Systems consoles
20188 #
20189 # Fortune made a line of 68K-based UNIX boxes that were pretty nifty
20190 # in their day; I (esr) used one myself for a year or so around 1984.
20191 # They had no graphics, though, and couldn't compete against Suns and
20192 # the like.  R.I.P.
20193 #
20194
20195 # From: Robert Nathanson <c160-3bp@Coral> via tut   Wed Oct 5, 1983
20196 # (This had extension capabilities
20197 #       :rv=\EH:re=\EI:rg=0:GG=0:\
20198 #       :CO=\E\\:WL=^Aa\r:WR=^Ab\r:CL=^Ac\r:CR=^Ad\r:DL=^Ae\r:RF=^Af\r:\
20199 #       :RC=^Ag\r:CW=^Ah\r:NU=^Aj\r:EN=^Ak\r:HM=^Al:PL=^Am\r:\
20200 #       :PU=^An\r:PD=^Ao\r:PR=^Ap\r:HP=^A@\r:RT=^Aq\r:TB=\r:CN=\177:MP=\E+F:
20201 # It had both ":bs:" and ":bs=^H:"; I removed the latter.  Also, it had
20202 # ":sg=0:" and ":ug=0:"; evidently the composer was trying (unnecessarily)
20203 # to force both magic cookie glitches off.  Once upon a time, I
20204 # used a Fortune myself, so I know the capabilities of the form ^A[a-z]\r are
20205 # function keys; thus the "Al" value for HM was certainly an error.  I renamed
20206 # EN/PD/PU/CO/CF/RT according to the XENIX/TC mappings, but not HM/DL/RF/RC.
20207 # I think :rv: and :re: are start/end reverse video and :rg: is a nonexistent
20208 # "reverse-video-glitch" capability; I have put :rv: and :re: in with standard
20209 # names below.  I've removed obsolete ":nl=5^J:" as there is a :do: -- esr)
20210 fos|fortune|Fortune system,
20211         OTbs, am, bw,
20212         cols#80, lines#25,
20213         acsc=j*k(l m"q&v%w#x-, bel=^G, blink=\EN, civis=\E],
20214         clear=\014$<20>, cnorm=\E\\, cr=^M, cub1=^H, cud1=\n$<3>,
20215         cup=\034C%p1%{32}%+%c%p2%{32}%+%c, cuu1=\013$<3>,
20216         cvvis=\E\:, dch1=\034W$<5>, dl1=\034R$<15>,
20217         ed=\034Y$<3*>, el=^\Z, home=\036$<10>, ht=^Z,
20218         ich1=\034Q$<5>, il1=\034E$<15>, ind=^J, is2=^_.., kbs=^H,
20219         kcub1=^Aw\r, kcud1=^Ay\r, kcuf1=^Az\r, kcuu1=^Ax\r,
20220         kend=^Ak\r, kent=^Aq, kf1=^Aa\r, kf2=^Ab\r, kf3=^Ac\r,
20221         kf4=^Ad\r, kf5=^Ae\r, kf6=^Af\r, kf7=^Ag\r, kf8=^Ah\r,
20222         khome=^A?\r, knp=^Ao\r, kpp=^An\r, nel=^M^J, rev=\EH,
20223         rmacs=^O, rmso=^\I`, rmul=^\IP, sgr0=\EI, smacs=\Eo,
20224         smso=^\H`, smul=^\HP,
20225
20226 #### Masscomp consoles
20227 #
20228 # Masscomp has gone out of business.  Their product line was purchased by
20229 # comany in Georgia (US) called "XS International", parts and service may
20230 # still be available through them.
20231 #
20232
20233 # (masscomp: ":MT:" changed to ":km:";  -- esr)
20234 masscomp|masscomp workstation console,
20235         OTbs, km, mir,
20236         cols#80, it#8, lines#24,
20237         clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
20238         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
20239         ed=\E[J, el=\E[K, ht=^I, il1=\E[L, is2=\EGc\EGb\EGw, kbs=^H,
20240         kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmir=\E[4l,
20241         rmso=\E[m, rmul=\EGau, smir=\E[4h, smso=\E[7m, smul=\EGu,
20242 masscomp1|masscomp large screen version 1,
20243         cols#104, lines#36, use=masscomp,
20244 masscomp2|masscomp large screen version 2,
20245         cols#64, lines#21, use=masscomp,
20246
20247 ######## OTHER OBSOLETE TYPES
20248 #
20249 # These terminals are *long* dead -- these entries are retained for
20250 # historical interest only.
20251 #
20252
20253 #### Obsolete non-ANSI software emulations
20254 #
20255
20256 # CTRM terminal emulator
20257 # 1. underlining is not allowed with colors: first, is is simulated by
20258 # black on white, second, it disables background color manipulations.
20259 # 2. BLINKING, REVERSE and BOLD are allowed with colors,
20260 # so we have to save their status in the static registers A, B and H
20261 # respectively, to be able to restore them when color changes
20262 # (because any color change turns off ALL attributes)
20263 # 3. <bold> and <rev> sequences alternate modes,
20264 # rather than simply  entering them.  Thus we have to check the
20265 # static register B and H to determine the status, before sending the
20266 # escape sequence.
20267 # 4. <sgr0> now must set the status of all 3 register (A,B,H) to zero
20268 # and then reset colors
20269 # 5. implementation of the protect mode would badly penalize the performance.
20270 # we would have to use \E&bn sequence to turn off colors (as well as all
20271 # other attributes), and keep the status of protect mode in yet another
20272 # static variable.  If someone really needs this mode, they would have to
20273 # create another terminfo entry.
20274 # 6. original color-pair is white on black.
20275 # store the information about colors into static registers
20276 # 7. set foreground color.  it performs the following steps.
20277 #   1) turn off all attributes
20278 #   2) turn on the background and video attributes that have been turned
20279 #      on before (this information is stored in static registers X,Y,Z,A,B,H,D).
20280 #   3) turn on foreground attributes
20281 #   4) store information about foreground into U,V,W static registers
20282 # 8. turn on background: similar to turn on foreground above
20283 ctrm|C terminal emulator,
20284         am, bce, xon,
20285         colors#8, cols#80, lh#0, lines#24, lm#0, lw#0, ncv#2, nlab#0,
20286         pairs#63, pb#19200, vt#6,
20287         bel=^G, blink=\E&dA%{1}%PA,
20288         bold=%?%gH%{0}%=%t\E&dH%{1}%PH%;, cbt=\Ei,
20289         clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
20290         cup=\E&a%p2%dc%p1%dY, cuu1=\EA, dch1=\EP$<2>, dl1=\EM,
20291         ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=\011$<2>, hts=\E1,
20292         il1=\EL, ind=^J, ip=$<2>, is2=\E&jA\r, kbs=^H, kcub1=\Eu\r,
20293         kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1=\Ep\r,
20294         kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r,
20295         kf7=\Ev\r, kf8=\Ew\r, khome=\Ep\r,
20296         op=\E&bn\E&bB\E&bG\E&bR%{0}%PX%{0}%PY%{0}%PZ%{1}%PW%{1}%PV%{1}%PU,
20297         rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, rmir=\ER, rmkx=\E&jA,
20298         setb=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gU%t\E&bR%;%?%gV%t\E&bG%;%?%gW%t\E&bB%;%?%p1%{1}%&%t\E&bb%{1}%e%{0}%;%PZ%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY%?%p1%{4}%&%t\E&br%{1}%e%{0}%;%PX,
20299         setf=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gX%t\E&br%;%?%gY%t\E&bg%;%?%gZ%t\E&bb%;%?%p1%{1}%&%t\E&bB%{1}%e%{0}%;%PW%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV%?%p1%{4}%&%t\E&bR%{1}%e%{0}%;%PU,
20300         sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH%?%p1%p3%p5%|%|%t\E&dB%{1}%PB%;%?%p4%t\E&dA%{1}%PA%;%?%p6%t\E&dH%{1}%PH%;%?%p2%t\E&dD%;,
20301         sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, smir=\EQ, smkx=\E&jB,
20302         smso=\E&dD, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
20303
20304 # gs6300 - can't use blue foreground, it clashes with underline;
20305 # it's simulated with cyan
20306 # Bug: The <op> capability probably resets attributes.
20307 # (gs6300: commented out <rmln> (no <smln>) --esr)
20308 gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
20309         am, bce, msgr, xon,
20310         colors#8, cols#80, it#8, lines#24, pairs#63,
20311         acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20312         bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
20313         cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
20314         cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
20315         cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
20316         dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
20317         ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
20318         is2=\E[m, kbs=^H, kcbt=^R^I, kcub1=\E[D, kcud1=\E[B,
20319         kcuf1=\E[C, kcuu1=\E[A, kf1=\E[0s, kf2=\E[24s, kf3=\E[1s,
20320         kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, kf8=\E[21s,
20321         khome=\E[H, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m,
20322         ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm,
20323         setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m,
20324         sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m,
20325
20326 # From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
20327 # MS-Kermit with Heath-19 emulation mode enabled
20328 # (h19k: changed ":pt@:" to ":it@"
20329 h19k|h19kermit|heathkit emulation provided by Kermit (no auto margin),
20330         am@, da, db, xt,
20331         it@,
20332         ht@, use=h19-u,
20333
20334 # Apple Macintosh with Versaterm, a terminal emulator distributed by Synergy
20335 # Software (formerly Peripherals Computers & Supplies, Inc) of
20336 # 2457 Perkiomen Ave., Reading, PA 19606, 1-800-876-8376.  They can
20337 # also be reached at support@synergy.com.
20338 versaterm|versaterm vt100 emulator for the macintosh,
20339         am, xenl,
20340         cols#80, it#8, lines#24,
20341         bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
20342         clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
20343         cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
20344         cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
20345         dch1=\E[1P$<7/>, dl1=\E[1M$<9/>, ed=\E[J$<50/>,
20346         el=\E[K$<3/>, home=\E[H, ht=^I, ich1=\E[1@$<7/>,
20347         il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
20348         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
20349         kf3=\EOR, kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>,
20350         rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
20351         rmkx=\E>\E[?1l, rmso=\E[m$<2/>, rmul=\E[m$<2/>, rs1=\E>,
20352         sc=\E7, sgr0=\E[m$<2/>, smkx=\E=\E[?1h, smso=\E[7m$<2/>,
20353         smul=\E[4m$<2/>,
20354
20355 # From: Rick Thomas <ihnp4!btlunix!rbt>
20356 # (xtalk: I added <rmam>/<smam> based on the init string.
20357 xtalk|IBM PC with xtalk communication program (versions up to 3.4),
20358         am, mir, msgr, xon,
20359         cols#80, it#8, lines#24, vt#3, xmc#1,
20360         acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20361         bel=^G, clear=\E[H\E[J$<50>, cr=^M, cub=\E[%p1%dD, cub1=^H,
20362         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
20363         cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
20364         cuu1=\E[A$<2>, dl1=\E[M$<99>, ed=\E[J$<50>, el=\E[K$<3>,
20365         el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
20366         il1=\E[L$<99>, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB,
20367         kcuf1=\EOC, kcuu1=\EOA, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
20368         rmkx=\E[?1l\E>, rmso=\E[m\s,
20369         rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
20370         smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
20371         tbc=\E[3g, use=vt100+fnkeys,
20372
20373 # The official PC terminal emulator program of the AT&T Product Centers.
20374 # Note - insert mode commented out - doesn't seem to work on AT&T PC.
20375 simterm|attpc running simterm,
20376         am,
20377         cols#80, lines#24,
20378         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
20379         cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\ER,
20380         dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, ind=^J, rmcup=\EVE,
20381         rmso=\E&d@, sgr0=\E&d@, smcup=\EVS, smso=\E&dB,
20382
20383 #### Daisy wheel printers
20384 #
20385 # This section collects Diablo, DTC, Xerox, Qume, and other daisy
20386 # wheel terminals.  These are now largely obsolete.
20387 #
20388
20389 # (diablo1620: removed <if=/usr/share/tabset/xerox1720>, no such file -- esr)
20390 diablo1620|diablo1720|diablo450|ipsi|diablo 1620,
20391         hc, os,
20392         cols#132, it#8,
20393         cub1=^H, cud1=^J, cuu1=\E^J, hd=\ED, hpa=\E\011%i%p1%c,
20394         ht=^I, hts=\E1, hu=\EU, kbs=^H, tbc=\E2,
20395 diablo1620-m8|diablo1640-m8|diablo 1620 w/8 column left margin,
20396         cols#124,
20397         is2=\r        \E9, use=diablo1620,
20398 # (diablo1640: removed <if=/usr/share/tabset/xerox1730>, no such file -- esr)
20399 diablo1640|diablo1730|diablo1740|diablo630|x1700|diablo|xerox|diablo 1640,
20400         bel=^G, rmso=\E&, rmul=\ER, smso=\EW, smul=\EE,
20401         use=diablo1620,
20402 # (diablo1640-lm: removed <if=/usr/share/tabset/xerox1730-lm>, no such
20403 # file -- esr)
20404 diablo1640-lm|diablo-lm|xerox-lm|diablo 1640 with indented left margin,
20405         cols#124,
20406         rmso=\E&, rmul=\ER, smso=\EW, smul=\EE, use=diablo1620,
20407 diablo1740-lm|630-lm|1730-lm|x1700-lm|diablo 1740 printer,
20408         use=diablo1640-lm,
20409 # DTC 382 with VDU.  Has no <ed> so we fake it with <el>.  Standout
20410 # <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\0>.
20411 # The terminal has tabs, but I'm getting tired of fighting the braindamage.
20412 # If no tab is set or the terminal's in a bad mood, it glitches the screen
20413 # around all of memory.  Note that return puts a blank ("a return character")
20414 # in the space the cursor was at, so we use ^P return (and thus ^P newline for
20415 # newline).  Note also that if you turn off :pt: and let Unix expand tabs,
20416 # curses won't work (some old BSD versions) because it doesn't clear this bit,
20417 # and cursor addressing sends a tab for row/column 9.  What a losing terminal!
20418 # I have been unable to get tabs set in all 96 lines - it always leaves at
20419 # least one line with no tabs in it, and once you tab through that line,
20420 # it completely weirds out.
20421 # (dtc382: change <rmcup> to <smcup> -- it  just does a clear --esr)
20422 dtc382|DTC 382,
20423         am, da, db, xhp,
20424         cols#80, lines#24, lm#96,
20425         bel=^G, clear=\020\035$<20>, cnorm=^Pb, cr=^P^M, cub1=^H,
20426         cuf1=^PR, cup=\020\021%p2%c%p1%c, cuu1=^P^L, cvvis=^PB,
20427         dch1=^X, dl1=^P^S, ed=\020\025\020\023\020\023, el=^P^U,
20428         home=^P^R, il1=^P^Z, ind=^J, pad=\177, rmcup=, rmir=^Pi,
20429         rmul=^P \0, smcup=\020\035$<20>, smir=^PI, smul=^P ^P,
20430 dtc300s|DTC 300s,
20431         hc, os,
20432         cols#132,
20433         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
20434         hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
20435 gsi|mystery gsi terminal,
20436         hc, os,
20437         cols#132,
20438         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, hd=\Eh, ht=^I, hu=\EH,
20439         ind=^J,
20440 aj830|aj832|aj|anderson jacobson,
20441         hc, os,
20442         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
20443         ind=^J,
20444 # From: Chris Torek <chris@gyre.umd.edu> Thu, 7 Nov 85 18:21:58 EST
20445 aj510|Anderson-Jacobson model 510,
20446         am, mir,
20447         cols#80, lines#24,
20448         clear=^L, cub1=^H, cuf1=\EX,
20449         cup=\E#%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EY,
20450         dch1=.1*\E'D, dl1=\E&D$<2*/>, ed=\E'P, el=\E'L, ich1=,
20451         il1=\E&I$<2*/>, ip=$<.1*/>, kcub1=\EW, kcud1=\EZ,
20452         kcuf1=\EX, kcuu1=\EY, pad=\177, rmcup=\E"N, rmir=\E'J,
20453         rmso=\E"I, rmul=\E"U, smcup=\E"N, smir=\E'I, smso=\E"I,
20454         smul=\E"U,
20455 # From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
20456 # This is incomplete, but it's a start.
20457 nec5520|nec|spinwriter|nec 5520,
20458         hc, os,
20459         cols#132, it#8,
20460         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E9, ff=^L,
20461         hd=\E]s\n\E]W, ht=^I, hts=\E1, hu=\E]s\E9\E]W, ind=^J,
20462         kbs=^H, tbc=\E3,
20463 qume5|qume|Qume Sprint 5,
20464         hc, os,
20465         cols#80, it#8,
20466         bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
20467         hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
20468 # I suspect the xerox 1720 is the same as the diablo 1620.
20469 xerox1720|x1720|x1750|xerox 1720,
20470         hc, os,
20471         cols#132, it#8,
20472         bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ht=^I, hts=\E1, ind=^J,
20473         tbc=\E2,
20474
20475 #### Miscellaneous obsolete terminals, manufacturers unknown
20476 #
20477 # If you have any information about these (like, a manufacturer's name,
20478 # and a date on the serial-number plate) please send it!
20479
20480 cad68-3|cgc3|cad68 basic monitor transparent mode size 3 chars,
20481         OTbs, am,
20482         cols#73, lines#36,
20483         clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^,
20484 cad68-2|cgc2|cad68 basic monitor transparent mode size 2 chars,
20485         OTbs, am,
20486         cols#85, lines#39,
20487         clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^, kcub1=\E3,
20488         kcud1=\E2, kcuf1=\E4, kcuu1=\E1, kf1=\E5, kf2=\E6, kf3=\E7,
20489         kf4=\E8, rmso=\Em^C, smso=\Em^L,
20490 cops10|cops|cops-10|cops 10,
20491         am, bw,
20492         cols#80, lines#24,
20493         bel=^G, clear=\030$<30/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
20494         cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^W, el=^V,
20495         ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
20496         khome=^Y,
20497 # (d132: removed duplicate :ic=\E5:,
20498 # merged in capabilities from a BRL entry -- esr)
20499 d132|datagraphix|datagraphix 132a,
20500         da, db, in,
20501         cols#80, lines#30,
20502         bel=^G, clear=^L, cnorm=\Em\En, cr=^M, cub1=^H, cud1=^J,
20503         cuf1=\EL, cup=\E8%i%p1%3d%p2%3d, cuu1=\EK, cvvis=\Ex,
20504         dch1=\E6, home=\ET, ht=^I, ich1=\E5, il1=\E3, ind=^J, kbs=^H,
20505         kcub1=^H, kcud1=^J, nel=^M^J, ri=\Ew,
20506 # The d800 was an early portable terminal from c.1984-85 that looked a lot
20507 # like the original Compaq `lunchbox' portable (but no handle).  It had a vt220
20508 # mode (which is what this entry looks like) and several other lesser-known
20509 # emulations.
20510 d800|Direct 800/A,
20511         OTbs, am, da, db, msgr, xhp,
20512         cols#80, it#8, lines#24,
20513         acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
20514         bel=^G, clear=\E[1;1H\E[2J, cnorm=\E[>12h, cr=^M, cub1=^H,
20515         cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
20516         cvvis=\E[>12l, ed=\E[J, el=\E[K, ht=^I, ind=\ED, kcub1=\E[D,
20517         kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
20518         kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
20519         ri=\EM, rmacs=\E[m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
20520         smacs=\E[1m, smso=\E[7m, smul=\E[4m,
20521 digilog|digilog 333,
20522         OTbs,
20523         cols#80, lines#16,
20524         bel=^G, cr=^M, cub1=^H, cud1=^J, cuf1=^I, cuu1=^O, el=^X,
20525         home=^N, ind=^J,
20526 # The DWK was a terminal manufactured in the Soviet Union c.1986
20527 dwk|dwk-vt|dwk terminal,
20528         am,
20529         cols#80, it#8, lines#24,
20530         acsc=+\^\,Q-S.M0\177`+a\:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~_,
20531         bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
20532         cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
20533         ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EQ, ind=^J, kbs=\177,
20534         kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\Ee,
20535         kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5,
20536         kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed, knp=\Eh,
20537         kpp=\Eg, nel=^M^J, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
20538         sgr0=\EX, smacs=\EF, smso=\ET,
20539 env230|envision230|envision 230 graphics terminal,
20540         xenl@,
20541         mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
20542         sgr=\E[%?%p1%t;1%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>,
20543         use=vt100,
20544 # These execuports were impact-printer ttys with a 30- or maybe 15-cps acoustic
20545 # coupler attached, the whole rig fitting in a suitcase and more or less
20546 # portable.  Hot stuff for c.1977 :-) -- esr
20547 ep48|ep4080|execuport 4080,
20548         OTbs, am, os,
20549         cols#80,
20550         bel=^G, cr=^M, cub1=^H, cud1=^J, hd=^\, hu=^^, ind=^J,
20551 ep40|ep4000|execuport 4000,
20552         cols#136, use=ep4080,
20553 # Adam Thompson <athompso@pangea.ca> tells us:
20554 # Informer series - these are all portable units, resembling older
20555 # automatic bread-baking machines.  The terminal looks like a `clamshell'
20556 # design, but isn't.  The structure is similar to the Direct terminals,
20557 # but only half the width.  The entire unit is only about 10" wide.
20558 # It features an 8" screen (6" or 7" if you have color!), and an 9"x6"
20559 # keyboard.  All the keys are crammed together, much like some laptop
20560 # PCs today, but perhaps less well organized...all these units have a
20561 # bewildering array of plugs on the back, including a built-in modem.
20562 # The 305 was a color version of the 304; the 306 and 307 were mono and
20563 # color terminals built for IBM bisync protocols.
20564 # From: Paul Leondis <unllab@amber.berkeley.edu>
20565 ifmr|Informer D304,
20566         OTbs, am,
20567         cols#80, lines#24,
20568         clear=\EZ, cub1=^H, cud1=^J, cuf1=\EC,
20569         cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\E\\,
20570         ed=\E/, el=\EQ, home=\EH, ich1=\E[, ri=\En, rmso=\EK, sgr0=\EK,
20571         smso=\EJ,
20572 # Entry largely based on wy60 and has the features of wy60ak.
20573 opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
20574         am, bw, hs, km, mir, msgr, ul, xon,
20575         cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#80,
20576         acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
20577         cbt=\EI, civis=\E`0, clear=\E*$<100>, cnorm=\E`1, cr=^M,
20578         cub1=^H, cud1=^J, cuf1=^L, cup=\Ea%i%p1%dR%p2%dC, cuu1=^K,
20579         dch1=\EW$<11>, dim=\EGp, dl1=\ER$<5>, dsl=\Ez(\r,
20580         ed=\EY$<100>, el=\ET, fsl=^M, home=\036$<2>, ht=\011$<5>,
20581         hts=\E1, if=/usr/share/tabset/std, il1=\EE$<4>, ind=^J,
20582         ip=$<3>,
20583         is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Ed/\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177\Ezz`\E[F\177\EA1*\EZH12,
20584         kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=\E[D, kcud1=\E[B,
20585         kcuf1=\E[C, kcuu1=\E[A, kdch1=\EW, kdl1=\ER, ked=\EY,
20586         kel=\ET, kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r,
20587         kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
20588         kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
20589         kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
20590         kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
20591         mc0=\EP, mc4=^T, mc5=^R, nel=\r\n$<3>,
20592         pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
20593         pfx=\EZ1%p1%{63}%+%c%p2%s\177,
20594         pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
20595         rmacs=\EH^C, rmam=\Ed., rmcup=, rmir=\Er, rmln=\EA11,
20596         rmxon=\Ec20, rs1=\E~!\E~4$<150>, rs2=\EeF$<150>,
20597         rs3=\EwG\Ee($<150>,
20598         sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
20599         sgr0=\E(\EH\003\EG0\EcD, smacs=\EH^B, smam=\Ed/,
20600         smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177,
20601         smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(,
20602         uc=\EG8\EG0, use=adm+sgr,
20603 teletec|Teletec Datascreen,
20604         OTbs, am,
20605         cols#80, lines#24,
20606         bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^K,
20607         home=^^, ind=^J,
20608 # From: Mark Dornfeld <romwa@ucbvax.berkeley.edu>
20609 # This description is for the LANPAR Technologies VISION 3220
20610 # terminal from 1984/85.  The function key definitions k0-k5 represent the
20611 # edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
20612 # NEXT SCREEN. The key definitions k6-k9 represent the PF1 to PF4 keys.
20613 #
20614 # Kenneth Randell <kenr@datametrics.com> writes on 31 Dec 1998:
20615 # I had a couple of scopes (3221) like this once where I used to work, around
20616 # the 1987 time frame if memory serves me correctly.  These scopes were made
20617 # by an outfit called LANPAR Technologies, and were meant to me DEC VT 220
20618 # compatible.  The 3220 was a plain text terminal like the VT-220, the 3221
20619 # was a like the VT-240 (monochrome with Regis + Sixel graphics), and the 3222
20620 # was like the VT-241 (color with Regis + Sixel Graphics).  These terminals
20621 # (3221) cost about $1500 each, and one was always broken -- had to be sent
20622 # back to the shop for repairs.
20623 # The only real advantage these scopes had over the VT-240's were:
20624 # 1) They were faster in the Regis display, or at least the ones I did
20625 # 2) They had a handy debugging feature where you could split-screen the
20626 # scope, the graphics would appear on the top, and the REGIS commands would
20627 # appear on the bottom.  I don't remember the VT-240s being able to do that.
20628 # I would swear that LANPAR Technologies was in MA someplace, but since I
20629 # don't work at the same place anymore, and those terminals and manuals were
20630 # long since junked, I cannot be any more sure than that.
20631 #
20632 # (v3220: removed obsolete ":kn#10:",
20633 # I added <rmam>/<smam> based on the init string -- esr)
20634 v3220|LANPAR Vision II model 3220/3221/3222,
20635         OTbs, am, mir, xenl,
20636         cols#80, it#8, lines#24,
20637         clear=\E[H\E[J, cub1=^H, cud1=\E[B, cuf1=\E[C,
20638         cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
20639         ed=\E[J, el=\E[K, ht=^I, il1=\E[L,
20640         is2=\E>\E[?3l\E[?7h\E[?8h\E[p, kcub1=\E[D, kcud1=\E[B,
20641         kcuf1=\E[C, kcuu1=\E[A, kf0=\E[1~, kf1=\E[2~, kf2=\E[3~,
20642         kf3=\E[4~, kf4=\E[5~, kf5=\E[6~, kf6=\E[OP, kf7=\E[OQ,
20643         kf8=\E[OR, kf9=\E[OS, khome=\E[H, ri=\EM, rmam=\E[?7l,
20644         rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
20645         smam=\E[?7h, smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
20646 ######## ICH/ICH1 VERSUS RMIR/SMIR
20647 #
20648 # Some non-curses applications get confused if both ich/ich1 and rmir/smir
20649 # are present; the symptom is doubled characters in an update using insert.
20650 # These applications are technically correct; in both 4.3BSD termcap and
20651 # terminfo, you're not actually supposed to specify both ich/ich1 and rmir/smir
20652 # unless the terminal needs both.  To my knowledge, no terminal still in this
20653 # file requires both other than the very obsolete dm2500.
20654 #
20655 # For ncurses-based applications this is not a problem, as ncurses uses
20656 # one or the other as appropriate but never mixes the two.  Therefore we
20657 # have not corrected entries like `linux' and `xterm' that specify both.
20658 # If you see doubled characters from these, use the linux-nic and xterm-nic
20659 # entries that suppress ich/ich1.  And upgrade to ncurses!
20660 #
20661
20662 ######## VT100/ANSI/ISO 6429/ECMA-48/PC-TERM TERMINAL STANDARDS
20663 #
20664 # ANSI X3.64 has been withdrawn and replaced by ECMA-48.  The ISO 6429 and
20665 # ECMA-48 standards are said to be almost identical, but are not the same
20666 # as X3.64 (though for practical purposes they are close supersets of it).
20667 #
20668 # You can obtain ECMA-48 for free by sending email to helpdesk@ecma.ch
20669 # requesting the standard(s) you want (i.e. ECMA-48, "Control Functions for
20670 # Coded Character Sets"), include your snail-mail address, and you should
20671 # receive the document in due course.  Don't expect an email acknowledgement.
20672 #
20673 # Related standards include "X3.4-1977: American National Standard Code for
20674 # Information Interchange" (the ASCII standard) and "X3.41.1974:
20675 # Code-Extension Techniques for Use with the 7-Bit Coded Character Set of
20676 # American National Standard for Information Interchange."  I believe (but
20677 # am not certain) that these are effectively identical to ECMA-6 and ECMA-35
20678 # respectively.
20679 #
20680
20681 #### VT100/ANSI/ECMA-48
20682 #
20683 # ANSI Standard (X3.64) Control Sequences for Video Terminals and Peripherals
20684 # and ECMA-48 Control Functions for Coded Character Sets.
20685 #
20686 # Much of the content of this comment is adapted from a table prepared by
20687 # Richard Shuford, based on a 1984 Byte article.  Terminfo correspondences,
20688 # discussion of some terminfo-related issues, and updates to capture ECMA-48
20689 # have been added.  Control functions described in ECMA-48 only are tagged
20690 # with * after their names.
20691 #
20692 # The table is a complete list of the defined ANSI X3.64/ECMA-48 control
20693 # sequences.  In the main table, \E stands for an escape (\033) character,
20694 # SPC for space.  Pn stands for a single numeric parameter to be inserted
20695 # in decimal ASCII.  Ps stands for a list of such parameters separated by
20696 # semicolons.  Parameter meanings for most parametrized sequences are
20697 # decribed in the notes.
20698 #
20699 # Sequence     Sequence                             Parameter   or
20700 # Mnemonic     Name              Sequence           Value      Mode   terminfo
20701 # -----------------------------------------------------------------------------
20702 # APC  Applicatn Program Command \E _                -         Delim  -
20703 # BEL  Bell *                    ^G                  -         -      bel
20704 # BPH  Break Permitted Here *    \E B                -         *      -
20705 # BS   Backpace *                ^H                  -         EF     -
20706 # CAN  Cancel *                  ^X                  -         -      -   (A)
20707 # CBT  Cursor Backward Tab       \E [ Pn Z           1         eF     cbt
20708 # CCH  Cancel Previous Character \E T                -         -      -
20709 # CHA  Cursor Horizntal Absolute \E [ Pn G           1         eF     hpa (B)
20710 # CHT  Cursor Horizontal Tab     \E [ Pn I           1         eF     tab (C)
20711 # CMD  Coding Method Delimiter * \E
20712 # CNL  Cursor Next Line          \E [ Pn E           1         eF     nel (D)
20713 # CPL  Cursor Preceding Line     \E [ Pn F           1         eF     -
20714 # CPR  Cursor Position Report    \E [ Pn ; Pn R      1, 1      -      -   (E)
20715 # CSI  Control Sequence Intro    \E [                -         Intro  -
20716 # CTC  Cursor Tabulation Control \E [ Ps W           0         eF     -   (F)
20717 # CUB  Cursor Backward           \E [ Pn D           1         eF     cub
20718 # CUD  Cursor Down               \E [ Pn B           1         eF     cud
20719 # CUF  Cursor Forward            \E [ Pn C           1         eF     cuf
20720 # CUP  Cursor Position           \E [ Pn ; Pn H      1, 1      eF     cup (G)
20721 # CUU  Cursor Up                 \E [ Pn A           1         eF     cuu
20722 # CVT  Cursor Vertical Tab       \E [ Pn Y           -         eF     -   (H)
20723 # DA   Device Attributes         \E [ Pn c           0         -      -
20724 # DAQ  Define Area Qualification \E [ Ps o           0         -      -
20725 # DCH  Delete Character          \E [ Pn P           1         eF     dch
20726 # DCS  Device Control String     \E P                -         Delim  -
20727 # DL   Delete Line               \E [ Pn M           1         eF     dl
20728 # DLE  Data Link Escape *        ^P                  -         -      -
20729 # DMI  Disable Manual Input      \E \                -         Fs     -
20730 # DSR  Device Status Report      \E [ Ps n           0         -      -   (I)
20731 # DTA  Dimension Text Area *     \E [ Pn ; Pn SPC T  -         PC     -
20732 # EA   Erase in Area             \E [ Ps O           0         eF     -   (J)
20733 # ECH  Erase Character           \E [ Pn X           1         eF     ech
20734 # ED   Erase in Display          \E [ Ps J           0         eF     ed  (J)
20735 # EF   Erase in Field            \E [ Ps N           0         eF     -
20736 # EL   Erase in Line             \E [ Ps K           0         eF     el  (J)
20737 # EM   End of Medium *           ^Y                  -         -      -
20738 # EMI  Enable Manual Input       \E b                          Fs     -
20739 # ENQ  Enquire                   ^E                  -         -      -
20740 # EOT  End Of Transmission       ^D                  -         *      -
20741 # EPA  End of Protected Area     \E W                -         -      -   (K)
20742 # ESA  End of Selected Area      \E G                -         -      -
20743 # ESC  Escape                    ^[                  -         -      -
20744 # ETB  End Transmission Block    ^W                  -         -      -
20745 # ETX  End of Text               ^C                  -         -      -
20746 # FF   Form Feed                 ^L                  -         -      -
20747 # FNK  Function Key *            \E [ Pn SPC W       -         -      -
20748 # GCC  Graphic Char Combination* \E [ Pn ; Pn SPC B  -         -      -
20749 # FNT  Font Selection            \E [ Pn ; Pn SPC D  0, 0      FE     -
20750 # GSM  Graphic Size Modify       \E [ Pn ; Pn SPC B  100, 100  FE     -   (L)
20751 # GSS  Graphic Size Selection    \E [ Pn SPC C       none      FE     -
20752 # HPA  Horz Position Absolute    \E [ Pn `           1         FE     -   (B)
20753 # HPB  Char Position Backward    \E [ j              1         FE     -
20754 # HPR  Horz Position Relative    \E [ Pn a           1         FE     -   (M)
20755 # HT   Horizontal Tab *          ^I                  -         FE     -   (N)
20756 # HTJ  Horz Tab w/Justification  \E I                -         FE     -
20757 # HTS  Horizontal Tab Set        \E H                -         FE     hts
20758 # HVP  Horz & Vertical Position  \E [ Pn ; Pn f      1, 1      FE     -   (G)
20759 # ICH  Insert Character          \E [ Pn @           1         eF     ich
20760 # IDCS ID Device Control String  \E [ SPC O          -         *      -
20761 # IGS  ID Graphic Subrepertoire  \E [ SPC M          -         *      -
20762 # IL   Insert Line               \E [ Pn L           1         eF     il
20763 # IND  Index                     \E D                -         FE     -
20764 # INT  Interrupt                 \E a                -         Fs     -
20765 # JFY  Justify                   \E [ Ps SPC F       0         FE     -
20766 # IS1  Info Separator #1 *       ^_                  -         *      -
20767 # IS2  Info Separator #1 *       ^^                  -         *      -
20768 # IS3  Info Separator #1 *       ^]                  -         *      -
20769 # IS4  Info Separator #1 *       ^\                  -         *      -
20770 # LF   Line Feed                 ^J                  -         -      -
20771 # LS1R Locking Shift Right 1 *   \E ~                -         -      -
20772 # LS2  Locking Shift 2 *         \E n                -         -      -
20773 # LS2R Locking Shift Right 2 *   \E }                -         -      -
20774 # LS3  Locking Shift 3 *         \E o                -         -      -
20775 # LS3R Locking Shift Right 3 *   \E |                -         -      -
20776 # MC   Media Copy                \E [ Ps i           0         -      -   (S)
20777 # MW   Message Waiting           \E U                -         -      -
20778 # NAK  Negative Acknowledge *    ^U                  -         *      -
20779 # NBH  No Break Here *           \E C                -         -      -
20780 # NEL  Next Line                 \E E                -         FE     nel (D)
20781 # NP   Next Page                 \E [ Pn U           1         eF     -
20782 # NUL  Null *                    ^@                  -         -      -
20783 # OSC  Operating System Command  \E ]                -         Delim  -
20784 # PEC  Pres. Expand/Contract *   \E Pn SPC Z         0         -      -
20785 # PFS  Page Format Selection *   \E Pn SPC J         0         -      -
20786 # PLD  Partial Line Down         \E K                -         FE     -   (T)
20787 # PLU  Partial Line Up           \E L                -         FE     -   (U)
20788 # PM   Privacy Message           \E ^                -         Delim  -
20789 # PP   Preceding Page            \E [ Pn V           1         eF     -
20790 # PPA  Page Position Absolute *  \E [ Pn SPC P       1         FE     -
20791 # PPB  Page Position Backward *  \E [ Pn SPC R       1         FE     -
20792 # PPR  Page Position Forward *   \E [ Pn SPC Q       1         FE     -
20793 # PTX  Parallel Texts *          \E [ \              -         -      -
20794 # PU1  Private Use 1             \E Q                -         -      -
20795 # PU2  Private Use 2             \E R                -         -      -
20796 # QUAD Typographic Quadding      \E [ Ps SPC H       0         FE     -
20797 # REP  Repeat Char or Control    \E [ Pn b           1         -      rep
20798 # RI   Reverse Index             \E M                -         FE     -   (V)
20799 # RIS  Reset to Initial State    \E c                -         Fs     -
20800 # RM   Reset Mode *              \E [ Ps l           -         -      -   (W)
20801 # SACS Set Add. Char. Sep. *     \E [ Pn SPC /       0         -      -
20802 # SAPV Sel. Alt. Present. Var. * \E [ Ps SPC ]       0         -      -   (X)
20803 # SCI  Single-Char Introducer    \E Z                -         -      -
20804 # SCO  Sel. Char. Orientation *  \E [ Pn ; Pn SPC k  -         -      -
20805 # SCS  Set Char. Spacing *       \E [ Pn SPC g       -         -      -
20806 # SD   Scroll Down               \E [ Pn T           1         eF     rin
20807 # SDS  Start Directed String *   \E [ Pn ]           1         -      -
20808 # SEE  Select Editing Extent     \E [ Ps Q           0         -      -   (Y)
20809 # SEF  Sheet Eject & Feed *      \E [ Ps ; Ps SPC Y  0,0       -      -
20810 # SGR  Select Graphic Rendition  \E [ Ps m           0         FE     sgr (O)
20811 # SHS  Select Char. Spacing *    \E [ Ps SPC K       0         -      -
20812 # SI   Shift In                  ^O                  -         -      -   (P)
20813 # SIMD Sel. Imp. Move Direct. *  \E [ Ps ^           -         -      -
20814 # SL   Scroll Left               \E [ Pn SPC @       1         eF     -
20815 # SLH  Set Line Home *           \E [ Pn SPC U       -         -      -
20816 # SLL  Set Line Limit *          \E [ Pn SPC V       -         -      -
20817 # SLS  Set Line Spacing *        \E [ Pn SPC h       -         -      -
20818 # SM   Select Mode               \E [ Ps h           none      -      -   (W)
20819 # SO   Shift Out                 ^N                  -         -      -   (Q)
20820 # SOH  Start Of Heading *        ^A                  -         -      -
20821 # SOS  Start of String *         \E X                -         -      -
20822 # SPA  Start of Protected Area   \E V                -         -      -   (Z)
20823 # SPD  Select Pres. Direction *  \E [ Ps ; Ps SPC S  0,0       -      -
20824 # SPH  Set Page Home *           \E [ Ps SPC G       -         -      -
20825 # SPI  Spacing Increment         \E [ Pn ; Pn SPC G  none      FE     -
20826 # SPL  Set Page Limit *          \E [ Ps SPC j       -         -      -
20827 # SPQR Set Pr. Qual. & Rapid. *  \E [ Ps SPC X       0         -      -
20828 # SR   Scroll Right              \E [ Pn SPC A       1         eF     -
20829 # SRCS Set Reduced Char. Sep. *  \E [ Pn SPC f       0         -      -
20830 # SRS  Start Reversed String *   \E [ Ps [           0         -      -
20831 # SSA  Start of Selected Area    \E F                -         -      -
20832 # SSU  Select Size Unit *        \E [ Pn SPC I       0         -      -
20833 # SSW  Set Space Width *         \E [ Pn SPC [       none      -      -
20834 # SS2  Single Shift 2 (G2 set)   \E N                -         Intro  -
20835 # SS3  Single Shift 3 (G3 set)   \E O                -         Intro  -
20836 # ST   String Terminator         \E \                -         Delim  -
20837 # STAB Selective Tabulation *    \E [ Pn SPC ^       -         -      -
20838 # STS  Set Transmit State        \E S                -         -      -
20839 # STX  Start pf Text *           ^B                  -         -      -
20840 # SU   Scroll Up                 \E [ Pn S           1         eF     indn
20841 # SUB  Substitute *              ^Z                  -         -      -
20842 # SVS  Select Line Spacing *     \E [ Pn SPC \       1         -      -
20843 # SYN  Synchronous Idle *        ^F                  -         -      -
20844 # TAC  Tabul. Aligned Centered * \E [ Pn SPC b       -         -      -
20845 # TALE Tabul. Al. Leading Edge * \E [ Pn SPC a       -         -      -
20846 # TATE Tabul. Al. Trailing Edge* \E [ Pn SPC `       -         -      -
20847 # TBC  Tab Clear                 \E [ Ps g           0         FE     tbc
20848 # TCC  Tabul. Centered on Char * \E [ Pn SPC c       -         -      -
20849 # TSR  Tabulation Stop Remove  * \E [ Pn SPC d       -         FE     -
20850 # TSS  Thin Space Specification  \E [ Pn SC E        none      FE     -
20851 # VPA  Vert. Position Absolute   \E [ Pn d           1         FE     vpa
20852 # VPB  Line Position Backward *  \E [ Pn k           1         FE     -
20853 # VPR  Vert. Position Relative   \E [ Pn e           1         FE     -   (R)
20854 # VT   Vertical Tabulation *     ^K                  -         FE     -
20855 # VTS  Vertical Tabulation Set   \E J                -         FE     -
20856 #
20857 # ---------------------------------------------------------------------------
20858 #
20859 # Notes:
20860 #
20861 # Some control characters are listed in the ECMA-48 standard without
20862 # being assigned functions relevant to terminal control there (they
20863 # referred to other standards such as ISO 1745 or ECMA-35).  They are listed
20864 # here anyway for completeness.
20865 #
20866 # (A) ECMA-48 calls this "CancelCharacter" but retains the CCH abbreviation.
20867 #
20868 # (B) There seems to be some confusion abroad between CHA and HPA.  Most
20869 # `ANSI' terminals accept the CHA sequence, not the HPA. but terminfo calls
20870 # the capability (hpa).  ECMA-48 calls this "Cursor Character Absolute" but
20871 # preserved the CHA abbreviation.
20872 #
20873 # (C) CHT corresponds to terminfo (tab).  Usually it has the value ^I.
20874 # Occasionally (as on, for example, certain HP terminals) this has the HTJ
20875 # value.  ECMA-48 calls this "Cursor Forward Tabulation" but preserved the
20876 # CHT abbreviation.
20877 #
20878 # (D) terminfo (nel) is usually \r\n rather than ANSI \EE.
20879 #
20880 # (E) ECMA-48 calls this "Active Position Report" but preserves the CPR
20881 # abbreviation.
20882 #
20883 # (F) CTC parameter values: 0 = set char tab, 1 = set line tab, 2 = clear
20884 # char tab, 3 = clear line tab, 4 = clear all char tabs on current line,
20885 # 5 = clear all char tabs, 6 = clear all line tabs.
20886 #
20887 # (G) CUP and HVP are identical in effect.  Some ANSI.SYS versions accept
20888 # HVP, but always allow CUP as an alternate.  ECMA-48 calls HVP "Character
20889 # Position Absolute" but retains the HVP abbreviation.
20890 #
20891 # (H) ECMA calls this "Cursor Line Tabulation" but preserves the CVT
20892 # abbreviation.
20893 #
20894 # (I) DSR parameter values: 0 = ready, 1 = busy, 2 = busy, will send DSR
20895 # later, 3 = malfunction, 4 = malfunction, will send DSR later, 5 = request
20896 # DSR, 6 = request CPR response.
20897 #
20898 # (J) ECMA calls ED "Erase In Page". EA/ED/EL parameters: 0 = clear to end,
20899 # 1 = clear from beginning, 2 = clear.
20900 #
20901 # (K) ECMA calls this "End of Guarded Area" but preserves the EPA abbreviation.
20902 #
20903 # (L) The GSM parameters are vertical and horizontal parameters to scale by.
20904 #
20905 # (M) Some ANSI.SYS versions accept HPR, but more commonly `ANSI' terminals
20906 # use CUF for this function and ignore HPR.  ECMA-48 calls this "Character
20907 # Position Relative" but retains the HPR abbreviation.
20908 #
20909 # (N) ECMA-48 calls this "Character Tabulation" but retains the HT
20910 # abbreviation.
20911 #
20912 # (O) SGR parameter values: 0 = default mode (attributes off), 1 = bold,
20913 # 2 = dim, 3 = italicized, 4 = underlined, 5 = slow blink, 6 = fast blink,
20914 # 7 = reverse video, 8 = invisible, 9 = crossed-out (marked for deletion),
20915 # 10 = primary font, 10 + n (n in 1..9) = nth alternative font, 20 = Fraktur,
20916 # 21 = double underline, 22 = turn off 2, 23 = turn off 3, 24 = turn off 4,
20917 # 25 = turn off 5, 26 = proportional spacing, 27 = turn off 7, 28 = turn off
20918 # 8, 29 = turn off 9, 30 = black fg, 31 = red fg, 32 = green fg, 33 = yellow
20919 # fg, 34 = blue fg, 35 = magenta fg, 36 = cyan fg, 37 = white fg, 38 = set
20920 # fg color as in CCIT T.416, 39 = set default fg color, 40 = black bg
20921 # 41 = red bg, 42 = green bg, 43 = yellow bg, 44 = blue bg, 45 = magenta bg,
20922 # 46 = cyan bg, 47 = white bg, 48 = set bg color as in CCIT T.416, 39 = set
20923 # default bg color, 50 = turn off 26, 51 = framed, 52 = encircled, 53 =
20924 # overlined, 54 = turn off 51 & 52, 55 = not overlined, 56-59 = reserved,
20925 # 61-65 = variable highlights for ideograms.
20926 #
20927 # (P) SI is also called LSO, Locking Shift Zero.
20928 #
20929 # (Q) SI is also called LS1, Locking Shift One.
20930 #
20931 # (R) Some ANSI.SYS versions accept VPR, but more commonly `ANSI' terminals
20932 # use CUD for this function and ignore VPR.  ECMA calls it `Line Position
20933 # Absolute' but retains the VPA abbreviation.
20934 #
20935 # (S) MC parameters: 0 = start xfer to primary aux device, 1 = start xfer from
20936 # primary aux device, 2 = start xfer to secondary aux device, 3 = start xfer
20937 # from secondary aux device, 4 = stop relay to primary aux device, 5 =
20938 # start relay to primary aux device, 6 = stop relay to secondary aux device,
20939 # 7 = start relay to secondary aux device.
20940 #
20941 # (T) ECMA-48 calls this "Partial Line Forward" but retains the PLD
20942 # abbreviation.
20943 #
20944 # (U) ECMA-48 calls this "Partial Line Backward" but retains the PLU
20945 # abbreviation.
20946 #
20947 # (V) ECMA-48 calls this "Reverse Line Feed" but retains the RI abbreviation.
20948 #
20949 # (W) RM/SM modes are as follows: 1 = Guarded Area Transfer Mode (GATM),
20950 # 2 = Keyboard Action Mode (KAM), 3 = Control Representation Mode (CRM),
20951 # 4 = Insertion Replacement Mode, 5 = Status Report Transfer Mode (SRTM),
20952 # 6 = Erasure Mode (ERM), 7 = Line Editing Mode (LEM), 8 = Bi-Directional
20953 # Support Mode (BDSM), 9 = Device Component Select Mode (DCSM),
20954 # 10 = Character Editing Mode (HEM), 11 = Positioning Unit Mode (PUM),
20955 # 12 = Send/Receive Mode, 13 = Format Effector Action Mode (FEAM),
20956 # 14 = Format Effector Transfer Mode (FETM), 15 = Multiple Area Transfer
20957 # Mode (MATM), 16 = Transfer Termination Mode, 17 = Selected Area Transfer
20958 # Mode, 18 = Tabulation Stop Mode, 19 = Editing Boundary Mode, 20 = Line Feed
20959 # New Line Mode (LF/NL), Graphic Rendition Combination Mode (GRCM), 22 =
20960 # Zero Default Mode (ZDM).  The EBM and LF/NL modes have actually been removed
20961 # from ECMA-48's 5th edition but are listed here for reference.
20962 #
20963 # (X) Select Alternate Presentation Variants is used only for non-Latin
20964 # alphabets.
20965 #
20966 # (Y) "Select Editing Extent" (SEE) was ANSI "Select Edit Extent Mode" (SEM).
20967 #
20968 # (Z) ECMA-48 calls this "Start of Guarded Area" but retains the SPA
20969 # abbreviation.
20970 #
20971 # ---------------------------------------------------------------------------
20972 #
20973 # Abbreviations:
20974 #
20975 # Intro  an Introducer of some kind of defined sequence; the normal 7-bit
20976 #        X3.64 Control Sequence Introducer is the two characters "Escape ["
20977 #
20978 # Delim  a Delimiter
20979 #
20980 # x/y    identifies a character by position in the ASCII table (column/row)
20981 #
20982 # eF     editor function (see explanation)
20983 #
20984 # FE     format effector (see explanation)
20985 #
20986 # F      is a Final character in
20987 #             an Escape sequence (F from 3/0 to 7/14 in the ASCII table)
20988 #             a control sequence (F from 4/0 to 7/14)
20989 #
20990 # Gs     is a graphic character appearing in strings (Gs ranges from
20991 #        2/0 to 7/14) in the ASCII table
20992 #
20993 # Ce     is a control represented as a single bit combination in the C1 set
20994 #        of controls in an 8-bit character set
20995 #
20996 # C0     the familiar set of 7-bit ASCII control characters
20997 #
20998 # C1     roughly, the set of control chars available only in 8-bit systems.
20999 #        This is too complicated to explain fully here, so read Jim Fleming's
21000 #        article in the February 1983 BYTE, especially pages 214 through 224.
21001 #
21002 # Fe     is a Final character of a 2-character Escape sequence that has an
21003 #        equivalent representation in an 8-bit environment as a Ce-type
21004 #        (Fe ranges from 4/0 to 5/15)
21005 #
21006 # Fs     is a Final character of a 2-character Escape sequence that is
21007 #        standardized internationally with identical representation in 7-bit
21008 #        and 8-bit environments and is independent of the currently
21009 #        designated C0 and C1 control sets (Fs ranges from 6/0 to 7/14)
21010 #
21011 # I      is an Intermediate character from 2/0 to 2/15 (inclusive) in the
21012 #        ASCII table
21013 #
21014 # P      is a parameter character from 3/0 to 3/15 (inclusive) in the ASCII
21015 #        table
21016 #
21017 # Pn     is a numeric parameter in a control sequence, a string of zero or
21018 #        more characters ranging from 3/0 to 3/9 in the ASCII table
21019 #
21020 # Ps     is a variable number of selective parameters in a control sequence
21021 #        with each selective parameter separated from the other by the code
21022 #        3/11 (which usually represents a semicolon); Ps ranges from
21023 #        3/0 to 3/9 and includes 3/11
21024 #
21025 # *      Not relevant to terminal control, listed for completeness only.
21026 #
21027 # Format Effectors versus Editor Functions
21028 #
21029 # A format effector specifies how following output is to be displayed.
21030 # An editor function allows you to modify the display.  Informally
21031 # format effectors may be destructive; format effectors should not be.
21032 #
21033 # For instance, a format effector that moves the "active position" (the
21034 # cursor or equivalent) one space to the left would be useful when you want to
21035 # create an overstrike, a compound character made of two standard characters
21036 # overlaid. Control-H, the Backspace character, is actually supposed to be a
21037 # format effector, so you can do this. But many systems use it in a
21038 # nonstandard fashion, as an editor function, deleting the character to the
21039 # left of the cursor and moving the cursor left. When Control-H is assumed to
21040 # be an editor function, you cannot predict whether its use will create an
21041 # overstrike unless you also know whether the output device is in an "insert
21042 # mode" or an "overwrite mode". When Control-H is used as a format effector,
21043 # its effect can always be predicted. The familiar characters carriage
21044 # return, linefeed, formfeed, etc., are defined as format effectors.
21045 #
21046 # NOTES ON THE DEC VT100 IMPLEMENTATION
21047 #
21048 # Control sequences implemented in the VT100 are as follows:
21049 #
21050 #      CPR, CUB, CUD, CUF, CUP, CUU, DA, DSR, ED, EL, HTS, HVP, IND,
21051 #      LNM, NEL, RI, RIS, RM, SGR, SM, TBC
21052 #
21053 # plus several private DEC commands.
21054 #
21055 # Erasing parts of the display (EL and ED) in the VT100 is performed thus:
21056 #
21057 #      Erase from cursor to end of line           Esc [ 0 K    or Esc [ K
21058 #      Erase from beginning of line to cursor     Esc [ 1 K
21059 #      Erase line containing cursor               Esc [ 2 K
21060 #      Erase from cursor to end of screen         Esc [ 0 J    or Esc [ J
21061 #      Erase from beginning of screen to cursor   Esc [ 1 J
21062 #      Erase entire screen                        Esc [ 2 J
21063 #
21064 # Some brain-damaged terminal/emulators respond to Esc [ J as if it were
21065 # Esc [ 2 J, but this is wrong; the default is 0.
21066 #
21067 # The VT100 responds to receiving the DA (Device Attributes) control
21068 #
21069 #      Esc [ c    (or Esc [ 0 c)
21070 #
21071 # by transmitting the sequence
21072 #
21073 #      Esc [ ? l ; Ps c
21074 #
21075 # where Ps is a character that describes installed options.
21076 #
21077 # The VT100's cursor location can be read with the DSR (Device Status
21078 # Report) control
21079 #
21080 #      Esc [ 6 n
21081 #
21082 # The VT100 reports by transmitting the CPR sequence
21083 #
21084 #      Esc [ Pl ; Pc R
21085 #
21086 # where Pl is the line number and Pc is the column number (in decimal).
21087 #
21088 # The specification for the DEC VT100 is document EK-VT100-UG-003.
21089
21090 #### ANSI.SYS
21091 #
21092 # Here is a description of the color and attribute controls supported in the
21093 # the ANSI.SYS driver under MS-DOS.  Most console drivers and ANSI
21094 # terminal emulators for Intel boxes obey these.  They are a proper subset
21095 # of the ECMA-48 escapes.
21096 #
21097 # 0     all attributes off
21098 # 1     foreground bright
21099 # 4     underscore on
21100 # 5     blink on/background bright (not reliable with brown)
21101 # 7     reverse-video
21102 # 8     set blank (non-display)
21103 # 10    set primary font
21104 # 11    set first alternate font (on PCs, display ROM characters 1-31)
21105 # 12    set second alternate font (on PCs, display IBM high-half chars)
21106 #
21107 #                       Color attribute sets
21108 # 3n    set foreground color       / 0=black, 1=red,     2=green, 3=brown,
21109 # 4n    set background color       \ 4=blue,  5=magenta, 6=cyan,  7=white
21110 # Bright black becomes gray.  Bright brown becomes yellow,
21111 # These coincide with the prescriptions of the ISO 6429/ECMA-48 standard.
21112 #
21113 # * If the 5 attribute is on and you set a background color (40-47) it is
21114 #   supposed to enable bright background.
21115 #
21116 # * Many VGA cards (such as the Paradise and compatibles) do the wrong thing
21117 #   when you try to set a "bright brown" (yellow) background with attribute
21118 #   5 (you get a blinking yellow foreground instead).  A few displays
21119 #   (including the System V console) support an attribute 6 that undoes this
21120 #   braindamage (this is required by iBCS2).
21121 #
21122 # * Some older versions of ANSI.SYS have a bug that causes thems to require
21123 #   ESC [ Pn k as EL rather than the ANSI ESC [ Pn K.  (This is not ECMA-48
21124 #   compatible.)
21125
21126 #### Intel Binary Compatibility Standard
21127 #
21128 # For comparison, here are the capabilities implied by the Intel Binary
21129 # Compatibility Standard for UNIX systems (Intel order number 468366-001).
21130 # These recommendations are optional.  IBCS2 allows the leading escape to
21131 # be either the 7-bit \E[ or 8-bit \0233 introducer, in accordance with
21132 # the ANSI X.364/ISO 6429/ECMA-48 standard.  Here are the iBCS2 capabilities
21133 # (as described in figure 9-3 of the standard).  Those expressed in the ibcs2
21134 # terminfo entry are followed with the corresponding capability in parens:
21135 #
21136 #       CSI <n>k                disable (n=0) or enable (n=1) keyclick
21137 #       CSI 2h                  lock keyboard
21138 #       CSI 2i                  send screen as input
21139 #       CSI 2l                  unlock keyboard
21140 #       CSI 6m                  enable background color intensity
21141 #       CSI <0-2>c              reserved
21142 #       CSI <0-59>m             select graphic rendition
21143 #       CSI <n>;<m>H    (cup)   cursor to line n and column m
21144 #       CSI <n>;<m>f            cursor to line n and column m
21145 #       CSI <n>@        (ich)   insert characters
21146 #       CSI <n>A        (cuu)   cursor up n lines
21147 #       CSI <n>B        (cud)   cursor down n lines
21148 #       CSI <n>C        (cuu)   cursor right n characters
21149 #       CSI <n>D        (cud)   cursor left n characters
21150 #       CSI <n>E                cursor down n lines and in first column
21151 #       CSI <n>F                cursor up n lines and in first column
21152 #       CSI <n>G        (hpa)   position cursor at column n-1
21153 #       CSI <n>J        (ed)    erase in display
21154 #       CSI <n>K        (el)    erase in line
21155 #       CSI <n>L        (il)    insert line(s)
21156 #       CSI <n>P        (dch)   delete characters
21157 #       CSI <n>S        (indn)  scroll up n lines
21158 #       CSI <n>T        (rin)   scroll down n lines
21159 #       CSI <n>X        (ech)   erase characters
21160 #       CSI <n>Z        (cbt)   back up n tab stops
21161 #       CSI <n>`                cursor to column n on line
21162 #       CSI <n>a        (cuu)   cursor right n characters
21163 #       CSI <n>d        (vpa)   cursor to line n
21164 #       CSI <n>e                cursor down n lines and in first column
21165 #       CSI <n>g        (cbt)   clear all tabs
21166 #       CSI <n>z                make virtual terminal n active
21167 #       CSI ?7h         (smam)  turn automargin on
21168 #       CSI ?7l         (rmam)  turn automargin off
21169 #       CSI s                   save cursor position
21170 #       CSI u                   restore cursor position to saved value
21171 #       CSI =<c>A               set overscan color
21172 #       CSI =<c>F               set normal foreground color
21173 #       CSI =<c>G               set normal background color
21174 #       CSI =<c>H               set reverse foreground color
21175 #       CSI =<c>I               set reverse foreground color
21176 #       CSI =<c>J               set graphic foreground color
21177 #       CSI =<c>K               set graphic foreground color
21178 #       CSI =<n>g       (dispc) display n from alternate graphics character set
21179 #       CSI =<p>;<d>B           set bell parameters
21180 #       CSI =<s>;<e>C           set cursor parameters
21181 #       CSI =<x>D               enable/disable intensity of background color
21182 #       CSI =<x>E               set/clear blink vs. bold background
21183 #       CSI 7           (sc)    (sc) save cursor position
21184 #       CSI 8           (rc)    (rc) restore cursor position to saved value
21185 #       CSI H           (hts)   (hts) set tab stop
21186 #       CSI Q<n><string>        define function key string
21187 #                               (string must begin and end with delimiter char)
21188 #       CSI c           (clear) clear screen
21189 #
21190 # The lack of any specification for attributes in SGR (among other things)
21191 # makes this a wretchedly weak standard. The table above is literally
21192 # everything iBSC2 has to say about terminal escape sequences; there is
21193 # no further discussion of their meaning or how to set the parameters
21194 # in these sequences at all.
21195 #
21196
21197 ######## NONSTANDARD CAPABILITY TRANSLATIONS USED IN THIS FILE
21198 #
21199 # The historical termcap file entries were written primarily in 4.4BSD termcap.
21200 # The 4.4BSD termcap set was substantially larger than the original 4.1BSD set,
21201 # with the extension names chosen for compatibility with the termcap names
21202 # assigned in System V terminfo.  There are some variant extension sets out
21203 # there.  We try to describe them here.
21204 #
21205 # XENIX extensions:
21206 #
21207 # The XENIX extensions include a set of function-key capabilities as follows:
21208 #
21209 #       code    XENIX variable name     terminfo name   name clashes?
21210 #       ----    -------------------     -------------   -----------------------
21211 #       CL      key_char_left
21212 #       CR      key_char_right
21213 #       CW      key_change_window                       create_window
21214 #       EN      key_end                 kend
21215 #       HM      key_home                khome
21216 #       HP      ??
21217 #       LD      key_delete_line         kdl1
21218 #       LF      key_linefeed                            label_off
21219 #       NU      key_next_unlocked_cell
21220 #       PD      key_page_down           knp
21221 #       PL      ??
21222 #       PN      start_print             mc5
21223 #       PR      ??
21224 #       PS      stop_print              mc4
21225 #       PU      key_page_up             kpp             pulse
21226 #       RC      key_recalc                              remove_clock
21227 #       RF      key_toggle_ref                          req_for_input
21228 #       RT      key_return              kent
21229 #       UP      key_up_arrow            kcuu1           parm_up_cursor
21230 #       WL      key_word_left
21231 #       WR      key_word_right
21232 #
21233 # The XENIX extensions also include the following character-set and highlight
21234 # capabilities:
21235 #
21236 #       XENIX   terminfo        function
21237 #       -----   --------        ------------------------------
21238 #       GS      smacs           start alternate character set
21239 #       GE      rmacs           end alternate character set
21240 #       GG                      :as:/:ae: glitch (analogous to :sg:/:ug:)
21241 #       bo      blink           begin blink (not used in /etc/termcap)
21242 #       be                      end blink (not used in /etc/termcap)
21243 #       bb                      blink glitch  (not used in /etc/termcap)
21244 #       it      dim             begin dim (not used in /etc/termcap)
21245 #       ie                      end dim (not used in /etc/termcap)
21246 #       ig                      dim glitch  (not used in /etc/termcap)
21247 #
21248 # Finally, XENIX also used the following forms-drawing capabilities:
21249 #
21250 #       single  double  type             ASCII approximation
21251 #       ------  ------  -------------    -------------------
21252 #       GV      Gv      vertical line             |
21253 #       GH      Gv      horizontal line       -   _
21254 #       G1      G5      top right corner       _   |
21255 #       G2      G6      top left corner       |
21256 #       G3      G7      bottom left corner         |_
21257 #       G4      G8      bottom right corner   _|
21258 #       GD      Gd      down-tick character        T
21259 #       GL      Gl      left-tick character   -|
21260 #       GR      Gr      right-tick character       |-
21261 #       GC      Gc      middle intersection   -|-
21262 #       GU      Gu      up-tick character          _|_
21263 #
21264 # These were invented to take advantage of the IBM PC ROM character set.  One
21265 # can compose an acsc string from the single-width characters as follows
21266 #       "j{G4}k{G1}l{G2}m{G3}q{GH}x{GV}t{GR}u{GL}v{GU}w{GD}n{GC}"
21267 # When translating a termcap file, ncurses tic will do this automatically.
21268 # The double forms characters don't fit the SVr4 terminfo model.
21269 #
21270 # AT&T Extensions:
21271 #
21272 # The old AT&T 5410, 5420, 5425, pc6300plus, 610, and s4 entries used a set of
21273 # nonstandard capabilities.  Its signature is the KM capability, used to name
21274 # some sort of keymap file.  EE, BO, CI, CV, XS, DS, FL and FE are in this
21275 # set.  Comments in the original, and a little cross-checking with other AT&T
21276 # documentation, seem to establish that BO=:mr: (start reverse video), DS=:mh:
21277 # (start dim), XS=:mk: (secure/invisible mode), EE=:me: (end highlights),
21278 # FL=:LO: (enable soft labels), FE=:LF: (disable soft labels), CI=:vi: (make
21279 # cursor invisible), and CV=:ve: (make cursor normal).
21280 #
21281 # HP Extensions
21282 #
21283 # The HP library (as of mid-1995, their term.h file version 70.1) appears to
21284 # have the System V capabilities up to SVr1 level.  After that, it supports
21285 # two nonstandard caps meml and memu corresponding to the old termcap :ml:,
21286 # :mu: capabilities.  After that, it supports caps plab_norm, label_on,
21287 # label_off, and key_f11..key_f63 capabilities like SVr4's.  This makes the
21288 # HP binary format incompatible with SVr4's.
21289 #
21290 # IBM Extensions
21291 #
21292 # There is a set of nonstandard terminfos used by IBM's AIX operating system.
21293 # The AIX terminfo library diverged from SVr1 terminfo, and replaces all
21294 # capabilities following prtr_non with the following special capabilties:
21295 # box[12], batt[12], colb[0123456789], colf[0123456789], f[01234567], kbtab,
21296 # kdo, kcmd, kcpn, kend, khlp, knl, knpn, kppn, kppn, kquit, ksel, kscl, kscr,
21297 # ktab, kmpf[123456789], apstr, ksf1..ksf10, kf11...kf63, kact, topl, btml,
21298 # rvert, lvert.   Some of these are identical to XPG4/SVr4 equivalents:
21299 # kcmd, kend, khlp, and kf11...kf63.  Two others (kbtab and ksel) can be
21300 # renamed (to kcbt and kslt).  The places in the box[12] capabilities
21301 # correspond to acsc chars, here is the mapping:
21302 #
21303 #       box1[0]  = ACS_ULCORNER
21304 #       box1[1]  = ACS_HLINE
21305 #       box1[2]  = ACS_URCORNER
21306 #       box1[3]  = ACS_VLINE
21307 #       box1[4]  = ACS_LRCORNER
21308 #       box1[5]  = ACS_LLCORNER
21309 #       box1[6]  = ACS_TTEE
21310 #       box1[7]  = ACS_RTEE
21311 #       box1[8]  = ACS_BTEE
21312 #       box1[9]  = ACS_LTEE
21313 #       box1[10] = ACS_PLUS
21314 #
21315 # The box2 characters are the double-line versions of these forms graphics.
21316 # The AIX binary terminfo format is incompatible with SVr4's.
21317 #
21318 # Iris console extensions:
21319 #
21320 # HS is half-intensity start; HE is half-intensity end
21321 # CT is color terminal type (for Curses & rogue)
21322 # CP is color change escape sequence
21323 # CZ are color names (for Curses & rogue)
21324 #
21325 # The ncurses tic utility recognizes HS as an alias for mh <dim>.
21326 #
21327 # TC Extensions:
21328 #
21329 # There is a set of extended termcaps associated with something
21330 # called the "Terminal Control" or TC package created by MainStream Systems,
21331 # Winfield Kansas.  This one also uses GS/GE for as/ae, and also uses
21332 # CF for civis and CO for cvvis.  Finally, they define a boolean :ct:
21333 # that flags color terminals.
21334 #
21335 # Extensions added after ncurses 5.0 generally use the "-x" option of tic and
21336 # infocmp to manipulate user-definable capabilities.  Those that are intended
21337 # for use in either terminfo or termcap use 2-character names.  Extended
21338 # function keys do not use 2-character names, and are available only with
21339 # terminfo.
21340 #
21341 # As of mid-2012, no other terminfo/termcap implementation than ncurses
21342 # supports this extension; termcap libraries can as noted above make limited
21343 # use of the feature.
21344 #
21345 # ncurses makes explicit checks for a few user-definable capabilities:  AX, U8,
21346 # XM.
21347 #
21348 # SCREEN Extensions:
21349 #
21350 # The screen program uses the termcap interface.  It recognizes a few useful
21351 # nonstandard capabilities.  Those are used in this file.
21352 #
21353 #       AX   (bool)  Does  understand  ANSI  set  default fg/bg color (\E[39m /
21354 #                    \E[49m).
21355 #       G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
21356 #       E0   (str)   Switch charset 'G0' back to standard charset.
21357 #       S0   (str)   Switch charset 'G0' to the specified charset.
21358 #       XT   (bool)  Terminal understands special xterm sequences  (OSC,  mouse
21359 #                    tracking).
21360 #
21361 # AX is relatively straightforward; it is interpreted by ncurses to say that
21362 # SGR 39/49 reset the terminal's foreground and background colors to their
21363 # "default".
21364 #
21365 # XT is harder, since screen's manpage does not give more details.  For that,
21366 # we must read screen's source-code.  When XT is set, screen assumes
21367 #
21368 # a) OSC 1 sets the title string, e.g., for the icon.  Recent versions of
21369 #    screen may also set the terminal's name, which is (for xterm) distinct
21370 #    from the icon name.
21371 # b) OSC 20 sets the background pixmap.  This is an rxvt feature.
21372 # c) OSC 39 and OSC 49 set the default foreground/background colors.  Again
21373 #    this is an rxvt feature.
21374 # d) certain mode settings enable the mouse: 9, 1000, 1001, 1002, 1003.
21375 #    These are from xterm, although xterm accepts mouse codes that may not be
21376 #    recognized by screen, e.g., 1005, 1006.
21377 # e) colors beyond 0..7 are implemented by xterm's aixterm-like 16-color
21378 #    sequence.  However, because screen uses only termcap, the values returned
21379 #    by Af/Ab are not usable because they rely on expressions that termcap
21380 #    does not support.  Therefore, screen uses a hardcoded string to work
21381 #    around the limitation.
21382 # f) all entries named "*xterm*" or "*rxvt*" have the bce flag set.
21383 #
21384 # The other ISO-2022 features are rarely used, but provided here to make
21385 # screen's termcap features available.
21386 #
21387 # XTERM Extensions:
21388 #
21389 # Most of the xterm extensions are for function-keys.  Since patch #94 (in
21390 # 1999), xterm has supported shift/control/alt/meta modifiers which produce
21391 # additional function-key strings.  Some other developers copied the feature,
21392 # though they did not follow xterm's lead in patch #167 (in 2002), to make
21393 # these key definitions less ambiguous.
21394 #
21395 # A few terminals provide similar functionality (sending distinct keys when
21396 # a modifier is used), including rxvt.
21397 #
21398 # These are the extended keys defined in this file:
21399 #
21400 # kDC3 kDC4 kDC5 kDC6 kDC7 kDN kDN3 kDN4 kDN5 kDN6 kDN7 kEND3 kEND4 kEND5 kEND6
21401 # kEND7 kHOM3 kHOM4 kHOM5 kHOM6 kHOM7 kIC3 kIC4 kIC5 kIC6 kIC7 kLFT3 kLFT4
21402 # kLFT5 kLFT6 kLFT7 kNXT3 kNXT4 kNXT5 kNXT6 kNXT7 kPRV3 kPRV4 kPRV5 kPRV6 kPRV7
21403 # kRIT3 kRIT4 kRIT5 kRIT6 kRIT7 kUP kUP3 kUP4 kUP5 kUP6 kUP7 ka2 kb1 kb3 kc2
21404 #
21405 # Here are the other xterm-related extensions which are used in this file:
21406 #
21407 # Cr is a string capability which resets the cursor color
21408 # Cs is a string capability which sets the cursor color to a given value.
21409 #    The single string parameter is the color name/number, according to the
21410 #    implementation.
21411 # Ms modifies the selection/clipboard.  Its parameters are
21412 #       p1 = the storage unit (clipboard, selection or cut buffer)
21413 #       p2 = the base64-encoded clipboard content.
21414 # Se resets the cursor style to the terminal power-on default.
21415 # Ss is a string capability with one numeric parameter.  It is used to set the
21416 #    cursor style as described by the DECSCUSR function to a block or
21417 #    underline.
21418 # XM is a string capability which overrides ncurses's built-in string which
21419 #    enables xterm mouse mode.
21420 #
21421 # Miscellaneous extensions:
21422 #
21423 # gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
21424 #    This was implemented for the Hurd.
21425 # E3 clears the terminal's scrollback buffer.  This was implemented in the
21426 #    Linux 3.0 kernel as a security feature.
21427 # U8 is a numeric capability which denotes a terminal emulator which does not
21428 #    support VT100 SI/SO when processing UTF-8 encoding.  Set this to a nonzero
21429 #    value to enable it.
21430 #
21431 ######## CHANGE HISTORY
21432 #
21433 # The last /etc/termcap version maintained by John Kunze was 8.3, dated 8/5/94.
21434 # Releases 9 and 10 (up until the release of ncurses 4.2 in 1998) were
21435 # maintained by Eric S. Raymond as part of the ncurses project.
21436 #
21437 # This file contains all the capability information present in John Kunze's
21438 # last version of the termcap master file, except as noted in the change
21439 # comments at end of file.  Some information about very ancient obsolete
21440 # capabilities has been moved to comments.  Some all-numeric names of older
21441 # terminals have been retired.
21442 #
21443 # I changed :MT: to :km: (the 4.4BSD name) everywhere.  I commented out some
21444 # capabilities (EP, dF, dT, dV, kn, ma, ml, mu, xr, xx) that are no longer
21445 # used by BSD curses.
21446 #
21447 # The 9.1.0 version of this file was translated from my lightly-edited copy of
21448 # 8.3, then mechanically checked against 8.3 using Emacs Lisp code written for
21449 # the purpose.  Unless the ncurses tic implementation and the Lisp code were
21450 # making perfectly synchronized mistakes which I then failed to catch by
21451 # eyeball, the translation was correct and perfectly information-preserving.
21452 #
21453 # Major version number bumps correspond to major version changes in ncurses.
21454 #
21455 # Here is a log of the changes since then:
21456 #
21457 # 9.1.0 (Wed Feb  1 04:50:32 EST 1995):
21458 #       * First terminfo master translated from 8.3.
21459 # 9.2.0 (Wed Feb  1 12:21:45 EST 1995):
21460 #       * Replaced Wyse entries with updated entries supplied by vendor.
21461 #
21462 # 9.3.0 (Mon Feb  6 19:14:40 EST 1995):
21463 #       * Added contact & status info from G. Clark Brown <clark@sssi.com>.
21464 # 9.3.1 (Tue Feb  7 12:00:24 EST 1995):
21465 #       * Better XENIX keycap translation.  Describe TC termcaps.
21466 #       * Contact and history info supplied by Qume.
21467 # 9.3.2 (Sat Feb 11 23:40:02 EST 1995):
21468 #       * Raided the Shuford FTP site for recent termcaps/terminfos.
21469 #       * Added information on X3.64 and VT100 standard escape sequences.
21470 # 9.3.3 (Mon Feb 13 12:26:15 EST 1995):
21471 #       * Added a correct X11R6 xterm entry.
21472 #       * Fixed terminfo translations of padding.
21473 # 9.3.4 (Wed Feb 22 19:27:34 EST 1995):
21474 #       * Added correct acsc/smacs/rmacs strings for vt100 and xterm.
21475 #       * Added u6/u7/u8/u9 capabilities.
21476 #       * Added PCVT entry.
21477 # 9.3.5 (Thu Feb 23 09:37:12 EST 1995):
21478 #       * Emacs uses :so:, not :mr:, for its mode line.  Fix linux entry
21479 #         to use reverse-video standout so Emacs will look right.
21480 #       * Added el1 capability to ansi.
21481 #       * Added smacs/rmacs to ansi.sys.
21482 #
21483 # 9.4.0 (Sat Feb 25 16:43:25 EST 1995):
21484 #       * New mt70 entry.
21485 #       * Added COPYRIGHTS AND OTHER DELUSIONS.
21486 #       * Added AT&T 23xx & 500/513, vt220 and vt420, opus3n1+, netronics
21487 #         smartvid & smarterm, ampex 175 & 219 & 232,
21488 #         env230, falco ts100, fluke, intertube, superbrain, ncr7901, vic20,
21489 #         ozzie, trs200, tr600, Tandy & Texas Instruments VDTs, intext2,
21490 #         screwpoint, fviewpoint, Contel Business Systems, Datamedia Colorscan,
21491 #         adm36, mime314, ergo4000, ca22851.  Replaced att7300, esprit, dd5500.
21492 #       * Replaced the Perkin-Elmer entries with vendor's official ones.
21493 #       * Restored the old minimal-ansi entry, luna needs it.
21494 #       * Fixed some incorrect ip and proportional-padding translations.
21495 # 9.4.1 (Mon Feb 27 14:18:33 EST 1995):
21496 #       * Fix linux & AT386 sgr strings to do A_ALTCHARSET turnoff correctly.
21497 #       * Make the xterm entry 65 lines again; create xterm25 and xterm24
21498 #         to force a particular height.
21499 #       * Added beehive4 and reorganized other Harris entries.
21500 # 9.4.2 (Thu Mar  9 01:45:44 EST 1995):
21501 #       * Merged in DEC's official entries for its terminals.  The only old
21502 #         entry I kept was Doug Gwyn's alternate vt100 (as vt100-avo).
21503 #       * Replaced the translated BBN Bitgraph entries with purpose-built
21504 #         ones from AT&T's SVr3.
21505 #       * Replaced the AT&T entries with AT&T's official terminfos.
21506 #       * Added teleray 16, vc415, cops10.
21507 #       * Merged in many individual capabilities from SCO terminfo files.
21508 # 9.4.3 (Mon Mar 13 02:37:53 EST 1995):
21509 #       * Typo fixes.
21510 #       * Change linux entry so A_PROTECT enables IBM-PC ROM characters.
21511 # 9.4.4 (Mon Mar 27 12:32:35 EST 1995):
21512 #       * Added tty35, Ann Arbor Guru series. vi300 and 550, cg7900, tvi803,
21513 #         pt210, ibm3164, IBM System 1, ctrm, Tymshare scanset, dt200, adm21,
21514 #         simterm, citoh and variants.
21515 #       * Replaced sol entry with sol1 and sol2.
21516 #       * Replaced Qume QVT and Freedom-series entries with purpose-built
21517 #         terminfo entries.
21518 #       * Enhanced vt220, tvi910, tvi924, hpterm, hp2645, adm42, tek
21519 #         and dg200 entries using caps from from SCO.
21520 #       * Added the usual set of function-key mappings to ANSI entry.
21521 #       * Corrected xterm's function-key capabilities.
21522 # 9.4.5 (Tue Mar 28 14:27:49 EST 1995):
21523 #       * Fix in xterm entry, cub and cud are not reliable under X11R6.
21524 # 9.4.6 (Thu Mar 30 14:52:15 EST 1995):
21525 #       * Fix in xterm entry, get the arrow keys right.
21526 #       * Change some \0 escapes to \200.
21527 # 9.4.7 (Tue Apr  4 11:27:11 EDT 1995)
21528 #       * Added apple (Videx card), adm1a, oadm31.
21529 #       * Fixed malformed ampex csr.
21530 #       * Fixed act4, cyb110; they had old-style prefix padding left in.
21531 #       * Changed mandatory to advisory padding in many entries.
21532 #       * Replaced HP entries up to hpsub with purpose-built ones.
21533 #       * Blank rmir/smir/rmdc/smdc capabilities removed.
21534 #       * Small fixes merged in from SCO entries for lpr, fos, tvi910+, tvi924.
21535 # 9.4.8 (Fri Apr  7 09:36:34 EDT 1995):
21536 #       * Replaced the Ann Arbor entries with SCO's, the init strings are
21537 #         more efficient (but the entries otherwise identical).
21538 #       * Added dg211 from Shuford archive.
21539 #       * Added synertek, apple-soroc, ibmpc, pc-venix, pc-coherent, xtalk,
21540 #         adm42-nl, pc52, gs6300, xerox820, uts30.
21541 #       * Pull SCO's padding into vi200 entry.
21542 #       * Improved capabilities for tvi4107 and other Televideo and Viewpoint
21543 #         entries merged in from SCO's descriptions.
21544 #       * Fixed old-style prefix padding on zen50, h1500.
21545 #       * Moved old superbee entry to superbee-xsb, pulled in new superbee
21546 #         entry from SCO's description.
21547 #       * Reorganized the special entries.
21548 #       * Added lm#0 to cbunix and virtual entries.
21549 #
21550 # 9.5.0 (Mon Apr 10 11:30:00 EDT 1995):
21551 #       * Restored cdc456tst.
21552 #       * Fixed sb1 entry, SCO erroneously left out the xsb glitch.
21553 #       * Added megatek, beacon, microkit.
21554 #       * Freeze for ncurses-1.9 release.
21555 # 9.5.1 (Fri Apr 21 12:46:42 EDT 1995):
21556 #       * Added historical data for TAB.
21557 #       * Comment fixes from David MacKenzie.
21558 #       * Added the new BSDI pc3 entry.
21559 # 9.5.2 (Tue Apr 25 17:27:52 EDT 1995)
21560 #       * A change in the tic -C logic now ensures that all entries in
21561 #         the termcap translation will fit in < 1024 bytes.
21562 #       * Added `bobcat' and `gator' HP consoles and the Nu machine entries
21563 #         from GNU termcap file.  This merges in all their local information.
21564 # 9.5.3 (Tue Apr 25 22:28:13 EDT 1995)
21565 #       * Changed tic -C logic to dump all capabilities used by GNU termcap.
21566 #       * Added warnings about entries with long translations (restoring
21567 #         all the GNU termcaps pushes a few over the edge).
21568 # 9.5.4 (Wed Apr 26 15:35:09 EDT 1995)
21569 #       * Yet another tic change, and a couple of entry tweaks, to reduce the
21570 #         number of long (> 1024) termcap translations back to 0.
21571 #
21572 # 9.6.0 (Mon May  1 10:35:54 EDT 1995)
21573 #       * Added kf13-kf20 to Linux entry.
21574 #       * Regularize Prime terminal names.
21575 #       * Historical data on Synertek.
21576 #       * Freeze for ncurses-1.9.1.
21577 # 9.6.1 (Sat May  6 02:00:52 EDT 1995):
21578 #       * Added true xterm-color entry, renamed djm's pseudo-color entry.
21579 #       * Eliminate whitespace in short name fields, this tanks some scripts.
21580 #       * Name field changes to shorten some long entries.
21581 #       * Termcap translation now automatically generates empty rmir/smir
21582 #         when ich1/ich is present (copes with an ancient vi bug).
21583 #       * Added `screen' entries from FSF's screen-3.6.2.
21584 #       * Added linux-nic and xterm-nic entries.
21585 # 9.6.2 (Sat May  6 17:00:55 EDT 1995):
21586 #       * Change linux entry to use smacs=\E[11m and have an explicit acsc,
21587 #         eliminating some special-case code in ncurses.
21588 #
21589 # 9.7.0 (Tue May  9 18:03:12 EDT 1995):
21590 #       * Added vt320-k3, rsvidtx from the Emacs termcap.dat file.  I think
21591 #         that captures everything unique from it.
21592 #       * Added reorder script generator.
21593 #       * Freeze for ncurses 1.9.2 release.
21594 # 9.7.1 (Thu Jun 29 09:35:22 EDT 1995):
21595 #       * Added Sean Farley's kspd, flash, rs1 capabilities for linux.
21596 #       * Added Olaf Siebert's corrections for adm12.
21597 #       * ansi-pc-color now includes the colors and pairs caps, so that
21598 #         entries which use it will inherit them automatically.
21599 #       * The linux entry can now recognize the center (keypad 5) key.
21600 #       * Removed some junk that found its way into Linux acsc.
21601 #
21602 # 9.8.0 (Fri Jul  7 04:46:57 EDT 1995):
21603 #       * Add 50% cut mark as a desperate hack to reduce tic's core usage.
21604 #       * xterm doesn't try to use application keypad mode any more.
21605 #       * Freeze for ncurses-1.9.3 release.
21606 # 9.8.1 (Thu Jul 19 17:02:12 EDT 1995):
21607 #       * Added corrected sun entry from vendor.
21608 #       * Added csr capability to linux entry.
21609 #       * Peter Wemm says the at386 hpa should be \E[%i%p1%dG, not \E[%p1%dG.
21610 #       * Added vt102-nsgr to cope with stupid IBM PC `VT100' emulators.
21611 #       * Some commented-out caps in long entries come back in, my code
21612 #         for computing string-table lengths had a bug in it.
21613 #       * pcansi series modified to fit comm-program reality better.
21614 # 9.8.2 (Sat Sep  9 23:35:00 EDT 1995):
21615 #       * BSD/OS actually ships the ibmpc3 bold entry as its console.
21616 #       * Correct some bad aliases in the pcansi series
21617 #       * Added entry for QNX console.
21618 #       * Clean up duplicate long names for use with 4.4 library.
21619 #       * Change vt100 standout to be normal reverse vide, not bright reverse;
21620 #         this makes the Emacs status line look better.
21621 # 9.8.3 (Sun Sep 10 13:07:34 EDT 1995):
21622 #       * Added Adam Thompson's VT320 entries, also his dtx-sas and z340.
21623 #       * Minor surgery, mostly on name strings, to shorten termcap version.
21624 #
21625 # 9.9.0 (Sat Sep 16 23:03:48 EDT 1995):
21626 #       * Added dec-vt100 for use with the EWAN emulator.
21627 #       * Added kmous to xterm for use with xterm's mouse-tracking facility.
21628 #       * Freeze for 1.9.5 alpha release.
21629 # 9.9.1 (Wed Sep 20 13:46:09 EDT 1995):
21630 #       * Changed xterm lines to 24, the X11R6 default.
21631 # 9.9.2 (Sat Sep 23 21:29:21 EDT 1995):
21632 #       * Added 7 newly discovered, undocumented acsc characters to linux
21633 #         entry (the pryz{|} characters).
21634 #       * ncurses no longer steals A_PROTECT.  Simplify linux sgr accordingly.
21635 #       * Correct two typos in the xterm entries introduced in 9.9.1.
21636 #       * I finally figured out how to translate ko capabilities.  Done.
21637 #       * Added tvi921 entries from Tim Theisen.
21638 #       * Cleanup: dgd211 -> dg211, adm42-nl -> adm42-nsl.
21639 #       * Removed mystery tec entry, it was neither interesting nor useful.
21640 #       * shortened altos3, qvt203, tvi910+, tvi92D, tvi921-g, tvi955, vi200-f,
21641 #         vi300-ss, att505-24, contel301, dm3045, f200vi, pe7000c, vc303a,
21642 #         trs200, wind26, wind40, wind50, cdc456tst, dku7003, f110, dg211,
21643 #         by making them relative to use capabilities
21644 #       * Added cuf1=^L to tvi925 from deleted variant tvi925a.
21645 #       * fixed cup in adm22 entry and parametrized strings in vt320-k3.
21646 #       * added it#8 to entries that used to have :pt: -- tvi912, vi200,
21647 #         ampex80,
21648 #       * Translate all home=\E[;H capabilities to home=\E[H, they're
21649 #         equivalent.
21650 #       * Translate \E[0m -> \E[m in [rs]mso, [rs]mul, and init strings of
21651 #         vt100 and ANSI-like terminals.
21652 # 9.9.3 (Tue Sep 26 20:11:15 EDT 1995):
21653 #       * Added it#8 and ht=\t to *all* entries with :pt:; the ncurses tic
21654 #         does this now, too.
21655 #       * fviewpoint is gone, it duplicated screwpoint.
21656 #       * Added hp2627, graphos, graphos-30, hpex, ibmega, ibm8514, ibm8514-c,
21657 #         ibmvga, ibmvga-c, minix, mm340, mt4520-rv, screen2, screen3,
21658 #         versaterm, vi500, vsc, vt131, vt340, vt400 entries from UW.
21659 #         The UW vi50 replaces the old one, which becomes vi50adm,
21660 #       * No more embedded commas in name fields.
21661 #
21662 # 9.10.0 (Wed Oct  4 15:39:37 EDT 1995):
21663 #       * XENIX forms characters in fos, trs16, scoansi become acsc strings,
21664 #       * Introduced klone+* entries for describing Intel-console behavior.
21665 #       * Linux kbs is default-mapped to delete for some brain-dead reason.
21666 #       * -nsl -> -ns.  The -pp syntax is obsolete.
21667 #       * Eliminate [A-Z]* primaries in accordance with SVr4 terminfo docs.
21668 #       * Make xterm entry do application-keypad mode again.  I got complaints
21669 #         that it was messing up someone's 3270 emulator.
21670 #       * Added some longname fields in order to avoid warning messages from
21671 #         older tic implementations.
21672 #       * According to ctlseqs.ms, xterm has a full vt100 graphics set.  Use
21673 #         it! (This gives us pi, greater than, less than, and a few more.)
21674 #       * Freeze for ncurses-1.9.6 release.
21675 # 9.10.1 (Sat Oct 21 22:18:09 EDT 1995):
21676 #       * Add xon to a number of console entries, they're memory-mapped and
21677 #         don't need padding.
21678 #       * Correct the use dependencies in the ansi series.
21679 #       * Hand-translate more XENIX capabilities.
21680 #       * Added hpterm entry for HP's X terminal emulator.
21681 #       * Added aixterm entries.
21682 #       * Shortened four names so everything fits in 14 chars.
21683 #
21684 # 9.11.0 (Thu Nov  2 17:29:35 EST 1995):
21685 #       * Added ibcs2 entry and info on iBCS2 standard.
21686 #       * Corrected hpa/vpa in linux entry.  They still fail the worm test.
21687 #       * We can handle the HP meml/memu capability now.
21688 #       * Added smacs to klone entries, just as documentation.
21689 #       * Carrected ansi.sys and cit-500 entries.
21690 #       * Added z39, vt320-k311, v220c, and avatar entries.
21691 #       * Make pcansi use the ansi.sys invis capability.
21692 #       * Added DIP switch descriptions for vt100, adm31, tvi910, tvi920c,
21693 #         tvi925, tvi950, dt80, ncr7900i, h19.
21694 #       * X3.64 has been withdrawn, change some references.
21695 #       * Removed function keys from ansi-m entry.
21696 #       * Corrected ansi.sys entry.
21697 #       * Freeze for ncurses-1.9.7 release.
21698 # 9.11.1 (Tue Nov  6 18:18:38 EST 1995):
21699 #       * Added rmam/smam capabilities to many entries based on init strings.
21700 #       * Added correct hpa/vpa to linux.
21701 #       * Reduced several entries relative to vt52.
21702 # 9.11.2 (Tue Nov  7 00:21:06 EST 1995):
21703 #       * Exiled some utterly unidentifiable custom and homebrew types to the
21704 #         UFO file; also, obsolete small-screen hardware; also, entries which
21705 #         look flat-out incorrect, garbled, or redundant.  These include the
21706 #         following entries: carlock, cdc456tst, microkit, qdss, ramtek, tec,
21707 #         tec400, tec500, ubell, wind, wind16, wind40, wind50, plasma, agile,
21708 #         apple, bch, daleblit, nucterm, ttywilliams, nuterminal, nu24, bnu,
21709 #         fnu, nunix-30, nunix-61, exidy, ex3000, sexidy, pc52, sanyo55,
21710 #         yterm10, yterm11, yterm10nat, aed, aed-ucb, compucolor, compucolor2,
21711 #         vic20, dg1, act5s, netx, smartvid, smarterm, sol, sol2, dt200,
21712 #         trs80, trs100, trs200, trs600, xitex, rsvidtx, vid, att2300-x40,
21713 #         att2350-x40, att4410-nfk, att5410-ns, otty5410, att5425-nl-w,
21714 #         tty5425-fk, tty5425-w-fk, cita, c108-na, c108-rv-na, c100-rv-na,
21715 #         c108-na-acs, c108-rv-na-acs, ims950-ns, infotonKAS, ncr7900i-na,
21716 #         regent60na, scanset-n, tvi921-g, tvi925n, tvi925vbn, tvi925vb,
21717 #         vc404-na, vc404-s-na, vt420nam, vt420f-nam, vt420pc-nam, vt510nam,
21718 #         vt510pc-nam, vt520nam, vt525nam, xterm25, xterm50, xterm65, xterms.
21719 #       * Corrected pcvt25h as suggested by Brian C. Grayson
21720 #         <bgrayson@pine.ece.utexas.edu>.
21721 # 9.11.3 (Thu Nov  9 12:14:40 EST 1995):
21722 #       * Added kspd=\E[P, kcbt=\E[Z, to linux entry, changed kbs back to ^H.
21723 #       * Added kent=\EOM to xterm entry.
21724 #
21725 # 9.11.4 (Fri Nov 10 08:31:35 EST 1995):
21726 #       * Corrected gigi entry.
21727 #       * Restored cuf/cud1 to xterm, their apparent bugginess was due to
21728 #         bad hpa/vpa capabilities.
21729 #       * Corrected flash strings to have a uniform delay of .2 sec.  No
21730 #         more speed-dependent NUL-padding!
21731 #       * terminfo capabilities in comments bracketed with <>.
21732 # 9.11.5 (Fri Nov 10 15:35:02 EST 1995):
21733 #       * Replaced pcvt with the 3.31 pcvt entries.
21734 #       * Freeze for 1.9.7a.
21735 # 9.11.6 (Mon Nov 13 10:20:24 EST 1995):
21736 #       * Added emu entry from the X11R6 contrib tape sources.
21737 #
21738 # 9.12.0 (Wed Nov 29 04:22:25 EST 1995):
21739 #       * Improved iris-ansi and sun entries.
21740 #       * More flash string improvements.
21741 #       * Corrected wy160 & wy160 as suggested by Robert Dunn
21742 #       * Added dim to at386.
21743 #       * Reconciled pc3 and ibmpc3 with the BSDI termcap file.  Keith says
21744 #         he's ready to start using the termcap generated from this one.
21745 #       * Added vt102-w, vt220-w, xterm-bold, wyse-vp, wy75ap, att4424m,
21746 #         ln03, lno3-w, h19-g, z29a*, qdss.  Made vt200 an alias of vt220.
21747 #       * Improved hpterm, apollo consoles, fos, qvt101, tvi924. tvi925,
21748 #         att610, att620, att630,
21749 #       * Changed hazeltine name prefix from h to hz.
21750 #       * Sent t500 to the UFI file.
21751 #       * I think we've sucked all the juice out of BSDI's termcap file now.
21752 #       * Freeze for ncurses 1.9.8 release
21753 # 9.12.1 (Thu Nov 30 03:14:06 EST 1995)
21754 #       * Unfreeze, linux kbs needed to be fixed.
21755 #       * Tim Theisen pinned down a bug in the DMD firmware.
21756 # 9.12.2 (Thu Nov 30 19:08:55 EST 1995):
21757 #       * Fixes to ansi and klone capabilities (thank you, Aaron Ucko).
21758 #         (The broken ones had been shadowed by sgr.)
21759 # 9.12.3 (Thu Dec  7 17:47:22 EST 1995):
21760 #       * Added documentation on ECMA-48 standard.
21761 #       * New Amiga entry.
21762 # 9.12.4 (Thu Dec 14 04:16:39 EST 1995):
21763 #       * More ECMA-48 stuff
21764 #       * Corrected typo in minix entry, added pc-minix.
21765 #       * Corrected khome/kend in xterm (thank you again, Aaron Ucko).
21766 #       * Added rxvt entry.
21767 #       * Added 1.3.x color-change capabilities to linux entry.
21768 # 9.12.5 (Tue Dec 19 00:22:10 EST 1995):
21769 #       * Corrected rxvt entry khome/kend.
21770 #       * Corrected linux color change capabilities.
21771 #       * NeXT entries from Dave Wetzel.
21772 #       * Cleaned up if and rf file names (all in /usr/share now).
21773 #       * Changed linux op capability to avoid screwing up a background color
21774 #         pair set by setterm.
21775 # 9.12.6 (Wed Feb  7 16:14:35 EST 1996):
21776 #       * Added xterm-sun.
21777 # 9.12.7 (Fri Feb  9 13:27:35 EST 1996):
21778 #       * Added visa50.
21779 #
21780 # 9.13.0 (Sun Mar 10 00:13:08 EST 1996):
21781 #       * Another sweep through the Shuford archive looking for new info.
21782 #       * Added dg100 alias to dg6053 based on a comp.terminals posting.
21783 #       * Added st52 from Per Persson.
21784 #       * Added eterm from the GNU Emacs 19.30 distribution.
21785 #       * Freeze for 1.9.9.
21786 # 9.13.1 (Fri Mar 29 14:06:46 EST 1996):
21787 #       * FreeBSD console entries from Andrew Chernov.
21788 #       * Removed duplicate Atari st52 name.
21789 # 9.13.2 (Tue May  7 16:10:06 EDT 1996)
21790 #       * xterm doesn't actually have ACS_BLOCK.
21791 #       * Change klone+color setf/setb to simpler forms that can be
21792 #         translated into termcap.
21793 #       * Added xterm1.
21794 #       * Removed mechanically-generated junk capabilities from cons* entries.
21795 #       * Added color support to bsdos.
21796 # 9.13.3 (Thu May  9 10:35:51 EDT 1996):
21797 #       * Added Wyse 520 entries from Wm. Randolph Franklin <wrf@ecse.rpi.edu>.
21798 #       * Created ecma+color, linux can use it.  Also added ech to linux.
21799 #       * Teach xterm about more keys. Add Thomas Dickey's 3.1.2E updates.
21800 #       * Add descriptions to FreeBSD console entries.  Also shorten
21801 #         some aliases to <= 14 chars for portability.
21802 #       * Added x68k console
21803 #       * Added OTbs to several VT-series entries.
21804 # 9.13.4 (Wed May 22 10:54:09 EDT 1996):
21805 #       * screen entry update for 3.7.1 from Michael Alan Dorman.
21806 # 9.13.5 (Wed Jun  5 11:22:41 EDT 1996):
21807 #       * kterm correction due to Kenji Rikitake.
21808 #       * ACS correction in vt320-kll due to Phillippe De Muyter.
21809 # 9.13.6 (Sun Jun 16 15:01:07 EDT 1996):
21810 #       * Sun console entry correction from J.T. Conklin.
21811 #       * Changed all DEC VT300 and up terminals to use VT300 tab set
21812 # 9.13.7 (Mon Jul  8 20:14:32 EDT 1996):
21813 #       * Added smul to linux entry (we never noticed it was missing
21814 #         because of sgr!).
21815 #       * Added rmln to hp+labels (deduced from other HP entries).
21816 #       * Added vt100 acsc capability to vt220, vt340, vt400, d800, dt80-sas,
21817 #         pro350, att7300, 5420_2, att4418, att4424, att4426, att505, vt320-k3.
21818 #       * Corrected vt220 acsc.
21819 #       * The klone+sgr and klone+sgr-dumb entries now use klone+acs;
21820 #         this corresponds to reality and helps prevent some tic warnings.
21821 #       * Added sgr0 to c101, pcix, vt100-nav, screen2, oldsun, next, altos2,
21822 #         hpgeneric, hpansi, hpsub, hp236, hp700-wy, bobcat, dku7003, adm11,
21823 #         adm12, adm20, adm21, adm22, adm31, adm36, adm42, pt100, pt200,
21824 #         qvt101, tvi910, tvi921, tvi92B, tvi925, tvi950, tvi970, wy30-mc,
21825 #         wy50-mc, wy100, wyse-vp, ampex232, regent100, viewpoint, vp90,
21826 #         adds980, cit101, cit500, contel300, cs10, dm80, falco, falco-p,
21827 #         f1720a, go140, sb1, superbeeic, microb, ibm8512, kt7, ergo4000,
21828 #         owl, uts30, dmterm, dt100, dt100, dt110, appleII, apple-videx,
21829 #         lisa, trsII, atari, st52, pc-coherent, basis, m2-man, bg2.0, bg1.25,
21830 #         dw3, ln03, ims-ansi, graphos, t16, zen30, xtalk, simterm, d800,
21831 #         ifmr, v3220, wy100q, tandem653, ibmaed.
21832 #       * Added DWK terminal description.
21833 # 9.13.8 (Wed Jul 10 11:45:21 EDT 1996):
21834 #       * Many entries now have highlights inherited from adm+sgr.
21835 #       * xterm entry now corresponds to XFree86 3.1.2E, with color.
21836 #       * xtitle and xtitle-twm enable access to the X status line.
21837 #       * Added linux-1.3.6 color palette caps in conventional format.
21838 #       * Added adm1178 terminal.
21839 #       * Move fos and apollo terminals to obsolete category.
21840 #       * Aha! The BRL terminals file told us what the Iris extensions mean.
21841 #       * Added, from the BRL termcap file: rt6221, rt6221-w, northstar,
21842 #         commodore, cdc721-esc, excel62, osexec.  Replaced from the BRL file:
21843 #         cit500, adm11.
21844 # 9.13.9 (Mon Jul 15 00:32:51 EDT 1996):
21845 #       * Added, from the BRL termcap file: cdc721, cdc721l, cdc752, cdc756,
21846 #         aws, awsc, zentec8001, modgraph48, rca vp3301/vp3501, ex155.
21847 #       * Corrected, from BRL termcap file: vi50.
21848 #       * Better rxvt entry & corrected xterm entries from Thomas Dickey.
21849 # 9.13.10 (Mon Jul 15 12:20:13 EDT 1996):
21850 #       * Added from BRL: cit101e & variants, hmod1, vi200, ansi77, att5620-1,
21851 #         att5620-s, att5620-s, dg210, aas1901, hz1520, hp9845, osborne
21852 #         (old osborne moved to osborne-w), tvi970-vb, tvi970-2p, tvi925-hi,
21853 #         tek4105brl, tek4106brl, tek4107brl,tek4109brl, hazel, aepro,
21854 #         apple40p, apple80p, appleIIgs, apple2e, apple2e-p, apple-ae.
21855 #       * Paired-attribute fixes to various terminals.
21856 #       * Sun entry corrections from A. Lukyanov & Gert-Jan Vons.
21857 #       * xterm entry corrections from Thomas Dickey.
21858 # 9.13.11 (Tue Jul 30 16:42:58 EDT 1996):
21859 #       * Added t916 entry, translated from a termcap in SCO's support area.
21860 #       * New qnx entry from Michael Hunter.
21861 # 9.13.12 (Mon Aug  5 14:31:11 EDT 1996):
21862 #       * Added hpex2 from Ville Sulko.
21863 #       * Fixed a bug that ran the qnx and pcvtXX together.
21864 # 9.13.13 (Fri Aug  9 01:16:17 EDT 1996):
21865 #       * Added dtterm entry from Solaris CDE.
21866 # 9.13.14 (Tue Sep 10 15:31:56 EDT 1996):
21867 #       * corrected pairs#8 typo in dtterm entry.
21868 #       * added tvi9065.
21869 # 9.13.15 (Sun Sep 15 02:47:05 EDT 1996):
21870 #       * updated xterm entry to cover 3.1.2E's new features.
21871 # 9.13.16 (Tue Sep 24 12:47:43 EDT 1996):
21872 #       * Added new minix entry
21873 #       * Removed aliases of the form ^[0-9]* for obsolete terminals.
21874 #       * Commented out linux-old, nobody's using pre-1.2 kernels now.
21875 # 9.13.17 (Fri Sep 27 13:25:38 EDT 1996):
21876 #       * Added Prism entries and kt7ix.
21877 #       * Caution notes about EWAN and tabset files.
21878 #       * Changed /usr/lib/tabset -> /usr/share/tabset.
21879 #       * Added acsc/rmacs/smacs to vt52.
21880 # 9.13.18 (Mon Oct 28 13:24:59 EST 1996):
21881 #       * Merged in Thomas Dickey's reorganization of the xterm entries;
21882 #         added technical corrections to avoid warning messages.
21883 # 9.13.19 (Sat Nov 16 16:05:49 EST 1996):
21884 #       * Added rmso=\E[27m in Linux entry.
21885 #       * Added koi8-r support for Linux console.
21886 #       * Replace xterm entries with canonical ones from XFree86 3.2.
21887 # 9.13.20 (Sun Nov 17 23:02:51 EST 1996):
21888 #       * Added color_xterm from Jacob Mandelson
21889 # 9.13.21 (Mon Nov 18 12:43:42 EST 1996):
21890 #       * Back off the xterm entry to use r6 as a base.
21891 # 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
21892 #       * Added dec-vt220 at Adrian Garside's request.
21893 #
21894 #-(original-changelog-1996/12/29-to-1998/02/28-by-TD)---------------------------
21895 #
21896 # 10.1.0 (Sun Dec 29 02:36:31 EST 1996): withdrawn
21897 #       * Minor corrections to xterm entries.
21898 #       * Replaced EWAN telnet entry.
21899 #       * Dropped the reorder script generator.  It was a fossil.
21900 # 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
21901 #       * Replaced minitel-2 entry.
21902 #       * Added MGR, ansi-nt.
21903 # 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
21904 #       * Thorsten Lockert added termcap `bs' to a lot of types, working from
21905 #         the 4.4BSD Lite2 file.
21906 #
21907 # 10.1.1 (Sat May  3 21:41:27 EDT 1997):
21908 #       * Use setaf/setab consistently with SVr4.
21909 #       * Remove ech, el1 from cons25w, they do not work in FreeBSD 2.1.5
21910 # 10.1.2 (Sat May 24 21:10:57 EDT 1997)
21911 #       * update xterm-xf86-v32 to match XFree86 3.2A (changes F1-F4)
21912 #       * add xterm-16color, for XFree86 3.3
21913 # 10.1.3 (Sat May 31 12:21:05 EDT 1997)
21914 #       * correct typo in emu
21915 #       * correct typo in vt102-w (Robert Wuest)
21916 #       * make new entry xterm-xf86-v33, restored xterm-xf86-v32.
21917 # 10.1.4 (Sun Jun 15 08:29:05 EDT 1997)
21918 #       * remove ech capability from rxvt (it does the wrong thing)
21919 # 10.1.5 (Sat Jun 28 21:34:36 EDT 1997)
21920 #       * remove spurious newlines from several entries (hp+color, wy50,
21921 #         wy350, wy370-nk, wy99gt-tek, wy370-tek, ibm3161, tek4205, ctrm,
21922 #         gs6300)
21923 # 10.1.6 (Sat Jul  5 15:08:16 EDT 1997)
21924 #       * correct rmso capability of wy50-mc
21925 # 10.1.7 (Sat Jul 12 20:05:55 EDT 1997)
21926 #       * add cbt to xterm-xf86-v32
21927 #       * disentangle some entries from 'xterm', preferring xterm-r6 in case
21928 #         'xterm' is derived from xterm-xf86-v32, which implements ech and
21929 #         other capabilities not in xterm-r6.
21930 #       * remove alternate character set from kterm entry.
21931 # 10.1.8 (Sat Aug  2 18:43:18 EDT 1997)
21932 #       * correct acsc entries for ACS_LANTERN, which is 'i', not 'I'.
21933 # 10.1.9 (Sat Aug 23 17:54:38 EDT 1997)
21934 #       * add xterm-8bit entry.
21935 # 10.1.10 (Sat Oct  4 18:17:13 EDT 1997)
21936 #       * repair several places where early version of tic replaced \, with \\\,
21937 #       * make acsc entries canonical form (sorted, uniq).
21938 #       * modify acsc entries for linux, linux-koi8
21939 #       * new rxvt entry, from corrected copy of distribution in rxvt 2.21b
21940 #       * add color, mouse support to kterm.
21941 # 10.1.11 (Sat Oct 11 14:57:10 EDT 1997)
21942 #       * correct wy120 smxon/tbc capabilities which were stuck together.
21943 # 10.1.12 (Sat Oct 18 17:38:41 EDT 1997)
21944 #       * add entry for xterm-xf86-v39t
21945 # 10.1.13 (Sat Nov  8 13:43:33 EST 1997)
21946 #       * add u8,u9 to sun-il description
21947 # 10.1.14 (Sat Nov 22 19:59:03 EST 1997)
21948 #       * add vt220-js, pilot, rbcomm, datapoint entries from esr's 27-jun-97
21949 #         version.
21950 #       * add hds200 description (Walter Skorski)
21951 #       * add EMX 0.9b descriptions
21952 #       * correct rmso/smso capabilities in wy30-mc and wy50-mc (Daniel Weaver)
21953 #       * rename xhpterm back to hpterm.
21954 # 10.1.15 (Sat Nov 29 19:21:59 EST 1997)
21955 #       * change initc in linux-c-nc to use 0..1000 range.
21956 # 10.1.16 (Sat Dec 13 19:41:59 EST 1997)
21957 #       * remove hpa/vpa from rxvt, which implements them incorrectly.
21958 #       * add sgr0 for rxvt.
21959 #       * remove bogus smacs/rmacs from EMX descriptions.
21960 # 10.1.17 (Sat Dec 20 17:54:10 EST 1997)
21961 #       * revised entry for att7300
21962 # 10.1.18 (Sat Jan  3 17:58:49 EST 1998)
21963 #       * use \0 rather than \200.
21964 #       * rename rxvt-color to rxvt to match rxvt 2.4.5 distribution.
21965 # 10.1.19 (Sat Jan 17 14:24:57 EST 1998)
21966 #       * change xterm (xterm-xf86-v40), xterm-8bit rs1 to use hard reset.
21967 #       * rename xterm-xf86-v39t to xterm-xf86-v40
21968 #       * remove bold/underline from sun console entries since they're not
21969 #         implemented.
21970 # 10.1.20 (Sat Jan 24 11:02:51 EST 1998)
21971 #       * add beterm entry (Fred Fish)
21972 #       * add irix-color/xwsh entry.
21973 #       * turn ncv off for linux.
21974 # 10.1.21 (Sat Jan 31 17:39:16 EST 1998)
21975 #       * set ncv for FreeBSD console (treat colors with reverse specially).
21976 #       * remove sgr string from qnx based on report by Xiaodan Tang
21977 # 10.1.22 (Wed Feb 11 18:40:12 EST 1998)
21978 #       * remove spurious commas from descriptions
21979 #       * correct xterm-8bit to match XFree86 3.9Ad F1-F4.
21980 # 10.1.23 (Sat Feb 28 17:48:38 EST 1998)
21981 #       * add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
21982 #         apparently based on cp-866).
21983 #
21984 #-(replaced-changelog-1998/02/28-by-ESR)----------------------------------------
21985 #
21986 # 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
21987 #       * Replaced minitel-2 entry.
21988 #       * Added MGR, ansi-nt.
21989 #       * Minor corrections to xterm entries.
21990 #       * Replaced EWAN telnet entry.
21991 #       * Dropped the reorder script generator.  It was a fossil.
21992 # 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
21993 #       * Thorsten Lockert added termcap `bs' to a lot of types, working from
21994 #         the 4.4BSD Lite2 file.
21995 # 9.13.25 (Fri Jun 20 12:33:36 EDT 1997):
21996 #       * Added Datapoint 8242, pilot, ansi_psx, rbcomm, vt220js.
21997 #       * Updated iris-ansi; corrected vt102-w.
21998 #       * Switch base xterm entry to 3.3 level.
21999 # 9.13.26 (Mon Jun 30 22:45:45 EDT 1997)
22000 #       * Added basic4.
22001 #       * Removed rmir/smir from tv92B.
22002 #
22003 # 10.2.0 (Sat Feb 28 12:47:36 EST 1998):
22004 #       * add hds200 description (Walter Skorski)
22005 #       * add beterm entry (Fred Fish)
22006 #       * add Thomas Dickey's xterm-xf86-v40, xterm-8bit, xterm-16color,
22007 #         iris-color entries.
22008 #       * add emx entries.
22009 #       * Replaced unixpc entry with Benjamin Sittler's corrected version.
22010 #       * Replaced xterm/rxvt/emu/syscons entries with Thomas Dickey's
22011 #         versions.
22012 #       * remove sgr string from qnx based on report by Xiaodan Tang
22013 #       * Added u8/u9, removed rmul/smul from sun-il.
22014 #       * 4.2 tic displays \0 rather than \200.
22015 #       * add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
22016 #         apparently based on cp-866).
22017 #       * Merged in Pavel Roskin's acsc for linux-koi8
22018 #       * Corrected some erroneous \\'s to \.
22019 #       * 4.2 ncurses has been changed to use setaf/setab, consistent w/SysV.
22020 #       * II -> ii in pcvtXX, screen, xterm.
22021 #       * Removed \n chars following ANSI escapes in sgr & friends.
22022 #       * Updated Wyse entries.
22023 #       * h19 corrections from Tim Pierce.
22024 #       * Noted that the dm2500 has both ich and smir.
22025 #       * added pccons for the Alpha under OSF/1.
22026 #       * Added Sony NEWS workstation entries and cit101e-rv.
22027 #       * Reverted `amiga'; to Kent Polk's version, as I'm told
22028 #         the Verkuil entry messes up with Amiga Telnet.
22029 # 10.2.1 (Sun Mar  8 18:32:04 EST 1998):
22030 #       * Corrected attributions in 10.2.0 release notes.
22031 #       * Scanned the Shuford archive for new terminfos and information.
22032 #       * Removed sgr from qnx entry (Thomas Dickey).
22033 #       * Added entries for ICL and Kokusai Data Systems terminals.
22034 #       * Incorporated NCR terminfos from the Boundless Technology FTP site.
22035 #       * Incorporated att700 from the Boundless Technology FTP site.
22036 #       * Miscellaneous contact-address and Web-page updates.
22037 #
22038 #-(changelog-beginning-ncurses-4.2)---------------------------------------------
22039 #
22040 # 1998/5/9
22041 #       * add nxterm and xterm-color terminfo description (request by Cristian
22042 #         Gafton <gafton@redhat.com>).
22043 #       * modify rxvt terminfo description to clear alternate screen before
22044 #         switching back to normal screen, for compatibility with applications
22045 #         which use xterm (reported by Manoj Kasichainula <manojk@io.com>).
22046 #       * modify linux terminfo description to reset color palette (reported
22047 #         by Telford Tendys <telford@eng.uts.edu.au>).
22048 #
22049 # 1998/7/4
22050 #       * merge changes from current XFree86 xterm terminfo descriptions.
22051 #
22052 # 1998/7/25
22053 #       * Added minitel1 entries from Alexander Montaron.
22054 #       * Added qnxt2 from Federico Bianchi.
22055 #       * Added arm100 terminfo entries from Dave Millen.
22056 #
22057 # 1998/8/6
22058 #       * Added ncsa telnet entries from Francesco Potorti
22059 #
22060 # 1998/8/15
22061 #       * modify ncsa telnet entry to reflect color, other capabilities based on
22062 #         examination of the source code - T.Dickey.
22063 #
22064 # 1998/8/22
22065 #       * Corrected some erroneous \\'s to \ (eterm, osborne) - TD.
22066 #
22067 # 1998/8/29
22068 #       * Added Francesco Potorti's tuned Wyse 99 entries.
22069 #       * dtterm enacs correction from Alexander V. Lukyanov.
22070 #       * Add ncsa-ns, ncsa-m-ns and ncsa-m entries from esr version.
22071 #       * correct a typo in icl6404 entry.
22072 #       * add xtermm and xtermc
22073 #
22074 # 1998/9/26
22075 #       * format most %'char' sequences to %{number}
22076 #       * adapt IBM AIX 3.2.5 terminfo - T.Dickey
22077 #       * merge Data General terminfo from Hasufin <hasufin@vidnet.net> - TD
22078 #
22079 # 1998/10/10
22080 #       * update xterm-xfree86 to current (patch 84), for is2/rs2 changes - TD
22081 #       * correct initialization string in xterm-r5, add misc other features
22082 #         to correspond with xterm patch 84 - TD
22083 #
22084 # 1998/12/19
22085 #       * update xterm-xfree86 to current (patch 90), smcur/rmcur changes - TD
22086 #       * add Mathew Vernon's mach console entries
22087 #       * corrections for ncsa function-keys (report by Larry Virden)
22088 #
22089 # 1998/12/19
22090 #       * change linux to use ncv#2, since underline does not work with color - TD
22091 #
22092 # 1999/1/9
22093 #       * add kbt to iris-ansi, document other shift/control functionkeys - TD
22094 #       * correct iris-ansi and iris-ansi-ap with respect to normal vs keypad
22095 #         application modes, change kent to use the correct keypad code - TD
22096 #
22097 # 1999/1/10
22098 #       * add entry for Tera Term - TD
22099 #
22100 # 1999/1/23
22101 #       * minor improvements for teraterm entry - TD
22102 #       * rename several entries used by BSDI: bsdos to bsdos-pc-nobold,
22103 #         and bsdos-bold to bsdos-pc (Jeffrey C Honig)
22104 #
22105 # 1999/2/20
22106 #       * resolve ambiguity of kend/kll/kslt and khome/kfnd/kich1 strings in
22107 #         xterm and ncsa entries by removing the unneeded ones.  Note that
22108 #         some entries will return kend & khome versus kslt and kfnd, for
22109 #         PC-style keyboards versus strict vt220 compatiblity - TD
22110 #
22111 # 1999/3/13
22112 #       * adjust xterm-xfree86 khome/kend to match default PC-style keyboard
22113 #         tables - TD
22114 #       * add 'crt' entry - TD
22115 #       * correct typos in 'linux-c' entry - TD
22116 #
22117 # 1999/3/14
22118 #       * update entries for BSD/OS console to use klone+sgr and klone+color
22119 #         (Jeffrey C Honig)
22120 #
22121 # 1999/3/27
22122 #       * adjust xterm-xfree86 miscellaneous keypad keys, as per patch #94 - TD.
22123 #
22124 # 1999/4/10
22125 #       * add linux-lat, from RedHat patches to ncurses 4.2
22126 #
22127 # 1999/4/17
22128 #       * add complete set of default function-key definitions for scoansi - TD.
22129 #
22130 # 1999/7/3
22131 #       * add cnorm, cvvis for Linux 2.2 kernels
22132 #
22133 # 1999/7/24
22134 #       * add kmous to xterm-r5 -TD
22135 #       * correct entries xterm+sl and xterm+sl-twm, which were missing the
22136 #         parent "use" clause -TD
22137 #
22138 # 1999/7/31
22139 #       * corrected cnorm, added el1 in 'screen' description -TD
22140 #
22141 # 1999/8/14
22142 #       * add ms-vt100 -TD
22143 #
22144 # 1999/8/21
22145 #       * corrections to beterm entry -TD
22146 #
22147 # 1999/8/28
22148 #       * add cygwin entry -TD
22149 #
22150 # 1999/9/4
22151 #       * minor corrections for beterm entry -TD
22152 #
22153 # 1999/9/18
22154 #       * add acsc string to HP 70092 terminfo entry -Joerg Wunsch
22155 #
22156 # 1999/9/25
22157 #       * add amiga-8bit entry
22158 #       * add console entries from NetBSD: ofcons, wsvt25, wsvt25m, rcons,
22159 #         rcons-color, based on
22160 #         ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/termcap/termcap.src
22161 #       * add alias for iris-ansi-net
22162 #
22163 # 1999/10/2
22164 #       * corrected scoansi entry's acsc, some function keys, add color -TD
22165 #
22166 # 1999/10/23
22167 #       * add cnorm, cvvis to cons25w, and modify ncv to add 'dim' -TD
22168 #       * reorder ncsa entries to make ncsa-vt220 use the alternate function
22169 #         key mapping, leaving Potorti's entries more like he named them -TD
22170 #       * remove enter/exit am-mode from cygwin -TD
22171 #
22172 # 1999/10/30
22173 #       * correct typos in several entries (missing '[' from CSI):
22174 #         mgr-sun, ncsa-m, vt320-k3, att505, avt-ns, as well as smir/rmir
22175 #         strings for avt-ns -TD
22176 #       * add 'dim' to ncv mask for linux (report by Klaus Weide).
22177 #
22178 # 1999/11/27
22179 #       * correct kf1-kf4 in xterm-r6 which were vt100-style PF1-PF4 -TD
22180 #       * add hts to xterm-r6, and u6-u9 to xterm-r5 -TD
22181 #       * add xterm-88color and xterm-256color -TD
22182 #
22183 # 1999/12/4
22184 #       * add "obsolete" termcap strings -TD
22185 #       * add kvt and gnome entries -TD
22186 #
22187 # 1999/12/11
22188 #       * correct cup string for regent100 -TD
22189 #
22190 # 2000/1/1
22191 #       * update mach, add mach-color based on Debian diffs for ncurses 5.0 -TD
22192 #       * add entries for xterm-hp, xterm-vt220, xterm-vt52 and xterm-noapp -TD
22193 #       * change OTrs capabilities to rs2 -TD
22194 #       * add obsolete and extended capabilities to 'screen' -TD
22195 #
22196 # 2000/1/5
22197 #       * remove kf0 from rxvt, vt520, vt525 and ibm5151 since it conflicts
22198 #         with kf10 -TD
22199 #       * updated xterm-xf86-v40, making kdch1 correspond to vt220 'Remove',
22200 #         and adding kcbt -TD
22201 #
22202 # 2000/1/12
22203 #       * remove incorrect khome/kend from xterm-xf86-v333, which was based on
22204 #         nonstandard resource settings -TD
22205 #
22206 # 2000/2/26
22207 #       * minor fixes for xterm-*, based on Debian #58530 -TD
22208 #
22209 # 2000/3/4
22210 #       * add several terminal types from esr's "11.0", as well as comments.
22211 #         bq300*, dku7102-old, dku7202, hft, lft, pcmw, pmcons, tws*, vip*,
22212 #         vt220-8bit, vt220-old, wy85-8bit
22213 #
22214 # 2000/3/18
22215 #       * add several terminal types from esr's "11.0.1" (ansi-*).
22216 #       * update OTxx capabilities for changes on 2000/3/4.
22217 #       * revert part of vt220 change (request by Todd C Miller for OpenBSD)
22218 #
22219 # 2000/3/26
22220 #       * move screen's AX extension to ecma+color, modify several entries to
22221 #         use that, adjusting ncv as needed -TD
22222 #
22223 # 2000/4/8
22224 #       * add bsdos-pc-m, bsdos-pc-mono (Jeffrey C Honig)
22225 #       * correct spelling error in entry name: bq300-rv was given as bg300-rv
22226 #         in esr's version.
22227 #
22228 # 2000/4/15
22229 #       * add cud, ech, etc., to beterm based on feedback from Rico Tudor -TD
22230 #       * correct color definition for ibm3164, make minor changes to other
22231 #         IBM terminal definitions based on recent terminfo descriptions -TD
22232 #
22233 # 2000/4/22
22234 #       * add mgterm, from NetBSD -TD
22235 #       * add alias sun-cgsix for sun-ss5 as per NetBSD
22236 #       * change cons25w to use rs2 for reset rather than rs1 -TD
22237 #       * add rc/sc to aixterm based on manpage -TD
22238 #
22239 # 2000/5/13
22240 #       * remove ncv from xterm-16color, xterm-256color
22241 #
22242 # 2000/6/10
22243 #       * add kmous capability to linux to use Joerg Schoen's gpm patch.
22244 #
22245 # 2000/7/1
22246 #       * add Eterm (Michael Jennings)
22247 #
22248 # 2000-07-18
22249 #       * add amiga-vnc entry.
22250 #
22251 # 2000-08-12
22252 #       * correct description of Top Gun Telnet.
22253 #       * add kterm-color
22254 #
22255 # 2000-08-26
22256 #       * add qansi* entries from QNX ftp site.
22257 #
22258 # 2000-09-16
22259 #       * add Matrix Orbital entries by Eric Z. Ayers).
22260 #       * add xterm-basic, xterm-sco entries, update related entries to XFree86
22261 #         4.0.1c -TD
22262 #
22263 # 2000-09-17
22264 #       * add S0, E0 extensions to screen's entry -TD
22265 #
22266 # 2000-09-23
22267 #       * several corrections based on tic's new parameter-checking code -TD
22268 #       * modify xterm-r6 and similar rs2 sequences which had \E7...\E8
22269 #         bracketing sequences that reset video attributes (\E8 would restore
22270 #         them) -TD
22271 #
22272 # 2000-11-11
22273 #       * rename cygwin to cygwinB19, adapt newer entry from Earnie Boyd -TD
22274 #
22275 # 2000-12-16
22276 #       * improved scoansi, based on SCO man-page, and testing console,
22277 #         scoterm with tack -TD
22278 #
22279 # 2001-01-27
22280 #       * modify kterm to use acsc via SCS controls.
22281 #
22282 # 2001-02-10
22283 #       * screen 3.9.8 allows xterm mouse controls to pass-through
22284 #
22285 # 2001-03-11
22286 #       * remove spurious "%|" from some xterm entries.
22287 #
22288 # 2001-03-31
22289 #       * modify 'screen' khome/kend to match screen 3.09.08
22290 #       * add examples of 'screen' customization (screen.xterm-xfree86,
22291 #         screen.xterm-r6, screen.teraterm) -TD
22292 #
22293 # 2001-04-14
22294 #       * correct definitions of shifted editing keys for xterm-xfree86 -TD
22295 #       * add "Apple_Terminal" entries -Benjamin Sittler
22296 #       * remove time-delays from "Apple_Terminal" entries -TD
22297 #       * make sgr entries time-delays consistent with individual caps -TD
22298 #
22299 # 2001-05-05
22300 #       * corrected/updated screen.xterm-xfree86
22301 #
22302 # 2001-05-19
22303 #       * ELKS descriptions, from Federico Bianchi
22304 #       * add u6 (CSR) to Eterm (Michael Jennings).
22305 #
22306 # 2001-07-21
22307 #       * renamed "Apple_Terminal" entries to "nsterm" to work with Solaris's
22308 #         tic which handles names no longer than 14 characters.  Add
22309 #         corresponding descriptions for the Darwin PowerPC console named
22310 #         "xnuppc" -Benjamin Sittler
22311 #
22312 # 2001-09-01
22313 #       * change kbs in mach entries to ^? (Marcus Brinkmann).
22314 #
22315 # 2001-11-17
22316 #       * add "putty" entry -TD
22317 #       * updated "Apple_Terminal" entries -Benjamin Sittler
22318 #
22319 # 2001-11-24
22320 #       * add ms-vt100-color entry -TD
22321 #       * add "konsole" entries -TD
22322 #
22323 # 2001-12-08
22324 #       * update gnome entry to Redhat 7.2 -TD
22325 #
22326 # 2002-05-25
22327 #       * add kf13-kf48 strings to cons25w -TD
22328 #       * add pcvt25-color entry -TD
22329 #       * changed a few /usr/lib/tabset -> /usr/share/tabset.
22330 #       * improve some features of scoansi entry based on SCO's version -TD
22331 #       * add scoansi-new entry corresponding to OpenServer 5.0.6
22332 #
22333 # 2002-06-15
22334 #       * add kcbt to screen entry -TD
22335 #
22336 # 2002-06-22
22337 #       * add rxvt-16color, ibm+16color, mvterm entries -TD
22338 #
22339 # 2002-09-28
22340 #       * split out linux-basic entry, making linux-c inherit from that, and
22341 #         in turn linux (with cnorm, etc) inherit from linux-c-nc to reflect
22342 #         the history of this console type -TD
22343 #       * scaled the linux-c terminfo entry to match linux-c-nc, i.e., the
22344 #         r/g/b parameters of initc are in the range 0 to 1000 -TD
22345 #
22346 # 2002-10-05
22347 #       * minor fix for scale-factor of linux-c and linux-c-nc -TD
22348 #
22349 # 2002-11-09
22350 #       * split-out vt100+keypad and vt220+keypad, fix interchanged ka3/kb2
22351 #         in the latter -TD
22352 #
22353 # 2002-11-16
22354 #       * add entries for mterm (mterm, mterm-ansi, decansi) -TD
22355 #       * ncr260wy350pp has only 16 color pairs -TD
22356 #       * add sun-type4 from NetBSD -TD
22357 #       * update xterm-xfree86 to current (patch 170) -TD
22358 #       * add screen-bce, screen-s entries -TD
22359 #       * add xterm-1002, xterm-1003 entries -TD
22360 #
22361 # 2003-01-11
22362 #       * update homepage for Top Gun Telnet/SSH
22363 #
22364 # 2003-01-25
22365 #       * reduce duplication in emx entries, added emx-base -TD
22366 #
22367 # 2003-05-24
22368 #       * corrected acs for screen.teraterm -TD
22369 #       * add tkterm entry -TD
22370 #
22371 # 2003-07-15
22372 #       * cygwin changes from Charles Wilson:
22373 #         misc/terminfo.src (nxterm|xterm-color): make xterm-color
22374 #         primary instead of nxterm, to match XFree86's xterm.terminfo
22375 #         usage and to prevent circular links.
22376 #         (rxvt): add additional codes from rxvt.org.
22377 #         (rxvt-color): new alias
22378 #         (rxvt-xpm): new alias
22379 #         (rxvt-cygwin): like rxvt, but with special acsc codes.
22380 #         (rxvt-cygwin-native): ditto.  rxvt may be run under XWindows, or
22381 #         with a "native" MSWin GUI.  Each takes different acsc codes,
22382 #         which are both different from the "normal" rxvt's acsc.
22383 #         (cygwin): cygwin-in-cmd.exe window.  Lots of fixes.
22384 #         (cygwinDBG): ditto.
22385 #
22386 # 2003-09-27
22387 #       * update gnome terminal entries -TD
22388 #
22389 # 2003-10-04
22390 #       * add entries for djgpp 2.03 and 2.04 -TD
22391 #
22392 # 2003-10-25
22393 #       * add alias for vtnt -TD
22394 #       * update xterm-xfree86 for XFree86 4.4 -TD
22395 #
22396 # 2003-11-22
22397 #       * add linux-vt (Andrey V Lukyanov)
22398 #
22399 # 2003-12-20
22400 #       * add screen.linux -TD
22401 #
22402 # 2004-01-10
22403 #       * revised/improved entries for tvi912b, tvi920b (Benjamin Sittler)
22404 #
22405 # 2004-01-17
22406 #       * add OpenNT/Interix/SFU entries (Federico Bianchi)
22407 #       * add vt100+ and vt-utf8 entries -TD
22408 #       * add uwin entry -TD
22409 #
22410 # 2004-03-27
22411 #       * add sgr strings to several common entries lacking them, e.g.,
22412 #         screen, to make the entries more portable -TD
22413 #       * remove cvvis from rxvt entry, since it is the same as cnorm -TD
22414 #       * similar fixups for cvvis/cnorm various entries -TD
22415 #
22416 # 2004-05-22
22417 #       * remove 'ncv' from xterm-256color (patch 188) -TD
22418 #
22419 # 2004-06-26
22420 #       * add mlterm -TD
22421 #       * add xterm-xf86-v44 -TD
22422 #       * modify xterm-new aka xterm-xfree86 to accommodate luit, which relies
22423 #         on G1 being used via an ISO-2022 escape sequence (report by
22424 #         Juliusz Chroboczek) -TD
22425 #       * add 'hurd' entry -TD
22426 #
22427 # 2004-07-03
22428 #       * make xterm-xf86-v43 derived from xterm-xf86-v40 rather than
22429 #         xterm-basic -TD
22430 #       * align with xterm #192's use of xterm-new -TD
22431 #       * update xterm-new and xterm-8bit for cvvis/cnorm strings -TD
22432 #       * make xterm-new the default "xterm" -TD
22433 #
22434 # 2004-07-10
22435 #       * minor fixes for emu -TD
22436 #       * add emu-220
22437 #       * add rmam/smam to linux (Trevor Van Bremen)
22438 #       * change wyse acsc strings to use 'i' map rather than 'I' -TD
22439 #       * fixes for avatar0 -TD
22440 #       * fixes for vp3a+ -TD
22441 #
22442 # 2004-07-17
22443 #       * add xterm-pc-fkeys -TD
22444 #       * review/update gnome and gnome-rh90 entries (prompted by
22445 #         Redhat Bugzilla #122815) -TD
22446 #       * review/update konsole entries -TD
22447 #       * add sgr, correct sgr0 for kterm and mlterm -TD
22448 #       * correct tsl string in kterm -TD
22449 #
22450 # 2004-07-24
22451 #       * make ncsa-m rmacs/smacs consistent with sgr -TD
22452 #       * add sgr, rc/sc and ech to syscons entries -TD
22453 #       * add function-keys to decansi -TD
22454 #       * add sgr to mterm-ansi -TD
22455 #       * add sgr, civis, cnorm to emu -TD
22456 #       * correct/simplify cup in addrinfo -TD
22457 #       * corrections for gnome and konsole entries
22458 #         (Redhat Bugzilla #122815) -Hans de Goede
22459 #       * modify DEC entries (vt220, etc), to add sgr string, and to use
22460 #         ISO-2022 strings for rmacs/smacs -TD
22461 #
22462 # 2004-07-31
22463 #       * rename xterm-pc-fkeys to xterm+pcfkeys -TD
22464 #
22465 # 2004-08-07
22466 #       * improved putty entry -Robert de Bath
22467 #
22468 # 2004-08-14
22469 #       * remove dch/dch1 from rxvt because they are implemented inconsistently
22470 #         with the common usage of bce/ech -TD
22471 #       * remove khome from vt220 (vt220's have no home key) -TD
22472 #       * add rxvt+pcfkeys -TD
22473 #
22474 # 2004-08-21
22475 #       * modify several entries to ensure xterm mouse and cursor visibility
22476 #         are reset in rs2 string:  hurd, putty, gnome, konsole-base, mlterm,
22477 #         Eterm, screen.  (The xterm entries are left alone - old ones for
22478 #         compatibility, and the new ones do not require this change) -TD
22479 #
22480 # 2004-08-28
22481 #       * add morphos entry -Pavel Fedin
22482 #       * modify amiga-8bit to add khome/kend/knp/kpp -Pavel Fedin
22483 #       * corrected \E[5?l to \E[?5l in vt320 entries -TD
22484 #
22485 # 2004-11-20
22486 #       * update wsvt25 entry -TD
22487 #
22488 # 2005-01-29
22489 #       * update pairs for xterm-88color and xterm-256color to reflect the
22490 #         ncurses extended-color support -TD
22491 #
22492 # 2005-02-26
22493 #       * modify sgr/sgr0 in xterm-new to improve tgetent's derived "me" -TD
22494 #       * add aixterm-16color to demonstrate 16-color capability -TD
22495 #
22496 # 2005-04-23
22497 #       * add media-copy to vt100 -TD
22498 #       * corrected acsc string for vt52 -TD
22499 #
22500 # 2005-04-30
22501 #       * add kUP, kDN (user-defined shifted up/down arrow) definitions for
22502 #         xterm-new -TD
22503 #       * add kUP5, kUP6, etc., for xterm-new and rxvt -TD
22504 #
22505 # 2005-05-07
22506 #       * re-corrected acsc string for vt52 -TD
22507 #
22508 # 2005-05-28
22509 #       * corrected sun-il sgr string which referred to bold and underline -TD
22510 #       * add sun-color entry -TD
22511 #
22512 # 2005-07-23
22513 #       * modify sgr0 in several entries to reset alternate-charset as in the
22514 #         sgr string -TD
22515 #       * modify sgr string of prism9 to better match the individual
22516 #         attributes -TD
22517 #
22518 # 2005-10-15
22519 #       * correct order of use= in rxvt-basic -TD
22520 #
22521 # 2005-10-26
22522 #       * use kind/kri as shifted up/down cursor keys for xterm-new -TD
22523 #
22524 # 2005-11-12
22525 #       * other minor fixes to cygwin based on tack -TD
22526 #       * correct smacs in cygwin (report by Baurzhan Ismagulov).
22527 #
22528 # 2006-02-18
22529 #       * add nsterm-16color entry -TD
22530 #       * remove ncv flag from xterm-16color -TD
22531 #       * remove setf/setb from xterm-256color to match xterm #209 -TD
22532 #       * update mlterm entry to 2.9.2 -TD
22533 #
22534 # 2006-02-25
22535 #       * fixes to make nsterm-16color match report
22536 #         by Christian Ebert -Alain Bench
22537 #
22538 # 2006-04-22
22539 #       * add xterm+256color building block -TD
22540 #       * add gnome-256color, putty-256color, rxvt-256color -TD
22541 #
22542 # 2006-05-06
22543 #       * add hpterm-color -TD
22544 #
22545 # 2006-06-24
22546 #       * add xterm+pcc0, xterm+pcc1, xterm+pcc2, xterm+pcc3 -TD
22547 #       * add gnome-fc5 (prompted by GenToo #122566) -TD
22548 #       * remove obsolete/misleading comments about kcbt on Linux -Alain Bench
22549 #       * improve xterm-256color by combining the ibm+16color setaf/setab
22550 #         strings with SGR 48.  The setf/setb strings also are cancelled here
22551 #         rather than omitted so derived entries will cancel those also -Alain
22552 #         Bench
22553 #
22554 # 2006-07-01
22555 #       * add some notes regarding copyright to terminfo.src -TD
22556 #       * use rxvt+pcfkeys in Eterm -TD
22557 #       * remove km and flash from gnome, Eterm and rxvt since they do not work
22558 #         as one would expect (km sends ESC rather than setting the 8th bit
22559 #         of the key) -TD
22560 #       * add/use ansi+enq, vt100+enq and vt102+enq -TD
22561 #       * add konsole-solaris -TD
22562 #
22563 # 2006-07-22
22564 #       * update xterm-sun and xterm-sco entries to match xterm #216 -TD
22565 #       * modify is2/rs2 strings for xterm-r6 as per fix in xterm #148 -TD
22566 #       * modify xterm-24 to inherit from "xterm" -TD
22567 #       * add xiterm entry -TD
22568 #       * add putty-vt100 entry -TD
22569 #       * corrected spelling of Michael A Dorman's name, prompted by
22570 #         http://www.advogato.org/person/mdorman/diary.html -TD
22571 #
22572 # 2006-08-05
22573 #       * add xterm+pcf0, xterm+pcf2 from xterm #216 -TD
22574 #       * update xterm+pcfkeys to match xterm #216 -TD
22575 #
22576 # 2006-08-17
22577 #       * make descriptions of xterm entries consistent with its terminfo -TD
22578 #
22579 # 2006-08-26
22580 #       * add xfce, mgt -TD
22581 #
22582 # 2006-09-02
22583 #       * correct acsc string in kterm -TD
22584 #
22585 # 2006-09-09
22586 #       * add kon entry -TD
22587 #       * remove invis from linux and related entries, add klone+sgr8 for those
22588 #         that implement the feature (or have not been shown to lack it) -TD
22589 #
22590 # 2006-09-23
22591 #       * add ka2, kb1, kb3, kc2 to vt220-keypad as an extension -TD
22592 #       * minor improvements to rxvt+pcfkeys -TD
22593 #
22594 # 2006-09-30
22595 #       * fix a few typos in if/then/else expressions -TD
22596 #
22597 # 2006-10-07
22598 #       * add several GNU Screen variations with 16- and 256-colors, and
22599 #         status line (Alain Bench).
22600 #
22601 # 2007-03-03
22602 #       * add Newbury Data entries (Jean-Charles Billaud).
22603 #
22604 # 2007-06-10
22605 #       * corrected xterm+pcf2 modifiers for F1-F4, match xterm #226 -TD
22606 #
22607 # 2007-07-14
22608 #       * restore section of pre-ncurses-4.2 changelog to fix attribution -TD
22609 #       * add konsole-256color entry -TD
22610 #
22611 # 2007-08-18
22612 #       * add 9term entry (request by Juhapekka Tolvanen) -TD
22613 #
22614 # 2007-10-13
22615 #       * correct kIC in rxvt+pcfkeys (prompted by Debian #446444) -TD
22616 #       * add shift-control- and control-modified keys for rxvt editing
22617 #         keypad -TD
22618 #       * update mlterm entry to 2.9.3 -TD
22619 #       * add mlterm+pcfkeys -TD
22620 #
22621 # 2007-10-20
22622 #       * move kLFT, kRIT, kind and kri capabilities from xterm-new to
22623 #         xterm+pcc0, etc., to make the corresponding building blocks reflect
22624 #         xterm's capabilities -TD
22625 #       * add mrxvt entry -TD
22626 #       * add xterm+r6f2, use in mlterm and mrxvt entries -TD
22627 #
22628 # 2007-11-03
22629 #       * correct acsc strings for h19 and z100 (Benjamin Sittler)
22630 #
22631 # 2007-11-11
22632 #       * use xterm-xf86-v44 for "xterm-xfree86", reflecting changes to
22633 #         xterm starting with patch #216 -TD
22634 #       * make legacy xterm entries such as xterm-24 inherit from xterm-old,
22635 #         to match xterm #230 -TD
22636 #       * extend xterm+pccX entries to match xterm #230 -TD
22637 #       * add xterm+app, xterm+noapp, from xterm #230 -TD
22638 #       * add/use xterm+pce2 from xterm #230, in xterm+pcfkeys -TD
22639 #
22640 # 2008-04-19
22641 #       * add screen.rxvt -TD
22642 #
22643 # 2008-04-28
22644 #       * add screen+fkeys (prompted by Debian #478094) -TD
22645 #
22646 # 2008-06-28
22647 #       * add screen.mlterm -TD
22648 #       * improve mlterm and mlterm+pcfkeys -TD
22649 #
22650 # 2008-08-23
22651 #       * add Eterm-256color, Eterm-88color -TD
22652 #       * add rxvt-88color -TD
22653 #
22654 # 2008-10-12
22655 #       * add teraterm4.59 entry, use that as primary teraterm entry, rename
22656 #         original to teraterm2.3 -TD
22657 #       * update "gnome" to 2.22.3 -TD
22658 #       * update "konsole" to 1.6.6 -TD
22659 #       * add "aterm" -TD
22660 #       * add "linux2.6.26" -TD
22661 #
22662 # 2008-11-15
22663 #       * change several \E[2g (clear tab at current column) to \E[3g
22664 #         (clear all tabs) to match definition for tbc capability -TD
22665 #
22666 # 2008-11-29
22667 #       * add eterm-color -TD
22668 #
22669 # 2009-01-10
22670 #       * add screen.Eterm -TD
22671 #
22672 # 2009-03-28
22673 #       * correct typo in pfkey of ansi.sys-old
22674 #         (report by Kalle Olavi Niemitalo)
22675 #       * move function- and cursor-keys from emx-base to ansi.sys, and create
22676 #         a pfkey capability which handles F1-F48 -TD
22677 #
22678 # 2009-05-02
22679 #       * add vwmterm entry (Bryan Christ)
22680 #
22681 # 2009-09-19
22682 #       * change ncv and op capabilities in sun-color to match Sun's entry for
22683 #         this (report by Laszlo Peter)
22684 #       * improve interix smso by using reverse rather than bold (report by
22685 #         Kristof Zelechovski).
22686 #
22687 # 2009-10-03
22688 #       * remove unnecessary kcan assignment to ^C from putty (Sven Joachim)
22689 #       * add linux-16color (Benjamin Sittler)
22690 #       * correct initc capability of linux-c-nc end-of-range (Benjamin Sittler)
22691 #       * similar change for dg+ccc and dgunix+ccc (Benjamin Sittler)
22692 #       * add ccc and initc capabilities to xterm-16color -TD
22693 #
22694 # 2009-10-31
22695 #       * updated nsterm* entries (Benjamin Sittler, prompted by GenToo #206201)
22696 #
22697 # 2009-12-12
22698 #       * updated nsterm* entries (Benjamin Sittler, Emanuele Giaquinta)
22699 #
22700 # 2009-12-12
22701 #       * add bw (auto-left-margin) to nsterm* entries (Benjamin Sittler)
22702 #       * rename minix to minix-1.7, add minix entry for Minux3 -TD
22703 #
22704 # 2009-12-26
22705 #       * add bterm (bogl 0.1.18) -TD
22706 #       * minor fix to rxvt+pcfkeys -TD
22707 #
22708 # 2010-02-06
22709 #       * update mrxvt to 0.5.4, add mrxvt-256color -TD
22710 #
22711 # 2010-02-13
22712 #       * add several screen-bce.XXX entries -TD
22713 #
22714 # 2010-02-23
22715 #       * modify screen-bce.XXX entries to exclude ech, since screen's color
22716 #         model does not clear with color for that feature -TD
22717 #
22718 # 2010-03-20
22719 #       * rename atari and st52 to atari-old, st52-old, use newer entries from
22720 #         FreeMiNT by Guido Flohr (from patch/report by Alan Hourihane).
22721 #
22722 # 2010-06-12
22723 #       * add mlterm+256color entry -TD
22724 #
22725 # 2010-07-17
22726 #       * add hard-reset for rs2 to wsvt25 to help ensure that reset ends
22727 #         the alternate character set (patch by Nicholas Marriott)
22728 #
22729 # 2010-08-28
22730 #       * improve acsc for vt52 (Benjamin Sittler)
22731 #       * modify nsterm entries for consistent sgr/sgr0 -TD
22732 #       * modify xnuppc entries for consistent sgr/sgr0 -TD
22733 #       * add invis to tek4115 sgr -TD
22734 #
22735 # 2010-09-11
22736 #       * reformat acsc strings to canonical format -TD
22737 #
22738 # 2010-09-25
22739 #       * add "XT" capability to entries for terminals that support both
22740 #         xterm-style mouse- and title-controls, for "screen" which
22741 #         special-cases TERM beginning with "xterm" or "rxvt" -TD
22742 #
22743 # 2010-10-02
22744 #       * fill in no-parameter forms of cursor-movement where a parameterized
22745 #         form is available -TD
22746 #       * fill in missing cursor controls where the form of the controls is
22747 #         ANSI -TD
22748 #       * add parameterized cursor-controls to linux-basic (report by Dae) -TD
22749 #
22750 # 2010-10-09
22751 #       * correct comparison used for setting 16-colors in linux-16color
22752 #         entry (Novell #644831) -TD
22753 #       * improve linux-16color entry, using "dim" for color-8 which makes it
22754 #         gray rather than black like color-0 -TD
22755 #
22756 # 2010-11-20
22757 #       * make "vte" the principal entry defining "gnome", since GNOME terminal
22758 #         is merely one of several terminals whose behavior is provided by this
22759 #         library -TD
22760 #
22761 # 2010-11-27
22762 #       * fix typo in rmso for tek4106 -Goran Weinholt
22763 #
22764 # 2010-12-11
22765 #       * suppress ncv in screen entry, allowing underline -Alejandro R. Sedeno
22766 #       * also suppress ncv in konsole-base -TD
22767 #
22768 # 2011-02-05
22769 #       * add U8 feature to denote entries for terminal emulators which do not
22770 #         support VT100 SI/SO when processing UTF-8 encoding -TD
22771 #       * add xterm-utf8 as a demo of the U8 feature -TD
22772 #
22773 # 2011-02-20
22774 #       * add cons25-debian entry (Brian M Carlson, Debian #607662).
22775 #
22776 # 2011-06-11
22777 #       * update minix entry to minix 3.2 (Thomas Cort).
22778 #
22779 # 2011-07-09
22780 #       * fix inconsistent tabset path in pcmw (Todd C. Miller).
22781 #       * remove a backslash which continued comment, obscuring altos3
22782 #         definition with OpenBSD toolset (Nicholas Marriott).
22783 #
22784 # 2011-07-16
22785 #       * add/use xterm+tmux chunk from xterm #271 -TD
22786 #       * resync xterm-new entry from xterm #271 -TD
22787 #       * add E3 extended capability to linux-basic (Miroslav Lichvar)
22788 #       * add linux2.2, linux2.6, linux3.0 entries to give context for E3 -TD
22789 #       * add SI/SO change to linux2.6 entry (Debian #515609) -TD
22790 #
22791 # 2011-07-21
22792 #       * add kich1 to sun (Yuri Pankov)
22793 #       * use bold rather than reverse for smso in sun-color (Yuri Pankov).
22794 #
22795 # 2011-08-06
22796 #       * corrected k9 in dg460-ansi, add other features based on manuals -TD
22797 #
22798 # 2011-08-20
22799 #       * minor cleanup of X-terminal emulator section -TD
22800 #       * add terminator entry -TD
22801 #       * add simpleterm entry -TD
22802 #
22803 # 2011-09-10
22804 #       * add xterm+kbs fragment from xterm #272 -TD
22805 #
22806 # 2011-11-12
22807 #       * add pccon entries for OpenBSD console (Alexei Malinin)
22808 #
22809 # 2011-12-17
22810 #       * corrected old changelog comments -TD
22811 #
22812 # 2011-11-24
22813 #       * add putty-sco -TD
22814 #
22815 # 2012-01-28
22816 #       * add mach-gnu (Samuel Thibault)
22817 #       * add mach-gnu-color, tweaks to mach-gnu -TD
22818 #       * make sgr for sun-color agree with smso -TD
22819 #       * make sgr for prism9 agree with other caps -TD
22820 #       * make sgr for icl6404 agree with other caps -TD
22821 #       * make sgr for ofcons agree with other caps -TD
22822 #       * make sgr for att5410v1, att4415, att620 agree with other caps -TD
22823 #       * make sgr for aaa-unk, aaa-rv agree with other caps -TD
22824 #       * make sgr for avt-ns agree with other caps -TD
22825 #
22826 # 2012-02-11
22827 #       * make sgr for xterm-pcolor agree with other caps -TD
22828 #       * make sgr for att5425 agree with other caps -TD
22829 #       * make sgr for att630 agree with other caps -TD
22830 #       * make sgr for linux entries agree with other caps -TD
22831 #       * make sgr for tvi9065 agree with other caps -TD
22832 #       * make sgr for ncr260vt200an agree with other caps -TD
22833 #       * make sgr for ncr160vt100pp agree with other caps -TD
22834 #       * make sgr for ncr260vt300an agree with other caps -TD
22835 #       * make sgr for aaa-60-dec-rv, aaa+dec agree with other caps -TD
22836 #       * make sgr for cygwin, cygwinDBG agree with other caps -TD
22837 #
22838 # 2012-03-31
22839 #       * correct order of use-clauses in st-256color -TD
22840 #
22841 # 2012-04-01
22842 #       * revert 2011-07-16 change to "linux" alias, return to "linux2.2" -TD
22843 #
22844 # 2012-04-14
22845 #       * document all of the user-defined capabilities in one place -TD
22846 #       * add XT to some places to improve usefulness for other applications
22847 #         than screen, which would like to pretend that xterm's title is
22848 #         a status-line. -TD
22849 #       * change use-clauses in ansi-mtabs, hp2626, and hp2622 based on review
22850 #         of ordering and overrides -TD
22851 #
22852 # 2012-04-21
22853 #       * add msgr to vt420, similar DEC vtXXX entries -TD
22854 #       * add several missing vt420 capabilities from vt220 -TD
22855 #       * factor out ansi+pp from several entries -TD
22856 #       * change xterm+sl and xterm+sl-twm to include only the status-line
22857 #         capabilities and not "use=xterm", making them more generally useful
22858 #         as building-blocks -TD
22859 #       * add dec+sl building block, as example -TD
22860 #
22861 # 2012-04-28
22862 #       * fix some inconsistencies between vt320/vt420, e.g., cnorm/civis -TD
22863 #       * add eslok flag to dec+sl -TD
22864 #       * dec+sl applies to vt320 and up -TD
22865 #       * drop wsl width from xterm+sl -TD
22866 #       * reuse xterm+sl in putty and nsca-m -TD
22867 #       * add ansi+tabs to vt520 -TD
22868 #       * add ansi+enq to vt220-vt520 -TD
22869 #
22870 ######## SHANTIH!  SHANTIH!  SHANTIH!