xref: /freebsd/contrib/ncurses/misc/terminfo.src (revision 68ad2b0d7af2a3571c4abac9afa712f9b09b721c)
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.1200 $
10#	$Date: 2025/11/12 00:52:57 $
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# https://invisible-island.net/ncurses/ncurses.faq.html#terminfo_copying
38# https://invisible-island.net/personal/copyrights.html#removing_notes
39#------------------------------------------------------------------------------
40#
41#	Version 10.2.1
42#	terminfo syntax
43#
44#	Eric S. Raymond		(current maintainer)
45#	John Kunze, Berkeley
46#	Craig Leres, Berkeley
47#
48# Please e-mail changes to terminfo@thyrsus.com; the old termcap@berkeley.edu
49# address is no longer valid.  The latest version can always be found at
50# <http://www.tuxedo.org/terminfo>.
51#
52# PURPOSE OF THIS FILE:
53#
54# This file describes the capabilities of various character-cell terminals,
55# as needed by software such as screen-oriented editors.
56#
57# Other terminfo and termcap files exist, supported by various OS vendors
58# or as relics of various older versions of UNIX.  This one is the longest
59# and most comprehensive one in existence.  It subsumes not only the entirety
60# of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
61# termcap file, but also large numbers of vendor-maintained termcap and
62# terminfo entries more complete and carefully tested than those in historical
63# termcap/terminfo versions.
64#
65# Pointers to related resources (including the ncurses distribution) may
66# be found at <http://www.tuxedo.org/terminfo>.
67#
68# INTERNATIONALIZATION:
69#
70# This file uses only the US-ASCII character set (no ISO8859 characters).
71#
72# This file assumes a US-ASCII character set. If you need to fix this, start
73# by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
74# for your character set.  \E(A and \E)A enables the British character set
75# with the pound sign at position 2/3.
76#
77# In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
78# C1 characters are considered the first-byte set of the Japanese encodings,
79# so \E)0 should be avoided in <enacs> and initialization strings.
80#
81# FILE FORMAT:
82#
83# The version you are looking at may be in any of three formats: master
84# (terminfo with OT capabilities), stock terminfo, or termcap.  You can tell
85# which by the format given in the header above.
86#
87# The master format is accepted and generated by the terminfo tools in the
88# ncurses suite; it differs from stock (System V-compatible) terminfo only
89# in that it admits a group of capabilities (prefixed `OT') equivalent to
90# various obsolete termcap capabilities.  You can, thus, convert from master
91# to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
92# you have ncurses `tic -I' is nicer (among other things, it automatically
93# outputs entries in a canonical form).
94#
95# The termcap version is generated automatically from the master version
96# using tic -C.  This filtering leaves in the OT capabilities under their
97# original termcap names.  All translated entries fit within the 1023-byte
98# string-table limit of archaic termcap libraries except where explicitly
99# noted below.  Note that the termcap translation assumes that your termcap
100# library can handle multiple tc capabilities in an entry. 4.4BSD has this
101# capability.  Older versions of GNU termcap, through 1.3, do not.
102#
103# For details on these formats, see terminfo(5) in the ncurses distribution,
104# and termcap(5) in the 4.4BSD Unix Programmer's Manual.  Be aware that 4.4BSD
105# curses has been declared obsolete by the caretakers of the 4.4BSD sources
106# as of June 1995; they are encouraging everyone to migrate to ncurses.
107#
108# Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
109# no entry in this file has embedded comments.  This is so source translation
110# to termcap only has to carry over leading comments.  Also, no name field
111# contains embedded whitespace (such whitespace confuses rdist).
112#
113# Further note: older versions of this file were often installed with an editor
114# script (reorder) that moved the most common terminal types to the front of
115# the file.  This should no longer be necessary, as the file is now ordered
116# roughly by type frequency with ANSI/VT100 and other common types up front.
117#
118# Some information has been merged in from terminfo files distributed by
119# USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below).  Much information
120# comes from vendors who maintain official terminfos for their hardware
121# (notably DEC and Wyse).
122#
123# A detailed change history is included at the end of this file.
124#
125# FILE ORGANIZATION:
126#
127# Comments in this file begin with # - they cannot appear in the middle
128# of a terminfo/termcap entry (this feature had to be sacrificed in order
129# to allow standard terminfo and termcap syntax to be generated cleanly from
130# the master format).  Individual capabilities are commented out by
131# placing a period between the colon and the capability name.
132#
133# The file is divided up into major sections (headed by lines beginning with
134# the string "########") and minor sections (beginning with "####"); do
135#
136#	grep "^####" <file> | more
137#
138# to see a listing of section headings.  The intent of the divisions is
139# (a) to make it easier to find things, and (b) to order the database so
140# that important and frequently-encountered terminal types are near the
141# front (so that you'll get reasonable search efficiency from a linear
142# search of the termcap form even if you don't use reorder).  Minor sections
143# usually correspond to manufacturers or standard terminal classes.
144# Parenthesized words following manufacturer names are type prefixes or
145# product line names used by that manufacturers.
146#
147# HOW TO READ THE ENTRIES:
148#
149# The first name in an entry is the canonical name for the model or
150# type, last entry is a verbose description.  Others are mnemonic synonyms for
151# the terminal.
152#
153# Terminal names look like <manufacturer> <model> - <modes/options>
154# The part to the left of the dash, if a dash is present, describes the
155# particular hardware of the terminal.  The part to the right may be used
156# for flags indicating special ROMs, extra memory, particular terminal modes,
157# or user preferences.
158#
159# All names should be in lower case, for consistency in typing.
160#
161# The following are conventionally used suffixes:
162#	-2p	Has two pages of memory.  Likewise 4p, 8p, etc.
163#	-am	Enable auto-margin.
164#	-m	Monochrome.  Suppress color support
165#	-mc	Magic-cookie.  Some terminals (notably older Wyses) can
166#		only support one attribute without magic-cookie lossage.
167#		Their base entry is usually paired with another that
168#		uses magic cookies to support multiple attributes.
169#	-nam	No auto-margin - suppress <am> capability
170#	-nl	No labels - suppress soft labels
171#	-ns	No status line - suppress status line
172#	-rv	Terminal in reverse video mode (black on white)
173#	-s	Enable status line.
174#	-vb	Use visible bell (<flash>) rather than <bel>.
175#	-w	Wide - in 132 column mode.
176# If a name has multiple suffixes and one is a line height, that one should
177# go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.
178#
179# Entries with embedded plus signs are designed to be included through use/tc
180# capabilities, not used as standalone entries.
181#
182# To avoid search clashes, some older all-numeric names for terminals have
183# been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
184# All primary names of terminals now have alphanumeric prefixes.
185#
186# Comments marked "esr" are mostly results of applying the termcap-compiler
187# code packaged with ncurses and contemplating the resulting error messages.
188# In many cases, these indicated obvious fixes to syntax garbled by the
189# composers.  In a few cases, I was able to deduce corrected forms for garbled
190# capabilities by looking at context.  All the information in the original
191# entries is preserved in the comments.
192#
193# In the comments, terminfo capability names are bracketed with <> (angle
194# brackets).  Termcap capability names are bracketed with :: (colons).
195#
196# INTERPRETATION OF USER CAPABILITIES
197#
198# The System V Release 4 and XPG4 terminfo format defines ten string
199# capabilities for use by applications, <u0>...<u9>.   In this file, we use
200# certain of these capabilities to describe functions which are not covered
201# by terminfo.  The mapping is as follows:
202#
203#	u9	terminal enquire string (equiv. to ANSI/ECMA-48 DA)
204#	u8	terminal answerback description
205#	u7	cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
206#	u6	cursor position report (equiv. to ANSI/ECMA-48 CPR)
207#
208# The terminal enquire string <u9> should elicit an answerback response
209# from the terminal.  Common values for <u9> will be ^E (on older ASCII
210# terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
211#
212# The cursor position request (<u7>) string should elicit a cursor position
213# report.  A typical value (for VT100 terminals) is \E[6n.
214#
215# The terminal answerback description (u8) must consist of an expected
216# answerback string.  The string may contain the following scanf(3)-like
217# escapes:
218#
219#	%c	Accept any character
220#	%[...]	Accept any number of characters in the given set
221#
222# The cursor position report (<u6>) string must contain two scanf(3)-style
223# %d format elements.  The first of these must correspond to the Y coordinate
224# and the second to the %d.  If the string contains the sequence %i, it is
225# taken as an instruction to decrement each value after reading it (this is
226# the inverse sense from the cup string).  The typical CPR value is
227# \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
228#
229# These capabilities are used by tack(1m), the terminfo action checker
230# (distributed with ncurses 5.0).
231#
232# TABSET FILES
233#
234# All the entries in this file have been edited to assume that the tabset
235# files directory is /usr/share/tabset, in conformance with the File Hierarchy
236# Standard for Linux and open-source BSD systems.  Some vendors (notably Sun)
237# use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.
238#
239# No curses package we know of actually uses these files.  If their location
240# is an issue, you will have to hand-patch the file locations before compiling
241# this file.
242#
243# REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
244#
245# As the ANSI/ECMA-48 standard and variants take firmer hold, and as
246# character-cell terminals are increasingly replaced by X displays, much of
247# this file is becoming a historical document (this is part of the reason for
248# the new organization, which puts ANSI types, xterm, Unix consoles,
249# and vt100 up front in confidence that this will catch 95% of new hardware).
250#
251# For the terminal types still alive, I'd like to have manufacturer's
252# contact data (Internet address and/or snail-mail + phone).
253#
254# I'm also interested in enriching the comments so that the latter portions of
255# the file do in fact become a potted history of VDT technology as seen by
256# UNIX hackers.  Ideally, I'd like the headers for each manufacturer to
257# include its live/dead/out-of-the-business status, and for as many
258# terminal types as possible to be tagged with information like years
259# of heaviest use, popularity, and interesting features.
260#
261# I'm especially interested in identifying the obscure entries listed under
262# `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
263# wisdom about them gets lost.  If you know a lot about obscure old terminals,
264# please go to the terminfo resource page, grab the UFO file (ufo.ti), and
265# eyeball it for things you can identify and describe.
266#
267# If you have been around long enough to contribute, please read the file
268# with this in mind and send me your annotations.
269#
270# COPYRIGHTS AND OTHER DELUSIONS
271#
272# The BSD ancestor of this file had a standard Regents of the University of
273# California copyright with dates from 1980 to 1993.
274#
275# Some information has been merged in from a terminfo file SCO distributes.
276# It has an obnoxious boilerplate copyright which I'm ignoring because they
277# took so much of the content from the ancestral BSD versions of this file
278# and didn't attribute it, thereby violating the BSD Regents' copyright.
279#
280# Not that anyone should care.  However many valid functions copyrights may
281# serve, putting one on a termcap/terminfo file with hundreds of anonymous
282# contributors makes about as much sense as copyrighting a wall-full of
283# graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
284#
285# This file deliberately has no copyright.  It belongs to no one and everyone.
286# If you claim you own it, you will merely succeed in looking like a fool.
287# Use it as you like.  Use it at your own risk.  Copy and redistribute freely.
288# There are no guarantees anywhere.  Svaha!
289#
290
291######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
292#
293# This section describes terminal classes and brands that are still
294# quite common.
295#
296
297#### Specials
298#
299# Special "terminals".  These are used to label tty lines when you don't
300# know what kind of terminal is on it.  The characteristics of an unknown
301# terminal are the lowest common denominator - they look about like a ti 700.
302#
303
304dumb|80-column dumb tty,
305	am,
306	cols#80,
307	bel=^G, cr=\r, cud1=\n, ind=\n,
308unknown|unknown terminal type,
309	gn, use=dumb,
310lpr|printer|line printer,
311	OTbs, hc, os,
312	cols#132, lines#66,
313	bel=^G, cr=\r, cub1=^H, cud1=\n, ff=^L, ind=\n,
314glasstty|classic glass tty interpreting ASCII control characters,
315	OTbs, am,
316	cols#80,
317	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, ht=^I, kcub1=^H,
318	kcud1=\n, nel=\r\n, .kbs=^H,
319
320vanilla|dumb tty,
321	OTbs,
322	bel=^G, cr=\r, cud1=\n, ind=\n,
323
324# This is almost the same as "dumb", but with no prespecified width.
325# DEL and ^C are hardcoded to act as kill characters.
326# ^D acts as a line break (just like newline).
327# It also interprets
328#      \033];xxx\007
329# for compatibility with xterm -TD
3309term|Plan9 terminal emulator for X,
331	am,
332	OTnl=\n, bel=^G, cud1=\n,
333
334#### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
335#
336# See the end-of-file comment for more on these.
337#
338
339# ANSI capabilities are broken up into pieces, so that a terminal
340# implementing some ANSI subset can use many of them.
341ansi+local1|ANSI normal-mode cursor-keys,
342	cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
343ansi+local|ANSI normal-mode parameterized cursor-keys,
344	cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
345	cuu=\E[%p1%dA, use=ansi+local1,
346ansi+tabs|ANSI tab-stops,
347	cbt=\E[Z, ht=^I, hts=\EH, tbc=\E[3g,
348ansi+inittabs|ANSI initial tab-stops,
349	it#8, use=ansi+tabs,
350ansi+erase|ANSI clear screen/line,
351	clear=\E[H\E[J, ed=\E[J, el=\E[K,
352ansi+rca|ANSI relative cursor-addressing (1-based),
353	hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
354ansi+rca2|ANSI relative cursor-addressing,
355	hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
356ansi+cup|ANSI absolute cursor-addressing,
357	cup=\E[%i%p1%d;%p2%dH, home=\E[H,
358ansi+rep|ANSI repeat-character,
359	rep=%p1%c\E[%p2%{1}%-%db,
360ansi+idl1|ANSI insert/delete one line,
361	dl1=\E[M, il1=\E[L,
362ansi+idl|ANSI insert/delete lines,
363	dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1,
364ansi+idc1|ANSI insert/delete one character,
365	dch1=\E[P, ich1=\E[@, rmir=\E[4l, smir=\E[4h,
366ansi+idc|ANSI insert/delete characters,
367	dch=\E[%p1%dP, ich=\E[%p1%d@, use=ansi+idc1,
368ansi+arrows|ANSI normal-mode home and cursor-keys,
369	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
370	khome=\E[H,
371ansi+apparrows|ANSI application-mode home and cursor-keys,
372	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\EOH,
373	use=ansi+arrows,
374ansi+sgr|ANSI graphic renditions,
375	blink=\E[5m, invis=\E[8m, rev=\E[7m,
376	sgr=\E[0%?%p3%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
377	sgr0=\E[0m,
378ansi+sgrso|ANSI standout only,
379	rmso=\E[m, smso=\E[7m,
380ansi+sgrul|ANSI underline only,
381	rmul=\E[m, smul=\E[4m,
382ansi+sgrbold|ANSI graphic renditions; assuming terminal has bold; not dim,
383	bold=\E[1m,
384	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;
385	    %;%?%p7%t8;%;m,
386	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
387ansi+sgrdim|ANSI graphic renditions; assuming terminal has dim; not bold,
388	dim=\E[2m,
389	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;
390	    %;%?%p7%t8;%;m,
391	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
392
393# ECMA-48 does not specify scroll-regions, but most people consider it to be
394# "ANSI" because it is widely-supported.  See ecma+index for the standard form.
395ansi+csr|ANSI scroll-region plus cursor save & restore,
396	csr=\E[%i%p1%d;%p2%dr, rc=\E8, sc=\E7,
397
398# The normal (ANSI) flavor of "media copy" building block asserts that
399# characters sent to the printer do not echo on the screen. DEC terminals
400# can also be put into autoprinter mode, where each line is sent to the
401# printer as you move off that line, e.g., by a carriage return.
402ansi+pp|ANSI printer port,
403	mc5i,
404	mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
405dec+pp|DEC autoprinter mode,
406	mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
407
408# The IBM PC alternate character set.  Plug this into any Intel console entry.
409# We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
410# ROM graphics for control characters such as the diamond, up- and down-arrow.
411# This works with the System V, Linux, and BSDI consoles.  It's a safe bet this
412# will work with any Intel console, they all seem to have inherited \E[11m
413# from the ANSI.SYS de-facto standard.
414klone+acs|alternate character set for ansi.sys displays,
415	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j
416	     \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
417	     \301w\302x\263y\363z\362{\343|\330}\234~\376,
418	rmacs=\E[10m, smacs=\E[11m,
419
420# Highlight controls corresponding to the ANSI.SYS standard.  Most
421# console drivers for Intel boxes obey these.  Makes the same assumption
422# about \E[11m as klone+acs.  True ANSI/ECMA-48 would have <rmso=\E[27m>,
423# <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.
424klone+sgr|attribute control for ansi.sys displays,
425	blink=\E[5m, bold=\E[1m, rev=\E[7m, rmpch=\E[10m,
426	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
427	    %t;1%;%?%p9%t;11%;m,
428	sgr0=\E[0;10m, smpch=\E[11m, use=ansi+sgrso,
429	use=ansi+sgrul, use=klone+acs,
430
431# Most Intel boxes do not treat "invis" (invisible) text.
432klone+sgr8|attribute control for ansi.sys displays with invis,
433	invis=\E[8m,
434	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
435	    %t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
436	use=klone+sgr,
437
438# Highlight controls corresponding to the ANSI.SYS standard.  *All*
439# console drivers for Intel boxes obey these.  Does not assume \E[11m will
440# work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
441# diamond and arrow characters under curses.
442klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m),
443	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
444	    %t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
445	sgr0=\E[0;10m, smacs=\E[12m, use=ansi+sgrbold,
446	use=klone+acs,
447
448# KOI8-R (RFC1489) acs (alternate character set)
449# From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
450klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset,
451	acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i
452	     \220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t
453	     \206u\207v\210w\211x\201y\230z\231{\267|\274}L~
454	     \225,
455	rmacs=\E[10m, smacs=\E[11m,
456
457# ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
458# between SVr4/XPG4's color numbers and ANSI.SYS attributes.  Here are longer
459# but equivalent strings that don't rely on that coincidence:
460# setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
461# setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
462# The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
463# They match a subset of ECMA-48.
464klone+color|color control for ansi.sys and ISO6429-compatible displays,
465	colors#8, ncv#3, pairs#64,
466	op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
467
468# This is better than klone+color, it doesn't assume white-on-black as the
469# default color pair,  but many `ANSI' terminals don't grok the <op> cap.
470ecma+color|color control for ECMA-48-compatible terminals,
471	AX,
472	op=\E[39;49m, use=klone+color,
473
474ecma+italics|ECMA-48 italics,
475	ritm=\E[23m, sitm=\E[3m,
476
477ecma+standout|ECMA-48 standout,
478	rmso=\E[27m, smso=\E[7m,
479
480ecma+underline|ECMA-48 underline,
481	rmul=\E[24m, smul=\E[4m,
482
483# Attribute control for ECMA-48-compatible terminals
484ecma+sgr|attribute capabilities for true ECMA-48 terminals,
485	use=ecma+underline, use=ecma+standout, use=klone+sgr8,
486
487ecma+strikeout|ECMA-48 strikeout/crossed-out,
488	rmxx=\E[29m, smxx=\E[9m,
489
490# ECMA-48 does not include the VT100 indexing and scroll-margins.  It has its
491# own variation.
492ecma+index|ECMA-48 scroll up/down,
493	indn=\E[%p1%dS, rin=\E[%p1%dT,
494
495# For comparison, here are all the capabilities implied by the Intel
496# Binary Compatibility Standard (level 2) that fit within terminfo.
497# For more detail on this rather pathetic standard, see the comments
498# near the end of this file.
499ibcs2|Intel Binary Compatibility Standard prescriptions,
500	cbt=\E[Z, clear=\Ec, cub1=\E[1D, cud1=\E[1B, cuf1=\E[1C,
501	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch=\E[%p1%dP,
502	dispc=\E=%p1%dg, ech=\E[%p1%dX, hts=\EH, ich=\E[%p1%d@,
503	ich1=\E[@, il=\E[%p1%dL, rc=\E7, rmam=\E[?7l, sc=\E7,
504	smam=\E[?7h, tbc=\E[g, use=ansi+local, use=ansi+rca2,
505	use=ecma+index,
506
507#### ANSI/ECMA-48 terminals and terminal emulators
508#
509# See near the end of this file for details on ANSI conformance.
510# Don't mess with these entries!  Lots of other entries depend on them!
511#
512# This section lists entries in a least-capable to most-capable order.
513# if you're in doubt about what `ANSI' matches yours, try them in that
514# order and back off from the first that breaks.
515
516# ansi-mr is for ANSI terminals with ONLY relative cursor addressing
517# and more than one page of memory.  It uses local motions instead of
518# direct cursor addressing, and makes almost no assumptions. It does
519# assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.
520ansi-mr|mem rel cup ANSI,
521	am, xon,
522	cols#80, lines#24, use=vanilla, use=ansi+erase,
523	use=ansi+local1,
524
525# ansi-mini is a bare minimum ANSI terminal. This should work on anything, but
526# beware of screen size problems and memory relative cursor addressing.
527ansi-mini|any ANSI terminal with pessimistic assumptions,
528	am, xon,
529	cols#80, lines#24, use=vanilla, use=ansi+cup,
530	use=ansi+erase,
531
532# ansi-mtabs adds relative addressing and minimal tab support
533ansi-mtabs|any ANSI terminal with pessimistic assumptions (relative addressing),
534	it#8,
535	ht=^I, use=ansi-mini, use=ansi+local1,
536
537# ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
538#
539# The following is an entry for the full ANSI 3.64 (1977).  It lacks
540# padding, but most terminals using the standard are "fast" enough
541# not to require any -- even at 9600 bps.  If you encounter problems,
542# try including the padding specifications.
543#
544# Note: the :as: and :ae: specifications are not implemented here, for
545# the available termcap documentation does not make clear WHICH alternate
546# character set to specify.  ANSI 3.64 seems to make allowances for several.
547# Please make the appropriate adjustments to fit your needs -- that is
548# if you will be using alternate character sets.
549#
550# There are very few terminals running the full ANSI 3.64 standard,
551# so I could only test this entry on one verified terminal (Visual 102).
552# I would appreciate the results on other terminals sent to me.
553#
554# Please report comments, changes, and problems to:
555#
556# U.S. MAIL:   Hugh Hansard
557#              Box: 22830
558#              Emory University
559#              Atlanta, GA. 30322.
560#
561# USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
562#
563# (Added vt100 <rc>,<sc> to quiet a tic warning --esr)
564ansi77|ANSI 3.64 standard 1977 version,
565	OTbs, am, mir,
566	cols#80, it#8, lines#24,
567	bel=^G, clear=\E[;H\E[2J, cr=\r, cub1=^H, dch1=\E[P,
568	dl1=\E[M$<5*/>, ed=\E[J, el=\E[K, ht=^I, il1=\E[L$<5*/>,
569	ind=\ED, kf1=\EOP, kf2=\EOR, kf4=\EOS, nel=\r\ED, ri=\EM,
570	rmir=\E[4l, smir=\E[4h, use=ansi+arrows, use=ansi+csr,
571	use=ansi+cup, use=ansi+local1, use=ansi+sgrso,
572	use=ansi+sgrul,
573
574# Procomm and some other ANSI emulations don't recognize all of the ANSI-
575# standard capabilities.  This entry deletes <cuu>, <cuf>, <cud>, <cub>, and
576# <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>,
577# <cuf1>, <cud1> and <cub1>.  Also deleted <ich> and <ich1>, as QModem up to
578# 5.03 doesn't recognize these.  Finally, we delete <rep> and <ri>, which seem
579# to confuse many emulators.  On the other hand, we can count on these programs
580# doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured
581# <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
582# ANSI.SYS influence.
583# From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
584pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ANSI (mono mode),
585	OTbs, am, mir, msgr,
586	cols#80, lines#24,
587	bel=^G, cr=\r, dch1=\E[P, ind=\n, use=ansi+arrows,
588	use=ansi+cup, use=ansi+erase, use=ansi+idl1,
589	use=ansi+inittabs, use=ansi+local1, use=klone+sgr-dumb,
590
591pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode),
592	lines#25, use=pcansi-m,
593pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode),
594	lines#33, use=pcansi-m,
595pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode),
596	lines#43, use=pcansi-m,
597# The color versions.  All PC emulators do color...
598pcansi|ibm-pc terminal programs claiming to be ANSI,
599	use=klone+color, use=pcansi-m,
600pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines,
601	lines#25, use=pcansi,
602pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines,
603	lines#33, use=pcansi,
604pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines,
605	lines#43, use=pcansi,
606
607# ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
608# If you want pound signs rather than dollars, replace `B' with `A'
609# in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
610# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
611ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes,
612	mc5i,
613	dch=\E[%p1%dP, dl=\E[%p1%dM, ech=\E[%p1%dX, el1=\E[1K,
614	ht=\E[I, ich=\E[%p1%d@, il=\E[%p1%dL, kcbt=\E[Z,
615	kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S,
616	rep=%p1%c\E[%p2%{1}%-%db, s0ds=\E(B, s1ds=\E)B,
617	s2ds=\E*B, s3ds=\E+B, use=ansi+local, use=ansi+rca2,
618	use=ecma+index, use=pcansi-m,
619
620# ECMA-48 addresses three of the four capabilities here:
621#
622# u6 -
623#	8.3.14 CPR - ACTIVE POSITION REPORT
624#	Notation: (Pn1;Pn2) Representation: CSI Pn1;Pn2 05/02
625#	Parameter default values: Pn1 = 1; Pn2 = 1
626#
627# u7
628#	8.3.35 DSR - DEVICE ST A TUS REPORT
629#	Notation: (Ps) Representation: CSI Ps 06/14
630#	Parameter default value: Ps = 0
631#	DSR is used either to report the status of the sending device or to
632#	request a status report from the receiving device, depending on the
633#	parameter values:
634#	6 a report of the active presentation position or of the active data
635#	  position in the form of ACTIVE POSITION REPORT (CPR) is requested
636#
637# u9 -
638#	8.3.24 DA - DEVICE ATTRIBUTES
639#	Notation: (Ps) Representation: CSI Ps 06/03
640#	Parameter default value: Ps = 0
641#	With a parameter value not equal to 0, DA is used to identify the
642#	device which sends the DA.  The parameter value is a device type
643#	identification code according to a register which is to be established.
644#	If the parameter value is 0, DA is used to request an identifying DA
645#	from a device.
646#
647# DEC (and most "ANSI") terminals reply with a private-mode ("?") sequence,
648# but that register "which is to be" in ECMA-48 was never established.
649# For terminals that support DA1, a more specific u8 capability is preferred,
650# except for those (such as xterm) which can be configured to return different
651# responses.
652ansi+cpr|ncurses extension for ANSI CPR,
653	u6=\E[%i%d;%dR, u7=\E[6n,
654ansi+enq|ncurses extension for ANSI ENQ,
655	u8=\E[?%[;0123456789]c, u9=\E[c, use=ansi+cpr,
656# DEC terminals provided DECID, subsumed into DA1:
657decid+cpr|ncurses extension for DECID,
658	u8=\E[?%[;0123456789]c, u9=\EZ, use=ansi+cpr,
659
660# ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
661# standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
662# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
663ansi|ansi/pc-term compatible with color,
664	use=ansi+enq, use=ecma+color, use=klone+sgr8, use=ansi-m,
665
666# ansi-generic is a vanilla ANSI terminal. This is assumed to implement
667# all the normal ANSI stuff with no extensions. It assumes
668# insert/delete line/char is there, so it won't work with
669# VT100 clones. It assumes video attributes for bold, blink,
670# underline, and reverse, which won't matter much if the terminal
671# can't do some of those. Padding is assumed to be zero, which
672# shouldn't hurt since xon/xoff is assumed.
673ansi-generic|ansiterm|generic ANSI standard terminal,
674	am, xon,
675	cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup,
676	use=ansi+rca, use=ansi+erase, use=ansi+tabs,
677	use=ansi+local, use=ansi+idc, use=ansi+idl, use=ansi+rep,
678	use=ansi+sgrbold, use=ansi+arrows,
679
680#### DOS ANSI.SYS variants
681#
682# This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
683# documentation (except for the keyboard key reassignment feature, which
684# doesn't fit the <pfkey> model well).  The klone+acs sequences were valid
685# though undocumented.  The <pfkey> capability is untested but should work for
686# keys F1-F10 (%p1 values outside this range will yield unpredictable results).
687# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
688#
689# DOS 2.0 (January 1983) documented these features in
690# Chapter 13, "Using Extended Screen and Keyboard Control" -TD
691ansi.sys-old|ANSI.SYS under PC-DOS 2.0,
692	OTbs, am, mir, msgr, xon,
693	cols#80, lines#25,
694	clear=\E[2J, cub1=^H, el=\E[k, is2=\E[m\E[?7h, kcub1=^H,
695	kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
696	pfkey=\E[0;%p1%{58}%+%d;%p2"%s"p, rc=\E[u, rmam=\E[?7l,
697	sc=\E[s, smam=\E[?7h, use=ansi+cpr, use=ansi+cup,
698	use=ansi+local1, use=klone+color, use=klone+sgr8,
699
700# Keypad:	Home=\0G	Up=\0H	PrPag=\0I
701#		ka1,kh		kcuu1		kpp,ka3
702#
703#		Left=\0K	5=\0L		Right=\0M
704#		kcub1		kb2		kcuf1
705#
706#		End=\0O		Down=\0P	NxPag=\0Q
707#		kc1,kend	kcud1		kc3,knp
708#
709#		Ins=\0R		Del=\0S
710#		kich1		kdch1
711#
712# On keyboard with 12 function keys,
713#	shifted f-keys: F13-F24
714#	control f-keys: F25-F36
715#	alt f-keys:     F37-F48
716# The shift/control/alt keys do not modify each other, but alt overrides both,
717# and control overrides shift.
718#
719# <pfkey> capability for F1-F48 -TD
720ansi.sys|ANSI.SYS 3.1 and later versions,
721	el=\E[K, ka1=\0G, ka3=\0I, kb2=\0L, kc1=\0O, kc3=\0Q,
722	kcbt=\0^O, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
723	kdch1=\0S, kend=\0O, kf1=\0;, kf10=\0D, kf11=\0\205,
724	kf12=\0\206, kf13=\0T, kf14=\0U, kf15=\0V, kf16=\0W,
725	kf17=\0X, kf18=\0Y, kf19=\0Z, kf2=\0<, kf20=\0[, kf21=\0\\,
726	kf22=\0], kf23=\0\207, kf24=\0\210, kf25=\0\^, kf26=\0_,
727	kf27=\0`, kf28=\0a, kf29=\0b, kf3=\0=, kf30=\0c, kf31=\0d,
728	kf32=\0e, kf33=\0f, kf34=\0g, kf35=\0\211, kf36=\0\212,
729	kf37=\0h, kf38=\0i, kf39=\0j, kf4=\0>, kf40=\0k, kf41=\0l,
730	kf42=\0m, kf43=\0n, kf44=\0o, kf45=\0p, kf46=\0q,
731	kf47=\0\213, kf48=\0\214, kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B,
732	kf9=\0C, khome=\0G, kich1=\0R, knp=\0Q, kpp=\0I,
733	pfkey=\E[0;%?%p1%{11}%<%t%':'%e%p1%{13}%<%t%'z'%e%p1%{23}%<
734	      %t%'G'%e%p1%{25}%<%t%'p'%e%p1%'#'%<%t%'E'%e%p1%'%'%<%t
735	      %'f'%e%p1%'/'%<%t%'C'%e%{92}%;%p1%+%d;%p2"%s"p,
736	use=ansi+arrows, use=ansi.sys-old,
737
738#
739# Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
740# This should only be used when the terminal emulator cannot redefine the keys.
741# Since redefining keys with ansi.sys also affects PC-DOS programs, the key
742# definitions must be restored.  If the terminal emulator is quit while in vi
743# or others using <smkx>/<rmkx>, the keypad will not be defined as per PC-DOS.
744# The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
745# (^U and ^D are already defined for tn3270).  The ESC is safe for vi but it
746# does "beep".  ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
747# Note that <kcub1> is always BS, because PC-dos can tolerate this change.
748# Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
749# Consequently the End keypad key could not be set (it is relatively safe and
750# actually useful because it sends ^@ O, which beeps and opens a line above).
751ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi,
752	is2=U2\sPC-DOS\s3.1\sANSI.SYS\swith\skeypad\sredefined\sfor
753	    \svi\s9-29-86\n\E[;75;8p,
754	rmkx=\E[;71;0;71p\E[;72;0;72p\E[;73;0;73p\E[;77;0;77p\E[;80;
755	     0;80p\E[;81;0;81p\E[;82;0;82p\E[;83;0;83p,
756	smkx=\E[;71;30p\E[;72;11p\E[;73;27;21p\E[;77;12p\E[;80;10p
757	     \E[;81;27;4p\E[;82;27;27;105p\E[;83;127p,
758	use=ansi.sys,
759#
760# Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
761nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS,
762	dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
763	is2=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n,
764	use=ansi.sys,
765#
766# See ansi.sysk and nansi.sys above.
767nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
768	dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
769	is2=U4\sPC-DOS\sPublic\sDomain\sNANSI.SYS\swith\skeypad
770	    \sredefined\sfor\svi\s9-29-86\n\E[;75;8p,
771	use=ansi.sysk,
772
773#### Atari ST terminals
774
775# From Guido Flohr <gufl0000@stud.uni-sb.de>.
776#
777tw52|tw52-color|Toswin window manager with color,
778	bce,
779	colors#16, pairs#0x100,
780	oc=\Eb?\Ec0, op=\Eb?\Ec0,
781	setab=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
782	      %{48}%+%c,
783	setaf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
784	      %{48}%+%c,
785	setb=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
786	     %{48}%+%c,
787	setf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
788	     %{48}%+%c,
789	use=tw52-m,
790tw52-m|Toswin window manager monochrome,
791	ul,
792	ma#999,
793	bold=\Eya, dch1=\Ea, dim=\EyB,
794	is2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, rev=\EyP, rmso=\EzQ,
795	rmul=\EzH, rs2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, sgr0=\Ez_,
796	smso=\EyQ, smul=\EyH, use=at-m,
797tt52|Atari TT medium and high resolution,
798	lines#30, use=at-color,
799st52-color|at-color|atari-color|atari_st-color|Atari ST with color,
800	bce,
801	colors#16, pairs#0x100,
802	is2=\Ev\Eq\Ee\Eb1\Ec0, rs2=\Ev\Eq\Ee\Eb1\Ec0,
803	setab=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
804	      %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
805	      %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
806	      %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}
807	      %=%t6%e?,
808	setaf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
809	      %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
810	      %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
811	      %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}
812	      %=%t6%e?,
813	setb=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
814	     %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
815	     %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
816	     %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=
817	     %t6%e?,
818	setf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
819	     %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
820	     %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
821	     %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=
822	     %t6%e?,
823	use=st52,
824st52|st52-m|at|at-m|atari|atari-m|atari_st|atarist-m|Atari ST,
825	am, eo, mir, npc,
826	civis=\Ef, clear=\EE, cnorm=\Ee, dl1=\EM, el1=\Eo, il1=\EL,
827	is2=\Ev\Eq\Ee, kLFT=\Ed, kRIT=\Ec, kdch1=^?, kf1=\EP,
828	kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et,
829	kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EQ, kf20=\Ey,
830	kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX,
831	khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK,
832	rc=\Ek, rev=\Ep, rmso=\Eq, rs2=\Ev\Eq\Ee, sc=\Ej, sgr0=\Eq,
833	smso=\Ep, use=vt52-basic,
834tw100|Toswin VT100 window manager,
835	eo, mir, msgr, xon,
836	colors#8, cols#80, it#8, lines#24, pairs#64, vt#3,
837	acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxy
838	     yzz{{||}}~~,
839	bel=^G, blink=\E[5m, bold=\E[1m, civis=\Ef,
840	clear=\E[2J\E[H, cnorm=\Ee, cr=\r, cub1=^H, cud1=\EB,
841	cuf1=\EC, cuu1=\EA, dch1=\Ea, dim=\E[2m, dl=\E[%p1%dM,
842	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, ht=^I, hts=\EH,
843	ich=\E[%p1%d@, il1=\EL, ind=\n, is2=\E<\E)0, kdch1=^?,
844	kf10=\EOY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et,
845	kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf20=\Ey, kf5=\EOT,
846	kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khlp=\EH,
847	khome=\E\EE, kich1=\EI, knp=\Eb, kpp=\E\Ea, kund=\EK,
848	ll=\E[24H, nel=\EE, oc=\E[30;47m, op=\E[30;47m, rev=\E[7m,
849	ri=\EM, rmacs=^O, rmcup=\E[?7h, rmir=\Ei, rmkx=\E[?1l\E>,
850	rs1=\E<\E[20l\E[?3;6;9l\E[r\Eq\E(B\017\E)0\E>,
851	setb=\E[4%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=
852	     %t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'
853	     %=%t3%e7%;m,
854	setf=\E[3%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=
855	     %t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'
856	     %=%t3%e7%;m,
857	sgr0=\E[m, smacs=^N, smcup=\E[?7l, smir=\Eh,
858	smkx=\E[?1h\E=, tbc=\E[3g, use=ansi+apparrows,
859	use=ansi+csr, use=ansi+cup, use=ansi+local,
860	use=ansi+sgrso, use=ansi+sgrul, use=vt100+pf1-pf4,
861
862# The entries for stv52 and stv52pc probably need a revision.
863stv52|MiNT virtual console,
864	am, msgr,
865	lines#30,
866	blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
867	cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
868	kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
869	kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
870	kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
871	kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
872	kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, op=\Eb@\EcO, rev=\Ep,
873	ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
874	rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
875	smul=\EyH, use=vt52-basic,
876stv52pc|MiNT virtual console with PC charset,
877	am, msgr,
878	lines#30,
879	acsc=+\257\,\256-\^.v0\333I\374`\177a\260f\370g\361h\261j
880	     \331k\277l\332m\300n\305o\377p-q\304r-s_t+u+v+w+x\263y
881	     \363z\362{\343|\366}\234~\371,
882	blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
883	cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
884	kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
885	kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
886	kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
887	kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
888	kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, rev=\Ep, ri=\EI$<2*/>,
889	rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
890	rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
891	smul=\EyH, use=vt52-basic,
892
893# From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
894atari-old|Atari st,
895	OTbs, am,
896	cols#80, it#8, lines#25,
897	clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
898	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
899	ed=\EJ, el=\EK, ht=^I, il1=\EL, ri=\EI, rmso=\Eq, sgr0=\Eq,
900	smso=\Ep, use=vt52+arrows,
901# UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
902# From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
903uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
904	lines#49,
905	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H, use=vt220-base,
906# MiNT VT52 emulation. 80 columns, 25 rows.
907# MiNT is Now TOS, the operating system which comes with all Ataris now
908# (mainly Atari Falcon). This termcap is for the VT52 emulation you get
909# under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
910# From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
911st52-old|Atari ST with VT52 emulation,
912	am, km,
913	cols#80, lines#25,
914	bel=^G, civis=\Ef, clear=\EH\EJ, cnorm=\Ee, cr=\r, cub1=\ED,
915	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
916	cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
917	ind=\n, ka1=\E#7, ka3=\E#5, kb2=\E#9, kbs=^H, kc1=\E#1,
918	kc3=\E#3, kclr=\E#7, kcub1=\E#K, kcud1=\E#P, kcuf1=\E#M,
919	kcuu1=\E#H, kf0=\E#D, kf1=\E#;, kf2=\E#<, kf3=\E#=, kf4=\E#>,
920	kf5=\E#?, kf6=\E#@, kf7=\E#A, kf8=\E#B, kf9=\E#C, khome=\E#G,
921	kil1=\E#R, kind=\E#2, kri=\E#8, lf0=f10, nel=\r\n, rc=\Ek,
922	ri=\EI, rmcup=, rmso=\Eq, rs1=\Ez_\Eb@\EcA, sc=\Ej, sgr0=\Eq,
923	smcup=\Ee, smso=\Ep,
924
925#### BeOS
926#
927# BeOS entry for Terminal program Seems to be almost ANSI
928beterm|BeOS Terminal,
929	am, eo, mir, msgr, xenl, xon,
930	cols#80, it#8, lines#25, ncv#5,
931	bel=^G, bold=\E[1m, cr=\r, cub1=^H, cud1=\n, ech=\E[%p1%dX,
932	el1=\E[1K, ht=^I, hts=\EH, ind=\n, kf10=\E[20~, kf11=\E[21~,
933	kf12=\E[22~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~,
934	kf9=\E[19~, khome=\E[1~, kspd=^Z, nel=\r\n, op=\E[m,
935	rev=\E[7m, ri=\EM, rmkx=\E[?4l, rs1=\Ec,
936	setb=\E[%p1%{40}%+%cm, setf=\E[%p1%{30}%+%cm,
937	sgr0=\E[0;10m, smkx=\E[?4h, u6=\E[%i%p1%d;%p2%dR,
938	u7=\E[6n, use=ecma+underline, use=ansi+arrows,
939	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idc,
940	use=ansi+idl, use=ansi+local, use=ansi+rca2,
941	use=ansi+sgrso, use=klone+color, use=vt220+pcedit,
942	use=xterm+r5+fkeys,
943
944#### Linux consoles
945#
946
947# release 1.2.13: 1995/03
948#
949# This entry is good for the 1.2.13 or later version of the Linux console.
950#
951# ***************************************************************************
952# *                                                                         *
953# *                           WARNING:                                      *
954# * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
955# * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
956# * character. Here are the keymap replacement lines that will set this up: *
957# *                                                                         *
958#	keycode  15 = Tab             Tab
959#		alt     keycode  15 = Meta_Tab
960#		shift	keycode  15 = F26
961#	string F26 ="\033[Z"
962# *                                                                         *
963# * This has to use a key slot which is unfortunate (any unused one will    *
964# * do, F26 is the higher-numbered one).  The change ought to be built      *
965# * into the kernel tables.                                                 *
966# *                                                                         *
967# ***************************************************************************
968#
969# All linux kernels since 1.2.13 (at least) set the screen size
970# themselves; this entry assumes that capability.
971#
972linux-basic|Linux console (basic),
973	am, bce, eo, mir, msgr, xenl, xon,
974	it#8, ncv#18, U8#1,
975	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
976	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
977	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
978	bel=^G, cr=\r, cub1=^H, cud1=\n, dim=\E[2m, ech=\E[%p1%dX,
979	el1=\E[1K, flash=\E[?5h$<200/>\E[?5l, ht=^I, hts=\EH,
980	ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z, khome=\E[1~, kmous=\E[M,
981	kspd=^Z, nel=\r\n, ri=\EM, rmam=\E[?7l, rs1=\Ec\E]R,
982	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
983	    %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
984	smam=\E[?7h, tbc=\E[3g, use=ecma+underline,
985	use=ecma+standout, use=ansi+arrows, use=ansi+csr,
986	use=ansi+cup, use=ansi+erase, use=ansi+idc, use=ansi+idl,
987	use=ansi+local, use=ansi+rca2, use=vt220+pcedit,
988	use=vt102+enq, use=klone+sgr, use=ecma+color,
989	use=linux+lockeys, use=linux+sfkeys, use=vt220+ufkeys,
990
991# VT220 uses F1-F5 for "local" manipulation, normally not sending anything to
992# the host.  Rather than adapt the numbering scheme used by xterm, Linux used
993# this arrangement which doubles the "[", making it inconsistent with most
994# terminals having function-keys in the same format as control sequences -TD
995linux+lockeys|Linux "local" keys in vt220 scheme,
996	kf1=\E[[A, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
997
998linux+decid|ncurses extension for Linux console DECID,
999	u8=\E[?6c, use=decid+cpr,
1000
1001linux+sfkeys|shifted function-keys for Linux console,
1002	use=vt220+sfkeys,
1003
1004linux-m|Linux console no color,
1005	colors@, pairs@,
1006	setab@, setaf@, setb@, setf@, use=linux,
1007
1008# release 1.3: 1995/06
1009#
1010# The 1.3.x kernels add color-change capabilities; if yours doesn't have this
1011# and it matters, turn off <ccc>.  The %02x escape used to implement this is
1012# not supposedly back-portable to older SV curses (although it has worked fine
1013# on Solaris for several years) and not supported in ncurses versions before
1014# 1.9.9.
1015linux-c-nc|Linux console with color-change,
1016	ccc,
1017	initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/
1018	      %02x%p4%{255}%*%{1000}%/%02x,
1019	oc=\E]R, use=linux-basic,
1020# From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
1021linux-c|Linux console 1.3.6+ for older ncurses,
1022	ccc,
1023	initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%'a'%+%c%e%p1%d%;%p2%{255}
1024	      %*%{1000}%/%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'a'
1025	      %+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'a'
1026	      %+%c%e%gx%d%;%p3%{255}%*%{1000}%/%Pr%gr%{16}%/%Px%?%gx
1027	      %{9}%>%t%gx%{10}%-%'a'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx
1028	      %{9}%>%t%gx%{10}%-%'a'%+%c%e%gx%d%;%p4%{255}%*%{1000}
1029	      %/%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'a'%+%c%e%gx
1030	      %d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'a'%+%c%e%gx
1031	      %d%;,
1032	oc=\E]R, use=linux-basic,
1033
1034# release 2.2: 1999/01
1035#
1036# The 2.2.x kernels add a private mode that sets the cursor type; use that to
1037# get a block cursor for cvvis.
1038# reported by Frank Heckenbach <frank@g-n-u.de>.
1039linux2.2|Linux 2.2.x console,
1040	civis=\E[?25l\E[?1c, cnorm=\E[?25h\E[?0c,
1041	cvvis=\E[?25h\E[?8c, use=linux-c-nc,
1042
1043# release 2.6: 2003/12 - 2004/12
1044#
1045# Linux 2.6.x has a fix for SI/SO to work with UTF-8 encoding added here:
1046#	http://lkml.iu.edu/hypermail/linux/kernel/0602.2/0738.html
1047# Although the kernel has mappings for these, they were not in the default
1048# font (tested with Debian and Fedora):
1049#	'`' diamond
1050#	'~' scan line 1
1051#	'p' scan line 3
1052#	'r' scan line 7
1053#	'_' scan line 9
1054#
1055# The fix for SI/SO is part of a configurable (i.e., "optional") kernel feature
1056# misleadingly called CONFIG_CONSOLE_TRANSLATIONS.  Disabling that not only
1057# omits the line-drawing using SI/SO, but also part/all of the Unicode feature:
1058#
1059#    https://cateee.net/lkddb/web-lkddb/CONSOLE_TRANSLATIONS.html
1060#	"This enables support for font mapping and Unicode translation on virtual consoles."
1061#
1062# This mailing list thread in July 2008 illustrates:
1063#
1064#    https://marc.info/?t=121734656700005&r=1&w=4
1065#	"commit a29ccf6f823a84d89e1c7aaaf221cf7282022024 break console on slackware 12.1"
1066#
1067# The change which made it configurable was to reduce the size for use in
1068# embedded systems.  Some background is found in
1069#
1070#    https://lwn.net/Articles/284767/
1071#	"An interview with the new embedded maintainers"
1072linux2.6|Linux 2.6.x console,
1073	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1074	     yzz{{||}}~~,
1075	enacs=\E)0, rmacs=^O,
1076	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1077	    %t;2%;%?%p6%t;1%;m%?%p9%t\016%e\017%;,
1078	sgr0=\E[m\017, smacs=^N, use=linux2.2,
1079
1080# The 3.0 kernel adds support for clearing scrollback buffer (capability E3).
1081# It is the same as xterm's erase-saved-lines feature.
1082#
1083# Linux 3.0 was released in July 2011.  The keyboard utilities (kbd) are
1084# used for configuring its keyboard mappings.
1085#
1086# kbd 1.14 was released before that (January 2008), but due to its placement
1087# late in the Linux 2.6.x series had no immediate effect for most users.  That
1088# provided a default mapping for shift-tab to the (misnamed) Meta_Tab, i.e.,
1089# the same as Alt-Tab.
1090#
1091# The suggested mapping for the conventional \E[Z is provided in this entry as
1092# an extended key to lessen user surprise -TD
1093linux3.0|Linux 3.0 kernels,
1094	kcbt=\E^I, E3=\E[3J, kcbt2=\E[Z, use=linux2.6,
1095
1096# This is Linux console for ncurses.
1097linux|Linux console,
1098	use=linux3.0,
1099
1100# Subject: linux 2.6.26 vt back_color_erase
1101# Changes to the Linux console driver broke bce model as reported in
1102#	https://bugzilla.novell.com/show_bug.cgi?id=418613
1103# apparently from
1104#	http://lkml.org/lkml/2008/4/26/305
1105#	http://lkml.org/lkml/2008/10/3/66
1106linux2.6.26|Linux console w/o bce,
1107	bce@, use=linux2.6,
1108
1109# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
1110linux-nic|Linux with ich/ich1 suppressed for non-curses programs,
1111	ich@, ich1@, use=linux,
1112
1113# This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
1114# acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
1115linux-koi8|Linux with koi8 alternate character set,
1116	acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i
1117	     \276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v
1118	     \211w\210x\201y\230z\231{\267|\274~\224,
1119	use=linux, use=klone+koi8acs,
1120
1121# Another entry for KOI8-r with Qing Long's acsc.
1122# (which one better complies with the standard?)
1123linux-koi8r|Linux with koi8-r alternate character set,
1124	use=linux, use=klone+koi8acs,
1125
1126# Entry for the latin1 and latin2 fonts
1127linux-lat|Linux with latin1 or latin2 alternate character set,
1128	acsc=+\020\,\021-\030.^Y0\333`\004a\013f\370g\361h\260i
1129	     \316j\211k\214l\206m\203n\305o~p\304q\212r\304s_t\207u
1130	     \215v\301w\302x\205y\363z\362{\343|\330}\234~\376,
1131	use=linux,
1132
1133# This uses graphics from VT codeset instead of from cp437.
1134# reason: cp437 (aka "straight to font") is not functional under luit.
1135# from: Andrey V Lukyanov <land@long.yar.ru>.
1136linux-vt|Linux console using VT codes for graphics,
1137	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1138	     yzz~~,
1139	rmacs=\E(K, rmpch@, sgr@, sgr0=\E[0m\E(K\017, smacs=\E(0,
1140	smpch@, use=linux,
1141
1142# release: 0.3.9b 1997/01 to 2000/05
1143#
1144# This is based on the Linux console (relies on the console to perform some
1145# of the functionality), but does not recognize as many control sequences.
1146# The program comes bundled with an old (circa 1998) copy of the Linux
1147# console terminfo.  It recognizes some non-ANSI/VT100 sequences such as
1148#	\E*	move cursor to home, as \E[H
1149#	\E,X	same as \E(X
1150#	\EE	move cursor to beginning of row
1151#	\E[y,xf	same as \E[y,xH
1152#
1153# Note: The status-line support is buggy (dsl does not work).
1154kon|kon2|Kanji ON Linux console,
1155	am, bce, ccc, eo, mir, msgr, xenl, xon,
1156	it#8, ncv#18,
1157	bel=^G, cr=\r, cub1=^H, cud1=\n, dim=\E[2m, dsl=\E[?H\E[?E,
1158	el1=\E[1K, fsl=\E[?F, ht=^I, hts=\EH, ind=\n,
1159	initc=\E]P%p1%x%p2%02x%p3%02x%p4%02x, kb2=\E[G, kbs=^?,
1160	khome=\E[1~, kspd=^Z, nel=\r\n, ri=\EM, rs1=\Ec,
1161	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1162	    %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
1163	sgr0=\E[0;10m, tbc=\E[3g, tsl=\E[?T, u8=\E[?6c,
1164	use=ecma+underline, use=ecma+standout, use=vt220+cvis,
1165	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
1166	use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
1167	use=ansi+local, use=ansi+sgrbold, use=ansi+rca2,
1168	use=dec+sl, use=ecma+sgr, use=klone+color,
1169	use=linux+lockeys, use=linux+sfkeys, use=vt220+ufkeys,
1170	use=vt220+pcedit,
1171
1172# release: 0.4.7 2005/05
1173#
1174jfbterm|japanese framebuffer terminal,
1175	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1176	     yzz{{||}}~~,
1177	sgr0=\E[0m, use=kon,
1178
1179# FbTerm
1180# Another variant.  There are two parts (src, src/lib) with the latter
1181# comprising the escape-sequence parsing.  The copyright notice on that
1182# says it is based on GTerm by Timothy Miller.
1183#
1184# The original developer "dragchan" has left, but as of March 2017 there is
1185# (still dead) code from May 2015 here:
1186#	https://github.com/izmntuk/fbterm
1187#
1188# The acsc string may be incorrect.
1189#
1190# Not used here, the program recognizes escapes for italic, underline and
1191# dim, rendering those as green, cyan and gray respectively.
1192fbterm|FbTerm for Linux with framebuffer,
1193	colors#0x100, pairs#0x10000,
1194	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
1195	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
1196	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
1197	initc=\E[3;%p1%d;%p2%d;%p3%d;%p4%d}, rmacs=\E[10m,
1198	setab=\E[2;%p1%d}, setaf=\E[1;%p1%d},
1199	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1200	    %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
1201	sgr0=\E[0;10m, smacs=\E[11m, use=linux,
1202
1203# 16-color linux console entry; this works with a 256-character
1204# console font but bright background colors turn into dim ones when
1205# you use a 512-character console font. This uses bold for bright
1206# foreground colors and blink for bright background colors.
1207#
1208# Interestingly, the original version of this entry in 2009 used a documented
1209# (but nonstandard) SGR 21, which was supported in the Linux console since 1992
1210# as an equivalent for SGR 22.  Long after (early 2018), someone modified the
1211# console driver to make it ignore SGR 21 because the ECMA-48 standard
1212# suggested a different use for that particular code:
1213#
1214# https://github.com/torvalds/linux/commit/65d9982d7e523a1a8e7c9af012da0d166f72fc56#diff-7da3c215d12c9f6b88e1a37d38b116f0
1215#
1216# Two years later, someone (unfamiliar with ECMA-48 this time) documented it:
1217#
1218# https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man4/console_codes.4?id=a133a6bc03d751a424fe0a4adea2198757599615
1219#
1220# For background, refer to the report on bug-ncurses:
1221#
1222# https://lists.gnu.org/archive/html/bug-ncurses/2019-10/msg00059.html
1223linux-16color|Linux console with 16 colors,
1224	colors#16, ncv#42, pairs#0x100,
1225	setab=\E[4%p1%{8}%m%d%?%p1%{7}%>%t;5%e;25%;m,
1226	setaf=\E[3%p1%{8}%m%d%?%p1%{7}%>%t;1%e;22%;m,
1227	use=linux,
1228
1229# bterm (bogl 0.1.18)
1230# Implementation is in bogl-term.c
1231# Key capabilities from linux terminfo entry
1232#
1233# Notes:
1234# bterm only supports acs using wide-characters, has case for these: qjxamlkut
1235# bterm does not support sgr, since it only processes one parameter -TD
1236bterm|bogl virtual terminal,
1237	am, bce,
1238	colors#8, cols#80, lines#24, pairs#64,
1239	acsc=aajjkkllmmqqttuuxx, bold=\E[1m, clear=\E[H\E[2J,
1240	cr=\r, cub1=^H, cud1=\n, ed=\E[J, el=\E[K, ind=\n, kb2=\E[G,
1241	kbs=^?, kcbt=\E[Z, khome=\E[1~, kmous=\E[M, kspd=^Z,
1242	nel=\r\n, op=\E[49m\E[39m, rev=\E[7m, ri=\EM, rmacs=^O,
1243	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, smacs=^N,
1244	smul=\E[4m, use=ecma+underline, use=ecma+standout,
1245	use=ansi+arrows, use=ansi+cup, use=linux+lockeys,
1246	use=linux+sfkeys, use=vt220+pcedit, use=vt220+cvis,
1247	use=vt220+ufkeys,
1248
1249# https://lists.gnu.org/archive/html/bug-ncurses/2025-04/msg00014.html
1250sclp|IBM s390 driver for Linux,
1251	xon,
1252	cols#80, lines#24,
1253	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1254	bel=^G, blink=\E[5m, cr=\r, cub1=^H, cud1=\n,
1255	cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
1256	dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, el1=\E[1K,
1257	enacs=\E)0, ht=^I, ich=\E[%p1%d@, ind=\ED, is2=\Ec,
1258	kf5=\E[15~, khome=\E[1~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
1259	rmacs=\E(B$<4>, sc=\E7,
1260	sgr=\E[0%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
1261	    \E(B%;$<2>,
1262	sgr0=\E[m\E(B, smacs=\E(0$<2>, smul=\E[4m,
1263	use=ecma+underline, use=ecma+standout, use=klone+color,
1264	use=ansi+arrows, use=ansi+cpr, use=ansi+erase,
1265	use=ansi+local, use=ansi+rca, use=linux+sfkeys,
1266	use=vt100+pf1-pf4, use=vt220+ufkeys, use=vt220+pcedit,
1267
1268#### Mach
1269#
1270
1271# From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
1272mach|Mach console,
1273	am, km, NQ,
1274	cols#80, it#8, lines#25,
1275	bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=\r, cub1=^H,
1276	cud1=\n, ed=\E[J, el=\E[K, ht=^I, ind=\n, kbs=^?, kdch1=\E[9,
1277	kend=\E[Y, kf10=\EOY, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
1278	kf9=\EOX, kich1=\E[@, kll=\E[F, knp=\E[U, kpp=\E[V,
1279	rev=\E[7m, rmso=\E[0m, sgr0=\E[0m, use=ecma+underline,
1280	use=ansi+arrows, use=ansi+cup, use=ansi+idl,
1281	use=ansi+local, use=ansi+sgrso, use=vt100+pf1-pf4,
1282
1283mach-bold|Mach console with bold instead of underline,
1284	rmul=\E[0m, smul=\E[1m, use=mach,
1285mach-color|Mach console with ANSI color,
1286	colors#8, pairs#64,
1287	dim=\E[2m, invis=\E[8m, op=\E[37;40m, setab=\E[4%p1%dm,
1288	setaf=\E[3%p1%dm, use=ecma+standout, use=mach,
1289
1290# From: Samuel Thibault
1291# Source: git://git.sv.gnu.org/hurd/gnumach.git
1292# Files: i386/i386at/kd.c
1293#
1294# Added nel, hpa, sgr and removed rmacs, smacs based on source -TD
1295mach-gnu|GNU Mach,
1296	acsc=+>\,<-\^.v0\333`+a\261f\370g\361h\260i#j\331k\277l
1297	     \332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x
1298	     \263y\363z\362{\343|\330}\234~\376,
1299	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
1300	el1=\E[1K, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[@,
1301	invis=\E[8m, nel=\EE,
1302	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
1303	    2%;%?%p6%t;1%;%?%p7%t;8%;m,
1304	use=ecma+index, use=mach,
1305
1306mach-gnu-color|GNU Mach console with ANSI color,
1307	colors#8, pairs#64,
1308	op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1309	use=ecma+standout, use=mach-gnu,
1310
1311# From: Marcus Brinkmann
1312# http://git.savannah.gnu.org/cgit/hurd/hurd.git/log/console/
1313#
1314# Comments in the original are summarized here:
1315#
1316# hurd uses 8-bit characters (km).
1317#
1318# Although it doesn't do XON/XOFF, we don't want padding characters (xon).
1319#
1320# Regarding compatibility to vt100:  hurd doesn't specify <xenl>, as we don't
1321# have the eat_newline_glitch.  It doesn't support setting or removing tab
1322# stops (hts/tbc).
1323#
1324# hurd uses ^H instead of \E[D for cub1, as only ^H implements <bw> and it is
1325# one byte instead three.
1326#
1327# <ich1> is not included because hurd has insert mode.
1328#
1329# hurd doesn't use ^J for scrolling, because this could put things into the
1330# scrollback buffer.
1331#
1332# gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
1333# This is a GNU extension.
1334#
1335# The original has commented-out ncv, but is restored here.
1336#
1337# Reading the source, RIS resets cnorm, but not xmous.
1338hurd|The GNU Hurd console server,
1339	am, bce, bw, eo, km, mir, msgr, xenl, xon, NQ,
1340	it#8, ncv#18,
1341	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1342	     yzz{{||}}~~,
1343	bel=^G, cbt=\E[Z, clear=\Ec, cr=\r, cub1=^H, cvvis=\E[34l,
1344	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
1345	el1=\E[1K, flash=\Eg, ht=^I, ich=\E[%p1%d@, ind=\E[S,
1346	kb2=\E[G, kbs=^?, kcbt=\E[Z, khome=\E[1~, kmous=\E[M,
1347	kspd=^Z, nel=\r\n, op=\E[39;49m, ri=\E[T, rmir=\E[4l,
1348	rs1=\EM\E[?1000l,
1349	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
1350	    2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
1351	smir=\E[4h, grbom=\E[>1l, gsbom=\E[>1h,
1352	use=ecma+underline, use=ecma+standout,
1353	use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
1354	use=ansi+erase, use=ansi+idl, use=ansi+local,
1355	use=ansi+rca2, use=ansi+sgrbold, use=vt220+pcedit,
1356	use=ecma+index, use=ecma+italics, use=klone+acs,
1357	use=klone+color, use=linux+sfkeys, use=vt100+pf1-pf4,
1358	use=vt220+cvis, use=xterm+r5+fkeys,
1359
1360#### QNX
1361#
1362
1363# QNX 4.0 Console
1364# Michael's original version of this entry had <am@>, <smcup=\Ei>,
1365# <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
1366# right corner without triggering a scroll.  The ncurses terminfo library can
1367# handle this case with the <ich1> capability, and prefers <am> for better
1368# optimization.  Bug: The <op> capability resets attributes.
1369# From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1370# (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
1371qnx|qnx4|QNX console,
1372	daisy, km, mir, msgr, xhpa, xt,
1373	colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8,
1374	acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t
1375	     \303u\264v\301w\302x\263,
1376	bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ,
1377	cnorm=\Ey1, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
1378	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2,
1379	dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee,
1380	il1=\EE, ind=\n, kBEG=\377\356, kCAN=\377\263,
1381	kCMD=\377\267, kCPY=\377\363, kCRT=\377\364,
1382	kDL=\377\366, kEND=\377\301, kEOL=\377\311,
1383	kEXT=\377\367, kFND=\377\370, kHLP=\377\371,
1384	kHOM=\377\260, kIC=\377\340, kLFT=\377\264,
1385	kMOV=\377\306, kMSG=\377\304, kNXT=\377\272,
1386	kOPT=\377\372, kPRT=\377\275, kPRV=\377\262,
1387	kRDO=\377\315, kRES=\377\374, kRIT=\377\266,
1388	kRPL=\377\373, kSAV=\377\307, kSPD=\377\303,
1389	kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0,
1390	kclo=\377\343, kclr=\377\341, kcmd=\377\245,
1391	kcpy=\377\265, kcrt=\377\305, kctab=\377\237,
1392	kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246,
1393	kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274,
1394	ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320,
1395	kext=\377\270, kf1=\377\201, kf10=\377\212,
1396	kf11=\377\256, kf12=\377\257, kf13=\377\213,
1397	kf14=\377\214, kf15=\377\215, kf16=\377\216,
1398	kf17=\377\217, kf18=\377\220, kf19=\377\221,
1399	kf2=\377\202, kf20=\377\222, kf21=\377\223,
1400	kf22=\377\224, kf23=\377\333, kf24=\377\334,
1401	kf25=\377\225, kf26=\377\226, kf27=\377\227,
1402	kf28=\377\230, kf29=\377\231, kf3=\377\203,
1403	kf30=\377\232, kf31=\377\233, kf32=\377\234,
1404	kf33=\377\235, kf34=\377\236, kf35=\377\276,
1405	kf36=\377\277, kf37=\377\321, kf38=\377\322,
1406	kf39=\377\323, kf4=\377\204, kf40=\377\324,
1407	kf41=\377\325, kf42=\377\326, kf43=\377\327,
1408	kf44=\377\330, kf45=\377\331, kf46=\377\332,
1409	kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206,
1410	kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346,
1411	khlp=\377\350, khome=\377\240, khts=\377\342,
1412	kich1=\377\253, kil1=\377\273, kind=\377\261,
1413	kmov=\377\351, kmrk=\377\355, kmsg=\377\345,
1414	knp=\377\252, knxt=\377\312, kopn=\377\357,
1415	kopt=\377\353, kpp=\377\242, kprt=\377\255,
1416	kprv=\377\302, krdo=\377\336, kref=\377\354,
1417	kres=\377\360, krfr=\377\347, kri=\377\271,
1418	krmir=\377\313, krpl=\377\362, krst=\377\352,
1419	ksav=\377\361, kslt=\377\247, kspd=\377\335,
1420	ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER,
1421	rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER,
1422	rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d,
1423	setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei,
1424	smso=\E(, smul=\E[,
1425#
1426#
1427qnxt|qnxt4|QNX4 terminal,
1428	crxm, use=qnx4,
1429#
1430qnxm|QNX4 with mouse events,
1431	maddr#1,
1432	chr=\E/, cvr=\E", is1=\E/0t, mcub=\E/>1h, mcub1=\E/>7h,
1433	mcud=\E/>1h, mcud1=\E/>1l\E/>9h, mcuf=\E/>1h\E/>9l,
1434	mcuf1=\E/>7l, mcuu=\E/>6h, mcuu1=\E/>6l, rmicm=\E/>2l,
1435	smicm=\E/>2h, use=qnx4,
1436#
1437qnxw|QNX4 windows,
1438	xvpa, use=qnxm,
1439#
1440#	Monochrome QNX4 terminal or console. Setting this terminal type will
1441#	allow an application running on a color console to behave as if it
1442#	were a monochrome terminal. Output will be through stdout instead of
1443#	console writes because the term routines will recognize that the
1444#	terminal name starts with 'qnxt'.
1445#
1446qnxtmono|Monochrome QNX4 terminal or console,
1447	colors@, pairs@,
1448	scp@, use=qnx4,
1449
1450# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1451# (esr: commented out <scp> and <rmcup> to avoid warnings.)
1452# (TD: derive from original qnx4 entry)
1453qnxt2|QNX 2.15 serial terminal,
1454	am,
1455	civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@,
1456	rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, use=qnx4,
1457
1458# QNX ANSI terminal definition
1459qansi-g|QNX ANSI,
1460	am, eslok, hs, xon,
1461	colors#8, cols#80, lines#25, ncv#19, pairs#64, wsl#80,
1462	acsc=Oa``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1463	bel=^G, clear=\E[2J\E[H, cr=\r, csr=\E[%i%p1%d;%p2%dr,
1464	cup=\E[%i%p1%d;%p2%dH$<5>, cvvis=\E[?12;25h,
1465	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
1466	dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
1467	el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l, fsl=\E[?6h\E8,
1468	home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[1@,
1469	il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
1470	is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
1471	kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
1472	kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
1473	kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
1474	kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa, kcmd=\E[G,
1475	kcpy=\E[g, kctab=\E[z, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
1476	kext=\E[y, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf13=\EOp,
1477	kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt, kf18=\EOu,
1478	kf19=\EOv, kf20=\EOw, kf21=\EOx, kf22=\EOy, kf23=\EOz,
1479	kf24=\EOa, kf25=\E[1~, kf26=\E[2~, kf27=\E[3~, kf28=\E[4~,
1480	kf29=\E[5~, kf30=\E[6~, kf31=\E[7~, kf32=\E[8~, kf33=\E[9~,
1481	kf34=\E[10~, kf35=\E[11~, kf36=\E[12~, kf37=\E[17~,
1482	kf38=\E[18~, kf39=\E[19~, kf40=\E[20~, kf41=\E[21~,
1483	kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
1484	kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
1485	kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
1486	khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a, kmov=\ENi,
1487	kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo, kopt=\ENk,
1488	kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg, kri=\E[b,
1489	krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T, ktbc=\ENd,
1490	kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m, ri=\E[T,
1491	rmacs=^O, rmam=\E[?7l,
1492	rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
1493	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1494	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
1495	     %=%t3%e%p1%d%;m,
1496	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
1497	     %=%t3%e%p1%d%;m,
1498	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
1499	    %|%t;7%;%?%p7%t;9%;m%?%p9%t\016%e\017%;,
1500	sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
1501	tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH,
1502	use=ecma+underline, use=ecma+standout, use=ansi+arrows,
1503	use=ansi+local, use=ansi+rep, use=ansi+inittabs,
1504	use=ansi+sgrbold, use=att610+cvis0, use=decid+cpr,
1505	use=ecma+index, use=vt100+pf1-pf4,
1506#
1507qansi|QNX ANSI with console writes,
1508	daisy, xhpa, use=qansi-g,
1509#
1510qansi-t|QNX ANSI without console writes,
1511	crxm, use=qansi,
1512#
1513qansi-m|QNX ANSI with mouse,
1514	maddr#1,
1515	chr=\E[, cvr=\E], is1=\E[0t, mcub=\E[>1h, mcub1=\E[>7h,
1516	mcud=\E[>1h, mcud1=\E[>1l\E[>9h, mcuf=\E[>1h\E[>9l,
1517	mcuf1=\E[>7l, mcuu=\E[>6h, mcuu1=\E[>6l, rmicm=\E[>2l,
1518	smicm=\E[>2h, use=qansi,
1519#
1520qansi-w|QNX ANSI for windows,
1521	xvpa, use=qansi-m,
1522
1523#### SCO consoles
1524
1525# SCO console and SOS-Syscons console for 386bsd
1526# (scoansi: had unknown capabilities
1527#	:Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
1528#	:GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
1529#	:G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
1530#	:CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
1531#	:WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
1532# I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
1533# on the <smacs>=\E[12m  -- esr)
1534#
1535# klone+sgr-dumb is an error since the acsc does not match -TD
1536#
1537# In this description based on SCO's keyboard(HW) man page list of
1538# default function key values:
1539#	F13-F24 are shifted F1-F12
1540#	F25-F36 are control F1-F12
1541#	F37-F48 are shift+control F1-F12
1542#
1543# hpa/vpa work in the console, but not in scoterm:
1544#	hpa=\E[%p1%dG,
1545#	vpa=\E[%p1%dd,
1546#
1547# SCO's terminfo uses
1548#	kLFT=\E[d,
1549#	kRIT=\E[c,
1550# which do not work (console or scoterm).
1551#
1552# Console documents only 3 attributes can be set with SGR (so we don't use sgr).
1553scoansi-old|SCO Extended ANSI standard crt (5.0.5),
1554	OTbs, am, bce, eo, xon, NQ,
1555	colors#8, cols#80, it#8, lines#25, pairs#64,
1556	acsc=+/\,.-\230.\2310[5566778899::;;<<==>>FFGGHHIIJJKKLLMMNN
1557	     OOPPQQRRSSTTUUVVWWXX`\204a0fxgqh2jYk?lZm@nEqDtCu4vAwBx3
1558	     yszr{c}\034~\207,
1559	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
1560	civis=\E[=14;12C, clear=\E[H\E[2J, cnorm=\E[=10;12C,
1561	cub1=^H, cvvis=\E[=0;12C, dch=\E[%p1%dP, dch1=\E[P,
1562	dispc=\E[=%p1%dg, ed=\E[m\E[J, el=\E[m\E[K, el1=\E[1K,
1563	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S,
1564	invis=\E[8m, kbeg=\E[E, kcbt=\E[Z, kdch1=^?, kend=\E[F,
1565	kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf13=\E[Y,
1566	kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e,
1567	kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i,
1568	kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n,
1569	kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r,
1570	kf33=\E[s, kf34=\E[t, kf35=\E[u, kf36=\E[v, kf37=\E[w,
1571	kf38=\E[x, kf39=\E[y, kf4=\E[P, kf40=\E[z, kf41=\E[@,
1572	kf42=\E[[, kf43=\E[\\, kf44=\E[], kf45=\E[\^, kf46=\E[_,
1573	kf47=\E[`, kf48=\E[{, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
1574	kf9=\E[U, kich1=\E[L, knp=\E[G, kpp=\E[I, op=\E[0;37;40m,
1575	rc=\E8, rev=\E[7m, ri=\E[T, rmacs=\E[10m, rmam=\E[?7l,
1576	sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1577	sgr0=\E[0;10m, smacs=\E[12m, smam=\E[?7h,
1578	use=ansi+arrows, use=ansi+cup, use=ansi+idl,
1579	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
1580	use=ecma+index,
1581
1582scoansi-new|SCO Extended ANSI standard crt (5.0.6),
1583	km,
1584	civis=\E[=0c, cnorm=\E[=1c, csr=\E[%i%p1%d;%p2%dr,
1585	cvvis=\E[=2c, mgc=\E[=r, oc=\E[51m, op=\E[50m,
1586	rep=\E[%p1%d;%p2%db, rmm=\E[=11L,
1587	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?
1588	    %p7%t;8%;%?%p9%t;12%e;10%;m,
1589	smgb=\E[=1;0m, smgbp=\E[=1;%i%p1%dm,
1590	smglp=\E[=2;%i%p1%dm, smgr=\E[=3;0m,
1591	smgrp=\E[=3;%i%p1%dm, smgt=\E[=0;0m,
1592	smgtp=\E[=0;%i%p1%dm, smm=\E[=10L,
1593	wind=\E[%i%p1%d;%p2%d;%i%p3%d;%p4%dr,
1594	use=scoansi-old,
1595# make this easy to change...
1596scoansi|SCO Extended ANSI standard crt,
1597	use=scoansi-old,
1598
1599#### SGI consoles
1600
1601# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1602# from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
1603# for the application keypad mode.  We have added iris-ansi-ap rather than
1604# change the original to keypad mode.
1605#
1606# (iris-ansi: added rmam/smam based on init string -- esr)
1607#
1608# This entry, and those derived from it, is used in xwsh (also known as
1609# winterm).  Some capabilities that do not fit into the terminfo model
1610# include the shift- and control-functionkeys:
1611#
1612# F1-F12 generate different codes when shift or control modifiers are used.
1613# For example:
1614#	F1		\E[001q
1615#	shift F1	\E[013q
1616#	control-F1	\E[025q
1617#
1618# In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1619# \EOP to \EOS.  The shifted and control modifiers still do the same thing.
1620#
1621# The cursor keys also have different codes:
1622#	control-up	\E[162q
1623#	control-down	\E[165q
1624#	control-left	\E[159q
1625#	control-right	\E[168q
1626#
1627#	shift-up	\E[161q
1628#	shift-down	\E[164q
1629#	shift-left	\E[158q
1630#	shift-right	\E[167q
1631#
1632#	control-tab	\[072q
1633#
1634iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
1635	am,
1636	cols#80, it#8, lines#40,
1637	bel=^G, bold=\E[1m, clear=\E[H\E[2J,
1638	cnorm=\E[9/y\E[12/y\E[=6l, cr=\r, cud1=\n,
1639	cvvis=\E[10/y\E[=1h\E[=2l\E[=6h, ed=\E[J, el=\E[K,
1640	el1=\E[1K, ht=^I, hts=\EH, ind=\ED,
1641	is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
1642	kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
1643	kRIT=\E[167q, kSPD=\E[218q, kcbt=\E[Z, kdch1=^?,
1644	kend=\E[146q, kent=\r, kf1=\E[001q, kf10=\E[010q,
1645	kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
1646	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
1647	kf8=\E[008q, kf9=\E[009q, kich1=\E[139q, knp=\E[154q,
1648	kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q,
1649	nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8,
1650	rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, sc=\E7, sgr0=\E[m,
1651	smam=\E[?7h, smso=\E[1;7m, tbc=\E[3g, use=ansi+arrows,
1652	use=ansi+cup, use=ansi+idl, use=ansi+local,
1653	use=ansi+sgrul,
1654
1655iris-ansi-ap|IRIS ANSI in application-keypad mode,
1656	is2=\E[?1l\E=\E[?7h, kent=\EOM, use=iris-ansi,
1657
1658# From the man page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1659# (T.Dickey 98/1/24)
1660iris-color|xwsh|IRIX ANSI with color,
1661	ncv#33,
1662	csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
1663	ech=\E[%p1%dX, ich=\E[%p1%d@, rs1=\Ec,
1664	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1665	use=ecma+underline, use=ecma+italics, use=vt100+enq,
1666	use=klone+color, use=iris-ansi-ap,
1667
1668#### OpenBSD consoles
1669#
1670# From: Alexei Malinin <Alexei.Malinin@mail.ru>; October, 2011.
1671#
1672# The following terminal descriptions for the  AMD/Intel PC console
1673# were prepared  based on information contained in  the OpenBSD-4.9
1674# termtypes.master and wscons(4) & vga(4) manuals (2010, November).
1675#
1676# Added bce based on testing with tack -TD
1677# Added several capabilities to pccon+base, reading wsemul_vt100_subr.c -TD
1678# Changed kbs to DEL and removed keys that duplicate stty settings -TD
1679#
1680# Notes from testing with vttest:
1681#	fails wrapping test
1682#	no 8-bit controls
1683#	DA1 says vt200 with selective erase, but does not implement DECSCA
1684#	DA2 says vt320, has DECTABSR
1685#	no vt52 mode
1686#	also lacks these:
1687#		ESC # 8	  DEC Screen Alignment Test (DECALN).
1688#		CSI ? 5 h Reverse Video (DECSCNM).
1689#
1690pccon+keys|OpenBSD PC keyboard keys,
1691	kbs=^?, kend=\E[8~, kent=\r, kf21=\E[35~, kf22=\E[36~,
1692	kf23=\E[37~, kf24=\E[38~, khome=\E[7~, krfr=^R,
1693	use=ansi+arrows, use=vt220+pcedit, use=vt220+sfkeys,
1694	use=xterm+r5+fkeys,
1695pccon+sgr+acs0|sgr and simple ASCII pseudographics for OpenBSD PC console,
1696	acsc=+>\,<-\^.v0#`+a:f\\h#i#j+k+l+m+n+o~p-q-r-s_t+u+v+w+x|y#
1697	     z#{*|!}#~o,
1698	bold=\E[1m, rev=\E[7m,
1699	sgr=\E[0%?%p1%p3%|%t;7%;%?%p6%t;1%;%?%p2%t;4%;m,
1700	sgr0=\E[m, use=ecma+standout,
1701pccon+sgr+acs|sgr and default ASCII pseudographics for OpenBSD PC console,
1702	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1703	bold=\E[1m, enacs=\E)0, rev=\E[7m, rmacs=\E(B,
1704	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
1705	    \E(B%;,
1706	sgr0=\E[m\E(B, smacs=\E(0, use=ecma+standout,
1707# underline renders as color
1708pccon+colors|ANSI colors for OpenBSD PC console,
1709	bce,
1710	ncv#2,
1711	op=\E[49;39m, use=klone+color,
1712# OpenBSD uses wscons, "imported" from NetBSD in 2000.
1713# + it does not implement DECSCNM or anything comparable, so it does not
1714#   support flash.
1715# + it renders underline using color.
1716pccon+base|base capabilities for OpenBSD PC console,
1717	am, km, mc5i, msgr, npc, nxon, xenl, xon,
1718	cols#80, it#8, lines#24,
1719	bel=^G, cr=\r, cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P,
1720	ech=\E[%p1%dX, el1=\E[1K, ht=^I, hts=\EH, ich=\E[%p1%d@,
1721	ich1=\E[@, ind=\ED, nel=\EE, ri=\EM, rmam=\E[?7l, rs2=\Ec,
1722	smam=\E[?7h, smul=\E[4m, tbc=\E[3g, use=ecma+underline,
1723	use=ansi+cpr, use=ansi+csr, use=ansi+cup, use=ansi+erase,
1724	use=ansi+idl, use=ansi+local, use=xterm+keypad,
1725
1726pccon0-m|OpenBSD PC console without colors & with simple ASCII pseudographics,
1727	use=pccon+sgr+acs0, use=pccon+base, use=pccon+keys,
1728pccon0|OpenBSD PC console with simple ASCII pseudographics,
1729	use=pccon0-m, use=pccon+colors,
1730pccon-m|OpenBSD PC console without colors,
1731	use=pccon+base, use=pccon+sgr+acs, use=pccon+keys,
1732	use=ansi+enq, use=vt220+cvis,
1733pccon|OpenBSD PC console,
1734	use=pccon-m, use=pccon+colors,
1735
1736#### NetBSD consoles
1737#
1738# pcvt termcap database entries (corresponding to release 3.31)
1739# Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1740#
1741# (For the terminfo master file, I translated these into terminfo syntax.
1742# Then I dropped all the pseudo-HP entries. we don't want and can't use
1743# the :Xs: flag. Then I split :is: into a size-independent <is1> and a
1744# size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
1745
1746# NOTE: <ich1> has been taken out of this entry. for reference, it should
1747# be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1748# (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
1749pcvtXX|pcvt VT200 emulator (DEC VT220),
1750	am, km, mir, msgr, xenl,
1751	it#8, vt#3,
1752	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1753	     yzz~~,
1754	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H,
1755	dch=\E[%p1%dP, dch1=\E[P, el1=\E[1K, ht=^I, hts=\EH,
1756	ich=\E[%p1%d@, ind=\ED,
1757	is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^?,
1758	kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
1759	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
1760	khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
1761	nel=\EE, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
1762	rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
1763	rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
1764	smacs=\E(0, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
1765	smul=\E[4m, tbc=\E[3g, use=ecma+underline,
1766	use=ecma+standout, use=ansi+apparrows, use=ansi+csr,
1767	use=ansi+cup, use=ansi+erase, use=ansi+idl,
1768	use=ansi+local, use=decid+cpr, use=ecma+index,
1769	use=vt220+cvis,
1770
1771#	NetBSD/FreeBSD VT220 terminal emulator console (pc keyboard & monitor)
1772#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1773#	50 lines entries; 80 columns
1774pcvt25|DEC VT220 emulation with 25 lines,
1775	cols#80, lines#25,
1776	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1777pcvt28|DEC VT220 emulation with 28 lines,
1778	cols#80, lines#28,
1779	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1780pcvt35|DEC VT220 emulation with 35 lines,
1781	cols#80, lines#35,
1782	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1783pcvt40|DEC VT220 emulation with 40 lines,
1784	cols#80, lines#40,
1785	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1786pcvt43|DEC VT220 emulation with 43 lines,
1787	cols#80, lines#43,
1788	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1789pcvt50|DEC VT220 emulation with 50 lines,
1790	cols#80, lines#50,
1791	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1792
1793#	NetBSD/FreeBSD VT220 terminal emulator console (pc keyboard & monitor)
1794#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1795#	50 lines entries; 132 columns
1796pcvt25w|DEC VT220 emulation with 25 lines and 132 cols,
1797	cols#132, lines#25,
1798	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1799pcvt28w|DEC VT220 emulation with 28 lines and 132 cols,
1800	cols#132, lines#28,
1801	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1802pcvt35w|DEC VT220 emulation with 35 lines and 132 cols,
1803	cols#132, lines#35,
1804	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1805pcvt40w|DEC VT220 emulation with 40 lines and 132 cols,
1806	cols#132, lines#40,
1807	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1808pcvt43w|DEC VT220 emulation with 43 lines and 132 cols,
1809	cols#132, lines#43,
1810	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1811pcvt50w|DEC VT220 emulation with 50 lines and 132 cols,
1812	cols#132, lines#50,
1813	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1814
1815#	OpenBSD implements a color variation
1816pcvt25-color|DEC VT220 emulation with 25 lines and color,
1817	cols#80, lines#25,
1818	is2=\E[1;25r\E[25;1H, kf10=\E[29~, kf11=\E[23~,
1819	kf12=\E[24~, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~,
1820	kf8=\E[20~, kf9=\E[21~, use=vt100+pf1-pf4, use=pcvtXX,
1821	use=ecma+color, use=vt220+sfkeys,
1822
1823# Terminfo entries to enable the use of the ncurses library in colour on a
1824# NetBSD-arm32 console (only tested on a RiscPC).
1825# Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1826# modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1827# typo in invis - TD
1828arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
1829	bce, xenl, xon,
1830	lines#30,
1831	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1832	blink=\E[5m$<2>, bold=\E[1m$<2>, cub1=^H, cud1=\n,
1833	cuf1=\E[C$<2>, cuu1=\E[A$<2>, invis=\E[8m$<2>, ka1=\E[q,
1834	ka3=\E[s, kb2=\E[r, kc1=\E[p, kc3=\E[n, kent=\E[M, kf0=\E[y,
1835	kf1=\E[P, kf10=\E[x, kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t,
1836	kf6=\E[u, kf7=\E[v, kf8=\E[l, kf9=\E[w, rev=\E[7m$<2>,
1837	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
1838	rmul=\E[m$<2>,
1839	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
1840	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<2>,
1841	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1842	smso=\E[7m$<2>, smul=\E[4m$<2>, use=ansi+csr,
1843	use=ansi+local, use=ecma+sgr, use=vt100+4bsd,
1844	use=klone+color,
1845
1846arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
1847	cols#132, lines#50, use=arm100,
1848
1849# NetBSD/x68k console VT200 emulator. This port runs on a 68K machine
1850# manufactured by Sharp for the Japanese market.
1851# From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1852x68k|x68k-ite|NetBSD/x68k ITE,
1853	cols#96, lines#32,
1854	kbs=^?, kclr=\E[9~, khlp=\E[28~, use=vt220-base,
1855
1856# <tv@pobox.com>:
1857# Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1858#
1859# (still unfinished, but good enough so far.)
1860ofcons|DNARD OpenFirmware console,
1861	bw,
1862	cols#80, lines#30,
1863	bel=^G, blink=\2335m, bold=\2331m, clear=^L, cr=\r,
1864	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
1865	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
1866	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
1867	dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K,
1868	flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL,
1869	il1=\233L, ind=\n, invis=\2338m, kbs=^H, kcub1=\233D,
1870	kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P,
1871	kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
1872	kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
1873	kf9=\2330p, knp=\233/, kpp=\233?, nel=\r\n, rev=\2337m,
1874	rmso=\2330m, rmul=\2330m,
1875	sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t2%;%?%p7%t8
1876	    %;%?%p1%p3%|%t;7%;m,
1877	sgr0=\2330m, smso=\2337m, smul=\2334m,
1878
1879# NetBSD "wscons" emulator in VT220 mode.
1880# This entry is based on the NetBSD termcap entry.  The emulator renders
1881# underlined text in red.  Colors are otherwise usable.  NetBSD developers
1882# prefer to not specify the corresponding ncv value.
1883#
1884# Testing the emulator and reading the source code (NetBSD 2.0), it appears
1885# that "vt220" is inaccurate.  There are a few VT220-features, but most of the
1886# VT220 screens in vttest do not work with this emulator.  For instance, it
1887# identifies itself (primary DA response) as a VT220 with selective erase.  But
1888# the selective erase feature does not work.  The secondary response is copied
1889# from Kermit's emulation of VT220, does not correspond to actual VT220.  At
1890# the level of detail in a termcap, it is a passable emulator, since ECH does
1891# work.  Don't use it on a VMS system -TD
1892wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
1893	bce,
1894	colors#8, lines#25, pairs#64,
1895	is2=\E[r\E[25;1H, kdch1=\E[3~, kend=\E[8~, khome=\E[7~,
1896	op=\E[m, rs1=\Ec, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1897	use=xterm+r5+lockeys, use=vt220,
1898
1899wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
1900	km, use=wsvt25,
1901
1902# NetBSD 6.x still uses wscons, with minor changes (2014/02/22) -TD
1903#
1904# TERM is by default vt100 for the console, wsvt25 for other ttys.
1905# Initial testing set TERM=xterm, based on comments by developers, found too
1906# many differences to continue in that path.  However, test-results may be
1907# useful to people curious about compatibility with xterm.
1908#
1909# Testing with tack:
1910# -----------------
1911# Failed: cbt, bel, flash, cvvis, smul (color), blink, invis
1912# There is color-bleeding in the color-pairs screen.
1913# Attributes do not work with color
1914# Failed: vpa/hpa
1915# Failed: kf1-kf4, kf13-kf48, khome, kend
1916#	(effectively xterm-r6 for function-keys)
1917# None of the function or cursor key-modifiers are encoded.
1918# Console hangs in the smm/rmm test if TERM=xterm, does not show test
1919#
1920# Testing with vttest:
1921# -------------------
1922# Identifies as VT220 with selective erase
1923#	(however, selective erase refers to DECSCA, SPA)
1924# Does not implement VT52
1925# Uses spaces to simulate double-size characters
1926# Does not support 8-bit controls
1927# Does not support VT220 reports
1928# Does not support send/receive mode
1929# Supports ECH (like rxvt)
1930# Does not support DECSCA
1931# Does not support any of the ISO-6429 cursor-movement
1932# Does not support any of the ISO-6429 miscellaneous tests
1933#	(SL/SR also leave unexpected char on screen too)
1934# Background does not change in menu 11.6.9 (SGR 22-27)
1935# None of the xterm special features tests work
1936netbsd6|NetBSD wscons in 25 line DEC VT100 mode,
1937	kbs=^?, use=wsvt25,
1938
1939# `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1940# DECstation/pmax.
1941rcons|BSD rasterconsole,
1942	use=sun-il,
1943# Color version of above. Color currently only provided by NetBSD.
1944rcons-color|BSD rasterconsole with ANSI color,
1945	bce,
1946	colors#8, pairs#64,
1947	op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=rcons,
1948
1949# mgterm -- MGL/MGL2, MobileGear Graphic Library
1950# for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1951# -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1952# -- compare with cons25w
1953mgterm|MGL/MGL2 MobileGear Graphic Library,
1954	OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
1955	colors#8, cols#80, it#8, lines#18, pairs#64,
1956	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r, cub1=^H,
1957	dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, ech=\E[%p1%dX,
1958	el1=\E[1K, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
1959	ich1=\E[@, ind=\E[S, kb2=\E[E, kcbt=\E[Z, kdch1=^?,
1960	kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X,
1961	kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
1962	kf8=\E[T, kf9=\E[U, kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E,
1963	op=\E[x, rev=\E[7m, ri=\E[T, rs2=\E[x\E[m\Ec,
1964	setb=\E[4%p1%dm, setf=\E[3%p1%dm, sgr0=\E[m,
1965	vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
1966	use=ansi+cup, use=ansi+erase, use=ansi+idl,
1967	use=ansi+local, use=ansi+sgrso, use=ecma+index,
1968
1969#### FreeBSD console entries
1970
1971# Originally from termcap:
1972#
1973# From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1974# Andrey Chernov maintains the FreeBSD termcap distributions.
1975#
1976# Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1977# or comment out the :cb: capability in the console entry.
1978#
1979# Alexander Lukyanov reports:
1980# I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1981# Now el1 clears not only to the line beginning, but also a large chunk
1982# of previous line. But there is another bug - ech does not work at all.
1983
1984# syscons, sc - the console driver
1985#
1986# for syscons
1987# common entry without semigraphics
1988# Bug: The <op> capability resets attributes.
1989# Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1990# instance el1 does if the cursor is moved to the right margin first.  Removed
1991# by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1992#
1993# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1994# Note that this disables standout with color.
1995#
1996# The emulator sends different strings based on shift- and control-keys,
1997# like scoansi:
1998#	F13-F24 are shifted F1-F12
1999#	F25-F36 are control F1-F12
2000#	F37-F48 are shift+control F1-F12
2001cons25w|ansiw|ansi80x25-raw|FreeBSD console (25-line raw mode),
2002	am, bce, bw, eo, msgr, npc,
2003	cols#80, it#8, lines#25, ncv#21,
2004	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cnorm=\E[=0C,
2005	cr=\r, cub1=^H, cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P,
2006	dim=\E[30;1m, ech=\E[%p1%dX, hpa=\E[%i%p1%d`, ht=^I,
2007	ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, kb2=\E[E, kcbt=\E[Z,
2008	kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
2009	kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
2010	kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
2011	kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
2012	kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
2013	kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
2014	kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
2015	kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
2016	kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
2017	kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L,
2018	knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m,
2019	ri=\E[T, rs2=\E[x\E[m\Ec, sc=\E7,
2020	sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?
2021	    %p6%t;1%;m,
2022	sgr0=\E[m, vpa=\E[%i%p1%dd, use=ansi+arrows,
2023	use=ansi+cup, use=ansi+erase, use=ansi+idl,
2024	use=ansi+local, use=ansi+sgrso, use=ecma+index,
2025	use=klone+color,
2026
2027cons25|ansis|ansi80x25|FreeBSD console (25-line ANSI mode),
2028	acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l
2029	     \332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~
2030	     \371,
2031	use=cons25w,
2032cons25-debian|FreeBSD console with debian backspace (25-line ANSI mode),
2033	kbs=^?, kdch1=\E[3~, use=cons25,
2034cons25-m|ansis-mono|ansi80x25-mono|FreeBSD console (25-line mono ANSI mode),
2035	colors@, pairs@,
2036	bold@, dim@, op@, setab@, setaf@,
2037	sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m, use=ansi+sgrul, use=cons25,
2038cons30|ansi80x30|FreeBSD console (30-line ANSI mode),
2039	lines#30, use=cons25,
2040cons30-m|ansi80x30-mono|FreeBSD console (30-line mono ANSI mode),
2041	lines#30, use=cons25-m,
2042cons43|ansi80x43|FreeBSD console (43-line ANSI mode),
2043	lines#43, use=cons25,
2044cons43-m|ansi80x43-mono|FreeBSD console (43-line mono ANSI mode),
2045	lines#43, use=cons25-m,
2046cons50|ansil|ansi80x50|FreeBSD console (50-line ANSI mode),
2047	lines#50, use=cons25,
2048cons50-m|ansil-mono|ansi80x50-mono|FreeBSD console (50-line mono ANSI mode),
2049	lines#50, use=cons25-m,
2050cons60|ansi80x60|FreeBSD console (60-line ANSI mode),
2051	lines#60, use=cons25,
2052cons60-m|ansi80x60-mono|FreeBSD console (60-line mono ANSI mode),
2053	lines#60, use=cons25-m,
2054cons25r|pc3r|ibmpc3r|cons25-koi8-r|FreeBSD console w/koi8-r cyrillic,
2055	acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m
2056	     \204n\212q\0t\206u\207v\211w\210x\201y\230z\231~
2057	     \225,
2058	use=cons25w,
2059cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|FreeBSD console w/koi8-r cyrillic (mono),
2060	colors@, pairs@,
2061	op@, setab@, setaf@,
2062	sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
2063	    %t;30;1%;%?%p6%t;1%;m,
2064	use=ansi+sgrul, use=cons25r,
2065cons50r|cons50-koi8r|FreeBSD console w/koi8-r cyrillic (50 lines),
2066	lines#50, use=cons25r,
2067cons50r-m|cons50-koi8r-m|FreeBSD console w/koi8-r cyrillic (50-line mono),
2068	lines#50, use=cons25r-m,
2069cons60r|cons60-koi8r|FreeBSD console w/koi8-r cyrillic (60 lines),
2070	lines#60, use=cons25r,
2071cons60r-m|cons60-koi8r-m|FreeBSD console w/koi8-r cyrillic (60-line mono),
2072	lines#60, use=cons25r-m,
2073# ISO 8859-1 FreeBSD console
2074cons25l1|cons25-iso8859|FreeBSD console w/iso 8859-1 chars,
2075	acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k
2076	     \214l\215m\216n\217o\220p\221q\222r\223s\224t\225u
2077	     \226v\227w\230x\231y\232z\233~\237,
2078	use=cons25w,
2079cons25l1-m|cons25-iso-m|FreeBSD console w/iso 8859-1 chars (mono),
2080	colors@, pairs@,
2081	bold@, dim@, op@, setab@, setaf@,
2082	sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m, use=ansi+sgrul, use=cons25l1,
2083cons50l1|cons50-iso8859|FreeBSD console w/iso 8859-1 chars (50 lines),
2084	lines#50, use=cons25l1,
2085cons50l1-m|cons50-iso-m|FreeBSD console w/iso 8859-1 chars (50-line mono),
2086	lines#50, use=cons25l1-m,
2087cons60l1|cons60-iso|FreeBSD console w/iso 8859-1 chars (60 lines),
2088	lines#60, use=cons25l1,
2089cons60l1-m|cons60-iso-m|FreeBSD console w/iso 8859-1 chars (60-line mono),
2090	lines#60, use=cons25l1-m,
2091
2092# vt - virtual terminal console driver
2093#
2094# Starting with FreeBSD 8, an alternative configuration for syscons is provided,
2095# which is intended to be xterm-compatible.  See for example
2096#	http://svnweb.freebsd.org/base/stable/8/sys/dev/syscons/
2097# in particular scterm-teken.c
2098#
2099# Some of the documentation refers to this as "vt"; its proper name is "teken".
2100#
2101# The sc(4) manual page states that it is possible to switch between the two
2102# by editing /boot/loader.conf, adding
2103#	kern.vty=sc
2104# Doing that does not change the default TERM variable.  That is hard-coded in
2105# /etc/ttys, rather than deriving it from the kernel state.
2106#
2107# For FreeBSD 12 and 13:
2108# ---------------------
2109# In newer releases, it is no longer possible to boot into a configuration that
2110# works with syscons.  According to efi(4),
2111# "The vt(4) system console is automatically selected when booting via UEFI."
2112# See FreeBSD #264226.
2113#
2114# FreeBSD 13 supports 64-bit machines which boot with UEFI:
2115#	https://www.freebsd.org/platforms/
2116# The i386 platform does not use UEFI (and modifying the loader configuration
2117# does load sysconf); however because no updates (fixes) are available, most
2118# developers will regard that as unsupported.
2119#
2120# With FreeBSD 13, even when syscons is loaded (e.g., with the i386 platform),
2121# its function-keys are not configured.  Using
2122#	vidcontrol -T cons25
2123# repairs this.
2124#
2125# When teken is loaded, vidcontrol can switch at runtime between the
2126# teken/cons25 function keys:
2127#	vidcontrol -T cons25
2128#	vidcontrol -T xterm
2129# However due to a limitation in the implementation, only the first 12 function
2130# keys are available.  The real syscons supports 48 function keys (using the
2131# shift and control modifiers), while xterm supports more than twice as many.
2132#
2133# vidcontrol does not change the emulation. As a result, the quarter (17/73) of
2134# non-function key capabilities which differ between syscons and teken are
2135# unsupported in the UEFI-based configurations.
2136#
2137# tack:
2138#	VT100 line-drawing does not work (UTF-8 equivalents do).
2139#	Shift/control modifiers have no effect on special keys.
2140#	Meta does not work.
2141# vttest:
2142#	supports REP (repeat).
2143#	still does not support left/right margins
2144#	SU/SD work, but not SL/SR
2145#	alternate screen does not work
2146#	ENQ/DA1 is unimplemented (the terminal does not identify itself)
2147#	CPR, XCPR are unimplemented (i.e., vttest and resize are broken)
2148#	implements X11 (original) xterm-mouse.
2149# ncurses:
2150#	UTF-8 line-drawing works, including some double/thick lines
2151#
2152# For FreeBSD 9 and 10:
2153# --------------------
2154# The /etc/ttys entries for console and other ttys are all configured to set
2155# TERM=xterm.
2156#
2157# Testing with tack:
2158# There is no VT100 line-drawing (uses +'s and -'s)
2159# Shifted f1-f12 give cons25 codes, rather than xterm function-keys
2160#
2161# Testing with vttest:
2162# Menu 2 diamonds don't work, blink ditto, light background ditto
2163# The terminal identifies itself as VT100 with AVO
2164# There is no VT52 support
2165# There is no doublesize character support
2166# The terminal supports ECH (like rxvt)
2167# The terminal does not support send/receive mode
2168# The terminal supports all of the ISO-6429 cursor-movement
2169# The terminal supports some of the ISO-6429 miscellaneous tests
2170#	(SL/SR also leave unexpected char on screen too)
2171#
2172# Considering cons25 as a base, the line-drawing mostly works, but is missing
2173# the cells which happen to have ASCII control-character values:
2174#	-    ^X    arrow pointing up
2175#	.    ^Y    arrow pointing down
2176#	i    ^Y    lantern
2177#	`    ^D    diamond
2178#
2179# Those are removed from this entry's acsc string to avoid confusion.
2180# The resulting description provides correct line-drawing and function-keys -TD
2181teken-2018|teken as of 2018,
2182	bw@, mir, xenl, NQ,
2183	acsc=0\333a\260f\370g\361h\261j\331k\277l\332m\300n\305q
2184	     \304t\303u\264v\301w\302x\263y\363z\362~\371,
2185	cvvis@, hpa=\E[%i%p1%dG, hts=\EH, kdch1=\E[3~, kent=\r,
2186	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf5=\E[15~,
2187	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2188	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rmir=\E[4l, smir=\E[4h,
2189	tbc=\E[3g, use=vt100+pf1-pf4, use=vt220+cvis, use=cons25,
2190
2191teken-2022|teken as of 2022,
2192	am, bce, eo, mir, msgr, npc, NQ,
2193	cols#80, it#8, lines#25, ncv#21, U8#1,
2194	bold=\E[1m, cr=\r, cub1=^H, dim=\E[30;1m, ech=\E[%p1%dX,
2195	ind=\E[S, kent=\r, nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T,
2196	rs2=\E[x\E[m\Ec,
2197	sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p5%t;30;1%;%?%p6%t;1%;m,
2198	sgr0=\E[m, use=ecma+standout, use=vt220+cvis,
2199	use=ecma+index, use=ansi+arrows, use=ansi+csr,
2200	use=ansi+cup, use=ansi+erase, use=ansi+idc, use=ansi+idl,
2201	use=ansi+local, use=ansi+rca2, use=ansi+sgrso,
2202	use=ansi+tabs, use=klone+color,
2203
2204teken-vt+fkeys|teken's xterm special keys,
2205	kend=\E[F, khome=\E[H, use=vt100+pf1-pf4,
2206	use=vt220+pcedit, use=xterm+r5+fkeys,
2207
2208teken-sc+fkeys|teken's syscons special keys,
2209	kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
2210	kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R,
2211	kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L,
2212	knp=\E[G, kpp=\E[I,
2213
2214teken-sc|teken imitating syscons,
2215	use=teken-sc+fkeys, use=teken-2022,
2216
2217teken|teken-vt|teken imitating xterm,
2218	xenl, use=teken-vt+fkeys, use=xterm+x11mouse,
2219	use=teken-2022,
2220
2221teken-16color|teken using 16 colors,
2222	use=ibm+16color, use=teken,
2223
2224#### 386BSD and BSD/OS Consoles
2225#
2226
2227# This was the original 386BSD console entry (I think).
2228# Some places it's named oldpc3|oldibmpc3.
2229# From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
2230origpc3|origibmpc3|IBM PC 386BSD console,
2231	OTbs, am, bw, eo, xon,
2232	cols#80, lines#25,
2233	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
2234	     \263,
2235	bold=\E[7m, clear=\Ec, cub1=^H, cup=\E[%i%p1%2d;%p2%2dH,
2236	ed=\E[J, el=\E[K, home=\E[H, ind=\E[S, kcub1=\E[D,
2237	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[Y, ri=\E[T,
2238	rmso=\E[1;0x\E[2;7x, rmul=\E[1;0x\E[2;7x,
2239	sgr0=\E[m\E[1;0x\E[2;7x, smso=\E[1;7x\E[2;0x,
2240	smul=\E[1;7x\E[2;0x, use=ansi+local1,
2241
2242# description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
2243oldpc3|oldibmpc3|old IBM PC BSD/386 console,
2244	OTbs, km,
2245	lines#25,
2246	bel=^G, bold=\E[=15F, cr=\r, cud1=\n, dim=\E[=8F, ht=^I,
2247	ind=\n, kich1=\E[L, kll=\E[F, knp=\E[G, kpp=\E[I, nel=\r\n,
2248	sgr0=\E[=R, use=ansi+arrows, use=ansi+idl1,
2249
2250# Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
2251# Note, the emulator supports many of the additional console features
2252# listed in the iBCS2 (e.g. character-set selection) though not all
2253# are described here.  This entry really ought to be upgraded.
2254# Also note, the console will also work with fewer lines after doing
2255# "stty rows NN", e.g. to use 24 lines.
2256# (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
2257# Bug: The <op> capability resets attributes.
2258bsdos-pc|IBM PC BSD/OS console,
2259	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;1%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
2260	    %t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
2261	use=bsdos-pc-nobold,
2262
2263bsdos-pc-nobold|BSD/OS PC console w/o bold,
2264	use=klone+color, use=bsdos-pc-m,
2265
2266bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
2267	OTbs, am, eo, km, xon,
2268	cols#80, it#8, lines#25,
2269	bel=^G, clear=\Ec, cr=\r, cub1=^H, cud1=\n, ed=\E[J, el=\E[K,
2270	ht=^I, ind=\n, kich1=\E[L, kll=\E[F, knp=\E[G, kpp=\E[I,
2271	nel=\r\n, rc=\E8, sc=\E7,
2272	sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7
2273	    %t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;,
2274	use=ansi+arrows, use=ansi+cup, use=ansi+idl,
2275	use=ansi+local, use=klone+sgr8,
2276
2277# Old names for BSD/OS PC console used in releases before 4.1.
2278pc3|BSD/OS on the PC console,
2279	use=bsdos-pc-nobold,
2280ibmpc3|pc3-bold|BSD/OS on the PC console with bold instead of underline,
2281	use=bsdos-pc,
2282
2283# BSD/OS on the SPARC
2284bsdos-sparc|Sun SPARC BSD/OS console,
2285	use=sun,
2286
2287# BSD/OS on the PowerPC
2288bsdos-ppc|PowerPC BSD/OS console,
2289	use=bsdos-pc,
2290
2291
2292#### DEC VT52
2293# (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
2294#
2295# Actually (TD pointed this out at the time the acsc string was added):
2296# VT52 shouldn't define full acsc since most of the cells don't match.
2297# see VT100 manual page A-31.  This is the list that does match:
2298#	f degree
2299#	g plus/minus
2300#	h right-arrow
2301#	k down-arrow
2302#	m scan-1
2303#	o scan-3
2304#	q scan-5
2305#	s scan-7
2306# The line-drawing happens to work in several terminal emulators, but should
2307# not be used as a guide to the capabilities of the VT52.  Note in particular
2308# that VT52 does not support line-drawing characters (the scan-X values refer
2309# to a crude plotting feature) -TD
2310vt52|DEC VT52,
2311	lines#24,
2312	acsc=+h.k0affggolpnqprrss, rmacs=\EG, rmkx=\E>,
2313	smacs=\EF, smkx=\E=, u8=\E/[KL], use=vt50h, use=vt52-basic,
2314
2315# This is more likely the "vt52" that you would see in emulation, i.e., no
2316# keypad, no graphics.
2317vt52-basic|VT52 for emulators,
2318	cols#80, it#8, lines#24,
2319	bel=^G, clear=\EH\EJ, cr=\r, cub1=\ED, cud1=\EB, cuf1=\EC,
2320	cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
2321	home=\EH, ht=^I, ind=\n, kbs=^H, nel=\r\n, ri=\EI,
2322	use=vt52+arrows,
2323
2324vt52+arrows|cursor keys for VT52,
2325	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
2326
2327#### DEC VT100 and compatibles
2328#
2329# DEC terminals from the VT100 forward are collected here. Older DEC terminals
2330# and micro consoles can be found in the `obsolete' section.  More details on
2331# the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
2332# found near the end of this file.
2333#
2334# Except where noted, these entries are DEC's official terminfos.
2335# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
2336# Engineering for more information.  Updated terminfos and termcaps
2337# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
2338#
2339# In October 1995 DEC sold its terminals business, including the VT and Dorio
2340# line and trademark, to SunRiver Data Systems.  SunRiver has since changed
2341# its name to Boundless Technologies; see http://www.boundless.com.
2342#
2343
2344# NOTE:  Any VT100 emulation, whether in hardware or software, almost
2345# certainly includes what DEC called the `Level 1 editing extension' codes;
2346# only the very oldest VT100s lacked these and there probably aren't any of
2347# those left alive.  To capture these, use one of the VT102 entries.
2348#
2349# Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
2350# since the cursor is left in a different position while in the
2351# weird state (concept at beginning of next line, vt100 at end
2352# of this line) so all versions of vi before 3.7 don't handle
2353# <xenl> right on vt100. The correct way to handle <xenl> is when
2354# you output the char in column 80, immediately output CR LF
2355# and then assume you are in column 1 of the next line. If <xenl>
2356# is on, am should be on too.
2357#
2358# I assume you have smooth scroll off or are at a slow enough baud
2359# rate that it doesn't matter (1200? or less). Also this assumes
2360# that you set auto-nl to "on", if you set it off use vt100-nam
2361# below.
2362#
2363# The padding requirements listed here are guesses. It is strongly
2364# recommended that xon/xoff be enabled, as this is assumed here.
2365#
2366# The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the
2367# tab settings are in non-volatile memory and don't need to be
2368# reset upon login. Also setting the number of columns glitches
2369# the screen annoyingly. You can type "reset" to get them set.
2370#
2371# The VT100 series terminals have cursor ("arrows") keys which can operate
2372# in two different modes: Cursor Mode and Application Mode.  Cursor Mode
2373# is the reset state, and is assumed to be the normal state.  Application
2374# Mode is the "set" state.  In Cursor Mode, the cursor keys transmit
2375# "Esc [ {code}" sequences, conforming to ANSI standards.  In Application
2376# Mode, the cursor keys transmit "Esc O <code>" sequences.  Application Mode
2377# was provided primarily as an aid to the porting of VT52 applications.  It is
2378# assumed that the cursor keys are normally in Cursor Mode, and expected that
2379# applications such as vi will always transmit the <smkx> string.  Therefore,
2380# the definitions for the cursor keys are made to match what the terminal
2381# transmits after the <smkx> string is transmitted.  If the <smkx> string
2382# is a null string or is not defined, then cursor keys are assumed to be in
2383# "Cursor Mode", and the cursor keys definitions should match that assumption,
2384# else the application may fail.  It is also expected that applications will
2385# always transmit the <rmkx> string to the terminal before they exit.
2386#
2387# The VT100 series terminals have an auxiliary keypad, commonly referred to as
2388# the "Numeric Keypad", because it is a cluster of numeric and function keys.
2389# The Numeric Keypad which can operate in two different modes: Numeric Mode and
2390# Application Mode.  Numeric Mode is the reset state, and is assumed to be
2391# the normal state.  Application Mode is the "set" state.  In Numeric Mode,
2392# the numeric and punctuation keys transmit ASCII 7-bit characters, and the
2393# Enter key transmits the same as the Return key (Note: the Return key
2394# can be configured to send either LF (\015) or CR LF).  In Application Mode,
2395# all the keypad keys transmit "Esc O {code}" sequences.  The PF1 - PF4 keys
2396# always send the same "Esc O {code}" sequences.  It is assumed that the keypad
2397# is normally in Numeric Mode.  If an application requires that the keypad be
2398# in Application Mode then it is expected that the user, or the application,
2399# will set the TERM environment variable to point to a terminfo entry which has
2400# defined the <smkx> string to include the codes that switch the keypad into
2401# Application Mode, and the terminfo entry will also define function key
2402# fields to match the Application Mode control codes.  If the <smkx> string
2403# is a null string or is not defined, then the keypad is assumed to be in
2404# Numeric Mode.  If the <smkx> string switches the keypad into Application
2405# Mode, it is expected that the <rmkx> string will contain the control codes
2406# necessary to reset the keypad to "Normal" mode, and it is also expected that
2407# applications which transmit the <smkx> string will also always transmit the
2408# <rmkx> string to the terminal before they exit.
2409#
2410# Here's a diagram of the VT100 keypad keys with their bindings.
2411# The top line is the name of the key (some DEC keyboards have the keys
2412# labelled somewhat differently, like GOLD instead of PF1, but this is
2413# the most "official" name).  The second line is the escape sequence it
2414# generates in Application Keypad mode (where "$" means the ESC
2415# character).  The third line contains two items, first the mapping of
2416# the key in terminfo, and then in termcap.
2417#   _______________________________________
2418#  |   PF1   |   PF2   |   PF3   |   PF4   |
2419#  |   $OP   |   $OQ   |   $OR   |   $OS   |
2420#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2421#  |    7         8         9         -    |
2422#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
2423#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
2424#  |    4    |    5    |    6    |    ,    |
2425#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
2426#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
2427#  |    1    |    2    |    3    |         |
2428#  |   $Oq   |   $Or   |   $Os   |  enter  |
2429#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
2430#  |         0         |   .     |         |
2431#  |        $Op        |  $On    |         |
2432#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
2433#
2434# Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
2435# terminfo guidelines.  That is a compromise used to assign the remaining
2436# keys on the keypad to kf5-kf0, used on older systems with legacy termcap
2437# support:
2438vt100+keypad|DEC VT100 numeric keypad no fkeys,
2439	ka1=\EOq, ka3=\EOs, kb2=\EOr, kc1=\EOp, kc3=\EOn,
2440vt100+pf1-pf4|DEC VT100 PF1-PF4,
2441	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2442vt100+pfkeys|DEC VT100 numeric keypad (kf1-kf4),
2443	kent=\EOM, use=vt100+pf1-pf4, use=vt100+keypad,
2444vt100+fnkeys|DEC VT100 numeric keypad (kf0-kf10),
2445	kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
2446	kf9=\EOw, use=vt100+pfkeys,
2447#
2448# A better adaptation to modern keyboards such as the PC's, which have a dozen
2449# function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
2450# use the 5-key arrangement to model the arrow keys as suggested in the
2451# terminfo guidelines:
2452#   _______________________________________
2453#  |   PF1   |   PF2   |   PF3   |   PF4   |
2454#  |   $OP   |   $OQ   |   $OR   |   $OS   |
2455#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2456#  |    7         8         9         -    |
2457#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
2458#  |_ka1__K1_|_________|_ka3__K3_|_________|
2459#  |    4    |    5    |    6    |    ,    |
2460#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
2461#  |_________|_kb2__K2_|_________|_________|
2462#  |    1    |    2    |    3    |         |
2463#  |   $Oq   |   $Or   |   $Os   |  enter  |
2464#  |_kc1__K4_|_________|_kc3__K5_|  $OM    |
2465#  |         0         |   .     |         |
2466#  |        $Op        |  $On    |         |
2467#  |___________________|_________|_kent_@8_|
2468#
2469vt220+keypad|DEC VT220 numeric keypad,
2470	ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs, ka2=\EOx,
2471	kb1=\EOt, kb3=\EOv, kc2=\EOr, use=vt100+pfkeys,
2472#
2473vt100+enq|ncurses extension for VT100-style ENQ,
2474	u8=\E[?1;2c, use=ansi+enq,
2475vt102+enq|ncurses extension for VT102-style ENQ,
2476	u8=\E[?6c, use=ansi+enq,
2477#
2478# And here, for those of you with orphaned VT100s lacking documentation, is
2479# a description of the soft switches invoked when you do `Set Up'.
2480#
2481#  Scroll 0-Jump               Shifted 3   0-#
2482#  |      1-Smooth             |           1-British pound sign
2483#  | Autorepeat 0-Off          | Wrap Around 0-Off
2484#  | |          1-On           | |           1-On
2485#  | | Screen 0-Dark Bkg       | | New Line 0-Off
2486#  | | |      1-Light Bkg      | | |        1-On
2487#  | | | Cursor 0-Underline    | | | Interlace 0-Off
2488#  | | | |      1-Block        | | | |         1-On
2489#  | | | |                     | | | |
2490#  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
2491#                | | | |                     | | | |
2492#                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
2493#                | | |               1-On    | | |       1-50 Hz
2494#                | | ANSI/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
2495#                | |           1-ANSI        | |                1-8 Bits
2496#                | Keyclick 0-Off            | Parity 0-Off
2497#                |          1-On             |        1-On
2498#                Margin Bell 0-Off           Parity Sense 0-Odd
2499#                            1-On                         1-Even
2500#
2501# The following SET-UP modes are assumed for normal operation:
2502#	ANSI_MODE	AUTO_XON/XOFF_ON	NEWLINE_OFF	80_COLUMNS
2503#	WRAP_AROUND_ON  JUMP_SCROLL_OFF
2504# Other SET-UP modes may be set for operator convenience or communication
2505# requirements; I recommend
2506#	AUTOREPEAT_ON	BLOCK_CURSOR	MARGIN_BELL_OFF    SHIFTED_3_#
2507# Unless you have a graphics add-on such as Digital Engineering's VT640
2508# (and even then, whenever it can be arranged!) you should set
2509#	INTERLACE_OFF
2510#
2511# (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
2512vt100|vt100-am|DEC VT100 (w/advanced video),
2513	OTbs, xenl, xon,
2514	vt#3,
2515	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, lf1=pf1,
2516	lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[0i, rmam=\E[?7l,
2517	rmkx=\E[?1l\E>, rs2=\E<\E>\E[?3;4;5l\E[?7;8h\E[r,
2518	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
2519	    %;m%?%p9%t\016%e\017%;$<2>,
2520	smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m$<2>,
2521	use=ansi+csr, use=ansi+pp, use=decid+cpr, use=vt100+4bsd,
2522	use=vt100+fnkeys,
2523
2524vt100+4bsd|DEC VT100 from 4.0BSD,
2525	am, msgr,
2526	cols#80, it#8, lines#24,
2527	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2528	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2529	clear=\E[H\E[J$<50>, cr=\r, cub1=^H, cud1=\n,
2530	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
2531	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
2532	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=\n, kbs=^H,
2533	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2534	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmso=\E[m$<2>,
2535	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2536	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
2537	    %;m%?%p9%t\016%e\017%;$<2>,
2538	sgr0=\E[m\017$<2>, smacs=^N, smso=\E[1;7m$<2>,
2539	smul=\E[4m$<2>, tbc=\E[3g, use=ansi+local,
2540
2541vt100nam|vt100-nam|VT100 no automargins,
2542	am@, xenl@,
2543	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt100-am,
2544vt100-vb|DEC VT100 (w/advanced video) & no beep,
2545	bel@, flash=\E[?5h$<100/>\E[?5l, use=vt100,
2546
2547# Ordinary VT100 in 132 column ("wide") mode.
2548vt100-w|vt100-w-am|DEC VT100 132 cols (w/advanced video),
2549	cols#132, lines#24,
2550	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
2551vt100-w-nam|vt100-nam-w|DEC VT100 132 cols (w/advanced video no automargin),
2552	cols#132, lines#14, vt@,
2553	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam,
2554
2555# VT100 with no advanced video.
2556vt100-nav|VT100 without advanced video option,
2557	xmc#1,
2558	blink@, bold@, rev@, rmul@, sgr@, sgr0@, smul@, use=ansi+sgrso,
2559	use=vt100,
2560vt100-nav-w|vt100-w-nav|DEC VT100 132 cols 14 lines (no advanced video option),
2561	cols#132, lines#14, use=vt100-nav,
2562
2563# VT100 with one of the 24 lines used as a status line.
2564# We put the status line on the top.
2565vt100-s|vt100-s-top|vt100-top-s|VT100 for use with top sysline,
2566	eslok, hs,
2567	lines#23,
2568	clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr,
2569	cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8,
2570	fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8,
2571	tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am,
2572
2573# Status line at bottom.
2574# Clearing the screen will clobber status line.
2575vt100-s-bot|vt100-bot-s|VT100 for use with bottom sysline,
2576	eslok, hs,
2577	lines#23,
2578	dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H,
2579	tsl=\E7\E[24;%p1%dH\E[1K, use=vt100-am,
2580
2581# Most of the `vt100' emulators out there actually emulate a VT102
2582# This entry (or vt102-nsgr) is probably the right thing to use for
2583# these.
2584vt102|DEC VT102,
2585	dch1=\E[P, rmir=\E[4l, smir=\E[4h, use=ansi+idl1,
2586	use=vt100,
2587vt102-w|DEC VT102 in wide mode,
2588	cols#132,
2589	rs3=\E[?3h, use=vt102,
2590
2591# Many brain-dead PC comm programs that pretend to be `vt100-compatible'
2592# fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
2593# string in the canonical vt100 entry above leaves the screen littered
2594# with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
2595# after highlight turnoffs.  This entry should fix that, and even leave
2596# ACS support working, at the cost of making multiple-highlight changes
2597# slightly more expensive.
2598# From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
2599vt102-nsgr|VT102 no sgr (use if you see snowflakes after highlight changes),
2600	sgr@, sgr0=\E[m, use=vt102,
2601
2602# VT125 Graphics CRT.  Clear screen also erases graphics
2603# Some VT125's came configured with VT102 support.
2604vt125|VT125 graphics terminal,
2605	mir,
2606	clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
2607
2608# This isn't a DEC entry, it came from University of Wisconsin.
2609# (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
2610vt131|DEC VT131,
2611	OTbs, am, xenl,
2612	cols#80, it#8, lines#24, vt#3,
2613	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
2614	clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
2615	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
2616	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
2617	ht=^I, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
2618	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, nel=\r\n,
2619	rev=\E[7m$<2/>, ri=\EM$<5/>, rmam=\E[?7h, rmkx=\E[?1l\E>,
2620	rmso=\E[m$<2/>, rmul=\E[m$<2/>,
2621	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2622	sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
2623	smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+csr,
2624	use=vt100+pf1-pf4,
2625
2626# vt132 - like vt100 but slower and has ins/del line and such.
2627# I'm told that <smir>/<rmir> are backwards in the terminal from the
2628# manual and from the ANSI standard, this describes the actual
2629# terminal. I've never actually used a vt132 myself, so this
2630# is untested.
2631#
2632vt132|DEC VT132,
2633	xenl,
2634	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
2635	ip=$<7>, rmir=\E[4h, smir=\E[4l, use=vt100,
2636
2637# This vt220 description maps F5--F9 to the second block of function keys
2638# at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
2639# with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
2640# PF1--PF4 are used as F1--F4.
2641#
2642# added msgr -TD
2643vt220-old|vt200-old|DEC VT220 in VT100 emulation mode,
2644	OTbs, OTpt, am, mir, msgr, xenl, xon,
2645	cols#80, lines#24, vt#3,
2646	OTnl=\n,
2647	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2648	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2649	clear=\E[H\E[2J$<50>, cr=\r, cub1=^H,
2650	cup=\E[%i%p1%d;%p2%dH$<10>, dch1=\E[P, ed=\E[J$<50>,
2651	el=\E[K$<3>, ht=^I, if=/usr/share/tabset/vt100,
2652	ind=\ED$<20/>, is2=\E[1;24r\E[24;1H, kf10=\E[29~,
2653	kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~,
2654	khome=\E[1~, rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
2655	ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2656	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2657	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2658	    %p9%t\E(0%e\E(B%;$<2>,
2659	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2660	smul=\E[4m, use=ecma+underline, use=ecma+standout,
2661	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
2662	use=ansi+idl1, use=ansi+local1, use=ansi+sgrso,
2663	use=vt100+pf1-pf4, use=vt220+pcedit, use=vt220+cvis,
2664
2665# Here's a picture of the Sun/PC editing keypad:
2666#	+--------+--------+--------+
2667#	| Insert | Home   | PageUp |
2668#	+--------+--------+--------+
2669#	| Delete | End    | PageDn |
2670#	+--------+--------+--------+
2671#
2672# VT220 emulators such as xterm, using PC-keyboards use a different layout than
2673# the VT220 keyboard:
2674#	VT220		PC
2675#	-----		--
2676#	Prev		PageUp
2677#	Next		PageDn
2678#	Insert		Insert
2679#	Remove		Delete
2680#	Find		Home
2681#	Select		End
2682vt220+pcedit|editing-keypad for VT220 using PC keyboard,
2683	kdch1=\E[3~, kend=\E[4~, khome=\E[1~, kich1=\E[2~,
2684	knp=\E[6~, kpp=\E[5~,
2685vt220+vtedit|editing-keypad for VT220 using DEC keyboard,
2686	kdch1=\E[3~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2687	kslt=\E[4~,
2688
2689# A much better description of the VT200/220; used to be vt220-8
2690# changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
2691# designation to accommodate bug in pcvt -TD
2692#
2693# Here's a picture of the VT220 editing keypad:
2694#	+--------+--------+--------+
2695#	| Find   | Insert | Remove |
2696#	+--------+--------+--------+
2697#	| Select | Prev   | Next   |
2698#	+--------+--------+--------+
2699#
2700# Still, this is a "base" entry.  Software emulators commonly leave out the
2701# DECTCEM feature -TD
2702vt220-base|DEC VT220 as emulated,
2703	OTbs, am, mir, msgr, xenl, xon,
2704	cols#80, it#8, lines#24, vt#3,
2705	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2706	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
2707	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, el1=\E[1K,
2708	enacs=\E)0, flash=\E[?5h$<200/>\E[?5l, ht=^I, hts=\EH,
2709	ich=\E[%p1%d@, if=/usr/share/tabset/vt100, ind=\ED,
2710	is2=\E[?7h\E[>\E[?1l\E F\E[?4l, kbs=^H, kcub1=\E[D,
2711	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf13=\E[25~,
2712	kf14=\E[26~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2713	kf20=\E[34~, khlp=\E[28~, krdo=\E[29~, lf1=pf1, lf2=pf2,
2714	lf3=pf3, lf4=pf4, nel=\EE, rev=\E[7m, ri=\EM, rmacs=\E(B$<4>,
2715	rmam=\E[?7l, rmir=\E[4l, rs1=\E[?3l,
2716	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2717	    %p9%t\E(0%e\E(B%;$<2>,
2718	sgr0=\E[m\E(B, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2719	smul=\E[4m, tbc=\E[3g, use=ecma+underline,
2720	use=ecma+standout, use=ansi+csr, use=ansi+cup,
2721	use=ansi+pp, use=ansi+enq, use=ansi+erase, use=ansi+idl,
2722	use=ansi+local, use=vt100+pf1-pf4, use=vt220+vtedit,
2723	use=vt220+ufkeys,
2724
2725vt220|vt200|DEC VT220,
2726	use=vt220+cvis, use=vt220-base,
2727vt220-w|vt200-w|DEC VT220 in wide mode,
2728	cols#132,
2729	rs3=\E[?3h, use=vt220,
2730vt220-8bit|vt220-8|vt200-8bit|vt200-8|DEC VT220/200 in 8-bit mode,
2731	OTbs, am, mc5i, mir, msgr, xenl, xon,
2732	cols#80, it#8, lines#24, vt#3,
2733	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2734	bel=^G, blink=\2335m, bold=\2331m, clear=\233H\233J, cr=\r,
2735	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
2736	cud=\233%p1%dB, cud1=\n, cuf=\233%p1%dC, cuf1=\233C,
2737	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
2738	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
2739	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K, enacs=\E)0,
2740	flash=\233?5h$<200/>\233?5l, home=\233H, ht=^I, hts=\EH,
2741	ich=\233%p1%d@, if=/usr/share/tabset/vt100,
2742	il=\233%p1%dL, il1=\233L, ind=\ED,
2743	is2=\233?7h\233>\233?1l\E F\233?4l, kbs=^H,
2744	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
2745	kdch1=\2333~, kf10=\23321~, kf11=\23323~, kf12=\23324~,
2746	kf13=\23325~, kf14=\23326~, kf17=\23331~, kf18=\23332~,
2747	kf19=\23333~, kf20=\23334~, kf6=\23317~, kf7=\23318~,
2748	kf8=\23319~, kf9=\23320~, kfnd=\2331~, khlp=\23328~,
2749	khome=\233H, kich1=\2332~, knp=\2336~, kpp=\2335~,
2750	krdo=\23329~, kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3,
2751	lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8,
2752	rev=\2337m, ri=\EM, rmacs=\E(B, rmam=\233?7l, rmir=\2334l,
2753	rmso=\23327m, rmul=\23324m, rs1=\233?3l, sc=\E7,
2754	sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m
2755	    %?%p9%t\E(0%e\E(B%;$<2>,
2756	sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h, smir=\2334h,
2757	smso=\2337m, smul=\2334m, tbc=\2333g, use=vt100+pf1-pf4,
2758	use=vt220+cvis8,
2759
2760# vt220d:
2761# This VT220 description regards F6--F10 as the second block of function keys
2762# at the top of the keyboard.  This mapping follows the description given
2763# in the VT220 Programmer Reference Manual and agrees with the labeling
2764# on some terminals that emulate the VT220.  There is no support for an F5.
2765# See vt220 for an alternate mapping.
2766#
2767vt220d|DEC VT220 in VT100 mode with DEC function key labeling,
2768	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf5@, kf6=\E[17~,
2769	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, use=vt220+sfkeys,
2770	use=vt220-old,
2771
2772# These are often mapped to unshifted/shifted keys on PC-keyboards -TD
2773vt220+ufkeys|first 8 function-keys for VT220,
2774	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf5@, kf6=\E[17~,
2775	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2776vt220+sfkeys|second 8 function-keys for VT220,
2777	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
2778	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
2779
2780vt220-nam|v200-nam|VT220 in VT100 mode with no auto margins,
2781	am@,
2782	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2783
2784# vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2785# (not an official DEC entry!)
2786# The problem with real VT220 terminals is they don't send escapes when in
2787# in VT220 mode.  This can be gotten around two ways.  1> don't send
2788# escapes or 2> put the VT220 into VT100 mode and use all the nifty
2789# features of VT100 advanced video which it then has.
2790#
2791# This entry takes the view of putting a VT220 into VT100 mode so
2792# you can use the escape key in emacs and everything else which needs it.
2793#
2794# You probably don't want to use this on a VMS machine since VMS will think
2795# it has a VT220 and will get fouled up coming out of emacs
2796#
2797# From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2798# (Added vt100 <rc>,<sc> to quiet a tic warning -- esr)
2799# added msgr -TD
2800vt200-js|vt220-js|DEC VT200 series with jump scroll,
2801	am, msgr,
2802	cols#80,
2803	bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\E[A,
2804	dch1=\E[P, ht=^I, ind=\ED,
2805	is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1h\E[?5l\E[?6l\E[?7h\E[?8h\E[
2806	    ?25h\E>\E[m,
2807	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2808	nel=\r\ED, rf=/usr/share/tabset/vt100, ri=\EM, rmdc=,
2809	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m$<5/>,
2810	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smdc=,
2811	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
2812	use=ecma+underline, use=ansi+csr, use=ansi+cup,
2813	use=ansi+erase, use=ansi+idl1, use=vt100+pf1-pf4,
2814	use=vt220+cvis,
2815
2816# This was DEC's VT320.  Use the purpose-built one below instead
2817#vt320|DEC VT320 in VT100 emulation mode,
2818#	use=vt220,
2819
2820# Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
2821#
2822vt320nam|v320n|DEC VT320 in VT100 emul. mode with NO AUTO WRAP mode,
2823	am@,
2824	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h,
2825	use=vt220-base,
2826
2827# These entries are not DEC's official ones, they were purpose-built for the
2828# VT320.  Here are the designer's notes:
2829# <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to
2830# 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2831# khome is Home on a PC kbd.  Actually 'FIND' on a VT.
2832# Things that use <knxt> usually use tab anyways... and things that don't use
2833# tab usually use <knxt> instead...
2834# kprv is same as tab - Backtab is useless...
2835# I left out <sgr> because of its RIDICULOUS complexity,
2836# and the resulting fact that it causes the termcap translation of the entry
2837# to SMASH the 1k-barrier...
2838# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2839# (vt320: uncommented <fsl> --esr)
2840vt320|vt300|DEC VT320 7 bit terminal,
2841	am, mir, msgr, xenl,
2842	cols#80, lines#24, wsl#80,
2843	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2844	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
2845	cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX,
2846	el1=\E[1K, ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED,
2847	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2848	kbs=^?, kdch1=\E[3~, kel=\E[4~, kf12=\E[24~, khome=\E[1~,
2849	kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~, kprv=\E[Z,
2850	kslt=\E[4~, nel=\EE, rev=\E[7m,
2851	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2852	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
2853	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2854	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2855	    %p9%t\E(0%e\E(B%;$<2>,
2856	sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2857	smkx=\E[?1h\E=, tbc=\E[3g, use=ansi+apparrows,
2858	use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+erase,
2859	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
2860	use=ansi+sgrul, use=dec+pp, use=dec+sl, use=vt220+cvis,
2861	use=vt220+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
2862
2863vt320-nam|vt300-nam|DEC VT320 7 bit terminal with no am to make SAS happy,
2864	am@,
2865	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2866	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H, use=vt320,
2867# We have to init 132-col mode, not 80-col mode.
2868vt320-w|vt300-w|DEC VT320 wide 7 bit terminal,
2869	cols#132, wsl#132,
2870	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2871	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, use=vt320,
2872vt320-w-nam|vt300-w-nam|DEC VT320 wide 7 bit terminal with no am,
2873	am@,
2874	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2875	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H, use=vt320-w,
2876
2877# VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2878#   which are pretty much a superset of the VT320.  They have the
2879#   host writable status line, yet another different DRCS matrix size,
2880#   and such, but they add the DEC Technical character set, Multiple text
2881#   pages, selectable length pages, and the like.  The difference between
2882#   the VT330 and VT340 is that the former has only 2 planes and a monochrome
2883#   monitor, the latter has 4 planes and a color monitor.  These terminals
2884#   support VT131 and ANSI block mode, but as with much of these things,
2885#   termcap/terminfo doesn't deal with these features.
2886#
2887# Note that this entry is are set up in what was the standard way for GNU
2888# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2889# keys were switched into application mode at the same time the numeric pad
2890# is switched into application mode.  This changes the definitions of the
2891# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2892# your termcap or terminfo entry,
2893#
2894# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2895# (vt340: string capability "sb=\E[M" corrected to "sr";
2896# also, added <rmam>/<smam> based on the init string -- esr)
2897vt340|dec-vt340|vt330|dec-vt330|DEC VT340 graphics terminal with 24 line page,
2898	am, eslok, hs, mir, msgr, xenl, xon,
2899	cols#80, it#8, lines#24, vt#3,
2900	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2901	blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
2902	dch=\E[%p1%dP, dch1=\E[P, dsl=\E[2$~\r\E[1$}\E[K\E[$},
2903	flash=\E[?5h$<200/>\E[?5l, fsl=\E[$}, ht=^I, hts=\EH,
2904	ich=\E[%p1%d@, ind=\ED,
2905	is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
2906	    \E[24;1H,
2907	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2908	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1,
2909	lf2=pf2, lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
2910	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2911	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rs1=\E[?3l,
2912	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2913	    %p9%t\E(0%e\E(B%;$<2>,
2914	sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2915	smkx=\E[?1h\E=, smul=\E[4m, tbc=\E[3g,
2916	tsl=\E[2$~\E[1$}\E[1;%dH, use=ecma+underline,
2917	use=ecma+standout, use=ansi+csr, use=ansi+cup,
2918	use=ansi+erase, use=ansi+idl, use=ansi+local,
2919	use=vt100+pf1-pf4, use=vt220+cvis,
2920
2921# Left/right margins are supported in xterm since patch #279 (2012/05/10)
2922vt420+lrmm|VT420 left/right margins,
2923	mgc=\E[?69l, smglp=\E[?69h\E[%i%p1%ds,
2924	smglr=\E[?69h\E[%i%p1%d;%p2%ds,
2925	smgrp=\E[?69h\E[%i;%p1%ds,
2926
2927# DEC doesn't supply a VT400 description, so we add Daniel Glasser's
2928# (originally written with VT420 as its primary name, and usable for it).
2929#
2930# VT400/420 -- This terminal is a superset of the VT320.  It adds the multiple
2931#    text pages and long text pages with selectable length of the VT340, along
2932#    with left and right margins, rectangular area text copy, fill, and erase
2933#    operations, selected region character attribute change operations,
2934#    page memory and rectangle checksums, insert/delete column, reception
2935#    macros, and other features too numerous to remember right now.  TERMCAP
2936#    can only take advantage of a few of these added features.
2937#
2938# Note that this entry is set up in what was the standard way for GNU
2939# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2940# keys were switched into application mode at the same time the numeric pad
2941# is switched into application mode.  This changes the definitions of the
2942# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2943# your termcap entry,
2944#
2945# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2946# (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2947# also, added <rmam>/<smam> based on the init string -- esr)
2948vt400|vt400-24|dec-vt400|DEC VT400 24x80 column autowrap,
2949	am, mir, msgr, xenl, xon,
2950	cols#80, it#8, lines#24, vt#3,
2951	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2952	blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<10/>, cr=\r,
2953	cub1=^H, cud1=\n, dsl=\E[2$~\r\E[1$}\E[K\E[$},
2954	ed=\E[J$<10/>, el=\E[K$<4/>, flash=\E[?5h$<200/>\E[?5l,
2955	fsl=\E[$}, ht=^I, hts=\EH, ind=\ED,
2956	is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
2957	    \E[24;1H,
2958	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2959	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1,
2960	lf2=pf2, lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
2961	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2962	rmam=\E[?7l, rmkx=\E[?1l\E>, rs1=\E<\E[?3l\E[!p\E[?7h,
2963	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2964	    %p9%t\E(0%e\E(B%;$<2>,
2965	sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
2966	smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
2967	use=ecma+underline, use=ecma+standout, use=ansi+csr,
2968	use=ansi+cup, use=ansi+idc, use=ansi+idl, use=ansi+local,
2969	use=ansi+sgrso, use=dec+sl, use=vt100+pf1-pf4,
2970	use=vt220+cvis,
2971
2972# (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
2973# a missing <sc> -- esr)
2974# add msgr and other capabilities from vt220 -TD
2975vt420|DEC VT420,
2976	am, mir, msgr, xenl, xon,
2977	cols#80, it#8, lines#24, vt#3,
2978	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2979	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2980	clear=\E[H\E[2J$<50>, cr=\r, cub1=^H, cud1=\n,
2981	cup=\E[%i%p1%d;%p2%dH$<10>, dch=\E[%p1%dP, dch1=\E[P,
2982	ech=\E[%p1%dX, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K,
2983	enacs=\E)0, flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I,
2984	hts=\EH, ich=\E[%p1%d@, if=/usr/share/tabset/vt300,
2985	ind=\ED, is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p,
2986	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2987	kf10=\E[29~, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~,
2988	kf8=\E[20~, kf9=\E[21~, nel=\EE, rev=\E[7m$<2>,
2989	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>,
2990	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
2991	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2992	rs3=\E[?67h\E[64;1"p,
2993	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2994	    %p9%t\E(0%e\E(B%;$<2>,
2995	sgr0=\E[m\E(B$<2>, smacs=\E(0$<2>, smam=\E[?7h,
2996	smir=\E[4h, smkx=\E=, tbc=\E[3g, use=ecma+underline,
2997	use=ecma+standout, use=ansi+csr, use=ansi+enq,
2998	use=ansi+idl, use=ansi+pp, use=ansi+local, use=dec+sl,
2999	use=vt100+pf1-pf4, use=vt220+cvis, use=vt420+lrmm,
3000	use=vt220+vtedit,
3001
3002# DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
3003# takes two parameters, the key and the string.  Translating the key is
3004# straightforward (keys 1-5 are not defined on real terminals, though some
3005# emulators define these):
3006#
3007#               if (key < 16) then  value = key;
3008#               else if (key < 21) then value = key + 1;
3009#               else if (key < 25) then value = key + 2;
3010#               else if (key < 27) then value = key + 3;
3011#               else if (key < 30) then value = key + 4;
3012#               else value = key + 5;
3013#
3014# The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
3015# There's no provision in terminfo for emitting a string in this format, so the
3016# application has to know it.
3017#
3018vt420pc|DEC VT420 w/PC keyboard,
3019	kdch1=^?, kend=\E[4~, kf10=\E[21~, kf11=\E[23~,
3020	kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, kf15=\E[13;2~,
3021	kf16=\E[14;2~, kf17=\E[15;2~, kf18=\E[17;2~,
3022	kf19=\E[18;2~, kf20=\E[19;2~, kf21=\E[20;2~,
3023	kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~, kf25=\E[23~,
3024	kf26=\E[24~, kf27=\E[25~, kf28=\E[26~, kf29=\E[28~,
3025	kf30=\E[29~, kf31=\E[31~, kf32=\E[32~, kf33=\E[33~,
3026	kf34=\E[34~, kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~,
3027	kf38=\E[24;2~, kf39=\E[25;2~, kf40=\E[26;2~,
3028	kf41=\E[28;2~, kf42=\E[29;2~, kf43=\E[31;2~,
3029	kf44=\E[32;2~, kf45=\E[33;2~, kf46=\E[34;2~,
3030	kf47=\E[35;2~, kf48=\E[36;2~, kf6=\E[17~, kf7=\E[18~,
3031	kf8=\E[19~, kf9=\E[20~, khome=\E[H,
3032	pctrm=USR_TERM:vt420pcdos:,
3033	pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>
3034	    %t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+
3035	    %d/%p2%s\E\\,
3036	use=xterm+r5+lockeys, use=vt420,
3037
3038vt420pcdos|DEC VT420 w/PC for DOS Merge,
3039	lines#25,
3040	dispc=%?%p1%{19}%=%t\E\023\021%e%p1%{32}%<%t\E%p1%c%e%p1
3041	      %{127}%=%t\E\177%e%p1%c%;,
3042	pctrm@,
3043	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@,
3044	sgr0=\E[m, smsc=\E[?1;2r\E[34h, use=vt420pc,
3045
3046vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys,
3047	kdch1=^?, kf10=\E[21~, khome=\E[H, lf1=\EOP, lf2=\EOQ,
3048	lf3=\EOR, lf4=\EOS, use=vt220+sfkeys, use=xterm+r5+fkeys,
3049	use=vt420,
3050
3051vt510|DEC VT510,
3052	use=vt420,
3053vt510pc|DEC VT510 w/PC keyboard,
3054	use=vt420pc,
3055vt510pcdos|DEC VT510 w/PC for DOS Merge,
3056	use=vt420pcdos,
3057
3058# VT520/VT525
3059#
3060# The VT520 is a monochrome text terminal capable of managing up to
3061# four independent sessions in the terminal.  It has multiple ANSI
3062# emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
3063# and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
3064# 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
3065#
3066# Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
3067# [Alt]/[Print Screen] depending upon which keyboard and which
3068# terminal mode is being used.  If Set-Up has been disabled or
3069# assigned to an unknown key, Set-Up may be entered by pressing
3070# [F3] as the first key after power up, regardless of keyboard type.
3071vt520|DEC VT520,
3072	use=ansi+rca, use=vt420, use=ansi+tabs,
3073
3074vt520-w|DEC VT520 in wide mode,
3075	cols#132, use=vt520,
3076
3077# See "4.7.5 Visual Attributes Control Functions" and
3078# "Table 5-15 (Cont.) Visual Character Attribute Values"
3079# in EK-VT520-RM
3080vt525|DEC VT525,
3081	colors#8, pairs#64,
3082	op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
3083	use=vt520,
3084
3085vt525-w|DEC VT525 in wide mode,
3086	cols#132, use=vt525,
3087
3088# I just got a brand new Boundless VT520 with that company's "ANSI 2011"
3089# Keyboard, which replaces the old LK41R-AA keyboard.
3090#
3091# In trying to get the function keys to work, I had to cobble my own
3092# terminfo.src entry, since the existing vt520 entry doesn't include most of
3093# the function keys.  If I blend the entries for "vt420f" and "vt220+keypad"
3094# I seem to get them all -Mike Gran
3095vt520ansi|Boundless VT520 ANSI,
3096	use=ansi+rca, use=vt420f, use=vt220+keypad,
3097	use=ansi+tabs,
3098
3099#### VT100 emulations
3100
3101# John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
3102# (the best Windows telnet as of September 1995) presents the name `dec-vt100'
3103# to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
3104# that this works best with a stock vt100 entry.
3105dec-vt100|EWAN telnet's vt100 emulation,
3106	use=vt100,
3107
3108# From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
3109dec-vt220|DOS tnvt200 terminal emulator,
3110	am@, use=vt220,
3111
3112# Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
3113# anyone who needs PC VT340 emulation. (or anything below that level, for
3114# that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
3115# RDBM systems, it includes ReGIS and Sixel support!  I'm impressed...
3116# I can send the address if requested.
3117# (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
3118# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
3119z340|ZSTEM VT340 terminal emulator 132col 42line,
3120	lines#42,
3121	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
3122	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, use=vt320-w,
3123z340-nam|ZSTEM VT340 terminal emulator 132col 42line (no automatic margins),
3124	am@,
3125	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
3126	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, use=z340,
3127
3128# expect-5.44.1.15/example/tkterm
3129# a minimal subset of a VT100 (compare with "news-unk).
3130#
3131# The missing "=" in smkx is not a typo (here), but an error in tkterm.
3132tt|tkterm|Don Libes' tk text widget terminal emulator,
3133	clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
3134	cup=\E[%p1%d;%p2%dH, cuu1=\E[A, ind=\n, kf5=\EOT, kf6=\EOU,
3135	kf7=\EOV, kf8=\EOW, kf9=\EOX, rmkx=\E[?1l\E>,
3136	smkx=\E[?1h\E, use=ansi+sgrso, use=vt100+pf1-pf4,
3137
3138######## APPLE
3139
3140#### Terminal.app
3141
3142# nsterm*|Apple_Terminal - AppKit Terminal.app
3143#
3144# Terminal.app is a Terminal emulator bundled with NeXT's NeXTSTEP and
3145# OPENSTEP/Mach operating systems, and with Apple's Rhapsody, Mac OS X
3146# Server and Mac OS X operating systems. There is also a
3147# "terminal.app" in GNUstep, but I believe it to be an unrelated
3148# codebase and I have not attempted to describe it here.
3149#
3150# For NeXTSTEP, OPENSTEP/Mach, Rhapsody and Mac OS X Server 1.0, you
3151# are pretty much on your own. Use "nsterm-7-m" and hope for the best.
3152# You might also try "nsterm-7" and "nsterm-old" if you suspect your
3153# version supports color.
3154#
3155# To determine the version of Terminal.app you're using by running:
3156#
3157#     echo "$TERM_PROGRAM" "$TERM_PROGRAM_VERSION"
3158#
3159# For Apple_Terminal v309+, use "nsterm-256color" (or "nsterm-bce")
3160#
3161# For Apple_Terminal v200+, use "nsterm-16color" (a.k.a. "nsterm")
3162#
3163# For Apple_Terminal v71+/v100+, use "nsterm-bce".
3164#
3165# For Apple_Terminal v51+, use "nsterm-7-c" or "nsterm-7-c-s".
3166#
3167# For Apple_Terminal v41+, use "nsterm-old", or "nsterm-s".
3168#
3169# For all earlier versions (Apple_Terminal), try "nsterm-7-m"
3170# (monochrome) or "nsterm-7" (color); "nsterm-7-m-s" and "nsterm-7-s"
3171# might work too, but really you're on your own here since these
3172# systems are very obsolete and I can't test them. I do welcome
3173# patches, though :).
3174
3175# Other Terminals:
3176#
3177# For GNUstep_Terminal, you're probably best off using "linux" or
3178# writing your own terminfo.
3179
3180# For MacTelnet, you're on your own. It's a different codebase, and
3181# seems to be somewhere between "vt102", "ncsa" and "xterm-color".
3182
3183# For iTerm.app, see "iterm".
3184
3185#
3186# The AppKit Terminal.app descriptions all have names beginning with
3187# "nsterm". Note that the statusline (-s) versions use the window
3188# titlebar as a phony status line, and may produce warnings during
3189# compilation as a result ("tsl uses 0 parameters, expected 1".)
3190# Ignore these warnings, or even ignore these entries entirely. Apps
3191# which need to position the cursor or do other fancy stuff inside the
3192# status line won't work with these entries. They're primarily useful
3193# for programs like Pine which provide simple notifications in the
3194# status line. Please note that non-ASCII characters don't work right
3195# in the status line, since Terminal.app incorrectly interprets their
3196# Unicode codepoints as MacRoman codepoints (in earlier Mac OS X
3197# versions) or only accepts status lines consisting entirely of
3198# characters from the first 256 Unicode positions (including C1 but
3199# not C0 or DEL.)
3200#
3201# The Mythology* of AppKit Terminal.app:
3202#
3203# In the days of NeXTSTEP 0.x and 1.x there were two incompatible
3204# bundled terminal emulators, Shell and Terminal. Scott Hess wrote a
3205# shareware replacement for Terminal called "Stuart" which NeXT bought
3206# and used as the basis for the Terminal.app in NeXTSTEP 2+,
3207# OPENSTEP/Mach, Apple Rhapsody, Mac OS X Server 1.0, and Mac OS X. I
3208# don't know the TERM_PROGRAM and TERM_PROGRAM_VERSION settings or
3209# capabilities for the early versions, but I believe that the
3210# TERM_PROGRAM_VERSION may have been reset at some point.
3211#
3212# The early versions were tailored to the NeXT character set. Sometime
3213# after the Apple acquisition the encoding was switched to MacRoman
3214# (initially with serious altcharset bugs due to incomplete conversion
3215# of the old NeXT code,) and then later to UTF-8. Also sometime during
3216# or just prior to the early days of Mac OS X, the Terminal grew ANSI
3217# 8-color support (initially buggy when combined with attributes, but
3218# that was later fixed.) More recently, around Mac OS X version 10.3
3219# or so (Terminal.app v100+) xterm-like 16-color support was added. In
3220# some versions (for instance 133-1 which shipped with Mac OS X
3221# version 10.4) this suffered from the <bce> bug, but that seems to
3222# have been fixed in Mac OS X version 10.5 (Terminal.app v240.2+).
3223#
3224# In the early days of Mac OS X the terminal was fairly buggy and
3225# would routinely crash under load. Many of these bugs seem to have
3226# been fixed around Mac OS X version 10.3 (Terminal.app v100+) but
3227# some may still remain. This change seems to correspond to
3228# Terminal.app reporting "xterm-color" as $TERM rather than "vt100" as
3229# it did previously.
3230#
3231# * This may correspond with what actually happened, but I don't
3232#   know. It is based on guesswork, hearsay, private correspondence,
3233#   my faulty memory, and the following online sources and references:
3234#
3235# [1] "Three Scotts and a Duane" by Simson L. Garfinkel
3236# https://web.archive.org/web/20121019083801/http://www.nextcomputers.org/NeXTfiles/Articles/NeXTWORLD/93.8/93.8.Dec.Community1.html
3237#
3238# [2] NeXTSTEP entry from Wikipedia, the free encyclopedia
3239# https://secure.wikimedia.org/wikipedia/en/wiki/Nextstep
3240#
3241# * Renamed the AppKit Terminal.app entry from "Apple_Terminal" to
3242#   "nsterm" to comply with the name length and case conventions and
3243#   limitations of various software packages [notably Solaris terminfo
3244#   and UNIX.] A single Apple_Terminal alias is retained for
3245#   backwards-compatibility.
3246#
3247# * Added function key support (F1-F4). These only work in Terminal.app
3248#   version 51, hopefully the capabilities won't cause problems for people
3249#   using version 41.
3250#
3251# * Added "full color" (-c) entries which support the 16-color mode in
3252#   version 51.
3253#
3254# * By default, version 51 uses UTF-8 encoding with broken altcharset
3255#   support, so "ASCII" (-7) entries without altcharset support were
3256#   added.
3257
3258# nsterm - AppKit Terminal.app
3259#
3260# Apple's Mac OS X includes a Terminal.app derived from the old NeXT
3261# Terminal.app. It is a partial VT100 emulation with some xterm-like
3262# extensions. This terminfo was written to describe versions 41
3263# (shipped with Mac OS X version 10.0) and 51 (shipped with Mac OS X
3264# version 10.1) of Terminal.app.
3265#
3266# Terminal.app runs under the Mac OS X Quartz windowing system (and
3267# other AppKit-supported windowing systems.)  On the Mac OS X machine I
3268# use, the executable for Terminal.app is:
3269# /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
3270#
3271# If you're looking for a description of the full-screen system
3272# console which runs under Apple's Darwin operating system on PowerPC
3273# platforms, see the "xnuppc" entry instead.
3274#
3275# There were no function keys in version 41. In version 51, there are
3276# four working function keys (F1, F2, F3 and F4.) The function keys
3277# are included in all of these entries.
3278#
3279# It does not support mouse pointer position reporting. Under some
3280# circumstances the cursor can be positioned using option-click; this
3281# works by comparing the cursor position and the selected position,
3282# and simulating enough cursor-key presses to move the cursor to the
3283# selected position. This technique fails in all but the simplest
3284# applications.
3285#
3286# It provides partial ANSI color support (background colors interacted
3287# badly with bold in version 41, though, as reflected in :ncv:.) The
3288# monochrome (-m) entries are useful if you've disabled color support
3289# or use a monochrome monitor. The full color (-c) entries are useful
3290# in version 51, which doesn't exhibit the background color bug. They
3291# also enable an xterm-compatible 16-color mode.
3292#
3293# The configurable titlebar is set using xterm-compatible sequences;
3294# it is used as a status bar in the statusline (-s) entries. Its width
3295# depends on font sizes and window sizes, but 50 characters seems to
3296# be the default for an 80x24 window.
3297#
3298# The MacRoman character encoding is used for some of the alternate
3299# characters in the "MacRoman" entries; the "ASCII" (-7) entries
3300# disable alternate character set support entirely, and the "VT100"
3301# (-acs) entries rely instead on Terminal.app's own buggy VT100
3302# graphics emulation, which seems to think the character encoding is
3303# the old NeXT charset instead of MacRoman. The "ASCII" (-7) entries
3304# are useful in Terminal.app version 51, which supports UTF-8 and
3305# other ASCII-compatible character encodings but does not correctly
3306# implement VT100 graphics; once VT100 graphics are correctly
3307# implemented in Terminal.app, the "VT100" (-acs) entries should be
3308# usable in any ASCII-compatible character encoding [except perhaps
3309# in UTF-8, where some experts argue for disallowing alternate
3310# characters entirely.]
3311#
3312# Terminal.app reports "vt100" as the terminal type, but exports
3313# several environment variables which may aid detection in a shell
3314# profile (i.e. .profile or .login):
3315#
3316# TERM=vt100
3317# TERM_PROGRAM=Apple_Terminal
3318# TERM_PROGRAM_VERSION=41      # in Terminal.app version 41
3319# TERM_PROGRAM_VERSION=51      # in Terminal.app version 51
3320#
3321# For example, the following Bourne shell script would detect the
3322# correct terminal type:
3323#
3324# if [ :"$TERM" = :"vt100" -a :"$TERM_PROGRAM" = :"Apple_Terminal" ]
3325# then
3326#     export TERM
3327#     if [ :"$TERM_PROGRAM_VERSION" = :41 ]
3328#     then
3329#         TERM="nsterm-old"
3330#     else
3331#         TERM="nsterm-c-7"
3332#     fi
3333# fi
3334#
3335# In a C shell derivative, this would be accomplished by:
3336#
3337# if ( $?TERM && $?TERM_PROGRAM && $?TERM_PROGRAM_VERSION) then
3338#     if ( :"$TERM" == :"vt100" && :"$TERM_PROGRAM" == :"Apple_Terminal" ) then
3339#          if ( :"$TERM_PROGRAM_VERSION" == :41 ) then
3340#              setenv TERM "nsterm-old"
3341#          else
3342#              setenv TERM "nsterm-c-7"
3343#          endif
3344#     endif
3345# endif
3346
3347# The '+' entries are building blocks
3348nsterm+7|AppKit Terminal.app v41+ basic capabilities w/ASCII charset,
3349	am, bw, msgr, xenl, xon,
3350	cols#80, it#8, lines#24,
3351	bel=^G, cr=\r, cub1=^H, cud1=\n, dim=\E[2m, el1=\E[1K, ht=^I,
3352	hts=\EH, ind=\n, kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
3353	kcuu1=\EOA, kent=\EOM, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
3354	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3355	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3356	    %p5%t;2%;%?%p7%t;8%;m,
3357	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
3358	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
3359	use=ansi+local, use=ansi+sgrbold, use=vt100+enq,
3360	use=vt100+pfkeys,
3361
3362nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 alternate-charset,
3363	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3364	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3365	sgr0=\E[m\017, use=nsterm+7, use=vt100+4bsd,
3366
3367nsterm+mac|AppKit Terminal.app v41+ basic capabilities w/MacRoman alternate-charset,
3368	acsc=+\335\,\334-\366.\3770#`\327a:f\241g\261h#i
3369	     \360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{
3370	     \271|\255}\243~\245,
3371	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3372	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3373	sgr0=\E[m\017, use=nsterm+7, use=vt100+4bsd,
3374
3375# compare with xterm+sl-twm
3376nsterm+s|AppKit Terminal.app v41+ status-line (window titlebar) support,
3377	wsl#50, use=xterm+sl-twm,
3378
3379nsterm+c|AppKit Terminal.app v51+ full color support (including 16 colors),
3380	op=\E[0m, use=ibm+16color,
3381
3382nsterm+c41|AppKit Terminal.app v41 color support,
3383	ncv#37,
3384	op=\E[0m, use=klone+color,
3385
3386# These are different combinations of the building blocks
3387
3388# ASCII charset (-7)
3389nsterm-m-7|nsterm-7-m|AppKit Terminal.app v41+ w/ASCII charset (monochrome),
3390	use=nsterm+7,
3391
3392nsterm-m-s-7|nsterm-7-m-s|AppKit Terminal.app v41+ w/ASCII charset (monochrome w/statusline),
3393	use=nsterm+s, use=nsterm+7,
3394
3395nsterm-7|AppKit Terminal.app v41+ w/ASCII charset (color),
3396	use=nsterm+c41, use=nsterm+7,
3397
3398nsterm-7-c|nsterm-c-7|AppKit Terminal.app v51+ w/ASCII charset (full color),
3399	use=nsterm+c, use=nsterm+7,
3400
3401nsterm-s-7|nsterm-7-s|AppKit Terminal.app v41+ w/ASCII charset (color w/statusline),
3402	use=nsterm+s, use=nsterm+c41, use=nsterm+7,
3403
3404nsterm-c-s-7|nsterm-7-c-s|AppKit Terminal.app v51+ w/ASCII charset (full color w/statusline),
3405	use=nsterm+s, use=nsterm+c, use=nsterm+7,
3406
3407# VT100 alternate-charset (-acs)
3408nsterm-m-acs|nsterm-acs-m|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome),
3409	use=nsterm+acs,
3410
3411nsterm-m-s-acs|nsterm-acs-m-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome w/statusline),
3412	use=nsterm+s, use=nsterm+acs,
3413
3414nsterm-acs|AppKit Terminal.app v41+ w/VT100 alternate-charset (color),
3415	use=nsterm+c41, use=nsterm+acs,
3416
3417nsterm-c-acs|nsterm-acs-c|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color),
3418	use=nsterm+c, use=nsterm+acs,
3419
3420nsterm-s-acs|nsterm-acs-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (color w/statusline),
3421	use=nsterm+s, use=nsterm+c41, use=nsterm+acs,
3422
3423nsterm-c-s-acs|nsterm-acs-c-s|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color w/statusline),
3424	use=nsterm+s, use=nsterm+c, use=nsterm+acs,
3425
3426# MacRoman charset
3427nsterm-m|AppKit Terminal.app v41+ w/MacRoman charset (monochrome),
3428	use=nsterm+mac,
3429
3430nsterm-m-s|AppKit Terminal.app v41+ w/MacRoman charset (monochrome w/statusline),
3431	use=nsterm+s, use=nsterm+mac,
3432
3433nsterm-old|AppKit Terminal.app v41+ w/MacRoman charset (color),
3434	use=nsterm+c41, use=nsterm+mac,
3435
3436nsterm-c|AppKit Terminal.app v51+ w/MacRoman charset (full color),
3437	use=nsterm+c, use=nsterm+mac,
3438
3439nsterm-s|AppKit Terminal.app v41+ w/MacRoman charset (color w/statusline),
3440	use=nsterm+s, use=nsterm+c41, use=nsterm+mac,
3441
3442nsterm-c-s|AppKit Terminal.app v51+ w/MacRoman charset (full color w/statusline),
3443	use=nsterm+s, use=nsterm+c, use=nsterm+mac,
3444
3445# In Mac OS X version 10.5 the format of the preferences has changed
3446# and a new, more complex technique is needed, e.g.,
3447#
3448#       python -c 'import sys,objc;NSUserDefaults=objc.lookUpClass(
3449#       "NSUserDefaults");ud=NSUserDefaults.alloc();
3450#       ud.init();prefs=ud.persistentDomainForName_(
3451#       "com.apple.Terminal");prefs["Window Settings"][
3452#       prefs["Default Window Settings"]]["TerminalType"
3453#       ]=sys.argv[1];ud.setPersistentDomain_forName_(prefs,
3454#       "com.apple.Terminal")' nsterm-16color
3455#
3456# and it is still not settable from the preferences dialog. This is
3457# tracked under rdar://problem/7365108 and rdar://problem/7365134
3458# in Apple's bug reporter.
3459#
3460# In OS X 10.5 (Leopard) the TERM which can be set in the preferences dialog
3461# defaults to xterm-color.  Alternative selections are ansi, dtterm, rxvt,
3462# vt52, vt100, vt102 and xterm.
3463nsterm-16color|AppKit Terminal.app v240.2+ with Mac OS X version 10.5,
3464	bw@, mir, npc,
3465	flash=\E[?5h$<200/>\E[?5l, kdch1=\E[3~, kend=\E[F,
3466	kf18=\E[22~, kf5=\E[15~, khome=\E[H, knp=\E[6~, kpp=\E[5~,
3467	kLFT5=\E[5D, kRIT5=\E[5C, use=ansi+idc, use=ansi+rca2,
3468	use=vt220+cvis, use=vt220+sfkeys, use=vt220+ufkeys,
3469	use=xterm+alt47, use=nsterm-c-s-acs,
3470
3471# The versions of Terminal.app in Mac OS X version 10.3.x seem to have
3472# the background color erase feature. The newer version 240.2 in Mac OS X
3473# version 10.5 does not.
3474#
3475# This entry is based on newsgroup comments by Alain Bench, Christian Ebert,
3476# and D P Schreber comparing to nsterm-c-s-acs.
3477#
3478# In Mac OS X version 10.4 and earlier, D P Schreber notes that $TERM
3479# can be set in Terminal.app, e.g.,
3480#
3481#	defaults write com.apple.Terminal TermCapString nsterm-bce
3482#
3483# and that it is not set in Terminal's preferences dialog.
3484#
3485# Modified for OS X 10.8, omitting bw based on testing with tack -TD
3486#
3487# Notes:
3488# * The terminal description matches the default settings.
3489# * The keyboard is configurable via a dialog.
3490# * By default khome, kend, knext and kprev are honored only with a
3491#   shift-modifier.
3492# * There are bindings for control left/right arrow (but not up/down).
3493#   Added those to nsterm-16color, which is the version used for OS X 10.6
3494# * "Allow VT100 application keypage mode" is by default disabled.
3495#   There is no way to press keypad-comma unless application mode is enabled
3496#   and used.
3497# * 132-column mode stopped working during vttest's tests.  Consider it broken.
3498# * CHT, REP, SU, SD are buggy.
3499# * ECH works (also in Leopard), but is not used here for compatibility.
3500# * The terminal preferences dialog replaces xterm-color by xterm-16color and
3501#   xterm-256color.  However, it adds "nsterm", so it is possible to use the
3502#   nsterm entry from this file to override the MacPorts (20110404) or
3503#   system (20081102) copy of this file.
3504# + In OS X 10.8 (Mountain Lion) the TERM which can be set in the preferences
3505#   dialog defaults to xterm-256color.  Alternative selections are ansi,
3506#   dtterm, rxvt, vt52, vt100, vt102, xterm and xterm-16color.  However,
3507#   the menu says "Declare terminal as" without promising to actually emulate
3508#   the corresponding terminals.  Indeed, changing TERM does not affect the
3509#   emulation itself.  This means that
3510#   + the function-keys do not match for dtterm for kf1-kf4 as well as
3511#     khome/kend
3512#   + the color model is the same for each setting of TERM (does not match
3513#     ansi or dtterm).
3514#   + the shift/control/meta key modifiers from rxvt and xterm variants are not
3515#     recognised except for a few special cases, i.e., kRIT5 and kLFT5.
3516#   + the VT52 emulation does not give a usable shell because screen-clearing
3517#     does not work as expected.
3518#   + selecting "xterm" or "xterm-16color" sets TERM to "xterm-256color".
3519# + OSX 10.9 (Yosemite) added more extended keys in the default configuration
3520#   as well as unmasking F10 (which had been used in the window manager). Those
3521#   keys are listed in this entry.
3522nsterm-bce|AppKit Terminal.app v71+/v100.1.8+ with Mac OS X version 10.3/10.4 (bce),
3523	bce, use=nsterm-16color,
3524
3525# This is tested with OS X 10.8 (Mountain Lion), 2012/08/11
3526#	TERM_PROGRAM_VERSION=309
3527# Earlier reports state that these differences also apply to OS X 10.7 (Lion),
3528#	TERM_PROGRAM_VERSION=303
3529nsterm-build309|Terminal.app in OS X 10.8,
3530	use=bracketed+paste, use=xterm+256setaf,
3531	use=nsterm-bce,
3532
3533# removed bogus kDC7 -TD
3534nsterm-build326|Terminal.app in OS X 10.9,
3535	kDC=\E[3;2~, kLFT=\E[1;2D, kRIT=\E[1;2C, kcbt=\E[Z,
3536	kf18=\E[32~, kDC5=\E[3;5~, kLFT3=\Eb, kLFT5=\E[1;5D,
3537	kRIT3=\Ef, kRIT5=\E[1;5C, use=nsterm-build309,
3538
3539# actually "343.7"
3540nsterm-build343|Terminal.app in OS X 10.10,
3541	kend=\EOF, khome=\EOH, use=nsterm-build326,
3542
3543# reviewed Terminal.app in El Capitan (version 2.6 build 361) -TD
3544# Using vttest:
3545# + no VT52 mode for cursor keys, though VT52 screen works in vttest
3546# + f1-f4 map to pf1-pf4
3547# + no VT220 support aside from DECTCEM and ECH
3548# + there are no protected areas.  Forget about anything above VT220.
3549# + in ECMA-48 cursor movement, VPR and HPR fail.  Others work.
3550# + vttest color 11.6.4 and 11.6.5 (bce for ED/EL and ECH/indexing) are bce
3551# + but bce fails for 11.6.7.2 (test repeat).
3552# + SD (11.6.7.3) also fails, but SL/SR/SU work.
3553# + 11.6.6 (test insert/delete char/line with bce) has several failures.
3554# + normal (not X10 or Highlight tracking) mouse now works.
3555# + mouse any-event works
3556# + mouse button-event works
3557# + in alternate screen:
3558#   mode 47/48 work
3559#   mode 1047 fails to restore cursor position (do not use)
3560#   mode 1049 fails to restore screen contents (do not use)
3561# + dtterm window-modify operations work (some messages are not printed)
3562# + dtterm window-report gives size of window in characters/pixels as
3563#   well as state of window.
3564# Using tack:
3565# + there is no difference between cnorm/cvvis
3566# + has dim/invis/blink (no protect of course)
3567# + most function keys with shift/control modifiers give beep
3568#   (user can configure, but out-of-the-box is what I record)
3569# + shift-F5 is \E[25~ through shift-F12 is \E[34~ (skips \E[30~ between
3570#   F8 and F9).
3571# + kLFT5/kRIT5 work, but not up/down with control-modifier
3572# + kLFT/kRIT work, but not up/down with shift-modifier
3573# + there are a few predefined bindings with Alt, but no clear pattern.
3574# + uses alt-key as UTF-8 "meta" something like xterm altSendsEscape
3575# Using ncurses test-program with xterm-new:
3576# + no italics
3577# Using xterm's scripts:
3578# + palette for 256-colors is hardcoded.
3579# + no support for "dynamic colors"
3580# + no support for tcap-query.
3581nsterm-build361|Terminal.app in OS X 10.11,
3582	XT,
3583	kmous=\E[M, use=nsterm-build343,
3584
3585# reviewed Terminal.app in High Sierra (version 2.8 build 400) -TD
3586# Comparing with build361, little has changed, except that italics work.
3587# Direct-color is not supported, by the way.
3588#
3589# Improved rmso/rmul -TD
3590nsterm-build400|Terminal.app in OS X 10.13,
3591	use=ecma+underline, use=ecma+standout,
3592	use=xterm+sm+1006, use=ecma+italics,
3593	use=nsterm-build361,
3594
3595nsterm-build440|Terminal.app in MacOS 11.6.8,
3596	use=xterm+alt1049, use=nsterm-build400,
3597
3598# This is an alias which should always point to the "current" version
3599nsterm|nsterm-256color|Apple_Terminal|AppKit Terminal.app,
3600	use=nsterm-build440,
3601
3602#### iTerm, iTerm2
3603
3604# iTerm 0.10
3605#
3606# iTerm.app from http://iterm.sourceforge.net/ is an alternative (and more
3607# featureful) terminal emulator for Mac OS X.  It is similar enough in
3608# capabilities to nsterm-16color that I have derived this description from that
3609# one, but as far as I know they share no code.  Many of the features are
3610# user-configurable, but I attempt only to describe the default configuration
3611# (B. Sittler).
3612#
3613# According to its documentation, iTerm uses terminfo to obtain function key
3614# definitions.  For example, if it is started with TERM=xterm, it uses key
3615# definitions from that terminal description from the local OSX machine.  Those
3616# $TERM settings may be augmented using the bookmark and profile dialogs.
3617# However, the behavior seen with tack does not agree with either the terminfo
3618# description or the function keys in its "xterm" profile.
3619#
3620# NOTES:
3621# with vttest:
3622#	reports primary DA as VT100 with AVO: \E[?1;2c
3623#	reports secondary DA as "\E[>0;95;c"
3624#	supports blink and underline
3625#	displays bold text as red
3626#	recognizes all dtterm controls for modifying/querying window
3627#	resizing via escape sequence is very slow
3628#	supports X11R5 mouse (no X10) and XFree86 mouse (button- and event-tracking)
3629#	supports X11R5 alternate screen and XFree86 1049 (no 1047/1048)
3630#	supports CHA, VPA, VPR, but no other ECMA-48 cursor movement such as HPA
3631# with tack:
3632#	.
3633# with ncurses test-program:
3634#	ncurses 'k' has problem in second screen; light background does not fill
3635# with xterm scripts
3636#	can display/alter xterm-256color cube
3637#	can display/alter xterm-88color cube
3638iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X,
3639	bce, mir, npc, xenl, xon,
3640	wsl#50,
3641	blink=\E[5m, bold=\E[1m, cub1=^H, cud1=\n,
3642	cup=\E[%i%p1%d;%p2%dH, el1=\E[1K,
3643	flash=\E[?5h$<200/>\E[?5l, kLFT=\E[1;2D, kRIT=\E[1;2C,
3644	kbs=^?, kcbt=\E[Z, kdch1=\E[3~, kend=\EOF, knp=\E[6~,
3645	kpp=\E[5~, op=\E[0m, rev=\E[7m, ri=\EM, rmam=\E[?7l,
3646	rmkx=\E[?1l\E>,
3647	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
3648	    %p9%t\016%e\017%;,
3649	sgr0=\E[m\017, smam=\E[?7h, smkx=\E[?1h\E=,
3650	kEND5=\E[1;5F, kHOM5=\E[1;5H, use=ansi+apparrows,
3651	use=ansi+csr, use=ansi+enq, use=ansi+erase, use=ansi+idc,
3652	use=ansi+idl, use=ansi+local, use=ansi+rca2,
3653	use=ansi+sgrso, use=ansi+sgrul, use=vt100+4bsd,
3654	use=vt100+keypad, use=vt100+pfkeys, use=xterm+r5+fkeys,
3655	use=xterm+alt47, use=xterm+sl-twm, use=xterm+x11mouse,
3656	use=xterm+256setaf, use=vt220+cvis,
3657
3658# iTerm2
3659#
3660# https://iterm2.com/
3661# https://github.com/gnachman/iTerm2
3662# ~/Library/Preferences/com.googlecode.iterm2.plist
3663# "iTerm" stalled in 2009.  A different set of developers began "iTerm2".
3664#
3665# iTerm2 3.5.0
3666#
3667# NOTES:
3668# with esctest:
3669#	365 tests passed, 196 known bugs, 2 tests fail intermittently
3670#	the known bugs include several of the cursor-movement tests
3671#	the ED, EL tests include those failing intermittently
3672#	DECCOLM, DECERA, DECSED, DECSERA and SPA do not work
3673#	most of the DECRPM, DECRQSS reports fail
3674# with vttest:
3675#	reports primary DA as VT420
3676#	VT420 rectangular operations, as well as DECBI/DEVFI work with margins
3677#	SRM does not work
3678#	DECSED, and SPA do not work
3679#	REP and SD work, SL/SR/SU do not work
3680# with tack:
3681#	status-line does not work
3682#
3683# The default settings have blinking-text and keypad-application mode disabled.
3684# Enabling the latter make it half-working (numlock sends an escape character).
3685# About half of the modified function-keys are untestable due to preassigned
3686# features.
3687#
3688# iTerm2 3.5.0 comes with a 4-year-old copy of xterm's terminfo (June 2020),
3689# which is modified, using the ncurses TERMINFO_DIRS variable to substitute
3690# this locally:
3691# + xterm-nrc and xterm+pcfN are removed
3692# + the developer made changes to adapt it to the 16-year-old version of
3693#   ncurses bundled with MacOS, i.e., changing the mouse protocol to the
3694#   legacy X11 format and reducing the number of colors to 32k (in more than
3695#   one place).  In the former case, the developer was confused about why that
3696#   was necessary.  In the latter, the developer clearly misunderstood how the
3697#   tools work.
3698# + vt420+lrmm is modified, removing smglr and corrupting mgc (again, developer
3699#   confusion).
3700# + the developer added a couple of features, misnaming them as "xterm" blocks:
3701#   + a copy of kitty+setal renamed to xterm+setulc (and Setulc) is added, but
3702#     the feature is first mentioned in iTerm2 changes in May 2020, while
3703#     it is first mention in kitty changes in December 2016.
3704#   + Smulx is added
3705#
3706# iTerm2 3.4.0
3707#
3708# NOTES:
3709# with esctest:
3710#	293 tests pass, 270 tests fail
3711# with tack:
3712#	minor improvements which do not alter the terminfo
3713#
3714# iTerm2 3.0.15
3715#
3716# NOTES:
3717# with vttest:
3718#	reports primary DA as VT100 with AVO: \E[?1;2c
3719#	reports secondary DA as "\E[>0;95;0c"
3720#	numeric keypad application mode does not work
3721#	by default, dtterm window-modifications are ignored
3722#	by default, dtterm window-reports return, but icon as "L", window as "l"
3723#	supports SD/SU, no REP, SL, SR
3724#	supports CBT, CHA, VPA, CNL, CPL, VPR (no HPA, CHT, HPR)
3725#	no improvement to XFree86 1047/1048 modes
3726# with tack:
3727#	in meta-mode, imitates xterm, sending UTF-8
3728#	special-key modifiers based on xterm use incompatible default for alt/meta
3729# with ncurses test-program:
3730#	no italics
3731#	no improvement to ncurses 'k'
3732# with xterm scripts:
3733#	acolors.sh works
3734#
3735# Italic text did not work initially, apparently because upgrading did not
3736# add/change that preference (set in Preferences, Profiles, Text).  A new
3737# install of iTerm 3.0.15 provides italics by default (blinking text is an
3738# option in the preferences dialog).
3739#
3740# 2018/01/21: found xterm+sm+1006 did not work with version 3.1.5
3741# 2018/05/19: xterm+sm+1006 seems to work with 3.1.6beta -TD
3742iTerm2.app|iterm2|terminal emulator for Mac OS X,
3743	cbt=\E[Z, dim=\E[2m, kEND=\E[1;2F, kHOM=\E[1;2H, ka1@, ka3@,
3744	kb2@, kc1@, kc3@, kent@, kf13=\E[1;2P, kf14=\E[1;2Q,
3745	kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
3746	kf19=\E[18;2~, kf20=\E[19;2~, kf21=\E[20;2~,
3747	kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
3748	kind=\E[1;2B, kri=\E[1;2A, nel=\EE, op=\E[39;49m,
3749	rs2=\E[!p\E[?3;4l\E[4l\E>\E[?1000l,
3750	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3751	    %p5%t;2%;m%?%p9%t\016%e\017%;,
3752	Smulx=\E[4:%p1%dm, kDN3=\E\E[B, kDN4=\E[1;10B,
3753	kDN5=\E[1;5B, kDN6=\E[1;6B, kEND3=\E[1;9F,
3754	kEND4=\E[1;10F, kEND6=\E[1;6F, kEND7=\E[1;13F,
3755	kEND8=\E[1;14F, kHOM3=\E[1;9H, kHOM4=\E[1;10H,
3756	kHOM6=\E[1;6H, kHOM7=\E[1;13H, kHOM8=\E[1;14H,
3757	kLFT3=\E\E[D, kLFT4=\E[1;10D, kLFT5=\E[1;5D,
3758	kLFT6=\E[1;6D, kNXT3=\E\E[6~, kPRV3=\E\E[5~,
3759	kRIT3=\E\E[C, kRIT4=\E[1;10C, kRIT5=\E[1;5C,
3760	kRIT6=\E[1;6C, kUP3=\E\E[A, kUP4=\E[1;10A, kUP5=\E[1;5A,
3761	kUP6=\E[1;6A, rv=\E\\[>64;[1-6][0-9];0c, smxx=\E[9m,
3762	xr=\EP>\\|iTerm2 ([1-9][.0-9])\E\\\\,
3763	use=ecma+underline, use=ecma+standout, use=ecma+index,
3764	use=report+version, use=report+da2,
3765	use=xterm+alt+title, use=ecma+italics, use=iterm,
3766	use=bracketed+paste, use=kitty+setal,
3767
3768# xnuppc - Darwin PowerPC Console (a.k.a. "darwin")
3769#
3770# On PowerPC platforms, Apple's Darwin operating system uses a
3771# full-screen system console derived from a NetBSD framebuffer
3772# console. It is an ANSI-style terminal, and is not really VT-100
3773# compatible.
3774#
3775# Under Mac OS X, this is the system console driver used while in
3776# single-user mode [reachable by holding down Command-S during the
3777# boot process] and when logged in using console mode [reachable by
3778# typing ">console" at the graphical login prompt.]
3779#
3780# If you're looking for a description of the Terminal.app terminal
3781# emulator which runs under the Mac OS X Quartz windowing system (and
3782# other AppKit-supported windowing systems,) see the "nsterm"
3783# entry instead.
3784#
3785# NOTE: Under Mac OS X version 10.1, the default login window does not
3786# prompt for user name, instead requiring an icon to be selected from
3787# a list of known users. Since the special ">console" login is not in
3788# this list, you must make one of two changes in the Login Window
3789# panel of the Login section of System Prefs to make the special
3790# ">console" login accessible. The first option is to enable 'Show
3791# "Other User" in list for network users', which will add a special
3792# "Other..." icon to the graphical login panel. Selecting "Other..."
3793# will present the regular graphical login prompt. The second option
3794# is to change the 'Display Login Window as:' setting to 'Name and
3795# password entry fields', which replaces the login panel with a
3796# graphical login prompt.
3797#
3798# There are no function keys, at least not in Darwin 1.3.
3799#
3800# It has no mouse support.
3801#
3802# It has full ANSI color support, and color combines correctly with
3803# all three supported attributes: bold, inverse-video and underline.
3804# However, bold colored text is almost unreadable (bolding is
3805# accomplished using shifting and or-ing, and looks smeared) so bold
3806# has been excluded from the list of color-compatible attributes
3807# [using (ncv)]. The monochrome entry (-m) is useful if you use a
3808# monochrome monitor.
3809#
3810# There is one serious bug with this terminal emulation's color
3811# support: repositioning the cursor onto a cell with non-matching
3812# colors obliterates that cell's contents, replacing it with a blank
3813# and displaying a colored cursor in the "current" colors. There is
3814# no complete workaround at present [other than using the monochrome
3815# (-m) entries,] but removing the (msgr) capability seemed to help.
3816#
3817# The "standout" chosen was simple reverse-video, although a colorful
3818# standout might be more aesthetically pleasing. Similarly, the bold
3819# chosen is the terminal's own smeared bold, although a simple
3820# color-change might be more readable. The color-bold (-b) entries
3821# uses magenta colored text for bolding instead. The fancy color (-f
3822# and -f2) entries use color for bold, standout and underlined text
3823# (underlined text is still underlined, though.)
3824#
3825# Apparently the terminal emulator does support a VT-100-style
3826# alternate character set, but all the alternate character set
3827# positions have been left blank in the font. For this reason, no
3828# alternate character set capabilities have been included in this
3829# description. The console driver appears to be ASCII-only, so (enacs)
3830# has been excluded [although the VT-100 sequence does work.]
3831#
3832# The default Mac OS X and Darwin installation reports "vt100" as the
3833# terminal type, and exports no helpful environment variables. To fix
3834# this, change the "console" entry in /etc/ttys from "vt100" to
3835# "xnuppc-WxH", where W and H are the character dimensions of your
3836# console (see below.)
3837#
3838# The font used by the terminal emulator is apparently one originally
3839# drawn by Ka-Ping Yee, and uses 8x16-pixel characters. This
3840# file includes descriptions for the following geometries:
3841#
3842#     Pixels        Characters   Entry Name (append -m for monochrome)
3843#    -------------------------------------------------------------------
3844#     640x400       80x25        xnuppc-80x25
3845#     640x480       80x30        xnuppc-80x30
3846#     720x480       90x30        xnuppc-90x30
3847#     800x600       100x37       xnuppc-100x37
3848#     896x600       112x37       xnuppc-112x37
3849#     1024x640      128x40       xnuppc-128x40
3850#     1024x768      128x48       xnuppc-128x48
3851#     1152x768      144x48       xnuppc-144x48
3852#     1280x1024     160x64       xnuppc-160x64
3853#     1600x1024     200x64       xnuppc-200x64
3854#     1600x1200     200x75       xnuppc-200x75
3855#     2048x1536     256x96       xnuppc-256x96
3856#
3857# The basic "xnuppc" entry includes no size information, and the
3858# emulator includes no reporting capability, so you'll be at the mercy
3859# of the TTY device (which reports incorrectly on my hardware.) The
3860# color-bold entries do not include size information.
3861
3862# The '+' entries are building blocks
3863xnuppc+basic|Darwin PowerPC console basic capabilities,
3864	am, bce, mir, xenl, NQ,
3865	it#8,
3866	bold=\E[1m, cr=\r, dsl=\E]2;\007, el1=\E[1K, ht=^I, hts=\EH,
3867	ind=\n, kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
3868	kcuu1=\EOA, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
3869	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3870	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3871	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
3872	use=ansi+csr, use=ansi+cup, use=ansi+erase,
3873	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
3874	use=vt100+keypad,
3875
3876xnuppc+c|Darwin PowerPC console ANSI color support,
3877	ncv#32, use=klone+color,
3878
3879xnuppc+b|Darwin PowerPC console color-bold support,
3880	ncv#32,
3881	bold=\E[35m,
3882	sgr=\E[0%?%p6%t;35%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3883	use=xnuppc+basic,
3884
3885xnuppc+f|Darwin PowerPC console fancy color support,
3886	ncv#35,
3887	sgr=\E[0%?%p6%t;35%;%?%p2%t;36;4%;%?%p1%t;33;44%;%?%p3%t;7%;
3888	    m,
3889	smso=\E[33;44m, smul=\E[36;4m, use=xnuppc+b,
3890
3891xnuppc+f2|Darwin PowerPC console alternate fancy color support,
3892	ncv#35,
3893	bold=\E[33m,
3894	sgr=\E[0%?%p6%t;33%;%?%p2%t;34%;%?%p1%t;31;47%;%?%p3%t;7%;m,
3895	smso=\E[31;47m, smul=\E[34m, use=xnuppc+basic,
3896
3897# Building blocks for specific screen sizes
3898xnuppc+80x25|Darwin PowerPC console 80x25 support (640x400 pixels),
3899	cols#80, lines#25,
3900
3901xnuppc+80x30|Darwin PowerPC console 80x30 support (640x480 pixels),
3902	cols#80, lines#30,
3903
3904xnuppc+90x30|Darwin PowerPC console 90x30 support (720x480 pixels),
3905	cols#90, lines#30,
3906
3907xnuppc+100x37|Darwin PowerPC console 100x37 support (800x600 pixels),
3908	cols#100, lines#37,
3909
3910xnuppc+112x37|Darwin PowerPC console 112x37 support (896x600 pixels),
3911	cols#112, lines#37,
3912
3913xnuppc+128x40|Darwin PowerPC console 128x40 support (1024x640 pixels),
3914	cols#128, lines#40,
3915
3916xnuppc+128x48|Darwin PowerPC console 128x48 support (1024x768 pixels),
3917	cols#128, lines#48,
3918
3919xnuppc+144x48|Darwin PowerPC console 144x48 support (1152x768 pixels),
3920	cols#144, lines#48,
3921
3922xnuppc+160x64|Darwin PowerPC console 160x64 support (1280x1024 pixels),
3923	cols#160, lines#64,
3924
3925xnuppc+200x64|Darwin PowerPC console 200x64 support (1600x1024 pixels),
3926	cols#200, lines#64,
3927
3928xnuppc+200x75|Darwin PowerPC console 200x75 support (1600x1200 pixels),
3929	cols#200, lines#75,
3930
3931xnuppc+256x96|Darwin PowerPC console 256x96 support (2048x1536 pixels),
3932	cols#0x100, lines#96,
3933
3934# These are different combinations of the building blocks
3935
3936xnuppc-m|darwin-m|Darwin PowerPC console (monochrome),
3937	use=xnuppc+basic,
3938
3939xnuppc|darwin|Darwin PowerPC console (color),
3940	use=xnuppc+c, use=xnuppc+basic,
3941
3942xnuppc-m-b|darwin-m-b|Darwin PowerPC console (monochrome w/color-bold),
3943	use=xnuppc+b,
3944
3945xnuppc-b|darwin-b|Darwin PowerPC console (color w/color-bold),
3946	use=xnuppc+b, use=xnuppc+c,
3947
3948xnuppc-m-f|darwin-m-f|Darwin PowerPC console (fancy monochrome),
3949	use=xnuppc+f,
3950
3951xnuppc-f|darwin-f|Darwin PowerPC console (fancy color),
3952	use=xnuppc+f, use=xnuppc+c,
3953
3954xnuppc-m-f2|darwin-m-f2|Darwin PowerPC console (alternate fancy monochrome),
3955	use=xnuppc+f2,
3956
3957xnuppc-f2|darwin-f2|Darwin PowerPC console (alternate fancy color),
3958	use=xnuppc+f2, use=xnuppc+c,
3959
3960# Combinations for specific screen sizes
3961xnuppc-80x25-m|darwin-80x25-m|Darwin PowerPC console (monochrome) 80x25,
3962	use=xnuppc+80x25, use=xnuppc+basic,
3963
3964xnuppc-80x25|darwin-80x25|Darwin PowerPC console (color) 80x25,
3965	use=xnuppc+c, use=xnuppc+80x25, use=xnuppc+basic,
3966
3967xnuppc-80x30-m|darwin-80x30-m|Darwin PowerPC console (monochrome) 80x30,
3968	use=xnuppc+80x30, use=xnuppc+basic,
3969
3970xnuppc-80x30|darwin-80x30|Darwin PowerPC console (color) 80x30,
3971	use=xnuppc+c, use=xnuppc+80x30, use=xnuppc+basic,
3972
3973xnuppc-90x30-m|darwin-90x30-m|Darwin PowerPC console (monochrome) 90x30,
3974	use=xnuppc+90x30, use=xnuppc+basic,
3975
3976xnuppc-90x30|darwin-90x30|Darwin PowerPC console (color) 90x30,
3977	use=xnuppc+c, use=xnuppc+90x30, use=xnuppc+basic,
3978
3979xnuppc-100x37-m|darwin-100x37-m|Darwin PowerPC console (monochrome) 100x37,
3980	use=xnuppc+100x37, use=xnuppc+basic,
3981
3982xnuppc-100x37|darwin-100x37|Darwin PowerPC console (color) 100x37,
3983	use=xnuppc+c, use=xnuppc+100x37, use=xnuppc+basic,
3984
3985xnuppc-112x37-m|darwin-112x37-m|Darwin PowerPC console (monochrome) 112x37,
3986	use=xnuppc+112x37, use=xnuppc+basic,
3987
3988xnuppc-112x37|darwin-112x37|Darwin PowerPC console (color) 112x37,
3989	use=xnuppc+c, use=xnuppc+112x37, use=xnuppc+basic,
3990
3991xnuppc-128x40-m|darwin-128x40-m|Darwin PowerPC console (monochrome) 128x40,
3992	use=xnuppc+128x40, use=xnuppc+basic,
3993
3994xnuppc-128x40|darwin-128x40|Darwin PowerPC console (color) 128x40,
3995	use=xnuppc+c, use=xnuppc+128x40, use=xnuppc+basic,
3996
3997xnuppc-128x48-m|darwin-128x48-m|Darwin PowerPC console (monochrome) 128x48,
3998	use=xnuppc+128x48, use=xnuppc+basic,
3999
4000xnuppc-128x48|darwin-128x48|Darwin PowerPC console (color) 128x48,
4001	use=xnuppc+c, use=xnuppc+128x48, use=xnuppc+basic,
4002
4003xnuppc-144x48-m|darwin-144x48-m|Darwin PowerPC console (monochrome) 144x48,
4004	use=xnuppc+144x48, use=xnuppc+basic,
4005
4006xnuppc-144x48|darwin-144x48|Darwin PowerPC console (color) 144x48,
4007	use=xnuppc+c, use=xnuppc+144x48, use=xnuppc+basic,
4008
4009xnuppc-160x64-m|darwin-160x64-m|Darwin PowerPC console (monochrome) 160x64,
4010	use=xnuppc+160x64, use=xnuppc+basic,
4011
4012xnuppc-160x64|darwin-160x64|Darwin PowerPC console (color) 160x64,
4013	use=xnuppc+c, use=xnuppc+160x64, use=xnuppc+basic,
4014
4015xnuppc-200x64-m|darwin-200x64-m|Darwin PowerPC console (monochrome) 200x64,
4016	use=xnuppc+200x64, use=xnuppc+basic,
4017
4018xnuppc-200x64|darwin-200x64|Darwin PowerPC console (color) 200x64,
4019	use=xnuppc+c, use=xnuppc+200x64, use=xnuppc+basic,
4020
4021xnuppc-200x75-m|darwin-200x75-m|Darwin PowerPC console (monochrome) 200x75,
4022	use=xnuppc+200x75, use=xnuppc+basic,
4023
4024xnuppc-200x75|darwin-200x75|Darwin PowerPC console (color) 200x75,
4025	use=xnuppc+c, use=xnuppc+200x75, use=xnuppc+basic,
4026
4027xnuppc-256x96-m|darwin-256x96-m|Darwin PowerPC console (monochrome) 256x96,
4028	use=xnuppc+256x96, use=xnuppc+basic,
4029
4030xnuppc-256x96|darwin-256x96|Darwin PowerPC console (color) 256x96,
4031	use=xnuppc+c, use=xnuppc+256x96, use=xnuppc+basic,
4032
4033######## DOS/WINDOWS
4034# CRT is shareware.  It implements some xterm features, including mouse.
4035crt|crt-vt220|CRT 2.3 emulating VT220,
4036	bce,
4037	ncv@, use=vt100+enq, use=vt220-base, use=ecma+color,
4038
4039# SecureCRT 8.7.3.2279
4040# 8.7.3 was released 2020/08/11
4041# (eval 2021/02/05)
4042# VanDyke Software, Inc.
4043#
4044# Advertised features:
4045#	Xterm 24-bit color
4046#	Xterm 256-color
4047#	Double-size characters
4048#	Xterm extensions for mouse support and changing title bar
4049#	Emulates VT100, VT102, VT220, VT320, Linux console, SCO ANSI,
4050#	TN3270, TVI910, TVI925, Wyse 50/60, and ANSI.
4051# Changes:
4052#	Added ANSI sc/rc and REP in 2019/12/17
4053#	Added TVI910/ TVI925 in 2019/11/20
4054#
4055# Default:
4056#	Emulate "Xterm", using "ANSI with 256color"
4057#	TERM=xterm-256color
4058#
4059# vttest:
4060#	DA1 \E[?62;1;2;6;7;8;9c (vt220 with DRCS and NRCS)
4061#	DA2 \E[>1;136;0c
4062#	double-sized characters do not work
4063#	Menu-1 fails (window resizes to 132-columns, but does not repaint)
4064#	NRCS fails (tried French, but none of the replacements worked)
4065#	VT100 line-drawing works, except the C/R, etc., are an hline.
4066#	VT52 works except for S8C1T bug.
4067#	RIS hangs the terminal.
4068#	Local SRM does not echo.
4069#	Some of the VT320/VT220 status reports work, not locator or DECXCPR
4070#	DECUDK works if I press shift.
4071#	Fails CHT, CNL, CPL
4072#	Does not honor bce with ECH
4073#	ERM/SPA does not work
4074#	REP has 11 +'s except for final 2 +'s, like PuTTY.
4075#	Fails SL/SR
4076#	DECRPM does not respond.
4077#	dtterm modify/report operations do not work
4078#	Alternate screen works.
4079#	Mouse:
4080#		highlight tracking does not work.
4081#		any event tracking does not work, but
4082#		button event tracking does work.
4083#		DEC locator does not work.
4084#		SGR coordinates does not work.
4085# ncurses:
4086#	reset6 does reset to 80-columns
4087#	ncurses RGB edit does not work.
4088#	direct colors don't work, probably needs semicolons.
4089# tack:
4090#	blink works, but not dim or invis
4091#	no italics or crossed-out
4092# scripts:
4093#	256color handles "-r" option (but test/ncurses menu d does not alter)
4094#	dynamic colors queries do not work, though it seems some can be set.
4095#	resize.pl gets no reply, resize.sh needs fix for no reply.
4096scrt|securecrt|SecureCRT emulating xterm-256color,
4097	bce@, km@, npc,
4098	bel@, cvvis@, kcbt=\E[Z, use=vt220+pcedit,
4099	use=xterm+256setaf, use=ecma+index, use=ansi+rep,
4100	use=xterm+keypad, use=xterm+pcfkeys, use=xterm-basic,
4101
4102# Absolute Telnet
4103# (eval 2021/02/20)
4104# 11.24 was released 2020/08/13
4105# Celestial Software
4106#
4107# Advertised features:
4108#	Emacs compatibility mode (Meta Keys can be enabled for left/right ALT)
4109#	Double-size characters
4110#	Xterm extensions for mouse support
4111#	Emulates VT52, VT100, VT220, VT320, ansi, xterm, qnx, scoansi,
4112#	ANSIBBS, WYSE60, TeleVideo 950.
4113#
4114# Default:
4115#	TERM=xterm
4116#
4117# vttest:
4118#	DA1: \E[?62;1;2;6;7;8;9;15;22c (VT200 with DRCS, UDK, NRCS)
4119#	DA2: \E[>1;10;0c
4120#	However:
4121#	+ NRCS tests do not work
4122#	+ DECUDK test fails
4123#	+ VT100 double-sized characters work
4124#	menu-1 autowrap does not work
4125#	supports blinking text
4126#	VT220 DECSCA last screen (ignoring ECH, etc), leaves fill on top/left
4127#	VT220 device status reports fail, except operating status
4128#	8-bit controls work
4129#	xterm alternate screen recognized, but cursor restored incorrectly
4130#	xterm mouse (normal, any event, button event) works
4131#	xterm highlight-mouse does not work properly, confused with any-event
4132#	does not recognize SGR-mouse mode
4133#	supports xterm window-modifiny/reporting controls
4134#	supports ECMA-48 cursor movement except HPR
4135#	supports REP and SD, but not ECMA-48 SL, SR, SU
4136# tack:
4137#	italics and crossed-out do not work
4138#	supports xterm-style modified function-keys, using X11R6 F1-F4.
4139#	does not support modified cursor-keys or editing-keys
4140#	uses VT220-style Home/End
4141#	if alt-keys are enabled,
4142#		meta-mode sends escape rather than shifting, in 7-bit mode
4143#		meta-mode does the expected shifting in 8-bit mode
4144# scripts:
4145#	supports 256-colors, including changing palette (ncurses menu d works)
4146#	supports UTF-8, but honors VT100 line-drawing
4147absolute|Absolute Telnet emulating xterm,
4148	kcbt=\E[Z, use=ecma+index, use=linux+kbs, use=ansi+rep,
4149	use=vt220+pcedit, use=xterm+keypad, use=xterm+app,
4150	use=xterm+pcf0, use=xterm+256color, use=xterm+x11mouse,
4151	use=xterm-basic,
4152
4153#### PuTTY
4154# http://www.chiark.greenend.org.uk/~sgtatham/putty/
4155#
4156# PuTTY 0.78 (September 2020, tested 12 August 2023)
4157# Testing with tack:
4158#	implements cross-out text (shortly after 0.74)
4159#	restore kLFT as kLFT5, etc. (mentioned in October 2021)
4160#	does not support direct-colors (mentioned in July 2021)
4161#
4162# PuTTY 0.74 (27 June 2020)
4163#	(unchanged)
4164#
4165# PuTTY 0.73 (September 2019)
4166# Testing with tack:
4167#	does not implement italics
4168#	does not implement cross-out text
4169#	its settings dialog allows some of the VT100 line-drawing tests to pass
4170#	(not the padding test, though)
4171# Testing with vttest:
4172#	xterm mouse modes are incomplete: X10, highlight, any-event, and focus in/out modes are not implemented.
4173#	does not implement protected areas
4174#	does not implement SL/SR
4175#
4176# PuTTY 0.71 (March 2019) provided a workable "rep" capability.  It also
4177# changed longstanding keypad assignments, so that these no longer apply:
4178#	kLFT=\E[D, kRIT=\E[C, kb2=\E[G,
4179#
4180# PuTTY recognized xterm's 1006 mouse mode in late 2015; subsequent release was
4181# in 2017 (0.70) -TD
4182#
4183# Comparing with 0.51, vttest is much better (only a few problems with the
4184# cursor position reports and wrapping).
4185#
4186# PuTTY 0.51 (14 December 2000)
4187#
4188# This emulates VT100 + VT52 (plus a few VT220 features:  ech, SRM, DECTCEM, as
4189# well as SCO and Atari, color palettes from Linux console).  Reading the code,
4190# it is intended to be VT102 plus selected features.  By default, it sets $TERM
4191# to xterm, which is incorrect, since several features are misimplemented:
4192#
4193#	Alt+key always sends ESC+key, so 'km' capability is removed.
4194#
4195#	Control responses, wrapping and tabs are buggy, failing a couple of
4196#	screens in vttest.
4197#
4198#	xterm mouse support is not implemented (unreleased version may).
4199#
4200# Several features such as backspace/delete are optional; this entry documents
4201# the default behavior.  None of the combinations of keyboard settings match
4202# those used for xterm -TD
4203#
4204# PuTTY recognizes xterm's 1049 mode for switching to/from alternate screen,
4205# but implements it incorrectly as mentioned here:
4206#	http://stackoverflow.com/questions/24613237/terminal-retains-bg-color-after-closing-vim-using-color-scheme-and-putty-256co/37869114#37869114
4207putty|PuTTY terminal emulator,
4208	am, bce, bw, ccc, mir, msgr, xenl, xon, XT,
4209	it#8, ncv#22, U8#1,
4210	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4211	bel=^G, cr=\r, cub1=^H, cud1=\ED, cuu1=\EM, dch=\E[%p1%dP,
4212	dch1=\E[P,
4213	dispc=%?%p1%{8}%=%t\E%%G\342\227\230\E%%@%e%p1%{10}%=%t\E%%G
4214	      \342\227\231\E%%@%e%p1%{12}%=%t\E%%G\342\231\0\E%%@%e
4215	      %p1%{13}%=%t\E%%G\342\231\252\E%%@%e%p1%{14}%=%t\E%%G
4216	      \342\231\253\E%%@%e%p1%{15}%=%t\E%%G\342\230\274\E%%@
4217	      %e%p1%{27}%=%t\E%%G\342\206\220\E%%@%e%p1%{155}%=%t\E
4218	      %%G\340\202\242\E%%@%e%p1%c%;,
4219	ech=\E[%p1%dX, el1=\E[1K, enacs=\E(B\E)0,
4220	flash=\E[?5h$<100/>\E[?5l, ind=\n,
4221	initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/
4222	      %02x%p4%{255}%*%{1000}%/%02x,
4223	is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>\E]R,
4224	kbs=^?, kcbt=\E[Z, khome=\E[1~, kind=\E[B, kri=\E[A, kspd=^Z,
4225	nel=\r\n, oc=\E]R, op=\E[39;49m, ri=\EM, rmacs=^O,
4226	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
4227	rs2=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l,
4228	s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
4229	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
4230	    %;m%?%p9%t\016%e\017%;,
4231	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
4232	smkx=\E[?1h\E=, E3=\E[3J, rv=\E\\[>0;136;0c,
4233	use=ecma+underline, use=ecma+standout,
4234	use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
4235	use=ansi+erase, use=ansi+idl, use=ansi+local,
4236	use=ansi+tabs, use=ansi+rep, use=bracketed+paste,
4237	use=ecma+index, use=ansi+rca2, use=ecma+strikeout,
4238	use=klone+color, use=klone+sgr, use=putty+cursor,
4239	use=putty+fnkeys, use=report+da2, use=vt220+pcedit,
4240	use=xterm+alt1049, use=vt102+enq, use=xterm+sm+1006,
4241	use=xterm+sl, use=vt100+fnkeys, use=putty+keypad,
4242	use=vt220+cvis,
4243
4244# older versions (e.g., before 0.71) of PuTTY used a shift-modifier to toggle
4245# between normal- and application-mode for the cursor-keys.  That was dropped,
4246# and a few years later (after 0.74) restored as the control-modifier.
4247putty+cursor|PuTTY modified cursor-keys,
4248	kDN5=\E[B, kLFT5=\E[D, kRIT5=\E[C, kUP5=\E[A,
4249putty+keypad|PuTTY numeric keypad,
4250	kp1=\EOq, kp2=\EOr, kp3=\EOs, kp4=\EOt, kp5=\EOu, kp6=\EOv,
4251	kp7=\EOw, kp8=\EOx, kp9=\EOy, kpADD=\EOl, kpDIV=\EOQ,
4252	kpDOT=\EOn, kpMUL=\EOR, kpNUM=\EOP, kpSUB=\EOS, kpZRO=\EOp,
4253
4254vt100-putty|Reset PuTTY to pure VT100,
4255	rs2=\E<\E["p\Ec\E[?3l\E]R\E[40"p\E[61"p\E[50;1;2"p,
4256	use=vt100,
4257putty-256color|PuTTY 0.58 with xterm 256-colors,
4258	use=xterm+256setaf, use=putty,
4259putty-noapp|putty with cursor keys in normal mode,
4260	kLFT=\EOD, kRIT=\EOC, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
4261	kcuu1=\E[A, kind=\EOB, kri=\EOA, rmkx=\E>, smkx=\E=,
4262	use=putty,
4263
4264# One of the keyboard selections is "VT100+".
4265# pterm (the X11 port) uses shifted F1-F10 as F11-F20
4266putty-vt100|VT100+ keyboard layout,
4267	use=putty+fnkeys+vt100, use=putty,
4268
4269putty-sco|putty with SCO function keys,
4270	use=putty+fnkeys+sco, use=putty,
4271
4272# PuTTY has more than one section in its Keyboard configuration:
4273# a) backspace/delete, which we ignore since that choice largely depends on
4274#    whether one matches Unix and BSD or Linux.
4275# b) home/end keys, also ignored because the "rxvt" setting sends keys which
4276#    are unrelated to rxvt's actual settings.
4277# c) function keys and keypad - this is the interesting part.  None of the
4278#    selections match any of their respective namesakes, but they are shown
4279#    here to help users who expect that the selections do what is implied.
4280#
4281# This is the default setting for PuTTY
4282putty+fnkeys|fn-keys for PuTTY,
4283	use=putty+fnkeys+esc,
4284
4285putty+fnkeys+esc|ESC[n~ fn-keys for PuTTY,
4286	use=vt220+sfkeys, use=xterm+r5+fkeys,
4287
4288putty+fnkeys+linux|Linux fn-keys for PuTTY,
4289	kf1=\E[[A, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
4290	use=putty+fnkeys+esc,
4291
4292putty+fnkeys+xterm|Xterm R6 fn-keys for PuTTY,
4293	use=vt100+pf1-pf4, use=putty+fnkeys+esc,
4294
4295putty+fnkeys+vt400|VT400 fn-keys for PuTTY,
4296	use=putty+fnkeys+esc,
4297
4298# Shifted F1 is F11.  F13-F20 inherit from the defaults, and the last distinct
4299# key is F20.
4300putty+fnkeys+vt100|VT100+ fn-keys for PuTTY,
4301	kf10=\EOY, kf11=\EOZ, kf12=\EO[, kf5=\EOT, kf6=\EOU,
4302	kf7=\EOV, kf8=\EOW, kf9=\EOX, use=vt100+pf1-pf4,
4303	use=putty+fnkeys+esc,
4304
4305# Unlike xterm-sco, this leaves kmous ambiguous with kf1.
4306#
4307# Use modifiers to obtain function keys past 12:
4308# F1-F12 - normal
4309# F13-F24 - shift
4310# F25-F36 - control/alt
4311# F37-F48 - control/shift
4312#
4313putty+fnkeys+sco|SCO fn-keys for PuTTY,
4314	kbeg=\E[E, kdch1=^?, kf1=\E[M, kf10=\E[V, kf11=\E[W,
4315	kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
4316	kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
4317	kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
4318	kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
4319	kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
4320	kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
4321	kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
4322	kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
4323	kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L,
4324	knp=\E[G, kpp=\E[I, use=vt100+noapp,
4325
4326#### mintty
4327# https://github.com/mintty/mintty
4328#
4329# Originally a fork (and reduction) of PuTTY, this has grown from 15ksloc in
4330# 2013 to 41ksloc in 2020.  That is still smaller than PuTTY (160ksloc), but
4331# larger than rxvt (31ksloc) and slightly smaller than rxvt-unicode (42ksloc).
4332#
4333# Version 3.0 responds to DA as a VT400, however it does not implement the
4334# application keypad.  The assignment of cursor-keys versus modifiers differs
4335# from xterm (alt-left and alt-right send modifier 7, i.e., alt+control).
4336#
4337# Thomas Wolff suggested these extensions:
4338#	blink2   turn on rapid blinking
4339#	blink0   turn off blinking
4340#	norm     turn off bold and half-bright mode
4341#	opaq     turn off blank mode
4342#	smul2    begin double underline mode
4343#	smol     begin overline mode
4344#	rmol     exit overline mode
4345#	Font0    use default font
4346#	Font1    use alternative font 1
4347#	...
4348#	Font10   use alternative font 10
4349#	setal    set (under)line color
4350#	ol       set default (under)line color
4351#	overs    overstrike (print characters over each other)
4352#
4353# but see vte-2018 (use Smol/Rmol rather than smol/rmol).
4354mintty|Cygwin Terminal,
4355	setal=\E[5%p1%dm, use=xterm+256color,
4356	use=mintty+common,
4357mintty-direct|Cygwin Terminal direct-color,
4358	use=kitty+setal, use=xterm+direct, use=mintty+common,
4359mintty+common|shared capabilities for mintty,
4360	km@, npc,
4361	kcbt=\E[Z, kent=\EOM, rmm@, rmpch=\E[10m,
4362	rs1=\Ec\E]104\007, rshm=\E[22m, rsubm=\E[75m,
4363	rsupm=\E[75m, smm@, smpch=\E[11m, sshm=\E[1:2m,
4364	ssubm=\E[74m, ssupm=\E[73m, Rmol=\E[55m, Smol=\E[53m,
4365	Smulx=\E[4:%p1%dm, blink2=\E[6m, norm=\E[22m,
4366	opaq=\E[28m, rv=\E\\[>77;[0-9];0c, smul2=\E[21m,
4367	xr=\EP>\\|mintty ([1-9][.0-9]+)\E\\\\, use=linux+kbs,
4368	use=ansi+rep, use=ecma+strikeout, use=ecma+index,
4369	use=mintty+keypad, use=vt420+lrmm, use=xterm+focus,
4370	use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm+tmux,
4371	use=ecma+italics, use=xterm-basic, use=bracketed+paste,
4372	use=report+version,
4373mintty+keypad|mintty special numeric keypad,
4374	kbeg=\EOE, kpADD=\EOk, kpDIV=\EOo, kpMUL=\EOj, kpSUB=\EOm,
4375
4376# 2019-06-09: These capabilities are commented-out for compatibility with
4377# existing releases 5.9-6.1, and may be considered for inclusion after the
4378# release of ncurses 6.2:
4379#	Font0=\E[10m,
4380#	Font1=\E[11m,
4381#	Font2=\E[12m,
4382#	Font3=\E[13m,
4383#	Font4=\E[14m,
4384#	Font5=\E[15m,
4385#	Font6=\E[16m,
4386#	Font7=\E[17m,
4387#	Font8=\E[18m,
4388#	Font9=\E[19m,
4389#	Font10=\E[20m,
4390#	blink0=\E[25m,
4391#	ol=\E[59m,
4392#	overs=\E[8\:7m,
4393
4394#### TeraTerm
4395
4396# This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
4397# T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
4398# (communication program) which supports:
4399#
4400#	- Serial port connections.
4401#	- TCP/IP (telnet) connections.
4402#	- VT100 emulation, and selected VT200/300 emulation.
4403#	- TEK4010 emulation.
4404#	- File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
4405#	  Quick-VAN).
4406#	- Scripts using the "Tera Term Language".
4407#	- Japanese and Russian character sets.
4408#
4409# The program does not come with terminfo or termcap entries.  However, the
4410# emulation (testing with vttest and ncurses) is reasonably close to VT100 (no
4411# VT52 or doublesize character support; blinking is done with color).  Besides
4412# the HPA, VPA extensions it also implements CPL and CNL.
4413#
4414# All of the function keys can be remapped.  This description shows the default
4415# mapping, as installed.  Both VT100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
4416# are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
4417# is laid out like VT220, rather than the face codes on the PC keyboard, i.e,
4418#	kfnd	Insert
4419#	kslt	Delete
4420#	kich1	Home
4421#	kdch1	PageUp
4422#	kpp	End
4423#	knp	PageDown
4424#
4425# ANSI colors are implemented, but cannot be combined with video attributes
4426# except for reverse.
4427#
4428# No fonts are supplied with the program, so the acsc string is chosen to
4429# correspond with the default Microsoft terminal font.
4430#
4431# Tera Term recognizes some xterm sequences, including those for setting and
4432# retrieving the window title, and for setting the window size (i.e., using
4433# "resize -s"), though it does not pass SIGWINCH to the application if the
4434# user resizes the window with the mouse.
4435teraterm2.3|Tera Term Pro 2.3,
4436	km, npc,
4437	ncv#43, vt@,
4438	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
4439	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
4440	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
4441	blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cuf1=\E[C,
4442	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
4443	dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
4444	flash=\E[?5h$<100/>\E[?5l, kf10=\E[21~, kf11=\E[23~,
4445	kf12=\E[24~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
4446	kf9=\E[20~, op=\E[100m, rev=\E[7m, ri=\EM, sgr0=\E[0m\017,
4447	smul=\E[4m, use=ecma+underline, use=ecma+standout,
4448	use=ansi+idl, use=ansi+rca2, use=vt100+enq,
4449	use=klone+color, use=vt220+cvis, use=vt220+vtedit,
4450	use=vt220+sfkeys, use=xterm+r5+lockeys, use=vt100,
4451
4452# Version 4.59 has regular VT100 line-drawing (so it is no longer necessary
4453# to choose a Windows OEM font).
4454#
4455# Testing with tack:
4456#	- it does not have xenl (suppress that)
4457#	- underline seems to work with color (modify ncv).
4458# Testing with vttest:
4459#	- wrapping differs from VT100 (menu 1).
4460#	- it recognizes xterm's X10 and normal mouse tracking, but none of the
4461#	  other flavors.
4462#	- it recognizes the dtterm window controls for reporting size in
4463#	  characters and pixels.
4464#	- it passes SIGWINCH.
4465teraterm4.59|Tera Term 4.59,
4466	bce, xenl@,
4467	ncv#41,
4468	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4469	kmous=\E[M, use=teraterm2.3,
4470
4471# Version 4.97
4472#
4473# Testing with tack:
4474#	- no bell (flash works)
4475#	- bold is yellow, blink is red.
4476#	- default keyboard sends ^? for Delete, can be configured for kdch1
4477#	- no meta mode
4478# Testing with vttest:
4479#	+ autowrap has problems...
4480#	+ color-tests for bce feature match xterm's behavior
4481#	+ handles most of xterm's mouse-controls other than highlight-tracking.
4482#	  xterm's SGR 1006 works.
4483#	+ partial support for DEC locator-events
4484#	+ implements ECMA-48 SD/SU, but not REP, SL/SR.
4485#	+ has a "Tek" window, but does not work with vttest's examples
4486#	+ supports the dtterm window modify/report controls
4487#	+ responds to DECRQM and DECRQSS controls, but not consistent with DSR
4488#	  e.g., for VT220
4489#	+ VT220 screen-display tests are ok
4490#	+ no VT52 support
4491# Other tests:
4492#	+ recognizes xterm's original direct-colors sequences, but result is
4493#	  poor.
4494#	+ no UTF-8 apparent when UTF-8 is set, with font Lucida Control
4495teraterm4.97|Tera Term 4.97,
4496	XT, use=ecma+color, use=xterm+sm+1006, use=teraterm4.59,
4497teraterm-256color|TeraTerm with xterm 256-colors,
4498	use=xterm+256setaf, use=teraterm,
4499teraterm5.0|Tera Term 5.0,
4500	xenl,
4501	rv=\E\\[>32;331;0c, use=bracketed+paste, use=dec+sl,
4502	use=xterm+keypad, use=report+da2, use=teraterm4.97,
4503
4504teraterm|Tera Term,
4505	use=teraterm5.0,
4506
4507#### RLogin
4508# RLogin 2.30.4
4509# https://github.com/kmiya-culti/RLogin
4510rlogin-color,
4511	OTbs, OTpt, am, bce, km, mir, msgr, npc, xenl,
4512	OTkn#12, colors#0x100, cols#80, lines#24, pairs#0x10000,
4513	OTrs=\E[!p\E[?3;4l\E[4l\E>\E]104\007, bel=^G,
4514	bold=\E[1m, civis=\E[?25l, clear=\E[H\E[2J,
4515	cnorm=\E[?25h, cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
4516	cud1=\n, dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J,
4517	el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
4518	ich=\E[%p1%d@, ind=\n,
4519	is2=\E[!p\E[?3;4l\E[4l\E>\E]104\007, kbeg=\EOE,
4520	kcbt=\E[Z, kend=\EOF, kf5=\E[15~, kll=\EOF, kmous=\E[M,
4521	kslt=\EOF, meml=\El, memu=\Em, op=\E[39;49m, rc=\E8, ri=\EM,
4522	rmam=\E[?7l, rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>,
4523	rmso=\E[27m, rmul=\E[24m, rs1=\Ec, sc=\E7,
4524	setab=\E[48;5;%p1%dm, setaf=\E[38;5;%p1%dm,
4525	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
4526	    %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
4527	sgr0=\E[m, smam=\E[?7h, smcup=\E[?1049h, smir=\E[4h,
4528	smkx=\E[?1h\E=, rv=\E\\[>65;331;0c,
4529	xr=\EP>\\|RLogin\\(([1-9][.0-9]+)\\)\E\\\\,
4530	use=ansi+apparrows, use=ansi+cup, use=ansi+idl,
4531	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
4532	use=ansi+sgrdim, use=bracketed+paste, use=ecma+index,
4533	use=ecma+italics, use=ecma+strikeout, use=vt420+lrmm,
4534	use=decid+cpr, use=report+da2, use=report+version,
4535	use=vt100+pf1-pf4, use=vt220+pcedit, use=vt220+ufkeys,
4536	use=xterm+acs,
4537
4538#### Command prompt
4539
4540# Tested with WinNT 4.0, the telnet application assumes the screensize is
4541# 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
4542#
4543# Other notes:
4544# a) Fails tack's cup (cursor-addressing) test, though cup works well enough
4545#    for casual (occasional) use.  Also fails several of the vttest screens,
4546#    but that is not unusual for VT100 "emulators".
4547# b) Does not implement VT100 keypad
4548# c) Recognizes a subset of VT52 controls.
4549ms-vt100|MS telnet imitating DEC VT100,
4550	lines#25,
4551	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
4552	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
4553	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
4554	ka1@, ka3@, kb2@, kc1@, kc3@, kent@, kf0@, kf1@, kf10@, kf2@, kf3@, kf4@,
4555	kf5@, kf6@, kf7@, kf8@, kf9@, tbc@, use=vt102+enq, use=vt100,
4556
4557# Tested with Windows 2000, the telnet application runs in a console window,
4558# also using 'Terminal' font.
4559#
4560# Other notes:
4561# a) This version has no function keys or numeric keypad.  Unlike the older
4562#    version, the numeric keypad is entirely ignored.
4563# b) The program sets $TERM to "ansi", which of course is inaccurate.
4564ms-vt100-color|vtnt|windows 2000 ANSI (sic),
4565	bce,
4566	dch=\E[%p1%dP, ich=\E[%p1%d@, use=ecma+color,
4567	use=ms-vt100,
4568
4569# Based on comments from Federico Bianchi:
4570#
4571#	vt100+ is basically a VT102-noSGR with ANSI.SYS colors and a different
4572#	scheme for PF keys.
4573#
4574# and PuTTY wishlist:
4575#
4576#	The modifiers are represented as the codes listed above, prefixed to
4577#	the normal sequences.  If the modifier is pressed alone, its sequence
4578#	is transmitted twice in succession.  If multiple modifiers apply,
4579#	they're transmitted in the order shift, control, alt.
4580#
4581#	Shift	\E^S
4582#	Alt	\E^A,
4583#	Ctrl	\E^C,
4584ms-vt100+|vt100+|windows XP VT100+ (sic),
4585	kdch1=\E-, kend=\Ek, kf1=\E1, kf10=\E0, kf11=\E!, kf12=\E@,
4586	kf13=\E\023\E1, kf14=\E\023\E2, kf15=\E\023\E3,
4587	kf16=\E\023\E4, kf17=\E\023\E5, kf18=\E\023\E6,
4588	kf19=\E\023\E7, kf2=\E2, kf20=\E\023\E8, kf21=\E\023\E9,
4589	kf22=\E\023\E0, kf23=\E\023\E!, kf24=\E\023\E@,
4590	kf25=\E\003\E1, kf26=\E\003\E2, kf27=\E\003\E3,
4591	kf28=\E\003\E4, kf29=\E\003\E5, kf3=\E3, kf30=\E\003\E6,
4592	kf31=\E\003\E7, kf32=\E\003\E8, kf33=\E\003\E9,
4593	kf34=\E\003\E0, kf35=\E\003\E!, kf36=\E\003\E@,
4594	kf37=\E\001\E1, kf38=\E\001\E2, kf39=\E\001\E3, kf4=\E4,
4595	kf40=\E\001\E4, kf41=\E\001\E5, kf42=\E\001\E6,
4596	kf43=\E\001\E7, kf44=\E\001\E8, kf45=\E\001\E9,
4597	kf46=\E\001\E0, kf47=\E\001\E!, kf48=\E\001\E@, kf5=\E5,
4598	kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, khome=\Eh, kich1=\E+,
4599	knp=\E/, kpp=\E?, use=ms-vt100-color,
4600
4601ms-vt-utf8|vt-utf8|UTF-8 flavor of VT100+,
4602	use=ms-vt100+,
4603
4604# VT-UTF-8 and VT100+ Protocols
4605# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vuvp/969416c0-ccd6-4a75-a9b3-597d7713845b
4606#
4607# This Microsoft "protocol" adapted the aixterm 16-color feature from xterm's
4608# documentation in 2015, as seen in successive revisions:
4609#
4610# 2013/07/22 has 8 colors
4611# 2015/10/16 has 16 colors using SGR 90-97, 100-107 as well as SGR 24 and 27,
4612#            adds "informative" reference to xterm's ctlseqs
4613#
4614# The cnorm/civis definitions added in 2015 are unrelated to any standard.
4615ms-vt100-16color|VT-UTF-8 and VT100+,
4616	civis=\E[?h, cnorm=\E[?l, use=ecma+underline,
4617	use=ecma+standout, use=ibm+16color, use=ms-vt100+,
4618
4619# Based on
4620# https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
4621# We use this scheme to map function keys
4622#       terminfo        modifier        code    keys
4623#       kf13-kf24       shift           2       F1 to F12
4624#       kf25-kf36       alt             3       F1 to F12
4625#       kf37-kf48       control         4       F1 to F12
4626#       kf49-kf60       ctrl-alt        7       F1 to F12
4627#
4628# Unclear: smam and rmam implemented?
4629# Unclear: rmkx, smkx, rmir, smir - irrelevant?
4630#
4631# TD:
4632# +	According to tack, tbc and cbt fail.
4633# +	The line-drawing (acsc) does not work in telnet or ssh.  I added the
4634#	U8 extension to tell ncurses to use UTF-8 for line-drawing (when the
4635#	locale uses UTF-8).  That won't work for telnet (which uses ASCII),
4636#	but seems to work for OpenSSH's ssh.  I set the codepage to 65001,
4637#	of course.
4638# +	Function keys... do not work consistently in telnet and ssh.  With
4639#	telnet, kf1-kf4 are \EOP to \EOS, and kf5-kf12 match the terminfo.
4640#	But with ssh, it's entirely different (reminds me of rxvt).
4641winconsole|Windows 10 new console,
4642	am, km, mir, msgr, xenl,
4643	ncv@, U8#1,
4644	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
4645	     yzz~~,
4646	bel=^G, blink@, cr=\r, ech=\E[%p1%dX, el1=\E[0K, ich1@, ind=\n,
4647	invis@, is1=\E[!p, kf13=\E[11;2~, kf14=\E[12;2~,
4648	kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
4649	kf18=\E[17;2~, kf19=\E[18;2~, kf20=\E[19;2~,
4650	kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[24;2~,
4651	kf24=\E[25;2~, kf25=\E[11;3~, kf26=\E[12;3~,
4652	kf27=\E[13;3~, kf28=\E[14;3~, kf29=\E[15;3~,
4653	kf30=\E[17;3~, kf31=\E[18;3~, kf32=\E[19;3~,
4654	kf33=\E[20;3~, kf34=\E[21;3~, kf35=\E[24;3~,
4655	kf36=\E[25;3~, kf37=\E[11;4~, kf38=\E[12;4~,
4656	kf39=\E[13;4~, kf40=\E[14;4~, kf41=\E[15;4~,
4657	kf42=\E[17;4~, kf43=\E[18;4~, kf44=\E[19;4~,
4658	kf45=\E[20;4~, kf46=\E[21;4~, kf47=\E[24;4~,
4659	kf48=\E[25;4~, kf49=\E[11;7~, kf50=\E[12;7~,
4660	kf51=\E[13;7~, kf52=\E[14;7~, kf53=\E[15;7~,
4661	kf54=\E[17;7~, kf55=\E[18;7~, kf56=\E[19;7~,
4662	kf57=\E[20;7~, kf58=\E[21;7~, kf59=\E[24;7~,
4663	kf60=\E[25;7~, khome=\E[1~, nel=\r\n, ri=\E[T, rmacs=\E(B,
4664	rmir@, rmpch@, rs1=\E[!p,
4665	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t
4666	    \E(0%e\E(B%;,
4667	sgr0=\E[0m\E(B, smacs=\E(0, smir@, smpch@, use=ansi+arrows,
4668	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idc,
4669	use=ansi+idl, use=ecma+index, use=ansi+inittabs,
4670	use=ansi+local, use=ecma+sgr, use=ecma+color,
4671	use=vt220+cvis, use=vt220+pcedit, use=xterm+nopcfkeys,
4672
4673# Windows Terminal
4674# https://github.com/microsoft/terminal
4675#
4676# Version 1.21.2911.0
4677# 2024-10-17
4678#
4679# - The "About" dialog has a pointer to the release notes, but that turns out
4680#   to be for all branches.  This particular version (unlike those previously
4681#   tested) happens to be a non-preview version.
4682# - Windows Terminal #2958 has relevant discussion.
4683#
4684# tack:
4685# - keypad escapes still do not work
4686# - meta mode does not work
4687# - when running tests, the screen maximized and did not resume normal size
4688#
4689# vttest:
4690# - identifies as a VT100-level terminal supporting Greek and Turkish (not
4691#   applicable to a VT100), horizontal scrolling () and DRCS (seems to work)
4692# - left/right margins work
4693# - DECSCUSR is okay except for mode 1
4694# - SL/SR fail
4695# - does not support XTVERSION
4696# - some mouse controls work, but not highlight tracking and X10 compatibility
4697# - mouse focus events appear - but not in the test-screen (like VTE).
4698# - cursor position after alternate screen is correct for 1049, not otherwise
4699# - window reporting does not work
4700#
4701# wraptest:
4702# - DECRC does not restore wrap
4703#
4704# other:
4705# - change history says it supports bracketed paste
4706# - Greek and Turkish character sets work with GL, not GR
4707# - source code says it implements OSC 52, as well as 12, 112, but not 104.
4708#
4709# Windows 10 22H2 (also Windows 11)
4710# Version 1.16.10261.0
4711# 2020-01-25
4712#
4713# - Windows Terminal #1553: "Feature Request:  Mouse/Touch/Pointer Bindings
4714#   (like middle-click paste, right-click context menu, etc.)", compare to
4715#   https://learn.microsoft.com/en-us/windows/console/mouse-event-record-str
4716#   This appears to be related to a problem with its implementation of the
4717#   Console API; the mouse does not work in a "Command Window" (e.g., as used
4718#   in the ncurses MinGW driver), although escape sequences work.
4719#
4720# Windows 10 21H1
4721# Version 1.9.1942.0
4722# 2021-07-13
4723#
4724# This has longstanding issues with CR/LF mapping, e.g.,
4725# - first reported by Juergen Pfeifer August 13, 2020, with workaround
4726# - Windows Terminal #8303 "Updates to ms-terminal terminal type in terminfo to
4727#   1.4 from 0.2"
4728# - Windows Terminal #6733 "Midnight Commander (mc) output is screwed when
4729#   using the 'ms-terminal' as $TERM"
4730#
4731# still seen in testing during May-July 2021.  As a workaround, this terminal
4732# description sets cud1 to an escape sequence rather than just \r.
4733#
4734# Using TERM=xterm-256color shows a number of problems.
4735# A few are seen only in the WSL2 environment.
4736#
4737# tack:
4738# - flash does not work.
4739# - video attribute blink does not work.
4740# - video attribute invis does not work in WSL2.
4741# - italics sitm/ritm do not work in WSL2.
4742# - crossed-out smxx/rmxx do not work in WSL2.
4743# - reloading colors via initp interchanges red/blue.
4744# - does not implement OSC 104, which is used for resetting colors in xterm.
4745# - does not support numeric keypad application mode.
4746# - control-modifier (without alt/shift) does not work for special keys.
4747# - meta-key sends escape character rather than acting as a meta key.
4748#
4749# vttest:
4750# - identifies itself as a VT100.
4751# - cursor movement (menu 1) does not work properly, e.g., for wrapping.
4752# - does not support 8-bit controls.
4753# - does not support VT420 rectangles.
4754# - does not support VT420 left/right margins.
4755# - ECMA-48 cursor-movement works.
4756# - does not support X10 mouse, or mouse highlight tracking.
4757# - SGR mouse mode 1006 works.
4758# - any-event mouse mode shows no focus-in/focus-out events.
4759# - alternate screen 47/48 modes do not work, nor do 1047/1048.
4760# - alternate screen 1049 mode works.
4761# - none of the window report/modify operations work.
4762# - none of the DECRPM/DECRQM reporting operations work.
4763#
4764# xterm:
4765# - 256colors2.pl -r, -i and -q options work.
4766# - dynamic colors do not work.
4767# - paste64.pl does not work, i.e., bracketed-paste.
4768# - tcapquery.pl does not work.
4769#
4770# Windows 10 1903
4771# Version 0.2.1831.0
4772# 2019-07-02
4773#
4774# The task manager shows this as "OpenConsole.exe", which differs
4775# from the "Windows Command Processor" used for the command-prompt.
4776#
4777# The settings dialog does not work (unless the end user expects to open
4778# profiles.json in Visual Studio).  There is no documentation, of course.
4779#
4780# Testing via an ssh connection, using openssh:
4781# - the program sets TERM to cygwin if the tab is set to PowerShell,
4782#   and to xterm-256color if "Legacy".  However, in the latter, more tests
4783#   fail in vttest, which does not pay attention to TERM.
4784# vttest:
4785# - menu 1 (tests for cursor movement) misbehaves like command-prompt
4786# - primary DA says this is a vanilla VT100
4787# - does not flush response to primary DA, leaving a ^M on the end when
4788#   the PowerShell tab is used.  Both the "Legacy" tab and the command-prompt
4789#   work properly in this test.
4790# - in the generic VT100 tests, there are problems with character sets
4791#   (diamond shows as a double-width character, DEL as two replacement-chars).
4792# - outside of the generic VT100 tests, the program does poorly because most
4793#   of the features are missing.
4794# - ECH does not work properly
4795# - a few generic xterm features are supported (set window title), but
4796#   others are missing (such as the mouse).
4797# - the cursor visible/invisible works in the PowerShell tab, not in "Legacy"
4798# tack:
4799# - blink, dim, bold, invis, protect do not work
4800# - bce works (but per vttest, with ED, EL, not ECH)
4801# - does not support keypad application mode
4802# - implements most of the xterm modified keys; sometimes modifiers are ignored
4803#   or simply incorrect
4804# - sends escape+key rather than implementing meta mode
4805# other:
4806# - color palette can be altered, but OSC 104 for resetting does not work
4807# - crashed with a script used for testing NRCS.
4808# - does not recognize either xterm+direct or xterm+indirect escapes.
4809ms-terminal|Windows terminal,
4810	use=xterm+256color, use=ms+terminal,
4811ms-terminal-direct|Windows terminal with direct-colors,
4812	use=xterm+direct, use=ms+terminal,
4813ms+terminal|building block for Windows terminal,
4814	npc,
4815	cud1=\E[B, kbeg=\EOE, kcbt=\E[Z, oc@, rmkx=\E[?1l, rmm@,
4816	smkx=\E[?1h, smm@, rv=\E\\[>0;10;1c, use=linux+kbs,
4817	use=bracketed+paste, use=xterm+pcfkeys, use=ansi+rep,
4818	use=xterm+sm+1006, use=ecma+index, use=ecma+italics,
4819	use=ecma+strikeout, use=report+da2, use=vt420+lrmm,
4820	use=xterm-basic, use=xterm+focus, use=xterm+tmux,
4821	use=xterm+sm+1003,
4822
4823#### Visual Studio
4824# Visual Studio Code 1.45.0 uses xterm.js 12.8.1 (see https://xtermjs.org/).
4825#
4826# vttest:
4827# - fixes menu 1 problem with wrapping
4828# - supports DECALN
4829# - fixes menu 8 problem with delete-character
4830# - REP, SL/SL work
4831# - keypad application mode still does not work; PF1-PF4 are not assigned.
4832# - DECRQM/DECRPM do not work
4833# - xterm mouse features:
4834#   - SGR coordinates work; the other modes do not (see vscode #96058)
4835#   - focus-events are not sent
4836#   - mouse highlight tracking does not send button event
4837# tack/other:
4838# - little or no change since previous review
4839#
4840# Visual Studio Code 1.35.1 uses xterm.js (see https://xtermjs.org/).
4841# https://code.visualstudio.com/docs/editor/integrated-terminal
4842#
4843# This sets TERM to xterm-256color, which is a little more successful than
4844# Windows Terminal.
4845#
4846# vttest:
4847# - menu 1 (cursor movement) has problems with wrapping
4848# - claims to be a VT100 with AVO, but copies xterm #276's secondary response
4849# - menu 8 (insert/delete char/line) has problem with delete-character
4850# - like Windows Terminal, fails the ECH test: neither supports DECALN
4851#   However, the bce test with ECH works.
4852# - does not support keypad application mode
4853# - supports most xterm mode controls (except DEC Locator Events)
4854# - REP, SL/SL do not work, but SD/SU work.
4855# - the alternate-screen tests fail because it does not support DECALN
4856# - window modify/report is not supported
4857# - supports some VT320 presentation reports
4858# tack:
4859# - does not support blinking text
4860# - implements most of the xterm modified keys, with some exceptions:
4861#   - pageup/pagedown do not send escapes
4862#   - alt cursor left/right send escape-b and escape-f
4863# - sends UTF-8 like xterm for meta mode
4864# other:
4865# - mouse mode is not reset by reset-sequence
4866# - supports italics and dim, but not cross-out or double-underline
4867# - color-palette cannot be changed
4868vscode|xterm.js|Visual Studio Code terminal using xterm.js,
4869	npc,
4870	kcbt=\E[Z, rmkx=\E[?1l, smkx=\E[?1h, rv=\E\\[>0;276;0c,
4871	use=linux+kbs, use=report+da2, use=xterm+256setaf,
4872	use=ecma+index, use=xterm+focus, use=xterm+sm+1006,
4873	use=xterm+pcfkeys, use=ecma+italics, use=xterm-basic,
4874	use=bracketed+paste,
4875vscode-direct|Visual Studio Code with direct-colors,
4876	use=xterm+indirect, use=vscode,
4877
4878######## X TERMINAL EMULATORS
4879#### XTERM
4880#
4881# You can add the following line to your .Xdefaults to change the terminal type
4882# set by the xterms you start up to my-xterm:
4883#
4884# *termName:  my-xterm
4885#
4886# System administrators can change the default entry for xterm instances
4887# by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
4888# case, xterm will detect and reject an invalid terminal type, falling back
4889# to the default of xterm.
4890#
4891
4892# X10/6.6	11/7/86, minus alternate screen, plus (csr)
4893# (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
4894# removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
4895# as these seem not to work -- esr)
4896x10term|vs100-x10|xterm terminal emulator (X10 window system),
4897	OTbs, am, km, mir, msgr, xenl, xon,
4898	cols#80, it#8, lines#65,
4899	bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
4900	cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\E[A, dch=\E[%p1%dP,
4901	dch1=\E[P, ed=\E[J, el=\E[K, ht=^I, ind=\n,
4902	is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H, kcub1=\EOD, kcud1=\EOB,
4903	kcuf1=\EOC, kcuu1=\EOA, rev=\E[7m, ri=\EM, rmam=\E[?7l,
4904	rmir=\E[4l, rmkx=\E[?1l\E>, sgr0=\E[m, smam=\E[?7h,
4905	smir=\E[4h, smkx=\E[?1h\E=, use=ansi+cup, use=ansi+idl,
4906	use=ansi+sgrso, use=ansi+sgrul, use=vt100+pf1-pf4,
4907
4908# csl is extension which clears the status line
4909x10term+sl|status-line for X10 xterm,
4910	eslok, hs,
4911	dsl=\E[?H, fsl=\E[?F, tsl=\E[?E\E[?%i%p1%dT, csl=\E[?E,
4912
4913# Compatible with the R5 xterm
4914# (from the XFree86 3.2 distribution, <blink=@> removed)
4915# added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
4916# corrected typos in rs2 string - TD
4917# added u6-u9 -TD
4918xterm-r5|xterm R5 version,
4919	OTbs, am, km, msgr, xenl,
4920	cols#80, it#8, lines#24,
4921	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
4922	ed=\E[J, el=\E[K, ht=^I, hts=\EH, ind=\n, kdl1=\E[31~,
4923	kel=\E[8~, kf0=\EOq, khome=\E[1~, kil1=\E[30~, kmous=\E[M,
4924	rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
4925	rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
4926	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
4927	    %;m,
4928	sgr0=\E[m, smkx=\E[?1h\E=, tbc=\E[3g, use=xterm+kbs,
4929	use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
4930	use=ansi+idc, use=ansi+idl, use=ansi+local,
4931	use=ansi+sgrso, use=ansi+sgrul, use=vt220+pcedit,
4932	use=vt100+enq, use=xterm+r5+fkeys,
4933
4934# X11R5 used function-keys based on, but different from VT220, assigning keys
4935# F1-R5 (unlike VT220), and limiting to F12 (perhaps influenced by other
4936# keyboards).
4937xterm+r5+fkeys|VT220-like function keys in X11R5 xterm,
4938	use=xterm+r5+lockeys, use=vt220+ufkeys,
4939xterm+r5+lockeys|XTerm "local" keys in vt220 scheme,
4940	kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
4941
4942# Compatible with the R6 xterm
4943# (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
4944# added khome/kend, hts based on the R6 xterm code - TD
4945# (khome/kend do not actually work in X11R5 or X11R6, but many people use this
4946# for compatibility with other emulators).
4947xterm-r6|xterm X11R6 version,
4948	OTbs, am, km, mir, msgr, xenl,
4949	cols#80, it#8, lines#24,
4950	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4951	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
4952	dch=\E[%p1%dP, dch1=\E[P, enacs=\E)0, ht=^I, hts=\EH, ind=\n,
4953	is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
4954	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kmous=\E[M,
4955	meml=\El, memu=\Em, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l,
4956	rmkx=\E[?1l\E>,
4957	rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
4958	sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
4959	use=xterm+alt47, use=ansi+csr, use=ansi+cup,
4960	use=ansi+erase, use=ansi+idl, use=ansi+local,
4961	use=ansi+sgrso, use=ansi+sgrul, use=vt220+vtedit,
4962	use=xterm+kbs, use=vt100+enq, use=vt220+sfkeys,
4963	use=xterm+r5+fkeys,
4964
4965xterm-old|antique xterm version,
4966	use=xterm-r6,
4967# The monochrome version began as a copy of "xtermm" (from Solaris), and was
4968# initially part of the xterm sources (in XFree86).  But "xterm" continued to
4969# grow, while "xterm-mono" had none of the newer features.  Additionally,
4970# inheriting from "xtermm" runs into several problems, including different
4971# function keys as well as the fact that the mouse support is not compatible.
4972# This entry restores the original intent, intentionally not an alias to
4973# simplify maintenance -TD
4974xterm-mono|monochrome xterm,
4975	use=xterm-r6,
4976# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
4977# The name has been changed and some aliases have been removed.
4978xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
4979	OTbs, am, bce, km, mir, msgr, xenl, XT,
4980	cols#80, lines#24, ncv@,
4981	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4982	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
4983	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
4984	flash=\E[?5h$<100/>\E[?5l, ind=\n,
4985	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
4986	kbeg=\EOE, kbs=^?, kdch1=^?, kend=\EOF, kfnd=\E[1~,
4987	kmous=\E[M, kslt=\E[4~, meml=\El, memu=\Em, rev=\E[7m,
4988	ri=\EM, rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rs1=^O,
4989	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>,
4990	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
4991	     %=%t3%e%p1%d%;m,
4992	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
4993	     %=%t3%e%p1%d%;m,
4994	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
4995	    %;m%?%p9%t\016%e\017%;,
4996	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
4997	smul=\E[4m, use=ecma+underline, use=ecma+standout,
4998	use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
4999	use=ansi+idc, use=ansi+idl, use=ansi+inittabs,
5000	use=ansi+local, use=ansi+rca2, use=xterm+alt47,
5001	use=xterm+kbs, use=vt100+enq, use=xterm+r5+fkeys,
5002	use=ecma+color, use=vt220+cvis, use=vt220+keypad,
5003	use=vt220+pcedit, use=vt220+sfkeys,
5004
5005# This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
5006# codes for F1-F4 except while in VT220 mode.
5007xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System),
5008	use=vt100+pf1-pf4, use=xterm-xf86-v32,
5009
5010# This version was released in XFree86 3.3.3 (November 1998).
5011# Besides providing printer support, it exploits a new feature that allows
5012# xterm to use terminfo-based descriptions with the titeInhibit resource.
5013# -- the distribution contained incorrect khome/kend values -TD
5014xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System),
5015	blink=\E[5m, ich1@, invis=\E[8m,
5016	is2=\E[!p\E[?3;4l\E[4l\E>, kdch1=\E[3~, kfnd@, kslt@,
5017	rmcup=\E[?1047l\E[?1048l, rs1=\Ec,
5018	rs2=\E[!p\E[?3;4l\E[4l\E>,
5019	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
5020	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
5021	smcup=\E[?1048h\E[?1047h, use=ansi+pp,
5022	use=xterm-xf86-v33,
5023
5024# This version was released in XFree86 4.0.
5025xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System),
5026	npc,
5027	kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
5028	kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C, ka1@,
5029	ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kf13=\EO2P, kf14=\EO2Q,
5030	kf15=\EO2R, kf16=\EO2S, kf17=\E[15;2~, kf18=\E[17;2~,
5031	kf19=\E[18;2~, kf20=\E[19;2~, kf21=\E[20;2~,
5032	kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P,
5033	kf26=\EO5Q, kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~,
5034	kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
5035	kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
5036	kf36=\E[24;5~, kf37=\EO6P, kf38=\EO6Q, kf39=\EO6R,
5037	kf40=\EO6S, kf41=\E[15;6~, kf42=\E[17;6~, kf43=\E[18;6~,
5038	kf44=\E[19;6~, kf45=\E[20;6~, kf46=\E[21;6~,
5039	kf47=\E[23;6~, kf48=\E[24;6~,
5040	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
5041	    %p9%t\016%e\017%;,
5042	use=xterm+alt1049, use=xterm-xf86-v333,
5043
5044# This version was released in XFree86 4.3.
5045xterm-xf86-v43|xterm terminal emulator (XFree86 4.3 Window System),
5046	kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
5047	kLFT=\E[1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C,
5048	kbeg@,
5049	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
5050	    %p7%t;8%;m%?%p9%t\016%e\017%;,
5051	use=xterm-xf86-v40,
5052
5053# Controlling the cursor-visibility is not a "new" feature, but was generally
5054# neglected in terminal emulators until the mid-1990s.  These would work for
5055# the hardware terminals, or for more recent emulators, e.g., xterm.
5056vt220+cvis|DECTCEM VT220 cursor-visibility,
5057	civis=\E[?25l, cnorm=\E[?25h,
5058vt220+cvis8|8-bit DECTCEM VT220 cursor-visibility,
5059	civis=\233?25l, cnorm=\233?25h,
5060# The first block is for terminals which did not support blinking cursor.
5061att610+cvis0|AT&T 610 cursor-visibility,
5062	civis=\E[?25l, cnorm=\E[?12l\E[?25h,
5063att610+cvis|AT&T 610 cursor-visibility with blink,
5064	cvvis=\E[?12;25h, use=att610+cvis0,
5065
5066# This version was released in XFree86 4.4.
5067xterm-xf86-v44|xterm terminal emulator (XFree86 4.4 Window System),
5068	use=att610+cvis, use=ecma+index, use=xterm-xf86-v43,
5069
5070xterm-xfree86|xterm terminal emulator (XFree86),
5071	use=xterm-xf86-v44,
5072
5073xterm+nofkeys|building block for xterm fkey-variants,
5074	npc,
5075	kcbt=\E[Z, nel=\EE, use=ecma+index, use=ansi+rep,
5076	use=ecma+strikeout, use=vt420+lrmm, use=xterm+focus,
5077	use=xterm+sm+1006, use=xterm+tmux, use=ecma+italics,
5078	use=xterm+keypad, use=xterm-basic,
5079
5080xterm-p370|xterm patch #370,
5081	rv=\E\\[>41;[1-6][0-9][0-9];0c,
5082	xr=\EP>\\|XTerm\\(([1-9][0-9]+)\\)\E\\\\,
5083	use=ecma+index, use=ansi+rep, use=ecma+strikeout,
5084	use=xterm+pcfkeys, use=xterm+nofkeys,
5085	use=bracketed+paste, use=report+version,
5086	use=xterm+focus,
5087
5088xterm-p371|xterm patch #371,
5089	use=dec+sl, use=xterm-p370,
5090
5091# This version reflects the current xterm features.
5092xterm-new|modern xterm terminal emulator,
5093	use=xterm-p370,
5094
5095# This fragment is for people who cannot agree on what the backspace key
5096# should send.  The ncurses configure script option "--with-xterm-kbs" can
5097# set it to BS (standard) or DEL (Linux's notion of "vt220").  xterm provides
5098# either, depending on how the pseudoterminals are configured.
5099xterm+kbs|fragment for backspace key,
5100	kbs=^H,
5101
5102# Use this fragment for terminals that always use DEL for "backspace".
5103linux+kbs|Linux fragment for "backspace" key,
5104	kbs=^?,
5105#
5106# This fragment describes as much of XFree86 xterm's "pc-style" function
5107# keys as will fit into terminfo's 60 function keys.
5108# From ctlseqs.ms:
5109#    Code     Modifiers
5110#  ---------------------------------
5111#     2       Shift
5112#     3       Alt
5113#     4       Shift + Alt
5114#     5       Control
5115#     6       Shift + Control
5116#     7       Alt + Control
5117#     8       Shift + Alt + Control
5118#  ---------------------------------
5119# The meta key may also be used as a modifier in this scheme, adding another
5120# bit to the parameter.
5121xterm+pcfkeys|xterm fragment for PC-style fkeys,
5122	use=xterm+app, use=xterm+pcf2, use=xterm+pcc2,
5123	use=xterm+pce2,
5124
5125# The xterm ctrlFKeys resource defaults to 10, so without the "pc-style"
5126# feature, e.g., setting the modifyCursorKeys and modifyFunctionKeys resources
5127# to -1 to disable them, one gets 42 function-keys on a 12-function-key
5128# keyboard, e.g.,
5129# kf1                   = \E[11~
5130# kf11 shift f1         = \E[23~
5131# kf21 control f1       = \E[42~
5132# kf31 shift control f1 = \E[52~
5133xterm+nopcfkeys|fragment without PC-style fkeys,
5134	kf21=\E[42~, kf22=\E[43~, kf23=\E[44~, kf24=\E[45~,
5135	kf25=\E[46~, kf26=\E[47~, kf27=\E[48~, kf28=\E[49~,
5136	kf29=\E[50~, kf30=\E[51~, kf31=\E[52~, kf32=\E[53~,
5137	kf33=\E[54~, kf34=\E[55~, kf35=\E[56~, kf36=\E[57~,
5138	kf37=\E[58~, kf38=\E[59~, kf39=\E[60~, kf40=\E[61~,
5139	kf41=\E[62~, kf42=\E[63~, use=vt220+sfkeys,
5140	use=xterm+r5+fkeys,
5141
5142vt100+noapp|fragment with cursor keys in normal mode,
5143	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5144	use=vt100+noapp+pc,
5145
5146xterm+noapp|alias for vt100+noapp,
5147	use=vt100+noapp,
5148
5149xterm+app|fragment with cursor keys in application mode,
5150	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
5151	use=xterm+app+pc,
5152
5153vt100+noapp+pc|fragment for noapp pc-style home/end,
5154	kend=\E[F, khome=\E[H,
5155
5156xterm+app+pc|fragment for app pc-style home/end,
5157	kend=\EOF, khome=\EOH,
5158#
5159# The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
5160# and revised in xterm patch #167 (2002/8/24).  Some other terminal emulators
5161# copied the earlier scheme, as noted in the "use=" clauses in this file.
5162#
5163# The original assignments from patch #94 for cursor-keys had some technical
5164# issues:
5165#
5166#	A parameter for a function-key to represent a modifier is just more
5167#	bits.  But for a cursor-key it may change the behavior of the
5168#	application.  For instance, emacs decodes the first parameter of a
5169#	cursor-key as a repeat count.
5170#
5171#	A parameterized string should (really) not begin with SS3 (\EO).
5172#	Rather, CSI (\E[) should be used.
5173#
5174# For these reasons, the original assignments were deprecated.  For
5175# compatibility reasons, they are still available as a setting of xterm's
5176# modifyCursorKeys resource.  These fragments list the modified cursor-keys
5177# that might apply to xterm+pcfkeys with different values of that resource.
5178#
5179# These entries will have warnings when checking with tic because the kri/kind
5180# capabilities duplicate the kUP/kDN extensions.  This is intentional, though
5181# not part of the original plan.  The changes for xterm patch #206 (2005/11/3)
5182# show that kri/kind were seen much later as part of a set including kLFT/kRIT:
5183#
5184#   * modify  xterm-new  terminfo  entry to use capabilities for shifted
5185#     scroll forward/reverse as shifted cursor up/down.
5186#
5187# In the 1980s when terminfo was defined, the developers made more of
5188# a distinction between shifted up/down versus shifted left/right since most
5189# terminals can index (scroll up/down), while few can scroll left/right.
5190xterm+pcc3|fragment with modifyCursorKeys:3,
5191	kLFT=\E[>1;2D, kRIT=\E[>1;2C, kind=\E[>1;2B,
5192	kri=\E[>1;2A, kDN=\E[>1;2B, kDN3=\E[>1;3B, kDN4=\E[>1;4B,
5193	kDN5=\E[>1;5B, kDN6=\E[>1;6B, kDN7=\E[>1;7B,
5194	kLFT3=\E[>1;3D, kLFT4=\E[>1;4D, kLFT5=\E[>1;5D,
5195	kLFT6=\E[>1;6D, kLFT7=\E[>1;7D, kRIT3=\E[>1;3C,
5196	kRIT4=\E[>1;4C, kRIT5=\E[>1;5C, kRIT6=\E[>1;6C,
5197	kRIT7=\E[>1;7C, kUP=\E[>1;2A, kUP3=\E[>1;3A,
5198	kUP4=\E[>1;4A, kUP5=\E[>1;5A, kUP6=\E[>1;6A,
5199	kUP7=\E[>1;7A,
5200
5201xterm+pcc2|fragment with modifyCursorKeys:2,
5202	kLFT=\E[1;2D, kRIT=\E[1;2C, kind=\E[1;2B, kri=\E[1;2A,
5203	kDN=\E[1;2B, kDN3=\E[1;3B, kDN4=\E[1;4B, kDN5=\E[1;5B,
5204	kDN6=\E[1;6B, kDN7=\E[1;7B, kLFT3=\E[1;3D, kLFT4=\E[1;4D,
5205	kLFT5=\E[1;5D, kLFT6=\E[1;6D, kLFT7=\E[1;7D,
5206	kRIT3=\E[1;3C, kRIT4=\E[1;4C, kRIT5=\E[1;5C,
5207	kRIT6=\E[1;6C, kRIT7=\E[1;7C, kUP=\E[1;2A, kUP3=\E[1;3A,
5208	kUP4=\E[1;4A, kUP5=\E[1;5A, kUP6=\E[1;6A, kUP7=\E[1;7A,
5209
5210xterm+pcc1|fragment with modifyCursorKeys:1,
5211	kLFT=\E[2D, kRIT=\E[2C, kind=\E[2B, kri=\E[2A, kDN=\E[2B,
5212	kDN3=\E[3B, kDN4=\E[4B, kDN5=\E[5B, kDN6=\E[6B, kDN7=\E[7B,
5213	kLFT3=\E[3D, kLFT4=\E[4D, kLFT5=\E[5D, kLFT6=\E[6D,
5214	kLFT7=\E[7D, kRIT3=\E[3C, kRIT4=\E[4C, kRIT5=\E[5C,
5215	kRIT6=\E[6C, kRIT7=\E[7C, kUP=\E[2A, kUP3=\E[3A,
5216	kUP4=\E[4A, kUP5=\E[5A, kUP6=\E[6A, kUP7=\E[7A,
5217
5218xterm+pcc0|fragment with modifyCursorKeys:0,
5219	kLFT=\EO2D, kRIT=\EO2C, kind=\EO2B, kri=\EO2A, kDN=\EO2B,
5220	kDN3=\EO3B, kDN4=\EO4B, kDN5=\EO5B, kDN6=\EO6B, kDN7=\EO7B,
5221	kLFT3=\EO3D, kLFT4=\EO4D, kLFT5=\EO5D, kLFT6=\EO6D,
5222	kLFT7=\EO7D, kRIT3=\EO3C, kRIT4=\EO4C, kRIT5=\EO5C,
5223	kRIT6=\EO6C, kRIT7=\EO7C, kUP=\EO2A, kUP3=\EO3A,
5224	kUP4=\EO4A, kUP5=\EO5A, kUP6=\EO6A, kUP7=\EO7A,
5225
5226#
5227# Here are corresponding fragments from xterm patch #216:
5228#
5229xterm+pcf0|fragment with modifyFunctionKeys:0,
5230	kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
5231	kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
5232	kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
5233	kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
5234	kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, kf30=\E[17;5~,
5235	kf31=\E[18;5~, kf32=\E[19;5~, kf33=\E[20;5~,
5236	kf34=\E[21;5~, kf35=\E[23;5~, kf36=\E[24;5~, kf37=\EO6P,
5237	kf38=\EO6Q, kf39=\EO6R, kf40=\EO6S, kf41=\E[15;6~,
5238	kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
5239	kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
5240	kf48=\E[24;6~, kf49=\EO3P, kf50=\EO3Q, kf51=\EO3R,
5241	kf52=\EO3S, kf53=\E[15;3~, kf54=\E[17;3~, kf55=\E[18;3~,
5242	kf56=\E[19;3~, kf57=\E[20;3~, kf58=\E[21;3~,
5243	kf59=\E[23;3~, kf60=\E[24;3~, kf61=\EO4P, kf62=\EO4Q,
5244	kf63=\EO4R, use=vt100+pf1-pf4, use=xterm+nopcfkeys,
5245#
5246xterm+pcf2|fragment with modifyFunctionKeys:2,
5247	kf13=\E[1;2P, kf14=\E[1;2Q, kf15=\E[1;2R, kf16=\E[1;2S,
5248	kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
5249	kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
5250	kf23=\E[23;2~, kf24=\E[24;2~, kf25=\E[1;5P, kf26=\E[1;5Q,
5251	kf27=\E[1;5R, kf28=\E[1;5S, kf29=\E[15;5~, kf30=\E[17;5~,
5252	kf31=\E[18;5~, kf32=\E[19;5~, kf33=\E[20;5~,
5253	kf34=\E[21;5~, kf35=\E[23;5~, kf36=\E[24;5~,
5254	kf37=\E[1;6P, kf38=\E[1;6Q, kf39=\E[1;6R, kf40=\E[1;6S,
5255	kf41=\E[15;6~, kf42=\E[17;6~, kf43=\E[18;6~,
5256	kf44=\E[19;6~, kf45=\E[20;6~, kf46=\E[21;6~,
5257	kf47=\E[23;6~, kf48=\E[24;6~, kf49=\E[1;3P, kf50=\E[1;3Q,
5258	kf51=\E[1;3R, kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
5259	kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
5260	kf58=\E[21;3~, kf59=\E[23;3~, kf60=\E[24;3~,
5261	kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R,
5262	use=vt100+pf1-pf4, use=xterm+nopcfkeys,
5263#
5264# Chunks from xterm #230:
5265xterm+pce2|fragment with modifyCursorKeys:2 editing-keys,
5266	kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
5267	kNXT=\E[6;2~, kPRV=\E[5;2~, kDC3=\E[3;3~, kDC4=\E[3;4~,
5268	kDC5=\E[3;5~, kDC6=\E[3;6~, kDC7=\E[3;7~, kEND3=\E[1;3F,
5269	kEND4=\E[1;4F, kEND5=\E[1;5F, kEND6=\E[1;6F,
5270	kEND7=\E[1;7F, kHOM3=\E[1;3H, kHOM4=\E[1;4H,
5271	kHOM5=\E[1;5H, kHOM6=\E[1;6H, kHOM7=\E[1;7H,
5272	kIC3=\E[2;3~, kIC4=\E[2;4~, kIC5=\E[2;5~, kIC6=\E[2;6~,
5273	kIC7=\E[2;7~, kNXT3=\E[6;3~, kNXT4=\E[6;4~,
5274	kNXT5=\E[6;5~, kNXT6=\E[6;6~, kNXT7=\E[6;7~,
5275	kPRV3=\E[5;3~, kPRV4=\E[5;4~, kPRV5=\E[5;5~,
5276	kPRV6=\E[5;6~, kPRV7=\E[5;7~, use=xterm+edit,
5277
5278xterm+edit|fragment for 6-key editing-keypad,
5279	use=xterm+pc+edit, use=vt220+pcedit,
5280
5281xterm+decedit|fragment for vt220 6-key editing-keypad,
5282	use=vt220+vtedit, use=xterm+vt+edit,
5283
5284xterm+pc+edit|fragment for pc-style editing keypad,
5285	kend=\E[4~, khome=\E[1~,
5286
5287xterm+vt+edit|fragment for VT220-style editing keypad,
5288	kfnd=\E[1~, kslt=\E[4~,
5289
5290# These variations for alternate-screen and title-stacking were introduced by
5291# xterm patch #331:
5292xterm+noalt|xterm without altscreen,
5293	rmcup@, smcup@,
5294
5295xterm+alt47|X11R4 alternate-screen,
5296	rmcup=\E[2J\E[?47l\E8, smcup=\E7\E[?47h,
5297
5298xterm+alt1049|xterm 90 feature,
5299	rmcup=\E[?1049l, smcup=\E[?1049h,
5300
5301xterm+titlestack|xterm 251 feature,
5302	rmcup=\E[23;0;0t, smcup=\E[22;0;0t,
5303
5304xterm+alt+title|xterm 90 and 251 features combined,
5305	rmcup=\E[?1049l\E[23;0;0t, smcup=\E[?1049h\E[22;0;0t,
5306
5307# https://invisible-island.net/xterm/xterm.faq.html#xterm_keypad
5308#
5309# Xterm's emulation of the VT100 numeric keypad on a PC-keyboard runs into the
5310# problem that the keypad layout is different, and that the natural choice for
5311# PF1 is NumLock (which happens to be reserved for other use).  To work around
5312# that, PF1-PF4 are emulated via F1-F4, which leaves the "/", "*" and "+" not
5313# directly related to VT100.
5314#
5315# With the VT220 keypad block that uses the 1-9 keys as suggested in
5316# terminfo(5), the other keys can be handled with user-defined capabilities:
5317#
5318#   _______________________________________
5319#  | NumLock |    /    |    *    |    -    |
5320#  |         |   $Oo   |   $Oj   |   $OS   |
5321#  |_________|__kpDIV__|__kpMUL__|__kpSUB__|
5322#  |    7         8         9    |    +    |
5323#  |   $Ow   |   $Ox   |   $Oy   |   $Ok   |
5324#  |_ka1__K1_|_________|_ka3__K3_|  kpADD  |
5325#  |    4    |    5    |    6    |         |
5326#  |   $Ot   |   $Ou   |   $Ov   |         |
5327#  |_________|_kb2__K2_|_________|_________|
5328#  |    1    |    2    |    3    |         |
5329#  |   $Oq   |   $Or   |   $Os   |         |
5330#  |_kc1__K4_|_________|_kc3__K5_|  enter  |
5331#  |         0         |    .    |   $OM   |
5332#  |        $Op        |   $On   |         |
5333#  |_______kpZRO_______|__kpDOT__|_kent_@8_|
5334#
5335# ka2, kb1, kb3 and kc2 are extensions, as are the mixed-case names.
5336# There are no termcap equivalents for these extensions.
5337#
5338# kpCMA (comma) is used here for the VT100 keypad, which xterm emulates with
5339# shifted-keypad-plus, though normally that invokes a font-size change.
5340#
5341# Old versions of xterm, e.g., xterm-xfree86, documented \EOE as kb2, which
5342# does not fit into this layout.  The extension kp5 fits, but is not visible
5343# to termcap applications.  As an alternative, kbeg (which does have a termcap
5344# equivalent) is provided.
5345#
5346xterm+keypad|xterm emulating VT100/VT220 numeric keypad,
5347	kbeg=\EOE, kp5=\EOE, kpADD=\EOk, kpCMA=\EOl, kpDIV=\EOo,
5348	kpDOT=\EOn, kpMUL=\EOj, kpSUB=\EOm, kpZRO=\EOp,
5349	use=vt220+keypad,
5350#
5351# Those chunks use the new-style (the xterm oldFunctionKeys resource is false).
5352# Alternatively, the same scheme with old-style function keys as in xterm-r6
5353# is shown here (because that is used in mrxvt and mlterm):
5354xterm+r6f2|xterm with oldFunctionKeys and modifyFunctionKeys:2,
5355	kf1=\E[11~, kf13=\E[11;2~, kf14=\E[12;2~, kf15=\E[13;2~,
5356	kf16=\E[14;2~, kf2=\E[12~, kf25=\E[11;5~, kf26=\E[12;5~,
5357	kf27=\E[13;5~, kf28=\E[14;5~, kf3=\E[13~, kf37=\E[11;6~,
5358	kf38=\E[12;6~, kf39=\E[13;6~, kf4=\E[14~, kf40=\E[14;6~,
5359	kf49=\E[11;3~, kf50=\E[12;3~, kf51=\E[13;3~,
5360	kf52=\E[14;3~, kf61=\E[11;4~, kf62=\E[12;4~,
5361	kf63=\E[13;4~, use=xterm+pcf2,
5362#
5363xterm+acs|ISO-2022 alternate character-switching for xterm,
5364	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
5365	enacs@, rmacs=\E(B, smacs=\E(0,
5366
5367# This chunk is used for building the VT220/Sun/PC keyboard variants.
5368xterm-basic|modern xterm terminal emulator - common,
5369	OTbs, am, bce, mir, msgr, xenl, AX, XT,
5370	colors#8, cols#80, lines#24, pairs#64,
5371	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
5372	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
5373	ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
5374	ich=\E[%p1%d@, ind=\n, is2=\E[!p\E[?3;4l\E[4l\E>,
5375	kmous=\E[M, meml=\El, memu=\Em, op=\E[39;49m, ri=\EM,
5376	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rs1=\Ec,
5377	rs2=\E[!p\E[?3;4l\E[4l\E>, setab=\E[4%p1%dm,
5378	setaf=\E[3%p1%dm,
5379	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
5380	     %=%t3%e%p1%d%;m,
5381	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
5382	     %=%t3%e%p1%d%;m,
5383	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
5384	    %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
5385	sgr0=\E(B\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
5386	E3=\E[3J, use=ecma+underline, use=ecma+standout,
5387	use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+idl,
5388	use=ansi+inittabs, use=ansi+local, use=ansi+pp,
5389	use=ansi+rca2, use=ansi+sgrbold, use=xterm+kbs,
5390	use=xterm+alt+title, use=att610+cvis, use=xterm+acs,
5391	use=xterm+meta,
5392
5393xterm+meta|meta mode for xterm,
5394	km,
5395	rmm=\E[?1034l, smm=\E[?1034h,
5396
5397# From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
5398# In retrospect, something like xterm-r6 was intended here -TD
5399xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1,
5400	rmso=\E[m, rmul=\E[m, use=xterm-xf86-v33,
5401
5402#### XTERM Colors
5403
5404# 16-colors is one of the variants of XFree86 3.3 xterm, updated for 4.0
5405# (T.Dickey)
5406#
5407# If configured to support 88- or 256-colors (which is fairly common in 2009),
5408# xterm also recognizes the control sequences for initc -TD
5409xterm-16color|xterm with 16 colors like aixterm,
5410	ccc,
5411	initc=\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*
5412	      %{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
5413	use=xterm+osc104, use=ibm+16color, use=xterm-new,
5414
5415# 256-colors is a compile-time feature of XFree86 xterm beginning with
5416# xterm patch #111 (1999/7/10) -TD
5417xterm+256color|original xterm 256-color feature,
5418	ccc,
5419	colors#0x100, pairs#0x10000,
5420	initc=\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*
5421	      %{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
5422	oc=\E]104\007,
5423	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;
5424	      5;%p1%d%;m,
5425	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5
5426	      ;%p1%d%;m,
5427	setb@, setf@,
5428
5429# The semicolon separator used in xterm+256color does not follow the ECMA-48
5430# standard.  Since patch #282 (in 2012), xterm has supported both the legacy
5431# subparameter separator (semicolon) and the standard (colon).
5432#
5433# The xterm FAQ gives some of the history:
5434#	https://invisible-island.net/xterm/xterm.faq.html#color_by_number
5435xterm+256color2|xterm 256-color feature,
5436	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48:
5437	      5:%p1%d%;m,
5438	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38:5
5439	      :%p1%d%;m,
5440	use=xterm+256color,
5441
5442# xterm OSC 104 resets the color palette.  Using it as part of xterm+256color
5443# has the drawback that some of the xterm-alikes which use that building block
5444# require a different approach to rs1 -TD
5445xterm+osc104|reset color palette,
5446	oc=\E]104\007, rs1=\Ec\E]104\007,
5447
5448# palette is hardcoded...
5449xterm+256setaf|xterm 256-color (set-only),
5450	ccc@,
5451	colors#0x100, pairs#0x10000,
5452	initc@, op=\E[39;49m,
5453	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;
5454	      5;%p1%d%;m,
5455	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5
5456	      ;%p1%d%;m,
5457	setb@, setf@,
5458
5459xterm+256setaf2|xterm 256-color (set-only with colon),
5460	ccc@,
5461	initc@, use=xterm+256setaf,
5462
5463# 88-colors is a compile-time feature of XFree86 xterm beginning with
5464# xterm patch #115 (1999/9/18) -TD
5465#
5466# Note that the escape sequences used are the same as for 256-colors - xterm
5467# has a different table of default color resource values.  If built for
5468# 256-colors, it can still handle an 88-color palette by using the initc
5469# capability.
5470#
5471# At this time (2007/7/14), except for rxvt 2.7.x, none of the other terminals
5472# which support the xterm+256color feature support the associated initc
5473# capability.  So it is cancelled in the entries which use this and/or the
5474# xterm+256color block.
5475#
5476# The default color palette for the 256- and 88-colors are different.  A
5477# given executable will have one palette (perhaps compiled-in).  If the program
5478# supports xterm's control sequence, it can be programmed using initc.
5479xterm+88color|original xterm 88-color feature,
5480	colors#88, pairs#7744, use=xterm+256color,
5481
5482xterm+88color2|xterm 88-color feature,
5483	colors#88, pairs#7744, use=xterm+256color2,
5484
5485# These variants of XFree86 3.9.16 xterm are built as a configure option.
5486xterm-256color|xterm with 256 colors,
5487	use=xterm+osc104, use=xterm+256color, use=xterm-new,
5488xterm-88color|xterm with 88 colors,
5489	use=xterm+osc104, use=xterm+88color,
5490	use=xterm-256color,
5491
5492# Emacs 26.1 and later support direct color mode in terminals, using a
5493# combination of user-defined capabilities and ncurses-dependent function
5494# calls.  We will not include that here.
5495#
5496# Here is a first revision, which (disregarding the reuse of colors 1-7 which
5497# is of interest only to the numerically illiterate), is compatible with other
5498# terminal descriptions written for curses.  It relies upon the extended range
5499# for numeric capabilities provided in ncurses 6.1:
5500xterm+direct2|xterm with direct-color indexing (old building-block),
5501	RGB,
5502	colors#0x1000000, pairs#0x10000, CO#8,
5503	initc@, op=\E[39;49m,
5504	setab=\E[%?%p1%{8}%<%t4%p1%d%e48:2:%p1%{65536}%/%d:%p1%{256}
5505	      %/%{255}%&%d:%p1%{255}%&%d%;m,
5506	setaf=\E[%?%p1%{8}%<%t3%p1%d%e38:2:%p1%{65536}%/%d:%p1%{256}
5507	      %/%{255}%&%d:%p1%{255}%&%d%;m,
5508	setb@, setf@,
5509xterm-direct2|xterm with direct-color indexing (old),
5510	use=xterm+direct2, use=xterm+titlestack, use=xterm,
5511
5512# That in turn had a problem: in the original patch submitted for KDE konsole
5513# in 2006, the submitter and the developer alike overlooked a "color space
5514# identifier" parameter.  This version provides for that parameter:
5515xterm+direct|xterm with direct-color indexing (building-block),
5516	RGB,
5517	colors#0x1000000, pairs#0x10000, CO#8,
5518	initc@, op=\E[39;49m,
5519	setab=\E[%?%p1%{8}%<%t4%p1%d%e48:2::%p1%{65536}%/%d:%p1
5520	      %{256}%/%{255}%&%d:%p1%{255}%&%d%;m,
5521	setaf=\E[%?%p1%{8}%<%t3%p1%d%e38:2::%p1%{65536}%/%d:%p1
5522	      %{256}%/%{255}%&%d:%p1%{255}%&%d%;m,
5523	setb@, setf@,
5524xterm-direct|xterm with direct-color indexing,
5525	use=xterm+direct, use=xterm,
5526
5527# Here are corresponding flavors for terminals which could use the feature:
5528iterm2-direct|iTerm2 with direct-color indexing,
5529	use=xterm+direct, use=iterm2,
5530mlterm-direct|mlterm with direct-color indexing,
5531	use=xterm+direct, use=mlterm,
5532
5533# Meanwhile, in KDE #107487, the patch submitter and the developer both saw
5534# that xterm's original implementation should have used colons for the
5535# subparameter separators, but chose not to correct this in konsole.  As of
5536# late 2017, konsole still accepts only the nonstandard semicolon delimiters.
5537xterm+indirect|xterm with direct-color indexing (old legacy building-block),
5538	RGB,
5539	colors#0x1000000, pairs#0x10000,
5540	initc@, op=\E[39;49m,
5541	setab=\E[%?%p1%{8}%<%t4%p1%d%e48;2;%p1%{65536}%/%d;%p1%{256}
5542	      %/%{255}%&%d;%p1%{255}%&%d%;m,
5543	setaf=\E[%?%p1%{8}%<%t3%p1%d%e38;2;%p1%{65536}%/%d;%p1%{256}
5544	      %/%{255}%&%d;%p1%{255}%&%d%;m,
5545	setb@, setf@,
5546konsole-direct|konsole with direct-color indexing,
5547	use=xterm+indirect, use=konsole,
5548st-direct|simpleterm with direct-color indexing,
5549	use=xterm+indirect, use=st,
5550vte-direct|VTE with direct-color indexing,
5551	use=xterm+indirect, use=vte,
5552# reportedly in Apple's Mohave (fall 2018), but untested -TD
5553nsterm-direct|nsterm with direct-color indexing,
5554	use=xterm+indirect, use=nsterm,
5555
5556# As for others (commenting at the time of release for ncurses 6.1):
5557# + Apple's Terminal.app does not recognize either form of the direct-color
5558#   sequences.
5559# + Cygwin's mintty recognizes xterm's original implementation, does okay with
5560#   the colors.  Like vte, it is a subset of xterm, although different
5561#   omissions/reservations of modified-keys are seen in testing.
5562# + PuTTY 0.70 seems to recognize xterm's original implementation but does
5563#   nothing useful with the colors.
5564# + Teraterm 4.97, like PuTTY (no good).
5565# + terminology 0.91 recognizes xterm's original implementation, but does
5566#   nothing useful with it.
5567
5568# Reviewing after ncurses 6.2:
5569# + Apple's Terminal.app is unchanged, has no support for direct color:
5570#	Catalina 10.15.5 Terminal.app 2.10 (433)
5571#	Mohave 10.14.6 - Terminal.app 2.9.5 (421.2)
5572# + Cygwin's mintty 3.1.7 works with colon/semicolon
5573# + PuTTY 0.73 works with semicolon
5574# + Teraterm 4.105 works with semicolon
5575# + terminology 1.7.0 works with colon/semicolon.
5576
5577# Other variants are possible, e.g., by using more of xterm's indexed color
5578# palette, though the intrusion of indexed colors on the direct-color space
5579# would be more noticeable.
5580
5581xterm+direct16|xterm with direct-color indexing (16-color building-block),
5582	CO#16,
5583	setab=\E[%?%p1%{8}%<%t4%p1%d%e%?%p1%{16}%<%t%p1%{92}%+%d%e48
5584	      :2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&
5585	      %d%;%;m,
5586	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%?%p1%{16}%<%t%p1%'R'%+%d%e38:
5587	      2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%d
5588	      %;%;m,
5589	setb@, setf@, use=xterm+direct,
5590
5591xterm-direct16|xterm with direct-colors and 16 indexed colors,
5592	use=xterm+direct16, use=xterm,
5593
5594xterm+direct256|xterm with direct-color indexing (256-color building-block),
5595	CO#0x100,
5596	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e%?
5597	      %p1%{256}%<%t48;5;%p1%d%e48:2::%p1%{65536}%/%d:%p1
5598	      %{256}%/%{255}%&%d:%p1%{255}%&%d%;%;m,
5599	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e%?
5600	      %p1%{256}%<%t38;5;%p1%d%e38:2::%p1%{65536}%/%d:%p1
5601	      %{256}%/%{255}%&%d:%p1%{255}%&%d%;%;m,
5602	setb@, setf@, use=xterm+direct,
5603
5604xterm-direct256|xterm with direct-colors and 256 indexed colors,
5605	use=xterm+direct256, use=xterm,
5606
5607#### XTERM Features
5608
5609# This chunk is based on suggestions by Ailin Nemui and Nicholas Marriott, who
5610# asked for some of xterm's advanced features to be added to its terminfo
5611# entry.  It defines extended capabilities not found in standard terminfo or
5612# termcap.  These are useful in tmux, for instance, hence the name.
5613#
5614# One caveat in adding extended capabilities in ncurses is that if the names
5615# are longer than two characters, then they will not be visible through the
5616# termcap interface.
5617#
5618# Ms modifies the selection/clipboard.  Its parameters are
5619#	p1 = the storage unit (clipboard, selection or cut buffer)
5620#	p2 = the base64-encoded clipboard content.
5621#
5622# Ss is used to set the cursor style as described by the DECSCUSR
5623#	function to a block or underline.
5624# Se resets the cursor style to the terminal power-on default.
5625#
5626# Cs and Cr set and reset the cursor colour.
5627xterm+tmux|advanced xterm features used in tmux (cursor style 2),
5628	Cr=\E]112\007, Cs=\E]12;%p1%s\007,
5629	Ms=\E]52;%p1%s;%p2%s\007, Se=\E[2 q, Ss=\E[%p1%d q,
5630xterm+tmux2|advanced xterm features used in tmux,
5631	Cr=\E]112\E\\, Cs=\E]12;%p1%s\E\\,
5632	Ms=\E]52;%p1%s;%p2%s\E\\, Se=\E[ q, Ss=\E[%p1%d q,
5633
5634# This is another variant, for XFree86 4.0 xterm (T.Dickey)
5635# This is an 8-bit version of xterm, which emulates DEC VT220 with ANSI color.
5636# To use it, your decTerminalID resource must be set to 200 or above.
5637#
5638#	HTS	\E H	\210
5639#	RI	\E M	\215
5640#	SS3	\E O	\217
5641#	CSI	\E [	\233
5642#
5643xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
5644	OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl, AX,
5645	colors#8, cols#80, it#8, lines#24, pairs#64,
5646	bel=^G, blink=\2335m, bold=\2331m, cbt=\233Z,
5647	civis=\233?25l, clear=\233H\2332J,
5648	cnorm=\233?25l\233?25h, cr=\r, csr=\233%i%p1%d;%p2%dr,
5649	cub=\233%p1%dD, cub1=^H, cud=\233%p1%dB, cud1=\n,
5650	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
5651	cuu=\233%p1%dA, cuu1=\233A, cvvis=\233?12;25h,
5652	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
5653	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
5654	flash=\233?5h$<100/>\233?5l, home=\233H,
5655	hpa=\233%i%p1%dG, ht=^I, hts=\210, ich=\233%p1%d@,
5656	il=\233%p1%dL, il1=\233L, ind=\n, invis=\2338m,
5657	is2=\E[62"p\E\sG\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r
5658	    \E8,
5659	ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kc1=\217q,
5660	kc3=\217s, kcbt=\233Z, kcub1=\217D, kcud1=\217B,
5661	kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\2334~,
5662	kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~,
5663	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
5664	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
5665	kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~,
5666	kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~,
5667	kf9=\23320~, khome=\2331~, kich1=\2332~, kmous=\233M,
5668	knp=\2336~, kpp=\2335~, mc0=\233i, mc4=\2334i, mc5=\2335i,
5669	meml=\El, memu=\Em, op=\23339;49m, rc=\E8, rev=\2337m,
5670	ri=\215, rmam=\233?7l, rmcup=\233?1049l, rmir=\2334l,
5671	rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m, rs1=\Ec,
5672	rs2=\E[62"p\E\sG\233m\233?7h\E>\E7\233?1;3;4;6l\2334l\233r
5673	    \E8,
5674	sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm,
5675	setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1
5676	     %{6}%=%t3%e%p1%d%;m,
5677	setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1
5678	     %{6}%=%t3%e%p1%d%;m,
5679	sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
5680	    %p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
5681	sgr0=\2330m\E(B, smam=\233?7h, smcup=\233?1049h,
5682	smir=\2334h, smkx=\233?1h\E=, smso=\2337m, smul=\2334m,
5683	tbc=\2333g, u6=\233[%i%d;%dR, u8=\233[?%[;0123456789]c,
5684	vpa=\233%i%p1%dd, use=ansi+enq, use=xterm+acs,
5685	use=xterm+kbs,
5686
5687# Note: normally xterm supports modified function-keys as described in
5688#	XTerm - "Other" modified keys
5689#	https://invisible-island.net/xterm/modified-keys.html
5690#
5691# However, xterm-hp, xterm-sco and xterm-sun assume no modifiers.  Here is
5692# a simple script which demonstrates these descriptions:
5693#	#!/bin/sh
5694#	export TERM=xterm-$1
5695#	xterm \
5696#		-kt $1 \
5697#		-fs 16 -fa mono \
5698#		-title $TERM \
5699#		-tn $TERM \
5700#		-xrm '*modifyCursorKeys:-1' \
5701#		-xrm '*modifyFunctionKeys:-1' \
5702#		-e tack
5703# e.g., "foo sun" if the script is named "foo" -TD
5704xterm-hp|xterm with hpterm function keys,
5705	kclr=\EJ, kdch1=\EP, kend=\EF, khome=\Eh, kich1=\EQ, knp=\ES,
5706	kpp=\ET, use=hp+pfk-cr, use=vt52+arrows,
5707	use=xterm+nofkeys, use=xterm+nopcfkeys,
5708
5709xterm-sco|xterm with SCO function keys,
5710	kbeg=\E[E, kbs=^?, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
5711	kf11=\E[W, kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a,
5712	kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N,
5713	kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j,
5714	kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o,
5715	kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s,
5716	kf34=\E[t, kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x,
5717	kf39=\E[y, kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[,
5718	kf43=\E[\\, kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`,
5719	kf48=\E[{, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
5720	kich1=\E[L, kmous=\E[>M, knp=\E[G, kpp=\E[I,
5721	use=ansi+arrows, use=xterm+nofkeys,
5722
5723# The xterm-new description has all of the features, but is not completely
5724# compatible with VT220.  If you are using a Sun or PC keyboard, set the
5725# sunKeyboard resource to true:
5726#	+ maps the editing keypad
5727#	+ interprets control-function-key as a second array of keys, so a
5728#	  12-fkey keyboard can support VT220's 20-fkeys.
5729#	+ maps numeric keypad "+" to ",".
5730#	+ uses DEC-style control sequences for the application keypad.
5731#
5732xterm-vt220|xterm emulating VT220,
5733	npc,
5734	kcbt=\E[Z, kend=\E[4~, khome=\E[1~, kmous=\E[M, nel=\EE,
5735	use=xterm+app, use=xterm+edit, use=vt220+keypad,
5736	use=ecma+italics, use=ecma+index, use=ansi+rep,
5737	use=ecma+strikeout, use=vt220+sfkeys,
5738	use=xterm+r5+fkeys, use=xterm+focus, use=xterm+sm+1006,
5739	use=xterm+tmux, use=xterm+keypad, use=xterm-basic,
5740
5741xterm-vt52|xterm emulating DEC VT52,
5742	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
5743	clear=\EH\EJ, rmacs=\EG, smacs=\EF, use=xterm+kbs,
5744	use=vt52+keypad, use=vt52-basic,
5745
5746xterm-noapp|xterm with cursor keys in normal mode,
5747	rmcup@, rmkx=\E>, smcup@, smkx=\E=, use=xterm+noapp,
5748	use=xterm,
5749
5750xterm-24|vs100|xterms|xterm terminal emulator 24-line (X Window System),
5751	lines#24, use=xterm-old,
5752
5753# This is xterm for ncurses.
5754xterm|xterm terminal emulator (X Window System),
5755	use=xterm-new,
5756
5757# This entry assumes that xterm's handling of VT100 SI/SO is disabled by
5758# setting the vt100Graphics resource to false.
5759xterm-utf8|xterm with no VT100 line-drawing in UTF-8 mode,
5760	U8#1, use=xterm,
5761
5762# These building-blocks allow access to the X titlebar and icon name as a
5763# status line.  There are a few problems in using them in entries:
5764#
5765# a) tsl should have a parameter to denote the column on which to transfer to
5766#    the status line.
5767# b) the "0" code for xterm updates both icon-title and window title.  Some
5768#    window managers such as twm (and possibly window managers descended from
5769#    it such as tvtwm, ctwm, and vtwm) track windows by icon-name. Thus, you
5770#    don't want to mess with icon-name when using those window managers.
5771# c) fsl ends the escape sequence begun by tsl.  Printable characters between
5772#    those (probably) will appear in the window title.  Nonprintable characters
5773#    may cause the escape sequence to end with an error.
5774# d) the BEL (^G or \007) used in the original title-as-statusline came from
5775#    David J. MacKenzie's "pseudo-color" entry in 20 Apr 1995.  At that time
5776#    xterm used BEL as the string-terminator rather than ST (\E\\).  Either
5777#    BEL or ST has worked since xterm patch #28 in 1996, but most uses of
5778#    this feature have been embedded in shell scripts.
5779#
5780# But that issue regarding the parameter for tsl means that applications may
5781# not rely on it.  The SVr4 documentation says tsl will "move to status line,
5782# column #1".  At the point in time when ESR added DJM's "pseudo-color" entry
5783# with the split-up escape sequence for tsl/fsl, there were 65 entries using
5784# tsl:
5785#    32 used a parameter, matching the documentation (including x10term).
5786#    21 used a parameterless control, exiting from the status line on ^M.
5787#     6 used parameterless controls for tsl and fsl
5788#     6 used a split-up escape sequence, e.g., the same approach.
5789#
5790# The extension "TS" is preferable, because it does not accept a parameter.
5791# However, if you are using a non-extended terminfo, "TS" is not visible.
5792xterm+sl|access X title line and icon name,
5793	hs,
5794	dsl=\E]0;\007, fsl=^G, tsl=\E]0;, TS=\E]0;,
5795xterm+sl-twm|access X title line (pacify twm-descended window managers),
5796	hs,
5797	dsl=\E]2;\007, fsl=^G, tsl=\E]2;, TS=\E]2;,
5798xterm+sl-alt|alternate access X title line,
5799	hs,
5800	dsl=\E]2;\E\\, fsl=\E\\, tsl=\E]2;, TS=\E]2;,
5801
5802# In contrast, this block can be used for a DEC VT320 and up.  There are two
5803# controls used.
5804#
5805# DECSASD (select active status display)
5806#	\E[0$}	Main display
5807#	\E[1$}	Status line
5808#
5809# DECSSDT (select status line type)
5810#	\E[0$~	No status line
5811#	\E[1$~	Indicator status line
5812#	\E[2$~	Host-writable status line
5813#
5814# The building block assumes that the terminal always shows something at the
5815# status line (either the indicator, or status line).  That is because if no
5816# status line is used, then the terminal makes that line part of the user
5817# window, changing its size without notice.
5818#
5819# Because there is no "esl" (enable status line) capability, the "tsl"
5820# capability ensures that the status line is host-writable.  A DEC terminal
5821# will clear the status line when changing from indicator to host-writable
5822# mode.
5823#
5824# Once on the status line, the row part of cursor addressing is ignored.  Since
5825# tsl expects a parameter (to specify the column), the shortest addressing that
5826# can be used for this purpose is HPA, e.g., \E[5d to go to column 5.
5827#
5828dec+sl|DEC VTxx status line,
5829	eslok, hs,
5830	dsl=\E[0$~, fsl=\E[0$}, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
5831
5832#
5833# The following xterm variants don't depend on your base version
5834#
5835# xterm with bold instead of underline
5836xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold,
5837	sgr=%?%p9%t\016%e\017%;B\E[0%?%p6%t;1%;%?%p2%t;1%;%?%p1%p3%|
5838	    %t;7%;m,
5839	smso=\E[7m, smul=\E[1m, use=xterm-old,
5840
5841# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
5842xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
5843	ich@, ich1@, use=xterm,
5844# From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996
5845xterm1|xterm terminal emulator ignoring the alternate screen buffer,
5846	rmcup@, smcup@, use=xterm,
5847
5848# https://invisible-island.net/xterm/xterm-paste64.html
5849#
5850# Bracketed paste was introduced by xterm patch #203 in May 2005, as part of a
5851# larger feature for manipulating the clipboard selection.  Few terminals aside
5852# from xterm fully implement the clipboard feature, but several copy this
5853# detail.  The names for the extended capabilities here were introduced by vim
5854# in January 2017, but used internally.  In 2023, vim patch 9.0.1117 is needed
5855# to work with this change.
5856bracketed+paste|xterm bracketed paste,
5857	BD=\E[?2004l, BE=\E[?2004h, PE=\E[201~, PS=\E[200~,
5858
5859# https://invisible-island.net/xterm/xterm.log.html#xterm_354
5860#
5861# The response is a DSR sequence identifying the version: DCS > | text ST
5862# For example:
5863#	^[P>|XTerm(354)^[\
5864# tack expects this string to be a regular expression, so some characters such
5865# as "|" are escaped.
5866report+version|Report xterm name and version (XTVERSION),
5867	XR=\E[>0q, xr=\EP>\\|[ -~]+\E\\\\, use=report+da2,
5868
5869# Vim uses RV to denote the secondary device attributes.  Xterm documents the
5870# - first parameter as the terminal type (extending it to VT100),
5871# - the second as the patch number for xterm, and
5872# - the third parameter as zero.
5873# Other terminals may provide useful responses, though few are documented.
5874# Some are hardcoded to match some (usually old) version of xterm.  For the
5875# others, rv is a regular expression which tack can match.
5876report+da2|report secondary device attributes (DA2),
5877	RV=\E[>c, rv=\E\\[>[0-9]+;[0-9]+;[0-9]+c,
5878
5879#### XTERM Mouse
5880# The xterm mouse protocol is used by other terminal emulators.
5881# In this section, two extended capabilities are used to illustrate the mouse
5882# protocol: XM and xm.  The "XM" capability is recognized by ncurses to allow
5883# enabling/disabling other mouse protocols.  The "xm" capability describes the
5884# mouse response; currently there is no interpreter which would use this
5885# information to make the mouse support completely data-driven.
5886
5887# Here is the "original" xterm mouse protocol.
5888#
5889# First seen in X10.3, February 1986, this likely dates from 1985 based on the
5890# copyright dates in the sources.  A comment in charproc.c notes "MIT bogus
5891# sequence", referring to the fact that it does not correspond to a "real"
5892# terminal.  The mouse responses for the X10 protocol are sent only for
5893# button-presses.
5894xterm+x10mouse|X10 xterm mouse protocol,
5895	kmous=\E[M, XM=\E[?9%?%p1%{1}%=%th%el%;,
5896	xm=\E[M%p3%' '%+%c%p2%'!'%+%c%p1%'!'%+%c,
5897xterm-x10mouse|X10 xterm mouse,
5898	use=xterm+x10mouse, use=xterm,
5899
5900# Here is the conventional xterm mouse protocol, introduced with X11R1 in
5901# September 1987.
5902#
5903# The mouse responses for the X11 protocol covered button releases, as well as
5904# modifiers:
5905#  shift    4
5906#  alt/meta 8 (technically the "mod1" mask, because X11 has no such keys)
5907#  control 16
5908#
5909# The modifiers are not reflected in this description because as used in xterm
5910# they are normally inaccessible because the translations resources assign
5911# shift and control to other features.  However, they are important because
5912# they take up space in the first byte of the response.  The other bits of this
5913# byte are used to encode the button number for both presses and releases.
5914# In the X11 protocol, any button-release is encoded with "3" (the lowest 2
5915# bits in the byte).  Later work on XFree86 xterm used the remaining 3 bits to
5916# provide additional features, e.g., wheel mouse.
5917#
5918# X11R1's xterm also supported an "emacs" mouse protocol, with final character
5919# "t" or "T", which was activated by double-clicking.  The "t" response was
5920# used when the starting/ending positions were the same.
5921#
5922# X11R3 (February 1988) added the highlight/tracking mode.
5923#
5924# X11R4 (December 1989) added the control sequences document, listing the
5925# control sequences for the X10/X11 protocols without descriptions.  It also
5926# mentioned the "emacs" ("T") response.  Comments in button.c referred to the
5927# X11 protocol as "DEC VT200 compatible", although DEC offered no such terminal.
5928#
5929# X11R5 (November 1993) gave a description of the mouse protocol.
5930#
5931# X11R6 (January 1995) moved the control sequences document out of the xterm
5932# source-directory to xc/doc/specs/xterm, polishing the formatting but adding
5933# no new information.
5934xterm+x11mouse|X11 xterm mouse protocol,
5935	kmous=\E[M, XM=\E[?1000%?%p1%{1}%=%th%el%;,
5936	xm=\E[M%?%p4%t%p3%e%{3}%;%'\s'%+%c%p2%'!'%+%c%p1%'!'%+%c,
5937xterm-x11mouse|X11 mouse,
5938	use=xterm+x11mouse, use=xterm,
5939
5940# Here is a suggested description of the xterm highlighting protocol.
5941# A more complicated example could be constructed to account for the "t"
5942# response.
5943xterm+x11hilite|X11 xterm mouse protocol with highlight,
5944	kmous=\E[M, XM=\E[?1001%?%p1%{1}%=%th%el%;,
5945	xm=\E[%p6%'!'%+%p5%'!'%+%c%p8%'!'%+%c%p7%'!'%+%c%p2%'!'%+%c
5946	   %p1%'!'%+%cT,
5947xterm-x11hilite|X11 mouse with highlight,
5948	use=xterm+x11mouse, use=xterm,
5949
5950# The preceding were the sources from X Consortium.  Other sources (or patches)
5951# were available.  Starting in mid-1995, XFree86 developers collected some of
5952# those changes and began improvements, e.g., to support color.  This was, by
5953# the way, around the same time that rxvt developers began implementing color,
5954# though dates (and attributions) are not well documented.  I became interested
5955# in xterm in late 1995, and involved in early 1996.  To complete the picture,
5956# CDE's dtterm was introduced around the same time, with no mouse protocol -TD
5957
5958# xterm patch #83 (1998/10/7), added Jason Bacon's changes to provide an
5959# "any-event" mouse mode.
5960#
5961# These building blocks incorporate later features as well:
5962# xterm patch #224 (2007/2/11) added private mode 1004, for enabling/disabling
5963# focus in/out event reporting.
5964# xterm patch #277 (2012/01/07) added private mode 1006
5965
5966xterm+sm+1002|xterm any-button mouse,
5967	kmous=\E[<, XM=\E[?1006;1004;1002%?%p1%{1}%=%th%el%;,
5968	xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
5969	use=xterm+focus,
5970xterm-1002|example of xterm any-button mouse,
5971	use=xterm+sm+1002, use=xterm,
5972
5973xterm+sm+1003|xterm any-event mouse,
5974	XM=\E[?1006;1004;1003%?%p1%{1}%=%th%el%;,
5975	use=xterm+sm+1002,
5976xterm-1003|example of xterm any-event mouse,
5977	use=xterm+sm+1003, use=xterm,
5978
5979# Some terminal emulators implement xterm focus in/out, but do it incorrectly,
5980# interfering with user applications.
5981# https://lists.gnu.org/archive/html/bug-ncurses/2023-10/msg00087.html
5982xterm+focus|xterm focus-in/out event "keys",
5983	XF,
5984	fd=\E[?1004l, fe=\E[?1004h, kxIN=\E[I, kxOUT=\E[O,
5985
5986# xterm patch #116 (1999/9/25) added Stephen P Wall's changes to support DEC
5987# locator mode.
5988
5989# xterm patch #120 (1999/10/28) added my change to support wheel mouse, by
5990# dropping support for the X11 mouse protocol's shift-modifier and using
5991# available bits in the first byte of the response to encode buttons 4 and 5.
5992# xterm patch #126 (2000/2/8) amended that change to avoid conflicting with
5993# older configurations which might have used the obsolete modifiers.
5994
5995# xterm patch #262 (2010/8/30) added Ryan Johnson's changes to provide a mode
5996# where the coordinates in the mouse response would be encoded in UTF-8,
5997# thereby extending the range of coordinates past 222=(255-33).  This is the
5998# "1005" mouse mode.
5999xterm+sm+1005|xterm UTF-8 mouse (building block),
6000	kmous=\E[M, XM=\E[?1005;1000%?%p1%{1}%=%th%el%;,
6001	xm=\E[M%?%p4%t3%e%p3%'\s'%+%c%;%p2%'!'%+%u%p1%'!'%+%u,
6002xterm-1005|xterm UTF-8 mouse,
6003	use=xterm+sm+1005, use=xterm,
6004
6005# xterm patch #277 (2012/1/7) provides a mode where the mouse response uses
6006# SGR-style parameters.
6007#
6008# Someone stated that the 1005 mouse mode would not be handled properly in luit.
6009# (By the way, this is a problem with the X11 protocol).  A more plausible
6010# criticism is that the responses provided by the 1005 mode are not distinct
6011# from the non-1005 responses.
6012#
6013# As an alternative (and fixing the longstanding limitation of X11 mouse
6014# protocol regarding button-releases), I provided the 1006 mode, referring
6015# to it as "SGR 1006" since the replies resemble the SGR control string:
6016xterm+sm+1006|xterm SGR-mouse (building block),
6017	kmous=\E[<, XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
6018	xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
6019xterm-1006|xterm SGR-mouse,
6020	use=xterm+sm+1006, use=xterm,
6021
6022# Some terminal emulators implement xterm focus in/out, but do it incorrectly,
6023# interfering with user applications.
6024# https://lists.gnu.org/archive/html/bug-ncurses/2023-10/msg00087.html
6025oldxterm+sm+1006|xterm SGR-mouse (building block),
6026	kmous=\E[<, XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
6027	xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
6028
6029#### KTERM
6030# (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
6031# (kterm should not invoke DEC Graphics as the alternate character set
6032#  -- Kenji Rikitake)
6033# (proper setting of enacs, smacs, rmacs makes kterm to use DEC Graphics
6034#  -- MATSUMOTO Shoji)
6035# kterm implements acsc via built-in table of X Drawable's
6036kterm|kterm kanji terminal emulator (X window system),
6037	XT,
6038	ncv@,
6039	acsc=``aajjkkllmmnnooppqqrrssttuuvvwwxx~~, enacs=,
6040	rmacs=\E(B, rmam=\E[?7l,
6041	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
6042	    \E(B%;,
6043	sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, use=x10term+sl,
6044	use=xterm-r6, use=ecma+color,
6045kterm-color|kterm-co|kterm with ANSI colors,
6046	ncv@, use=kterm, use=ecma+color,
6047
6048#### Other XTERM
6049
6050# These (xtermc and xtermm) are distributed with Solaris.  They refer to a
6051# variant of xterm which is apparently no longer supported, but are interesting
6052# because they illustrate SVr4 curses mouse controls - T.Dickey
6053xtermm|xterm terminal emulator (monochrome),
6054	OTbs, am, km, mir, msgr, xenl,
6055	btns#3, cols#80, it#8, lines#24,
6056	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6057	bel=^G, blink@, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cud1=\n,
6058	dch=\E[%p1%dP, dch1=\E[P, el1=\E[1K$<3>, enacs=\E(B\E)0,
6059	getm=\E[%p1%dY, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
6060	ind=\n, kend=\E[Y, kf0=\EOy, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
6061	kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H,
6062	kmous=\E[^_, knp=\E[U, kpp=\E[V, reqmp=\E[492Z, rev=\E[7m,
6063	ri=\EM, rmacs=^O, rmcup=\E@0\E[?4r,
6064	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
6065	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
6066	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
6067	    %;m%?%p9%t\016%e\017%;,
6068	sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
6069	tbc=\E[3g, use=ansi+apparrows, use=ansi+csr,
6070	use=ansi+cup, use=ansi+erase, use=ansi+idl,
6071	use=ansi+local, use=ansi+sgrso, use=decid+cpr,
6072	use=vt100+fnkeys,
6073
6074xtermc|xterm terminal emulator (color),
6075	ncv#7,
6076	op=\E[100m,
6077	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
6078	     %=%t3%e%p1%d%;m,
6079	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
6080	     %=%t3%e%p1%d%;m,
6081	use=xtermm, use=klone+color,
6082
6083# From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
6084# Here's a termcap entry I've been using for xterm_color, which comes
6085# with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
6086# color stuff, I also have a status line defined as the window manager
6087# title bar. [I have translated it to terminfo -- ESR]
6088xterm-pcolor|xterm with color used for highlights and status line,
6089	wsl#40,
6090	bold=\E[1;43m, rev=\E[7;34m,
6091	sgr=%?%p9%t\016%e\017%;\E[0%?%p6%t;1;43%;%?%p2%t;4;42%;%?%p1
6092	    %t;7;31%;%?%p3%t;7;34%;m,
6093	smso=\E[7;31m, smul=\E[4;42m, use=xterm+sl, use=xterm-r6,
6094
6095# This was mentioned
6096#	http://unix.stackexchange.com/questions/119/colors-in-man-pages
6097# pointing to
6098#	http://nion.modprobe.de/blog/archives/569-colored-manpages.html
6099#	(blog posting by Nico Golde, June 24 2007)
6100# archive:
6101#	https://web.archive.org/web/20070921042430/http://nion.modprobe.de/mostlike.txt
6102# The comment hints where it started, but there are differences:
6103#	Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm-pcolor
6104mostlike|man pager with color looking like most,
6105	OTbs@,
6106	bold=\E[1m\E[31m,
6107	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H,
6108	meml@, memu@, rev=\E[7m\E[34m,
6109	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sgr@,
6110	smso=\E[1;30m\E[47m, smul=\E[32m, TS@, use=xterm-pcolor,
6111
6112# This describes the capabilities of color_xterm, an xterm variant from
6113# before ECMA-48 color support was folded into the main-line xterm release.
6114# This entry is straight from color_xterm's maintainer.
6115# From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
6116# The README's with the distribution also say that it supports SGR 21, 24, 25
6117# and 27, but they are not present in the terminfo or termcap.
6118color_xterm|cx|cx100|color_xterm color terminal emulator for X,
6119	OTbs, am, km, mir, msgr, xenl, XT,
6120	cols#80, it#8, lines#65, ncv@,
6121	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6122	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
6123	dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K, el1=\E[1K,
6124	enacs=\E(B\E)0, ht=^I, ich=\E[%p1%d@, ind=\n,
6125	is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, kend=\E[8~,
6126	khome=\E[7~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
6127	rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
6128	rmcup=\E>\E[?41;1r, rmir=\E[4l,
6129	rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
6130	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
6131	    %;m%?%p9%t\016%e\017%;,
6132	sgr0=\E[0m\017, smacs=^N, smam=\E[?7h,
6133	smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smul=\E[4m,
6134	use=ecma+underline, use=ecma+standout,
6135	use=xterm+r5+fkeys, use=ansi+apparrows, use=ansi+csr,
6136	use=ansi+cup, use=ansi+idl, use=ansi+local,
6137	use=decid+cpr, use=ecma+color, use=vt220+keypad,
6138
6139# The IRAF source has a terminfo using "xterm-r5", but line-drawing does not
6140# work in that case.  This entry uses xterm+acs, to work around that problem.
6141#
6142# Home/end keys do not work, due to a bug in the X Consortium xterm on which
6143# this is based:
6144#
6145#	https://invisible-island.net/xterm/xterm.faq.html#bug_xterm_r6
6146#
6147# Comparing to the X11R5 source, xgterm has dynamic and ANSI colors (probably
6148# not bce).  It interchanges mouse buttons 2/3 for menus.
6149#
6150# It also has a few features found in later versions of xterm:
6151# - vi-button and dired-button,
6152# - i18n stuff like X11R6.
6153# - colorBD, colorUL
6154# - scrollBarRight
6155#
6156# Debian provides a package for xgterm (and iraf).  Although the source for
6157# xgterm implements the control-sequences for ANSI color, the packaged xgterm
6158# does nothing with those, even after installing the app-defaults file which
6159# was overlooked by the Debian packager.
6160xgterm|graphic terminal for IRAF,
6161	enacs=\E(B\E)0, rmacs=^O,
6162	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t
6163	    \016%e\017%;,
6164	sgr0=\E[m\017, smacs=^N, use=xterm+acs, use=xterm-r5,
6165	use=xterm+keypad,
6166
6167# The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
6168# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
6169# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
6170# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
6171# that each of those implements the home, end, delete keys differently.
6172#
6173# Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
6174# colors; note that this is not compatible with the 5.2 version.
6175# csw (2002-05-15): make xterm-color primary instead of nxterm, to
6176#   match XFree86's xterm.terminfo usage and prevent circular links
6177xterm-color|nxterm|generic color xterm,
6178	ncv@,
6179	op=\E[m, use=xterm-r6, use=klone+color,
6180
6181# This entry describes an xterm with Sun-style function keys enabled
6182# via the X resource setting "xterm*sunFunctionKeys:true"
6183# To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
6184# The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
6185# because we want it to be seen as <kcpy>.
6186# The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
6187# with their Sun keyboard labels instead.
6188# From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
6189xterm-sun|xterm with sunFunctionKeys true,
6190	kb2=\E[218z, kcpy=\E[197z, kdch1=\E[3z, kend=\E[220z,
6191	kent=\EOM, kf1=\E[224z, kf10=\E[233z, kf11=\E[192z,
6192	kf12=\E[193z, kf13=\E[194z, kf14=\E[195z, kf15=\E[196z,
6193	kf17=\E[198z, kf18=\E[199z, kf19=\E[200z, kf2=\E[225z,
6194	kf20=\E[201z, kf3=\E[226z, kf31=\E[208z, kf32=\E[209z,
6195	kf33=\E[210z, kf34=\E[211z, kf35=\E[212z, kf36=\E[213z,
6196	kf38=\E[215z, kf4=\E[227z, kf40=\E[217z, kf42=\E[219z,
6197	kf44=\E[221z, kf45=\E[222z, kf46=\E[234z, kf47=\E[235z,
6198	kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z,
6199	kf9=\E[232z, kfnd=\E[200z, khlp=\E[196z, khome=\E[214z,
6200	kich1=\E[2z, knp=\E[222z, kpp=\E[216z, kund=\E[195z,
6201	use=xterm+kbs, use=ansi+apparrows, use=xterm+nofkeys,
6202	use=xterm+nopcfkeys,
6203
6204xterms-sun|small (80x24) xterm with sunFunctionKeys true,
6205	use=xterm-sun,
6206
6207#### GNOME (VTE)
6208# this describes the alpha-version of GNOME terminal shipped with Redhat 6.0
6209gnome-rh62|GNOME terminal,
6210	bce,
6211	kdch1=^?, use=linux+kbs, use=vt100+pf1-pf4,
6212	use=xterm-color,
6213
6214# GNOME Terminal 1.4.0.4 (Redhat 7.2)
6215#
6216# This implements a subset of VT102 with a random selection of features from
6217# other terminals such as color and function-keys.
6218#
6219# shift-f1 to shift-f10 are f11 to f20
6220#
6221# NumLock changes the application keypad to approximate VT100 keypad, except
6222# that there is no escape sequence matching comma (,).
6223#
6224# Other defects observed:
6225#	vt100 LNM mode is not implemented.
6226#	vt100 80/132 column mode is not implemented.
6227#	vt100 DECALN is not implemented.
6228#	vt100 DECSCNM mode is not implemented, so flash does not work.
6229#	vt100 TBC (tab reset) is not implemented.
6230#	xterm alternate screen controls do not restore cursor position properly
6231#	it hangs in tack after running function-keys test.
6232gnome-rh72|GNOME Terminal in RedHat 7,
6233	bce, km@,
6234	rmam=\E[?7l,
6235	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\016%e
6236	    \017%;,
6237	sgr0=\E[0m\017, smam=\E[?7h, tbc@, use=linux+kbs,
6238	use=vt100+pf1-pf4, use=vt220+cvis, use=xterm-color,
6239
6240# GNOME Terminal 2.0.1 (Redhat 8.0)
6241#
6242# Documentation now claims it implements VT220 (which is demonstrably false).
6243# However, it does implement ECH, which is a VT220 feature.  And there are
6244# workable VT100 LNM, DECALN, DECSNM modes, making it possible to display
6245# more of its bugs using vttest.
6246#
6247# However, note that bce and msgr are broken in this release.  Tabs (tbc and
6248# hts) are broken as well.  Sometimes flash (as in xterm-new) works.
6249#
6250# kf1 and kf10 are not tested since they're assigned (hardcoded?) to menu
6251# operations.  Shift-tab generates a distinct sequence so it can be argued
6252# that it implements kcbt.
6253gnome-rh80|GNOME Terminal in RedHat 8,
6254	bce@, msgr@,
6255	ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l, kcbt=\E^I,
6256	op=\E[39;49m, use=gnome-rh72,
6257
6258# GNOME Terminal 2.2.1 (Redhat 9.0)
6259#
6260# bce and msgr are repaired.
6261gnome-rh90|GNOME Terminal in RedHat 9,
6262	bce, msgr, XT,
6263	kLFT=\EO2D, kRIT=\EO2C, kb2=\E[E, kcbt=\E[Z, tbc=\E[3g,
6264	use=ansi+rca2, use=xterm+pcf0, use=xterm+pcfkeys,
6265	use=gnome-rh80,
6266
6267# GNOME Terminal 2.14.2 (Fedora Core 5)
6268# Ed Catmur notes that gnome-terminal has recognized soft-reset since May 2002.
6269gnome-fc5|GNOME Terminal in Fedora Core 5,
6270	rs1=\Ec,
6271	rs2=\E7\E[r\E8\E[m\E[?7h\E[!p\E[?1;3;4;6l\E[4l\E>\E[?1000l
6272	    \E[?25h,
6273	use=ansi+enq, use=xterm+pcc0, use=gnome-rh90,
6274
6275# GNOME Terminal 2.18.1 (2007 snapshot)
6276#
6277# For any "recent" version of gnome-terminal, it is futile to attempt to
6278# support modifiers on cursor- and keypad keys because the program usually
6279# is hardcoded to set $TERM to "xterm", and on startup, it builds a subset
6280# of the keys (which more/less correspond to the termcap values), and will
6281# interpret those according to the $TERM value, but others not in the
6282# terminfo according to some constantly changing set of hacker guidelines -TD
6283vte-2007|VTE in GNOME Terminal snapshot 2.18.1,
6284	use=xterm+pcc2, use=vt220+cvis, use=gnome-fc5,
6285gnome-2007|GNOME Terminal snapshot 2.18.1,
6286	use=vte-2007,
6287
6288# GNOME Terminal 2.22.3 (2008 snapshot)
6289#
6290# In vttest, it claims to be a VT220 with national replacement character-sets,
6291# but aside from the identifier string, implements only a small fraction of
6292# VT220's behavior, which will make it less usable on a VMS system (unclear
6293# what the intent of the developer is, since the NRC feature exposed in vttest
6294# by this change does not work).
6295vte-2008|VTE in GNOME Terminal snapshot 2.22.3,
6296	use=vte+pcfkeys, use=vte-2007,
6297gnome-2008|GNOME Terminal snapshot 2.22.3,
6298	use=vte-2008,
6299
6300# GNOME Terminal 3.6.0 (2012)
6301# VTE 0.34.1 was marked in git 2012-10-15 (three days after patch was applied
6302# in ncurses).  It inherited from gnome-fc5, which broke the modified forms
6303# of f1-f4 -TD
6304#
6305# Testing with tack shows that flash does not/has not worked -TD
6306vte-2012|VTE 0.34.1,
6307	ncv#16,
6308	dim=\E[2m, flash@, invis=\E[8m,
6309	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p5%t;2%;%?%p7%t;8%;%?%p1%p3
6310	    %|%t;7%;m%?%p9%t\016%e\017%;,
6311	use=ecma+underline, use=ecma+standout,
6312	use=ecma+italics, use=vte-2008,
6313# Version 3.6.1 sets TERM to xterm-256color (still hardcoded), which has
6314# 61 differences from a correct entry for gnome terminal.
6315gnome-2012|GNOME Terminal 3.6.0,
6316	use=vte-2012,
6317
6318# Before 2008, GNOME terminal could automatically use the contents of the
6319# "xterm" terminfo to supply key information which is not built into the
6320# program.  With 2.22.3, this list was built into the program (which addressed
6321# the inadvertent use of random terminfo data, though using a set of values
6322# which did not correspond to any that xterm produced - still not solving the
6323# problem that GNOME terminal hardcoded the $TERM variable as "xterm").
6324#
6325#	terminfo	modifier	code	keys
6326#	kf13-kf24	shift		2	F1 to F12
6327#	kf25-kf36	control		5	F1 to F12
6328#	kf37-kf48	shift/control	6	F1 to F12
6329#	kf49-kf60	alt		3	F1 to F12
6330#	kf61-kf63	shift-alt	4	F1 to F3
6331#
6332# The parameters with \EO (SS3) are technically an error, since SS3 should have
6333# no parameters.  This appears to be rote copying based on xterm+pcc0.
6334vte+pcfkeys|VTE's variation on xterm+pcfkeys (building block),
6335	kf13=\EO1;2P, kf14=\EO1;2Q, kf15=\EO1;2R, kf16=\EO1;2S,
6336	kf25=\EO1;5P, kf26=\EO1;5Q, kf27=\EO1;5R, kf28=\EO1;5S,
6337	kf37=\EO1;6P, kf38=\EO1;6Q, kf39=\EO1;6R, kf40=\EO1;6S,
6338	kf49=\EO1;3P, kf50=\EO1;3Q, kf51=\EO1;3R, kf52=\EO1;3S,
6339	kf61=\EO1;4P, kf62=\EO1;4Q, kf63=\EO1;4R,
6340	use=xterm+pcfkeys,
6341gnome+pcfkeys|GHOME Terminal's variation on xterm+pcfkeys (building block),
6342	use=vte+pcfkeys,
6343
6344# deprecated - use "vte" for newer versions
6345gnome|GNOME Terminal,
6346	use=vte-2012,
6347gnome-256color|GNOME Terminal with xterm 256-colors,
6348	use=xterm+256color, use=gnome,
6349
6350# relevant changes were made in January 2014, and later.
6351#
6352# Originally VTE was promoted as a library able to emulate any terminal by
6353# reading its terminal description.  In practice, that never got beyond the
6354# ability to read definitions of special keys (function-, editing-, cursor).
6355#
6356# Before 2014, VTE had a termcap reader (originally pointing to a private copy
6357# of a termcap file derived from xterm).  That was incomplete because it did
6358# not have any of the modifier-key information used for xterm's function-,
6359# editing-, and cursor-keys.  Having its own reader was unnecessary since
6360# ncurses provides that information; used since xterm patch #225 in 2007.
6361#
6362# During April/May 2014, a few bug reports (e.g., gnome #169295, gnome #728900,
6363# gnome #730137) dealt with attempts to recast that termcap reader as library
6364# calls, then attempting to adapt a chunk of code from ncurses (src/vteti.c),
6365# abandoning that and finally constructing a table to match xterm's default
6366# behavior, e.g., for "xterm+pcfkeys".
6367vte-2014|VTE 0.35.1,
6368	ncv@,
6369	cbt=\E[Z, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
6370	ich=\E[%p1%d@, kent=\EOM, use=ecma+index,
6371	use=oldxterm+sm+1006, use=xterm+pcfkeys, use=vte-2012,
6372	use=bracketed+paste,
6373
6374# As of January 2018, this was the  most recent release,
6375# e.g., with gnome-terminal 3.26.2
6376vte-2017|VTE 0.50.2,
6377	E3=\E[3J, use=ecma+strikeout, use=vte-2014,
6378
6379# VTE 0.51.2 and gnome-terminal 3.28.2 copied a feature from KovId's TTY
6380# late in 2017 for changing the appearance of underlines, which was
6381# incorporated into Debian and Fedora testing-packages in February and March
6382# 2018, respectively. Overline (Smol/Rmol) has been supported since December
6383# 2017.
6384vte-2018|VTE 0.51.2,
6385	AX,
6386	blink=\E[5m, enacs=\E(B\E)0, nel=\EE,
6387	rep=%p1%c\E[%p2%{1}%-%db,
6388	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;
6389	    8%;%?%p1%p3%|%t;7%;m%?%p9%t\016%e\017%;,
6390	Rmol=\E[55m, Se=\E[1 q, Smol=\E[53m, Smulx=\E[4:%p1%dm,
6391	use=xterm+alt+title, use=xterm+tmux, use=kitty+setal,
6392	use=vte-2017,
6393
6394# Summarizing as of March 2022, these terminfo-capabilities of xterm are
6395# absent from VTE:
6396# - DEC application keypad mode
6397# - DEC-compatible status-line
6398# - DEC left/right margin support
6399# - DEC printer controls
6400# - AT&T cursor-blinking
6401# - meta mode, as documented in terminfo(5)
6402# - xterm's extension to clear scrollback
6403vte-2022|VTE aka GNOME Terminal,
6404	xr=\EP>\\|VTE\\(([0-9])\\)\E\\\\, use=report+version,
6405	use=report+da2, use=vte-2018,
6406
6407vte|VTE aka GNOME Terminal,
6408	use=vte-2022,
6409
6410vte-256color|VTE with xterm 256-colors,
6411	use=xterm+256color, use=vte,
6412
6413# XFCE Terminal 0.2.5.4beta2
6414#
6415# This is based on some of the same source code, e.g., the VTE library, as
6416# gnome-terminal, but has fewer features, fails more screens in vttest.
6417# Since most of the terminfo-related behavior is due to the VTE library,
6418# the terminfo is the same as gnome-terminal.
6419xfce|Xfce Terminal,
6420	use=vte-2008,
6421
6422# HTERM
6423#
6424# https://hterm.org
6425#
6426# A terminal written in JavaScript, which can provide xterm-like terminal
6427# emulation in a browser such as Google Chrome, or in Chome OS.
6428#
6429# https://chromium.googlesource.com/apps/libapps/+/master/nassh/doc/FAQ.md
6430#
6431# Tested with Secure Shell App version 0.39 in Chrome 89.0.4389.90, found that
6432# the numeric keypad escapes are missing -TD
6433hterm|Chromium hterm,
6434	npc,
6435	U8#1,
6436	kcbt=\E[Z, kent=\EOM, nel=\EE, use=linux+kbs,
6437	use=xterm+osc104, use=ecma+index, use=ansi+rep,
6438	use=ecma+strikeout, use=vt420+lrmm, use=xterm+focus,
6439	use=xterm+sm+1006, use=xterm+tmux, use=ecma+italics,
6440	use=xterm+pcfkeys, use=xterm-basic,
6441	use=bracketed+paste,
6442hterm-256color|Chromium hterm with xterm 256-colors,
6443	use=xterm+256color2, use=hterm,
6444
6445# TERMITE
6446#
6447# https://github.com/thestinger/termite
6448#
6449# A review requires install of Arch Linux since Fedora and Debian don't have
6450# this program.  It uses "vte3-ng" (a conflicting package), which is here:
6451#	https://github.com/thestinger/vte-ng
6452# which (based on the default branch setting) seems to be a fork of vte
6453# 0.48.2, and is noted as such in Arch:
6454#	https://aur.archlinux.org/packages/vte3-ng/
6455# It won't be merged:
6456#	https://bugzilla.gnome.org/show_bug.cgi?id=679658#c10
6457#	https://bugzilla.gnome.org/show_bug.cgi?id=78291
6458# but perhaps made obsolete.
6459#
6460# The entry as given was mislabeled "xterm-termite" (it is not xterm), and
6461# was mostly cut/paste from xterm-256color, but since VTE does not actually
6462# implement several of the features in that terminal description, this one is
6463# trimmed to eliminate those.  Also, since it is a slightly older version of
6464# VTE, it lacks a few more features (again, trimmed).
6465termite|VTE-based terminal,
6466	am, km, mir, msgr, npc, xenl,
6467	cols#80, lines#24, ncv@,
6468	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
6469	     yzz{{||}}~~,
6470	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
6471	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
6472	flash=\E[?5h$<100/>\E[?5l, ind=\n, invis=\E[8m,
6473	is2=\E[!p\E[?3;4l\E[4l\E>, kb2=\EOE, kcbt=\E[Z,
6474	kent=\EOM, kmous=\E[M, rev=\E[7m, ri=\EM, rmacs=\E(B,
6475	rmam=\E[?7l, rmkx=\E[?1l\E>, rs1=\Ec,
6476	rs2=\E[!p\E[?3;4l\E[4l\E>,
6477	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
6478	    %t;7%;%?%p7%t;8%;m,
6479	sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
6480	use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+idc,
6481	use=ansi+idl, use=ansi+inittabs, use=ansi+local,
6482	use=ansi+rca2, use=ecma+index, use=ecma+italics,
6483	use=ecma+underline, use=ecma+standout, use=linux+kbs,
6484	use=xterm+alt1049, use=xterm+256color, use=ecma+color,
6485	use=vt220+cvis, use=xterm+pcfkeys, use=xterm+sl-twm,
6486
6487#### Other GNOME
6488# Multi-GNOME-Terminal 1.6.2
6489#
6490# This does not use VTE, and does have different behavior (compare xfce and
6491# gnome).
6492mgt|Multi GNOME Terminal,
6493	use=ecma+index, use=xterm-xf86-v333,
6494
6495#### KDE
6496# This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
6497# or not is debatable).
6498kvt|KDE terminal,
6499	bce, km@,
6500	kdch1=^?, kend=\E[F, khome=\E[H, use=linux+kbs,
6501	use=xterm-color,
6502
6503# Konsole 1.0.1 (2001/11/25)
6504# (formerly known as kvt)
6505#
6506# This program hardcodes $TERM to 'xterm', which is not accurate.  However, to
6507# simplify this entry (and point out why konsole isn't xterm), we base this on
6508# xterm-r6.  The default keyboard appears to be 'linux'.
6509#
6510# Notes:
6511# a) konsole implements several features from XFree86 xterm, though none of
6512#    that is documented - except of course in its source code - apparently
6513#    because its implementors are unaccustomed to reading documentation - as
6514#    evidenced by the sparse and poorly edited documentation distributed with
6515#    konsole.  Some features such as the 1049 private mode are recognized but
6516#    incorrectly implemented as a duplicate of the 47 private mode.
6517# b) even with the "vt100 (historical)" keyboard setting, the numeric keypad
6518#    sends PC-style escapes rather than VT100.
6519# c) fails vttest menu 3 (Test of character sets) because it does not properly
6520#    parse some control sequences.  Also fails vttest Primary Device Attributes
6521#    by sending a bogus code (in the source it says it's supposed to be a
6522#    VT220, which is doubly incorrect because it does not implement VT220
6523#    control sequences except for a few special cases).  Treat it as a
6524#    mildly-broken VT102.
6525#
6526# Update for konsole 1.3.2:
6527#    The 1049 private mode works (but see the other xterm screens in vttest).
6528#    Primary Device Attributes now returns the code for a VT100 with advanced
6529#    video option.  Perhaps that's intended to be a "mildly-broken Vt102".
6530#
6531# Updated for konsole 1.6.4:
6532#    add konsole-solaris
6533#
6534# Updated for konsole 1.6.6:
6535#    add control-key modifiers for function-keys, etc.
6536#
6537# Updated for konsole 2.3 (October 2008):
6538#    vttest menu 1 shows that both konsole and gnome terminal do wrapping
6539#    different from xterm (and VT100's).  They have the same behavior in
6540#    this detail, but it is unclear which copies the other.
6541#
6542# Deferred update for konsole 2.10 (late 2012):
6543#    add SGR 1006 mouse
6544#
6545# Updated for konsole 2.12.4 (late 2013):
6546#    add sitm/ritm
6547#
6548# Updated for konsole 16.07 (mid 2016):
6549#    add dim, invis, strikeout
6550#    (also overline, which is too rarely used to provide as an extension)
6551#
6552# Updated for konsole 17.12.0 (late 2017):
6553#
6554# Re-enable "bel", since it is latent in the source-code even though KDE config
6555# often hides the feature (2020/5/30)
6556konsole-base|KDE console window (common),
6557	bce, km@, npc, XT,
6558	ncv@,
6559	ech=\E[%p1%dX, flash=\E[?5h$<100/>\E[?5l, kf1@, kf10@,
6560	kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@, kf2@,
6561	kf20@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, kfnd@, kslt@,
6562	rmam=\E[?7l, rs1=\Ec,
6563	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
6564	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
6565	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
6566	sgr0=\E[0m\017, smam=\E[?7h, rv=\E\\[>1;115;0c,
6567	xr=\EP>\\|Konsole ([1-9][.0-9])\E\\\\,
6568	use=ecma+underline, use=ecma+standout, use=ansi+rca2,
6569	use=ansi+sgrdim, use=ecma+index, use=xterm+focus,
6570	use=xterm+sm+1006, use=ecma+strikeout,
6571	use=ecma+italics, use=ecma+color, use=xterm-r6,
6572	use=vt220+cvis, use=bracketed+paste,
6573	use=report+version, use=xterm+pc+edit,
6574
6575# The keytab feature was introduced in 0.9.12 (February 2000) with "linux" and
6576# "vt100" key-table files along with a compiled-in default key-table.
6577#
6578# The main difference between the two keytabs was that the developer equated
6579# "vt100" with xterm, and noticed that the Linux console's F1-F5 differed from
6580# that.  For the same reason, the home/end keys differ.  A VT100 had none of
6581# that.  The otherwise identical keytabs have definitions to model the VT52
6582# cursor-keys and the VT100 cursor-keys with application versus normal modes.
6583#
6584# An "x11r5" keytab (displayed in the menu as "X11 R5") was added in January
6585# 2001, and shortly after retitled to "XFree 3.x.x".  Both it and "vt100" were
6586# dropped from the install in June 2008.
6587#
6588# The default keytab added in January 2000 was originally titled "X11 R6",
6589# and likewise retitled to "XFree 4".
6590#
6591# A "solaris" keytab was added in Febrary 2005, copying the "vt100" keytab
6592# and changing backspace to ^H, removing that keytab's attempt to model the
6593# VT100 keypad and VT52 (KDE #20459).
6594#
6595# The developers made changes to the default and linux keytabs.  Comparing
6596# the original and 2018 versions using diffstat:
6597#	default: 119 added, 147 deleted, 28 unchanged
6598#	linux:   47 added, 28 deleted, 104 unchanged
6599#
6600# Most of the change for the default keytab was to make konsole act more like
6601# xterm.  That was a feature named AnyMod which came in May 2005 for KDE #92749
6602# (see also Redhat #122815).  Later, in June 2007 the compiled-in keytab was
6603# made an external file (like "linux" and "solaris"), and some further
6604# refinement made.  But there are still flaws in the scheme.
6605#
6606# Essentially AnyMod maps the xterm "PC-style" modifier codes such as 2 for
6607# Shift into a placeholder in the table entries.  That works well if all of the
6608# modified keys are modified in the same way.  But xterm does not do that.  The
6609# first 4 function keys are used in xterm to support the VT100 PF1-PF4 keypad
6610# keys.  For example, F2 sends \EOQ in both terminals because of this feature.
6611# But a shifted F2 (F14=F2+12) differs like this, in infocmp's listing:
6612#	kf14: '\E[1;2Q', '\EO2Q'.
6613#
6614# In effect, a quarter of konsole's function-keys are different from xterm.
6615#
6616# It is not a simple blunder:
6617# a) xterm patch #121 (November 1999), providing the first version of the
6618#    PC-style modifiers would send \EO2Q
6619# b) xterm patch #216 (July 2006) amended this and other details, provided
6620#    better documentation for the modifiers and made the behavior configurable,
6621#    e.g., using the modifyFunctionKeys resource.  The reason why it sends
6622#    \E[1;2Q is that \E[O2Q is not a legal ECMA-48 control sequence.  The
6623#    changelog points this out as "avoid sending SS3 with parameters".
6624# c) That came after AnyMod was introduced, but still early enough that one
6625#    might expect konsole's developers to followup.  Twelve years later that
6626#    has yet to happen.
6627#
6628# As of 2018, konsole still provides 3 keyboard profiles ("XFree 4", "linux",
6629# "solaris").
6630konsole-linux|KDE console window with Linux keyboard,
6631	kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13@,
6632	kf14@, kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E[[B, kf20@,
6633	kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
6634	kf8=\E[19~, kf9=\E[20~, use=konsole-base,
6635konsole-solaris|KDE console window with Solaris keyboard,
6636	kbs=^H, kend=\E[4~, khome=\E[1~, use=konsole-vt100,
6637
6638# Obsolete: x11r5.keymap
6639# KDE's "XFree86 3.x.x" keyboard was obviously based on reading the xterm
6640# terminfo at the time rather than testing the code.
6641konsole-xf3x|KDE console window with keyboard for XFree86 3.x xterm,
6642	kend=\E[4~, khome=\E[1~, use=konsole-vt100,
6643
6644# The value for kbs (see konsole-vt100) reflects local customization rather
6645# than the settings used for XFree86 xterm.
6646konsole-xf4x|KDE console window with keyboard for XFree86 4.x xterm,
6647	kend=\EOF, khome=\EOH, use=konsole+pcfkeys,
6648	use=konsole-vt100,
6649
6650konsole+pcfkeys|konsole subset of xterm+pcfkeys,
6651	kcbt=\E[Z, use=xterm+pcc2, use=xterm+pcf0,
6652	use=xterm+pce2,
6653
6654# Obsolete: vt100.keymap
6655# KDE's "vt100" keyboard has no relationship to any terminal that DEC made, but
6656# it is still useful for deriving the other entries, since the developer
6657# provided function-keys based on xterm.
6658konsole-vt100|KDE console window with VT100 (sic) keyboard,
6659	kend=\E[F, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13@,
6660	kf14@, kf15@, kf16@, kf17@, kf18@, kf19@, kf20@, kf6=\E[17~,
6661	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
6662	use=xterm+r5+lockeys, use=konsole-base,
6663
6664# Obsolete: vt420pc.keytab was added in June 2000, dropped from the install in
6665# September 2008 and removed in June 2016.  The developer who removed it stated
6666# that it was never installed.
6667konsole-vt420pc|KDE console window with VT420 PC keyboard,
6668	kbs=^H, kdch1=^?, use=konsole-vt100,
6669
6670# make a default entry for konsole
6671konsole|KDE console window,
6672	use=konsole-xf4x,
6673
6674# These were written for ncurses:
6675konsole-16color|klone of xterm-16color,
6676	ncv#32, use=ibm+16color, use=konsole,
6677konsole-256color|KDE console window with xterm 256-colors,
6678	use=xterm+256setaf, use=konsole,
6679
6680#### MLTERM
6681# https://github.com/arakiken/mlterm
6682
6683mlterm|multi lingual terminal emulator,
6684	use=mlterm3,
6685
6686# Tested mlterm 3.9.0 (2020/09/19):
6687# ncurses:
6688# - has blinking text
6689# - has italics
6690# - has invisible-text
6691# tack:
6692# - has crossed-out text
6693# - does not support palette reset with OSC 104
6694# - testing the function-keys is difficult because the terminal is
6695#   preconfigured to set many of the modified keys to special functions, e.g.,
6696#   - shift-F1 and shift-F2 are bound to a split-screen feature
6697#   - control-F1 and control-F2 is bound to a new-terminal feature
6698# vttest:
6699# - primary response says it is a VT340 (ReGIS and Sixel).
6700# - has partial support for double-size characters.
6701# - character-set tests do not work.
6702# - DEC locator works.
6703# - 1006-mouse works.
6704# - focus-events do not work reliably.
6705# - numeric keypad escapes do not work.
6706# - back-color erase works
6707# other:
6708# - title-stack works.
6709# - doesn't respond to 8-bit controls.
6710# - 256-color palette initializing works.
6711# - DECSTR soft-reset is documented.
6712#
6713# Tested mlterm 3.3.8 (2018/01/21):
6714# found xterm+sm+1006 did not work with version 3.3.8
6715# soft-reset DECSTR is in sources since 2017/09/19.
6716#
6717# Tested mlterm 3.2.2 (2014/03/22):
6718# mlterm 3.x made further changes, but they were not reflected in the included
6719# mlterm.ti (which was dropped in 2015).  This entry has been based on testing
6720# with ncurses, tack and vttest -TD
6721mlterm3|multi lingual terminal emulator 3.x,
6722	bce, AX,
6723	blink=\E[5m, flash=\E[?5h$<100/>\E[?5l, invis=\E[8m,
6724	is2=\E[!p\E[?3;4l\E>, rs2=\E[!p\E[?3;4l\E>,
6725	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;%?
6726	    %p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
6727	rv=\E\\[>24;279;0c,
6728	xr=\EP>\\|mlterm\\([0-9][.0-9](-.*)?\\)?\E\\\\,
6729	use=ansi+enq, use=ansi+rep, use=ecma+italics,
6730	use=ecma+strikeout, use=xterm+app, use=xterm+pcf2,
6731	use=xterm+pcc2, use=xterm+pce2, use=xterm+meta,
6732	use=xterm+alt+title, use=xterm+sm+1006,
6733	use=vt100+pfkeys, use=bracketed+paste, use=mlterm2,
6734	use=report+version,
6735
6736# This is mlterm 2.9.3's mlterm.ti, with some additions/corrections -TD
6737#
6738# It is nominally a VT102 emulator, with features borrowed from rxvt and
6739# xterm.
6740#
6741# The function keys are numbered based on shift/control/alt modifiers, except
6742# that the control-modifier itself is used to spawn a new copy of mlterm (the
6743# "-P" option).  So control/F1 to control/F12 may not be usable, depending on
6744# how it is configured.
6745#
6746#				kf1 to kf12	\E[11~   to \E[24~
6747#	shift			kf1 to kf12	\E[11;2~ to \E[24;2~
6748#	alt			kf1 to kf12	\E[11;3~ to \E[24;3~
6749#	shift/alt		kf1 to kf12	\E[11;4~ to \E[24;4~
6750#	control			kf1 to kf12	\E[11;5~ to \E[24;5~ (maybe)
6751#	control/shift		kf1 to kf12	\E[11;6~ to \E[24;6~
6752#	control/alt		kf1 to kf12	\E[11;7~ to \E[24;7~
6753#	control/shift/alt	kf1 to kf12	\E[11;8~ to \E[24;8~
6754#
6755mlterm2|multi lingual terminal emulator 2.x,
6756	am, eslok, km, mc5i, mir, msgr, npc, xenl, XT,
6757	colors#8, cols#80, lines#24, pairs#64,
6758	acsc=00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6759	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
6760	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
6761	el1=\E[1K, enacs=, ich=\E[%p1%d@, ind=\n,
6762	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^?,
6763	kcbt=\E[Z, kend=\EOF, kent=\EOM, kind=\EO1;2B, kmous=\E[M,
6764	kri=\EO1;2A, mc0=\E[i, nel=\EE, op=\E[39;49m, rev=\E[7m,
6765	ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
6766	rmkx=\E[?1l\E>, rs1=\Ec,
6767	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l,
6768	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
6769	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
6770	    \E(B%;,
6771	sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
6772	smkx=\E[?1h\E=, u8=\E[?1;2c, use=ecma+underline,
6773	use=ecma+standout, use=ansi+apparrows, use=ansi+csr,
6774	use=ansi+cup, use=ansi+enq, use=ansi+idl,
6775	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
6776	use=vt220+vtedit, use=xterm+alt1049, use=ecma+index,
6777	use=mlterm+pcfkeys, use=vt220+cvis, use=xterm+r6f2,
6778
6779# The insert/delete/home/end keys do not respond to modifiers because mlterm
6780# looks in its termcap to decide which string to send.  If it used terminfo
6781# (when available), it could use the extended names introduced for xterm.
6782mlterm+pcfkeys|mlterm fragment for PC-style fkeys,
6783	kLFT=\EO1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\EO1;2C,
6784	kDN=\EO1;2B, kDN3=\EO1;3B, kDN4=\EO1;4B, kDN5=\EO1;5B,
6785	kDN6=\EO1;6B, kDN7=\EO1;7B, kIC5=\E[2;5~, kIC6=\E[2;6~,
6786	kLFT3=\EO1;3D, kLFT4=\EO1;4D, kLFT5=\EO1;5D,
6787	kLFT6=\EO1;6D, kLFT7=\EO1;7D, kNXT5=\E[6;5~,
6788	kNXT6=\E[6;6~, kPRV5=\E[5;5~, kPRV6=\E[5;6~,
6789	kRIT3=\EO1;3C, kRIT4=\EO1;4C, kRIT5=\EO1;5C,
6790	kRIT6=\EO1;6C, kRIT7=\EO1;7C, kUP=\EO1;2A, kUP3=\EO1;3A,
6791	kUP4=\EO1;4A, kUP5=\EO1;5A, kUP6=\EO1;6A, kUP7=\EO1;7A,
6792
6793mlterm-256color|mlterm 3.0 with xterm 256-colors,
6794	use=xterm+256color, use=mlterm,
6795
6796#### RXVT
6797# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
6798# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
6799# Notes:
6800# rxvt 2.21b uses
6801#	smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
6802# but some applications don't work with that.
6803# It also has an AIX extension
6804#	box2=lqkxjmwuvtn,
6805# and
6806#	ech=\E[%p1%dX,
6807# but the latter does not work correctly.
6808#
6809# The distributed terminfo says it implements hpa and vpa, but they are not
6810# implemented correctly, using relative rather than absolute positioning.
6811#
6812# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
6813# Since rxvt is not really compatible with xterm, it should be configured as
6814# "rxvt" or "rxvt-color".
6815#
6816# removed dch/dch1 because they are inconsistent with bce/ech -TD
6817# remove km as per tack test -TD
6818rxvt-basic|rxvt terminal base (X Window System),
6819	OTbs, bce, eo, mir, xenl, xon, XT,
6820	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H, cud1=\n,
6821	cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, el1=\E[1K,
6822	flash=\E[?5h$<100/>\E[?5l, ich=\E[%p1%d@,
6823	is1=\E[?47l\E=\E[?1l,
6824	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
6825	kcbt=\E[Z, kmous=\E[M, rev=\E[7m, ri=\EM, rmir=\E[4l,
6826	rmkx=\E>,
6827	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
6828	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
6829	    25h,
6830	s0ds=\E(B, s1ds=\E(0,
6831	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
6832	    %p9%t\016%e\017%;,
6833	sgr0=\E[0m\017, smir=\E[4h, smkx=\E=, smul=\E[4m,
6834	use=ecma+underline, use=ecma+standout, use=ansi+csr,
6835	use=ansi+idl, use=ansi+local, use=xterm+alt47,
6836	use=vt100+enq, use=vt100+4bsd, use=rxvt+pcfkeys,
6837	use=vt220+cvis, use=vt220+keypad,
6838
6839# Key Codes from rxvt reference:
6840#
6841# Note: Shift + F1-F10 generates F11-F20
6842#
6843# For the keypad, use Shift to temporarily override Application-Keypad
6844# setting use Num_Lock to toggle Application-Keypad setting if Num_Lock
6845# is off, escape sequences toggle Application-Keypad setting.
6846# Also note that values of Home, End, Delete may have been compiled
6847# differently on your system.
6848#
6849#                   Normal       Shift        Control      Ctrl+Shift
6850#  Tab              ^I           ESC [ Z      ^I           ESC [ Z
6851#  BackSpace        ^H           ^?           ^?           ^?
6852#  Find             ESC [ 1 ~    ESC [ 1 $    ESC [ 1 ^    ESC [ 1 @
6853#  Insert           ESC [ 2 ~    paste        ESC [ 2 ^    ESC [ 2 @
6854#  Execute          ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
6855#  Select           ESC [ 4 ~    ESC [ 4 $    ESC [ 4 ^    ESC [ 4 @
6856#  Prior            ESC [ 5 ~    scroll-up    ESC [ 5 ^    ESC [ 5 @
6857#  Next             ESC [ 6 ~    scroll-down  ESC [ 6 ^    ESC [ 6 @
6858#  Home             ESC [ 7 ~    ESC [ 7 $    ESC [ 7 ^    ESC [ 7 @
6859#  End              ESC [ 8 ~    ESC [ 8 $    ESC [ 8 ^    ESC [ 8 @
6860#  Delete           ESC [ 3 ~    ESC [ 3 $    ESC [ 3 ^    ESC [ 3 @
6861#  F1               ESC [ 11 ~   ESC [ 23 ~   ESC [ 11 ^   ESC [ 23 ^
6862#  F2               ESC [ 12 ~   ESC [ 24 ~   ESC [ 12 ^   ESC [ 24 ^
6863#  F3               ESC [ 13 ~   ESC [ 25 ~   ESC [ 13 ^   ESC [ 25 ^
6864#  F4               ESC [ 14 ~   ESC [ 26 ~   ESC [ 14 ^   ESC [ 26 ^
6865#  F5               ESC [ 15 ~   ESC [ 28 ~   ESC [ 15 ^   ESC [ 28 ^
6866#  F6               ESC [ 17 ~   ESC [ 29 ~   ESC [ 17 ^   ESC [ 29 ^
6867#  F7               ESC [ 18 ~   ESC [ 31 ~   ESC [ 18 ^   ESC [ 31 ^
6868#  F8               ESC [ 19 ~   ESC [ 32 ~   ESC [ 19 ^   ESC [ 32 ^
6869#  F9               ESC [ 20 ~   ESC [ 33 ~   ESC [ 20 ^   ESC [ 33 ^
6870#  F10              ESC [ 21 ~   ESC [ 34 ~   ESC [ 21 ^   ESC [ 34 ^
6871#  F11              ESC [ 23 ~   ESC [ 23 $   ESC [ 23 ^   ESC [ 23 @
6872#  F12              ESC [ 24 ~   ESC [ 24 $   ESC [ 24 ^   ESC [ 24 @
6873#  F13              ESC [ 25 ~   ESC [ 25 $   ESC [ 25 ^   ESC [ 25 @
6874#  F14              ESC [ 26 ~   ESC [ 26 $   ESC [ 26 ^   ESC [ 26 @
6875#  F15 (Help)       ESC [ 28 ~   ESC [ 28 $   ESC [ 28 ^   ESC [ 28 @
6876#  F16 (Menu)       ESC [ 29 ~   ESC [ 29 $   ESC [ 29 ^   ESC [ 29 @
6877#  F17              ESC [ 31 ~   ESC [ 31 $   ESC [ 31 ^   ESC [ 31 @
6878#  F18              ESC [ 32 ~   ESC [ 32 $   ESC [ 32 ^   ESC [ 32 @
6879#  F19              ESC [ 33 ~   ESC [ 33 $   ESC [ 33 ^   ESC [ 33 @
6880#  F20              ESC [ 34 ~   ESC [ 34 $   ESC [ 34 ^   ESC [ 34 @
6881#
6882#                                                          Application
6883#  Up               ESC [ A      ESC [ a      ESC O a      ESC O A
6884#  Down             ESC [ B      ESC [ b      ESC O b      ESC O B
6885#  Right            ESC [ C      ESC [ c      ESC O c      ESC O C
6886#  Left             ESC [ D      ESC [ d      ESC O d      ESC O D
6887#  KP_Enter         ^M                                     ESC O M
6888#  KP_F1            ESC O P                                ESC O P
6889#  KP_F2            ESC O Q                                ESC O Q
6890#  KP_F3            ESC O R                                ESC O R
6891#  KP_F4            ESC O S                                ESC O S
6892#  XK_KP_Multiply   *                                      ESC O j
6893#  XK_KP_Add        +                                      ESC O k
6894#  XK_KP_Separator  ,                                      ESC O l
6895#  XK_KP_Subtract   -                                      ESC O m
6896#  XK_KP_Decimal    .                                      ESC O n
6897#  XK_KP_Divide     /                                      ESC O o
6898#  XK_KP_0          0                                      ESC O p
6899#  XK_KP_1          1                                      ESC O q
6900#  XK_KP_2          2                                      ESC O r
6901#  XK_KP_3          3                                      ESC O s
6902#  XK_KP_4          4                                      ESC O t
6903#  XK_KP_5          5                                      ESC O u
6904#  XK_KP_6          6                                      ESC O v
6905#  XK_KP_7          7                                      ESC O w
6906#  XK_KP_8          8                                      ESC O x
6907#  XK_KP_9          9                                      ESC O y
6908#
6909# The source-code for rxvt actually defines mappings for F21-F35, using
6910# "ESC [ 35 ~" to "ESC [  49 ~".  Keyboards with more than 12 function keys
6911# are rare, so this entry uses the shift- and control-modifiers as in
6912# xterm+pcfkeys to define keys past F12.
6913#
6914# kIC is normally not used, since rxvt performs a paste for that (shifted
6915# insert), unless private mode 35 is set.
6916#
6917# kDN, kDN5, kDN6, etc are extensions based on the names from xterm+pcfkeys -TD
6918# Removed kDN6, etc (control+shift) since rxvt does not implement this -TD
6919rxvt+pcfkeys|rxvt fragment for PC-style fkeys,
6920	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kIC=\E[2$, kLFT=\E[d,
6921	kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, kel=\E[8\^, kend=\E[8~,
6922	kf21=\E[23$, kf22=\E[24$, kf23=\E[11\^, kf24=\E[12\^,
6923	kf25=\E[13\^, kf26=\E[14\^, kf27=\E[15\^, kf28=\E[17\^,
6924	kf29=\E[18\^, kf30=\E[19\^, kf31=\E[20\^, kf32=\E[21\^,
6925	kf33=\E[23\^, kf34=\E[24\^, kf35=\E[25\^, kf36=\E[26\^,
6926	kf37=\E[28\^, kf38=\E[29\^, kf39=\E[31\^, kf40=\E[32\^,
6927	kf41=\E[33\^, kf42=\E[34\^, kf43=\E[23@, kf44=\E[24@,
6928	khome=\E[7~, kind=\E[a, kri=\E[b, kDC5=\E[3\^, kDC6=\E[3@,
6929	kDN=\E[b, kDN5=\EOb, kEND5=\E[8\^, kEND6=\E[8@,
6930	kHOM5=\E[7\^, kHOM6=\E[7@, kIC5=\E[2\^, kIC6=\E[2@,
6931	kLFT5=\EOd, kNXT5=\E[6\^, kNXT6=\E[6@, kPRV5=\E[5\^,
6932	kPRV6=\E[5@, kRIT5=\EOc, kUP=\E[a, kUP5=\EOa,
6933	use=vt100+noapp, use=vt220+vtedit, use=xterm+nopcfkeys,
6934
6935# rxvt was originally "xvt", first announced in April 1993:
6936#------------------------------------------------------------------------------
6937# Article: 567 of comp.os.linux.announce
6938# Path: pavo.csi.cam.ac.uk!warwick!uknet!pipex!uunet!zaphod.mps.ohio-state.edu!
6939# caen!batcomputer!theory.TC.Cornell.EDU!mdw
6940# From: nation@rocket.sanders.com (Robert Nation)
6941# Newsgroups: comp.os.linux.announce
6942# Subject: xvt upload
6943# Date: 16 Apr 1993 18:13:07 GMT
6944# Organization: Cornell Theory Center
6945# Lines: 13
6946# Approved: linux-announce@tc.cornell.edu (Matt Welsh)
6947# Message-ID: <1qmsvj$pvj@fitz.TC.Cornell.EDU>
6948# NNTP-Posting-Host: theory.tc.cornell.edu
6949# Keywords: xvt, xterm, Xwindows
6950# Originator: mdw@theory.TC.Cornell.EDU
6951#
6952# Rxvt has been uploaded to /pub/Linux/Incoming/rxvt.tar.z and
6953# rxvt.README on sunsite.unc.edu.
6954#
6955# Xvt is an xterm replacement which uses a little less memory, and is
6956# suitable for use on machines with small memories. Tek4010 support
6957# is removed.
6958#
6959# Modifications were made by Rob Nation (nation@rocket.sanders.lockheed.com)
6960# to make it a little more compact, and to add and remove certain features.
6961#
6962#
6963# --
6964# Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
6965#------------------------------------------------------------------------------
6966#
6967# Though its change-log does not mention this, John Davis has stated that he
6968# was the author of the changes to use the bce ("new color model") which was
6969# incorporated into rxvt 2.11 (June 15, 1995).  The change-log does not give
6970# dates, nor give developer's names.  Initial color support was added for rxvt
6971# "2.0", which was sometime in 1994.
6972#
6973# rxvt had usable color support with 2.16 (April 2, 1996), with some help by my
6974# work on vttest, as well as bug reports to Mark Olesen.  For instance, the fix
6975# mentioned here
6976#	https://web.archive.org/web/20141016124430/http://web.archiveorange.com/archive/v/6ETvLb5wHtbbzCaS4S9J
6977# was from one of my bug-reports -TD
6978#
6979# While the color model both for xterm and rxvt was based on Linux console,
6980# Olesen (or possibly Davis) diverged in one respect from Linux's bce color
6981# behavior: inserting/deleting characters does not fill the newly empty cell
6982# with the default background color.
6983rxvt|rxvt-color|rxvt terminal emulator (X Window System),
6984	ncv@,
6985	kf0=\E[21~, sgr0=\E[m\017, use=ansi+rca2, use=rxvt-basic,
6986	use=ecma+color,
6987rxvt-256color|rxvt 2.7.9 with xterm 256-colors,
6988	use=xterm+256color, use=rxvt,
6989rxvt-88color|rxvt 2.7.9 with xterm 88-colors,
6990	use=xterm+88color, use=rxvt,
6991rxvt-xpm|rxvt terminal emulator (X Window System with xpm),
6992	use=rxvt,
6993rxvt-cygwin|rxvt terminal emulator (X Window System) on cygwin,
6994	acsc=+\257\,\256-\^0\333`\004a\261f\370g\361h\260j\331k
6995	     \277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w
6996	     \302x\263y\363z\362{\343|\330}\234~\376,
6997	use=rxvt,
6998rxvt-cygwin-native|rxvt terminal emulator (native MS Window System port) on cygwin,
6999	acsc=+\257\,\256-\^0\333`\004a\261f\370g\361h\260j\331k
7000	     \277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w
7001	     \302x\263y\363z\362{\343|\330~\376,
7002	use=rxvt-cygwin,
7003
7004# This variant is supposed to work with rxvt 2.7.7 when compiled with
7005# NO_BRIGHTCOLOR defined.  rxvt needs more work...
7006rxvt-16color|rxvt with 16 colors like aixterm,
7007	ncv#32, use=ibm+16color, use=rxvt,
7008
7009#### MRXVT
7010# mrxvt 0.5.4
7011#
7012# mrxvt is based on rxvt 2.7.11, but has by default XTERM_FKEYS defined, which
7013# makes its function-keys different from other flavors of rxvt -TD
7014#
7015# Testing with tack:
7016# +	made custom description (below) to work, though it sets TERM=xterm.
7017#
7018# Testing with vttest:
7019# +	While "based on" rxvt, some of the basic functionality is broken.  The
7020#	window collapses to a single line when running several of the screens
7021#	in vttest, e.g., the tests for cursor movement, screen features,
7022#	double-sized characters.
7023# +	The VT52 test works properly, but this is an exception.  Due to the
7024#	other bug(s) most of vttest is untestable.
7025# +	the color test using ECH shows a gap in the bce model, like rxvt.
7026#
7027# Testing with xterm "vttest" scripts:
7028# +	resize.pl does not work because mrxvt does implement CSI 18 t
7029#	(not in rxvt, but not documented by mrxvt) but not CSI 19 t.
7030# +	none of the "dynamic colors" (OSC colors) scripts work.
7031mrxvt|multitabbed rxvt,
7032	kEND=\E[8;2~, kHOM=\E[7;2~, kcub1=\E[D, kcud1=\E[B,
7033	kcuf1=\E[C, kcuu1=\E[A, kend=\E[8~, khome=\E[7~,
7034	kEND3=\E[8;3~, kEND4=\E[8;4~, kEND5=\E[8;5~,
7035	kEND6=\E[8;6~, kEND7=\E[8;7~, kHOM3=\E[7;3~,
7036	kHOM4=\E[7;4~, kHOM5=\E[7;5~, kHOM6=\E[7;6~,
7037	kHOM7=\E[7;7~, use=xterm+r6f2, use=xterm+pcfkeys,
7038	use=rxvt,
7039
7040mrxvt-256color|multitabbed rxvt with 256 colors,
7041	use=xterm+256color, use=mrxvt,
7042
7043#### ETERM
7044# From: Michael Jennings <mej@valinux.com>
7045#
7046# Eterm 0.9.3
7047#
7048# removed kf0 which conflicts with kf10 -TD
7049# remove cvvis which conflicts with cnorm -TD
7050# Eterm does not implement control/shift cursor keys such as kDN6, or kPRV/kNXT
7051# but does otherwise follow the rxvt+pcfkeys model -TD
7052# remove nonworking flash -TD
7053# remove km as per tack test -TD
7054Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
7055	bce, bw, eo, mc5i, mir, xenl, xon, XT,
7056	btns#5, lm#0, ncv@,
7057	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H,
7058	cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
7059	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
7060	ich=\E[%p1%d@, is1=\E[?47l\E>\E[?1l,
7061	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kNXT@,
7062	kPRV@, ka1=\E[7~, ka3=\E[5~, kb2=\EOu, kbeg=\EOu, kc1=\E[8~,
7063	kc3=\E[6~, kent=\EOM, khlp=\E[28~, kmous=\E[M, mc4=\E[4i,
7064	mc5=\E[5i, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmir=\E[4l, rmkx=,
7065	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
7066	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
7067	    25h,
7068	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
7069	    %;m%?%p9%t\016%e\017%;,
7070	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h, smkx=, smul=\E[4m,
7071	use=ecma+underline, use=ecma+standout, use=ansi+csr,
7072	use=ansi+idl, use=ansi+local, use=ansi+rca2,
7073	use=xterm+alt47, use=vt100+enq, use=rxvt+pcfkeys,
7074	use=ecma+color, use=vt100+4bsd, use=vt220+cvis,
7075
7076Eterm-256color|Eterm with xterm 256-colors,
7077	use=xterm+256color, use=Eterm,
7078
7079Eterm-88color|Eterm with 88 colors,
7080	use=xterm+88color, use=Eterm,
7081
7082#### ATERM
7083# Based on rxvt 2.4.8, it has a few differences in key bindings
7084aterm|AfterStep terminal,
7085	XT,
7086	kbs=^?, use=vt100+pf1-pf4, use=rxvt,
7087
7088#### XITERM
7089# xiterm  0.5-5.2
7090# This is not based on xterm's source...
7091# vttest shows several problems with keyboard, cursor-movements.
7092# see also https://invisible-island.net/xterm/xterm.faq.html#bug_xiterm
7093xiterm|internationalized terminal emulator for X,
7094	km@, use=klone+color, use=xterm-r6,
7095
7096
7097#### HPTERM
7098# HP ships this (HPUX 9 and 10), except for the pb#9600 which was merged in
7099# from BSD termcap.  (hpterm:  added empty <acsc>, we have no idea what ACS
7100# chars look like --esr)
7101hpterm|X-hpterm|HP X11 terminal emulator (old),
7102	am, da, db, mir, xhp, xon,
7103	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0,
7104	acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=\r,
7105	cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC,
7106	cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK,
7107	hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=\n, kbs=^H,
7108	kclr=\EJ, kctab=\E2, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK,
7109	khts=\E1, kich1=\EQ, kil1=\EL, knp=\EU, kpp=\EV, krmir=\ER,
7110	ktbc=\E3, meml=\El, memu=\Em,
7111	pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
7112	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
7113	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
7114	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
7115	rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@,
7116	rmul=\E&d@,
7117	sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+
7118	    %p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
7119	sgr0=\E&d@\017, smacs=^N, smir=\EQ, smkx=\E&s1A,
7120	smln=\E&jB, smso=\E&dJ, smul=\E&dD, tbc=\E3,
7121	vpa=\E&a%p1%dY, use=hp+pfk-cr, use=hp+arrows,
7122# HPUX 11 provides a color version.
7123hpterm-color|HP X11 terminal emulator with color,
7124	ccc,
7125	colors#64, pairs#8,
7126	home=\E&a0y0C,
7127	initp=\E&v%p2%da%p3%db%p4%dc%p5%dx%p6%dy%p7%dz%p1%dI,
7128	op=\E&v0S, scp=\E&v%p1%dS, use=hpterm,
7129
7130# http://bitsavers.trailing-edge.com/pdf/hp/9000_hpux/1986/97089-90081_198611_Facilities_for_Series_200_300_and_500.pdf
7131# http://bitsavers.trailing-edge.com/pdf/hp/9000_hpux/1987/97089-90081_198709_Facilities_for_Series_200_300_and_500_HP-UX_Concepts_and_Tutorials.pdf
7132#
7133# This article does not cover the HP 46020A keyboard that is used by the Model
7134# 217 and 237 computers.  For information on this keyboard read the article,
7135# "The Series 300 ITE as System Console" found in the manual, HP-UX Concepts
7136# and Tutorials, Vol.  7.
7137#
7138# Possibly:
7139# http://bitsavers.trailing-edge.com/pdf/hp/9000_hpux/1986/97089-90042_198608_HP-UX_Concepts_and_Tutorials.pdf
7140#
7141# HP300_Series_ITE.pdf
7142#
7143# This version, which came from Martin Trusler, was tested with lynx using
7144# ncurses 5.4
7145hpterm-color2|X-hpterm-color2|HP X11 terminal emulator with color (new),
7146	OTbs, am, ccc, da, db, km, mir, xhp,
7147	colors#8, cols#80, it#8, lh#2, lines#24, lm#0, lw#8, nlab#8,
7148	pairs#8, xmc#0,
7149	acsc=+>\,<-\^.v0\374``a\374f\372g\376h\374j+k+l+m+n+o-q-s-t+
7150	     u+v+w+x|y<z>{*|!}\273~\362,
7151	bel=^G, bold=\E&dD, cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=^H,
7152	cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
7153	dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK,
7154	home=\E&a0y0C, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL,
7155	ind=\ES,
7156	initp=\E&v0m%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.
7157	      %p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1
7158	      %e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=
7159	      %t1%e.%p7%d%;z%p1%dI,
7160	is1=\EH\EJ, kbs=^H, kctab=\E2, kdch1=\EP, kdl1=\EM, ked=\EJ,
7161	kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL, knp=\EU, kpp=\EV,
7162	krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
7163	oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5
7164	   I\E&v1b1c6I\E&v1x1y7I,
7165	op=\E&v0S, pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
7166	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
7167	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
7168	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
7169	rmacs=^O, rmam=\E&s1C, rmcup=\E&s0A, rmir=\ER, rmkx=\E&s0A,
7170	rmln=\E&j@, rmm=\E&k0I, rmso=\E&d@, rmul=\E&d@, rs1=\EE,
7171	scp=\E&v%p1%dS,
7172	sgr=\E&d%p1%p3%|%{2}%*%p2%p6%|%{4}%*%+%p5%{8}%*%+%{64}%+%c%?
7173	    %p9%t%'\016'%c%e%'\017'%c%;,
7174	sgr0=\E&d@\017, smacs=^N, smam=\E&s0C, smcup=\E&s1A,
7175	smir=\EQ, smkx=\E&s1A, smln=\E&jB, smm=\E&k1I, smso=\E&dB,
7176	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, use=hp+pfk-cr,
7177	use=hp+arrows,
7178#### EMU
7179# This is for the extensible terminal emulator on the X11R6 contrib tape.
7180# It corresponds to emu's internal emulation:
7181#	emu -term emu
7182# emu's default sets TERM to "xterm", but that doesn't work well -TD
7183# fixes: remove bogus rmacs/smacs, change oc to op, add bce, am -TD
7184# fixes: add civis, cnorm, sgr -TD
7185emu|emu native mode,
7186	am, bce, mir, msgr, xon,
7187	colors#15, cols#80, it#8, lines#24, pairs#64, vt#200,
7188	acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s
7189	     \224t\225u\226v\227w\230x\231~\244,
7190	bel=^G, blink=\EW, bold=\EU, civis=\EZ, clear=\EP\EE0;0;,
7191	cnorm=\Ea, cr=\r, csr=\Ek%p1%d;%p2%d;, cub=\Eq-%p1%d;,
7192	cub1=^H, cud=\Ep%p1%d;, cud1=\EB, cuf=\Eq%p1%d;, cuf1=\EC,
7193	cup=\EE%p1%d;%p2%d;, cuu=\Ep-%p1%d;, cuu1=\EA,
7194	dch=\EI%p1%d;, dch1=\EI1;, dl=\ER%p1%d;, dl1=\ER1;,
7195	ech=\Ej%p1%d;, ed=\EN, el=\EK, el1=\EL, home=\EE0;0;, ht=^I,
7196	hts=\Eh, il=\EQ%p1%d;, il1=\EQ1;, ind=\EG,
7197	is2=\ES\Er0;\Es0;, kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED,
7198	kcuu1=\EA, kdch1=^?, kent=\r, kf0=\EF00, kf1=\EF01,
7199	kf10=\EF10, kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14,
7200	kf15=\EF15, kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19,
7201	kf2=\EF02, kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05,
7202	kf6=\EF06, kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind,
7203	kich1=\Eins, knp=\Enext, kpp=\Eprior, kslt=\Esel,
7204	op=\Es0;\Er0;, rev=\ET, ri=\EF, rmir=\EX, rmso=\ES, rmul=\ES,
7205	rs2=\ES\Es0;\Er0;, setab=\Es%i%p1%d;,
7206	setaf=\Er%i%p1%d;,
7207	sgr=\ES%?%p1%t\ET%;%?%p2%t\EV%;%?%p3%t\ET%;%?%p4%t\EW%;%?%p6
7208	    %t\EU%;,
7209	sgr0=\ES, smir=\EY, smso=\ET, smul=\EV, tbc=\Ej,
7210
7211# VT220 terminfo entry for the Emu emulation, corresponds to
7212#	emu -term vt220
7213# with NumLock set (to make the keypad transmit kf0-kf9).
7214# fixes: add am, xenl, corrected sgr0 -TD
7215emu-220|Emu-220 (vt200-7bit mode),
7216	am, xenl, xon,
7217	cols#80, it#8, lines#24, vt#200,
7218	acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
7219	blink=\E[0;5m, bold=\E[0;1m, clear=\E[2J\E[H, cr=\r,
7220	cub1=\E[1D, cud1=\E[1B, cuf1=\E[1C, cuu1=\E[1A,
7221	dch=\E[%p1%dP, dch1=\E[1P, dl=\E[%p1%dM, dl1=\E[1M,
7222	ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E)0, ht=^I, hts=\EH,
7223	if=/usr/share/tabset/vt300, il=\E[%p1%dL, il1=\E[1L,
7224	ind=\ED, is2=\E>\E[?1l\E[?3l\E[4l\E[?7h, kbs=^H,
7225	kcmd=\E[29~, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7226	kcuu1=\E[A, kent=\EOM, kf0=\EOp, kf1=\EOq, kf10=\EOl,
7227	kf11=\EOm, kf12=\EOn, kf13=\EOP, kf14=\EOQ, kf15=\EOR,
7228	kf16=\EOS, kf2=\EOr, kf26=\E[17~, kf27=\E[18~, kf28=\E[19~,
7229	kf29=\E[20~, kf3=\EOs, kf30=\E[21~, kf34=\E[26~,
7230	kf37=\E[31~, kf38=\E[32~, kf39=\E[33~, kf4=\EOt,
7231	kf40=\E[34~, kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx,
7232	kf9=\EOy, khlp=\E[28~, rev=\E[0;7m, ri=\EM, rmacs=^O,
7233	rmcup=\E>, rmkx=\E>, rmso=\E[m, rmul=\E[m,
7234	rs2=\E[4l\E[34l\E[?1l\E[?3l\E[?5l\E[?7h,
7235	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
7236	    2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7237	sgr0=\E[m\017, smacs=^N, smcup=\E[?1l\E=, smkx=\E=,
7238	smso=\E[0;7m, smul=\E[0;4m, tbc=\E[3g, use=ansi+csr,
7239	use=ansi+cup, use=ansi+local, use=vt220+vtedit,
7240	use=vt220+cvis,
7241
7242#### MVTERM
7243# A commercial product, Reportedly a version of Xterm with an OPEN LOOK UI,
7244# print interface, ANSI X3.64 colour escape sequences, etc.  Newsgroup postings
7245# indicate that it emulates more than one terminal, but incompletely.
7246#
7247# This is adapted from a FreeBSD bug-report by Daniel Rudy <dcrudy@pacbell.net>
7248# It is based on vt102's entry, with some subtle differences, but also
7249#	has status line
7250#	supports ANSI colors (except for 'op' string)
7251#	apparently implements alternate screen like xterm
7252#	does not use padding, of course.
7253mvterm|vv100|SwitchTerm aka mvTERM,
7254	km, mir, xenl, xon,
7255	colors#8, pairs#64,
7256	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H, cud1=\n,
7257	cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J,
7258	el=\E[K, ich=\E[%p1%d@, ich1=\E[@, kcub1=\EOD, kcud1=\EOB,
7259	kcuf1=\EOC, kcuu1=\EOA, op=\E[100m, rev=\E[7m, ri=\EM,
7260	rmkx=\E[?1l\E>, rmso=\E[m,
7261	rs2=\E>\E[1;3;4;5;6l\E[?7h\E[100m\E[m\E[r\E[2J\E[H,
7262	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
7263	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
7264	    %;m%?%p9%t\016%e\017%;,
7265	sgr0=\E[m\017, smkx=\E[?1h\E=, smso=\E[7m, use=ansi+csr,
7266	use=ansi+idl, use=ansi+local, use=ansi+sgrul,
7267	use=xterm+alt47, use=vt100+fnkeys, use=vt100+4bsd,
7268	use=x10term+sl,
7269
7270#### MTERM
7271#
7272# This application is available by email from <mouse@Rodents.Montreal.QC.CA>.
7273#
7274# "mterm -type ansi" sets $TERM to "ansi"
7275mterm-ansi|ANSI emulation,
7276	am, bw, mir, msgr,
7277	it#8,
7278	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7279	bel=^G, cr=\r, dch=\E[%p1%dP, dim=\E[2m, ech=\E[%p1%dX,
7280	hpa=\E[%i%p1%d`, ht=^I, ich1=, ind=\E[S, is2=\E)0\017,
7281	kbs=^H, nel=\EE, ri=\E[T, rmacs=^O,
7282	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
7283	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7284	sgr0=\E[m\017, smacs=^N, vpa=\E[%i%p1%dd,
7285	use=ecma+underline, use=ecma+standout, use=ansi+cup,
7286	use=ansi+erase, use=ansi+idc1, use=ansi+idl,
7287	use=ansi+local, use=ansi+sgrbold, use=ecma+index,
7288
7289# mterm normally sets $TERM to "mterm"
7290mterm|mouse-sun|Der Mouse term,
7291	am, bw, mir,
7292	it#8,
7293	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=^N, cuf1=^S,
7294	cup=\006%p1%d.%p2%d., cuu1=^X, dch1=^Y, dl1=^K, ed=^B, el=^C,
7295	home=^P, ht=^I, il1=^A, ind=^U, kbs=^H, ll=^R, nel=\r^U, ri=^W,
7296	rmir=^O, rmso=^T, smir=^Q, smso=^V,
7297# "mterm -type decansi" sets $TERM to "decansi"
7298#
7299# note: kdch1, kfnd, kslt are in the source code, but do not work -TD
7300decansi|ANSI emulation with DEC compatibility hacks,
7301	am, mir, msgr, xenl,
7302	colors#8, it#8, pairs#64,
7303	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7304	bel=^G, cr=\r, dch=\E[%p1%dP, dim=\E[2m, ech=\E[%p1%dX,
7305	enacs=\E(B\E)0, hpa=\E[%i%p1%d`, ht=^I, ich1=, ind=\E[S,
7306	is2=\E)0\E[r\017, kbs=^H, kcub1=\EOD, kcud1=\EOB,
7307	kcuf1=\EOC, kcuu1=\EOA, nel=\EE, op=\E[0m, ri=\E[T, rmacs=^O,
7308	rmam=\E[?7l, rmkx=\E[?1l\E>, setab=\E[4%p1%dm,
7309	setaf=\E[3%p1%dm,
7310	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
7311	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7312	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
7313	vpa=\E[%i%p1%dd, use=ecma+underline, use=ecma+standout,
7314	use=ansi+cpr, use=ansi+csr, use=ansi+cup, use=ansi+erase,
7315	use=ansi+idc1, use=ansi+idl, use=ansi+local,
7316	use=ansi+sgrbold, use=vt220+vtedit, use=ecma+index,
7317	use=vt220+cvis, use=vt220+sfkeys, use=xterm+r5+fkeys,
7318
7319#### VWM
7320# http://vwm.sourceforge.net/
7321#
7322# VWM 2.0.2 (2009-05-01)
7323# vwmterm is a terminal emulator written for the VWM console window manager.
7324# This version is obsolete, replaced by libvterm in 2.1.0 (2009-10-23).
7325vwmterm|VWM terminal,
7326	am, bce, ccc, mir, msgr, npc, xenl, xon,
7327	colors#8, pairs#64,
7328	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7329	bel=^G, bold=\E[1m, cr=\r, cub1=^H, cvvis=\E[?25h, dim=\E[2m,
7330	il1=\E[L, ind=\n, kdch1=\E[3~, kend=\E[4~, kf11=\E[22~,
7331	kf12=\E[23~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
7332	rmam=\E[?7l, rs1=\E[H\E[J\E[m\Ec, setab=\E[4%p1%dm,
7333	setaf=\E[3%p1%dm,
7334	sgr=\E[0;10%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
7335	    %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
7336	sgr0=\E[0;10m, smam=\E[?7h, smso=\E[3m, smul=\E[4m,
7337	use=ansi+cup, use=ansi+erase, use=ansi+local,
7338	use=ansi+sgr, use=klone+acs, use=linux+lockeys,
7339	use=vt100+noapp, use=vt220+cvis, use=vt220+ufkeys,
7340	use=xterm+alt1049,
7341
7342#### MGR
7343#
7344# MGR is a Bell Labs window system lighter-weight than X.
7345# These entries describe MGR's xterm-equivalent.
7346# They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997
7347#
7348
7349mgr|Bellcore MGR (non X) window system terminal emulation,
7350	am, km, xon,
7351	bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=\r,
7352	csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er,
7353	cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h,
7354	dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>,
7355	dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u,
7356	ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>,
7357	il1=\Ea$<3>, ind=\n, kbs=^H, kcub1=\E[D, kcud1=\E[B,
7358	kcuf1=\E[C, kcuu1=\E[A, nel=\r\n, rev=\E1n, rmam=\E5S,
7359	rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n,
7360	smul=\E4n,
7361mgr-sun|Mgr window with Sun keyboard,
7362	ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z,
7363	kc3=\E[222z, kcpy=\E[197z, kend=\E[220z, kent=\E[250z,
7364	kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z,
7365	kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z,
7366	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
7367	kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z,
7368	kopn=\E[198z, kpp=\E[216z, kund=\E[195z, use=mgr,
7369mgr-linux|Mgr window with Linux keyboard,
7370	ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~,
7371	kdch1=\E[3~, kf0=\E[[J, knp=\E[6~, kpp=\E[5~,
7372	use=linux+lockeys, use=vt220+ufkeys, use=xterm+pc+edit,
7373	use=mgr,
7374
7375#### SIMPLETERM
7376# st.suckless.org
7377
7378st|stterm|aka simpleterm,
7379	use=st-0.8.5,
7380
7381# Reviewed 0.9.2 (Debian testing package "stterm"):
7382# Inspected source, saw nothing to change in terminfo.
7383#
7384# Reviewed 0.8.5 (Debian stable package "stterm"):
7385# In tack,
7386#	sends nothing for control- and alt-modifiers to function-keys
7387#	does not support application-mode for numeric keypad
7388# In vttest,
7389#	identifies as a VT102
7390#	SRM, DECTCEM and ECH work, but not DECSCA
7391#	incomplete DECSCUSR, shapes work but no blinking cursor
7392#	SD and SL work, but not SL or SR
7393#	supports normal, button-event and any-event mouse
7394#	focus events are unreliable
7395# Other:
7396#	supports xterm OSC 12, but not 112, so Cs applies but not Cr
7397#	OSC allows ST \E\\ in addition to \007
7398st-0.8.5|simpleterm 0.8.5,
7399	Cs=\E]12;%p1%s\007, use=ansi+rep, use=st-0.8,
7400
7401# Reviewed 0.8.2:
7402# In tack,
7403#	there is some problem turning off line-drawing
7404#	shift+control function-keys do nothing; shift+control cursor keys work
7405#	the padding tests make the terminal non-functional.
7406# In vttest,
7407#	SD/SU work
7408#	SL/SR/REP do not work
7409#	ECMA-48 cursor movement works, e.g., CHA, CBT, etc.
7410#
7411# This entry discards the ccc/initc capabilities from st-0.7 because they
7412# belong in st-256color.
7413st-0.8|simpleterm 0.8,
7414	kcbt@, kent@, oc=\E]104\007, Ms=\E]52;%p1%s;%p2%s\007,
7415	kDN3=\E[1;3B, kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
7416	kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
7417	kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
7418	kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
7419	use=st-0.6,
7420
7421# Reviewed 0.7:
7422#	dim is intermittent, sometimes works, sometimes does not
7423#	italics may show up with yellow color
7424#	has control cursor-keys, alt cursor-keys, still no combinations
7425#	has control pageup/down
7426# tmux extensions, see TERMINFO EXTENSIONS in tmux(1)
7427#	Se and Ss are implemented in the source-code, but the terminfo
7428#	provided with the source is incorrect, since Se/Ss are mis-coded
7429#	as booleans rather than strings.
7430st-0.7|simpleterm 0.7,
7431	kcbt@, kent@, Ms=\E]52;%p1%s;%p2%s\007, kDN3=\E[1;3B,
7432	kDN5=\E[1;5B, kLFT3=\E[1;3D, kLFT5=\E[1;5D,
7433	kNXT3=\E[6;3~, kNXT5=\E[6;5~, kPRV3=\E[5;3~,
7434	kPRV5=\E[5;5~, kRIT3=\E[1;3C, kRIT5=\E[1;5C,
7435	kUP3=\E[1;3A, kUP5=\E[1;5A, use=ecma+strikeout,
7436	use=st-0.6, use=xterm+256color,
7437
7438# st-0.4.1
7439#
7440# This version uses a table which supports a single modifier (a subset of
7441# xterm's keys, using the same scheme).  Because it supports only a single
7442# modifier in this table, function keys f36-f48 are normally unavailable
7443# because they are assigned to modifier-4.
7444#
7445# The program assigns TERM to match the program name (the upstream source says
7446# "st", but Debian renames it to "stterm").
7447#
7448# The source includes two entries which are not useful here:
7449#	st-meta| simpleterm with meta key,
7450#	st-meta-256color| simpleterm with meta key and 256 colors,
7451# because st's notion of "meta" does not correspond to the terminfo definition.
7452# Rather, it acts like xterm - when the meta feature is disabled.
7453#
7454# Removed invis -TD
7455# Added eo, removed ul -TD
7456#
7457# Reviewed st 0.5:
7458# implements control-modifier, but not control-shift for special keys
7459# implements alt-modifier, but not alt-shift for special keys
7460#
7461# Reviewed st 0.6:
7462#	http://git.suckless.org/st/log/st.info
7463# Tmux unofficial extensions, see TERMINFO EXTENSIONS in tmux(1)
7464# still has no function keys past kf36 (no combinations of modifiers)
7465# no application keypad mode, e.g, kent.
7466st-0.6|simpleterm 0.6,
7467	bce, mir, npc, xenl, XT,
7468	colors#8, pairs#64,
7469	acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyy
7470	     zz{{||}}~~,
7471	clear=\E[H\E[2J, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH,
7472	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
7473	ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
7474	flash=\E[?5h$<100/>\E[?5l, ich=\E[%p1%d@,
7475	is2=\E[4l\E>\E[?1034l, kDC=\E[3;2~, kEND=\E[1;2F,
7476	kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~,
7477	kPRV=\E[5;2~, kRIT=\E[1;2C, ka1=\E[1~, ka3=\E[5~, kb2=\EOu,
7478	kbs=^?, kc1=\E[4~, kc3=\E[6~, kcbt=\E[Z, kclr=\E[3;5~,
7479	kdl1=\E[3;2~, ked=\E[1;5F, kel=\E[1;2F, khome=\E[1~,
7480	kil1=\E[2;5~, kind=\E[1;2B, kmous=\E[M, kri=\E[1;2A,
7481	krmir=\E[2;2~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
7482	op=\E[39;49m, ri=\EM, rmacs=\E(B, rmir=\E[4l,
7483	rmkx=\E[?1l\E>, rs1=\Ec, rs2=\E[4l\E>\E[?1034l,
7484	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
7485	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
7486	     %=%t3%e%p1%d%;m,
7487	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
7488	     %=%t3%e%p1%d%;m,
7489	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
7490	    %t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m,
7491	smacs=\E(0, smir=\E[4h, smkx=\E[?1h\E=, u8=\E[?1;2c,
7492	Se=\E[2 q, Ss=\E[%p1%d q, use=ecma+underline,
7493	use=ecma+standout, use=ansi+apparrows, use=ansi+csr,
7494	use=ansi+enq, use=ansi+idl, use=ansi+inittabs,
7495	use=ansi+local, use=ansi+rca2, use=ansi+sgrbold,
7496	use=vt100+4bsd, use=vt100+pfkeys, use=vt220+pcedit,
7497	use=ecma+index, use=xterm+alt1049, use=vt220+cvis,
7498	use=xterm+sl, use=ecma+italics, use=ecma+strikeout,
7499	use=bracketed+paste, use=xterm+pcf2,
7500#
7501# st-0.1.1
7502#
7503# Note:  the original terminfo description uses leading blank to persuade
7504# ncurses to use "st" as its name.  Proper fix for that is to use "st" as an
7505# alias.
7506#
7507# Reading the code shows it should work for aixterm 16-colors
7508# - added st-16color
7509#
7510# Using tack:
7511# - set eo (erase-overstrike)
7512# - set xenl
7513# - tbc doesn't work
7514# - hts works
7515# - cbt doesn't work
7516# - shifted cursor-keys send sequences like rxvt
7517# - sgr referred to unimplemented "invis" mode.
7518# Fixes: add eo and xenl per tack, remove nonworking cbt, hts and tbc, invis
7519simpleterm|old-st|simpleterm 0.1.1,
7520	am, eo, mir, msgr, ul, xenl,
7521	cols#80, it#8, lines#24,
7522	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H,
7523	cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
7524	cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, ed=\E[J, el=\E[K,
7525	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ind=\n, kbs=^?,
7526	kdch1=\E[3~, kend=\E[4~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
7527	rev=\E[7m,
7528	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
7529	    %t;7%;m,
7530	sgr0=\E[0m, use=ansi+arrows, use=ansi+csr, use=ansi+cup,
7531	use=ansi+idl, use=ansi+sgrso, use=ansi+sgrul,
7532	use=vt220+cvis, use=ecma+index, use=klone+color,
7533	use=vt100+pf1-pf4, use=xterm+r5+fkeys, use=xterm+acs,
7534
7535st-16color|stterm-16color|simpleterm with 16-colors,
7536	use=ibm+16color, use=st,
7537# Tested with st 0.8.2
7538# The issue with the titlebar is fixed, though st is very slow.
7539# In st 0.7, 256 colors "works", but when running xterm's test-scripts, some
7540# garbage is shown in the titlebar.
7541#
7542# terminal wants to use TERM=stterm-256color, but that is longer than 14
7543# characters, making the choice nonportable.
7544st-256color|stterm-256color|simpleterm with 256 colors,
7545	use=xterm+256color, use=st,
7546
7547#### TERMINATOR
7548# https://github.com/software-jessies-org/jessies/wiki/Terminator
7549#
7550# Tested using the Debian package org.jessies.terminator 6.104.3256 on 64-bit
7551# Debian/current -TD (2011/8/20)
7552#
7553# There were some packaging problems:
7554# a) using Java, the program starts off using 50Mb, and climbs from there,
7555#    up to 114Mb after testing (no scrollback).
7556# b) it insists on reinstalling its terminal description in $HOME/.terminfo
7557#    (two copies, just in case the host happens to be Mac OS X).
7558#    I deleted this after testing with tack.
7559#
7560# Issues/features found with tack:
7561# a) tbc does not work (implying that hts also is broken).
7562#    Comparing with the tabs utility shows a problem with the last tabstop on
7563#    a line.
7564# b) has xterm-style shifted function-key strings
7565#    meta also is used, but control is ignored.
7566# c) has xterm-style modifiers for cursor keys (shift, control, shift+control,
7567#    meta)
7568# d) some combinations of shift/control send xterm-style sequences for
7569#    insert/delete/home/end.
7570# e) numeric keypad sends only numbers (compare with vttest).
7571# f) meta mode (km) is not implemented.
7572#
7573# Issues found with ncurses test-program:
7574# a) bce is inconsistently implemented
7575# b) widths of Unicode values above 256 do not always agree with wcwidth.
7576#
7577# Checked with vttest, found low degree of compatibility there.
7578#
7579# Checked with xterm's scripts, found that the 256-color palette is fixed.
7580#
7581# Fixes:
7582# a) add sgr string
7583# b) corrected sgr0 to reset alternate character set
7584# c) modified smacs/rmacs to use SCS rather than SI/SO
7585# d) removed bce
7586# e) removed km
7587#
7588# Revisiting in May 2019, the Debian package was no longer available, and a
7589# developer-provided ".deb" does not work.  However, a usable Windows ".msi"
7590# (which relies upon Cygwin) can be tested.  The developers provide a terminfo,
7591# but some of the features it lists do not work reliably (bce, italics, invis).
7592#
7593# tack:
7594#	tbc fails
7595#	invis attribute fails
7596#	key-definitions could be expanded, with some work:
7597#	+ supports xterm-style cursor key-modifiers for shift
7598#	+ supports xterm-style function key-modifiers for shift,control,alt
7599#	+ supports xterm-style editing key-modifiers for shift,control,alt
7600#	(kbs=^?)
7601# ncurses test-program:
7602#	"C" menu shows that bce implementation is incomplete
7603#	italics did not work
7604#	dim worked once in tack, but not in ncurses test-program
7605#	"F" thick-line characters do not display
7606# vttest:
7607#	terminal does not respond to 80/132-column switching
7608#	wrapping at the right margin is erratic
7609#	there are several problems in the cursor-movements and screen-features
7610#	no VT52, no double-sized characters
7611#	Device attributes response says it is a vanilla VT100
7612#	does not respond to xterm mouse controls
7613#	alternate screen tests do not fill the screen, return wrong position
7614#	window modify/report operations do not work
7615#	miscellaneous ISO-6429 tests, e.g., REP, do not work
7616#	CBT, CHT, HPR, CNL,CPL, VPR do not work
7617#
7618# removed the cancel for "hs", removed cbt, invis, corrected sgr -TD
7619# use xterm+256setaf, etc -TD
7620terminator|Terminator no line wrap,
7621	bce, eo, mir, msgr, xenl, xon,
7622	cols#80, it#8, lines#24, lm#0,
7623	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7624	bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
7625	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ed=\E[J, el=\E[K,
7626	el1=\E[1K, enacs=\E(B\E)0, flash=^G, ht=^I, hts=\EH, ind=\n,
7627	is1=\E[?47l\E=\E[?1l,
7628	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^?,
7629	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
7630	khome=\E[1~, rev=\E[7m, ri=\EM, rmacs=\E(B, rmir=\E[4l,
7631	rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, s0ds=\E(B, s1ds=\E(0,
7632	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p5%t;2%;%?%p1%p3%|%t;7
7633	    %;m%?%p9%t\E(0%e\E(B%;,
7634	sgr0=\E[m\E(B, smacs=\E(0, smir=\E[4h, smul=\E[4m,
7635	tbc=\E[3g, use=ecma+underline, use=ecma+standout,
7636	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
7637	use=ansi+enq, use=ansi+idl, use=ansi+local,
7638	use=ansi+rca2, use=bracketed+paste, use=ecma+italics,
7639	use=ecma+index, use=vt100+pf1-pf4, use=vt220+cvis,
7640	use=vt220+pcedit, use=xterm+r5+fkeys,
7641	use=xterm+256setaf, use=xterm+sl-twm,
7642	use=xterm+alt1049,
7643
7644#### TERMINOLOGY
7645# https://www.enlightenment.org/about-terminology
7646# https://github.com/borisfaure/terminology
7647#
7648# 2014/10/14:
7649# Tested terminology-0.3.0, 0.6.1, using tack and vttest.  This is not a VT100
7650# emulator, nor is it compatible with xterm, but it uses a few features from
7651# both -TD
7652#
7653# General comments:
7654#	cursor does not fill on focus
7655#	there are pervasive problems with clearing/erasing parts of the screen
7656#	resizing the window causes it to stop listening to the keyboard
7657# tack -
7658#	doesn't understand VT100 CPR needed for resize
7659#	no CBT
7660#	no cvvis
7661#	has invis
7662#	no blink
7663#	uses bce model for colors, but (see below) fails the vttest screens
7664#	has partial support for 256color feature.
7665#	tack function-keys (a subset of xterm+pcf0), and
7666#	tack cursor-keys (a subset of xterm+pce2):
7667#			ctrl+shift (ignored)
7668#		2	shift
7669#			shift-alt modifier -> shift (2)
7670#		3	alt
7671#		4
7672#		5	ctrl
7673#	tack modifiers did not work for fkeys in 0.3.0; subset works in 0.6.1
7674#	ctrl + khome/kend works - none of the other modifiers do
7675# vttest -
7676#	spits lots of messages from termptyesc.c especially in vttest.
7677#	no 132-column mode
7678#	fails menu 1, 2 (definitely not VT100-compatible)
7679#	primary (claims VT420 with several options, apparently none work) and
7680#	secondary report says (perhaps... VT420): \E[>41;285;0c
7681#	CHA, HPR, VPA, CNL, CPL work
7682#	BCE with ED/EL - fail
7683#	BCE with ECH/indexing - fail
7684#	SD/SU work
7685#	unlike teken, background light/dark works
7686#	can set title
7687#	X10 and Normal mouse work
7688#	Any-event mouse works
7689#	Mouse button-event works
7690#
7691# This description uses xterm+pcf0, which is misleading because the program
7692# does not handle combinations of modifiers - but listing them all would
7693# involve more effort than its developers spent -TD
7694terminology-0.6.1|EFL-based terminal emulator (0.6.1),
7695	mc5i@,
7696	blink@, ed@, el@, el1@, invis=\E[8m, kLFT=\E[1;2D,
7697	kRIT=\E[1;2C, kind=\E[1;2B, kri=\E[1;2A,
7698	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p7%t;8
7699	    %;m%?%p9%t\016%e\017%;$<2>,
7700	vpa=\E[%i%p1%dd, kDC3=\E[3;3~, kDC4=\E[3;4~,
7701	kDC5=\E[3;5~, kDC6=\E[3;6~, kDC7=\E[3;7~, kDN=\E[1;2B,
7702	kDN3=\E[1;3B, kDN4=\E[1;4B, kDN5=\E[1;5B, kDN6=\E[1;6B,
7703	kDN7=\E[1;7B, kEND5=\E[1;5F, kHOM5=\E[1;5H,
7704	kLFT3=\E[1;3D, kLFT4=\E[1;4D, kLFT5=\E[1;5D,
7705	kLFT6=\E[1;6D, kLFT7=\E[1;7D, kRIT3=\E[1;3C,
7706	kRIT4=\E[1;4C, kRIT5=\E[1;5C, kRIT6=\E[1;6C,
7707	kRIT7=\E[1;7C, kUP=\E[1;2A, use=ansi+enq,
7708	use=bracketed+paste, use=xterm+pcf0, use=vt100,
7709	use=xterm+256setaf,
7710
7711# 2017-11-11:
7712# Tested terminology 1.0.0
7713#
7714# tack -
7715#	Shifted cursor-keys send nothing, but xterm modifiers for control+shift
7716#	and control+alt were added like xterm+pcc2
7717#	Editing keys have some features from xterm+pce2
7718#	Changed from xterm+pcf0 to xterm+pcf2
7719#
7720# vttest -
7721#	REP, SL, SR fail
7722#
7723# Aside from the partial fixes for function/cursor/editing keys, no improvement
7724# in other tests versus 0.6.1
7725terminology-1.0.0|EFL-based terminal emulator (1.0.0),
7726	dim=\E[2m, flash=\E[?5h$<100/>\E[?5l, kend=\E[OF,
7727	khome=\E[OH, rmacs=\E(B,
7728	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
7729	    %?%p1%p3%|%t;7%;%?%p7%t;8%;m$<2>,
7730	sgr0=\E(B\E[m, smacs=\E(0, use=ecma+italics,
7731	use=vt220+cvis, use=xterm+x11mouse, use=xterm+pce2,
7732	use=xterm+pcf2, use=xterm+pcc2, use=bracketed+paste,
7733	use=terminology-0.6.1,
7734
7735# 2020/12/26:
7736# Tested terminology 1.8.1 using tack and vttest.
7737# tack -
7738#	flash does not work
7739#	italics and crossed-out text work
7740#	no meta mode
7741# vttest -
7742#	DA1 says this is a VT420 with 132 columns, NRCS, horizontal scrolling
7743#	DA2 says this is a VT510, version 33.7
7744#	NRCS does not work, program hangs in the locking shift test.
7745#	some of the VT420 rectangle operations work
7746#	left/right margins do not work
7747#	most of DECSCUSR works
7748#	most problems with bce are fixed.
7749terminology-1.8.1|EFL-based terminal emulator (1.8.1),
7750	km@,
7751	cvvis@, flash@, initc@, kcbt=\E[Z, rmm@, smm@, Ms@,
7752	use=linux+kbs, use=ecma+index, use=xterm+256setaf,
7753	use=ansi+rep, use=ecma+strikeout, use=xterm+focus,
7754	use=xterm+sm+1006, use=xterm+pcfkeys, use=xterm+tmux,
7755	use=vt220+cvis, use=ecma+italics, use=xterm-basic,
7756	use=report+version,
7757
7758terminology|EFL-based terminal emulator,
7759	use=terminology-1.8.1,
7760
7761######## OPENGL CLIENTS
7762
7763#### Alacritty
7764# https://github.com/jwilm/alacritty
7765# Version 0.6.0 (2020/11/25)
7766# Version 0.4.0 (2019/11/25)
7767# Version 0.3.3 (2019/08/03)
7768# Version 0.2.1 (2018/10/03)
7769# Project started in 2016/02, uses Rust and OpenGL, and in contrast to (most X
7770# terminal programs) is not designed to run with a remote server.
7771#
7772# Packaged in Arch Linux -
7773# vttest:
7774#	initial screensize 24x80
7775#	no DECCOLM (does not switch between 80/132 columns)
7776#	otherwise, passes wrapping test
7777#	no DECSCNM
7778#	identifies as a VT102
7779#	numeric keypad does not send expected codes (seen in 0.4.0)
7780#	passes bce test
7781#	vt220:
7782#		ECH works in 0.3.3 (0.2.1 left text on right margin)
7783#		no SRM, DECSCA
7784#	vt320:
7785#		fails DECXCPR
7786#		does not implement any of the DECRQM/DECRPM controls
7787#		does not implement any of the DECRQSS controls
7788#	vt420:
7789#		no DECLRMM
7790#		no DECBI, DECFI
7791#	other:
7792#		fails CHT, otherwise ECMA-48 cursor movement ok
7793#		fails ERM/SPA, SL, SR, passes REP, SD, SU
7794#	xterm:
7795#		no X10 mouse
7796#		has normal and highlight mouse
7797#		has any-event and button-event mouse
7798#		+ does support SGR-mouse
7799#		+ does not correctly support focus in/out events (seen in 0.4.0)
7800#		cursor-position wrong after alternate-screen (fixed in 0.4.0)
7801#		none of the dtterm controls work
7802# tack:
7803#	bell and flash do not work
7804#	blink does not work
7805#	italics and crossed-out work (latter did not work in 0.2.1)
7806#	function-keys work up (tested combinations which window manager allows)
7807#	treats meta as escape-prefix
7808#
7809# The program sources include "alacritty" and "alacritty-direct", which are
7810# copied from "xterm-256color" and "xterm-direct" (but using semicolon for
7811# subparameter delimiter).  Refactored here to use ncurses building blocks -TD
7812alacritty|alacritty terminal emulator,
7813	rs1=\Ec\E]104\007, use=xterm+256color,
7814	use=alacritty+common,
7815
7816alacritty-direct|alacritty with direct color indexing,
7817	use=xterm+indirect, use=alacritty+common,
7818
7819# cancel km, since it is not actually meta mode -TD
7820# added ecma+strikeout in 0.3.3 -TD
7821# added xterm+sl-twm in 0.3.3 -TD
7822alacritty+common|base fragment for alacritty,
7823	km@, npc,
7824	kb2=\EOE, kcbt=\E[Z, kent=\EOM, Se=\E[0 q,
7825	Smulx=\E[4:%p1%dm, rv=\E\\[>0;25[0-9][0-9];1c,
7826	use=ecma+index, use=report+da2, use=xterm+focus,
7827	use=xterm+sm+1006, use=xterm-basic, use=xterm+app,
7828	use=ansi+rep, use=xterm+tmux, use=ecma+strikeout,
7829	use=xterm+sl-twm, use=ecma+italics, use=xterm+pce2,
7830	use=xterm+pcc2, use=xterm+pcf2, use=bracketed+paste,
7831
7832# https://github.com/raphamorim/rio
7833# derived from alacritty
7834rio|fork of alacritty,
7835	use=alacritty,
7836rio-direct|rio with direct-colors,
7837	use=alacritty-direct,
7838
7839#### Kitty
7840# https://github.com/kovidgoyal/kitty
7841# Project started in 2016/10 (see alacritty), but is a Python script rather
7842# than Rust, using OpenGL.  The same caveats regarding remote connections
7843# apply.  This is not an X terminal, though (like alacritty), it copies
7844# features from xterm.
7845#
7846# Regarding the name "kitty", that is a pun, reflected in the description.
7847# But see
7848#	http://www.9bis.net/kitty/
7849#	https://github.com/kovidgoyal/kitty/issues/9
7850#	https://github.com/kovidgoyal/kitty/issues/1025
7851# and
7852#	http://lists.gnu.org/archive/html/bug-ncurses/2018-09/msg00005.html
7853#	https://github.com/kovidgoyal/kitty/issues/879
7854#
7855# Version 0.21.2 (June 28, 2021)
7856# changes since 0.19.1
7857# Notes:
7858#	Repeatable tests with tack and vttest assume a standard screensize --
7859#	measured in characters.  However, kitty uses pixel-measurements and
7860#	does not readily use characters.
7861#	Resizing with twm shows only pixel-based hint rather than characters
7862#	manual page states that it is possible to override initial window size,
7863#	but configuration file has no effect on initial window size.
7864#	The same problem with XFCE4, but editing the cached json file works
7865#	for setting the window size (the "c" suffix for cells does not):
7866#		{"window-size": [720, 440]}
7867#	though the values depend upon the font in use.
7868# vttest
7869# tack
7870#	flash works
7871#	invisible text still does not work
7872#	function/special key modifiers finally work
7873#
7874# Version 0.19.1 (October 6, 2020)
7875# changes since 0.13.3:
7876# vttest
7877#	ISO-6429
7878#		REP works, though using unspecified behavior
7879#	xterm
7880#		xterm's SGR-mouse mode is recognized.
7881#		does recognize original alternate-screen
7882#		bug: mouse focus in/out does not work.
7883#		bug: X10 mouse mode responds like any-event
7884#		bug: highlight-tracking does not work; terminal hangs.
7885#
7886# tack
7887#	rs1 adds an empty string for resetting title- and other OSC-strings.
7888#	italics work
7889#
7890# Version 0.13.3 (January 19, 2019)
7891# Notes:
7892#	initial screensize 71x22
7893#	does not respond to "resize -s"
7894#	resizing with window manager gives no clues
7895# vttest
7896#	does not switch between 80/132 columns
7897#	fails wrapping test, copying vte/rxvt
7898#	no reverse-background, no blink
7899#	claims to be VT200:
7900#		primary \E[?62;c
7901#		secondary \E[>1;4000;12c
7902#	however -
7903#		no GR in the locking-shifts screen
7904#		no NRCS or ISO-2022, anyway
7905#	no VT52
7906#	VT220:
7907#		has DECTCEM, ECH, but no SRM and DECSCA
7908#		has operating condition report, none of the others
7909#	VT320:
7910#		has SU/SD
7911#		DECRQSS ok for DECSTBM, SGR, none of the others
7912#		no status-line
7913#	VT420:
7914#		DECXCPR device status works, none of the others
7915#		no left/right margins
7916#		has DECCARA, but not DECERA, DECFRA, DECRARA, DECSERA
7917#		inside of DECCARA is uncolored
7918#		line-drawing with DECCARA does not work
7919#		aside from left/right margins, editing sequences look ok
7920#		no DECFI, DECBI
7921#	color:
7922#		fails ECH test for bce
7923#	ISO-6429
7924#		fails REP, SL, SL, but other cursor-movement ok
7925#	xterm:
7926#		does not recognize original alternate-screen
7927#		cursor-position wrong after alternate-screen
7928#		has normal mouse, any-event, any-button, but
7929#			no X10 mouse
7930#			no mouse-highlight tracking
7931#			no DEC locator
7932#		dtterm - only supports report-size chars/pixels
7933#		recognizes tcap-query
7934# tack:
7935#	flash doesn't work
7936#	italics do not work
7937#	bce should be set (but see vttest)
7938#*	developer's terminfo stopped at kf25, but the program continues,
7939#	copying xterm for the rest of the control+fkey sequence
7940#	(but only one modifier is supported, like iTerm2).
7941#*	it omitted shifted pageup/down
7942#*	control+editing keys work
7943#	In contrast to function-keys, some additional modifier combinations
7944#	act like xterm for the editing/cursor-keys, e.g., alt+shift.  While
7945#	the implementation is incomplete, the building-blocks are consistent
7946#	with what has been implemented -TD
7947#	DECKPAM does not work -TD
7948#*	ka1, ka3, kc1, kc3 were bogus (removed)
7949#*	meta sends escape (removed kmm) -TD
7950#*	cvvis does not make cursor "more visible" -TD
7951kitty|KovId's TTY,
7952	use=xterm+256color, use=kitty+common,
7953kitty-direct|KovId's TTY using direct colors,
7954	oc=\E]104\007, use=xterm+direct2, use=kitty+common,
7955kitty+common|KovId's TTY common properties,
7956	am, mc5i, mir, msgr, npc, xenl,
7957	cols#80, lines#24,
7958	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
7959	     yzz{{||}}~~,
7960	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
7961	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
7962	ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
7963	ich=\E[%p1%d@, ind=\n, kBEG=\E[1;2E, kbeg=\EOE, kcbt=\E[Z,
7964	op=\E[39;49m, rev=\E[7m, ri=\EM, rmacs=\E(B, rmam=\E[?7l,
7965	rmir=\E[4l, rmkx=\E[?1l, rs1=\E]\E\\\Ec,
7966	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
7967	    %?%p1%p3%|%t;7%;m,
7968	sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
7969	smkx=\E[?1h, Smulx=\E[4:%p1%dm,
7970	rv=\E\\[>1;4[0-9][0-9][0-9];41c,
7971	xr=\EP>\\|kitty\\([0-9]+\\.[0-9]+\\.[0-9]+\\)\E\\
7972	   \\,
7973	use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+idl,
7974	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
7975	use=ansi+rep, use=xterm+focus, use=xterm+sm+1006,
7976	use=ecma+index, use=ecma+strikeout, use=ecma+italics,
7977	use=ecma+standout, use=ecma+underline, use=linux+kbs,
7978	use=report+da2, use=xterm+pcfkeys, use=xterm+sl-twm,
7979	use=xterm+alt1049, use=att610+cvis, use=xterm+tmux,
7980	use=bracketed+paste, use=report+version,
7981
7982kitty+setal|set underline colors (nonstandard),
7983	setal=\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1
7984	      %{255}%&%dm,
7985
7986######## WAYLAND CLIENTS
7987
7988#### Foot
7989# https://codeberg.org/dnkl/foot/
7990# Version 1.18.1 2024/08/17
7991#
7992# vttest:
7993#	device attributes list 28=rectangular editing
7994#	supports rectangle operations, but problems with left/right margins
7995#	reports window-size, but not icon or window label
7996#	numeric keypad has no application-mode
7997#
7998# Version 1.8.2 2021/07/31
7999#
8000# This identifies as a VT220 with 4=sixel and 22=color, however:
8001# tack:
8002#	bell does not work
8003#	status-line does not work because foot does not set the window title
8004#	sends escape when meta key is used, whether or not smm/rmm enabled
8005# vttest:
8006#	wrap-test fails
8007#	no application-mode for numeric keypad (unless private mode 1035 is set)
8008#	no NRCS
8009#	no VT52
8010#	no SRM
8011#	protected areas do not work
8012#	SU/SD work, SL/SR do not
8013#	DECRPM responds, but not the corresponding ANSI reports.
8014#	otherwise few reports, except cursor-position and mouse and some dtterm
8015#	VT520 cursor-movement works, except for left/right margins
8016#	supports xterm/DECSCUSR, though default case in vttest does not blink
8017#		Send: <27> [ 0 <32> q
8018#		Text: The cursor should be a blinking rectangle
8019#	partial support for xterm mouse any-event mode and button-event mode:
8020#	+ does not report focus-in/focus-out
8021#	+ does not report buttons 6/7
8022#	alternate-screen works
8023foot|foot terminal emulator,
8024	oc=\E]104\E\\, use=xterm+256color2, use=foot+base,
8025
8026foot-direct|foot with direct color indexing,
8027	use=xterm+direct, use=foot+base,
8028
8029foot+base|foot base fragment,
8030	am, bce, bw, mir, msgr, npc, xenl, AX, XT,
8031	cols#80, it#8, lines#24,
8032	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n, dim=\E[2m,
8033	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
8034	flash=\E]555\E\\, ind=\n, is2=\E[!p\E[4l\E>, kbs=^?,
8035	kcbt=\E[Z, nel=\EE, oc=\E]104\E\\, op=\E[39;49m, ri=\EM,
8036	rmam=\E[?7l, rmkx=\E[?1l\E>, rmm=\E[?1036h\E[?1034l,
8037	rs1=\Ec, rs2=\E[!p\E[4l\E>,
8038	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
8039	    %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
8040	sgr0=\E(B\E[m, smam=\E[?7h, smkx=\E[?1h\E=,
8041	smm=\E[?1036l\E[?1034h, E3=\E[3J, Smulx=\E[4:%p1%dm,
8042	rv=\E\\[>1;[0-9];0c,
8043	xr=\EP>\\|foot\\([0-9][.0-9](-.*)?\\)?\E\\\\,
8044	use=ecma+underline, use=ecma+standout, use=att610+cvis,
8045	use=ansi+csr, use=ansi+cup, use=ansi+enq, use=ansi+local,
8046	use=ansi+idc, use=ansi+idl, use=ansi+rca2, use=ansi+rep,
8047	use=ansi+tabs, use=ansi+sgrbold, use=ecma+index,
8048	use=ecma+italics, use=ecma+strikeout, use=kitty+setal,
8049	use=xterm+acs, use=xterm+alt+title, use=xterm+pcfkeys,
8050	use=xterm+sm+1006, use=xterm+tmux2, use=xterm+sl-alt,
8051	use=bracketed+paste, use=report+version,
8052	use=xterm+focus,
8053
8054######## WEB CLIENTS
8055
8056#### DomTerm
8057# https://domterm.org
8058#
8059# Quoting its webpage:
8060#	The domterm command runs a server that manages sessions (usually shell
8061#	processes).  The user interface and terminal emulation is handled by a
8062#	JavaScript library that can run in a regular web browser or an embedded
8063#	browser such as Electron, using Web Sockets to talk to the server.
8064#
8065# it can connect to, and display in, a web browser, or as a standalone Qt
8066# application.  Either way, it displays in the current desktop session.
8067#
8068# Testing AppImage for 3.2.0, on Fedora 40:
8069# + appears to implement erase-display by painting a double-line on the screen,
8070#   doesn't use full screen for ded though it sort-of works for vi.
8071# + sets TERMINFO in its shell (imitating iTerm2), and TERM=domterm-xterm which
8072#   doesn't work when doing sudo.  According to the git log, that was April 1,
8073#   2023.  The VTE developers copied the feature (i.e., a partially workable
8074#   private terminal database) in February 2024.
8075# + the canonical name for the terminal description is still "domterm", and
8076#   presumably the "domterm-xterm" alias is a workaround for hardcoded scripts
8077#   that look for "xterm".
8078# + almost all of the differences between ncurses's "domterm" and DomTerm's
8079#   are additions, but (read further) most are untestable due to breakage in
8080#   the program.
8081# + DomTerm's updated terminal description says it implements italics, but
8082# + hangs in tack when doing blink (just before testing italics)
8083# + vttest, ncurses test-program also fare badly, e.g., due to improper line
8084#   wrapping and/or inability to consistently clear the screen.
8085#
8086# The review of DomTerm 3.2.0 was prompted by noticing this page
8087#     https://domterm.org/Wire-byte-protocol.html
8088# which goes on at length for extensions which collide with a commonly-used
8089# control for restoring a saved cursor position:
8090#     CSI u     Restore cursor (SCORC, also ANSI.SYS).
8091#
8092# Testing current code (2019/07/06) with Fedora 30:
8093# tack
8094#	no flash
8095#	no beep
8096#	no dim
8097#	no blink
8098#	no invis
8099#	no italics
8100#	ok smxx/rmxx
8101#	bce screen shows diagonal lines...
8102#	kf6 sends nothing
8103#	kf11 toggles maximize
8104#	cursor-key application mode works
8105#	numeric keypad application does not work; keys always send face-codes
8106#	sends utf-8 for meta, like xterm
8107# vttest
8108#	has problems with menu #1 (wrapping)
8109#	DA = VT200 with 132 columns, color
8110#	DA2 = 990, 100300 ("\E[>990;100300;0c")
8111#	no VT52, no double-size characters
8112#	vt220 ECH test works, SRM, DECSCA do not
8113#	S7C1T/S8C1t does not work
8114#	DECUDK does not work
8115#	CNL does not work; the other ECMA-48 cursor-movement tests work
8116#	REP sort-of works (does not match xterm)
8117#	SD/SU work, but not SL/SR
8118#	window reporting: works for size in chars/pixels, but not other tests
8119#	X10 mouse clicks work -- but return 4 rather than 1 for codes
8120#	any-event mouse mode acts like any-button mode
8121#	implements SGR mouse-mode
8122# other:
8123#	does not implement initc
8124#	does accept either colons or semicolon in 38/48 SGR.
8125domterm|DomTerm web client,
8126	npc,
8127	bel@, blink@, dim@, invis@, kcbt=\E[Z, ritm@, rmkx=\E[?1l,
8128	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
8129	    %t;7%;m,
8130	sitm@, smkx=\E[?1h, rv=\E\\[>990;[0-9];0c,
8131	xr=\EP>\\|DomTerm\\([0-9][.0-9]\\)?\E\\\\,
8132	use=bracketed+paste, use=linux+kbs, use=xterm+256setaf,
8133	use=ecma+index, use=report+da2, use=report+version,
8134	use=xterm+focus, use=xterm+sm+1006, use=xterm+pcfkeys,
8135	use=xterm-basic,
8136
8137######## Miscellaneous
8138
8139#### pangoterm
8140# https://www.leonerd.org.uk/code/pangoterm/
8141# https://github.com/bfredl/pangoterm
8142# https://github.com/neovim/libvterm
8143#
8144# which says:
8145# "A GTK/Pango-based terminal that uses libvterm to provide terminal
8146# emulation."
8147#
8148# This probably has few users, because it cannot put the cursor reliably in the
8149# right place (i.e., it appears several columns to the right).  It is included
8150# here because it implements what Evans refers to as "fixterms" but sets TERM
8151# to "xterm".
8152#
8153# vttest:
8154# - no 80/132 column mode
8155# - no blink mode
8156# - no protected modes
8157# - fails wrapping tests
8158# - no VT52
8159# - responds to ENQ with illegal character
8160# - no SRM
8161# - no origin mode
8162# - identifies as VT100 with AVO
8163# - responds to secondary DA as \E[>0;100;0c
8164# - responds to DECREQTPARM with illegal character
8165# - no application-keypad
8166# - has application cursor-keys
8167# - backspace key sends DEL, does not support toggle for BS
8168# - keyboard does not provide LF
8169# - has DECTCEM and ECH
8170# - has REP, SD and SL
8171# - has CBT, CHT, CNL, CPL
8172# - has ISO 6429 colors
8173# - BCE tests partially work (text is cleared incorrectly)
8174# - lacks any other VT220 or higher features.
8175# - xterm mouse except for modes 9 and 1001
8176# wraptest:
8177# - 6/25 differences from xterm
8178# tack:
8179# - no dim mode
8180# - no invisible mode
8181# - has italics
8182# - has strike-out mode
8183pangoterm|terminal using libvterm,
8184	am, bce, mir, msgr, npc, xenl, AX, XT,
8185	colors#8, cols#80, lines#24, pairs#64,
8186	bel=^G, blink@, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
8187	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
8188	el1=\E[1K, flash=\E[?5h$<100/>\E[?5l, ich=\E[%p1%d@,
8189	ind=\n, invis@, is2=\E[!p, kbs=^?, kcbt=\E[Z, nel=\EE,
8190	op=\E[39;49m, ri=\EM, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l,
8191	rs1=\Ec, rs2=\E[!p, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
8192	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
8193	    %t;7%;m,
8194	sgr0=\E(B\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h,
8195	rv=\E\\[>0;100;0c, use=ecma+underline,
8196	use=ecma+standout, use=ecma+index, use=ansi+rep,
8197	use=ecma+strikeout, use=xterm+pcfkeys,
8198	use=bracketed+paste, use=vt420+lrmm, use=xterm+focus,
8199	use=xterm+sm+1006, use=ecma+italics, use=ansi+csr,
8200	use=ansi+cup, use=ansi+enq, use=ansi+idl,
8201	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
8202	use=ansi+sgrbold, use=xterm+alt+title, use=att610+cvis,
8203	use=xterm+acs,
8204
8205pangoterm-256color|pangoterm with 256-colors,
8206	use=xterm+256setaf2, use=pangoterm,
8207
8208pangoterm-direct|pangoterm with direct-colors,
8209	use=xterm+direct, use=pangoterm,
8210
8211#### WezTerm
8212# https://wezfurlong.org/wezterm/
8213# https://github.com/wez/wezterm
8214#
8215# which says:
8216# "wezterm is a terminal emulator with support for modern features
8217#  such as fonts with ligatures, hyperlinks, tabs and multiple windows."
8218#
8219# The documentation bears mention.  It refers to the "ANSI" standard and
8220# 	https://wezfurlong.org/wezterm/what-is-a-terminal.html#ansi-and-ecma-48
8221# X3.64 (withdrawn long ago).  A related website
8222#	https://github.com/wez/ecma48
8223# states that ECMA-48 was issued in 1979 and not revised since.  Actually that
8224# was the second revision; the fifth revision in 1991 is current.  The source
8225# code refers to the second revision in a half-dozen places.  Further, there
8226# are three times as many references to Wikipedia as to xterm's documentation.
8227# The git commit comments in several instances hint at an incomplete reading
8228# of the relevant standards.
8229#
8230# wezterm-20240203-110809-5046fc22 tested with MacOS
8231# General:
8232# + initial screensize is now 80x24
8233# tack:
8234# + no change
8235# wraptest:
8236# + erasures (EL, ED, DCH, ICH, ESC) do not cancel wrap
8237# vttest:
8238# + some of the problems with debris have been fixed
8239#
8240# wezterm-20230712_072601_f4abf8fd-1.fedora38.x86_64
8241# tested with MacOS and Fedora 38/39.
8242#
8243# General:
8244# + written in Rust.
8245# + initial screensize is odd, i.e., 81x24
8246#   provides no visual feedback on resize
8247#   ignores "resize -s"
8248#   manual resize and then running resize got off-by-one adjustment
8249# + leaves debris (unerased cells) when switching between normal/alternate
8250#   screens.
8251# + sets TERM=xterm-256color
8252# tack:
8253# + misplaced message in "am" screen
8254# + fails xenl (should be false)
8255# + cvvis is same as cnorm, block
8256# + has blink and dim
8257# + in bce test, blue isn't really blue but some pale purple
8258# + modified keys mostly work, but its tab control interferes with some
8259# + rmm/smm don't work (always uses escape-prefix)
8260# wraptest:
8261# + poor (doesn't copy anyone, most of the results are wrong)
8262# vttest:
8263# + DA is VT5xx with sixel, selective erase, user windows, color
8264# + DA2 is VT220 version 277, perhaps a reference to xterm #277
8265# + only the VT100 character set works, contrary to DA/DA2.
8266# + no NRCS, either
8267# + double-sized character work, with some debris
8268# + doesn't switch between 80/132 columns.
8269# + numeric keypad ANSI application mode escapes don't work.
8270# + numeric keypad ANSI mode misses "0", ".", ","
8271# + uses PC-style editing keypad \E[H and \E[F for Find and Select
8272# + no VT52
8273# + DECSED selective erase doesn't work
8274# + SRM doesn't work
8275# + 8-bit controls don't work
8276# + DECNCSM doesn't work
8277# + most DECRQSS do not work (DECSCL, DECSTBM, DECSLRM respond)
8278# + DECRQM/DECRPM don't work (most reply permanently reset)
8279# + DECLRMM responds to DECRPM, but VT420 rectangle tests do not work.
8280#   Some of the left/right margin tests work with the cursor-movement screen,
8281#   but DECFI/DECBI do not work.  The other cursor-movement tests are buggy.
8282# + implements ECMA-48 cursor movement, but not SL/SR or protected area
8283# + implements xterm normal, any-event and button-event mouse, none of the rest
8284# + reports window size, none of the other window reports
8285wezterm|Wez's Terminal Emulator,
8286	am, bce, km, mir, msgr, npc, xenl,
8287	bel=^G, bold=\E[1m, cr=\r, cub1=^H, cud1=\n, ech=\E[%p1%dX,
8288	el1=\E[1K, flash=\E[?5h$<100/>\E[?5l, ind=\n,
8289	is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^?, kcbt=\E[Z, kend=\EOF,
8290	op=\E[39;49m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
8291	rs1=\Ec\E]104\007, rs2=\E[!p\E[?3;4l\E[4l\E>,
8292	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;
8293	    %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
8294	sgr0=\E(B\E[m, smam=\E[?7h, smkx=\E[?1h\E=, Smol=\E[53m,
8295	Smulx=\E[4:%p1%dm, rv=\E\\[>1;277;0c,
8296	xr=\EP>\\|WezTerm ([0-9]+)(-[[:xdigit:]]+)+\E\\\\,
8297	use=ecma+underline, use=ecma+standout,
8298	use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
8299	use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
8300	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
8301	use=ansi+rep, use=ansi+sgrdim, use=bracketed+paste,
8302	use=ecma+index, use=ecma+italics, use=ecma+strikeout,
8303	use=report+da2, use=report+version, use=vt220+cvis,
8304	use=xterm+256color2, use=xterm+acs,
8305	use=xterm+alt+title, use=xterm+focus, use=xterm+pcc2,
8306	use=xterm+pce2, use=xterm+pcf2, use=xterm+sl-alt,
8307	use=xterm+sm+1006, use=xterm+tmux,
8308
8309#### Contour
8310# https://github.com/contour-terminal/contour
8311#
8312# "Modern C++ Terminal Emulator"
8313# Contour is a modern and actually fast, modal, virtual terminal emulator,
8314# for everyday use. It is aiming for power users with a modern feature mindset.
8315#
8316# That is three occurrences of "modern" too many -TD
8317#
8318# MacOS
8319# - cannot run, because the package is not signed.
8320#
8321# Fedora rawhide
8322# contour-terminal-0.6.1.7494-2.fc42.x86_64
8323# - most core dumps are finally gone, works when 3D acceleration is disabled.
8324# - fails mir and related "in" tests in tack.
8325# - function-keys do not match developer's version.
8326# - sitm/ritm (italics) still do not work.
8327# - private mode 12 (cursor) does not work.
8328# - source code references Unicode values to a page which has none:
8329#   https://vt100.net/docs/vt102-ug/chapter5.html#T5-13
8330#   (actual source for this information is xterm)
8331# - identifies as a VT525 with sixel graphics, UDK, rectangle editing and color.
8332# - adds a control sequence to retrieve contents of entire screen.
8333# - dumps core in vttest for rectangle editing
8334# - UDK feature does not work
8335# - fails vttest for REP, SL, SR, CBT, CHT, VPR
8336# - sixel feature needs some work (most of my testcases do not work) -TD
8337# contour-terminal-0.3.12.262-6.fc39.x86_64
8338# - dumps core, cannot test
8339#
8340# Fedora 39
8341# contour-terminal-0.4.0.6245-1.fc38.x86_64
8342# - starts but doesn't display
8343#
8344# Fedora 38
8345# contour-terminal-0.4.0.6245-1.fc38.x86_64
8346# - starts but doesn't display
8347# contour-terminal-0.3.12.262-1.fc38.x86_64
8348# + testable (see below)
8349# + initial screensize 62x23, no visual feedback on resize, no "resize -s"
8350#
8351# Sets TERM=contour (which is preferable to xterm).
8352#
8353# tack:
8354# + cvvis is same as cnorm, "|"
8355# + sitm/ritm don't work
8356# + rmm/smm don't work (always uses escape, but terminfo defines km)
8357# + initp interchanges red/blue (bug in tack?)
8358# + modified F1-F4 are wrong, sending SS3 with modifier numbers
8359# + shifted editing-keypad doesn't send anything
8360# + meta key doesn't work
8361# + status-line works (based on xterm, including window-resizing)
8362# + dots don't line up for home test
8363#
8364# wraptest:
8365# + poor 7/25 differences from xterm (perhaps copying iTerm2)
8366#
8367# vttest:
8368# + hangs in menu 1, etc., when it tries to resize
8369#
8370# infocmp vs xterm-256color
8371# + missing XM/xm
8372# + rmcup/smcup doesn't use title-stack (but is implemented)
8373# + doesn't use SGR mouse (but is implemented)
8374# + sgr doesn't define dim, but dim capability is in terminfo (implemented)
8375#
8376# Developer's terminfo (compiled-in) uses some extensions.
8377contour|contour-latest|Contour Terminal Emulator,
8378	am, bce, mc5i, msgr, npc, xenl, xvpa, AX, XT,
8379	cols#80, lines#24, pairs#0x7fff,
8380	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n, dim=\E[2m,
8381	ech=\E[%p1%dX, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
8382	ind=\n, ka1=, ka3=, kbs=^?, kc1=, kc3=, kcbt=\E[Z, kend=\EOF,
8383	kf13=\E[O2P, kf14=\E[O2Q, kf15=\E[O2R, kf16=\E[O2S,
8384	kf25=\E[O5P, kf26=\E[O5Q, kf27=\E[O5R, kf28=\E[O5S,
8385	kf37=\E[O6P, kf38=\E[O6Q, kf39=\E[O6R, kf40=\E[O6S,
8386	kf49=\E[O3P, kf50=\E[O3Q, kf51=\E[O3R, kf52=\E[O3S,
8387	kf61=\E[O4P, kf62=\E[O4Q, kf63=\E[O4R, khlp=, kmous=\E[M,
8388	kund=, oc=\E]104\E\\, op=\E[39;49m, ri=\EM, rmam=\E[?7l,
8389	rmkx=\E[?1l, rs1=\E]\E\\\Ec,
8390	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p5%t;2%;
8391	    %?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
8392	sgr0=\E(B\E[m, smam=\E[?7h, smkx=\E[?1h,
8393	Cs=\E]12;%p1%s\E\\, E3=\E[3J, Rmol=\E[55m, Se=\E[ q,
8394	Smol=\E[53m, Smulx=\E[4:%p1%dm, Ss=\E[%p1%d q,
8395	xr=\EP>\\|contour ([0-9]\\.[0-9]\\.[0-9])\E\\\\,
8396	use=ecma+underline, use=ecma+standout,
8397	use=ansi+apparrows, use=ansi+cup, use=ansi+csr,
8398	use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
8399	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
8400	use=ansi+sgrbold, use=bracketed+paste, use=dec+sl,
8401	use=ecma+index, use=vt220+cvis, use=ecma+strikeout,
8402	use=xterm+256color, use=xterm+acs, use=xterm+alt1049,
8403	use=xterm+pcc2, use=xterm+pce2, use=xterm+pcf2,
8404	use=report+version,
8405
8406contour-direct|Contour terminal with direct colors,
8407	use=xterm+direct, use=contour,
8408
8409#### Ghostty
8410# https://github.com/ghostty-org/ghostty
8411#
8412# Its readme and man page begin with a lot of hype, concluding with
8413#
8414#	While aiming for this ambitious goal, our first step is to make Ghostty
8415#	one of the best fully standards compliant terminal emulator, remaining
8416#	compatible with all existing shells and software while supporting all
8417#	of the latest terminal innovations in the ecosystem.  You can use
8418#	Ghostty as a drop-in replacement for your existing terminal emulator.
8419#
8420# However, it uses xterm as a standard:
8421#
8422#	We believe Ghostty is one of the most compliant terminal emulators
8423#	available.  Terminal behavior is partially a de jure standard (i.e.
8424#	[ECMA-48](https://ecma-international.org/publications-and-standards/stand>
8425#	but mostly a de facto standard as defined by popular terminal emulators
8426#	worldwide.  Ghostty takes the approach that our behavior is defined by
8427#	(1) standards, if available, (2) xterm, if the feature exists, (3)
8428#	other popular terminals, in that order.  This defines what the Ghostty
8429#	project views as a "standard."
8430#
8431# while xterm uses ECMA-48 and DEC 070 along with related documentation such as
8432# the DEC terminal reference manuals.  xterm's documentation does not attempt
8433# to duplicate those sources of information, so that developers should rely
8434# upon both xterm's documentation and the published standards.
8435#
8436# Comments in ghostty's source code and commits demonstrate that the developers
8437# study xterm's source code closer than xterm's documentation.  The quote above
8438# is the only mention of ECMA-48.
8439#
8440# ghostty 1.1.0 tested with Arch Linux:
8441# -------------
8442# The issue with vttest is repaired.  Other issues remain.  The reader may not
8443# have noticed, but the ghostty developers disallow direct bug reports.
8444# Quoting the developers:
8445#
8446#	https://github.com/ghostty-org/ghostty/issues/3558
8447#	Users are not allowed to create Issues directly in this repository - we
8448#	ask that you create a Discussion first.
8449#	...
8450#	Any Discussion which clearly identifies a problem in Ghostty and can be
8451#	confirmed or reproduced will be converted to an Issue by a maintainer,
8452#	so as a user finding a valid problem you don't do any extra work
8453#	anyway.  Thank you.
8454#
8455# As a direct consequence, details and attribution in those "Discussion" notes
8456# may be omitted, as in this instance.
8457#
8458# https://web.archive.org/web/20250124124041/https://github.com/ghostty-org/ghostty/issues/2542
8459# ghostty #2542 Publish ghostty terminfo to ncurses terminal database
8460# Opened October 30, 2024, this terminal description is mentioned December 31.
8461#
8462# https://web.archive.org/web/20250115170223/https://github.com/ghostty-org/ghostty/issues/4523
8463# ghostty #4523 Renderers (Metal and OpenGL) should clip terminal if terminal
8464#		grid size mismatches physical window
8465# Opened January 3, 2025, with a note
8466#	The only known way to trigger this is DECCOLM, so it's low priority
8467#	since almost nothing uses this.  But notably vtetest uses this and it
8468#	makes it appear like we perform much worse than we do.
8469#
8470# Issue #4523 does not mention the bug report (nor, as in some other instances
8471# refer obliquely to a discussion on "Discord").  vttest sends a DECCOLM to
8472# ensure that the screen is not in 132-column mode.  That is the case for the
8473# testing reported.  If ghostty were implementing DECCOLM correctly, it would
8474# not have decided that the screensize changed.  The fix in #4523 is a
8475# workaround masking other potential issues.
8476#
8477# By the way, that should be "vttest" (there is no such program as "vtetest").
8478#
8479# ghostty 1.0.0 tested with Arch Linux:
8480# -------------
8481# tack:
8482# - does not implement blinking text
8483# - does not implement meta mode (kmm).
8484# - implements VT100-style alternate character set
8485# - testing video-attributes unexpectedly clears the display before acsc
8486# - italics and strike-out work
8487# - function-keys mostly match; however because this client (unlike X11
8488#   clients) does not work with a remote display, some (such as control/alt key
8489#   combinations, and the shifted editing keys) are untestable because
8490# - numeric keypad does not send VT100-style escapes
8491# wraptest:
8492# - matches xterm
8493# vttest:
8494# - ghostty hangs in more than one menu, making it impossible to test more than
8495#   a small part of the program.  In particular, these are untestable:
8496#	1. Test of cursor movements
8497#	2. Test of screen features
8498#	4. Test of double-sized characters
8499# - ghostty has tabs (imitating gnome-terminal); when closing a tab with a
8500#   running process (e.g., a hung vttest), ghostty does not prompt about the
8501#   process to be killed.
8502# - identifies as a "VT220 with color":
8503#	<27> [ ? 6 2 ; 2 2 c
8504# - although claiming to be a VT220, it does not support NRCS.  Actually, it
8505#   fails the VT100 character set test as well.  This is a complete failure:
8506#	3. Test of character sets
8507# - it does not hang in this menu entry:
8508#	8. Test of VT102 features (Insert/Delete Char/Line)
8509#   although because it does not implement double-sized characters, most of
8510#   that test counts as a failure.
8511# - implements VT220 DECTCEM and ECH, but not SRM or DECSCA
8512# - implements VT420 left/right margins
8513# - does not implement VT420 rectangle operations
8514# - does not implement 8-bit controls
8515# - does implement ISO-6429 cursor-movement
8516# - supports BCE partially: ED/EL work, but not ECH and indexing.
8517# - does not support blinking text
8518# - responds to XTVERSION
8519# - responds to DECRPM controls, though many are "unknown"
8520# - does not respond to most DECRQSS except for SGR, DECSCUSR, DECSTBM
8521# - implements most of xterm mouse protocol except for
8522#   - Mouse Highlight Tracking
8523#   - DEC Locator Events
8524# - some window reporting works:
8525#   14 - size of text area in pixels
8526#   16 - size of character in pixels
8527#   18 - size of window in chars
8528#   21 - report window label
8529# - window-modifying does not work
8530# - cursor position is incorrect after switching to/from alternate screen
8531#
8532# The developers set "Tc" in their terminal description to hint that it
8533# supports direct-colors, but the feature did not work with this version -TD
8534ghostty|Ghostty terminal emulator,
8535	am, bce, km, mc5i, mir, msgr, npc, xenl, AX, XT,
8536	cols#80, lines#24, pairs#0x7fff,
8537	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
8538	     yzz{{||}}~~,
8539	bel=^G, bold=\E[1m, clear=\E[H\E[2J,
8540	cnorm=\E[?12l\E[?25h, cr=\r, cub1=^H, cud1=\n,
8541	cvvis=\E[?12;25h, dim=\E[2m, ech=\E[%p1%dX, el1=\E[1K,
8542	flash=\E[?5h$<100/>\E[?5l, ind=\n, invis=\E[8m, kbs=^?,
8543	kcbt=\E[Z, kend=\EOF, kent=\EOM, op=\E[39;49m, rev=\E[7m,
8544	ri=\EM, rmam=\E[?7l, rmcup=\E[?1049l, rmkx=\E[?1l\E>,
8545	rmso=\E[27m, rmul=\E[24m, rs1=\E]\E\\\Ec,
8546	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;
8547	      5;%p1%d%;m,
8548	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5
8549	      ;%p1%d%;m,
8550	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
8551	    %t;7%;%?%p5%t;2%;%?%p7%t;8%;m,
8552	sgr0=\E(B\E[m, smam=\E[?7h, smcup=\E[?1049h,
8553	smkx=\E[?1h\E=, E3=\E[3J, Ms=\E]52;%p1%s;%p2%s\007,
8554	Se=\E[2 q, Smulx=\E[4:%p1%dm, Ss=\E[%p1%d q,
8555	rv=\E\\[>[0-9];[0-9];[0-9]c,
8556	xr=\EP>\\|ghostty %[0-9.]([[:print:]])*\E\\\\,
8557	use=linux+kbs, use=ansi+apparrows, use=ansi+csr,
8558	use=ansi+cup, use=ansi+enq, use=ansi+erase, use=ansi+idc,
8559	use=ansi+idl, use=ansi+inittabs, use=ansi+local,
8560	use=ansi+rca2, use=ansi+rep, use=ansi+sgrso,
8561	use=ansi+sgrul, use=ansi+tabs, use=ecma+index,
8562	use=ecma+italics, use=ecma+strikeout,
8563	use=report+version, use=vt220+cvis,
8564	use=xterm+256color2, use=xterm+acs,
8565	use=xterm+alt+title, use=bracketed+paste,
8566	use=kitty+setal, use=vt420+lrmm, use=xterm+focus,
8567	use=xterm+pce2, use=xterm+pcc2, use=xterm+pcf2,
8568	use=xterm+sm+1006, use=xterm+sl-twm,
8569
8570######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
8571#
8572
8573# Columbus UNIX virtual terminal. This terminal also appears in
8574# UNIX 4.0 and successors as line discipline 1 (?), but is
8575# undocumented and does not really work quite right.
8576cbunix|cb unix virtual terminal,
8577	OTbs, am, da, db,
8578	cols#80, lines#24, lm#0,
8579	bel=^G, clear=\EL, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
8580	cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL,
8581	el=\EK, ich1=\EO, il1=\EP, ind=\n, khome=\EE, rmso=\Eb^D,
8582	rmul=\Eb^A, smso=\Ea^D, smul=\Ea^A, use=vt52+arrows,
8583# (vremote: removed obsolete ":nl@:" -- esr)
8584vremote|virtual remote terminal,
8585	am@,
8586	cols#79, use=cbunix,
8587
8588pty|4bsd pseudo teletype,
8589	cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!,
8590	smso=\Ea$, smul=\Ea!, use=cbunix,
8591
8592#### Emacs
8593
8594# https://www.emacswiki.org/emacs/AnsiTerm
8595# https://github.com/emacs-mirror/emacs/blob/master/lisp/term.el
8596#
8597# The codes supported by the term.el terminal emulation in GNU Emacs 19.30
8598eterm|GNU Emacs term.el terminal emulation,
8599	am, mir, xenl,
8600	cols#80, lines#24,
8601	bel=^G, bold=\E[1m, cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
8602	cud1=\n, dch=\E[%p1%dP, dch1=\E[P, el1=\E[1K, ht=^I,
8603	ich=\E[%p1%d@, ind=\n, rev=\E[7m, rmir=\E[4l, sgr0=\E[m,
8604	smir=\E[4h, use=ansi+cpr, use=ansi+cup, use=ansi+erase,
8605	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
8606	use=ansi+sgrul, use=xterm+alt47,
8607
8608# The codes supported by the term.el terminal emulation in GNU Emacs 22.2
8609eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
8610	msgr,
8611	colors#8, pairs#64,
8612	kbs=^?, khome=\E[1~, op=\E[39;49m, ri=\EM, rs1=\Ec,
8613	setab=\E[%p1%'('%+%dm, setaf=\E[%p1%{30}%+%dm,
8614	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?
8615	    %p7%t;8%;m,
8616	sgr0=\E[m, use=ecma+underline, use=ecma+standout,
8617	use=ansi+apparrows, use=ansi+csr, use=ansi+sgr,
8618	use=vt220+pcedit, use=eterm,
8619
8620# shell.el can "do" color, though not nearly as well.
8621#
8622# seen here:
8623# http://unix.stackexchange.com/questions/237943/changing-colors-used-by-ls-does-not-work-in-emacs-shell-mode
8624#
8625# and
8626# https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-08/msg00481.html
8627# https://github.com/emacs-mirror/emacs/blob/master/lisp/shell.el
8628# https://github.com/emacs-mirror/emacs/blob/master/lisp/ansi-color.el
8629#
8630# however, as tested with Emacs 24.5.1, the result is buggy, losing overlays
8631# frequently.  The contemporaneous term.el aka ansi-term does not "support"
8632# italics but does not lose the color information -TD 2017/01/28.
8633dumb-emacs-ansi|Emacs dumb terminal with ANSI color codes,
8634	am, hc,
8635	it#8, ncv#13,
8636	bold=\E[1m, cud1=\n, ht=^I, ind=\n, op=\E[39;49m, sgr0=\E[m,
8637	use=ecma+underline, use=ecma+italics, use=klone+color,
8638
8639#### Screen
8640
8641# Entries for use by the `screen' program by Juergen Weigert,
8642# Michael Schroeder, Oliver Laumann.  The screen and
8643# screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
8644# come from University of Wisconsin and may be older.
8645# (screen: added <cnorm> on ANSI model -- esr)
8646#
8647# 'screen' defines extensions to termcap.  Some are used in its terminal
8648# description:
8649#      G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
8650#      AX   (bool)  Does  understand ANSI set default fg/bg color
8651#                   (\E[39m / \E[49m).
8652#      S0   (str)   Switch charset 'G0' to the specified charset.
8653#      E0   (str)   Switch charset 'G0' back to standard charset.
8654#
8655# Initially tested with screen 3.09.08
8656#
8657# According to its manual page
8658#
8659#      Screen is a full-screen window manager that multiplexes a physical
8660#      terminal between several processes (typically interactive shells).  Each
8661#      virtual terminal provides the functions of a DEC VT100 terminal and, in
8662#      addition, several control functions from the ISO 6429 (ECMA 48, ANSI
8663#      X3.64) and ISO 2022 standards (e.g.  insert/delete line and support for
8664#      multiple character sets).
8665#
8666# However, there is a design error in its support for video highlights.  The
8667# program uses a table (rendlist) which equates the SGR codes to terminal
8668# capabilities.  That, and color-decoding are hardcoded in screen; its behavior
8669# is modified only by the presence or absence of the corresponding capabilities.
8670# Not by their values.
8671#
8672# If screen sets the TERMCAP variable, it uses hardcoded strings which
8673# correspond to the rendlist table.
8674#
8675# The table gives this information:
8676#
8677#	SGR	capability
8678#	---	---------
8679#	1	bold
8680#	2	dim
8681#	3	standout
8682#	4	underline
8683#	5	blink
8684#	-	(unused 6)
8685#	7	reverse
8686#	-	(unused 8-21)
8687#	22	reset bold, standout and dim
8688#	23	reset standout
8689#	24	reset underline
8690#	25	reset blink
8691#	-	(unused 26)
8692#	27	reset reverse
8693#
8694# ECMA-48 differs from this: 3 and 23 set and reset italics, respectively.
8695# ECMA-48 does not define "standout" - that is a termcap/terminfo abstraction.
8696# Without some redesign of screen, it is not possible to extend the set of
8697# capabilities.  Substitution would be possible, e.g., sending italics in
8698# place of underline.
8699#
8700# Because screen uses hard-coded parsing, it does not check if two capabilities
8701# use the same value.  For example, changing standout to be the same as any of
8702# the other capabilities will confuse screen.  Curses applications which use
8703# sgr are not impacted (because that usually resets all capabilities before
8704# setting any), but termcap applications do not use sgr -TD
8705#
8706# The "screen" entry should use ecma+index rather than just indn, but tmux
8707# defaults to using "screen".  For background, screen supported ecma+index
8708# since 1994 (i.e., screen 3.0.5), stating that it was an obscure code used by
8709# the (Siemens Nixdorf) 97801 terminal.  It was not shown in the termcap or
8710# terminfo entries (which list about 60% of the control sequences).
8711screen-base|VT 100/ANSI X3.64 virtual terminal (base),
8712	OTbs, OTpt, km, mir, xenl, G0,
8713	ncv@, U8#1,
8714	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
8715	     yzz{{||}}~~,
8716	blink=\E[5m, bold=\E[1m, cub1=^H, cud1=\n,
8717	cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, cvvis=\E[34l,
8718	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, el1=\E[1K, flash=\Eg,
8719	ich=\E[%p1%d@, indn=\E[%p1%dS, is2=\E)0, kbs=^?, kcbt=\E[Z,
8720	khome=\E[1~, kmous=\E[M, nel=\EE, rev=\E[7m, ri=\EM,
8721	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
8722	rs2=\Ec\E[?1000l\E[?25h,
8723	sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;
8724	    5%;%?%p5%t;2%;m%?%p9%t\016%e\017%;,
8725	sgr0=\E[m\017, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[3m,
8726	E0=\E(B, S0=\E(%p1%c, use=ecma+underline,
8727	use=ansi+apparrows, use=ansi+csr, use=ansi+erase,
8728	use=ansi+idl, use=ansi+inittabs, use=ansi+local,
8729	use=ansi+rca2, use=bracketed+paste, use=ecma+color,
8730	use=vt100+pf1-pf4, use=vt220+pcedit, use=xterm+alt1049,
8731	use=xterm+kbs, use=vt100+enq, use=vt100+4bsd,
8732	use=xterm+r5+fkeys, use=wyse+cvis,
8733
8734screen|VT 100/ANSI X3.64 virtual terminal,
8735	use=screen4,
8736
8737no+brackets|cancel bracketed paste,
8738	BD@, BE@, PE@, PS@,
8739
8740# The bce and status-line entries are from screen 3.9.13 (and require some
8741# changes to .screenrc).
8742screen-bce|VT 100/ANSI X3.64 virtual terminal with bce,
8743	bce,
8744	ech@, use=screen,
8745screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line,
8746	dsl=\E_\E\\, fsl=\E\\, tsl=\E_, use=screen,
8747
8748# ======================================================================
8749# Entries for GNU Screen with 16 colors.
8750# Those variations permit to benefit from 16 colors palette, and from
8751# bold font and blink attribute separated from bright colors. But they
8752# are less portable than the generic "screen" 8 color entries: Their
8753# usage makes real sense only if the terminals you attach and reattach
8754# do all support 16 color palette.
8755
8756screen-16color|GNU Screen with 16 colors,
8757	use=ibm+16color, use=screen,
8758
8759screen-16color-s|GNU Screen with 16 colors and status line,
8760	use=ibm+16color, use=screen-s,
8761
8762screen-16color-bce|GNU Screen with 16 colors and BCE,
8763	use=ibm+16color, use=screen-bce,
8764
8765screen-16color-bce-s|GNU Screen with 16 colors using BCE and status line,
8766	bce, use=ibm+16color, use=screen-s,
8767
8768# ======================================================================
8769# Entries for GNU Screen 4.02 with --enable-colors256.
8770
8771screen-256color|GNU Screen with 256 colors,
8772	use=xterm+256setaf, use=screen,
8773
8774screen-256color-s|GNU Screen with 256 colors and status line,
8775	use=xterm+256setaf, use=screen-s,
8776
8777screen-256color-bce|GNU Screen with 256 colors and BCE,
8778	use=xterm+256setaf, use=screen-bce,
8779
8780screen-256color-bce-s|GNU Screen with 256 colors using BCE and status line,
8781	bce, use=xterm+256setaf, use=screen-s,
8782
8783screen.xterm-256color|GNU Screen with xterm using 256 colors,
8784	use=xterm+256setaf, use=screen.xterm-new,
8785
8786screen.konsole-256color|GNU Screen with konsole using 256 colors,
8787	XR@, use=xterm+256setaf, use=screen.konsole,
8788
8789screen.vte-256color|GNU Screen with vte using 256 colors,
8790	use=xterm+256setaf, use=screen.vte,
8791
8792screen.putty-256color|GNU Screen with putty using 256 colors,
8793	use=xterm+256setaf, use=screen.putty,
8794
8795screen.mlterm-256color|GNU Screen with mlterm using 256 colors,
8796	XR@, use=xterm+256setaf, use=screen.mlterm,
8797
8798# ======================================================================
8799
8800# Read the fine man page:
8801#       When  screen  tries  to  figure  out  a  terminal name for
8802#       itself, it first looks for an entry named "screen.<term>",
8803#       where  <term>  is the contents of your $TERM variable.  If
8804#       no such entry exists, screen tries "screen" (or "screen-w"
8805#       if the terminal is wide (132 cols or more)).  If even this
8806#       entry cannot be found, "vt100" is used as a substitute.
8807#
8808# Notwithstanding the man page, screen uses its own notion of the termcap
8809# and some keys from "screen.<term>" are ignored.  Here is an entry which
8810# covers those (tested with screen 4.00.02) -TD
8811screen+fkeys|function-keys according to screen,
8812	kend=\E[4~, kfnd@, khome=\E[1~, kslt@, use=vt100+pf1-pf4,
8813
8814# See explanation before "screen" entry.  Cancel italics so that applications
8815# do not assume screen supports the feature.  Add this tweak to entries which
8816# extend screen for terminals which do support italics.
8817screen+italics|screen cannot support italics,
8818	ritm@, sitm@,
8819#
8820# Here are a few customized entries which are useful -TD
8821#
8822# Notes:
8823# (a)	screen does not support invis.
8824# (b)	screen's implementation of bw is incorrect according to tack.
8825# (c)	screen appears to hardcode the strings for khome/kend, making it
8826#	necessary to override the "use=" clause's values (screen+fkeys).
8827# (d)	screen sets $TERMCAP to a termcap-formatted copy of the 'screen' entry,
8828#	which is NOT the same as the terminfo screen.<term>.
8829# (e)	when screen finds one of these customized entries, it sets $TERM to
8830#	match.  Hence, no "screen.xterm" entry is provided, since that would
8831#	create heartburn for people running remote xterm's.
8832# (f)   screen does not support rep.
8833# (g)	the xterm-new compatibility does not include bracketed paste.
8834#
8835#	xterm (-xfree86 or -r6) does not normally support kIC, kNXT and kPRV
8836#	since the default translations override the built-in keycode
8837#	translation.  They are suppressed here to show what is tested by tack.
8838screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm,
8839	bce@, bw,
8840	invis@, kIC@, kNXT@, kPRV@, meml@, memu@, rep@,
8841	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
8842	    %t;7%;%?%p4%t;5%;%?%p5%t;2%;m,
8843	E3@, use=screen+italics, use=screen+fkeys,
8844	use=xterm+x11mouse, use=ecma+index, use=ansi+rep,
8845	use=ecma+strikeout, use=xterm+pcfkeys,
8846	use=xterm+nofkeys,
8847
8848# Don't use this, because not everyone has "screen.xterm-new":
8849#:screen.xterm|screen for modern xterm,
8850#:	use=screen.xterm-new,
8851
8852# xterm-r6 does not really support khome/kend unless it is propped up by
8853# the translations resource.
8854screen.xterm-r6|screen customized for X11R6 xterm,
8855	bw, use=xterm+x11mouse, use=screen+fkeys, use=xterm-r6,
8856# Color applications running in screen and TeraTerm do not play well together
8857# on Solaris because Sun's curses implementation gets confused.
8858screen.teraterm|disable ncv in teraterm,
8859	ncv#127,
8860	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
8861	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
8862	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
8863	use=screen+fkeys, use=xterm+x11mouse, use=screen,
8864# Other terminals
8865screen.rxvt|screen in rxvt,
8866	bw, XT,
8867	cvvis@, flash@, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
8868	kcuu1=\EOA, use=screen+fkeys, use=vt100+enq,
8869	use=rxvt+pcfkeys, use=xterm+x11mouse, use=vt220+keypad,
8870	use=screen,
8871screen.Eterm|screen in Eterm,
8872	use=xterm+x11mouse, use=screen+fkeys, use=Eterm,
8873screen.mrxvt|screen in mrxvt,
8874	use=xterm+x11mouse, use=screen+fkeys, use=mrxvt,
8875screen.vte|screen in any VTE-based terminal,
8876	use=xterm+x11mouse, use=screen+italics,
8877	use=screen+fkeys, use=no+brackets, use=vte,
8878screen.gnome|screen in GNOME Terminal,
8879	use=xterm+x11mouse, use=screen+italics,
8880	use=screen+fkeys, use=no+brackets, use=gnome,
8881screen.konsole|screen in KDE console window,
8882	XR@, use=xterm+x11mouse, use=screen+italics,
8883	use=screen+fkeys, use=no+brackets, use=konsole,
8884# fix the backspace key
8885screen.linux|screen.linux-s|screen in Linux console,
8886	bw,
8887	kcbt@, use=linux+sfkeys, use=xterm+x11mouse,
8888	use=screen+fkeys, use=screen,
8889screen.mlterm|screen in mlterm,
8890	XR@, use=xterm+x11mouse, use=screen+fkeys,
8891	use=no+brackets, use=mlterm,
8892screen.putty|screen in putty,
8893	use=xterm+x11mouse, use=screen+fkeys, use=no+brackets,
8894	use=putty,
8895
8896# The default "screen" entry is reasonably portable, but not optimal for the
8897# most widely-used terminal emulators.  The "bce" capability is supported in
8898# screen since 3.9.13, and when used, will require fewer characters to be sent
8899# to the terminal for updates.
8900#
8901# If you are using only terminals which support bce, then you can use this
8902# feature in your screen configuration.
8903#
8904# Adding these lines to your ".screenrc" file will allow using these customized
8905# entries:
8906#	term screen-bce
8907#	bce on
8908#	defbce on
8909screen-bce.xterm-new|screen optimized for modern xterm,
8910	bce,
8911	ech@, use=screen+italics, use=screen.xterm-new,
8912screen-bce.rxvt|screen optimized for rxvt,
8913	bce,
8914	ech@, use=screen.rxvt,
8915screen-bce.Eterm|screen optimized for Eterm,
8916	bce,
8917	ech@, use=screen.Eterm,
8918screen-bce.mrxvt|screen optimized for mrxvt,
8919	bce,
8920	ech@, use=screen.mrxvt,
8921screen-bce.gnome|screen optimized for GNOME-Terminal,
8922	ech@, use=screen+italics, use=screen.gnome,
8923screen-bce.konsole|screen optimized for KDE console window,
8924	ech@, use=screen+italics, use=screen.konsole,
8925screen-bce.linux|screen optimized for Linux console,
8926	bce,
8927	ech@, use=screen.linux,
8928
8929screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
8930	cols#132, use=screen,
8931
8932screen2|VT 100/ANSI X3.64 virtual terminal (old 2.x),
8933	cols#80, lines#24,
8934	clear=\E[2J\E[H, cr=\r, cub1=^H, cup=\E[%i%p1%d;%p2%dH,
8935	ed=\E[J, el=\E[K, ich1=, ind=\n, kbs=^H, kf0=\E~, kf1=\ES,
8936	kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
8937	kf9=\E0I, khome=\EH, nel=\r\n, rc=\E8, ri=\EM, rmso=\E[23m,
8938	rs1=\Ec, sc=\E7, sgr0=\E[m, smso=\E[3m, use=ecma+underline,
8939	use=ansi+idc, use=ansi+idl, use=ansi+inittabs,
8940	use=ansi+local, use=vt52+arrows,
8941
8942# (screen3: removed unknown ":xv:LP:G0:" -- esr)
8943screen3|VT 100/ANSI X3.64 virtual terminal (old 3.x),
8944	km, mir, msgr,
8945	cols#80, lines#24,
8946	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
8947	cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@, ind=\n,
8948	is2=\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
8949	kcuu1=\EOA, nel=\EE, rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E>,
8950	rmso=\E[23m, rs1=\Ec, sgr0=\E[m, smir=\E[4h, smkx=\E=,
8951	smso=\E[3m, use=ecma+underline, use=ansi+csr,
8952	use=ansi+cup, use=ansi+erase, use=ansi+idl,
8953	use=ansi+inittabs, use=ansi+local, use=vt100+pf1-pf4,
8954
8955# screen 4.0 was released 2003-07-21, and as of March 2019, its terminfo file
8956# was last updated in 2009 to include 256-color support.  The most recent
8957# release is 4.6.2 (October 2017).
8958screen4|VT 100/ANSI X3.64 virtual terminal (4.x),
8959	use=ecma+index, use=screen-base,
8960
8961# screen 5.0 was released in August 2024.  As of May 2025, few systems use it.
8962#
8963#	https://savannah.gnu.org/bugs/?36676
8964#
8965# mentions a change to implement italics (implemented 2016-11-05, merged
8966# 2017-07-09), this may do away with the longstanding use of SGR 3 for
8967# standout, interpreting it as italics.
8968#
8969# This version has limited support for direct-colors, but does not use the
8970# outer terminal's $TERM in deciding if or how to apply this.
8971screen5|VT 100/ANSI X3.64 virtual terminal (5.x),
8972	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
8973	    %p5%t;2%;m%?%p9%t\016%e\017%;,
8974	use=ecma+standout, use=ecma+italics, use=ecma+index,
8975	use=screen-base,
8976
8977#### Tmux
8978
8979# tmux is mostly compatible with screen, but has support for italics, and some
8980# of the xterm cursor bits.
8981#
8982# However, unlike screen, tmux has no provision for using derived terminal
8983# descriptions.  When screen starts, it looks for a suitable "inner" terminal
8984# such as "screen.$TERM" to correspond to the outer terminal's quirks.  The
8985# various entries such as screen.xterm-new provide a way to more closely
8986# match the terminal.
8987tmux|tmux terminal multiplexer,
8988	invis=\E[8m,
8989	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
8990	    %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8991	E3=\E[3J, Smulx=\E[4:%p1%dm, use=ecma+standout,
8992	use=ecma+italics, use=ecma+strikeout, use=xterm+edit,
8993	use=xterm+pcfkeys, use=xterm+sl, use=xterm+tmux,
8994	use=screen, use=bracketed+paste, use=report+version,
8995	use=xterm+focus,
8996
8997tmux-256color|tmux with 256 colors,
8998	use=xterm+256setaf, use=tmux,
8999
9000tmux-direct|tmux with direct-color indexing,
9001	use=kitty+setal, use=xterm+direct, use=tmux,
9002
9003#### Mosh
9004# https://mosh.org/
9005# mosh 1.3.2
9006#
9007# mosh's DA1 identifies it as a VT220, but sets $TERM to "xterm" or
9008# "xterm-256color" (hard-coded), which in its pretense that it is xterm, is
9009# several years out of date.
9010#
9011# There is little documentation; the existing man pages amount to a quarter of
9012# the length of mosh.org's heavily promotional website.  This entry is based
9013# on testing, and reading the source-code.  For the latter, analysis is aided
9014# by the developer's extensive use of hard-coded strings.
9015#
9016# The website has an example "Tricky unicode", which shows a shell command
9017# with a typo (i.e., assuming that a byte in octal uses 4 digits) and suggests
9018# that mosh and OS X Terminal "gets it right".
9019#
9020# The example as shown would not work.  Correcting the typo, xterm gives the
9021# result expected by the mosh developer.
9022#
9023# The other examples follow in a similar vein.
9024#
9025# It does not support these xterm features:
9026#	use=ansi+rep (xterm patch #36, 1997)
9027#	use=ecma+strikeout (xterm patch #305, 2014)
9028#	use=vt420+lrmm (xterm patch #279, 2012)
9029#	titlestack in smcup/rmcup has no effect (xterm patch #251, 2009)
9030#	does not support "dim" (xterm patch #305, 2014)
9031# In tack
9032#	rmkx/smkx has no effect on numeric keypad
9033#	acs stuff has no effect, is included here for ease of comparison
9034#
9035# Unlike screen and tmux, mosh has only limited awareness of a terminal
9036# description.  It assumes that the underlying terminal is xterm, and would
9037# not work well with terminals using other key-definitions, such as urxvt.
9038mosh|mobile shell,
9039	U8#1,
9040	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|
9041	    %t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
9042	sgr0=\E(B\E[m, use=ansi+enq, use=xterm+meta,
9043	use=ecma+italics, use=ecma+index, use=xterm+acs,
9044	use=xterm+focus, use=xterm+sm+1006, use=xterm+pcfkeys,
9045	use=xterm-xfree86, use=bracketed+paste,
9046
9047mosh-256color|mosh using 256-colors,
9048	use=xterm+256color, use=mosh,
9049
9050#### Dvtm
9051
9052# dvtwm 0.15
9053# http://www.brain-dump.org/projects/dvtm/
9054#
9055# + This uses ncurses to manage the display, including support for italics and
9056#   default-colors.
9057# + However, default-colors are incomplete: do not set bce.
9058# + It does not implement flash (since no \e[?5h)
9059# + Do not set XT: dvtm knows about OSC 0 and 2, but not 1.
9060#   Oddly enough, if $TERM contains "linux", it attempts to set the title.
9061# + Some of the program is cut/paste from rxvt-unicode, e.g., the ACS table.
9062# + The built-in table of function-keys (based on rxvt) is incomplete (ends
9063#   with kf22).
9064# + It also omits the shifted cursor- and editing-keypad keys.
9065#   However, it is confused by xterm's shifted cursor- and editing-keypad keys
9066#   (and passes those through without interpretation)
9067#   and may simply pass-through rxvt's, making it appear to work.
9068#   In other cases such as kf23 and up, no pass-through is done.
9069# + Most of the mode-settings in the initialization/reset strings are not
9070#   implemented; dvtm copies its description from rxvt.
9071dvtm|dynamic virtual terminal manager,
9072	eo, mir, xenl,
9073	ncv@,
9074	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H, cud1=\n,
9075	cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, el1=\E[1K,
9076	ich=\E[%p1%d@, ich1=\E[@, is1=\E[?47l\E=\E[?1l,
9077	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
9078	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kIC=\E[2$, kLFT=\E[d,
9079	kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy,
9080	kb2=\EOu, kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kel=\E[8\^,
9081	kend=\E[8~, kent=\EOM, kf0=\E[21~, kf21=\E[23$,
9082	kf22=\E[24$, khome=\E[7~, kind=\E[a, kmous=\E[M, kri=\E[b,
9083	rev=\E[7m, ri=\EM, rmir=\E[4l,
9084	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
9085	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?
9086	    25h,
9087	s0ds=\E(B, s1ds=\E(0,
9088	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
9089	    %p9%t\016%e\017%;,
9090	sgr0=\E[m\017, smir=\E[4h, use=ecma+underline,
9091	use=ecma+standout, use=ansi+arrows, use=ansi+csr,
9092	use=ansi+idl, use=ansi+local, use=ansi+rca2,
9093	use=xterm+alt47, use=vt220+vtedit, use=vt220+cvis,
9094	use=ecma+color, use=ecma+italics, use=vt100+4bsd,
9095	use=vt220+sfkeys, use=xterm+r5+fkeys,
9096
9097dvtm-256color|dynamic virtual terminal manager with 256 colors,
9098	colors#0x100, pairs#0x10000,
9099	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;
9100	      5;%p1%d%;m,
9101	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5
9102	      ;%p1%d%;m,
9103	use=dvtm,
9104
9105#### NCSA Telnet
9106
9107# Francesco Potorti <F.Potorti@cnuce.cnr.it>:
9108# NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
9109# been maintained until recently by the National Center for Supercomputer
9110# Applications, and it is feature rich, stable and free.  It can be downloaded
9111# from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
9112# xterm+sl, and the docs at NCSA.  It works well.
9113#
9114# NCSA Telnet 2.6 for Macintosh in VT220 8-bit emulation mode
9115# The terminal options should be set as follows:
9116#         Xterm sequences ON
9117#         use VT wrap mode ON
9118#         use Emacs arrow keys OFF
9119#         CTRL-COMND is Emacs meta ON
9120#         8 bit mode ON
9121#         answerback string: "ncsa-vt220-8"
9122#         setup keys: all disabled
9123#
9124# Application mode is not used.
9125#
9126# Other special mappings:
9127#	Apple		VT220
9128#	HELP		Find
9129#	HOME		Insert here
9130#	PAGEUP		Remove
9131#	DEL		Select
9132#	END		Prev Screen
9133#	PAGEDOWN	Next Screen
9134#
9135# Though it supports ANSI color, NCSA Telnet uses color to represent blinking
9136# text.
9137#
9138# The status-line manipulation is a mapping of the xterm-compatible control
9139# sequences for setting the window-title.  So you must use tsl and fsl in
9140# pairs, since the latter ends the string that is loaded to the window-title.
9141ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in VT220-8 mode,
9142	am, km, mir, msgr, xenl,
9143	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
9144	cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K,
9145	el1=\E[1K, enacs=\E)0, flash=\E[?5h$<100/>\E[?5l, ht=^I,
9146	hts=\EH, ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
9147	ind=\n$<150*>,
9148	is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>,
9149	kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~,
9150	kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~,
9151	kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~,
9152	kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~,
9153	khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i,
9154	rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
9155	rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l,
9156	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>,
9157	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
9158	    %p9%t\E(0%e\E(B%;,
9159	sgr0=\E[m\E(B, smam=\E[?7h, smcup=\E7, smir=\E[4h,
9160	tbc=\E[3g, u8=\E[?62;1;6c, use=ecma+underline,
9161	use=ecma+standout, use=ansi+arrows, use=ansi+csr,
9162	use=ansi+idl, use=ansi+local, use=ansi+cup,
9163	use=vt220+cvis, use=xterm+acs, use=vt100+pf1-pf4,
9164	use=xterm+sl, use=ansi+enq,
9165
9166ncsa|NCSA Telnet 2.7 for Macintosh in VT220-8 mode (color),
9167	use=ncsa-m, use=klone+color,
9168ncsa-ns|NCSA Telnet 2.7 for Macintosh in VT220-8 mode (color w/o status line),
9169	hs@,
9170	dsl@, fsl@, tsl@, use=ncsa,
9171ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in VT220-8 mode (no status line),
9172	hs@,
9173	dsl@, fsl@, tsl@, use=ncsa-m,
9174# alternate -TD:
9175# The documented function-key mapping refers to the Apple Extended Keyboard
9176# (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
9177# codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
9178# some keyboards and many applications require these as F1-F4.
9179#
9180ncsa-vt220|NCSA Telnet using VT220-compatible function keys,
9181	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
9182	kf14=\E[26~, kf15=\E[28~, kf6=\E[17~, kf7=\E[18~,
9183	kf8=\E[19~, kf9=\E[20~, use=vt100+pf1-pf4, use=ncsa,
9184	use=vt220+sfkeys,
9185
9186#### Pilot Pro Palm-Top
9187#
9188# Termcap for Top Gun Telnet and SSH on the Palm Pilot.
9189# https://web.archive.org/web/20051103015726/http://www.ai/~iang/TGssh/
9190pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional,
9191	OTbs, am, xenl,
9192	cols#39, lines#16,
9193	bel=^G, clear=\Ec, cr=\r, cub1=^H, cud1=\n,
9194	cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I,
9195	ind=\n, kbs=^H, kcub1=^H, kcud1=\n, knp=^L, kpp=^K, nel=\Em~\s,
9196	rmso=\EB, smso=\Eb,
9197
9198# From: Federico Bianchi <bianchi@www.arte.unipi.it>
9199# These entries are for the Embeddable Linux Kernel System (ELKS)
9200# project - an heavily stripped down Linux to be run on 16 bit
9201# boxes or, eventually, to be used in embedded systems - and have been
9202# adapted from the stock ELKS termcap. The project itself looks stalled,
9203# and the latest improvements I know of date back to March 2000.
9204#
9205# To cope with the ELKS dumb console I added an "elks-glasstty" entry;
9206# as an added bonus, this deals with all the capabilities common to
9207# both VT52 and ANSI (or, eventually, "special") modes.
9208
9209elks-glasstty|ELKS glass-TTY capabilities,
9210	OTbs, am,
9211	cols#80, it#8, lines#25,
9212	bel=^G, cr=\r, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
9213	nel=\r\n,
9214
9215elks-vt52|ELKS VT52 console,
9216	clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
9217	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, el=\EK,
9218	home=\EH, use=elks-glasstty,
9219
9220elks-ansi|ELKS ANSI console,
9221	clear=\E[H\E[2J, el=\E[K, use=ansi+cup, use=ansi+local1,
9222	use=ansi+sgrso, use=elks-glasstty,
9223
9224# As a matter of fact, ELKS 0.0.83 on PCs defaults to ANSI emulation
9225# instead of VT52, but the "elks" entry still refers to the latter.
9226
9227elks|default ELKS console,
9228	use=elks-vt52,
9229
9230# Project SIBO (for Psion 3 palmtops) console is identical to the ELKS
9231# one but in screen size
9232
9233sibo|ELKS SIBO console,
9234	cols#61, it#8, lines#20, use=elks-vt52,
9235
9236######## COMMERCIAL WORKSTATION CONSOLES
9237#
9238
9239#### Alpha consoles
9240#
9241
9242# This is from the OSF/1 Release 1.0 termcap file
9243pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation,
9244	am, xon,
9245	cols#80, lines#25,
9246	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
9247	cuu1=\E[A, dch1=\E[P, el=\E[K, ht=^I, ich1=\E[@, nel=\r\n,
9248	rev=\E[7m, sgr0=\E[m, use=ansi+arrows, use=ansi+cup,
9249	use=ansi+idl1, use=ansi+sgrso,
9250
9251#### Sun consoles
9252#
9253
9254# :is1: resets scrolling region in case a previous user had used "tset VT100"
9255oldsun|Sun Microsystems Workstation console,
9256	OTbs, am, km, mir, msgr,
9257	cols#80, it#8, lines#34,
9258	bel=^G, clear=^L, cr=\r, cub1=^H, cup=\E[%i%p1%d;%p2%dH,
9259	dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K, ht=^I,
9260	ich=\E[%p1%d@, ich1=\E[@, ind=\n, is1=\E[1r, kcub1=\E[D,
9261	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, sgr0=\E[m,
9262	use=ansi+idl, use=ansi+local1, use=ansi+sgrso,
9263	use=vt100+pf1-pf4,
9264
9265# From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
9266# <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
9267# SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
9268sun-il|Sun Microsystems console with working insert-line,
9269	am, km, msgr,
9270	cols#80, lines#34,
9271	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
9272	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
9273	dch1=\E[P, ed=\E[J, el=\E[K, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
9274	ind=\n, kb2=\E[218z, kdch1=^?, kend=\E[220z, kf1=\E[224z,
9275	kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z,
9276	kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z,
9277	kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z,
9278	kich1=\E[247z, knp=\E[222z, kopt=\E[194z, kpp=\E[216z,
9279	kres=\E[193z, kund=\E[195z, rev=\E[7m, rmul@, rs2=\E[s,
9280	sgr=\E[0%?%p1%p3%|%t;7%;m, sgr0=\E[m, u8=\E[1t,
9281	u9=\E[11t, use=ansi+arrows, use=ansi+idl, use=ansi+sgrso,
9282
9283# On some versions of CGSIX framebuffer firmware (SparcStation 5), <il1>/<il>
9284# flake out on the last line.  Unfortunately, without them the terminal has no
9285# way to scroll.
9286sun-cgsix|sun-ss5|Sun SparcStation 5 console,
9287	il@, il1@, use=sun-il,
9288
9289# The Sun console was documented in the wscons manual page (apparently
9290# unrelated to the "wscons" used by some of the BSDs).
9291#
9292#    https://illumos.org/man/4D/wscons
9293#    https://www.bitsavers.org/pdf/sun/sun1/800-0345_Sun-1_System_Reference_Manual_Jul82.pdf
9294#
9295# The early cmdtool and shelltool programs in Sun's NeWS were based on this.
9296# After NeWS was discontinued, XView provided a similar shelltool, with an
9297# incomplete manual page.  Presumably the intent was to document features of
9298# shelltool not in wscons:
9299#
9300#    https://web.archive.org/web/20230608051050/manpages.ubuntu.com/manpages/bionic/en/man1/shelltool.1.html
9301#    https://web.archive.org/web/20220520165933/manpages.ubuntu.com/manpages/bionic/en/man1/cmdtool.1.html
9302#
9303# The wscons manual page and the XView source show that it had no feature that
9304# could be used in ncurses u6/u7/u8/u9 extensions.  Interesting, the XView
9305# source shows that its shelltool could tell the host what a particular mode
9306# was set to.  But neither that nor its CSI..t controls support u6/u7/u8/u9.
9307#
9308# If you are using an SS5, change the sun definition to use sun-ss5.
9309sun|sun1|sun2|Sun Microsystems Inc. workstation console,
9310	use=sun-il,
9311
9312sun+sl|Sun Workstation window status line,
9313	hs,
9314	dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l,
9315
9316# From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
9317sun-s|Sun Microsystems Workstation window with status line,
9318	use=sun+sl, use=sun,
9319sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs,
9320	use=sun+sl, use=sun-e,
9321sun-48|Sun 48-line window,
9322	cols#80, lines#48, use=sun,
9323sun-34|Sun 34-line window,
9324	use=sun,
9325sun-24|Sun 24-line window,
9326	cols#80, lines#24, use=sun,
9327sun-17|Sun 17-line window,
9328	cols#80, lines#17, use=sun,
9329sun-12|Sun 12-line window,
9330	cols#80, lines#12, use=sun,
9331sun-1|Sun 1-line window for sysline,
9332	lines#1,
9333	dsl=^L, fsl=\E[K, tsl=\r, use=sun, use=dec+sl,
9334sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character,
9335	ich1@, rmir@, smir@, use=sun,
9336sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history,
9337	lines#35,
9338	rmcup=\E[>4h, smcup=\E[>4l, use=sun,
9339sun-type4|Sun Workstation console with type 4 keyboard,
9340	kcub1=\E[217z, kcud1=\E[221z, kcuf1=\E[219z,
9341	kcuu1=\E[215z, use=sun-il,
9342
9343# Most of the current references to sun-color are from users wondering why this
9344# is the default on install.  Details from reading the wscons man page, adding
9345# cub, etc., here (rather than in the base sun-il entry) since it is not clear
9346# when those were added -TD (2005-05-28)
9347#
9348# According to wscons man page, color is supported only on IA systems.
9349# Sun's terminfo entry documents bold and smul/rmul capabilities, but wscons
9350# does not list these.  It also sets ncv#3, however that corresponds to
9351# underline and standout.
9352#
9353# Since the documentation and terminfo do not agree, see also current code at
9354# https://web.archive.org/web/20091231042744/http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/io/tem_safe.c
9355#
9356# That (actually a different driver which "supports" sun-color) also supports
9357# these features:
9358#	vpa=\E[%i%p1%dd
9359#	hpa=\E[%i%p1%d`
9360#	cbt=\E[Z
9361#	dim=\E[2m
9362#	blink=\E[5m
9363# It supports bold, but not underline -TD (2009-09-19)
9364sun-color|Sun Microsystems Workstation console with color support (IA systems),
9365	bold=\E[1m, cub1=^H, cud1=\n, home=\E[H, op=\E[0m,
9366	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
9367	     %=%t3%e%p1%d%;m,
9368	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
9369	     %=%t3%e%p1%d%;m,
9370	sgr=\E[0%?%p6%t;1%;%?%p1%p3%|%t;7%;m, use=ansi+local,
9371	use=ansi+rca, use=ansi+tabs, use=ecma+index, use=sun,
9372	use=klone+color,
9373
9374# These date from March 2017:
9375# https://www.illumos.org/issues/10360 terminfo: sun-color has 256 colors
9376# https://www.illumos.org/issues/10359 terminfo: add underline for sun-color
9377#
9378# https://www.illumos.org/issues/14919 tem: implement xenl
9379# https://illumos.topicbox.com/groups/developer/T58d08b48578a674d-M491357a8bb9a7d39b114097f
9380#
9381# The developer chose to modify the existing "sun-color" (changing the number
9382# of colors and color-pairs without adjusting setaf and setab) rather than
9383# following the advice given in review to add a new terminal description.  As a
9384# result, some ncurses applications will render color incorrectly, while a few
9385# hard-coded applications may work as intended.
9386#
9387# These variants are based on reading the source code.
9388# https://github.com/illumos/illumos-gate/blob/loader/usr/src/boot/sys/boot/common/tem.c
9389illumos|Illumos framebuffer console,
9390	xenl,
9391	blink=\E[5m, dim=\E[2m, rmam=\E[?7l,
9392	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?
9393	    %p4%t;5%;m,
9394	sgr0=\E[0m, smam=\E[?7h, use=ecma+underline,
9395	use=ecma+standout, use=vt220+cvis, use=sun-color,
9396	use=ansi+apparrows,
9397#
9398# Referring to these as "sun-" is misleading, but close to the intent of the
9399# developer -TD
9400sun-16color|Illumos framebuffer console with 16 colors,
9401	use=ibm+16color, use=illumos,
9402
9403sun-256color|Illumos framebuffer console with 256 colors,
9404	use=xterm+256setaf, use=illumos,
9405
9406sun-direct|Illumos framebuffer console with direct-color,
9407	use=xterm+indirect, use=illumos,
9408
9409#### Iris consoles
9410#
9411
9412# (wsiris: this had extension capabilities
9413#	:HS=\E7F2:HE=\E7F7:\
9414#	:CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
9415# See the note on Iris extensions near the end of this file.
9416# Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> &
9417# <flash> from BRL -- esr)
9418wsiris|iris40|IRIS emulating a 40 line Visual 50 (approximately),
9419	OTbs, OTnc, OTpt, am,
9420	OTkn#3, cols#80, it#8, lines#40,
9421	OTnl=\EB, bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB,
9422	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
9423	cvvis=\E;, dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK,
9424	flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL,
9425	ind=\n, is2=\E7B0\E7F7\E7C2\E7R3, kf0=\E0, kf1=\E1,
9426	kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
9427	kf9=\E9, ri=\EI, rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7,
9428	smso=\E9P, smul=\E7R2\E9P, use=vt52+arrows,
9429
9430#### NeWS consoles
9431#
9432# Console terminal windows under the NeWS (Sun's Display Postscript windowing
9433# environment).   Note: these have nothing to do with Sony's News workstation
9434# line.
9435#
9436
9437# Entry for NeWS's psterm from Eric Messick & Hugh Daniel
9438# (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
9439psterm|psterm-basic|NeWS psterm-80x34,
9440	OTbs, am, hs, km, ul,
9441	cols#80, it#8, lines#34,
9442	blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;,
9443	cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY,
9444	dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl,
9445	home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D,
9446	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr,
9447	ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^],
9448	sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu,
9449	tsl=\EOl,
9450psterm-96x48|NeWS psterm 96x48,
9451	cols#96, lines#48, use=psterm,
9452psterm-90x28|NeWS psterm 90x28,
9453	cols#90, lines#28, use=psterm,
9454psterm-80x24|NeWS psterm 80x24,
9455	cols#80, lines#24, use=psterm,
9456# This is a faster termcap for psterm.  Warning:  if you use this termcap,
9457# some control characters you type will do strange things to the screen.
9458# (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
9459psterm-fast|NeWS psterm fast version (flaky ctrl chars),
9460	OTbs, am, hs, km, ul,
9461	cols#80, it#8, lines#34,
9462	blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;,
9463	cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y,
9464	dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I,
9465	il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
9466	kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni,
9467	rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi,
9468	smso=^Oo, smul=^Ou, tsl=^Ol,
9469
9470#### NeXT consoles
9471#
9472# Use `glasstty' for the Workspace application
9473#
9474
9475# From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
9476next|NeXT console,
9477	am, xt,
9478	cols#80, it#8, lines#24,
9479	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
9480	cuu1=\E[A, el=\E[K, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
9481	nel=\r\n, rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m,
9482	use=ansi+cup,
9483nextshell|NeXT Shell application,
9484	am,
9485	cols#80,
9486	bel=^G, cr=\r, cub1=^H, cud1=\n, ht=^I, kbs=^H, kcub1=^H,
9487	kcud1=\n, nel=\r\n,
9488
9489#### Sony NEWS workstations
9490#
9491
9492# (news-unk: this had :KB=news: -- esr)
9493news-unk|Sony NEWS VT100 emulator common entry,
9494	OTbs, OTpt, am, xenl,
9495	cols#80,
9496	OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
9497	cr=\r, cub1=^H, cud1=\n, ht=^I, if=/usr/share/tabset/vt100,
9498	is2=\E[?7h\E[?1h\E[?3l\E7\E8, kbs=^H, kcub1=\EOD,
9499	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf3=\EOR,
9500	kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, rev=\E[7m,
9501	ri=\EM, rmkx=\E[?1l\E>,
9502	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sgr0=\E[m,
9503	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+cup,
9504	use=ansi+erase, use=ansi+idl, use=ansi+local1,
9505	use=ansi+sgrul, use=ansi+sgrso, use=vt100+pf1-pf4,
9506#
9507# (news-29: this had :TY=ascii: --esr)
9508news-29|Sony NEWS VT100 emulator with 29 lines,
9509	lines#29, use=news-unk,
9510# (news-29-euc: this had :TY=euc: --esr)
9511news-29-euc|Sony NEWS VT100 emulator with 29 lines and EUC,
9512	use=news-29,
9513# (news-29-sjis: this had :TY=sjis: --esr)
9514news-29-sjis|Sony NEWS VT100 emulator with 29 lines and SJIS,
9515	use=news-29,
9516#
9517# (news-33: this had :TY=ascii: --esr)
9518news-33|Sony NEWS VT100 with 33 lines,
9519	lines#33, use=news-unk,
9520# (news-33-euc: this had :TY=euc: --esr)
9521news-33-euc|Sony NEWS VT100 with 33 lines and EUC,
9522	use=news-33,
9523# (news-33-sjis: this had :TY=sjis: --esr)
9524news-33-sjis|Sony NEWS VT100 with 33 lines and SJIS,
9525	use=news-33,
9526#
9527# (news-42: this had :TY=ascii: --esr)
9528news-42|Sony NEWS VT100 with 42 lines,
9529	lines#42, use=news-unk,
9530# (news-42-euc: this had :TY=euc: --esr)
9531news-42-euc|Sony NEWS VT100 with 42 lines and EUC,
9532	use=news-42,
9533# (news-42-sjis: this had :TY=sjis: --esr)
9534news-42-sjis|Sony NEWS VT100 with 42 lines and SJIS,
9535	use=news-42,
9536#
9537#	NEWS-OS old termcap entry
9538#
9539# (news-old-unk: this had :KB=news:TY=sjis: --esr)
9540news-old-unk|old Sony NEWS VT100 emulator common entry,
9541	OTbs, OTpt, am, xenl,
9542	cols#80, vt#3,
9543	OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
9544	cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\E[A, ed=\E[J,
9545	el=\E[K, ht=^I, if=/usr/share/tabset/vt100, kbs=^H,
9546	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rev=\E[7m,
9547	ri=\EM, rmkx=\E[?1l\E>,
9548	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
9549	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+cup,
9550	use=ansi+sgrso, use=ansi+sgrul, use=vt100+pf1-pf4,
9551#
9552# (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
9553nwp512|news|nwp514|news40|vt100-bm|nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|old Sony VT100 emulator 40 lines,
9554	OTbs,
9555	lines#40,
9556	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40
9557	    r\E8,
9558	use=news-old-unk,
9559#
9560# (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
9561nwp512-a|nwp514-a|news-a|news42|news40-a|old Sony VT100 emulator 42 line,
9562	lines#42,
9563	is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8,
9564	use=news-old-unk,
9565#
9566# (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
9567nwp513|nwp518|nwe501|newscbm|news31|nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|old Sony VT100 emulator 31 lines,
9568	OTbs,
9569	lines#31,
9570	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31
9571	    r\E8,
9572	use=news-old-unk,
9573#
9574# (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
9575# also the alias vt100-bm.
9576nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|old Sony VT100 emulator 33 lines,
9577	OTbs,
9578	lines#33,
9579	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33
9580	    r\E8,
9581	use=news-old-unk,
9582#
9583# (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
9584news28|old Sony VT100 emulator 28 lines,
9585	OTbs,
9586	lines#28,
9587	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28
9588	    r\E8,
9589	use=news-old-unk,
9590#
9591# (news29: this had :TY=ascii:KB=nws1200:\ --esr)
9592news29|news28-a|old Sony VT100 emulator 29 lines,
9593	lines#29,
9594	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29
9595	    r\E8,
9596	use=news-old-unk,
9597#
9598# (news511: this had :TY=sjis: --esr)
9599nwp511|nwp-511|nwp-511 VT100,
9600	OTbs, OTpt, am, xenl,
9601	cols#80, lines#24,
9602	clear=\E[;H\E[2J$<20/>, cup=\E[%i%p1%d;%p2%dH,
9603	cuu1=\E[A$<2/>, ed=\E[J$<30/>, el=\E[K$<3/>,
9604	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
9605	is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D,
9606	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf5=\EOT, kf6=\E#W,
9607	khome=\E[H, ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
9608	rs2=\E7\E[r\E8\E[?5l\E[?1l\E>\E[?7h\E[?8h,
9609	smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+local1,
9610	use=ansi+idl1, use=vt100+pf1-pf4,
9611# (news517: this had :TY=sjis:. --esr)
9612nwp517|nwp-517|nwp-517 VT200 80 cols 30 rows,
9613	cols#80, lines#30,
9614	OTi2=\E[2$~\n, dsl=\E[1$~,
9615	is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
9616	tsl=\E[1$}\E[;%df, use=dec+sl, use=vt220-base,
9617# (news517-w: this had :TY=sjis:. --esr)
9618nwp517-w|nwp-517-w|nwp-517 VT200 132 cols 50 rows,
9619	cols#132, lines#50,
9620	OTi2=\E[2$~\n, dsl=\E[1$~,
9621	is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
9622	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
9623	tsl=\E[1$}\E[;%df, use=dec+sl, use=vt220-base,
9624
9625#### Common Desktop Environment
9626#
9627
9628# This ships with Sun's CDE in Solaris 2.5
9629# Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
9630dtterm|CDE desktop terminal,
9631	am, mir, msgr, xenl, xon,
9632	cols#80, it#8, lines#24, lm#0, ncv@,
9633	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
9634	bel=^G, bold=\E[1m, cr=\r, cub1=^H, cud1=\n, dch=\E[%p1%dP,
9635	dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX, el1=\E[1K,
9636	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, ht=^I, hts=\EH,
9637	ich=\E[%p1%d@, ind=\ED, is2=\E F\E>\E[?1l\E[?7h\E[?45l,
9638	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9639	khlp=\E[28~, nel=\EE, ri=\EM, rmacs=^O, rmam=\E[?7l,
9640	rmir=\E[4l, rmso=\E[22;27m,
9641	sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
9642	    %t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
9643	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
9644	smso=\E[2;7m, tbc=\E[3g, use=ecma+underline,
9645	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
9646	use=ansi+local, use=ansi+sgr, use=decid+cpr,
9647	use=ecma+color, use=vt220+cvis, use=vt220+sfkeys,
9648	use=vt220+vtedit, use=xterm+r5+fkeys,
9649
9650######## Non-Unix Consoles
9651#
9652
9653#### EMX termcap.dat compatibility modes
9654#
9655# Also (possibly only EMX, so we don't put it in ansi.sys, etc): set the
9656# no_color_video to inform the application that standout(1), underline(2)
9657# reverse(4) and invisible(64) don't work with color.
9658emx-base|DOS special keys,
9659	bce, bw,
9660	it#8, ncv#71,
9661	bel=^G, use=ansi.sys,
9662
9663# Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
9664# a Unix-style environment used on OS/2.  (Note that the suffix makes some
9665# names longer than 14 characters, the nominal maximum).
9666#
9667# Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
9668ansi-emx|ANSI.SYS color,
9669	eo,
9670	clear=\E[1;33;44m\E[H\E[J, cr=\r, cud1=\n, dch=\E[%p1%dp,
9671	ed=\E[J, flash=\E[?5h$<100/>\E[?5l, ht=^I, hts=\EH,
9672	ich=\E[%p1%d@, ich1=\E[@, ind=\n, kb2=\E[G, kf0=\0D, kll=\0O,
9673	kspd=^Z, nel=\r\n, rev=\E[5;37;41m, rmir=\E[4l,
9674	rmso=\E[0;44m\E[1;33m, rmul=\E[0;44m\E[1;33m, rs1=\Ec,
9675	sgr0=\E[0m\E[1;33;44m, smir=\E[4h, smso=\E[0;31;47m,
9676	smul=\E[1;31;44m, tbc=\E[3g, u8=\E[?6c, u9=\E[c,
9677	use=vt220+cvis, use=emx-base,
9678# nice colors for Emacs (white on blue, mode line white on cyan)
9679ansi-color-2-emx|ANSI.SYS color 2,
9680	clear=\E[0;37;44m\E[H\E[J, rev=\E[1;37;46m,
9681	rmso=\E[0;37;44m, rmul=\E[0;37;44m, sgr0=\E[0;37;44m,
9682	smso=\E[1;37;46m, smul=\E[1;36;44m, use=ansi-emx,
9683# nice colors for Emacs (white on black, mode line black on cyan)
9684ansi-color-3-emx|ANSI.SYS color 3,
9685	clear=\E[0;37;40m\E[H\E[J, rev=\E[1;37;46m,
9686	rmso=\E[0;37;40m, rmul=\E[0;37;40m, sgr0=\E[0;10m,
9687	smso=\E[1;37;46m, smul=\E[0;36;40m, use=ansi-emx,
9688mono-emx|stupid monochrome ANSI terminal with only one kind of emphasis,
9689	am,
9690	cols#80, it#8, lines#24,
9691	clear=\E[H\E[2J$<50>, el=\E[K, ht=^I, kb2=\E[G, kbs=^H,
9692	kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H, kf0=\0D, kf1=\0;,
9693	kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B,
9694	kf9=\0C, khome=\0G, kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I,
9695	nel=\r\n, rev=\E[7m, sgr0=\E[0m, use=ansi+local1,
9696	use=ansi+cup,
9697
9698#### Cygwin
9699
9700# Use this for cygwin32 (tested with beta 19.1)
9701# underline is colored bright magenta
9702# shifted kf1-kf12 are kf11-kf22
9703cygwinB19|ANSI emulation for cygwin32,
9704	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[[A,
9705	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
9706	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
9707	kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
9708	kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
9709	kf8=\E[19~, kf9=\E[20~, rmam@, smam@, use=vt220+pcedit,
9710	use=ansi.sys,
9711
9712# Use this for cygwin (tested with version 1.1.0).
9713# I've combined pcansi and linux.  Some values of course were different and
9714# I've indicated which of these were and which I used.
9715# Cheers, earnie_boyd@yahoo.com
9716# several changes based on running with tack and comparing with older entry -TD
9717# more changes from csw:
9718#   add    cbt   [backtab]
9719#   remove eo    [erase overstrike with blank]
9720#   change clear was \E[H\E[J  now \E[2J  (faster?)
9721#   remove cols
9722#   remove lines
9723#   remove ncv#3 [colors collide with highlights, bitmask] not applicable
9724#                to MSDOS box?
9725#   add    cub   [cursor back param]
9726#   add    cuf   [cursor forward param]
9727#   add    cuu   [cursor up param]
9728#   add    cud   [cursor down param]
9729#   add    hs    [has status line]
9730#   add    fsl   [return from status line]
9731#   add    tsl   [go to status line]
9732#   add    smacs [Start alt charset] (not sure if this works)
9733#   add    rmacs [End alt charset]   (ditto)
9734#   add    smcup [enter_ca_mode] (save console; thanks Corinna)
9735#   add    rmcup [exit_ca_mode]  (restore console; thanks Corinna)
9736#   add    kb2   [center of keypad]
9737#   add    u8    [user string 8] \E[?6c
9738#   add    el    [clear to end of line] \E[K
9739# Notes:
9740#   cnorm [make cursor normal] not implemented
9741#   flash [flash] not implemented
9742#   blink [blink] not implemented very usefully in cygwin? \E[5m
9743#   dim   [dim] not implemented very usefully in cygwin? \E[2m
9744#   cub1  [cursor back 1] typically \E[D, but ^H is faster?
9745#   kNXT  [shifted next key] not implemented
9746#   kPRV  [shifted prev key] not implemented
9747#   khome [home key] really is \E[1~ NOT \E[H
9748#   tbc   [clear tab stops] not implemented
9749#   xenl  [newline ignored after 80 cols] messes up last line? Ehud Karni
9750#   smpch [Start PC charset] is \E[11m, same as smacs
9751#   rmpch [End PC charset] is \E[10m, same as rmacs
9752#   mir   [move in insert mode] fails in tack?
9753#   bce   [back color erase] causes problems with change background color?
9754#   cvvis [make cursor very visible] causes a stackdump when testing with
9755#         testcurs using the output option? \E[?25h\E[?8c
9756#   civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c
9757#   ech   [erase characters param] broken \E[%p1%dX
9758#   kcbt  [back-tab key] not implemented in cygwin?  \E[Z
9759#
9760# 2005/11/12 -TD
9761#	Remove cbt since it does not work in current cygwin
9762#	Add 'mir' and 'in' flags based on tack
9763cygwin|ANSI emulation for Cygwin,
9764	am, hs, mir, msgr, xon,
9765	colors#8, it#8, pairs#64,
9766	bel=^G, bold=\E[1m, cr=\r, cub1=^H, el1=\E[1K, fsl=^G, ht=^I,
9767	ind=\n, invis=\E[8m, kb2=\E[G, khome=\E[1~, kspd=^Z,
9768	nel=\r\n, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
9769	rmpch=\E[10m, rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm,
9770	setaf=\E[3%p1%dm,
9771	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7
9772	    %t;8%;%?%p9%t;11%;m,
9773	sgr0=\E[0;10m, smpch=\E[11m, tsl=\E];,
9774	use=ecma+underline, use=ecma+standout, use=ansi+arrows,
9775	use=ansi+cup, use=ansi+erase, use=ansi+idc, use=ansi+idl,
9776	use=ansi+local, use=ansi+rca2, use=vt220+pcedit,
9777	use=vt102+enq, use=klone+acs, use=linux+lockeys,
9778	use=vt220+sfkeys, use=vt220+ufkeys, use=xterm+alt47,
9779
9780# I've supplied this so that you can help test new values and add other
9781# features.  Cheers, earnie_boyd@yahoo.com.
9782#
9783# Some features are from pcansi.  The op value is from linux.  Function-keys
9784# are from linux.  These have been tested not to cause problems.  xenl was in
9785# this list, but DOES cause problems so it has been removed
9786cygwinDBG|Debug Version for Cygwin,
9787	am, eo, mir, msgr, xon,
9788	cols#80, lines#24,
9789	bel=^G, cr=\r, dim=\E[2m, el1=\E[1K,
9790	flash=\E[?5h$<200/>\E[?5l, ind=\n, kNXT=\E[6$,
9791	kPRV=\E[5$, kb2=\E[G, kcbt=\E[Z, khome=\E[1~, kspd=^Z,
9792	nel=\r\n, op=\E[39;49m, rc=\E8, ri=\EM, rs1=\Ec\E]R, sc=\E7,
9793	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
9794	    %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
9795	sgr0=\E[0;10m, use=ansi+arrows, use=ansi+cup,
9796	use=ansi+erase, use=ansi+idc, use=ansi+idl,
9797	use=ansi+inittabs, use=ansi+local, use=ansi+rca2,
9798	use=ansi+sgrbold, use=klone+acs, use=klone+color,
9799	use=linux+lockeys, use=vt102+enq, use=vt220+pcedit,
9800	use=vt220+cvis, use=vt220+sfkeys, use=vt220+ufkeys,
9801
9802#### DJGPP
9803
9804# Key definitions:
9805# The encodings for unshifted arrow keys, F1-F12, Home, Insert, etc.  match the
9806# encodings used by other x86 environments.  All others are invented for DJGPP.
9807# Oddly enough, while several combinations of modifiers are tabulated, there is
9808# none for shifted cursor keys.
9809#
9810# kf1-kf12:
9811#	F1			\E[[A
9812#	F2			\E[[B
9813#	F3			\E[[C
9814#	F4			\E[[D
9815#	F5			\E[[E
9816#	F6			\E[17~
9817#	F7			\E[18~
9818#	F8			\E[19~
9819#	F9			\E[20~
9820#	F10			\E[21~
9821#	F11			\E[23~
9822#	F12			\E[24~
9823#
9824#	Delete			\E[3~
9825#	Down Arrow		\E[B
9826#	End			\E[4~
9827#	Home			\E[1~
9828#	Insert			\E[2~
9829#	Left Arrow		\E[D
9830#	Page Down		\E[6~
9831#	Page Up			\E[5~
9832#	Right Arrow		\E[C
9833#	Up Arrow		\E[A
9834#
9835# kf13-kf24:
9836#	Shift-F1		\E[25~
9837#	Shift-F2		\E[26~
9838#	Shift-F3		\E[27~
9839#	Shift-F4		\E[28~
9840#	Shift-F5		\E[29~
9841#	Shift-F6		\E[30~
9842#	Shift-F7		\E[31~
9843#	Shift-F8		\E[32~
9844#	Shift-F9		\E[33~
9845#	Shift-F10		\E[34~
9846#	Shift-F11		\E[35~
9847#	Shift-F12		\E[36~
9848#
9849# kf25-kf36:
9850#	Ctrl-F1			\E[47~
9851#	Ctrl-F2			\E[48~
9852#	Ctrl-F3			\E[49~
9853#	Ctrl-F4			\E[50~
9854#	Ctrl-F5			\E[51~
9855#	Ctrl-F6			\E[52~
9856#	Ctrl-F7			\E[53~
9857#	Ctrl-F8			\E[54~
9858#	Ctrl-F9			\E[55~
9859#	Ctrl-F10		\E[56~
9860#	Ctrl-F11		\E[57~
9861#	Ctrl-F12		\E[58~
9862#
9863#	Ctrl-Delete		\E[43~
9864#	Ctrl-Down Arrow		\E[38~
9865#	Ctrl-End		\E[44~
9866#	Ctrl-Home		\E[41~
9867#	Ctrl-Insert		\E[42~
9868#	Ctrl-Left Arrow		\E[39~
9869#	Ctrl-Page Down		\E[46~
9870#	Ctrl-Page Up		\E[45~
9871#	Ctrl-Right Arrow	\E[40~
9872#	Ctrl-Up Arrow		\E[37~
9873#
9874# kf37-kf48:
9875#	Alt-F1			\E[59~
9876#	Alt-F2			\E[60~
9877#	Alt-F3			\E[61~
9878#	Alt-F4			\E[62~
9879#	Alt-F5			\E[63~
9880#	Alt-F6			\E[64~
9881#	Alt-F7			\E[65~
9882#	Alt-F8			\E[66~
9883#	Alt-F9			\E[67~
9884#	Alt-F10			\E[68~
9885#	Alt-F11			\E[79~
9886#	Alt-F12			\E[80~
9887#
9888# ignore (conflicting):
9889#	Alt-Delete		\E[65~
9890#	Alt-Down Arrow		\E[60~
9891#	Alt-End			\E[66~
9892#	Alt-Home		\E[41~
9893#	Alt-Insert		\E[64~
9894#	Alt-Left Arrow		\E[61~
9895#	Alt-Page Down		\E[68~
9896#	Alt-Page Up		\E[67~
9897#	Alt-Right Arrow		\E[62~
9898#	Alt-Up Arrow		\E[59~
9899#
9900# Also:
9901#	Alt-A			\E[82~
9902#	Alt-B			\E[82~
9903#	Alt-C			\E[83~
9904#	Alt-D			\E[84~
9905#	Alt-E			\E[85~
9906#	Alt-F			\E[86~
9907#	Alt-G			\E[87~
9908#	Alt-H			\E[88~
9909#	Alt-I			\E[89~
9910#	Alt-J			\E[90~
9911#	Alt-K			\E[91~
9912#	Alt-L			\E[92~
9913#	Alt-M			\E[93~
9914#	Alt-N			\E[94~
9915#	Alt-O			\E[95~
9916#	Alt-P			\E[96~
9917#	Alt-Q			\E[97~
9918#	Alt-R			\E[98~
9919#	Alt-S			\E[99~
9920#	Alt-T			\E[100~
9921#	Alt-U			\E[101~
9922#	Alt-V			\E[102~
9923#	Alt-W			\E[103~
9924#	Alt-X			\E[104~
9925#	Alt-Y			\E[105~
9926#	Alt-Z			\E[106~
9927djgpp|ANSI emulation for DJGPP 2.05,
9928	am, bce, msgr, xhp, xon, xt,
9929	colors#8, it#8, pairs#64,
9930	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j
9931	     \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
9932	     \301w\302x\263y\363z\362{\343|\330}\234~\376,
9933	bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[1v, cnorm=\E[v, cr=\r,
9934	cub1=^H, cvvis=\E[2v, dch=\E[%p1%dP, dch1=\E[P,
9935	ech=\E[%p1%dX, el1=\E[1K, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
9936	ind=\E[S, kf13=\E[25~, kf14=\E[26~, kf15=\E[27~,
9937	kf16=\E[28~, kf17=\E[29~, kf18=\E[30~, kf19=\E[31~,
9938	kf20=\E[32~, kf21=\E[33~, kf22=\E[34~, kf23=\E[35~,
9939	kf24=\E[36~, kf25=\E[47~, kf26=\E[48~, kf27=\E[49~,
9940	kf28=\E[50~, kf29=\E[51~, kf30=\E[52~, kf31=\E[53~,
9941	kf32=\E[54~, kf33=\E[55~, kf34=\E[56~, kf35=\E[57~,
9942	kf36=\E[58~, kf37=\E[59~, kf38=\E[60~, kf39=\E[61~,
9943	kf40=\E[62~, kf41=\E[63~, kf42=\E[64~, kf43=\E[65~,
9944	kf44=\E[66~, kf45=\E[67~, kf46=\E[68~, kf48=\E[80~,
9945	kf6=\E[17~, khome=\E[1~, nel=\r\n, op=\E[37;40m, ri=\E[T,
9946	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
9947	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%e;25%;%?
9948	    %p6%t;1%;%?%p7%t;8%;m,
9949	sgr0=\E[m, smul=\E[4m, alt_A=\E[82~, alt_B=\E[82~,
9950	alt_C=\E[83~, alt_D=\E[84~, alt_E=\E[85~, alt_F=\E[86~,
9951	alt_G=\E[87~, alt_H=\E[88~, alt_I=\E[89~, alt_J=\E[90~,
9952	alt_K=\E[91~, alt_L=\E[92~, alt_M=\E[93~, alt_N=\E[94~,
9953	alt_O=\E[95~, alt_P=\E[96~, alt_Q=\E[97~, alt_R=\E[98~,
9954	alt_S=\E[99~, alt_T=\E[100~, alt_U=\E[101~,
9955	alt_V=\E[102~, alt_W=\E[103~, alt_X=\E[104~,
9956	alt_Y=\E[105~, alt_Z=\E[106~, kDC5=\E[43~, kDN5=\E[38~,
9957	kEND5=\E[44~, kHOM5=\E[41~, kIC5=\E[42~, kLFT5=\E[39~,
9958	kNXT5=\E[46~, kPRV5=\E[45~, kRIT5=\E[40~, kUP5=\E[37~,
9959	use=ansi+arrows, use=ansi+cup, use=ansi+erase,
9960	use=ansi+idl, use=ansi+local, use=ansi+rca2,
9961	use=ansi+sgr, use=ansi+sgrso, use=ecma+index,
9962	use=linux+lockeys, use=vt220+pcedit, use=vt220+ufkeys,
9963
9964djgpp203|entry for DJGPP 2.03,
9965	OTbs, am,
9966	cols#80, it#8, lines#25,
9967	bel=^G, cr=\r, cub1=^H, cud1=\n, ht=^I, ind=\n, kbs=^H, kcub1=^H,
9968	kcud1=\n, nel=\r\n,
9969
9970djgpp204|entry for DJGPP 2.04,
9971	OTbs, am, AX,
9972	colors#8, cols#80, it#8, lines#25, ncv#3, pairs#64,
9973	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[1v,
9974	clear=\E[H\E[2J, cnorm=\E[v, cr=\r, cvvis=\E[2v,
9975	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
9976	ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m,
9977	kf0=\E[21~, kf10=\E[21~, kf6=\E[17~, kf7=\E[18~,
9978	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kll=\E[4~, nel=\r\n,
9979	rev=\E[7m, ri=\E[T, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
9980	sgr0=\E[m, smul=\E[4m, use=ansi+arrows, use=ansi+cup,
9981	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
9982	use=linux+lockeys, use=vt220+pcedit, use=ecma+index,
9983
9984#### U/Win
9985
9986# This is tested using U/Win's telnet.  Scrolling is omitted because it is
9987# buggy.  Another odd bug appears when displaying "~" in alternate character
9988# set (the emulator spits out error messages).  Compare with att6386 -TD
9989uwin|U/Win 3.2 console,
9990	am, eo, in, msgr, xenl, xon,
9991	it#8, ncv#58,
9992	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
9993	     \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
9994	     \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
9995	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
9996	cuf1=\E[C, cuu1=\E[A, dim=\E[2m, ech=\E[%p1%dX, el1=\E[1K,
9997	ht=^I, hts=\EH, kdch1=^?, kend=\E[Y, kf10=\EOY, kf11=\EOZ,
9998	kf12=\EOA, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX,
9999	kich1=\E[@, nel=\r\n, op=\E[39;49m, rc=\E8, rev=\E[7m,
10000	rmacs=\E[10m, rmpch=\E[10m, rs1=\Ec\E]R, sc=\E7,
10001	sgr0=\E[0;10m, smacs=\E[11m, smpch=\E[11m, tbc=\E[3g,
10002	use=ecma+standout, use=ansi+arrows, use=ansi+cpr,
10003	use=ansi+cup, use=ansi+erase, use=ansi+idc,
10004	use=ansi+sgrul, use=klone+color, use=vt100+pf1-pf4,
10005	use=vt220+cvis,
10006
10007#### Microsoft (miscellaneous)
10008
10009# This entry fits the Windows NT console when the _POSIX_TERM environment
10010# variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
10011# the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
10012# stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
10013# systems is not, and (surprise!) they match very well.
10014#
10015# See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
10016# VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
10017# are the installation instructions a pile of mind-numbing bureaucratese,
10018# but the termcap entry is actually broken and unusable as given; the :do:
10019# capability is misspelled "d".
10020#
10021# To use this, you need to a bunch of environment variables:
10022#
10023# SET _POSIX_TERM=on
10024# SET TERM=ansi
10025# SET TERMCAP=location of termcap file in POSIX file format
10026# which is case-sensitive.
10027# e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
10028# SET TMP=//C/TEMP
10029#
10030# Important note: setting the TMP environment variable in POSIX style renders
10031# it incompatible with a lot of other applications, including Visual C++. So
10032# you should have a separate command window just for vi. All the other
10033# variables may be permanently set in the Control Panel\System applet.
10034#
10035# You can find out more about the restrictions of this facility at
10036# <https://jeffpar.github.io/kbarchive/kb/108/Q108581/>
10037#
10038# From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
10039ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode,
10040	am, bw, msgr,
10041	cols#80, it#8, lines#25,
10042	bel=^G, clear=\E[2J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
10043	cuu1=\E[A, ed=\E[J, el=\E[K, ht=^I, ind=\E[S, kbs=^H,
10044	kcub1=\E[D, kcud1=\E[V, kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S,
10045	rc=\E[u, rev=\E[7m, ri=\E[T, sc=\E[s, sgr0=\E[0m,
10046	use=ansi+cup, use=ansi+sgrso,
10047
10048# From: jew@venus.sunquest.com
10049# Date: 19 Feb 93 23:41:07 GMT
10050# Here's  a  combination of  ansi and  vt100 termcap
10051# entries   that  works  nearly   perfectly  for  me
10052# (Gateway 2000 Handbook and Microsoft Works 3.0):
10053pcmw|PC running Microsoft Works,
10054	am, xenl,
10055	cols#80, it#8, lines#24, vt#3,
10056	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
10057	clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
10058	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
10059	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
10060	ht=^I, hts=\EH$<2/>, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H,
10061	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
10062	nel=\r\ED$<5/>, rc=\E8, rev=\E[7m$<2/>,
10063	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
10064	rmso=\E[m$<2/>, rmul=\E[m$<2/>,
10065	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
10066	sgr0=\E[m$<2/>, smso=\E[7m$<2/>, smul=\E[4m$<2/>,
10067	tbc=\E[3g$<2/>, use=vt100+pf1-pf4,
10068
10069# From: Federico Bianchi
10070# This is the entry for the OpenNT terminal.
10071# The ntconsole name is for backward compatibility.
10072# This is for OpenNT 2.0 and later.
10073# Later OpenNT was renamed to Interix.
10074#
10075# Presently it is distributed by Microsoft as Services For Unix (SFU).
10076# The 3.5 beta contained ncurses 4.2 (that is header files and executables,
10077# the documentation dated from 1.9.9e) -TD
10078#
10079# For a US keyboard, with 12 function-kecbt=\E[Z, ys,
10080#	kf1-kf12 are unmodifiedcbt=\E[Z, cbt=\E[Z,
10081#	kf13-kf24 use the shift-key
10082#	kf25-kf36 use the left alt-key
10083#	kf37-kf38 use the control-key
10084#	kf49-kf60 use the shift- and control-keys
10085# The shifted cursor keys send the sequences originally used for kf61-kf64:
10086#	down=\EF+	(kf61)
10087#	up=\EF-		(kf62)
10088#	left=\EF^	(unassigned)
10089#	right=\EF$	(kf64)
10090
10091interix|opennt|opennt-25|ntconsole|ntconsole-25|OpenNT-term compatible with color,
10092	am, bce, msgr,
10093	cols#80, it#8, lines#25,
10094	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j
10095	     \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
10096	     \301w\302x\263y\363z\362{\343|\330}\234~\376,
10097	bel=^G, bold=\E[1m, clear=\E[2J, cr=\r, cud1=\n, ed=\E[J,
10098	el=\E[K, ht=^I, ind=\E[S, kLFT=\EF\^, kRIT=\EF$, kcbt=\E[Z,
10099	kdch1=^?, kend=\E[U, kf0=\EFA, kf1=\EF1, kf10=\EFA,
10100	kf11=\EFB, kf12=\EFC, kf13=\EFD, kf14=\EFE, kf15=\EFF,
10101	kf16=\EFG, kf17=\EFH, kf18=\EFI, kf19=\EFJ, kf2=\EF2,
10102	kf20=\EFK, kf21=\EFL, kf22=\EFM, kf23=\EFN, kf24=\EFO,
10103	kf25=\EFP, kf26=\EFQ, kf27=\EFR, kf28=\EFS, kf29=\EFT,
10104	kf3=\EF3, kf30=\EFU, kf31=\EFV, kf32=\EFW, kf33=\EFX,
10105	kf34=\EFY, kf35=\EFZ, kf36=\EFa, kf37=\EFb, kf38=\EFc,
10106	kf39=\EFd, kf4=\EF4, kf40=\EFe, kf41=\EFf, kf42=\EFg,
10107	kf43=\EFh, kf44=\EFi, kf45=\EFj, kf46=\EFk, kf47=\EFm,
10108	kf48=\EFn, kf49=\EFo, kf5=\EF5, kf50=\EFp, kf51=\EFq,
10109	kf52=\EFr, kf53=\EFs, kf54=\EFt, kf55=\EFu, kf56=\EFv,
10110	kf57=\EFw, kf58=\EFx, kf59=\EFy, kf6=\EF6, kf60=\EFz,
10111	kf7=\EF7, kf8=\EF8, kf9=\EF9, kich1=\E[L, kind=\EF+,
10112	kll=\E[U, knp=\E[T, kpp=\E[S, kri=\EF-, ll=\E[U, nel=\r\n,
10113	op=\E[m, rc=\E[u, rev=\E[7m, ri=\E[T,
10114	rmcup=\E[2b\E[u\r\E[K, rs1=\Ec, sc=\E[s, sgr0=\E[0m,
10115	smcup=\E[s\E[1b, use=ansi+arrows, use=ansi+cup,
10116	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
10117	use=ansi+sgrul, use=ecma+index, use=klone+color,
10118
10119opennt-35|ntconsole-35|OpenNT-term35 compatible with color,
10120	lines#35, use=opennt,
10121
10122opennt-50|ntconsole-50|OpenNT-term50 compatible with color,
10123	lines#50, use=opennt,
10124
10125opennt-60|ntconsole-60|OpenNT-term60 compatible with color,
10126	lines#60, use=opennt,
10127
10128opennt-100|ntconsole-100|OpenNT-term100 compatible with color,
10129	lines#100, use=opennt,
10130
10131# OpenNT wide terminals
10132opennt-w|opennt-25-w|ntconsole-w|ntconsole-25-w|OpenNT-term-w compat with color,
10133	cols#125, use=opennt,
10134
10135opennt-35-w|ntconsole-35-w|OpenNT-term35-w compatible with color,
10136	lines#35, use=opennt-w,
10137
10138opennt-50-w|ntconsole-50-w|OpenNT-term50-w compatible with color,
10139	lines#50, use=opennt-w,
10140
10141opennt-60-w|ntconsole-60-w|OpenNT-term60-w compatible with color,
10142	lines#60, use=opennt-w,
10143
10144opennt-w-vt|opennt-25-w-vt|ntconsole-w-vt|ntconsole-25-w-vt|OpenNT-term-w-vt compat with color,
10145	cols#132, use=opennt,
10146
10147# OpenNT terminals with no smcup/rmcup (names match termcap entries)
10148interix-nti|opennt-nti|opennt-25-nti|ntconsole-25-nti|OpenNT-nti compatible with color,
10149	rmcup@, smcup@, use=opennt,
10150
10151opennt-35-nti|ntconsole-35-nti|OpenNT-term35-nti compatible with color,
10152	lines#35, use=opennt-nti,
10153
10154opennt-50-nti|ntconsole-50-nti|OpenNT-term50-nti compatible with color,
10155	lines#50, use=opennt-nti,
10156
10157opennt-60-nti|ntconsole-60-nti|OpenNT-term60-nti compatible with color,
10158	lines#60, use=opennt-nti,
10159
10160opennt-100-nti|ntconsole-100-nti|OpenNT-term100-nti compatible with color,
10161	lines#100, use=opennt-nti,
10162
10163######## COMMON TERMINAL TYPES
10164#
10165# This section describes terminal classes and maker brands that are still
10166# quite common, but have proprietary command sets not blessed by ANSI.
10167#
10168
10169#### Altos
10170#
10171# Altos made a moderately successful line of UNIX boxes.  In 1990 they were
10172# bought out by Acer, a major Taiwanese manufacturer of PC-clones.
10173# Acer has a web site at http://www.acer.com.
10174#
10175# Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
10176# His comments suggest they were shipped with the system.
10177#
10178
10179# (altos2: had extension capabilities
10180#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
10181#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
10182#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
10183#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
10184#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
10185#	:YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
10186#	:HL=^AP\r:SP=\E[i:\
10187#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
10188#	:LO=\E[0q:LC=\E[5q:LL=\E[6q:\
10189# Comparison with the k* capabilities makes it obvious that the c* things are
10190# shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
10191# :sr: was given as a boolean-- esr)
10192altos2|alt2|altos-2|Altos II,
10193	cols#80, it#8, lines#24, xmc#0,
10194	clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\E[1B, cuf1=\E[1C,
10195	cuu1=\E[1A, dch1=\E[P, ed=\E[J, el=\E[K, ht=^I, ich1=\E[@,
10196	if=/usr/share/tabset/vt100, ind=\n,
10197	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r,
10198	kEOL=^An\r, kcbt=^AK\r, kclr=^AL\r, kdch1=^AM\r, kel=^AN\r,
10199	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
10200	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
10201	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
10202	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
10203	kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r,
10204	nel=\r\n, rmam=\E[?7l, sgr0=\E[m, smam=\E[?7h,
10205	use=ansi+arrows, use=ansi+cup, use=ansi+idl1,
10206	use=ansi+sgrso, use=ansi+sgrul,
10207
10208# (altos3: had extension capabilities
10209#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
10210#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
10211#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
10212#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
10213#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
10214#	:HL=^AP\r:SP=\E[i:\
10215#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:
10216altos3|altos5|alt3|alt5|altos-3|altos-5|Altos III or V,
10217	blink=\E[5p, ri=\EM, sgr0=\E[p, use=altos2,
10218altos4|alt4|altos-4|Altos IV,
10219	use=wy50,
10220# (altos7: had extension capabilities:
10221#	:GG#0:GI=\EH8:GF=\EH7:\
10222#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
10223#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
10224#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
10225#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
10226# Comparison with the k* capabilities makes it obvious that the c* things are
10227# shift keys.  I have renamed them to keys 32 and up accordingly.  I have
10228# also made this entry relative to adm12 in order to give it an <sgr>. The
10229# <invis> imported by use=adm+sgr may work, let me know. -- esr)
10230altos7|alt7|Altos VII,
10231	am, mir,
10232	cols#80, lines#24, xmc#0,
10233	acsc=j5k3l2m1n8q:t4u9v=w0x6, blink=\EG2, bold=\EGt,
10234	clear=\E+^^, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
10235	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
10236	dim=\EGp, dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE,
10237	ind=\n, invis=\EG1,
10238	is2=\E`:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r,
10239	kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H,
10240	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r,
10241	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
10242	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
10243	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
10244	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
10245	kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r,
10246	knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=\r\n, ri=\Ej,
10247	rmir=\Er, smir=\Eq, use=adm+sgr,
10248altos7pc|alt7pc|Altos PC VII,
10249	kend=\ET, use=altos7,
10250
10251#### Hewlett-Packard (hp)
10252#
10253#	Hewlett-Packard
10254#	8000 Foothills Blvd
10255#	Roseville, CA 95747
10256#	Vox: 1-(916)-785-4363	(Technical response line for VDTs)
10257#	     1-(800)-633-3600	(General customer support)
10258#
10259#
10260# As of March 1998, HP no longer has any terminals in production.
10261# The 700 series (22, 32, 41, 44, 92, 94, 96, 98) is still being
10262# supported (they still have parts). So are the 2392a and 2394a.
10263# See the WORKSTATION CONSOLES section for the 700s.
10264#
10265
10266# Generic HP terminal - this should (hopefully) work on any HP terminal.
10267hpgeneric|hp|Hewlett-Packard generic terminal,
10268	OTbs, OTpt, am, da, db, mir, xhp,
10269	cols#80, lines#24, lm#0, vt#6,
10270	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
10271	cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM,
10272	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL,
10273	ind=\n, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@,
10274	sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3,
10275	vpa=\E&a%p1%dY,
10276
10277hp110|Hewlett-Packard model 110 portable,
10278	lines#16, use=hpgeneric,
10279
10280hp+pfk+cr|HP function keys with CR,
10281	kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r,
10282	kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r,
10283
10284hp+pfk-cr|HP function keys w/o CR,
10285	kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev,
10286	kf8=\Ew,
10287
10288# The hp2621s use the same keys for the arrows and function keys,
10289# but not separate escape sequences. These definitions allow the
10290# user to use those keys as arrow keys rather than as function
10291# keys.
10292hp+pfk+arrows|HP alternate arrow definitions,
10293	kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@,
10294	kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r,
10295	kll=\Eq\r, kri=\Es\r,
10296
10297hp+arrows|HP arrow definitions,
10298	khome=\Eh, kind=\ES, kll=\EF, kri=\ET, use=vt52+arrows,
10299
10300# Generic stuff from the HP 262x series
10301#
10302hp262x|HP 262x terminals,
10303	xhp,
10304	blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES,
10305	invis=\E&dS, ip=$<2>, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK,
10306	khome=\Eh, kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV,
10307	kri=\ET, krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@,
10308	rmul=\E&d@,
10309	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|
10310	    %;%?%p4%t%{65}%|%;%c,
10311	sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
10312	use=vt52+arrows,
10313
10314# Note: no <home> on HPs since that homes to top of memory, not screen.
10315# Due to severe 2621 braindamage, the only way to get the arrow keys to
10316# transmit anything at all is to turn on the function key labels
10317# with <smkx>, and even then the user has to hold down shift!
10318# The default 2621 turns off the labels except when it has to, to
10319# enable the function keys. If your installation prefers labels
10320# on all the time, or off all the time (at the "expense" of the
10321# function keys), use 2621-nl or 2621-wl.
10322#
10323# Note: there are newer ROMs for 2621's that allow you to set
10324# strap A so the regular arrow keys xmit \EA, etc, as with the
10325# 2645. However, even with this strap set, the terminal stops
10326# xmitting if you reset it, until you unset and reset the strap!
10327# Since there is no way to set/unset the strap with an escape
10328# sequence, we don't use it in the default.
10329# If you like, you can use 2621-ba (brain-damaged arrow keys).
10330hp2621-ba|HP 2621 w/new rom and strap A set,
10331	rmkx@, smkx@, use=hp+arrows, use=hp2621,
10332
10333# hp2621 with function labels. Most of the time they are off,
10334# but inside vi, the function key labels appear. You have to
10335# hold down shift to get them to xmit.
10336hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|HP 2621 w/labels,
10337	is2=\E&jA\r, rmkx=\E&jA, use=hp2621-fl,
10338hp2621-fl|HP 2621,
10339	xhp@, xon,
10340	pb#19200,
10341	cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>,
10342	ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, smkx=\E&jB, smso=\E&dD,
10343	use=hp+pfk+cr, use=hpgeneric,
10344
10345# To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
10346hp2621p|HP 2621 with printer,
10347	mc4=\E&p13C, mc5=\E&p11C, use=hp2621,
10348
10349hp2621p-a|HP 2621p with fn as arrows,
10350	use=hp+pfk+arrows, use=hp2621p,
10351
10352# hp2621 with k45 keyboard
10353hp2621-k45|hp2621k45|k45|HP 2621 with 45 keyboard,
10354	kbs=^H, khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
10355	use=vt52+arrows,
10356
10357# 2621 using all 48 lines of memory, only 24 visible at any time.
10358hp2621-48|HP 48 line 2621,
10359	lines#48,
10360	cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR,
10361	use=hp2621,
10362
10363# 2621 with no labels ever. Also prevents vi delays on escape.
10364hp2621-nl|HP 2621 with no labels,
10365	kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@,
10366	use=hp2621-fl,
10367
10368# Needed for UCB ARPAVAX console, since lsi-11 expands tabs
10369# (wrong).
10370#
10371hp2621-nt|HP 2621 w/no tabs,
10372	ht@, use=hp2621,
10373
10374# Hp 2624 B with 4 or 10 pages of memory.
10375#
10376# Some assumptions are made with this entry. These settings are
10377# NOT set up by the initialization strings.
10378#
10379# Port Configuration
10380#	RecvPace=Xon/Xoff
10381#	XmitPace=Xon/Xoff
10382#	StripNulDel=Yes
10383#
10384# Terminal Configuration
10385#	InhHndShk=Yes
10386#	InhDC2=Yes
10387#	XmitFnctn(A)=No
10388#	InhEolWrp=No
10389#
10390# Note: the 2624 DOES have a true <home>, believe it or not!
10391#
10392# The 2624 has an "error line" to which messages can be sent.
10393# This is CLOSE to what is expected for a "status line". However,
10394# after a message is sent to the "error line", the next carriage
10395# return is EATEN and the "error line" is turned back off again!
10396# So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
10397#
10398# This entry supports emacs (and any other program that uses raw
10399# mode) at 4800 baud and less. I couldn't get the padding right
10400# for 9600.
10401#
10402# (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
10403hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B,
10404	da, db,
10405	lm#96,
10406	flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F, use=hp+labels, use=scrhp,
10407
10408# This hp2626 entry does not use any of the fancy windowing stuff
10409# of the 2626.
10410#
10411# Indeed, terminfo does not yet handle such stuff. Since changing
10412# any window clears memory, it is probably not possible to use
10413# this for screen opt.
10414#
10415# ed is incredibly slow most of the time - I am guessing at the
10416# exact padding. Since the terminal uses xoff/xon this is intended
10417# only for cost computation, so that the terminal will prefer el
10418# or even dl1 which is probably faster!
10419#
10420# \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
10421# extra slow on the last line of the window.
10422#
10423# The padding probably should be changed.
10424#
10425hp2626|hp2626a|hp2626p|HP 2626,
10426	da, db,
10427	lm#0, pb#19200,
10428	ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>,
10429	is2=\E&j@\r, rin=\E&r%p1%dU, use=hp+pfk-cr,
10430	use=hp+labels, use=scrhp,
10431
10432# This entry is for sysline. It allocates a 23 line window with
10433# a 115 line workspace for regular use, and a 1 line window for
10434# the status line.
10435#
10436# This assumes port 2 is being used.
10437# Turn off horizontal line, Create ws #1 with 115 lines,
10438# Create ws #2 with 1 line, Create window #1 lines 1-23,
10439# Create window #2 lines 24-24, Attach cursor to workspace #1.
10440# Note that this clears the tabs so it must be done by tset before
10441# it sets the tabs.
10442#
10443hp2626-s|HP 2626 using only 23 lines,
10444	eslok, hs,
10445	lines#23,
10446	fsl=\E&d@\E&w7f2p1I\E&w4f1I,
10447	is1=\E&q3t0{0H\s\E&w0f115n1I\s\E&w0f1n2I\s\E&w2f1i0d0u22l0S
10448	    \s\E&w2f2i0d23u23l0S\s\E&w7f2p1I\s\r,
10449	tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, use=hp2626,
10450# Force terminal back to 24 lines after being 23.
10451hp2626-ns|HP 2626 using all 24 lines,
10452	is1=\E&q3t0{0H\s\E&w0f118n1I\s\E&w0f1n2I\s\E&w2f1i0d0u23l0S
10453	    \s\E&w3f2I\s\E&w7f2p1I\s\r,
10454	use=hp2626,
10455# Various entries useful for small windows on 2626.
10456hp2626-12|Hewlett-Packard 2626 12 lines,
10457	lines#12, use=hp2626,
10458hp2626-12x40|Hewlett-Packard 2626 12 lines 40 columns,
10459	cols#40, lines#12, use=hp2626,
10460hp2626-x40|Hewlett-Packard 2626 40 columns,
10461	cols#40, use=hp2626,
10462hp2626-12-s|Hewlett-Packard 2626 11 lines plus status,
10463	lines#11, use=hp2626-s,
10464
10465#
10466# hp2627 color tubes from University of Wisconsin
10467#
10468hp2627a-rev|HP 2627 with reverse video colors,
10469	ht=^I,
10470	is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3
10471	    \r,
10472	kcub1=^H, kcud1=\n, nel=\r\n, rmul=\E&v0S\E&d@,
10473	smul=\E&dD\E&v1S, use=hp2621-nl,
10474hp2627a|HP 2627 color terminal with no labels,
10475	ht=^I,
10476	is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r,
10477	kcub1=^H, kcud1=\n, nel=\r\n, rmso=\E&v0S,
10478	rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S,
10479	use=hp2621-nl,
10480hp2627c|HP 2627 color (cyan) terminal with no labels,
10481	is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r,
10482	use=hp2627a,
10483
10484# hp2640a doesn't have the Y cursor addressing feature, and C is
10485# memory relative instead of screen relative, as we need.
10486#
10487hp2640a|HP 2640a,
10488	cup@, rmkx@, smkx@, use=hp2645,
10489
10490hp2640b|hp2644a|HP 264x series,
10491	rmkx@, smkx@, use=hp2645,
10492
10493# (hp2641a: removed unknown :gu: -- esr)
10494hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry,
10495	am, da, db, mir, xhp,
10496	cols#80, lines#24,
10497	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
10498	cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
10499	ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I,
10500	if=/usr/share/tabset/std, il1=\EL, ind=\n,
10501	is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n,
10502	rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
10503	vpa=\E&a%p1%2dY,
10504
10505# This terminal should be used at 4800 baud or less. It needs padding for
10506# plain characters at 9600, I guessed at an appropriate cr delay.  It really
10507# wants ^E/^F handshaking, but that doesn't work well even if you write
10508# software to support it.
10509hp2645|hp45|HP 2645 series,
10510	pb#9600,
10511	blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kdch1=\EP,
10512	kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ,
10513	kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER,
10514	rev=\E&dB, rmkx=\E&s0A,
10515	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|
10516	    %;%?%p4%t%{65}%|%;%?%p5%t%{72}%|%;%?%p6%t%{66}%|%;%c,
10517	sgr0=\E&d@, smkx=\E&s1A, use=hpgeneric, use=vt52+arrows,
10518# You should use this terminal at 4800 baud or less.
10519hp2648|hp2648a|HP 2648a graphics terminal,
10520	clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
10521	dch1=\EP$<7>, ip=$<5>, use=hp2645,
10522
10523# The HP 150 terminal is a fairly vanilla HP terminal, with the
10524# clreol standout problem. It also has graphics capabilities and
10525# a touch screen, which we don't describe here.
10526hp150|Hewlett Packard Model 150,
10527	OTbs, use=hp2622,
10528
10529# HP 2382a terminals, "the little ones." They don't have any
10530# alternate character set support and sending out ^N/^O will
10531# leave the screen blank.
10532hp2382a|hp2382|Hewlett Packard 2382a,
10533	da, db,
10534	lh#1, lm#48,
10535	acsc@,
10536	pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t\s%;%p2
10537	    %s,
10538	rmacs@,
10539	sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga
10540	    %+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+
10541	    %Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}
10542	    %+%e%{64}%;%;%c,
10543	sgr0=\E&d@, smacs@, use=hp+labels, use=scrhp,
10544
10545hp2621-a|hp2621a-a|hp2621 with fn as arrows,
10546	use=hp+pfk+arrows, use=hp2621-fl,
10547
10548# newer hewlett packard terminals
10549
10550newhpkeyboard|generic entry for HP extended keyboard,
10551	kbs=^H, kcbt=\Ei, kclr=\EJ, kdch1=\EP, kdl1=\EM, ked=\EJ,
10552	kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF,
10553	knp=\EU, kpp=\EV, kri=\ES, krmir=\ER, rmkx=\E&s0A,
10554	smkx=\E&s1A, use=hp+pfk-cr, use=vt52+arrows,
10555
10556newhp|generic entry for new Hewlett Packard terminals,
10557	am, bw, mir, xhp, xon,
10558	cols#80, lines#24, pb#4800,
10559	acsc=2[3@4>5I9(:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X:Y+Z*dHjGkTlRmFn
10560	     /q\,t5u6v8w7x.,
10561	bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=\r, cub1=^H,
10562	cud1=\n, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH,
10563	dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=\n,
10564	invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=\r\n,
10565	pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s,
10566	pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s,
10567	pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET,
10568	rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg,
10569	sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga
10570	    %+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+
10571	    %Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}
10572	    %+%e%{64}%;%;%c%?%p9%t\016%e\017%;,
10573	sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD,
10574	tbc=\E3, use=newhpkeyboard,
10575
10576memhp|memory relative addressing for new HP ttys,
10577	vt#6,
10578	clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR,
10579	cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR,
10580	home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r,
10581	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp,
10582
10583scrhp|screen relative addressing for new HP ttys,
10584	clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC,
10585	cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC,
10586	cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR,
10587	home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA,
10588	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp,
10589
10590# (hp+labels: added label values from a BRL termcap -- esr)
10591hp+labels|"standard" label info for new HP ttys,
10592	lh#2, lw#8, nlab#8,
10593	lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8,
10594	pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t\s%;%p2
10595	    %s,
10596	rmln=\E&j@, smln=\E&jB,
10597
10598hp+printer|"standard" printer info for HP ttys,
10599	ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C,
10600
10601
10602# The new hp2621b is kind of a cross between the old 2621 and the
10603# new 262x series of machines. It has dip-switched options.
10604# The firmware has a bug in it such that if you give it a null
10605# length label, the following character is eaten!
10606hp2621b|HP 2621b with old style keyboard,
10607	lh#1, lm#48, lw#8, nlab#8,
10608	khome=\Eh, kind=\ET, kll=\EF, kri=\ES,
10609	pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c
10610	    %;%p2%s\E%{111}%p1%+%c\r,
10611	smln=\E&jB, use=hp2621, use=vt52+arrows,
10612
10613hp2621b-p|HP 2621b with printer,
10614	use=hp+printer, use=hp2621b,
10615
10616# hp2621b - new 2621b with new extended keyboard
10617# these are closer to the new 26xx series than the other 2621b
10618hp2621b-kx|HP 2621b with extended keyboard,
10619	use=newhpkeyboard, use=hp2621b,
10620
10621hp2621b-kx-p|HP 2621b with new keyboard & printer,
10622	use=hp+printer, use=hp2621b-kx,
10623
10624# Some assumptions are made in the following entries.
10625# These settings are NOT set up by the initialization strings.
10626#
10627#    Port Configuration
10628# RecvPace=Xon/Xoff	XmitPace=Xon/Xoff	StripNulDel=Yes
10629#
10630#    Terminal Configuration
10631# InhHndShk(G)=Yes	InhDC2(H)=Yes
10632# XmitFnctn(A)=No		InhEolWrp=No
10633#
10634#
10635# Hp 2622a & hp2623a display and graphics terminals
10636#
10637hp2622|hp2622a|HP 2622,
10638	da, db,
10639	lm#0, pb#19200,
10640	is2=\E&dj@\r, use=hp+pfk-cr, use=hp+labels, use=scrhp,
10641
10642# The 2623 is a 2622 with extra graphics hardware.
10643hp2623|hp2623a|HP 2623,
10644	use=hp2622,
10645
10646hp2624b-p|hp2624b-4p-p|Hewlett Packard 2624 B with printer,
10647	use=hp+printer, use=hp2624,
10648
10649# The hewlett packard B can have an optional extra 6 pages of memory.
10650hp2624-10p|hp2624a-10p|hp2624b-10p|Hewlett Packard 2624 B w/ 10 pages of memory,
10651	lm#240, use=hp2624,
10652
10653hp2624b-10p-p|Hewlett Packard 2624 B w/ extra memory & printer,
10654	lm#240, use=hp2624b-p,
10655
10656# Color manipulations for HP terminals
10657hp+color|HP with colors,
10658	ccc,
10659	colors#16, ncv#17, pairs#7,
10660	initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.
10661	      %p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1
10662	      %e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=
10663	      %t1%e.%p7%d%;z%p1%dI,
10664	oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5
10665	   I\E&v1b1c6I\E&v1x1y7I,
10666	op=\E&v0S, scp=\E&v%p1%dS,
10667
10668# <is2> sets the screen to be 80 columns wide
10669hp2397a|hp2397|Hewlett Packard 2397A color terminal,
10670	is2=\E&w6f80X, use=memhp, use=hp+labels, use=hp+color,
10671
10672#  HP 700/44 Setup parameters:
10673# Terminal Mode		HP-PCterm
10674# Inhibit Auto Wrap	NO
10675# Status Line		Host Writable
10676# PC Character Set	YES
10677# Twenty-Five Line Mode	YES
10678# XON/XOFF		@128 or 64 (sc)
10679# Keycode Mode		NO   or YES (sc)
10680# Backspace Key		BS or BS/DEL
10681#
10682# <is2>		sets pcterm; autowrap; 25 lines; pc char set; prog DEL key;
10683# \E\\? does not turn off keycode mode
10684# <smsc>	sets alternate start/stop; keycode on
10685hpansi|hp700|Hewlett Packard 700/44 in HP-PCterm mode,
10686	am, eo, xenl, xon,
10687	cols#80, lines#25,
10688	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
10689	     \263,
10690	bel=^G, cbt=\E[Z, clear=\E[2J\E[H, cr=\r, dch1=\E[P, ed=\E[J,
10691	el=\E[K, ht=^I, ich1=\E[@, ind=\n,
10692	is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\,
10693	kcbt=\E[Z, kend=\E[4~, kf1=\E[17~, kf10=\E[28~, kf2=\E[18~,
10694	kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~,
10695	kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~, kpp=\E[5~,
10696	rmam=\E[?7l, rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\,
10697	sgr0=\E[m, smam=\E[?7h,
10698	smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, xoffc=g,
10699	xonc=e, use=ansi+arrows, use=ansi+cup, use=ansi+idl1,
10700	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
10701	use=vt220+cvis,
10702#
10703# (hp2392: copied <rmir> here from hpex -- esr)
10704hp2392|239x series,
10705	cols#80,
10706	cbt=\Ei, cup=\E&a%p1%dy%p2%dC, khome=\Eh, kind=\EU,
10707	knp=\Eu, kpp=\Ev, kri=\EV, rmir=\ER, rmul=\E&d@, smir=\EQ,
10708	smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub, use=hp+pfk+cr,
10709
10710hpsub|HP terminals -- capability subset,
10711	am, da, db, mir, xhp, xon,
10712	lines#24,
10713	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
10714	cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC,
10715	ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=\n,
10716	is2=\E&s1A\E<\E&k0\\, kbs=^H, khome=\Eh, rmkx=\E&s0A,
10717	rmso=\E&d@, sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
10718	use=vt52+arrows,
10719
10720# hpex:
10721#	May be used for most 24 x 80 hp terminals,
10722# but has no padding added, so may allow runover in some terminals at high
10723# baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and
10724# hp98x5 terminal emulators or hp98x6 consoles.
10725#	Adds xy-cursor addressing, vertical cursor addressing, home,
10726# last line, and underline capabilities.
10727#
10728# (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
10729# moved <rmir> here from hpsub -- esr)
10730hpex|HP extended capabilities,
10731	cud1=\n, cup=\E&a%p1%dy%p2%dC, kcub1=^H, kcud1=\n,
10732	nel=\r\n, rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD,
10733	vpa=\E&a%p1%dY, use=hpsub,
10734
10735# From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
10736hp2|hpex2|Hewlett-Packard extended capabilities newer version,
10737	am, da, db, mir, xhp,
10738	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, xmc#0,
10739	bel=^G, clear=\E&a0y0C\EJ, cr=\r, cub1=^H, cud1=\EB,
10740	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
10741	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
10742	il1=\EL, ind=\n, kbs=^H, kclr=\EJ, kctab=\E2, kdch1=\EP,
10743	kdl1=\EM, ked=\EJ, kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL,
10744	knp=\EU, kpp=\EV, krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
10745	pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
10746	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
10747	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
10748	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A,
10749	rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
10750	sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+
10751	    %p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
10752	sgr0=\E&d@\017, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
10753	smso=\E&dB, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
10754	use=hp+pfk-cr, use=hp+arrows,
10755
10756# HP 236 console
10757# From: <ddavis@ic.berkeley.edu>
10758hp236|hp236 internal terminal emulator,
10759	OTbs, am,
10760	cols#80, lines#24,
10761	clear=\EF, cnorm=\EDE, cub1=^H,
10762	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\EDB,
10763	dch1=\EJ, dl1=\EH, el=\EK, ich1=\EI, il1=\EG, rmso=\ECI,
10764	sgr0=\ECI, smso=\EBI,
10765
10766# This works on a hp300 console running Utah 4.3 BSD
10767# From: Craig Leres <leres@okeeffe.berkeley.edu>
10768hp300h|HP Catseye console,
10769	OTbs, am, da, db, mir, xhp,
10770	cols#128, lines#51, lm#0, xmc#0,
10771	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cr=\r, cub1=^H, cud1=\EB,
10772	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
10773	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I,
10774	if=/usr/share/tabset/stdcrt, il1=\EL, ind=\n, kbs=^H,
10775	khome=\Eh, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
10776	sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
10777	tbc=\E3, vpa=\E&a%p1%dY, use=vt52+arrows,
10778# From: Greg Couch <gregc@ernie.berkeley.edu>
10779hp9837|hp98720|hp98721|HP 9000/300 workstations,
10780	OTbs, am, da, db, mir, xhp,
10781	cols#128, it#8, lines#46, lm#0,
10782	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB,
10783	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
10784	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
10785	il1=\EL, ind=\n, is2=\E&v0m1b0i&j@, kbs=^H, kdch1=\EP,
10786	kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL,
10787	knp=\EU, kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S,
10788	rmul=\E&d@, sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S,
10789	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY, use=vt52+arrows,
10790# HP 9845 desktop computer from BRL
10791# (hp9845: removed unknown capability :gu: -- esr)
10792hp9845|HP 9845,
10793	OTbs, am, da, db, eo, mir, xhp,
10794	cols#80, lines#21,
10795	OTbc=\ED, clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
10796	cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
10797	ed=\EJ, el=\EK, if=/usr/share/tabset/std, il1=\EL,
10798	rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
10799# From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
10800# (hp98550: replaced /usr/share/tabset/9837 with std because <it#8>,<hts=\E1>;
10801# added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
10802hp98550|hp98550a|HP 9000 Series 300 color console,
10803	OTbs, am, da, db, mir, xhp,
10804	cols#128, lines#49, lm#0,
10805	acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR,
10806	clear=\EH\EJ, cnorm=\E*dQ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
10807	cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH,
10808	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, hts=\E1,
10809	if=/usr/share/tabset/std, il1=\EL, ind=\n, invis=\E&ds,
10810	kbs=^H, kclr=\EJ, kctab=\E2, kdch1=\EP, kdl1=\EM, ked=\EJ,
10811	kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL, kll=\EF, knp=\EU,
10812	kpp=\EV, krmir=\ER, ktbc=\E3, rev=\E&dJ, rmacs=^O, rmir=\ER,
10813	rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smacs=^N,
10814	smir=\EQ, smkx=\E&s1A, smso=\E&dJ, smul=\E&dD, tbc=\E3,
10815	vpa=\E&a%p1%dY, use=hp+pfk-cr, use=ansi+inittabs,
10816	use=hp+arrows,
10817
10818# From: Martin Trusler
10819hp98550-color|hp98550a-color|HP 9000 Series 300 color console (Trusler),
10820	OTbs, am, ccc, da, db, km, mir, xhp,
10821	colors#8, cols#128, lh#2, lines#49, lm#0, lw#8, nlab#8, pairs#8,
10822	xmc#0,
10823	acsc=+>\,<-\^.v0\374``a\374f\372g\376h\374j+k+l+m+n+o-q-s-t+
10824	     u+v+w+x|y<z>{*|!}\273~\362,
10825	bel=^G, bold=\E&dD, cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=^H,
10826	cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
10827	dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, home=\E&a0y0C,
10828	hpa=\E&a%p1%dC, hts=\E1, il1=\EL, ind=\ES,
10829	initp=\E&v0m%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.
10830	      %p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1
10831	      %e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=
10832	      %t1%e.%p7%d%;z%p1%dI,
10833	is1=\EH\EJ, kbs=^H, kctab=\E2, kdch1=\EP, kdl1=\EM, ked=\EJ,
10834	kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL, kll=\EF, knp=\EU,
10835	kpp=\EV, krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
10836	oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5
10837	   I\E&v1b1c6I\E&v1x1y7I,
10838	op=\E&v0S, pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
10839	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
10840	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
10841	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
10842	rmacs=^O, rmam=\E&s1C, rmcup=\E&s0A, rmir=\ER, rmkx=\E&s0A,
10843	rmln=\E&j@, rmm=\E&k0I, rmso=\E&d@, rmul=\E&d@, rs1=\EE,
10844	scp=\E&v%p1%dS,
10845	sgr=\E&d%p1%p3%|%{2}%*%p2%p6%|%{4}%*%+%{64}%+%c%?%p9%t%'
10846	    \016'%c%e%'\017'%c%;,
10847	sgr0=\E&d@\017, smacs=^N, smam=\E&s0C, smcup=\E&s1A,
10848	smir=\EQ, smkx=\E&s1A, smln=\E&jB, smm=\E&k1I, smso=\E&dB,
10849	smul=\E&dD, tbc=\E3, u6=\Ea%dc%dR\r, u7=\Ea,
10850	u8=\E%[0123456789/], u9=\E*s1\^, vpa=\E&a%p1%dY,
10851	use=hp+pfk-cr, use=ansi+inittabs, use=hp+arrows,
10852
10853# From: Victor Duchovni <vic@fine.princeton.edu>
10854# (hp700-wy: removed obsolete ":nl=^J:";
10855# replaced /usr/share/tabset/hp700-wy with std because <it#8>,<hts=\E1> -- esr)
10856hp700-wy|HP 700/41 emulating Wyse30,
10857	OTbs, am, bw, mir, msgr,
10858	cols#80, it#8, lines#24, xmc#1,
10859	cbt=\EI, clear=^Z, cr=\r, cub1=^H, cud1=^V, cuf1=^L,
10860	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
10861	dl1=\ER, ed=\EY, el=\ET$<10/>, home=^^, ht=^I, hts=\E1,
10862	if=/usr/share/tabset/stdcrt, il1=\EE$<0.7*/>,
10863	is1=\E~"\EC\Er\E(\EG0\003\E`9\E`1, kbs=^?, kcbt=\EI,
10864	kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, ked=\EY,
10865	kel=\ET, khome=^^, khts=\EI, kich1=\Eq, krmir=\Er, ll=^^^K,
10866	ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>,
10867	sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>,
10868	smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c,
10869hp70092|hp70092a|hp70092A|HP 700/92,
10870	am, da, db, xhp,
10871	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8,
10872	acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA,
10873	bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=\r, cub1=^H,
10874	cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
10875	dch1=\EP, dim=\E&dH, dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I,
10876	hts=\E1, il1=\EL, kbs=^H, kclr=\EJ, kctab=\E2, kdch1=\EP,
10877	kdl1=\EM, ked=\EJ, kel=\EK, khts=\E1, kich1=\EQ, kil1=\EL,
10878	kll=\EF, knp=\EU, kpp=\EV, krmir=\ER, ktbc=\E3, rev=\E&dB,
10879	ri=\ET, rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@,
10880	rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smacs=^N, smir=\EQ,
10881	smkx=\E&s1A, smln=\E&jB, smso=\E&dJ, smul=\E&dD, tbc=\E3,
10882	vpa=\E&a%p1%dY, use=hp+pfk-cr, use=hp+arrows,
10883
10884bobcat|sbobcat|HP 9000 model 300 console,
10885	am, da, db, mir, xhp,
10886	cols#128, it#8, lines#47, xmc#0,
10887	cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
10888	cup=\E&a%p1%dy%p2%dC$<6/>, cuu1=\EA, dch1=\EP,
10889	dl1=\EM$<10*/>, ed=\EJ, el=\EK, hpa=\E&a%p1%dC$<6/>, ht=^I,
10890	il1=\EL$<10*/>, ind=\n, kbs=^H, khome=\Eh, nel=\r\n,
10891	rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
10892	smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
10893	vpa=\E&a%p1%dY$<6/>, use=vt52+arrows,
10894gator-t|HP 9000 model 237 emulating extra-tall AAA,
10895	lines#94, use=gator,
10896gator|HP 9000 model 237 emulating AAA,
10897	bw, km, mir, ul,
10898	cols#128, it#8, lines#47,
10899	bel=^G, cbt=\E[Z, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\EM,
10900	dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>,
10901	hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@,
10902	il=\E[%p1%dL$<1*/>, kbs=^H, kcub1=^H, kcud1=\n, nel=\r\n,
10903	rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, sgr0=\E[m,
10904	use=ansi+cup, use=ansi+erase, use=ansi+idl1,
10905	use=ansi+sgrso, use=ansi+sgrul,
10906
10907gator-52|HP 9000 model 237 emulating VT52,
10908	cols#128, lines#47, use=vt52-basic,
10909gator-52t|HP 9000 model 237 emulating extra-tall VT52,
10910	lines#94, use=gator-52,
10911
10912#### Honeywell-Bull
10913#
10914# From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
10915#
10916
10917# Honeywell Bull terminal.  Its cursor and function keys send single
10918# control characters and it has standout/underline glitch.  Most programs
10919# do not like these features/bugs.  Visual bell is realized by flashing the
10920# "keyboard locked" LED.
10921dku7003-dumb|Honeywell Bull DKU 7003 dumb mode,
10922	cols#80, lines#25,
10923	clear=^]^_, cr=\r, cub1=^Y, cud1=^K, cuf1=^X,
10924	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, ed=^_, el=\E[K,
10925	flash=\E[2h\E[2l, home=^], ht=^I, ind=\n, kbs=^H, kcub1=^Y,
10926	kcud1=^K, kcuf1=^X, kcuu1=^Z, khome=^], nel=\r\n,
10927dku7003|Honeywell Bull DKU 7003 all features described,
10928	msgr,
10929	xmc#1,
10930	blink=\E[5m, bold=\E[7m, dim=\E[2m, rev=\E[7m, sgr0=\E[m,
10931	use=ansi+sgrso, use=ansi+sgrul, use=dku7003-dumb,
10932
10933#### Lear-Siegler (LSI adm)
10934#
10935# These guys are long since out of the terminals business, but
10936# in 1995 many current terminals still have an adm type as one of their
10937# emulations (usually their stupidest, and usually labeled adm3, though
10938# these `adm3' emulations normally have adm3a+ capabilities).
10939#
10940# WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a
10941# `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
10942# was being held to ground would trigger a send of the top line on the screen.
10943# A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
10944# hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
10945# for clearing up this point.)
10946
10947adm1a|adm1|LSI adm1a,
10948	am,
10949	cols#80, lines#24,
10950	bel=^G, clear=\E;$<1>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
10951	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^,
10952	ind=\n,
10953adm2|LSI adm2,
10954	OTbs, am,
10955	cols#80, lines#24,
10956	bel=^G, clear=\E;, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
10957	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
10958	dl1=\ER, ed=\EY, el=\ET, home=^^, ich1=\EQ, il1=\EE, ind=\n,
10959	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
10960# (adm3: removed obsolete ":ma=^K^P:" -- esr)
10961adm3|LSI adm3,
10962	OTbs, am,
10963	cols#80, lines#24,
10964	bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, ind=\n,
10965# The following ADM-3A switch settings are assumed for normal operation:
10966#	SPACE		U/L_DISP	CLR_SCRN	24_LINE
10967#	CUR_CTL		LC_EN		AUTO_NL		FDX
10968# Other switches may be set for operator convenience or communication
10969# requirements.  I recommend
10970#	DISABLE_KB_LOCK	LOCAL_OFF	103		202_OFF
10971#	ETX_OFF		EOT_OFF
10972# Most of these terminals required an option ROM to support lower case display.
10973# Open the case and look at the motherboard; if you see an open 24-pin DIP
10974# socket, you may be out of luck.
10975#
10976# (adm3a: some capabilities merged in from BRl entry -- esr)
10977adm3a|LSI adm3a,
10978	OTbs, am,
10979	cols#80, lines#24,
10980	OTma=^K^P, OTnl=\n, bel=^G, clear=\032$<1/>, cr=\r, cub1=^H,
10981	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
10982	cuu1=^K, home=^^, ind=\n, kcub1=^H, kcud1=\n, kcuf1=^L,
10983	kcuu1=^K, rs2=^N,
10984adm3a+|adm3a plus,
10985	kbs=^H, use=adm3a,
10986# (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
10987adm5|LSI adm5,
10988	xmc#1,
10989	ed=\EY, el=\ET, khome=^^, rmso=\EG, smso=\EG, use=adm3a+,
10990# A lot of terminals other than adm11s use these.  Wherever you see
10991# use=adm+sgr with some of its capabilities disabled, try the
10992# disabled ones.  They may well work but not have been documented or
10993# expressed in the using entry.  We'd like to cook up an <sgr> but the
10994# <rmacs>/<smacs> sequences of the using entries vary too much.
10995adm+sgr|adm style highlight capabilities,
10996	invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0, sgr0=\EG0,
10997	smso=\EG4, smul=\EG8,
10998# LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
10999# Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
11000# <khome> from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  <clear> could also
11001# be ^Z, according to his entry.
11002# (adm11: <smul>=\EG4 was obviously erroneous because it also said
11003# <rev>=\EG4.  Looking at other ADMs confirms this -- esr)
11004adm11|LSI ADM-11,
11005	OTbs, am, hs,
11006	OTkn#8, cols#80, lines#24,
11007	OTnl=\n, bel=^G, blink=\EG2, clear=\E*, cr=\r, cub1=^H,
11008	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
11009	cuu1=^K, dsl=\Eh, ed=\EY, el=\ET, fsl=\E(\r, home=^^, ht=^I,
11010	kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
11011	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
11012	kf7=^AF\r, kf8=^AG\r, khome=^^, nel=\r\n, tsl=\EF\E),
11013	use=adm+sgr,
11014# From: Andrew Scott Beals <bandy@lll-crg.ARPA>
11015# Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
11016# Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
11017# (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
11018# <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
11019# via BRL.  That entry asserted <xmc#1>, but I've left that out because
11020# neither earlier nor later ADMSs have it -- esr)
11021#
11022# You will need to get into the supervisor setup before you can set
11023# baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
11024# see a lot more setup options.
11025#
11026# While in supervisor setup you can also use following codes:
11027#
11028# Ctrl-P Personality character selections (configure for example what
11029#        arrow keys send, if I recall correctly)
11030# Ctrl-T tabs 1-80   use left&right to move and up to set and
11031# Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
11032# Ctrl-B Binary setup (probably not needed. I think that everything can
11033#        be set using normal setup)
11034# Ctrl-A Answerback mode (enter answerback message)
11035# Ctrl-U User friendly mode (normal setup)
11036# Ctrl-D Defaults entire setup and function keys from EPROM tables
11037# Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
11038# Ctrl-R Reads both setup and functions keys from NVM.
11039# Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
11040#
11041# ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
11042# RTS/CTS used nowadays with virtually every modem and computer. 19200
11043# bps works fine with hardware flow control.
11044#
11045# The following null-modem cable should fix this and enable you to use
11046# RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
11047# set ADM-12+ for DTR handshaking from supervisor setup.
11048#
11049# PC Serial   ADM-12+
11050#  --------   -------
11051#         2 - 3
11052#         3 - 2
11053#         4 - 5
11054#         5 - 20
11055#       6,8 - 4
11056#         7 - 7
11057#        20 - 6,8
11058#
11059adm12|LSI adm12,
11060	OTbs, OTpt, am, mir,
11061	OTug#1, cols#80, it#8, lines#24,
11062	bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11063	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11064	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
11065	is2=\E0\s\s\s\s\s\s\s\s\E1\s\s\s\s\s\s\s\s\E1\s\s\s\s\s\s\s
11066	    \s\E1\s\s\s\s\s\s\s\s\E1\s\s\s\s\s\s\s\s\E1\s\s\s\s\s\s
11067	    \s\s\E1\s\s\s\s\s\s\s\s\E1\s\s\s\s\s\s\s\s\E1,
11068	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
11069	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
11070	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, smir=\Eq, tbc=\E0,
11071	use=adm+sgr,
11072# (adm20: removed obsolete ":kn#7:" -- esr)
11073adm20|Lear Siegler adm20,
11074	OTbs, am,
11075	cols#80, it#8, lines#24,
11076	bel=^G, cbt=\EI, clear=^Z, cr=\r, cub1=^H, cuf1=^L,
11077	cup=\E=%i%p2%{31}%+%c%p1%{31}%+%c, cuu1=^K, dch1=\EW,
11078	dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, ich1=\EQ, il1=\EE,
11079	kf1=^A, kf2=^B, kf3=^W, kf4=^D, kf5=^E, kf6=^X, kf7=^Z, rmso=\E(,
11080	sgr0=\E(, smso=\E),
11081adm21|Lear Siegler adm21,
11082	xmc#1,
11083	dch1=\EW, dl1=\ER$<30*>, ed=\EY, el=\ET, ich1=\EQ,
11084	il1=\EE$<30*>, invis@, kbs=^H, khome=^^, use=adm+sgr,
11085	use=adm3a,
11086# (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
11087# removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
11088# removed bogus-looking \200 from before <cup>. -- esr)
11089adm22|LSI adm22,
11090	OTbs, am,
11091	cols#80, lines#24,
11092	bel=^G, cbt=\EI, clear=\E+, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11093	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11094	dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE,
11095	is2=\E%\014\014\014\016\003\0\003\002\003\002\0\0\0\0\0\0\0
11096	    \0\0\0\0,
11097	kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
11098	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
11099	kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
11100	lf6=F6, lf7=F7, rmso=\E(, sgr0=\E(, smso=\E),
11101# ADM 31 DIP Switches
11102#
11103# This information comes from two versions of the manual for the
11104# Lear-Siegler ADM 31.
11105#
11106# Main board:
11107#                  rear of case
11108#   +-||||-------------------------------------+
11109#   + S1S2                              ||S    +
11110#   +                                   ||3    +
11111#   +                                          +
11112#   +                                ||S       +
11113#   +                                ||4       +
11114#   +                                          +
11115#   +                                          +
11116#   +                                          +
11117#   +                                          +
11118#   +                                          +
11119# +-+                                          +-+
11120# +                                              +
11121# +                               S5 S6 S7       +
11122# +                               == == ==       +
11123# +----------------------------------------------+
11124#            front of case (keyboard)
11125#
11126#  S1 - Data Rate - Modem
11127#  S2 - Data Rate - Printer
11128# ------------------------
11129# Data Rate   Setting
11130# -------------------
11131# 50          0 0 0 0
11132# 75          1 0 0 0
11133# 110         0 1 0 0
11134# 134.5       1 1 0 0
11135# 150         0 0 1 0
11136# 300         1 0 1 0
11137# 600         0 1 1 0
11138# 1200        1 1 1 0
11139# 1800        0 0 0 1
11140# 2000        1 0 0 1
11141# 2400        0 1 0 1
11142# 3600        1 1 0 1
11143# 4800        0 0 1 1
11144# 7200        1 0 1 1
11145# 9600        0 1 1 1
11146# x           1 1 1 1
11147#
11148# S3 - Interface/Printer/Attributes
11149# ---------------------------------
11150# Printer Busy Control
11151# sw1   sw2   sw3
11152# ---------------
11153# off   off   off   Busy not active, CD disabled
11154# off   off   on    Busy not active, CD enabled
11155# off   on    off   Busy active on J5-20, CD disabled
11156# on    off   off   Busy active on J5-19, CD disabled - Factory Set.
11157# on    off   on    Busy active on J5-19, CD enabled
11158#
11159# sw4   Used in conjunction with S4 for comm interface control - Fact 0
11160#
11161# sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
11162#
11163# sw6   ON enables printer BUSY active LOW - Factory Setting
11164#       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
11165#
11166# sw7   ON - steady cursor - Factory Setting
11167#       OFF - blinking cursor
11168#
11169# sw8   ON causes selected attribute character to be displayed
11170#       OFF causes SPACE to be displayed instead - Factory Setting
11171#
11172# S4 - Interface
11173# --------------
11174# Modem Interface
11175# S3    S4    S4    S4    S4
11176# sw4   sw1   sw2   sw3   sw4
11177# ---------------------------
11178# OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
11179#                               Current Loop disabled - Factory Setting
11180# ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
11181#                               disabled
11182# OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
11183#                               Current Loop Disabled
11184#
11185# sw5   ON disables dot stretching mode - Factory Setting
11186#       OFF enables dot stretching mode
11187# sw6   ON enables blanking function
11188#       OFF enables underline function - Factory Setting
11189# sw7   ON causes NULLS to be displayed as NULLS
11190#       OFF causes NULLS to be displayed as SPACES - Factory Setting
11191#
11192# S5 - Word Structure
11193# -------------------
11194# sw1   ON enables BREAK key - Factory Setting
11195#       OFF disables BREAK key
11196# sw2   ON selects 50Hz monitor refresh rate
11197#       OFF selects 60Hz monitor refresh rate - Factory Setting
11198#
11199# Modem Port Selection
11200# sw3   sw4   sw5
11201# ---------------
11202# ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
11203# OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
11204# ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
11205# OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
11206# ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
11207# OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
11208# ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
11209# OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
11210#
11211# sw6   ON  sends bit 8 a 1 (mark)
11212#       OFF sends bit 8 as 0 (space) - Factory Setting
11213# sw7   ON  selects Block Mode
11214#       OFF selects Conversation Mode - Factory Setting
11215# sw8   ON  selects Full Duplex operation
11216#       OFF selects Half Duplex operation - Factory Setting
11217#
11218# S6 - Printer
11219# ------------
11220# sw1, sw2, sw6, sw7   Reserved - Factory 0
11221#
11222# Printer Port Selection
11223# same as Modem above, bit 8 (when 8 DATA bits) is always = 0
11224#
11225# sw8   ON   enables Printer Port
11226#       OFF disables Printer Port - Factory Setting
11227#
11228# S7 - Polling Address
11229# --------------------
11230# sw1-7 Establish ASCII character which designates terminal polling address
11231#       ON  = logic 0
11232#       OFF = logic 1 - Factory Setting
11233# sw8   ON   enables Polling Option
11234#       OFF disables Polling Option - Factory Setting
11235#
11236#
11237# On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
11238#
11239# This adm31 entry uses underline as the standout mode.
11240# If the adm31 gives you trouble with standout mode, check the DIP switch in
11241# position 6, bank @c11, 25% from back end of the circuit board.  Should be
11242# OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
11243# (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
11244adm31|LSI adm31 with sw6 set for underline mode,
11245	OTbs, am, mir,
11246	cols#80, lines#24,
11247	bel=^G, clear=\E*, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11248	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11249	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, ind=\n, is2=\Eu\E0,
11250	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
11251	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
11252	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, rmso=\EG0,
11253	rmul=\EG0, sgr0=\EG0, smir=\Eq, smso=\EG1, smul=\EG1,
11254adm31-old|o31|old adm31,
11255	rmul@, smso=\EG4, smul@, use=adm31,
11256# LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
11257adm36|LSI ADM36,
11258	OTbs, OTpt,
11259	OTkn#4,
11260	if=/usr/share/tabset/vt100,
11261	is2=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l, use=vt100+4bsd,
11262# (adm42: removed obsolete ":ma=^K^P:" -- esr)
11263adm42|LSI adm42,
11264	OTbs, am,
11265	cols#80, lines#24,
11266	bel=^G, cbt=\EI, clear=\E;, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11267	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11268	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ht=^I,
11269	il1=\EE$<270>, ind=\n, invis@, ip=$<6*>, kcub1=^H, kcud1=\n,
11270	kcuf1=^L, kcuu1=^K, khome=^^, pad=^?, rmir=\Er, rmul@,
11271	smir=\Eq, smul@, use=adm+sgr,
11272# The following termcap for the Lear Siegler ADM-42 leaves the
11273# "system line" at the bottom of the screen blank (for those who
11274# find it distracting otherwise)
11275adm42-ns|LSI adm-42 with no system line,
11276	cbt=\EI\EF \011, clear=\E;\EF \011,
11277	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<6>\EF \011,
11278	dch1=\EW\EF \011, dl1=\ER\EF \011, ed=\EY\EF \011,
11279	el=\ET\EF \011, il1=\EE\EF \011, rmir=\Er\EF \011,
11280	smir=\Eq\EF \011, use=adm42,
11281# ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
11282# The insert mode of this terminal is commented out because it's broken for our
11283# purposes in that it will shift the position of every character on the page,
11284# not just the cursor line!
11285# From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
11286adm1178|1178|LSI adm1178,
11287	am,
11288	cols#80, lines#24, xmc#1,
11289	bel=^G, bold=\E(, cbt=\EI, clear=\E+, cr=\r, cub1=^H, cud1=\n,
11290	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11291	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET,
11292	home=^^, ht=^I, il1=\EE, ind=\n, ip=$<6*/>, kbs=^H, kcub1=^H,
11293	kcud1=\n, nel=\r\n, pad=^?, rev=\EG4, rmso=\EG0, rmul=\EG0,
11294	sgr0=\E), smso=\EG4, smul=\EG1,
11295
11296#### Prime
11297#
11298# Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
11299# <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
11300# Prime merged with ComputerVision in the late 1980s; you can reach them at:
11301#
11302#	ComputerVision Services
11303#	500 Old Connecticut Path
11304#	Framingham, Mass.
11305#
11306
11307# Standout mode is dim reverse-video.
11308pt100|pt200|wren|fenix|Prime pt100/pt200,
11309	am, bw, mir, msgr,
11310	cols#80, it#8, lines#24,
11311	cbt=\E[Z, clear=\E?, cr=\r, cub1=^H, cud1=\ED,
11312	cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu1=\EM,
11313	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl1=\E[M, ed=\E[J\E[r,
11314	el=\E[K\E[t, flash=\E$$<200/>\E$P, home=\E$B, ht=^I,
11315	il1=\E[L\E[t, ind=\n, khome=\E$A, nel=\r\n, rmcup=,
11316	rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, sgr0=\E[m,
11317	smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12
11318	      l\E[1Q,
11319	smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, use=ansi+arrows,
11320	use=ansi+local, use=ansi+sgrul,
11321
11322pt100w|pt200w|wrenw|fenixw|Prime pt100/pt200 in 132-column mode,
11323	cols#132,
11324	cup=\E[%i%p1%d;%p2%dH, use=pt100,
11325pt250|Prime PT250,
11326	rmso@, smso@, use=pt100,
11327pt250w|Prime PT250 in 132-column mode,
11328	rmso@, smso@, use=pt100w,
11329
11330#### Qume (qvt)
11331#
11332#	Qume, Inc.
11333#	3475-A North 1st Street
11334#	San Jose CA 95134
11335#	Vox: (800)-457-4447
11336#	Fax: (408)-473-1510
11337#	Net: josed@techsupp.wyse.com (Jose D'Oliveira)
11338#
11339# Qume was bought by Wyse, but still (as of early 1995) has its own support
11340# group and production division.
11341#
11342# Discontinued Qume models:
11343#
11344# The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
11345# built to replace them, and a qvt119+ which was a 101+ with available wide
11346# mode (132 columns).  There was a qvt103 which added VT100/VT131 emulations
11347# and an ANSI-compatible qvt203 that replaced it.  Qume started producing
11348# ANSI-compatible terminals with the qvt323 and qvt61.
11349#
11350# Current Qume models (as of February 1995):
11351#
11352# All current Qume terminals have ANSI-compatible operation modes.
11353# Qume is still producing the qvt62, which features emulations for other
11354# popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
11355# designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
11356# with many emulations including Wyse370, Wyse 325, etc.  Their newest
11357# model is the qvt520, which is VT420-compatible.
11358#
11359# There are some ancient printing Qume terminals under `Daisy Wheel Printers'
11360#
11361# If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
11362# setup mode.  Shift-s should be a configuration save to NVRAM.
11363
11364qvt101|qvt108|Qume qvt 101 and QVT 108,
11365	xmc#1, use=qvt101+,
11366
11367# This used to have <cvvis=\E.2> but no <cnorm> or <civis>.  The BSD termcap
11368# file had <cvvis=\EM4 \200\200\200>.  I've done the safe thing and yanked
11369# both. The <rev> is from BSD, which also claimed bold=\E( and dim=\E).
11370# What seems to be going on here is that this entry was designed so that
11371# the normal highlight is bold and standout is dim plus something else
11372# (reverse-video maybe?  But then, are there two <rev> sequences?)
11373#
11374# Added kdch1, kil1, kdl1 based on screenshot -TD:
11375#	http://www.vintagecomputer.net/qume/qvt-108/qume_qvt-108_keyboard.jpg
11376qvt101+|qvt101p|Qume qvt 101 PLUS product,
11377	am, bw, hs, ul,
11378	cols#80, lines#24, xmc#0,
11379	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=\r, cub1=^H, cud1=\n,
11380	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11381	dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
11382	flash=\Eb$<200>\Ed, fsl=\r, home=^^, ht=^I, hts=\E1,
11383	ich1=\EQ, il1=\EE, ind=\n, invis@, kbs=^H, kcbt=\EI, kcub1=^H,
11384	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
11385	kel=\ET, kf1=^A@\r, kf10=^AI\r, kf2=^AA\r, kf3=^AB\r,
11386	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
11387	kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, mc4=\EA, mc5=\E@,
11388	rmso=\E(, smso=\E0P\E), tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
11389qvt102|Qume qvt 102,
11390	cnorm=\E., use=qvt101,
11391# (qvt103: added <rmam>/<smam> based on init string -- esr)
11392qvt103|Qume qvt 103,
11393	am, xenl, xon,
11394	cols#80, it#8, lines#24, vt#3,
11395	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
11396	clear=\E[H\E[2J$<50>, cr=\r, cub1=^H, cud1=\n,
11397	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
11398	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
11399	hts=\EH, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
11400	kcuu1=\EOA, rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l,
11401	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
11402	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
11403	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
11404	    %;m$<2>,
11405	sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=,
11406	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ansi+csr,
11407	use=ansi+local, use=vt100+pf1-pf4,
11408
11409qvt103-w|Qume qvt103 132 cols,
11410	cols#132, lines#24,
11411	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103,
11412qvt119+|qvt119p|qvt119|Qume qvt 119 and 119PLUS terminals,
11413	am, hs, mir, msgr,
11414	cols#80, lines#24, xmc#0,
11415	bel=^G, cbt=\EI, clear=\E*1, cnorm=\E.4, cr=\r, cub1=^H,
11416	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
11417	cuu1=^K, cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey,
11418	el=\Et, flash=\En0$<200>\En1, fsl=\r, home=^^, ht=^I,
11419	hts=\E1, il1=\EE, ind=\n, is2=\EDF\EC\EG0\Er\E(\E%EX,
11420	kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf0=^AI\r,
11421	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
11422	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
11423	mc4=\EA, mc5=\E@, ri=\EJ, rmir=\Er, smir=\Eq, smul=\EG8,
11424	tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
11425qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines,
11426	lines#25, use=qvt119+,
11427qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode,
11428	cols#132,
11429	is2=\EDF\EC\EG0\Er\E(\E%\EX\En4, use=qvt119+,
11430qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25,
11431	lines#25, use=qvt119+,
11432qvt203|qvt203+|Qume qvt 203 Plus,
11433	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
11434	ip=$<7>, kf0=\E[29~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
11435	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
11436	kf9=\E[28~, rmir=\E[4l, smir=\E[4h, use=qvt103,
11437qvt203-w|qvt203-w-am|Qume qvt 203 PLUS in 132 cols (w/advanced video),
11438	cols#132, lines#24,
11439	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt203,
11440#
11441#	Since a command is present for enabling 25 data lines,
11442#	a specific terminfo entry may be generated for the 203.
11443#	If one is desired for the QVT 119 PLUS then 25 lines must
11444#	be selected in the status line (setup line 9).
11445#
11446qvt203-25|QVT 203 PLUS with 25 by 80 column mode,
11447	cols#80, lines#25,
11448	is2=\E[=40h\E[?3l, use=qvt203,
11449qvt203-25-w|QVT 203 PLUS with 25 by 132 columns,
11450	cols#132, lines#25,
11451	rs2=\E[?3h\E[=40h, use=qvt203,
11452
11453#### TeleVideo (tvi)
11454#
11455#	TeleVideo
11456#	550 East Brokaw Road
11457#	PO Box 49048    95161
11458#	San Jose CA 95112
11459#	Vox: (408)-954-8333
11460#	Fax: (408)-954-0623
11461#
11462#
11463# These require incredible amounts of padding.
11464#
11465# All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
11466# TeleVideo terminals are ANSI and PC-ANSI compatible.
11467
11468tvi803|TeleVideo 803,
11469	clear=\E*$<10>, use=tvi950,
11470
11471# Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
11472# Switch settings are:
11473#
11474# S1  1 2 3 4
11475#     D D D D  9600
11476#     D D D U    50
11477#     D D U D    75
11478#     D D U U   110
11479#     D U D D   135
11480#     D U D U   150
11481#     D U U D   300
11482#     D U U U   600
11483#     U D D D  1200
11484#     U D D U  1800
11485#     U D U D  2400
11486#     U D U U  3600
11487#     U U D D  4800
11488#     U U D U  7200
11489#     U U U D  9600
11490#     U U U U 19200
11491#
11492# S1  5 6 7 8
11493#     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
11494#     U D X U  7N2
11495#     U U D D  7O1
11496#     U U D U  7O2
11497#     U U U D  7E1
11498#     U U U U  7E2
11499#     D D X D  8N1
11500#     D D X U  8N2
11501#     D U D D  8O1
11502#     D U U U  8E2
11503#
11504# S1  9  Autowrap
11505#     U  on
11506#     D  off
11507#
11508# S1 10  CR/LF
11509#     U  do CR/LF when CR received
11510#     D  do CR when CR received
11511#
11512# S2  1  Mode
11513#     U  block
11514#     D  conversational
11515#
11516# S2  2  Duplex
11517#     U  half
11518#     D  full
11519#
11520# S2  3  Hertz
11521#     U  50
11522#     D  60
11523#
11524# S2  4  Edit mode
11525#     U  local
11526#     D  duplex
11527#
11528# S2  5  Cursor type
11529#     U  underline
11530#     D  block
11531#
11532# S2  6  Cursor down key
11533#     U  send ^J
11534#     D  send ^V
11535#
11536# S2  7  Screen colour
11537#     U  green on black
11538#     D  black on green
11539#
11540# S2  8  DSR status (pin 6)
11541#     U  disconnected
11542#     D  connected
11543#
11544# S2  9  DCD status (pin 8)
11545#     U  disconnected
11546#     D  duplex
11547#
11548# S2 10  DTR status (pin 20)
11549#     U  disconnected
11550#     D  duplex
11551# (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added <khome>, <cub1>, <cud1>,
11552# <ind>, <hpa>, <vpa>, <am>, <msgr> from SCO entry -- esr)
11553tvi910|TeleVideo model 910,
11554	OTbs, am, msgr,
11555	cols#80, it#8, lines#24, xmc#1,
11556	bel=^G, cbt=\EI, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11557	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
11558	home=\E=^A^A, hpa=\E]%p1%{32}%+%c, ht=^I,
11559	if=/usr/share/tabset/stdcrt, ind=\n, invis@, kbs=^H,
11560	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kf0=^AI\r, kf1=^A@\r,
11561	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
11562	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
11563	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
11564# From: Alan R. Rogers <rogers%albany@csnet-relay>
11565# as subsequently hacked over by someone at SCO
11566# (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
11567#
11568# Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
11569#
11570# S1  1 2 3 4:
11571#     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
11572#     D U D D   135     D U D U   150     D U U D   300     D U U U   600
11573#     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
11574#     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
11575#
11576# S1  5 6 7 8:
11577#     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
11578#     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
11579#     D U D D  8O1     D U U U  8E2
11580#
11581# S1  9  Autowrap            (U = on, D = off)
11582# S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
11583# S2  1  Mode                (U = block, D = conversational)
11584# S2  2  Duplex              (U =  half, D = full)
11585# S2  3  Hertz               (U = 50, D = 60)
11586# S2  4  Edit mode           (U = local, D = duplex)
11587# S2  5  Cursor type         (U = underline, D = block)
11588# S2  6  Cursor down key     (U = send ^J, D = send ^V)
11589# S2  7  Screen colour       (U = green on black, D = black on green)
11590# S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
11591# S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
11592# S2 10  DTR status (pin 20) (U = disconnected, D = connected)
11593#
11594tvi910+|TeleVideo 910+,
11595	dch1=\EW, dl1=\ER$<33*>, home=^^, ich1=\EQ, il1=\EE$<33*>,
11596	kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r,
11597	kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r,
11598	ll=\E=7\s, use=tvi910,
11599
11600# (tvi912: removed obsolete ":ma=^K^P^L :", added  <flash> and
11601# <khome> from BRL entry -- esr)
11602tvi912|tvi914|tvi920|TeleVideo 912/914/920 (old),
11603	OTbs, OTpt, am, msgr,
11604	cols#80, it#8, lines#24, xmc#1,
11605	bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11606	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11607	dl1=\ER$<33*>, ed=\Ey, el=\ET, flash=\Eb$<50/>\Ed, home=^^,
11608	ht=^I, hts=\E1, ich1=\EQ, if=/usr/share/tabset/stdcrt,
11609	il1=\EE$<33*>, ind=\n, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L,
11610	kcuu1=^K, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
11611	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
11612	kf9=^AH\r, khome=^^, rmso=\Ek, rmul=\Em, smso=\Ej, smul=\El,
11613	tbc=\E3,
11614# We got some new tvi912c terminals that act really weird on the regular
11615# termcap, so one of our gurus worked this up. Seems that cursor
11616# addressing is broken.
11617tvi912cc|tvi912 at Cowell College,
11618	cup@, use=tvi912c,
11619
11620# tvi{912,920}[bc] - TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C
11621# From: Benjamin C. W. Sittler
11622#
11623# Someone has put a scanned copy of the manual online at:
11624#     http://vt100.net/televideo/912b-om/
11625#     (https://vt100.net/manx/details/6,5484)
11626#
11627# These terminals were produced ca. 1979, and had a 12" monochrome
11628# screen, supported 75-9600 baud (no handshaking), monochrome, 7-bit
11629# ASCII, and were generally similar to adm3a but with attributes
11630# (including some with magic cookies), fancy half-duplex mode, and
11631# different bugs.
11632#
11633# Some operations require truly incredible amounts of padding. The
11634# insert_line (<il1>) and delete_line (<dl1>) operations in particular
11635# are so slow as to be nearly unusable.
11636#
11637# There may or may not have been a separate, earlier series of 912/920
11638# terminals (without the "B" and "C" suffix); I have never seen one,
11639# and the manual only describes the "B" and "C" series. The 912 and 920
11640# are quite distinct from the 914 and 924, which were much nicer non-
11641# magic-cookie terminals similar to the 950.
11642#
11643# This is a new description for the following TeleVideo terminals,
11644# distinguished chiefly by their keyboards:
11645#
11646#   TVI-912B - very odd layout, no function keys (84 keys)
11647#   TVI-920B - typewriter layout, no function keys (103 keys)
11648#   TVI-912C - very odd layout, function keys F1-F11 (82 keys)
11649#   TVI-920C - typewriter layout, function keys F1-F11 (101 keys)
11650#
11651# To choose a setting for the TERM variable, start with the model:
11652#
11653#    Model  || base name
11654# ----------||-----------
11655#  TVI-912B || tvi912b
11656#  TVI-912C || tvi912c
11657#  TVI-920B || tvi920b
11658#  TVI-920C || tvi920c
11659#
11660# Then add a suffix from the following table describing installed options
11661# and how you'd like to use the terminal:
11662#
11663#   Use Video | Second | Visual |  Magic  |  Page || feature
11664#  Attributes |  Page  |  Bell  | Cookies | Print || suffix
11665# ------------|--------|--------|---------|-------||---------
11666#      No     |   No   |  N/A   |   N/A   |   No  || -unk
11667#      No     |   No   |  N/A   |   N/A   |  Yes  || -p
11668#      No     |  Yes   |   No   |   N/A   |   No  || -2p-unk
11669#      No     |  Yes   |   No   |   N/A   |  Yes  || -2p-p
11670#      No     |  Yes   |  Yes   |   N/A   |   No  || -vb-unk
11671#      No     |  Yes   |  Yes   |   N/A   |  Yes  || -vb-p
11672#     Yes     |   No   |  N/A   |    No   |  N/A  ||
11673#     Yes     |   No   |  N/A   |   Yes   |  N/A  || -mc
11674#     Yes     |  Yes   |   No   |    No   |  N/A  || -2p
11675#     Yes     |  Yes   |   No   |   Yes   |  N/A  || -2p-mc
11676#     Yes     |  Yes   |  Yes   |    No   |  N/A  || -vb
11677#     Yes     |  Yes   |  Yes   |   Yes   |  N/A  || -vb-mc
11678#
11679# So e.g. a model 920 C with second page memory option, visual bell
11680# and no magic cookies would be tvi920c-vb; a model 912 B without the
11681# second page memory option and using magic cookies would be
11682# tvi912b-mc
11683#
11684# PADDING
11685#
11686# At 9600 baud, the terminal is prone to overflow its input buffer
11687# during complex operations (insert/delete
11688# character/line/screen/page), and it does not signal this over the
11689# RS232 cable. The typical symptom of an overrun is that the terminal
11690# starts beeping, and output becomes garbled.
11691#
11692# The padding delays in this terminfo were derived using tack(1)
11693# running on a Linux box connected to a TVI-920C with a later-model
11694# (A49C1-style) ROM running at 9600 baud, so your mileage may
11695# vary. The numbers below seem to give the terminal enough time so
11696# that it doesn't overflow its input buffer and start losing
11697# characters.
11698#
11699# KEYS
11700#
11701# If you want to use the FUNCT key on a tvi912[bc], use the
11702# corresponding tvi920[bc] terminfo with FUNCT + ... equivalents from
11703# the following table (these also work on the 920 series):
11704#
11705# Unshifted Function Keys:
11706#
11707#  Key | capname|| Equivalent
11708# -----|--------||------------
11709#   F1 |  <kf1> || FUNCT + @
11710#   F2 |  <kf2> || FUNCT + A
11711#   F3 |  <kf3> || FUNCT + B
11712#   F4 |  <kf4> || FUNCT + C
11713#   F5 |  <kf5> || FUNCT + D
11714#   F6 |  <kf6> || FUNCT + E
11715#   F7 |  <kf7> || FUNCT + F
11716#   F8 |  <kf8> || FUNCT + G
11717#   F9 |  <kf9> || FUNCT + H
11718#  F10 | <kf10> || FUNCT + I
11719#  F11 | <kf11> || FUNCT + J
11720#
11721# Shifted Function Keys:
11722#
11723#  SHIFT + Key | capname|| Equivalent
11724# -------------|--------||------------
11725#   SHIFT + F1 | <kf12> || FUNCT + `
11726#   SHIFT + F2 | <kf13> || FUNCT + a
11727#   SHIFT + F3 | <kf14> || FUNCT + b
11728#   SHIFT + F4 | <kf15> || FUNCT + c
11729#   SHIFT + F5 | <kf16> || FUNCT + d
11730#   SHIFT + F6 | <kf17> || FUNCT + e
11731#   SHIFT + F7 | <kf18> || FUNCT + f
11732#   SHIFT + F8 | <kf19> || FUNCT + g
11733#   SHIFT + F9 | <kf20> || FUNCT + h
11734#  SHIFT + F10 | <kf21> || FUNCT + i
11735#  SHIFT + F11 | <kf22> || FUNCT + j
11736#
11737# PORTS AND SWITCH SETTINGS
11738#
11739# Here are the switch settings for the TVI-912B/TVI-920B and
11740# TVI-912C/TVI-920C:
11741#
11742# S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
11743# 2: 9600	3: 4800		4: 2400		5: 1200
11744# 6:  600	7:  300		8:  150		9:   75
11745# 10: 110
11746#
11747# S2 UART/Terminal options:
11748#		Up			Down
11749# 1:		Not used		Not allowed
11750# 2:	Alternate character set	  Standard character set
11751# 3:	    Full duplex		    Half duplex
11752# 4:	    50 Hz refresh	    60 Hz refresh
11753# 5:	      No parity		     Send parity
11754# 6:	     2 stop bits	     1 stop bit
11755# 7:	     8 data bits	     7 data bits
11756# 8:		Not used		Not allowed on Rev E or lower
11757# 9:	     Even parity	     Odd parity
11758# 10:	    Steady cursor	    Blinking cursor
11759#	(On Rev E or lower, use W25 instead of switch 10.)
11760#
11761# S5 UART/Terminal options:
11762#		Open			Closed
11763# 1:	P3-6 Not connected	DSR received on P3-6
11764# 2:	P3-8 Not connected	DCD received on P3-8
11765#
11766# 3 Open, 4 Open:		P3-20 Not connected
11767# 3 Open, 4 Closed:	DTR on when terminal is on
11768# 3 Closed, 4 Open:	DTR is connected to RTS
11769# 3 Closed, 4 Closed:	Not allowed
11770#
11771# 5 Closed:	HDX printer (hardware control) Rev. K with extension port off,
11772#		all data transmitted out of the modem port (P3) will also be
11773#		transmitted out of the printer port (P4).
11774#
11775# 6 Open, 7 Open:		Not allowed
11776# 6 Open, 7 Closed:	20ma current loop input
11777# 6 Closed, 7 Open:	RS232 input
11778# 6 Closed, 7 Closed:	Not allowed
11779#
11780# Jumper options:
11781# If the jumper is installed, the effect will occur (the next time the terminal
11782# is switched on).
11783#
11784# S4/W31:	Enables automatic LF upon receipt of CR from
11785#		remote or keyboard.
11786# S4/W32:	Enables transmission of EOT at the end of Send.  If not
11787#		installed, a carriage return is sent.
11788# S4/W33:	Disables automatic carriage return in column 80.
11789# S4/W34:	Selects Page Print Mode as initial condition.  If not
11790#		installed, Extension Mode is selected.
11791#
11792# NON-STANDARD CAPABILITIES
11793#
11794# Sending <u9> or <u7> returns a cursor position report in the format
11795# YX\r, where Y and X are as in <cup>. This format is described in
11796# <u8> and <u6>, but it's not clear how one should write an
11797# appropriate scanf string, since we need to subtract %' ' from the
11798# character after reading it. The <u9> capability is used by tack(1)
11799# to synchronize during padding tests, and seems to work for that
11800# purpose.
11801#
11802# This description also includes the obsolete termcap capabilities
11803# has_hardware_tabs (<OTpt>) and backspaces_with_bs (<OTbs>).
11804#
11805# FEATURES NOT YET DESCRIBED IN THIS TERMINFO
11806#
11807# The FUNCT modifier actually works with every normal key by sending
11808# ^AX\r, where X is the sequence normally sent by that key. This is a
11809# sort of meta key not currently describable in terminfo.
11810#
11811# There are quite a few other keys (especially on the 920 models,) but
11812# they are for the most part only useful in block mode.
11813#
11814# These terminals have lots of forms manipulation features, mainly
11815# useful in block mode, including "clear X to nulls" (vs. "clear X to
11816# spaces"; nulls are sentinels for "send X" operations); "send X"
11817# operations for uploading all or part of the screen; and block-mode
11818# editing keys (they don't send escape sequences, but manipulate video
11819# memory directly). Block mode is used for local editing, and protect
11820# mode (in conjunction with the "write protect" attribute,
11821# a.k.a. half-intensity outside of protect mode) is used to control
11822# which parts of the screen are edited/sent/printed (by <mc0>).
11823#
11824# There are at least two major families of ROM, "early" and
11825# A49B1/A49C1; the major difference seems to be that the latter ROMs
11826# support a few extra escape sequences for manipulating the off-screen
11827# memory page, and for sending whole pages back to the host (mainly
11828# useful in block mode.) The descriptions in this file don't use any
11829# of those sequences: set cursor position including page (\E-PYX,
11830# where P is \s for page 0 and ! for page 1 [actually only the LSB of
11831# P is taken into account, so e.g. 0 and 1 work too,] and Y and X are
11832# as in <cup>); read cursor position (\E/), which is analogous to <u9>
11833# and returns PYX\r, where P is \s for page 0 or ! for page 1, and YX
11834# are as in <cup>, and some "send page" features mainly useful for
11835# forms manipulation.
11836#
11837# The keyboard enable (\E") and disable (\E#) sequences are unused,
11838# except that a terminal reset (<is2>) enables the keyboard.
11839#
11840# Auto-flip mode (\Ev) is likely faster than the scrolling mode (\Ew)
11841# enabled in <is2>, but auto-flip is very jarring so we don't use it.
11842#
11843# BUGS
11844#
11845# At least up to the A49B1 and A49C1 ROMs, there are no \Eb and \Ed
11846# sequences (I infer that in some TeleVideo terminal they may invert
11847# and uninvert the display) so the <flash> sequence given here is a
11848# cheesy page-flip instead.
11849#
11850# The back_tab (<cbt>) sequence (\EI) doesn't work according to
11851# tack(1), so it is not included in the descriptions below.
11852#
11853# It's not clear whether auto_left_margin (<bw>) flag should be set
11854# for these terminals; tack says yes, so it is set here, but this
11855# differs from other descriptions I've seen.
11856#
11857# Extension print mode (<mc5>) echoes all characters to the printer
11858# port [in addition to displaying them] except for the page print mode
11859# sequence (<mc4>); this is a slight violation of the terminfo
11860# definition for <mc5> but I don't expect it to cause problems.  We
11861# reset to page print mode in <rs1> since it may have been enabled
11862# accidentally.
11863#
11864# The descriptions with plus signs (+) are building blocks.
11865
11866tvi912b-unk|tvi912c-unk|TeleVideo TVI-912B or TVI-912C (no attributes),
11867	OTbs, OTpt, am, bw,
11868	cols#80, it#8, lines#24,
11869	bel=^G, clear=\032$<50>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
11870	cup=\E=%p1%' '%+%c%p2%' '%+%c, cuu1=^K, dch1=\EW$<30>,
11871	dl1=\ER$<1*>$<100>, ed=\Ey$<2*>$<10>, el=\ET$<15>,
11872	home=^^, ht=^I, hts=\E1, ich1=\EQ$<30>,
11873	if=/usr/share/tabset/stdcrt, il1=\EE$<1*>$<100>,
11874	ind=\n$<10>, is2=\Ew\EA\E'\E"\E(, kcub1=^H, kcud1=\n,
11875	kcuf1=^L, kcuu1=^K, kdch1=^?, kent=\r, khome=^^, mc4=\EA,
11876	mc5=\E@, rs1=\Ek\010\Em\010\Eq\032, tbc=\E3, u6=%c%c\r,
11877	u7=\E?, u8=%c%c\r, u9=\E?,
11878
11879# This isn't included in the basic capabilities because it is
11880# typically unusable in combination with the full range of video
11881# attributes, since the magic cookie attributes turn into ASCII
11882# control characters, and the half-intensity ("protected") attribute
11883# converts all affected characters to spaces.
11884
11885tvi912b+printer|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C page print support,
11886	mc0=\EP,
11887
11888# This uses half-intensity mode (<dim>) for standout (<smso>), and
11889# exposes no other attributes (half-intensity is the only attribute
11890# that does not generate a magic cookie.)
11891
11892tvi912b+dim|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C half-intensity attribute support,
11893	msgr,
11894	dim=\E), rmso=\E(, sgr=\E%?%p1%p5%|%t)%e(%;, sgr0=\E(,
11895	smso=\E),
11896
11897# Full magic-cookie attribute support, with half-intensity reverse
11898# video for standout. Note that we add a space in the <dim> sequence
11899# to give a consistent magic-cookie count. Also note that <sgr> uses
11900# backspacing (in the TVI-supported order) to apply all requested
11901# attributes with only a single magic cookie.
11902
11903tvi912b+mc|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C full magic-cookie attribute support,
11904	xmc#1,
11905	blink=\E\^, dim=\E)\s, invis=\E_, rev=\Ej, rmso=\E(\Ek,
11906	rmul=\Em,
11907	sgr=\E%?%p1%p5%|%t)%e(%;\s\010\E%?%p1%p3%|%tj%ek%;\010\E%?
11908	    %p2%tl%em%;\010\E%?%p7%t_%e%?%p4%t\^%eq%;%;,
11909	sgr0=\E(\Ek\010\Em\010\Eq, smso=\E)\Ej, smul=\El,
11910
11911# This uses the second page memory option to save & restore screen
11912# contents. If your terminal is missing the option, this description
11913# should still work, but that has not been tested.
11914
11915tvi912b+2p|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option support,
11916	flash=\EK$<100>\EK, rmcup=\032$<50>\EK\E=7\s,
11917	smcup=\EK\032$<50>\E(\Ek\010\Em\010\Eq\032$<50>,
11918
11919# This simulates flashing by briefly toggling to the other page
11920# (kludge!)
11921
11922tvi912b+vb|TeleVideo TVI-912B/TVI-920B and TVI-912C/TVI-920C second page memory option "visible bell" support,
11923	bel=\EK$<100>\EK, use=tvi912b+2p,
11924
11925# Function keys (<kf12> .. <kf22> are shifted <kf1> .. <kf11>)
11926
11927tvi920b+fn|TeleVideo TVI-920B and TVI-920C function key support,
11928	kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^A`\r, kf13=^Aa\r,
11929	kf14=^Ab\r, kf15=^Ac\r, kf16=^Ad\r, kf17=^Ae\r, kf18=^Af\r,
11930	kf19=^Ag\r, kf2=^AA\r, kf20=^Ah\r, kf21=^Ai\r, kf22=^Aj\r,
11931	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
11932	kf8=^AG\r, kf9=^AH\r,
11933
11934# Combinations of the basic building blocks
11935
11936tvi912b-2p-unk|tvi912c-2p-unk|tvi912b-unk-2p|tvi912c-unk-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; no attributes),
11937	use=tvi912b+2p, use=tvi912b-unk,
11938
11939tvi912b-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),
11940	use=tvi912b+vb, use=tvi912b-unk,
11941
11942tvi912b-p|tvi912c-p|TeleVideo TVI-912B or TVI-912C (no attributes; page print),
11943	use=tvi912b+printer, use=tvi912b-unk,
11944
11945tvi912b-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),
11946	use=tvi912b+2p, use=tvi912b+printer, use=tvi912b-unk,
11947
11948tvi912b-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),
11949	use=tvi912b+vb, use=tvi912b+printer, use=tvi912b-unk,
11950
11951tvi912b-2p|tvi912c-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; half-intensity attribute),
11952	use=tvi912b+2p, use=tvi912b+dim, use=tvi912b-unk,
11953
11954tvi912b-2p-mc|tvi912c-2p-mc|tvi912b-mc-2p|tvi912c-mc-2p|TeleVideo TVI-912B or TVI-912C (second page memory option; magic cookies),
11955	use=tvi912b+2p, use=tvi912b+mc, use=tvi912b-unk,
11956
11957tvi912b-vb|tvi912c-vb|TeleVideo TVI-912B or TVI-912C (second page memory option "visible bell"; half-intensity attribute),
11958	use=tvi912b+vb, use=tvi912b+dim, use=tvi912b-unk,
11959
11960tvi912b-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),
11961	use=tvi912b+vb, use=tvi912b+mc, use=tvi912b-unk,
11962
11963tvi912b|tvi912c|TeleVideo TVI-912B or TVI-912C (half-intensity attribute),
11964	use=tvi912b+dim, use=tvi912b-unk,
11965
11966tvi912b-mc|tvi912c-mc|TeleVideo TVI-912B or TVI-912C (magic cookies),
11967	use=tvi912b+mc, use=tvi912b-unk,
11968
11969tvi920b-unk|tvi920c-unk|TeleVideo TVI-920B or TVI-920C (no attributes),
11970	use=tvi920b+fn, use=tvi912b-unk,
11971
11972tvi920b-2p-unk|tvi920c-2p-unk|tvi920b-unk-2p|tvi920c-unk-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; no attributes),
11973	use=tvi920b+fn, use=tvi912b+2p, use=tvi912b-unk,
11974
11975tvi920b-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),
11976	use=tvi920b+fn, use=tvi912b+vb, use=tvi912b-unk,
11977
11978tvi920b-p|tvi920c-p|TeleVideo TVI-920B or TVI-920C (no attributes; page print),
11979	use=tvi920b+fn, use=tvi912b+printer, use=tvi912b-unk,
11980
11981tvi920b-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),
11982	use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+printer,
11983	use=tvi912b-unk,
11984
11985tvi920b-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),
11986	use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+printer,
11987	use=tvi912b-unk,
11988
11989tvi920b-2p|tvi920c-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; half-intensity attribute),
11990	use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+dim,
11991	use=tvi912b-unk,
11992
11993tvi920b-2p-mc|tvi920c-2p-mc|tvi920b-mc-2p|tvi920c-mc-2p|TeleVideo TVI-920B or TVI-920C (second page memory option; magic cookies),
11994	use=tvi920b+fn, use=tvi912b+2p, use=tvi912b+mc,
11995	use=tvi912b-unk,
11996
11997tvi920b-vb|tvi920c-vb|TeleVideo TVI-920B or TVI-920C (second page memory option "visible bell"; half-intensity attribute),
11998	use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+dim,
11999	use=tvi912b-unk,
12000
12001tvi920b-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),
12002	use=tvi920b+fn, use=tvi912b+vb, use=tvi912b+mc,
12003	use=tvi912b-unk,
12004
12005tvi920b|tvi920c|TeleVideo TVI-920B or TVI-920C (half-intensity attribute),
12006	use=tvi920b+fn, use=tvi912b+dim, use=tvi912b-unk,
12007
12008tvi920b-mc|tvi920c-mc|TeleVideo TVI-920B or TVI-920C (magic cookies),
12009	use=tvi920b+fn, use=tvi912b+mc, use=tvi912b-unk,
12010
12011# TeleVideo 921 and variants
12012# From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
12013# (tvi921: removed :ko=bt: before translation, I see no backtab cap;
12014# also added empty <acsc> to suppress tic warning -- esr)
12015tvi921|TeleVideo model 921 with sysline same as page & real vi function,
12016	OTbs, OTpt, am, hs, xenl, xhp,
12017	cols#80, lines#24, xmc#0,
12018	acsc=, clear=^Z, cnorm=\E.3, cr=\r, cub1=^H, cud1=^V, cuf1=^L,
12019	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
12020	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
12021	el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
12022	if=/usr/share/tabset/stdcrt, il1=\EE, ind=\n, invis@,
12023	is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, kcub1=^H,
12024	kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER$<1*/>,
12025	ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, nel=\r\n, rmacs=\E%%,
12026	rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, use=adm+sgr,
12027# without the beeper
12028# (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
12029# also added empty <acsc> to suppress tic warning -- esr)
12030tvi92B|TeleVideo model 921 with sysline same as page & real vi function & no beeper,
12031	am, hs, xenl, xhp,
12032	cols#80, lines#24, xmc#0,
12033	acsc=, clear=^Z, cnorm=\E.3, cr=\r, cub1=^H, cud1=^V, cuf1=^L,
12034	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
12035	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
12036	el=\ET, flash=\Eb$<200/>\Ed, fsl=\Eg, home=^^, ht=^I,
12037	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=\n,
12038	invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z,
12039	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
12040	kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE,
12041	nel=\r\n, rmacs=\E%%, smacs=\E$, tsl=\Ef\EG0, use=adm+sgr,
12042# (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
12043tvi92D|tvi92B with DTR instead of XON/XOFF & better padding,
12044	dl1=\ER$<2*/>, il1=\EE$<2*/>,
12045	is2=\El\E"\EF1\E.3\016\EA\E<, kdl1=\ER$<2*/>,
12046	kil1=\EE$<2*/>, use=tvi92B,
12047
12048# (tvi924: This used to have <dsl=\Es0>, <fsl=\031>.  I put the new strings
12049# in from a BSD termcap file because it looks like they do something the
12050# old ones skip -- esr)
12051tvi924|TeleVideo tvi924,
12052	am, bw, hs, in, mir, msgr, xenl, xon,
12053	cols#80, it#8, lines#24, wsl#80, xmc#0,
12054	bel=^G, blink=\EG2, cbt=\EI, civis=\E.0, clear=\E*0,
12055	cnorm=\E.3, cr=\r, csr=\E_%p1%{32}%+%c%p2%{32}%+%c,
12056	cub1=^H, cud1=^V, cuf1=^L,
12057	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\E.1,
12058	dch1=\EW, dl1=\ER, dsl=\Es0\Ef\031, ed=\Ey, el=\Et,
12059	flash=\Eb$<200>\Ed, fsl=\031\Es1, home=^^, ht=^I, hts=\E1,
12060	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=\n,
12061	invis@, is1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0,
12062	kbs=^H, kclr=\E*0, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
12063	kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A@\r, kf1=^AA\r,
12064	kf10=^AJ\r, kf11=^AK\r, kf12=^AL\r, kf13=^AM\r, kf14=^AN\r,
12065	kf15=^AO\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, kf5=^AE\r,
12066	kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^,
12067	kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4,
12068	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10,
12069	pfkey=\E|%p1%{49}%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef,
12070	use=adm+sgr,
12071
12072# TVI925 DIP switches.  In each of these, D = Down and U = Up,
12073#
12074# Here are the settings for the external (baud) switches (S1):
12075#
12076#             Position		Baud
12077# 7	8	9	10		[Printer]
12078# 1	2	3	4		[Main RS232]
12079# -----------------------------------------------------
12080# D	D	D	D	9600
12081# D	D	D	U	  50
12082# D	D	U	D	  75
12083# D	D	U	U	 110
12084# D	U	D	D	 135
12085# D	U	D	U	 150
12086# D	U	U	D	 300
12087# D	U	U	U	 600
12088# U	D	D	D	1200
12089# U	D	D	U	1800
12090# U	D	U	D	2400
12091# U	D	U	U	3600
12092# U	U	D	D	4800
12093# U	U	D	U	7200
12094# U	U	U	D	9600
12095# U	U	U	U	19200
12096#
12097#
12098# Settings for word length and stop-bits (S1)
12099#
12100#  Position	Description
12101# 5	6
12102# ---------------------------
12103# U	-	7-bit word
12104# D	-	8-bit word
12105# -	U	2 stop bits
12106# -	D	1 stop bit
12107#
12108#
12109# S2 (external) settings
12110#
12111# Position	Up	Dn	Description
12112# --------------------------------------------
12113# 1		X		Local edit
12114#			X	Duplex edit (transmit editing keys)
12115# --------------------------------------------
12116# 2		X		912/920 emulation
12117#			X	925
12118# --------------------------------------------
12119# 3			X
12120# 4			X	No parity
12121# 5			X
12122# --------------------------------------------
12123# 3			X
12124# 4			X	Odd parity
12125# 5		X
12126# --------------------------------------------
12127# 3			X
12128# 4		X		Even parity
12129# 5		X
12130# --------------------------------------------
12131# 3		X
12132# 4			X	Mark parity
12133# 5		X
12134# --------------------------------------------
12135# 3		X
12136# 4		X		Space parity
12137# 5		X
12138# --------------------------------------------
12139# 6		X		White on black display
12140#			X	Black on white display
12141# --------------------------------------------
12142# 7			X	Half Duplex
12143# 8			X
12144# --------------------------------------------
12145# 7		X		Full Duplex
12146# 8			X
12147# --------------------------------------------
12148# 7			X	Block mode
12149# 8		X
12150# --------------------------------------------
12151# 9			X	50 Hz
12152#		X		60 Hz
12153# --------------------------------------------
12154# 10		X		CR/LF (Auto LF)
12155#			X	CR only
12156#
12157# S3 (internal switch) settings:
12158#
12159# Position	Up	Dn	Description
12160# --------------------------------------------
12161# 1		X		Keyclick off
12162#			X	Keyclick on
12163# --------------------------------------------
12164# 2			X	English
12165# 3			X
12166# --------------------------------------------
12167# 2			X	German
12168# 3		X
12169# --------------------------------------------
12170# 2		X		French
12171# 3			X
12172# --------------------------------------------
12173# 2		X		Spanish
12174# 3		X
12175# --------------------------------------------
12176# 4			X	Blinking block cursor
12177# 5			X
12178# --------------------------------------------
12179# 4			X	Blinking underline cursor
12180# 5		X
12181# --------------------------------------------
12182# 4		X		Steady block cursor
12183# 5			X
12184# --------------------------------------------
12185# 4		X		Steady underline cursor
12186# 5		X
12187# --------------------------------------------
12188# 6		X		Screen blanking timer (ON)
12189#			X	Screen blanking timer (OFF)
12190# --------------------------------------------
12191# 7		X		Page attributes
12192#			X	Line attributes
12193# --------------------------------------------
12194# 8		X		DCD disconnected
12195#			X	DCD connected
12196# --------------------------------------------
12197# 9		X		DSR disconnected
12198#			X	DSR connected
12199# --------------------------------------------
12200# 10		X		DTR Disconnected
12201#			X	DTR connected
12202# --------------------------------------------
12203#
12204# (tvi925: BSD has <clear=\E*>.  I got <is2> and <ri> from there -- esr)
12205tvi925|TeleVideo 925,
12206	OTbs, am, bw, hs, ul,
12207	cols#80, lines#24, xmc#1,
12208	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=\r, cub1=^H, cud1=^V,
12209	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12210	cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
12211	flash=\Eb$<200>\Ed, fsl=\r\Eg, home=^^, ht=^I, hts=\E1,
12212	ich1=\EQ, il1=\EE, ind=\n, invis@, is2=\El\E", kbs=^H, kclr=^Z,
12213	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
12214	ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
12215	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
12216	kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, ri=\Ej, tbc=\E3,
12217	tsl=\Eh\Ef, use=adm+sgr,
12218# TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
12219# to avoid "magic cookie" standout glitch:
12220tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
12221	xmc@,
12222	kcud1=\n, rmso=\E(, smso=\E), use=tvi925,
12223
12224# From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
12225# Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
12226# for additional capabilities,
12227# The following tvi descriptions from B:pjphar and virus!mike
12228# is for all 950s.  It sets the following attributes:
12229# full duplex (\EDF)		write protect off (\E()
12230# conversation mode (\EC)	graphics mode off (\E%)
12231# white on black (\Ed)		auto page flip off (\Ew)
12232# turn off status line (\Eg)	clear status line (\Ef\r)
12233# normal video (\E0)		monitor mode off (\EX or \Eu)
12234# edit mode (\Er)		load blank char to space (\Ee\040)
12235# line edit mode (\EO)		enable buffer control (^O)
12236# protect mode off (\E\047)	duplex edit keys (\El)
12237# program unshifted send key to send line all (\E016)
12238# program shifted send key to send line unprotected (\E004)
12239# set the following to nulls:
12240#	field delimiter (\Ex0\200\200)
12241#	line delimiter (\Ex1\200\200)
12242#	start-protected field delimiter (\Ex2\200\200)
12243#	end-protected field delimiter (\Ex3\200\200)
12244# set end of text delimiter to carriage return/null (\Ex4\r\200)
12245#
12246#                     TVI 950 Switch Setting Reference Charts
12247#
12248#                                     TABLE 1:
12249#
12250#      S1     1     2     3     4     5     6     7     8     9    10
12251#          +-----------------------+-----+-----+-----------------------+
12252#          | Computer Baud Rate    |Data |Stop | Printer Baud Rate     |
12253#          |                       |Bits |Bits |                       |
12254#   +------+-----------------------+-----+-----+-----------------------+
12255#   |  Up  |        See            |  7  |  2  |        See            |
12256#   +------+-----------------------+-----+-----+-----------------------+
12257#   | Down |      TABLE 2          |  8  |  1  |      TABLE 2          |
12258#   +------+-----------------------+-----+-----+-----------------------+
12259#
12260#
12261#      S2     1     2     3     4     5     6     7     8     9    10
12262#          +-----+-----+-----------------+-----+-----------+-----+-----+
12263#          |Edit |Cursr|    Parity       |Video|Transmiss'n| Hz  |Click|
12264#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
12265#   |  Up  | Dplx|Blink|      See        |GonBk|   See     | 60  | Off |
12266#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
12267#   | Down |Local|St'dy|    TABLE 3      |BkonG|  CHART    | 50  | On  |
12268#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
12269#
12270#                                    TABLE 2:
12271#
12272#             +-----------+-----+-----+-----+-----+-----------+
12273#             | Display   |  1  |  2  |  3  |  4  |   Baud    |
12274#             +-----------+-----+-----+-----+-----+           |
12275#             | Printer   |  7  |  8  |  9  | 10  |   Rate    |
12276#             +-----------+-----+-----+-----+-----+-----------+
12277#                         |  D  |  D  |  D  |  D  |   9600    |
12278#                         |  U  |  D  |  D  |  D  |     50    |
12279#                         |  D  |  U  |  D  |  D  |     75    |
12280#                         |  U  |  U  |  D  |  D  |    110    |
12281#                         |  D  |  D  |  U  |  D  |    135    |
12282#                         |  U  |  D  |  U  |  D  |    150    |
12283#                         |  D  |  U  |  U  |  D  |    300    |
12284#                         |  U  |  U  |  U  |  D  |    600    |
12285#                         |  D  |  D  |  D  |  U  |   1200    |
12286#                         |  U  |  D  |  D  |  U  |   1800    |
12287#                         |  D  |  U  |  D  |  U  |   2400    |
12288#                         |  U  |  U  |  D  |  U  |   3600    |
12289#                         |  D  |  D  |  U  |  U  |   4800    |
12290#                         |  U  |  D  |  U  |  U  |   7200    |
12291#                         |  D  |  U  |  U  |  U  |   9600    |
12292#                         |  U  |  U  |  U  |  U  |  19200    |
12293#                         +-----+-----+-----+-----+-----------+
12294#
12295#                                    TABLE 3:
12296#                         +-----+-----+-----+-----------+
12297#                         |  3  |  4  |  5  |   Parity  |
12298#                         +-----+-----+-----+-----------+
12299#                         |  X  |  X  |  D  |    None   |
12300#                         |  D  |  D  |  U  |     Odd   |
12301#                         |  D  |  U  |  U  |    Even   |
12302#                         |  U  |  D  |  U  |    Mark   |
12303#                         |  U  |  U  |  U  |   Space   |
12304#                         +-----+-----+-----+-----------+
12305#                                 X = don't care
12306#
12307#                                     CHART:
12308#                         +-----+-----+-----------------+
12309#                         |  7  |  8  | Communication   |
12310#                         +-----+-----+-----------------+
12311#                         |  D  |  D  |  Half Duplex    |
12312#                         |  D  |  U  |  Full Duplex    |
12313#                         |  U  |  D  |     Block       |
12314#                         |  U  |  U  |     Local       |
12315#                         +-----+-----+-----------------+
12316#
12317# (tvi950: early versions had obsolete ":ma=^Vj^Kk^Hh^Ll^^H:".
12318# I also inserted <ich1> and <kich1>; the :ko: string indicated that <ich>
12319# should be present and all tvi native modes use the same string for this.
12320# Finally, note that BSD has cud1=^V. -- esr)
12321#
12322# TVI 950 has 11 function-keys -TD
12323tvi950|TeleVideo 950,
12324	OTbs, am, hs, mir, msgr, xenl, xon,
12325	cols#80, it#8, lines#24, xmc#1,
12326	acsc=jHkGlFmEnIqKtMuLvOwNxJ, bel=^G, cbt=\EI, clear=\E*,
12327	cr=\r, cub1=^H, cud1=\n, cuf1=^L,
12328	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12329	dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, el=\Et, flash=\Eb$<200/>\Ed,
12330	fsl=\r, home=^^, ht=^I, hts=\E1, ich1=\EQ, il1=\EE, ind=\n,
12331	invis@,
12332	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\El
12333	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0
12334	    \Ef\r,
12335	kbs=^H, kcbt=\EI, kclr=\E*, kcub1=^H, kcud1=^V, kcuf1=^L,
12336	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf1=^A@\r,
12337	kf10=^AI\r, kf11=^AJ\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
12338	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
12339	khome=^^, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`, ri=\Ej,
12340	rmacs=\E%%, rmir=\Er, smacs=\E$, smir=\Eq, tbc=\E3,
12341	tsl=\Eg\Ef, kF1=^A`\r, kF10=^Ai\r, kF11=^Aj\r, kF2=^Aa\r,
12342	kF3=^Ab\r, kF4=^Ac\r, kF5=^Ad\r, kF6=^Ae\r, kF7=^Af\r,
12343	kF8=^Ag\r, kF9=^Ah\r, use=adm+sgr,
12344#
12345# is for 950 with two pages adds the following:
12346#	set 48 line page (\E\\2)
12347#	place cursor at page 0, line 24, column 1 (\E-07 )
12348#	set local (no send) edit keys (\Ek)
12349#
12350# two page 950 adds the following:
12351#	when entering ex, set 24 line page (\E\\1)
12352#	when exiting ex, reset 48 line page (\E\\2)
12353#			 place cursor at 0,24,1 (\E-07 )
12354#	set duplex (send) edit keys (\El) when entering vi
12355#	set local (no send) edit keys (\Ek) when exiting vi
12356#
12357tvi950-2p|TeleVideo 950 w/2 pages,
12358	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\Ek
12359	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0
12360	    \E\\2\E-07\s\011,
12361	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
12362	smkx=\El, use=tvi950,
12363#
12364# is for 950 with four pages adds the following:
12365#	set 96 line page (\E\\3)
12366#	place cursor at page 0, line 24, column 1 (\E-07 )
12367#
12368# four page 950 adds the following:
12369#	when entering ex, set 24 line page (\E\\1)
12370#	when exiting ex, reset 96 line page (\E\\3)
12371#			 place cursor at 0,24,1 (\E-07 )
12372#
12373tvi950-4p|TeleVideo 950 w/4 pages,
12374	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\Ek
12375	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0
12376	    \E\\3\E-07\s\011,
12377	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
12378	smkx=\El, use=tvi950,
12379#
12380# <is2> for reverse video 950 changes the following:
12381#	set reverse video (\Ed)
12382#
12383# set vb accordingly (\Ed ...delay... \Eb)
12384#
12385tvi950-rv|TeleVideo 950 rev video,
12386	flash=\Ed$<200/>\Eb,
12387	is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\El
12388	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r
12389	    \0,
12390	use=tvi950,
12391
12392# tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
12393tvi950-rv-2p|TeleVideo 950 rev video w/2 pages,
12394	flash=\Ed$<200/>\Eb,
12395	is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\Ek
12396	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0
12397	    \E\\2\E-07\s,
12398	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
12399	smkx=\El, use=tvi950,
12400
12401# tvi950-rv uses the appropriate entries from 950-4p and 950-rv
12402tvi950-rv-4p|TeleVideo 950 rev video w/4 pages,
12403	flash=\Ed$<200/>\Eb,
12404	is2=\EDF\EC\Eb\EG0\Er\EO\E'\E(\E%\Ew\EX\Ee\s\017\011\Ek
12405	    \E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0
12406	    \E\\3\E-07\s,
12407	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
12408	smkx=\El, use=tvi950,
12409# From: Andreas Stolcke <stolcke@icsi.berkeley.edu>
12410# (tvi955: removed obsolete ":ma:=^Vj^Kk^Hh^Ll^^H";
12411# removed incorrect (and overridden) ":do=^J:"; fixed broken continuations in
12412# the :rs: string, inserted the <ich> implied by the termcap :ko: string.  Note
12413# the :ko: string had :cl: in it, which means that one of the original
12414# <clear=\E*>, <kclr=\EY> had to be wrong; set <kclr=\E*> because that's what
12415# the 950 has.   Finally, corrected the <kel> string to match the 950 and what
12416# ko implies -- esr)
12417# If the BSD termcap file was right, <cup=\E=%p1%{32}%+%c%p2%{32}%+%c> would
12418# also work.
12419tvi955|TeleVideo 955,
12420	mc5i, msgr@,
12421	xmc@,
12422	acsc=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ, blink=\EG2,
12423	civis=\E.0, cnorm=\E.2, cud1=^V, cup=\E[%i%p1%d;%p2%dH,
12424	cvvis=\E.1, dim=\E[=5h, ind@, invis=\EG1,
12425	is2=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El, kctab=\E2, khts=\E1,
12426	knp=\EK, kpp=\EJ, krmir=\EQ, ktbc=\E3, mc0=\EP, rmacs=\E%,
12427	rmam=\E[=7l, rmxon=^N,
12428	rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee\s\017\E0P\E6\0\E0p\E4\0
12429	    \Ef\r,
12430	sgr0=\EG0\E[=5l, smam=\E[=7h, smxon=^O, use=tvi950,
12431tvi955-w|955-w|TeleVideo 955 w/132 cols,
12432	cols#132,
12433	is2=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El, use=tvi955,
12434# use half-intensity as normal mode, full intensity as <bold>
12435tvi955-hb|955-hb|TeleVideo 955 half-bright,
12436	bold=\E[=5l, dim@, is2=\E[=3l\EF1\Ed\EG0\E[=5h\E%\El,
12437	sgr0=\EG0\E[=5h, use=tvi955,
12438# From: Humberto Appleton <beto@cs.utexas.edu>, 880521 UT Austin
12439# (tvi970: removed ":sg#0:"; removed <rmso>=\E[m, <rmul>=\E[m;
12440# added <am>/<csr>/<home>/<hpa>/<vpa>/<smcup>/<rmcup> from BRL.
12441# According to BRL we could have <rmkx>=\E>, <smkx>=\E= but I'm not sure what
12442# it does to the function keys.  I deduced <rmam>/<smam>.
12443# also added empty <acsc> to suppress tic warning,  -- esr)
12444tvi970|TeleVideo 970,
12445	OTbs, OTpt, am, da, db, mir, msgr,
12446	cols#80, it#8, lines#24,
12447	acsc=, cbt=\E[Z, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
12448	cub1=^H, cud1=\ED, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
12449	cuu1=\EM, cvvis=\E[1Q, dch1=\E[P, dsl=\Eg\Ef\r, ed=\E[J,
12450	el=\E[K, flash=\E[5m$<200/>\E[m, home=\E[H, ht=^I,
12451	is2=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J,
12452	kf1=\E?a, kf2=\E?b, kf3=\E?c, kf4=\E?d, kf5=\E?e, kf6=\E?f,
12453	kf7=\E?g, kf8=\E?h, kf9=\E?i, ri=\EM, rmacs=\E(B,
12454	rmam=\E[?7h, rmcup=, rmir=\E[4l, sgr0=\E[m, smacs=\E(B,
12455	smam=\E[?7l, smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h,
12456	use=ansi+arrows, use=ansi+idl1, use=ansi+rca2,
12457	use=ansi+sgrso, use=ansi+sgrul,
12458
12459tvi970-vb|TeleVideo 970 with visual bell,
12460	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
12461	use=tvi970,
12462tvi970-2p|TeleVideo 970 with using 2 pages of memory,
12463	rmcup=\E[H\E[J\E[V, smcup=\E[U\E[?20l\E[?7h\E[1Q,
12464	use=tvi970,
12465# Works with vi and rogue.  NOTE: Esc v sets autowrap on, Esc u sets 80 chars
12466# per line (rather than 40), Esc K chooses the normal character set.  Not sure
12467# padding is needed, but adapted from the tvi920c termcap.  The <smso> and
12468# <smul> strings are klutzy, but at least use no screen space.
12469# (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
12470# its absence means <smam>=\Ev isn't safe to use. -- esr)
12471# From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84.
12472# The <ed>/<kf0>/<kf1>/<khome>/<mc4>, and <mc5> caps are from BRL, which says:
12473# F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
12474tvipt|TeleVideo personal terminal,
12475	OTbs, am,
12476	cols#80, lines#24,
12477	cbt=\EI, clear=^Z, cub1=^H, cuf1=^L,
12478	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER$<5*>,
12479	ed=\EY, el=\ET, home=^^, if=/usr/share/tabset/stdcrt,
12480	il1=\EE$<5*>, is2=\Ev\Eu\EK, kbs=^H, kcub1=^H, kcud1=\n,
12481	kcuf1=^L, kcuu1=^K, kf0=^A, kf1=^B, khome=^^, mc4=^T, mc5=^R,
12482	rmso=\EF, rmul=\EF, smso=\EG1@A\EH, smul=\EG1B@\EH,
12483# From: Nathan Peterson <nathan@sco.com>, 03 Sep 1996
12484tvi9065|TeleVideo 9065,
12485	am, bw, chts, hs, mc5i, mir, msgr, xenl, xon,
12486	cols#80, it#8, lh#1, lines#25, lm#0, lw#9, ma#4, nlab#8, vt#0,
12487	wnum#0, wsl#30,
12488	acsc='r0_jhkglfmeniopqksqtmulvownxj, bel=^G,
12489	blink=\EG2, bold=\EG\,, cbt=\EI, civis=\E.0, clear=^Z,
12490	cnorm=\E.3, cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^V,
12491	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12492	cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp,
12493	dl=\E[%p1%dM, dl1=\ER, dsl=\E_30\r, ech=\E[%p1%d@, ed=\EY,
12494	el=\ET, flash=\Eb$<15>\Ed, fsl=\r, home=^^, ht=^I, hts=\E1,
12495	ich=\E[%p1%d@, if=/usr/share/tabset/stdcrt,
12496	il=\E[%p1%dL, il1=\EE, ind=\n, invis=\EG1, ip=$<3>,
12497	is1=\E"\E%\E'\E(\EG@\EO\EX\E[=5l\E[=6l\E[=7h\Ed\Er,
12498	is2=\EF2\EG0\E\\L, is3=\E<\E[=4l\E[=8h, kHOM=\E\s\s\s,
12499	kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
12500	kdch1=\EW, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r,
12501	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
12502	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, ll=\E[25;1H,
12503	mc0=\E[0;0i, mc4=\Ea, mc5=\E`, nel=\r\n,
12504	pfkey=\E|%p1%{48}%+%c3%p2%s\031,
12505	pfloc=\E|%p1%{48}%+%c2%p2%s\031,
12506	pfx=\E|%p1%{48}%+%c1%p2%s\031,
12507	pln=\E_%p1%{63}%+%c%p2%s\r, prot=\E&,
12508	rep=\E[%p2%db%p1%c, rev=\EG4,
12509	rf=/usr/share/tabset/stdcrt, ri=\Ej, rmacs=\E%%,
12510	rmam=\E[=7l, rmcup=\E.3\Er\E[1;25r\E[25;0H, rmdc=\0,
12511	rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0, rmxon=^N,
12512	rs1=\EC\EDF\E[0;0v\E[8;1v\E[=65l,
12513	rs2=\E.b\E[10;20v\E[14;1v\E[3;0v\E[7;0v\E[=11.h\E[=12.h\E[=1
12514	    3.h\E[=14.h\E[=15l\E[=20h\E[=60l\E[=61h\E[=9l\E[=10l\E[=
12515	    21l\E[=23l\E[=3l\E_40\E_50\En\Ew\Ee\s\Ex0\0\0\Ex1\0\0
12516	    \Ex2\0\0\Ex3\0\0\Ex4\0\0\E1,
12517	rs3=\E[=19h\E.3\E9\E0O\0\0\0\0\0\E0o\0\0\0\0\0\E0J\177\0\0
12518	    \0\0,
12519	sgr=\EG0%?%p1%t\EGt%;%?%p2%t\EG8%;%?%p3%t\EG4%;%?%p4%t\EG2%;
12520	    %?%p5%t\EGp%;%?%p6%t\EG\,%;%?%p7%t\EG1%;%?%p8%t\E&%;%?
12521	    %p9%t\E$%e\E%%%;,
12522	sgr0=\EG0\E%, smacs=\E$, smam=\E=7h, smcup=\E.2, smdc=\Er,
12523	smir=\Eq, smln=\E[4;2v, smso=\EGt, smul=\EG8, smxon=^O,
12524	tbc=\E3, tsl=\E[4;1v\E_30, uc=\EG8\EG0, use=ansi+local,
12525	use=ecma+index,
12526
12527#### Visual (vi)
12528#
12529# In September 1993, Visual Technology of Westboro, Massachusetts,
12530# merged with White Pine Software of Nashua, New Hampshire.
12531#
12532# White Pine Software may be contacted at +1 603/886-9050.
12533# Or visit White Pine on the World Wide Web at URL http://www.wpine.com.
12534#
12535
12536# Visual 50 from Beau Shekita, BTL-Whippany <whuxlb!ejs>
12537# Recently I hacked together the following termcap for Visual
12538# Technology's Visual 50 terminal. It's a slight modification of
12539# the VT52 termcap.
12540# It's intended to run when the Visual 50 is in VT52 emulation mode
12541# (I know what you're thinking; if it's emulating a VT52, then why
12542# another termcap? Well, it turns out that the Visual 50 can handle
12543# <dl1> and db(?) among other things, which the VT52 can't)
12544# The termcap works OK for the most part. The only problem is on
12545# character inserts. The whole line gets painfully redrawn for each
12546# character typed. Any suggestions?
12547# Beau's entry is combined with the vi50 entry from University of Wisconsin.
12548# Note especially the <il1> function.  <kf4>-<kf6> are really l4-l6 in
12549# disguise; <kf7>-<kf9> are really l1-l3.
12550vi50|Visual 50,
12551	OTbs, OTpt, am, da, db, msgr,
12552	OTnl=\n, cbt=\Ez$<4/>, cub1=^H, dl1=\EM$<3*/>,
12553	el=\EK$<16/>, il1=\EL, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
12554	kf5=\EE, kf6=\E], kf7=\EL, kf8=\Ev, kf9=\EM, khome=\EH,
12555	rmso=\ET, rmul=\EW, smso=\EU, smul=\ES, use=vt52-basic,
12556# this one was BSD & SCO's vi50
12557vi50adm|Visual 50 in adm3a mode,
12558	am, msgr,
12559	cols#80, it#8, lines#24,
12560	bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
12561	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\EM,
12562	ed=\Ek, el=\EK, home=\EH, ht=^I, il1=\EL, ind=\n, kbs=^H,
12563	khome=\EH, rmso=\ET, smso=\EU, use=vt52+arrows,
12564# From: Jeff Siegal <jbs@quiotix.com>
12565vi55|Visual 55,
12566	OTbs, am, mir, msgr,
12567	cols#80, it#8, lines#24,
12568	clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H,
12569	cud1=\n, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
12570	cuu1=\EA, dch1=\Ew, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I,
12571	il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, ri=\EI,
12572	rmir=\Eb, rmso=\ET, smir=\Ea, smso=\EU, use=vt52+arrows,
12573
12574# Visual 200 from BRL
12575# The following switch settings are assumed for normal operation:
12576#	FULL_DUPLEX		SCROLL			CR
12577#	AUTO_NEW_LINE_ON	VISUAL_200_EMULATION_MODE
12578# Other switches may be set for operator convenience or communication
12579# requirements.
12580# Character insertion is kludged in order to get around the "beep" misfeature.
12581# (This cap is commented out because <smir>/<rmir> is more efficient -- esr)
12582# Supposedly "4*" delays should be used for <il1>, <ed>, <clear>, <dch1>,
12583# and <dl1> strings, but we seem to get along fine without them.
12584vi200|Visual 200,
12585	OTbs, OTpt, am, mir, msgr,
12586	OTkn#10, cols#80, it#8, lines#24,
12587	acsc=+h.kffggjmkllsmenbq`tnuovcwdxa}r, bel=^G, cbt=\Ez,
12588	clear=\Ev, cnorm=\Ec, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
12589	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ed,
12590	dch1=\EO, dim=\E4, dl1=\EM, ed=\Ey, el=\Ex, home=\EH, ht=^I,
12591	hts=\E1, il1=\EL, ind=\n, invis=\Ea, kbs=^H, kclr=\Ev,
12592	kctab=\E2, kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p,
12593	kf1=\E?q, kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v,
12594	kf7=\E?w, kf8=\E?x, kf9=\E?y, khome=\EH, khts=\E1, kich1=\Ei,
12595	kil1=\EL, krmir=\Ej, mc0=\EH\E], mc4=\EX, mc5=\EW, ri=\EI,
12596	rmacs=\EG, rmkx=\E>, rmso=\E3,
12597	rs1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX, sgr0=\E3\Eb, smacs=\EF,
12598	smkx=\E=, smso=\E4, tbc=\Eg, use=vt52+arrows,
12599# The older Visuals didn't come with function keys. This entry uses
12600# <smkx> and <rmkx> so that the keypad keys can be used as function keys.
12601# If your version of vi doesn't support function keys you may want
12602# to use vi200-f.
12603vi200-f|Visual 200 no function keys,
12604	is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, rmso@, smso@, use=vi200,
12605vi200-rv|Visual 200 reverse video,
12606	cnorm@, cvvis@, ri@, use=vi200,
12607
12608# the function keys are programmable but we don't reprogram them to their
12609# default values with <is2> because programming them is very verbose. maybe
12610# an initialization file should be made for the 300 and they could be stuck
12611# in it.
12612# (vi300: added <rmam>/<smam> based on init string -- esr)
12613vi300|Visual 300 ANSI x3.64,
12614	am, bw, mir, xenl,
12615	cols#80, lines#24,
12616	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=\r, cub1=^H,
12617	dch1=\E[P$<40>, ed=\E[J, el=\E[K, ht=^I, ind=\n,
12618	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[1Q\E[0;1(D\E[8s,
12619	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12620	kf1=\E_A\E\\, kf2=\E_B\E\\, kf3=\E_C\E\\, kf4=\E_D\E\\,
12621	kf5=\E_E\E\\, kf6=\E_F\E\\, kf7=\E_G\E\\, kf8=\E_H\E\\,
12622	kf9=\E_I\E\\, khome=\E[H, ri=\EM, rmam=\E[?7l, rmir=\E[4l,
12623	rmso=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smso=\E[1m,
12624	use=ansi+cup, use=ansi+idl1, use=ansi+local1,
12625	use=ansi+sgrul,
12626
12627# some of the vi300s have older firmware that has the command
12628# sequence for setting editing extent reversed.
12629vi300-old|Visual 300 with old firmware (set edit extent reversed),
12630	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[2Q\E[0;1(D\E[8s, use=vi300,
12631
12632# Visual 500 prototype entry from University of Wisconsin.
12633# The best place to look for the escape sequences is page A1-1 of the
12634# Visual 500 manual.  The initialization sequence given here may be
12635# overkill, but it does leave out some of the initializations which can
12636# be done with the menus in set-up mode.
12637# The :xp: line below is so that emacs can understand the padding requirements
12638# of this slow terminal.  :xp: is 10 time the padding factor.
12639# (vi500: removed unknown :xp#4: termcap;
12640# also added empty <acsc> to suppress tic warning -- esr)
12641vi500|Visual 500,
12642	am, mir, msgr,
12643	cols#80, it#8, lines#33,
12644	acsc=, cbt=\Ez$<4/>, clear=\Ev$<6*/>, cr=\r,
12645	csr=\E(%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\EB,
12646	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
12647	dch1=\EO$<3*/>, dl1=\EM$<3*/>, ed=\Ey$<3*/>,
12648	el=\Ex$<16/>, home=\EH, ht=\011$<8/>, il1=\EL\Ex$<3*/>,
12649	ind=\n,
12650	is2=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\,
12651	kbs=^H, khome=\EH, nel=\r\n, rmacs=^O, rmir=\Ej, rmso=\E^G,
12652	rmul=\E^C, smacs=^N, smir=\Ei, smso=\E^H, smul=\E^D,
12653	use=vt52+arrows,
12654
12655# The visual 550 is a visual 300 with Tektronix graphics,
12656# and with 33 lines. clear screen is modified here to
12657# also clear the graphics.
12658vi550|Visual 550 ANSI x3.64,
12659	lines#33,
12660	clear=\030\E[H\E[2J, use=vi300,
12661
12662vi603|visual603|Visual 603,
12663	hs, mir,
12664	blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
12665	csr=\E[%i%p1%d;%p2%dr, cuf1=\E[C,
12666	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
12667	dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, ind=\ED,
12668	is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r, rev=\E[7m,
12669	ri=\EM, rmir=\E[4l, sgr0=\E[m\017$<2>, smir=\E[4h,
12670	tsl=\EP2~, use=ecma+underline, use=ecma+standout,
12671	use=ansi+idl1, use=decid+cpr, use=vt100+4bsd,
12672
12673#### Wyse (wy)
12674#
12675#	Wyse Technology
12676#	3471 North First Street
12677#	San Jose, CA 95134
12678#	Vox: (408)-473-1200
12679#	Fax: (408) 473-1222
12680#	Web: http://www.wyse.com
12681#
12682# Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
12683# (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
12684# obvious address, <http://www.wyse.com>.  They keep terminfo entries at
12685# https://web.archive.org/web/19970712022641/http://www.wyse.co.uk/support/appnotes/idxappnt.htm
12686#
12687#
12688# Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
12689# They now own the Qume and Amdek brands, too.  So these are the people to
12690# talk with about all Link, Qume, and Amdek terminals.
12691#
12692# These entries include a few small fixes.
12693# I canceled the bel capacities in the vb entries.
12694# I made two trivial syntax fixes in the wyse30 entry.
12695# I made some entries relative to adm+sgr.
12696#
12697#
12698# Note: The wyse75, wyse85, and wyse99 have been discontinued.
12699
12700#	   Although the Wyse 30 can support more than one attribute
12701#	it requires magic cookies to do so.  Many applications do not
12702#	function well with magic cookies.  The following terminfo uses
12703#	the protect mode to support one attribute (dim) without cookies.
12704#	If more than one attribute is needed then the wy30-mc terminfo
12705#	should be used.
12706#
12707wy30|wyse30|Wyse 30,
12708	am, bw, mc5i, mir, msgr, xon,
12709	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8,
12710	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
12711	civis=\E`0, clear=\E+$<80>, cnorm=\E`1, cr=\r, cub1=^H,
12712	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
12713	cuu1=^K, dch1=\EW$<10>, dim=\E`7\E), dl1=\ER$<1>,
12714	ed=\EY$<80>, el=\ET, flash=\E`8$<100/>\E`9, home=^^,
12715	ht=\011$<1>, hts=\E1, il1=\EE$<2>, ind=\n$<2>, ip=$<2>,
12716	is2=\E'\E(\E\^3\E`9\016\024, kHOM=\E{, kbs=^H, kcbt=\EI,
12717	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
12718	ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
12719	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
12720	khome=^^, kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, krpl=\Er,
12721	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=\r\n,
12722	pfx=\Ez%p1%{63}%+%c%p2%s\177,
12723	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>,
12724	rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
12725	sgr=%?%p1%p5%p8%|%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
12726	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
12727	smso=\E`7\E), tbc=\E0, use=wyse+sl,
12728#
12729#	This terminal description uses the non-hidden attribute mode
12730#	(with magic cookie).
12731#
12732# (wy30-mc: added <smcup> to suppress tic warning --esr)
12733wy30-mc|wyse30-mc|Wyse 30 with magic cookies,
12734	msgr@,
12735	ma@, xmc#1,
12736	blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003,
12737	rmcup=\EG0, rmso=\EG0,
12738	sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?
12739	    %p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8
12740	    %t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
12741	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
12742	smso=\EG4, use=wy30, use=adm+sgr,
12743#	The mandatory pause used by <flash> does not work with
12744#	older versions of terminfo.  If you see this effect then
12745#	unset xon and delete the / from the delay.
12746#	i.e. change $<100/> to $<100>
12747wy30-vb|wyse30-vb|Wyse 30 visible bell,
12748	bel@, use=wy30,
12749#
12750#	   The Wyse 50 can support one attribute (e.g. Dim, Inverse,
12751#	Normal) without magic cookies by using the protect mode.
12752#	The following description uses this feature, but when more
12753#	than one attribute is put on the screen at once, all attributes
12754#	will be changed to be the same as the last attribute given.
12755#	   The Wyse 50 can support more attributes when used with magic
12756#	cookies.  The wy50-mc terminal description uses magic cookies
12757#	to correctly handle multiple attributes on a screen.
12758#
12759wy50|wyse50|Wyse 50,
12760	am, bw, mc5i, mir, msgr, xon,
12761	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8,
12762	acsc=a;j5k3l2m1n8q:t4u9v=w0x6, bel=^G, cbt=\EI,
12763	civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=\r, cub1=^H,
12764	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
12765	cuu1=^K, dch1=\EW$<1>, dim=\E`7\E), dl1=\ER, ed=\EY$<20>,
12766	el=\ET, flash=\E`8$<100/>\E`9, home=^^, ht=^I, hts=\E1,
12767	il1=\EE, ind=\n$<2>, ip=$<1>, is1=\E`:\E`9$<30>,
12768	is2=\016\024\E'\E(, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
12769	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
12770	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
12771	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
12772	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
12773	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
12774	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
12775	mc0=\EP, mc4=^T, mc5=^X, nel=\r\n,
12776	pfx=\Ez%p1%{63}%+%c%p2%s\177,
12777	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E),
12778	ri=\Ej, rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
12779	sgr=%?%p1%p3%|%t\E`6\E)%e%p5%p8%|%t\E`7\E)%e\E(%;%?%p9%t\EH
12780	    \002%e\EH\003%;,
12781	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
12782	smso=\E`6\E), tbc=\E0, kF1=^A`\r, kF10=^Ai\r, kF11=^Aj\r,
12783	kF12=^Ak\r, kF13=^Al\r, kF14=^Am\r, kF15=^An\r, kF16=^Ao\r,
12784	kF2=^Aa\r, kF3=^Ab\r, kF4=^Ac\r, kF5=^Ad\r, kF6=^Ae\r,
12785	kF7=^Af\r, kF8=^Ag\r, kF9=^Ah\r, use=wyse+sl,
12786wyse+sl|status line for Wyse terminals,
12787	hs,
12788	wsl#45,
12789	dsl=\EF\r, fsl=\r, tsl=\EF,
12790#
12791#	This terminal description uses the non-hidden attribute mode
12792#	(with magic cookie).
12793#
12794#	The mandatory pause used by flash does not work with some
12795#	older versions of terminfo.  If you see this effect then
12796#	unset <xon> and delete the / from the delay.
12797#	i.e. change $<100/> to $<100>
12798# (wy50-mc: added <smcup> to suppress tic warning --esr)
12799wy50-mc|wyse50-mc|Wyse 50 with magic cookies,
12800	msgr@,
12801	ma@, xmc#1,
12802	blink=\EG2, dim=\EGp, prot=\EG0\E), rev=\EG4,
12803	rmacs=\EG0\EH\003, rmcup=\EG0, rmso=\EG0,
12804	sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?
12805	    %p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8
12806	    %t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
12807	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
12808	smso=\EGt, use=wy50, use=adm+sgr,
12809wy50-vb|wyse50-vb|Wyse 50 visible bell,
12810	bel@, use=wy50,
12811wy50-w|wyse50-w|Wyse 50 132-column,
12812	cols#132, lw#7, nlab#16, wsl#97,
12813	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
12814	use=wy50,
12815wy50-wvb|wyse50-wvb|Wyse 50 132-column visible bell,
12816	bel@, use=wy50-w,
12817
12818#
12819#	The Wyse 350 is a Wyse 50 with color.
12820#	Unfortunately this means that it has magic cookies.
12821#	The color attributes are designed to overlap the reverse, dim and
12822#	underline attributes.  This is nice for monochrome applications
12823#	because you can make underline stuff green (or any other color)
12824#	but for true color applications it's not so hot because you cannot
12825#	mix color with reverse, dim or underline.
12826#	    To further complicate things one of the attributes must be
12827#	black (either the foreground or the background).  In reverse video
12828#	the background changes color with black letters.  In normal video
12829#	the foreground changes colors on a black background.
12830#	    This terminfo uses some of the more advanced features of curses
12831#	to display both color and blink.  In the final analysis I am not
12832#	sure that the wy350 runs better with this terminfo than it does
12833#	with the wy50 terminfo (with user adjusted colors).
12834#
12835#	The mandatory pause used by flash does not work with
12836#	older versions of terminfo.  If you see this effect then
12837#	unset xon and delete the / from the delay.
12838#	i.e. change $<100/> to $<100>
12839#
12840# Bug: The <op> capability resets attributes.
12841wy350|wyse350|Wyse 350,
12842	am, bw, mc5i, mir, xon,
12843	colors#8, cols#80, lh#1, lines#24, lw#8, ncv#55, nlab#8, pairs#8,
12844	xmc#1,
12845	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
12846	cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=\r,
12847	cub1=^H, cud1=\n, cuf1=^L,
12848	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<1>,
12849	dim=\EGp, dl1=\ER, ed=\EY$<20>, el=\ET,
12850	flash=\E`8$<100/>\E`9, home=^^, ht=^I, hts=\E1, il1=\EE,
12851	ind=\n$<2>, ip=$<1>, is1=\E`:\E`9$<30>,
12852	is2=\016\024\E'\E(, is3=\E%?, kHOM=\E{, kbs=^H, kcbt=\EI,
12853	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
12854	ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
12855	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
12856	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
12857	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
12858	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
12859	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=\r\n, oc=\E%?, op=\EG0,
12860	pfx=\Ez%p1%{63}%+%c%p2%s\177,
12861	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\EG0\E), ri=\Ej,
12862	rmacs=\EG0\EH\003, rmir=\Er, rmln=\EA11, setb=,
12863	setf=%?%p1%{0}%=%t%{76}%e%p1%{1}%=%t%{64}%e%p1%{2}%=%t%{8}%e
12864	     %p1%{3}%=%t%{72}%e%p1%{4}%=%t%{4}%e%p1%{5}%=%t%{68}%e
12865	     %p1%{6}%=%t%{12}%e%p1%{7}%=%t%{0}%;%PC\EG%gC%gA%+%{48}
12866	     %+%c,
12867	sgr=%{0}%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;%PA\EG%?%gC%t%gC%e%{0}
12868	    %?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p5%t
12869	    %{64}%|%;%;%gA%+%{48}%+%c%?%p8%t\E)%e\E(%;%?%p9%t\EH
12870	    \002%e\EH\003%;,
12871	sgr0=\EG0\E(\EH\003%{0}%PA%{0}%PC, smacs=\EG0\EH\002,
12872	smir=\Eq, smln=\EA10, tbc=\E0, use=adm+sgr, use=wyse+sl,
12873wy350-vb|wyse350-vb|Wyse 350 visible bell,
12874	bel@, use=wy350,
12875wy350-w|wyse350-w|Wyse 350 132-column,
12876	cols#132, lw#7, nlab#16, wsl#97,
12877	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
12878	use=wy350,
12879wy350-wvb|wyse350-wvb|Wyse 350 132-column visible bell,
12880	bel@, use=wy350-w,
12881#
12882#	This terminfo description is untested.
12883#	The wyse100 emulates an adm31, so the adm31 entry should work.
12884#
12885wy100|Wyse 100,
12886	hs, mir,
12887	cols#80, lines#24, xmc#1,
12888	bel=^G, clear=\E;, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
12889	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12890	dl1=\ER, dsl=\EA31, ed=\EY, el=\ET, fsl=\r, il1=\EE, ind=\n,
12891	invis@, is2=\Eu\E0, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L,
12892	kcuu1=^K, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
12893	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=\E{,
12894	rmir=\Er, smir=\Eq, tsl=\EF, use=adm+sgr,
12895#
12896#	The Wyse 120/150 has most of the features of the Wyse 60.
12897#	This terminal does not need padding up to 9600 baud!
12898#	<msgr> should be set but the clear screen fails when in
12899#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
12900#	then set <msgr>.
12901#
12902wy120|wyse120|wy150|wyse150|Wyse 120/150,
12903	am, bw, km, mc5i, mir, msgr, xon,
12904	cols#80, it#8, lh#1, lines#24, lw#8, nlab#8, pb#9601,
12905	acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
12906	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
12907	cnorm=\E`1, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
12908	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
12909	dim=\EGp, dl1=\ER$<3>, ed=\EY$<50>, el=\ET$<4>,
12910	flash=\E`8$<100/>\E`9, home=^^, ht=\011$<1>, hts=\E1,
12911	il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
12912	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016
12913	    \024\El,
12914	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
12915	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
12916	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
12917	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
12918	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
12919	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
12920	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
12921	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
12922	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
12923	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
12924	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
12925	rmacs=\EcD, rmam=\Ed., rmcup=\Ew1, rmir=\Er, rmln=\EA11,
12926	rmxon=\Ec20, rs1=\E~!\E~4$<30>, rs2=\EeF\E`:$<70>,
12927	rs3=\EwG\Ee($<100>,
12928	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}
12929	    %|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t
12930	    %{64}%|%;%?%p7%t%{1}%|%;%c,
12931	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
12932	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
12933	tbc=\E0, use=adm+sgr, use=wyse+sl,
12934#
12935wy120-w|wyse120-w|wy150-w|wyse150-w|Wyse 120/150 132-column,
12936	cols#132, lw#7, nlab#16, wsl#97,
12937	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
12938	rs2=\E`;$<70>, use=wy120,
12939#
12940wy120-25|wyse120-25|wy150-25|wyse150-25|Wyse 120/150 80-column 25-lines,
12941	lh@, lines#25, lw@, nlab@,
12942	pln@, rs3=\EwG\Ee)$<100>, use=wy120,
12943#
12944wy120-25-w|wyse120-25-w|wy150-25-w|wyse150-25-w|Wyse 120/150 132-column 25-lines,
12945	lh@, lines#25, lw@, nlab@,
12946	pln@, rs3=\EwG\Ee)$<100>, use=wy120-w,
12947#
12948wy120-vb|wyse120-vb|wy150-vb|wyse150-vb|Wyse 120/150 visible bell,
12949	bel@, use=wy120,
12950#
12951wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column visible bell,
12952	bel@, use=wy120-w,
12953#
12954#	The Wyse 60 is like the Wyse 50 but with more padding.
12955#	The reset strings are slow and the pad times very depending
12956#	on other parameters such as font loading.  I have tried
12957#	to follow the following outline:
12958#
12959#		<rs1> -> set personality
12960#		<rs2> -> set number of columns
12961#		<rs3> -> set number of lines
12962#		<is1> -> select the proper font
12963#		<is2> -> do the initialization
12964#		<is3> -> set up display memory (2 pages)
12965#
12966#	The Wyse 60's that have VT100 emulation are slower than the
12967#	older Wyse 60's.  This change happened mid-1987.
12968#	The capabilities effected are <dch1> <dl1> <il1> <ind> <ri>
12969#
12970#	The meta key is only half right.  This terminal will return the
12971#	high order bit set when you hit CTRL-function_key
12972#
12973#	It may be useful to assign two function keys with the
12974#	values  \E=(\s  look at old data in page 1
12975#	        \E=W,   look at bottom of page 1
12976#	where \s is a space ( ).
12977#
12978#	Note:
12979#	   The Wyse 60 runs faster when the XON/XOFF
12980#	   handshake is turned off.
12981#
12982# (wy60: we use \E{ rather than ^^ for home (both are documented) to avoid
12983# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
12984wy60|wyse60|Wyse 60,
12985	am, bw, km, mc5i, mir, msgr,
12986	cols#80, lh#1, lines#24, lw#8, nlab#8,
12987	acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
12988	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<100>,
12989	cnorm=\E`1, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
12990	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12991	dch1=\EW$<11>, dclk=\E`b, dim=\EGp, dl1=\ER$<5>,
12992	ed=\EY$<100>, el=\ET, flash=\E`8$<100/>\E`9, home=\E{,
12993	ht=\011$<1>, hts=\E1, il1=\EE$<4>, ind=\n$<5>, ip=$<3>,
12994	is1=\EcB0\EcC1,
12995	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016
12996	    \024\El,
12997	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
12998	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
12999	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
13000	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
13001	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
13002	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
13003	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
13004	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
13005	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
13006	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
13007	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
13008	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew1, rmir=\Er,
13009	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<150>,
13010	rs2=\EeG$<150>, rs3=\EwG\Ee($<200>,
13011	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}
13012	    %|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t
13013	    %{64}%|%;%?%p7%t%{1}%|%;%c,
13014	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
13015	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
13016	tbc=\E0, kF1=^A`\r, kF10=^Ai\r, kF11=^Aj\r, kF12=^Ak\r,
13017	kF13=^Al\r, kF14=^Am\r, kF15=^An\r, kF16=^Ao\r, kF2=^Aa\r,
13018	kF3=^Ab\r, kF4=^Ac\r, kF5=^Ad\r, kF6=^Ae\r, kF7=^Af\r,
13019	kF8=^Ag\r, kF9=^Ah\r, use=adm+sgr, use=wyse+sl,
13020#
13021wy60-w|wyse60-w|Wyse 60 132-column,
13022	cols#132, lw#7, nlab#16, wsl#97,
13023	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<16>, ip=$<5>,
13024	rs2=\EeF$<150>\E`;$<150>, use=wy60,
13025#
13026wy60-25|wyse60-25|Wyse 60 80-column 25-lines,
13027	lh@, lines#25, lw@, nlab@,
13028	pln@, rs3=\EwG\Ee)$<200>, use=wy60,
13029wy60-25-w|wyse60-25-w|Wyse 60 132-column 25-lines,
13030	lh@, lines#25, lw@, nlab@,
13031	pln@, rs3=\EwG\Ee)$<200>, use=wy60-w,
13032#
13033wy60-42|wyse60-42|Wyse 60 80-column 42-lines,
13034	lines#42,
13035	clear=\E+$<260>, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<2>,
13036	dch1=\EW$<16>, dl1=\ER$<11>, ed=\Ey$<260>, il1=\EE$<11>,
13037	ind=\n$<9>, ip=$<5>, is1=\EcB2\EcC3, nel=\r\n$<6>,
13038	ri=\Ej$<10>, rs3=\Ee*$<150>, use=wy60,
13039wy60-42-w|wyse60-42-w|Wyse 60 132-column 42-lines,
13040	cols#132, lw#7, nlab#16, wsl#97,
13041	cup=\Ea%i%p1%dR%p2%dC$<2>, dch1=\EW$<19>,
13042	home=\036$<2>, ip=$<6>, nel=\r\n$<11>,
13043	rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
13044#
13045wy60-43|wyse60-43|Wyse 60 80-column 43-lines,
13046	lh@, lines#43, lw@, nlab@,
13047	pln@, rs3=\Ee+$<150>, use=wy60-42,
13048wy60-43-w|wyse60-43-w|Wyse 60 132-column 43-lines,
13049	lh@, lines#43, lw@, nlab@,
13050	pln@, rs3=\Ee+$<150>, use=wy60-42-w,
13051#
13052wy60-vb|wyse60-vb|Wyse 60 visible bell,
13053	bel@, use=wy60,
13054wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell,
13055	bel@, use=wy60-w,
13056
13057#	The Wyse-99GT looks at lot like the Wyse 60 except that it
13058#	does not have the 42/43 line mode.  In the Wyse-60 the "lines"
13059#	setup parameter controls the number of lines on the screen.
13060#	For the Wyse 99GT the "lines" setup parameter controls the
13061#	number of lines in a page.  The screen can display 25 lines max.
13062#	    The Wyse-99GT also has personalities for the VT220 and
13063#	Tektronix 4014.  But this has no bearing on the native mode.
13064#
13065#	(msgr) should be set but the clear screen fails when in
13066#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
13067#	then set msgr, else use msgr@.
13068#
13069#	u0 -> enter Tektronix mode
13070#	u1 -> exit Tektronix mode
13071#
13072wy99gt|wyse99gt|Wyse 99gt,
13073	msgr@,
13074	clear=\E+$<130>, dch1=\EW$<7>, dl1=\ER$<4>, ed=\Ey$<130>,
13075	el=\Et$<5>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
13076	ri=\Ej$<3>, rmcup=\Ew0, rs2=\E`:$<150>, smcup=\Ew1,
13077	u0=\E~>\E8, u1=\E[42h, use=wy60,
13078#
13079wy99gt-w|wyse99gt-w|Wyse 99gt 132-column,
13080	cols#132, lw#7, nlab#16, wsl#97,
13081	clear=\E+$<160>, cup=\Ea%i%p1%dR%p2%dC$<2>,
13082	dch1=\EW$<9>, ed=\Ey$<160>, ip=$<4>, rs2=\E`;$<150>,
13083	use=wy99gt,
13084#
13085wy99gt-25|wyse99gt-25|Wyse 99gt 80-column 25-lines,
13086	lh@, lines#25, lw@, nlab@,
13087	pln@, rs3=\EwG\Ee)$<200>, use=wy99gt,
13088#
13089wy99gt-25-w|wyse99gt-25-w|Wyse 99gt 132-column 25-lines,
13090	lh@, lines#25, lw@, nlab@,
13091	pln@, rs2=\E`;$<150>, use=wy99gt-w,
13092#
13093wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell,
13094	bel@, use=wy99gt,
13095#
13096wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell,
13097	bel@, use=wy99gt-w,
13098
13099# Can't set tabs! Other bugs (ANSI mode only):
13100# - can't redefine function keys (anyway, key redefinition in ANSI mode
13101#   is too much complex to be described);
13102# - meta key can't be described (the terminal forgets it when reset);
13103# The xon-xoff handshaking can't be disabled while in ANSI personality, so
13104# emacs can't work at speed greater than 9600 baud.  No padding is needed at
13105# this speed.
13106#   dch1 has been commented out because it causes annoying glittering when
13107# vi deletes one character at the beginning of a line with tabs in it.
13108#   dch makes sysgen(1M) have a horrible behaviour when deleting
13109# a screen and makes screen(1) behave badly, so it is disabled too. The nice
13110# thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
13111# not, so smir and rmir are commented out as well.
13112# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
13113wy99-ansi|Wyse WY-99GT in ANSI mode (int'l PC keyboard),
13114	am, km, mir, msgr, xenl,
13115	cols#80, it#8, lines#25, vt#3,
13116	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~,
13117	bel=^G, cbt=\E[Z, clear=\E[H\E[J$<200>, cr=\r,
13118	cub=\E[%p1%dD$<1>, cub1=\010$<1>, cud=\E[%p1%dB,
13119	cud1=\ED, cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
13120	cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E[34l\E[?25h, dim=\E[2m,
13121	ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>,
13122	enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, ht=^I,
13123	ich=\E[%p1%d@, ind=\n$<1>,
13124	is2=\E7\E[1r\E8\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4
13125	    ;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[4i,
13126	kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
13127	kcuu1=\EOA, kf17=\E[K, kf18=\E[31~, kf19=\E[32~,
13128	kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~,
13129	kf24=\E[2~, kf5=\E[M, ll=\E[24E, mc0=\E[?19h, nel=\EE,
13130	prot=\E[1"q, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
13131	rmkx=\E[?1l,
13132	rs2=\E[61"p\E[40h\E[?6l\E[1r\E[2;3;4;13;20;34;39;36l\E[12;16
13133	    ;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[24E
13134	    \E[4i,
13135	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%O%t;7%;%?%p4%t;5%;%?
13136	    %p5%t;2%;%?%p7%t;8%;m\E[%?%p8%t1%;"q%?%p9%t\016%e\017%;,
13137	sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h,
13138	smkx=\E[?1h, use=ecma+underline, use=ecma+standout,
13139	use=ansi+csr, use=ansi+cup, use=ansi+idl, use=ansi+pp,
13140	use=ansi+rca2, use=ansi+sgrbold, use=vt100+pf1-pf4,
13141	use=vt220+ufkeys, use=wyse+cvis,
13142
13143# http://www.bitsavers.org/pdf/wyse/WY-99/880411-02A_WY-99GT_User_Manual_198703.pdf
13144# "CSI 34 h" is WYULCURM, "Block cursor on" vs "Underline cursor on"
13145wyse+cvis|Wyse cursor-mode,
13146	civis=\E[?25l, cnorm=\E[34h\E[?25h,
13147
13148#   This is the american terminal. Here tabs work fine.
13149# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
13150wy99a-ansi|Wyse WY-99GT in ANSI mode (US PC keyboard),
13151	hts=\EH, is3=\E[?5l, rs3=\E[?5l, tbc=\E[3g, use=wy99-ansi,
13152
13153# This terminal (firmware version 02) has a lot of bugs:
13154# - can't set tabs;
13155# - other bugs in ANSI modes (see above).
13156# This description disables handshaking when using cup. This is because
13157# GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
13158# cannot be used at speeds greater than 9600 baud, because at greater
13159# speeds handshaking is needed even for character sending. If you use
13160# DTR handshaking, you can use even greater speeds.
13161# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
13162wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard),
13163	am, bw, km, mc5i, mir, msgr, xon,
13164	cols#80, it#8, lines#25,
13165	acsc='x+y.w_vi~j(k'l&m%n)o9q*s8t-u.v\,w+x=, bel=^G,
13166	blink=\EG2, cbt=\EI, civis=\E`0, clear=\E'\E(\032,
13167	cnorm=\E`4\E`1, cr=\r, cub1=^H, cud1=\Ej, cuf1=^L,
13168	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
13169	cvvis=\E`2\E`1, dch1=\EW, dim=\EGp, dl1=\ER, ed=\EY$<8*>,
13170	el=\ET$<8>, enacs=\Ec@1J$<2000>,
13171	flash=\E\^1$<30/>\E\^0, home=^^, ht=^I, il1=\EE, ind=\n,
13172	invis=\EG3,
13173	is2=\Eu\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E
13174	    \^0\E`1\E`4\Ee.\E`:\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"
13175	    \EcD\024,
13176	ka1=^^, ka3=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H,
13177	kcud1=\n, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r,
13178	kf11=^AJ\r, kf12=^AK\r, kf13=^A`\r, kf14=^Aa\r, kf15=^Ab\r,
13179	kf16=^Ac\r, kf17=^Ad\r, kf18=^Ae\r, kf19=^Af\r, kf2=^AA\r,
13180	kf20=^Ag\r, kf21=^Ah\r, kf22=^Ai\r, kf23=^Aj\r, kf24=^Ak\r,
13181	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
13182	kf8=^AG\r, kf9=^AH\r, kprt=\EP, mc0=\EP, mc4=^T, mc5=\Ed#,
13183	nel=^_, prot=\E), rev=\EG4, ri=\Ej, rmacs=\EcD, rmam=\Ed.,
13184	rmcup=\Ec21\Ec31, rmir=\Er, rmso=\EG0, rmxon=\Ec20\Ec30,
13185	rs2=\Eu\E~4\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`
13186	    9\E\^0\E`1\E`4\Ee.\E`:\Ee)\Ew\EwG\Ew0\Ee1\EG0\E(\Ed/
13187	    \Ee4\Ed*\EO\E`I\Er\Ee"\Ec@0B\EcD\024,
13188	sgr=\E(\EG%{48}%?%p1%p3%O%t%{4}%+%;%?%p2%t%{8}%+%;%?%p4%t
13189	    %{2}%+%;%?%p5%t%{64}%+%;%?%p7%t%{1}%+%;%c%?%p8%t\E)%;%?
13190	    %p9%t\EcE%e\EcD%;,
13191	sgr0=\E(\EG0, smacs=\EcE, smam=\Ed/, smcup=\Ec20\Ec30,
13192	smir=\Eq, smso=\EG4, smxon=\Ec21\Ec31, use=wyse+sl,
13193
13194# This is the american terminal. Here tabs work.
13195# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
13196wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard),
13197	hts=\E1, tbc=\E0, use=wy99f,
13198
13199#
13200#	The Wyse 160 is combination of the WY-60 and the WY-99gt.
13201#	The reset strings are slow and the pad times very depending
13202#	on other parameters such as font loading.  I have tried
13203#	to follow the following outline:
13204#
13205#		<rs1> -> set personality
13206#		<rs2> -> set number of columns
13207#		<rs3> -> set number of lines
13208#		<is1> -> select the proper font
13209#		<is2> -> do the initialization
13210#		<is3> -> set up display memory (2 pages)
13211#
13212#	The display memory may be used for either text or graphics.
13213#	When "Display Memory = Shared" the terminal will have more pages
13214#	but garbage may be left on the screen when you switch from
13215#	graphics to text.  If "Display Memory = Unshared" then the
13216#	text area will be only one page long.
13217#
13218# (wy160: we use \E{ rather than ^^ for home (both are documented) to avoid
13219# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
13220wy160|wyse160|Wyse 160,
13221	am, bw, km, mc5i, mir, msgr,
13222	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#38,
13223	acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
13224	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<30>,
13225	cnorm=\E`1, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
13226	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<5>,
13227	dclk=\E`b, dim=\EGp, dl1=\ER$<1>, ed=\EY$<30>, el=\ET$<5>,
13228	flash=\E`8$<100/>\E`9, home=\E{, ht=^I, hts=\E1,
13229	il1=\EE$<1>, ind=\n$<1>, ip=$<2>, is1=\EcB0\EcC1,
13230	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016
13231	    \024\El,
13232	is3=\Ew0$<100>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
13233	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
13234	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
13235	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
13236	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
13237	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
13238	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
13239	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<1>,
13240	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
13241	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
13242	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<1>,
13243	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew0, rmir=\Er,
13244	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<70>,
13245	rs2=\E`:$<100>, rs3=\EwG\Ee($<140>,
13246	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}
13247	    %|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t
13248	    %{64}%|%;%?%p7%t%{1}%|%;%c,
13249	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
13250	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
13251	tbc=\E0, use=adm+sgr, use=wyse+sl,
13252#
13253wy160-w|wyse160-w|Wyse 160 132-column,
13254	cols#132, lw#7, nlab#16, wsl#90,
13255	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<9>,
13256	rs2=\EeF$<150>\E`;$<150>, use=wy160,
13257#
13258wy160-25|wyse160-25|Wyse 160 80-column 25-lines,
13259	lh@, lines#25, lw@, nlab@,
13260	pln@, rs3=\EwG\Ee)$<200>, use=wy160,
13261wy160-25-w|wyse160-25-w|Wyse 160 132-column 25-lines,
13262	lh@, lines#25, lw@, nlab@,
13263	pln@, rs3=\EwG\Ee)$<200>, use=wy160-w,
13264#
13265wy160-42|wyse160-42|Wyse 160 80-column 42-lines,
13266	lines#42,
13267	clear=\E+$<50>, dl1=\ER$<2>, ed=\Ey$<50>, il1=\EE$<2>,
13268	ind=\n$<2>, is1=\EcB2\EcC3, nel=\r\n$<2>, ri=\Ej$<2>,
13269	rs3=\Ee*$<150>, use=wy160,
13270wy160-42-w|wyse160-42-w|Wyse 160 132-column 42-lines,
13271	cols#132, lw#7, nlab#16, wsl#90,
13272	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<8>, ip=$<3>,
13273	rs2=\EeF$<150>\E`;$<150>, use=wy160-42,
13274#
13275wy160-43|wyse160-43|Wyse 160 80-column 43-lines,
13276	lh@, lines#43, lw@, nlab@,
13277	pln@, rs3=\Ee+$<150>, use=wy160-42,
13278wy160-43-w|wyse160-43-w|Wyse 160 132-column 43-lines,
13279	lh@, lines#43, lw@, nlab@,
13280	pln@, rs3=\Ee+$<150>, use=wy160-42-w,
13281#
13282wy160-vb|wyse160-vb|Wyse 160 visible bell,
13283	bel@, use=wy160,
13284wy160-w-vb|wy160-wvb|wyse160-wvb|Wyse 160 132-column visible bell,
13285	bel@, use=wy160-w,
13286#
13287#	The Wyse 75 is a VT100 lookalike without advanced video.
13288#
13289#	   The Wyse 75 can support one attribute (e.g. Dim, Inverse,
13290#	Underline) without magic cookies.  The following description
13291#	uses this capability, but when more than one attribute is
13292#	put on the screen at once, all attributes will be changed
13293#	to be the same as the last attribute given.
13294#	   The Wyse 75 can support more attributes when used with magic
13295#	cookies.  The wy75-mc terminal description uses magic cookies
13296#	to correctly handle multiple attributes on a screen.
13297#
13298wy75|wyse75|Wyse 75,
13299	am, hs, mir, msgr, xenl, xon,
13300	cols#80, lines#24, ma#1, pb#1201, wsl#78,
13301	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13302	bel=^G, clear=\E[H\E[J$<30>, cr=\r,
13303	csr=\E[%i%p1%d;%p2%dr$<2>, cub1=^H, cud1=\n,
13304	dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[0t\E[2m,
13305	dl=\E[%p1%dM$<1*>, dl1=\E[M,
13306	dsl=\E[>\,\001\001\E[>-\001\001, ech=\E[%p1%dX,
13307	ed=\E[J$<30>, el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E)0,
13308	flash=\E[30h\E\,$<250/>\E[30l, fsl=^A, hpa=\E[%i%p1%dG,
13309	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
13310	ind=\n$<2>, ip=$<1>,
13311	is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
13312	is2=\E>\E(B\E)0\017, is3=\E[m, kdl1=\E[M, kel=\E[K,
13313	kf1=\E[?5i, kf2=\E[?3i, kf21=\E[35~, kf3=\E[2i, kf4=\E[@,
13314	kf5=\E[M, kfnd=\E[1~, khlp=\E[28~, kich1=\E[@, kil1=\E[L,
13315	knp=\E[6~, kpp=\E[5~, kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i,
13316	rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
13317	rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
13318	rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<80>, rs3=\E[?5l,
13319	sc=\E7,
13320	sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t
13321	    \E[3t%;%?%p1%p2%p3%p4%p5%|%|%|%|%t\E[7m%e\E[m%;%?%p9%t
13322	    \016%e\017%;,
13323	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
13324	smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
13325	tsl=\E[>\,\001, use=ansi+arrows, use=ansi+cup,
13326	use=ansi+local, use=ansi+pp, use=ansi+tabs,
13327	use=decid+cpr, use=vt220+cvis, use=vt220+keypad,
13328	use=vt220+sfkeys, use=vt220+ufkeys,
13329#
13330#	This terminal description uses the non-hidden attribute mode
13331#	(with magic cookie).
13332#
13333wy75-mc|wyse75-mc|Wyse 75 with magic cookies,
13334	msgr@,
13335	ma@, xmc#1,
13336	blink=\E[2p, dim=\E[1p, invis=\E[4p, is3=\E[m\E[p,
13337	rev=\E[16p, rmacs=\E[0p\017, rmso=\E[0p, rmul=\E[0p,
13338	sgr=\E[%{0}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{16}%|%;%?
13339	    %p4%t%{2}%|%;%?%p1%p5%|%t%{1}%|%;%?%p7%t%{4}%|%;%dp%?%p9
13340	    %t\016%e\017%;,
13341	sgr0=\E[0p\017, smacs=\E[0p\016, smso=\E[17p, smul=\E[8p,
13342	use=wy75,
13343wy75-vb|wyse75-vb|Wyse 75 with visible bell,
13344	pb@,
13345	bel@, use=wy75,
13346wy75-w|wyse75-w|Wyse 75 in 132 column mode,
13347	cols#132, wsl#130,
13348	rs2=\E[35h\E[?3h$<80>, use=wy75,
13349wy75-wvb|wyse75-wvb|Wyse 75 with visible bell 132 columns,
13350	pb@,
13351	bel@, use=wy75-w,
13352#
13353#	Wyse 85 emulating a VT220 7 bit mode.
13354#		24 line screen with status line.
13355#
13356#	The VT220 mode permits more function keys but it wipes out
13357#	the escape key.  I strongly recommend that <f11> be set to
13358#	escape (esc).
13359#	The terminal may have to be set for 8 data bits and 2 stop
13360#	bits for the arrow keys to work.
13361#	The Wyse 85 runs faster with XON/XOFF enabled.  Also the
13362#	<dch> and <ich> work best when XON/XOFF is set.  <ich> and
13363#	<dch> leave trash on the screen when used without XON/XOFF.
13364#
13365wy85|wyse85|Wyse 85,
13366	hs, mir, xenl, xon,
13367	wsl#80,
13368	clear=\E[H\E[J$<110>, cub1=^H, cud1=\n,
13369	cup=\E[%i%p1%d;%p2%dH$<1>, dch=\E[%p1%dP$<3*>,
13370	dch1=\E[P$<3>, dim=\E[2m, dl=\E[%p1%dM$<3*>,
13371	dl1=\E[M$<3>, dsl=\E[40l, ech=\E[%p1%dX, ed=\E[J$<110>,
13372	el=\E[K$<1>, el1=\E[1K, enacs=\E)0,
13373	flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
13374	ht=\011$<1>, ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>,
13375	il1=\E[L$<5>, ind=\n$<3>, ip=$<3>, is1=\E[62;1"p\E[?5W,
13376	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
13377	is3=\E>\E(B\E)0\017\E[m, khlp=\E[28~, khome=\E[26~,
13378	lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i, ri=\EM$<3>,
13379	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rs1=\E[13l\E[3l\E!p,
13380	rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l,
13381	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
13382	    %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
13383	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h, smkx=\E[?1l\E=,
13384	tsl=\E[40h\E7\E[25;%i%p1%dH, use=ansi+arrows,
13385	use=ansi+csr, use=ansi+inittabs, use=ansi+local,
13386	use=ansi+pp, use=ansi+sgrbold, use=decid+cpr,
13387	use=vt100+4bsd, use=vt220+vtedit, use=vt220+cvis,
13388	use=vt220+keypad, use=vt220+sfkeys, use=vt220+ufkeys,
13389#
13390#	Wyse 85 with visual bell.
13391wy85-vb|wyse85-vb|Wyse 85 with visible bell,
13392	bel@, flash=\E[30h\E\,$<300/>\E[30l, use=wy85,
13393#
13394#	Wyse 85 in 132-column mode.
13395wy85-w|wyse85-w|Wyse 85 in 132-column mode,
13396	cols#132, wsl#132,
13397	rs2=\E[35h$<70/>\E[?3h, use=wy85,
13398#
13399#	Wyse 85 in 132-column mode with visual bell.
13400wy85-wvb|wyse85-wvb|Wyse 85 with visible bell 132-columns,
13401	bel@, use=wy85-w,
13402
13403# From: Kevin Turner <kevint@aracnet.com>, 12 Jul 1998
13404# This copes with an apparent firmware bug in the wy85.  He writes:
13405# "What I did was change leave the terminal cursor keys set to Normal
13406# (instead of application), and change \E[ to \233 for all the keys in
13407# terminfo. At one point, I found some reference indicating that this
13408# terminal bug (not sending \E[) was acknowledged by Wyse (so it's not just
13409# me), but I can't find that and the server under my bookmark to "Wyse
13410# Technical" isn't responding.  So there's the question of whether the wy85
13411# terminfo should reflect the manufacturer's intended behaviour of the terminal
13412# or the actual."
13413wy85-8bit|wyse85-8bit|Wyse 85 in 8-bit mode,
13414	hs, mir, xenl, xon,
13415	wsl#80,
13416	clear=\E[H\E[J$<110>, cub1=^H, cud1=\n,
13417	cup=\E[%i%p1%d;%p2%dH$<1>, dch=\E[%p1%dP$<3*>,
13418	dch1=\E[P$<3>, dim=\E[2m, dl=\E[%p1%dM$<3*>,
13419	dl1=\E[M$<3>, dsl=\E[40l, ech=\E[%p1%dX, ed=\E[J$<110>,
13420	el=\E[K$<1>, el1=\E[1K, enacs=\E)0,
13421	flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
13422	ht=\011$<1>, ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>,
13423	il1=\E[L$<5>, ind=\n$<3>, ip=$<3>, is1=\E[62;1"p\E[?5W,
13424	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
13425	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
13426	kc1=\EOq, kc3=\EOs, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
13427	kcuu1=\233A, kdch1=\2333~, kf10=\23321~, kf11=\23323~,
13428	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
13429	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
13430	kf20=\23334~, kf6=\23317~, kf7=\23318~, kf8=\23319~,
13431	kf9=\23320~, kfnd=\2331~, khlp=\23328~, khome=\23326~,
13432	kich1=\2332~, knp=\2336~, kpp=\2335~, kslt=\2334~, lf1=PF1,
13433	lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i, ri=\EM$<3>,
13434	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rs1=\E[13l\E[3l\E!p,
13435	rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l,
13436	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
13437	    %p6%t;1%;%?%p7%t;8%;+m%?%p9%t\016%e\017%;,
13438	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h, smkx=\E[?1l\E=,
13439	tsl=\E[40h\E7\E[25;%i%p1%dH, use=ansi+csr,
13440	use=ansi+inittabs, use=ansi+local, use=ansi+pp,
13441	use=ansi+sgrbold, use=decid+cpr, use=vt100+4bsd,
13442	use=vt100+pfkeys, use=vt220+cvis,
13443#
13444#	Wyse 185 emulating a VT320 7 bit mode.
13445#
13446#	This terminal always displays 25 lines.  These lines may be used
13447#	as 24 data lines and a terminal status line (top or bottom) or
13448#	25 data lines.  The 48 and 50 line modes change the page size
13449#	and not the number of lines on the screen.
13450#
13451#	The Compose Character key can be used as a meta key if changed
13452#	by set-up.
13453#
13454wy185|wyse185|Wyse 185,
13455	hs, km, mir, xenl, xon,
13456	wsl#80,
13457	clear=\E[H\E[J$<40>, csr=\E[%i%p1%d;%p2%dr$<20>,
13458	cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH,
13459	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<3>,
13460	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
13461	dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>,
13462	el=\E[K, el1=\E[1K, enacs=\E)0,
13463	flash=\E[30h\E\,$<100/>\E[30l, fsl=\E[1;24r\E8,
13464	hpa=\E[%i%p1%d`, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
13465	il1=\E[L$<3>, ind=\n$<2>, ip=$<4>, is1=\E[?5W,
13466	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
13467	is3=\E>\E(B\E)0\017\E[m, kcbt=\E[Z, khlp=\E[28~,
13468	khome=\E[26~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
13469	rc=\E8, ri=\EM$<2>, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
13470	rmkx=\E>, rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p,
13471	rs2=\E[35h\E[?3l, rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
13472	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
13473	    %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
13474	sgr0=\E[m\017, smam=\E[?7h, smcup=\E[ Q, smir=\E[4h,
13475	smkx=\E[?1l\E=, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
13476	use=ecma+underline, use=ecma+standout, use=ansi+arrows,
13477	use=ansi+inittabs, use=ansi+local, use=ansi+pp,
13478	use=ansi+sgrbold, use=decid+cpr, use=vt100+4bsd,
13479	use=vt220+vtedit, use=vt220+keypad, use=vt220+sfkeys,
13480	use=vt220+ufkeys, use=wyse+cvis,
13481#
13482#	Wyse 185 with 24 data lines and top status (terminal status)
13483wy185-24|wyse185-24|Wyse 185 with 24 data lines,
13484	hs@,
13485	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
13486	use=wy185,
13487#
13488#	Wyse 185 with visual bell.
13489wy185-vb|wyse185-vb|Wyse 185+flash,
13490	bel@, use=wy185,
13491#
13492#	Wyse 185 in 132-column mode.
13493wy185-w|wyse185-w|Wyse 185 in 132-column mode,
13494	cols#132, wsl#132,
13495	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
13496	ip=$<7>, rs2=\E[35h\E[?3h, use=wy185,
13497#
13498#	Wyse 185 in 132-column mode with visual bell.
13499wy185-wvb|wyse185-wvb|Wyse 185+flash+132 cols,
13500	bel@, use=wy185-w,
13501
13502# wy325 terminfo entries
13503# Done by Joe H. Davis        3-9-92
13504
13505# lines 25  columns 80
13506#
13507wy325|wyse325|Wyse epc,
13508	am, bw, mc5i, mir,
13509	cols#80, lh#1, lines#24, lw#8, nlab#8, pb#9601,
13510	acsc=+/\,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
13511	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
13512	cnorm=\E`1, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
13513	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
13514	dim=\EGp, dl1=\ER$<3>, ed=\EY$<50>, el=\ET$<4>,
13515	flash=\E`8$<100/>\E`9, home=^^, ht=^I, hts=\E1,
13516	il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
13517	is2=\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024
13518	    \El,
13519	is3=\Ew0$<16>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
13520	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
13521	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
13522	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
13523	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
13524	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq,
13525	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
13526	mc0=\EP, mc4=^T, mc5=\Ed#,
13527	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
13528	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
13529	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
13530	rmacs=\EcD, rmam=\Ed., rmcup=\Ew0, rmir=\Er, rmln=\EA11,
13531	rs1=\E~!\E~4$<30>, rs2=\EeF\E`:$<70>,
13532	rs3=\EwG\Ee($<100>,
13533	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}
13534	    %|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t
13535	    %{64}%|%;%?%p7%t%{1}%|%;%c,
13536	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
13537	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, tbc=\E0,
13538	use=adm+sgr, use=wyse+sl,
13539
13540#
13541# lines 24  columns 80  vb
13542#
13543wy325-vb|wyse325-vb|Wyse-325 with visual bell,
13544	bel@, use=wy325,
13545
13546#
13547# lines 24  columns 132
13548#
13549wy325-w|wyse325-w|wy325w-24|Wyse-325 in wide mode,
13550	cols#132, lw#7, nlab#16, wsl#97,
13551	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
13552	rs2=\E`;$<70>, use=wy325,
13553#
13554# lines 25  columns 80
13555#
13556wy325-25|wyse325-25|wy325-80|wyse-325|Wyse-325 25 lines,
13557	lh@, lines#25, lw@, nlab@,
13558	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
13559#
13560# lines 25  columns 132
13561#
13562wy325-25w|wyse325-25w|Wyse-325 132 columns,
13563	lh@, lines#25, lw@, nlab@,
13564	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
13565#
13566# lines 25  columns 132  vb
13567#
13568wy325-w-vb|wy325-wvb|wyse325-wvb|Wyse-325 wide mode reverse video,
13569	bel@, use=wy325-w,
13570
13571#
13572# lines 42  columns 80
13573#
13574wy325-42|wyse325-42|Wyse-325 42 lines,
13575	lh@, lines#42, lw@, nlab@,
13576	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
13577#
13578# lines 42  columns 132
13579#
13580wy325-42w|wyse325-42w|Wyse-325 42 lines wide mode,
13581	lh@, lines#42, lw@, nlab@,
13582	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
13583#
13584# lines 42  columns 132  vb
13585#
13586wy325-42w-vb|wy325-42wvb|Wyse-325 42 lines wide mode visual bell,
13587	bel@, use=wy325-w,
13588#
13589# lines 43  columns 80
13590#
13591wy325-43|wyse325-43|Wyse-325 43 lines,
13592	lh@, lines#43, lw@, nlab@,
13593	pln@, use=wy325,
13594#
13595# lines 43  columns 132
13596#
13597wy325-43w|wyse325-43w|Wyse-325 43 lines wide mode,
13598	lh@, lines#43, lw@, nlab@,
13599	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
13600#
13601# lines 43  columns 132  vb
13602#
13603wy325-43w-vb|wy325-43wvb|Wyse-325 43 lines wide mode visual bell,
13604	bel@, use=wy325-w,
13605
13606#	Wyse 370 -- 24 line screen with status line.
13607#
13608#	The terminal may have to be set for 8 data bits and 2 stop
13609#	bits for the arrow keys to work.
13610#
13611#	If you change keyboards the terminal will send different
13612#	escape sequences.
13613#	The following definition is for the basic terminal without
13614#	function keys.
13615#
13616#	<u0> -> enter Tektronix 4010/4014 mode
13617#	<u1> -> exit  Tektronix 4010/4014 mode
13618#	<u2> -> enter ASCII mode (from any ANSI mode)
13619#	<u3> -> exit  ASCII mode (goto native ANSI mode)
13620#	<u4> -> enter Tek 4207 ANSI mode (from any ANSI mode)
13621#	<u5> -> exit  Tek 4207 mode (goto native ANSI mode)
13622#
13623# Bug: The <op> capability resets attributes.
13624wy370-nk|Wyse 370 without function keys,
13625	am, ccc, hs, mir, msgr, xenl, xon,
13626	colors#64, cols#80, lines#24, ncv#48, pairs#64, wsl#80,
13627	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13628	bel=^G, clear=\E[H\E[J$<40>, cr=\r, cub1=^H, cud1=\n,
13629	cup=\E[%i%p1%d;%p2%dH$<1>, cvvis=\E[?25h\E[34l,
13630	dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>, dclk=\E[31h,
13631	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[40l,
13632	ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>, el=\E[K$<10>,
13633	el1=\E[1K$<12>, enacs=\E)0,
13634	flash=\E[30h\E\,$<300/>\E[30l, fsl=\E[1;24r\E8,
13635	home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>,
13636	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
13637	ind=\n$<2>,
13638	initc=\E[66;%p1%d;%?%p2%{250}%<%t%{0}%e%p2%{500}%<%t%{16}%e
13639	      %p2%{750}%<%t%{32}%e%{48}%;%?%p3%{250}%<%t%{0}%e%p3
13640	      %{500}%<%t%{4}%e%p3%{750}%<%t%{8}%e%{12}%;%?%p4%{250}
13641	      %<%t%{0}%e%p4%{500}%<%t%{1}%e%p4%{750}%<%t%{2}%e%{3}%;
13642	      %{1}%+%+%+%dw,
13643	ip=$<1>, is1=\E[90;1"p\E[?5W$<6>,
13644	is2=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h,
13645	is3=\E>\017\E)0\E(B\E[63;0w\E[m, mc0=\E[0i,
13646	oc=\E[60w\E[63;0w\E[66;1;4w\E[66;2;13w\E[66;3;16w\E[66;4;49w
13647	   \E[66;5;51w\E[66;6;61w\E[66;7;64w,
13648	op=\E[m, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmclk=\E[31l,
13649	rmcup=\E[ R, rmir=\E[4l, rmkx=\E>,
13650	rs1=\E[13l\E[3l\E!p\E[?4i, rs2=\E[35h\E[?3l$<8>,
13651	rs3=\E[?5l, setb=\E[62;%p1%dw, setf=\E[61;%p1%dw,
13652	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
13653	    %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
13654	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
13655	smir=\E[4h, smkx=\E[?1l\E=,
13656	tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH, u0=\E[?38h\E8,
13657	u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B, u4=\E[92;76"p,
13658	u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd, use=ecma+underline,
13659	use=ecma+standout, use=ansi+csr, use=ansi+inittabs,
13660	use=ansi+local, use=ansi+pp, use=ansi+sgrbold,
13661	use=decid+cpr, use=wyse+cvis,
13662#
13663#	Function key set for the ASCII (wy-50 compatible) keyboard
13664#	This is the default 370.
13665#
13666wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
13667	kcbt=\E[Z, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
13668	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
13669	kf2=\E[?3i, kf3=\E[2i, kf4=\E[@, kf5=\E[M, kich1=\EOP,
13670	kil1=\EOP, knp=\E[U, kpp=\E[V, use=ansi+arrows,
13671	use=vt220+ufkeys, use=wy370-nk,
13672#
13673#	Function key set for the VT-320 (and wy85) compatible keyboard
13674#
13675wy370-105k|Wyse 370 with 105 key keyboard,
13676	kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2,
13677	lf3=PF3, lf4=PF4, use=ansi+arrows, use=vt220+vtedit,
13678	use=wy370-nk, use=vt220+keypad, use=vt220+sfkeys,
13679	use=vt220+ufkeys,
13680#
13681#	Function key set for the PC compatible keyboard
13682#
13683wy370-EPC|Wyse 370 with 102 key keyboard,
13684	kcbt=\E[Z, kend=\E[1~, kent=\EOM, kf5=\E[M, kich1=\E[2~,
13685	knp=\E[U, kpp=\E[V, use=ansi+arrows, use=vt100+pf1-pf4,
13686	use=vt220+ufkeys, use=wy370-nk,
13687#
13688#	Wyse 370 with visual bell.
13689wy370-vb|Wyse 370 with visible bell,
13690	bel@, use=wy370,
13691#
13692#	Wyse 370 in 132-column mode.
13693wy370-w|Wyse 370 in 132-column mode,
13694	cols#132, wsl#132,
13695	rs2=\E[35h\E[?3h$<70>, use=wy370,
13696#
13697#	Wyse 370 in 132-column mode with visual bell.
13698wy370-wvb|Wyse 370 with visible bell 132-columns,
13699	flash=\E[30h\E\,$<300/>\E[30l, use=wy370-w,
13700wy370-rv|Wyse 370 reverse video,
13701	rs3=\E[32h\E[?5h, use=wy370,
13702#
13703#	Wyse 99gt Tektronix 4010/4014 emulator,
13704#
13705wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
13706	am, os,
13707	cols#74, lines#35,
13708	bel=^G, clear=\E^L, cr=\r, cub1=^H, cud1=\n, cuf1=\s,
13709	cup=\035%{3040}%{89}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}
13710	    %&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}
13711	    %/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/
13712	    %{31}%&%{64}%+%c\037,
13713	cuu1=^K, ff=^L,
13714	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
13715	   \037,
13716	home=^]7`x @\037,
13717	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
13718	   \037,
13719	is2=\E8, nel=\r\n, u0=\E~>\E8, u1=\E[42h,
13720#
13721#	Wyse 160 Tektronix 4010/4014 emulator,
13722#
13723wy160-tek|Wyse 160 Tektronix 4010/4014 emulator,
13724	cup=\035%{3103}%{91}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}
13725	    %&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}
13726	    %/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/
13727	    %{31}%&%{64}%+%c\037,
13728	home=^]8`g @\037, use=wy99gt-tek,
13729#
13730#	Wyse 370 Tektronix 4010/4014 emulator,
13731#
13732wy370-tek|Wyse 370 Tektronix 4010/4014 emulator,
13733	am, os,
13734	cols#80, lines#36,
13735	bel=^G, clear=\E^L, cr=\r, cub1=^H, cud1=\n, cuf1=\s,
13736	cup=\035%{775}%{108}%p1%*%{5}%/%-%Py%p2%{64}%*%{4}%+%{5}%/
13737	    %Px%gy%{32}%/%{31}%&%{32}%+%c%gy%{31}%&%{96}%+%c%gx%{32}
13738	    %/%{31}%&%{32}%+%c%gx%{31}%&%{64}%+%c\037,
13739	cuu1=^K, ff=^L,
13740	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
13741	   \037,
13742	home=^]8g @\037,
13743	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
13744	   \037,
13745	is2=\E8, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^I, kcuu1=^K,
13746	nel=\r\n, u0=\E[?38h\E8, u1=\E[?38l\E)0,
13747
13748# Vendor-supplied Wyse entries end here.
13749
13750#
13751#TITLE:  TERMINFO ENTRY WY520
13752#DATE:   8/5/93
13753# The WY520 terminfo is based on the WY285 entry published on the WYSE
13754# BBS with the addition of more function keys and special keys.
13755#
13756#               rs1 -> set personality
13757#               rs2 -> set number of columns
13758#               rs3 -> set number of lines
13759#               is1 -> select the proper font
13760#               is2 -> do the initialization
13761#               is3 -> If this string is empty then rs3 gets sent.
13762#
13763#       Wyse 520 emulating a VT420 7 bit mode with default ANSI keyboard
13764#       - The BS key is programmed to generate BS in smcup since
13765#         is2 doesn't seem to work.
13766#       - Remove and shift/Remove: delete a character
13767#       - Insert : enter insert mode
13768#       - Find   : delete to end of file
13769#       - Select : clear a line
13770#       - F11, F12, F13: send default sequences (not ESC, BS, LF)
13771#       - F14 : Home key
13772#       - Bottom status line (host writable line) is used.
13773#       - smkx,rmkx are removed because this would put the numeric
13774#         keypad in Dec application mode which doesn't seem to work
13775#         with SCO applications.
13776#
13777wy520|wyse520|Wyse 520,
13778	am, hs, km, mir, xenl, xon,
13779	cols#80, it#8, lines#24, wsl#80,
13780	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13781	bel=^G, clear=\E[H\E[J$<40>, cr=\r,
13782	csr=\E[%i%p1%d;%p2%dr$<20>, cub1=^H, cud1=\n,
13783	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<30>,
13784	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
13785	ech=\E[%p1%dX, ed=\E[J$<40>, el=\E[K, el1=\E[1K,
13786	enacs=\E)0, fsl=\E[0$}, hpa=\E[%i%p1%d`,
13787	ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
13788	ind=\n$<2>, ip=$<4>, is1=\E[?5W,
13789	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
13790	is3=\E>\E(B\E)0\017\E[m, kcbt=\E[Z, ked=\E[1~, kel=\E[4~,
13791	khlp=\E[28~, khome=\E[26~, lf1=PF1, lf2=PF2, lf3=PF3,
13792	lf4=PF4, mc0=\E[0i, ri=\EM$<2>, rmacs=^O, rmam=\E[?7l,
13793	rmcup=\E[ R, rmir=\E[4l,
13794	rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
13795	rs3=\E[?5l\E[47h\E[40l\E[r,
13796	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?
13797	    %p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
13798	sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
13799	smcup=\E[ Q\E[?67;8h, smir=\E[4h,
13800	tsl=\E[2$~\E[1$}\E[%i%p1%d`, vpa=\E[%i%p1%dd,
13801	use=ecma+underline, use=ansi+arrows, use=ansi+csr,
13802	use=ansi+cup, use=ansi+local, use=ansi+pp,
13803	use=ansi+sgrbold, use=ansi+tabs, use=decid+cpr,
13804	use=vt220+vtedit, use=vt220+keypad, use=vt220+sfkeys,
13805	use=vt220+ufkeys, use=wyse+cvis,
13806#
13807#       Wyse 520 with 24 data lines and status (terminal status)
13808wy520-24|wyse520-24|Wyse 520 with 24 data lines,
13809	hs@,
13810	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
13811	use=wy520,
13812#
13813#       Wyse 520 with visual bell.
13814wy520-vb|wyse520-vb|Wyse 520 with visible bell,
13815	flash=\E[30h\E\,$<100/>\E[30l, use=wy520,
13816#
13817#       Wyse 520 in 132-column mode.
13818wy520-w|wyse520-w|Wyse 520 in 132-column mode,
13819	cols#132, wsl#132,
13820	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
13821	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520,
13822#
13823#       Wyse 520 in 132-column mode with visual bell.
13824wy520-wvb|wyse520-wvb|Wyse 520 with visible bell 132-columns,
13825	flash=\E[30h\E\,$<100/>\E[30l, use=wy520-w,
13826#
13827#
13828#       Wyse 520 emulating a VT420 7 bit mode.
13829#       The DEL key is programmed to generate BS in is2.
13830#       With EPC keyboard.
13831#       - 'End' key will clear till end of line on EPC keyboard
13832#       - Shift/End : ignored.
13833#       - Insert : enter insert mode.
13834#       - Delete : delete a character (have to change interrupt character
13835#                  to CTRL-C: stty intr '^c') for it to work since the
13836#                  Delete key sends 7FH.
13837wy520-epc|wyse520-epc|Wyse 520 with EPC keyboard,
13838	kdch1=^?, kel=\E[4~, kend=\E[4~, kf0=\E[21~, khome=\E[H,
13839	use=xterm+r5+fkeys, use=wy520,
13840#
13841#       Wyse 520 with 24 data lines and status (terminal status)
13842#       with EPC keyboard.
13843wy520-epc-24|wyse520-pc-24|Wyse 520 with 24 data lines and EPC keyboard,
13844	hs@,
13845	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
13846	use=wy520-epc,
13847#
13848#       Wyse 520 with visual bell.
13849wy520-epc-vb|wyse520-pc-vb|Wyse 520 with visible bell and EPC keyboard,
13850	flash=\E[30h\E\,$<100/>\E[30l, use=wy520-epc,
13851#
13852#       Wyse 520 in 132-column mode.
13853wy520-epc-w|wyse520-epc-w|Wyse 520 in 132-column mode with EPC keyboard,
13854	cols#132, wsl#132,
13855	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
13856	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520-epc,
13857#
13858#       Wyse 520 in 132-column mode with visual bell.
13859wy520-epc-wvb|wyse520-p-wvb|Wyse 520 with visible bell 132-columns and EPC keyboard,
13860	flash=\E[30h\E\,$<100/>\E[30l, use=wy520-epc-w,
13861#
13862#       Wyse 520 in 80-column, 36 lines
13863wy520-36|wyse520-36|Wyse 520 with 36 data lines,
13864	hs@,
13865	lines#36,
13866	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
13867	use=wy520,
13868#
13869#       Wyse 520 in 80-column, 48 lines
13870wy520-48|wyse520-48|Wyse 520 with 48 data lines,
13871	hs@,
13872	lines#48,
13873	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
13874	use=wy520,
13875#
13876#       Wyse 520 in 132-column, 36 lines
13877wy520-36w|wyse520-36w|Wyse 520 with 132 columns and 36 data lines,
13878	cols#132, wsl#132,
13879	rs2=\E[?3h,
13880	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
13881	use=wy520-36,
13882#
13883#       Wyse 520 in 132-column, 48 lines
13884wy520-48w|wyse520-48w|Wyse 520 with 48 data lines (132 column),
13885	cols#132, wsl#132,
13886	rs2=\E[?3h,
13887	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
13888	use=wy520-48,
13889#
13890#
13891#       Wyse 520 in 80-column, 36 lines with EPC keyboard
13892wy520-36pc|wyse520-36pc|Wyse 520 with 36 data lines and EPC keyboard,
13893	hs@,
13894	lines#36,
13895	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
13896	use=wy520-epc,
13897#
13898#       Wyse 520 in 80-column, 48 lines with EPC keyboard
13899wy520-48pc|wyse520-48pc|Wyse 520 with 48 data lines and EPC keyboard,
13900	hs@,
13901	lines#48,
13902	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
13903	use=wy520-epc,
13904#
13905#       Wyse 520 in 132-column, 36 lines with EPC keyboard
13906wy520-36wpc|wyse520-36wpc|Wyse 520 with 36 data lines and EPC keyboard (132 column),
13907	cols#132, wsl#132,
13908	rs2=\E[?3h,
13909	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
13910	use=wy520-36pc,
13911#
13912#       Wyse 520 in 132-column, 48 lines with EPC keyboard
13913wy520-48wpc|wyse520-48wpc|Wyse 520 with 48 data lines and EPC keyboard (132 column),
13914	cols#132, wsl#132,
13915	rs2=\E[?3h,
13916	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
13917	use=wy520-48pc,
13918
13919# From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
13920# (wyse-vp: removed <if=/usr/share/tabset/wyse-adds>, there's no such
13921# file and we don't know what <hts> is -- esr)
13922wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on,
13923	OTbs, am,
13924	cols#80, it#8, lines#24,
13925	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^F,
13926	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EW,
13927	dl1=\El, ed=\Ek, el=\EK, home=^A, ht=^I, il1=\EM, ind=\n,
13928	is2=\E`:\E`9\017\Er, kbs=^H, kcub1=^U, kcud1=\n, kcuf1=^F,
13929	kcuu1=^Z, khome=^A, ll=^A^Z, nel=\r\n, rmir=\Er, rmso=^O,
13930	rmul=^O, rs1=\E`:\E`9\017\Er, sgr0=^O, smir=\Eq, smso=^N,
13931	smul=^N,
13932
13933wy75ap|wyse75ap|wy-75ap|wyse-75ap|Wyse WY-75 Applications and Cursor keypad,
13934	is2=\E[1;24r\E[?10;3l\E[?1;25h\E[4l\E[m\E(B\E=,
13935	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13936	khome=\EOH, rmkx=\E[?1l\E>$<10/>, smkx=\E[?1h\E=$<10/>,
13937	use=wy75,
13938
13939# From: Eric Freudenthal <freudent@eric.ultra.nyu.edu>
13940wy100q|Wyse 100 for Quotron,
13941	OTbs,
13942	cols#80, lines#24, xmc#1,
13943	cbt=\EI, clear=^Z, cub1=^H, cud1=\n, cuf1=^L,
13944	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
13945	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, invis@,
13946	is2=\E`:\0\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=\n,
13947	kcuf1=^L, kcuu1=^K, ri=\Ej, rmir=\Er, smir=\Eq, use=adm+sgr,
13948
13949#### Kermit terminal emulations
13950#
13951# Obsolete Kermit versions may be listed in the section describing obsolete
13952# non-ANSI terminal emulators later in the file.
13953#
13954
13955# KERMIT standard all versions.
13956# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
13957# (kermit: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
13958# From: greg small <gts@populi.berkeley.edu> 9-25-84
13959kermit|standard kermit,
13960	OTbs,
13961	cols#80, lines#24,
13962	clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
13963	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
13964	el=\EK, home=\EH, is2=K0 Standard Kermit  9-25-84\n,
13965	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
13966kermit-am|standard kermit plus auto-margin,
13967	am,
13968	is2=K1 Standard Kermit plus Automatic Margins\n,
13969	use=kermit,
13970# IBMPC Kermit 1.2.
13971# Bugs: <ed>, <el>: do not work except at beginning of line!  <clear> does
13972# not work, but fake with :cl=\EH\EJ (since :cd=\EJ: works at beginning of
13973# line).
13974# From: greg small <gts@populi.berkeley.edu> 8-30-84
13975pckermit|pckermit12|UCB IBMPC Kermit 1.2,
13976	am,
13977	lines#25,
13978	clear=\EH\EJ, ed@, el@,
13979	is2=K2 UCB IBMPC Kermit 1.2  8-30-84\n, use=kermit,
13980# IBMPC Kermit 1.20
13981# Cannot use line 25, now acts funny like ANSI special scrolling region.
13982# Initialization must escape from that region by cursor position to line 24.
13983# Cannot use character insert because 1.20 goes crazy if insert at col 80.
13984# Does not use :am: because autowrap is lost when kermit dropped and restarted.
13985# From: greg small <gts@populi.berkeley.edu> 12-19-84
13986pckermit120|UCB IBMPC Kermit 1.20,
13987	it#8,
13988	cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I, il1=\EL,
13989	is2=\EO\Eq\EJ\EY7\sK3\sUCB\sIBMPC\sKermit\s1.20\s\s12-19-84
13990	    \n,
13991	rmir@, rmso=\Eq, smir@, smso=\Ep, use=kermit,
13992# MS-DOS Kermit 2.27 for the IBMPC
13993# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
13994# Cannot use line 25, now acts funny like ANSI special scrolling region.
13995# Initialization must escape from that region by cursor position to line 24.
13996# Does not use am: because autowrap is lost when kermit dropped and restarted.
13997# Reverse video for standout like H19.
13998# (msk227: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
13999# From: greg small <gts@populi.berkeley.edu> 3-17-85
14000msk227|mskermit227|MS-DOS Kermit 2.27 for the IBMPC,
14001	OTbs, am@,
14002	cols#80, it#8, lines#24,
14003	clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
14004	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
14005	cvvis=\EO\Eq\EG\EwK4, dch1=\EN, dl1=\EM, ed=\EJ, el=\EK,
14006	home=\EH, ht=^I, il1=\EL,
14007	is2=\EO\Eq\EG\Ew\EJ\EY7\sK4\sMS\sKermit\s2.27\sfor\sthe
14008	    \sIBMPC\s3-17-85\n,
14009	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^, rc=\Ek,
14010	rmir=\EO, rmso=\Eq, sc=\Ej, smir=\E@, smso=\Ep,
14011# MS-DOS Kermit 2.27 with automatic margins
14012# From:	greg small <gts@populi.berkeley.edu> 3-17-85
14013msk227am|mskermit227am|UCB MS-DOS Kermit 2.27 with automatic margins,
14014	am,
14015	cvvis=\EO\Eq\EG\EvK5,
14016	is2=\EO\Eq\EG\Ev\EJ\EY7\sK5\sMS\sKermit\s2.27\s+automatic
14017	    \smargins\s3-17-85\n,
14018	use=msk227,
14019
14020# MS-DOS Kermit 2.27 UCB 227.14 for the IBM PC
14021# Automatic margins now default.  Use ansi <sgr> for highlights.
14022# Define function keys.
14023# (msk22714: removed obsolete ":kn#10:" -- esr)
14024# From: greg small <gts@populi.berkeley.edu> 3-17-85
14025msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC,
14026	am,
14027	bold=\E[1m, cvvis=\EO\Eq\EG\EvK6,
14028	is2=\EO\Eq\EG\Ev\EJ\EY7\sK6\sMS\sKermit\s2.27\sUCB\s227.14
14029	    \sIBM\sPC\s3-17-85\n,
14030	kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6,
14031	kf7=\E7, kf8=\E8, kf9=\E9, rev=\E[7m, rmso=\E[m, sgr0=\E[m,
14032	smso=\E[1m, use=ansi+sgrul, use=mskermit227,
14033
14034# This was designed for a VT320 emulator, but it is probably a good start
14035# at support for the VT320 itself.
14036# Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
14037# (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
14038vt320-k3|MS-Kermit 3.00's VT320 emulation,
14039	am, km, mir, msgr, xenl,
14040	cols#80, it#8, lines#49, pb#9600, vt#3,
14041	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14042	bel=^G, blink=\E[5m, bold=\E[1m, cmdch=\E, cr=\r, cub1=^H,
14043	cud1=\n, dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX,
14044	flash=\E[?5h$<100/>\E[?5l\E[?5h$<100/>\E[?5l\E[?5h$<100/>\E[
14045	      ?5l,
14046	ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\n,
14047	is2=\E>\E F\E[?1h\E[?7h\E[r\E[2$~, kbs=^H, kcub1=\EOD,
14048	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~, kf0=\E[21~,
14049	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
14050	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, mc0=\E[0i, mc4=\E[4i,
14051	mc5=\E[5i, nel=\r\n, rev=\E[7m, ri=\EM, rin=\E[%p1%dL,
14052	rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
14053	rs1=\E(B\E)B\E>\E\sF\E[4;20l\E[12h\E[?1;5;6;38;42l\E[?7;25h
14054	    \E[4i\E[?4i\E[m\E[r\E[2$~,
14055	sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
14056	smkx=\E[?1h\E=, tbc=\E[3g, tsl=\E[1$}\r\E[K,
14057	use=ecma+underline, use=ecma+standout, use=ansi+cup,
14058	use=ansi+csr, use=ansi+erase, use=ansi+idl,
14059	use=ansi+local, use=ansi+rca2, use=dec+sl,
14060	use=vt100+pf1-pf4, use=vt220+cvis,
14061
14062# From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
14063# ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
14064# (I removed a bogus boolean :mo: and added <msgr>, <smam>, <rmam> -- esr)
14065vt320-k311|DEC VT320 series as defined by kermit 3.11,
14066	am, eslok, hs, mir, msgr, xenl, xon,
14067	cols#80, it#8, lines#24, vt#3,
14068	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14069	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J, cr=\r,
14070	cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P,
14071	dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
14072	flash=\E[?5h$<100/>\E[?5l, fsl=\E[$}, ht=^I, hts=\EH,
14073	ich=\E[%p1%d@, il1=\E[L$<3/>, ind=\ED,
14074	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
14075	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
14076	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1,
14077	lf2=pf2, lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
14078	rf=/usr/share/tabset/vt100, ri=\EM, rmacs=^O,
14079	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rs1=\E[?3l,
14080	sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
14081	smkx=\E[?1h\E=, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
14082	use=ecma+underline, use=ecma+standout, use=ansi+csr,
14083	use=ansi+cup, use=ansi+idl, use=ansi+local,
14084	use=vt100+pf1-pf4, use=vt220+cvis,
14085
14086######## NON-ANSI TERMINAL EMULATIONS
14087#
14088
14089#### Avatar
14090#
14091# These entries attempt to describe Avatar, a terminal emulation used with
14092# MS-DOS bulletin-board systems.  It was designed to give ANSI-like
14093# capabilities, but with cheaper (shorter) control sequences.  Messy design,
14094# excessively dependent on PC idiosyncrasies, but apparently rather popular
14095# in the BBS world.
14096#
14097# No color support.  Avatar doesn't fit either of the Tektronix or HP color
14098# models that terminfo knows about.  An Avatar color attribute is the
14099# low 7 bits of the IBM-PC display-memory attribute.  Bletch.
14100#
14101# I wrote these entries while looking at the Avatar spec.  I don't have
14102# the facilities to test them.  Let me know if they work, or don't.
14103#
14104# Avatar escapes not used by these entries (because maybe you're smarter
14105# and more motivated than I am and can figure out how to wrap terminfo
14106# around some of them, and because they are weird enough to be funny):
14107#				level 0:
14108# ^L		-- clear window/reset current attribute to default
14109# ^V^A%p1%c	-- set current color attribute, parameter decodes as follows:
14110#
14111#      bit:         6   5   4   3   2   1   0
14112#                   |       |   |   |       |
14113#                   +---+---+   |   +---+---+
14114#                       |       |       |
14115#                       |       |  foreground color
14116#                       |  foreground intensity
14117#                  background color
14118#				level 0+:
14119# ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) up by p1 lines
14120# ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) down by p1 lines
14121# ^V^L%p1%c%p2%c%p3%c		-- clear p2 lines and p3 cols w/attr %p1
14122# ^V^M%p1%c%p2%c%p3%c%p4%c	-- fill p3 lines & p4 cols w/char p2+attr %p1
14123# (^V^L and ^V^M set the current attribute as a side effect.)
14124# ^V ^Y <a> [...] <c>	-- repeat pattern. <a> specifies the number of bytes
14125#			   in the pattern, <c> the number of times the pattern
14126#			   should be repeated. If either value is 0, no-op.
14127#			   The pattern can contain Avatar console codes,
14128#			   including other ^V ^Y patterns.
14129#				level 1:
14130# ^V^O		-- clockwise mode on; turn print direction right each time you
14131#		   hit a window edge (yes, really).  Turned off by CR
14132# ^V^P		-- no-op
14133# ^V^Q%c	-- query the driver
14134# ^V^R		-- driver reset
14135# ^V^S		-- Sound tone (PC-specific)
14136# ^V^T			-- change highlight at current cursor position to %c
14137# ^V^U%p1%c%p2%c	-- highlight window <a> with attribute <b>
14138# ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
14139#			-- define window
14140#
14141# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
14142# (The <blink>/<bold>/<rev>/<smacs>/<smul>/<smso> capabilities exist only to
14143# tell ncurses that the corresponding highlights exist; it should use <sgr>,
14144# which is the only method that will actually work for multiple highlights.)
14145#
14146# Update by TD - 2004: half of this was inconsistent.  Found documentation
14147# and repaired most of the damage.  sgr0 is probably incorrect, but the
14148# available documentation gives no clues for a workable string.
14149avatar0|avatar terminal emulator level 0,
14150	am, bce, msgr,
14151	cols#80, it#8, lines#25,
14152	blink=^V^B, bold=^V^A^P, cr=\r, cub1=^V^E, cud1=^V^D,
14153	cuf1=^V^F, cup=\026\010%p1%c%p2%c, cuu1=^V^C, el=^V^G,
14154	ind=\n, invis=^V^A\0, rep=\031%p1%c%p2%c, rev=^V^Ap,
14155	rmacs@, rs2=^L,
14156	sgr=%?%p1%p2%|%p3%|%p6%|%p7%|%t\026\001%?%p7%t%{128}%e%{0}%?
14157	    %p1%t%{112}%|%;%?%p2%t%{1}%|%;%?%p3%t%{112}%|%;%?%p6%t
14158	    %{16}%|%;%;%c%;%?%p4%t\026\002%;,
14159	sgr0=^V^A^G, smacs@, smso=^V^Ap, smul=^V^A^A,
14160	use=klone+acs,
14161# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
14162avatar0+|avatar terminal emulator level 0+,
14163	dch1=^V^N, rmir=\026\n\0\0\0\0, smir=^V^I, use=avatar0,
14164# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
14165avatar|avatar1|avatar terminal emulator level 1,
14166	civis=^V'^B, cnorm=^V'^A, cvvis=^V^C, dl1=^V-, il1=^V+,
14167	rmam=^V", rmir=^V^P, smam=^V$, use=avatar0+,
14168
14169#### RBcomm
14170#
14171# RBComm is a lean and mean terminal emulator written by the Interrupt List
14172# maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
14173# '90s), especially in the BBS world, and still has some loyal users due to
14174# its very small memory footprint and to a cute macro language.
14175rbcomm|IBM PC with RBcomm and EMACS keybindings,
14176	am, bw, mir, msgr, xenl,
14177	cols#80, it#8, lines#25,
14178	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=^L, cr=\r,
14179	cub1=^H, cud1=^C, cuf1=^B,
14180	cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^, dch1=^W,
14181	dl=\E[%p1%dM, dl1=^Z, ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I,
14182	il=\E[%p1%dL, il1=^K, ind=\ED, invis=\E[8m,
14183	is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H,
14184	kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=\r\ED,
14185	rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=, rmir=^],
14186	rmkx=\E>, rmso=^U, rmul=^U,
14187	rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sgr0=\E[m, smcup=,
14188	smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T, use=ansi+csr,
14189	use=vt220+cvis,
14190
14191rbcomm-nam|IBM PC with RBcomm without autowrap,
14192	am@,
14193	cud1=\n, ind=\n,
14194	is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kcub1=^H,
14195	kcud1=\n, nel=\r\n, use=rbcomm,
14196rbcomm-w|IBM PC with RBcomm in 132 column mode,
14197	cols#132,
14198	cud1=\n, ind=\n,
14199	is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kcub1=^H,
14200	kcud1=\n, nel=\r\n, use=rbcomm,
14201
14202######## LCD DISPLAYS
14203#
14204
14205#### Matrix Orbital
14206# from: Eric Z. Ayers  (eric@ale.org)
14207#
14208# Matrix Orbital 20x4 LCD display
14209# Command Character is 0xFE (decimal 254, octal 376)
14210#
14211# On this device, cursor addressability isn't possible.  The LCD expects:
14212#      0xfe G <col> <row>
14213#      for cup: %p1 == row and %p2 is column
14214#
14215# This line:
14216#	cup=\376G%p2%c%p1%c
14217# LOOKS like it will work, but sometimes only one of the two numbers is sent.
14218# See the terminfo(5) man page commented regarding 'Terminals which use "%c"'.
14219#
14220# Alas, there is no cursor upline capability on this display.
14221#
14222# These entries add some 'sanity stuff' to the clear function.  That is, it
14223# does a 'clear' and also turns OFF auto scroll, turns ON Auto Line Wrapping,
14224# and turns off the cursor blinking and stuff like that.
14225#
14226# NOTE: calling 'beep' turns on the backlight (bell)
14227# NOTE: calling 'flash' turns it on and back off (visual bell)
14228#
14229MtxOrb|generic Matrix Orbital LCD display,
14230	bel=\376B\001, clear=\376X\376C\376R\376K\376T,
14231	cnorm=\376K\376T, cub1=\376L, cuf1=\376M,
14232	flash=\376B\001$<200>\376F, home=\376H,
14233MtxOrb204|20x4 Matrix Orbital LCD display,
14234	cols#20, lines#4, use=MtxOrb,
14235MtxOrb162|16x2 Matrix Orbital LCD display,
14236	cols#16, lines#2, use=MtxOrb,
14237# The end
14238
14239######## OLDER TERMINAL TYPES
14240#
14241# This section is devoted to older commercial terminal brands that are now
14242# discontinued, but known to be still in use or represented by emulations.
14243#
14244
14245#### AT&T (att, tty)
14246#
14247# This section also includes Teletype-branded VDTs.
14248#
14249# The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
14250# Boundless Technologies); for details, see the header comment on the ADDS
14251# section.
14252#
14253# These are AT&T's official terminfo entries.  All-caps aliases have been
14254# removed.
14255#
14256att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode,
14257	am, eo, mir, msgr, xon,
14258	cols#80, it#8, lines#24,
14259	bel=^G, cr=\r, cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P,
14260	el1=\E[1K, ht=^I, ich=\E[%p1%d@, ind=\n, kcbt=\E[Z,
14261	kclr=\E[J, kdch1=\E[P, kdl1=\E[M, kf1=\E[1r, kf10=\E[10r,
14262	kf11=\E[11r, kf12=\E[12r, kf13=\E[13r, kf14=\E[14r,
14263	kf15=\E[15r, kf16=\E[16r, kf2=\E[2r, kf3=\E[3r, kf4=\E[4r,
14264	kf5=\E[5r, kf6=\E[6r, kf7=\E[7r, kf8=\E[8r, kf9=\E[9r,
14265	kich1=\E[@, kil1=\E[L, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
14266	rev=\E[7m, rmir=\E[4l, sgr0=\E[m, smir=\E[4h,
14267	use=ansi+arrows, use=ansi+cpr, use=ansi+cup,
14268	use=ansi+erase, use=ansi+idl, use=ansi+local,
14269	use=ansi+sgrso,
14270
14271att2350|AT&T 2350 Video Information Terminal 80 column mode,
14272	mc0@, mc4@, mc5@, use=att2300,
14273
14274# Must setup RETURN KEY - CR, REC'VD LF - INDEX.
14275# Seems upward compatible with VT100, plus ins/del line/char.
14276# On sgr, the protection parameter is ignored.
14277# No check is made to make sure that only 3 parameters are output.
14278#	standout= reverse + half-intensity = 3 | 5.
14279#	bold= reverse + underline = 2 | 3.
14280# note that half-bright blinking doesn't look different from normal blinking.
14281# NOTE:you must program the function keys first, label second!
14282# (att4410: a BSD entry has been seen with the following capabilities:
14283# <is2=\E[?6l>, <kf1=\EOc>, <kf2=\EOd>, <kf3=\EOe>, <kf4=\EOg>,
14284# <kf6=\EOh>, <kf7=\EOi>, <kf8=\EOj>, -- esr)
14285att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
14286	am, hs, mir, msgr, xon,
14287	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
14288	acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyz
14289	     z{{||}}~~,
14290	bel=^G, bold=\E[2;7m, cr=\r, cub1=^H, dch1=\E[P, dim=\E[2m,
14291	fsl=\E8, ht=^I, ich1=\E[@, ind=\n, is1=\E[?3l\E)0,
14292	is3=\E[1;03q\s\s\sf1\s\s\s\s\s\s\s\s\s\s\s\EOP\E[2;03q\s\s
14293	    \sf2\s\s\s\s\s\s\s\s\s\s\s\EOQ\E[3;03q\s\s\sf3\s\s\s\s
14294	    \s\s\s\s\s\s\s\EOR\E[4;03q\s\s\sf4\s\s\s\s\s\s\s\s\s\s
14295	    \s\EOS\E[5;03q\s\s\sf5\s\s\s\s\s\s\s\s\s\s\s\EOT\E[6;03q
14296	    \s\s\sf6\s\s\s\s\s\s\s\s\s\s\s\EOU\E[7;03q\s\s\sf7\s\s
14297	    \s\s\s\s\s\s\s\s\s\EOV\E[8;03q\s\s\sf8\s\s\s\s\s\s\s\s
14298	    \s\s\s\EOW,
14299	kclr=\E[2J, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
14300	kll=\E[24;1H, ll=\E[24H, nel=\r\n,
14301	pfx=\E[%p1%1d;%p2%l%2.2dq\s\s\sf%p1%1d\s\s\s\s\s\s\s\s\s\s
14302	    \s%p2%s,
14303	pln=\E[%p1%d;00q%p2%:-16s, ri=\EM, rmacs=^O,
14304	rs2=\Ec\E[?3l\E[2;0y,
14305	sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
14306	    %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
14307	sgr0=\E[m\017, smacs=^N, tsl=\E7\E[25;%p1%{1}%+%dH,
14308	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
14309	use=ansi+erase, use=ansi+idl1, use=ansi+local1,
14310	use=ansi+sgrbold, use=vt100+pf1-pf4,
14311
14312att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1,
14313	cols#132, wsl#132,
14314	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att5410v1,
14315
14316att4410|att5410|tty5410|AT&T 4410/5410 80 columns - version 2,
14317	OTbs,
14318	pfx=\E[%p1%d;%p2%l%02dq   f%p1%d           %p2%s,
14319	use=att5410v1,
14320
14321att5410-w|att4410-w|4410-w|tty5410-w|5410-w|AT&T 4410/5410 in 132 column mode,
14322	cols#132, wsl#132,
14323	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att4410,
14324
14325# 5410 in terms of a VT100
14326# (v5410: added <rmam>/<smam> based on init string -- esr)
14327v5410|att5410 in terms of a VT100,
14328	am, mir, msgr, xon,
14329	cols#80, it#8, lines#24, vt#3,
14330	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14331	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
14332	clear=\E[H\E[J$<50>, cr=\r, cub1=^H, cud1=\n,
14333	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
14334	cuu1=\E[A$<2>, dch1=\E[P, ed=\E[J$<50>, el=\E[K$<3>,
14335	el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
14336	ich1=\E[@, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB,
14337	kcuf1=\EOC, kcuu1=\EOA, rev=\E[7m$<2>, ri=\EM$<5>,
14338	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
14339	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
14340	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
14341	    %;m%?%p9%t\016%e\017%;$<2>,
14342	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
14343	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
14344	use=ansi+csr, use=ansi+idl1, use=decid+cpr,
14345	use=vt100+fnkeys,
14346
14347#
14348# Teletype Model 5420 -- A souped up 5410, with multiple windows,
14349# even! the 5420 has three modes: scroll, window or page mode
14350# this terminfo should work in scroll or window mode, but doesn't
14351# take advantage of any of the differences between them.
14352#
14353# Has memory below (2 lines!)
14354# 3 pages of memory (plus some spare)
14355# The 5410 sequences for <cup>, <cvvis>, <dch>, <dl>, <ech>, <flash>, <home>,
14356# <hpa>, <hts> would work for these, but these work in both scroll and window
14357# mode... Unset insert character so insert mode works
14358# <is1> sets 80 column mode,
14359# <is2> escape sequence:
14360# 1) turn off all fonts
14361# 2) function keys off, keyboard lock off, control display off,
14362#    insert mode off, erasure mode off,
14363# 3) full duplex, monitor mode off, send graphics off, nl on lf off
14364# 4) reset origin mode
14365# 5) set line wraparound
14366# 6) exit erasure mode, positional attribute mode, and erasure extent mode
14367# 7) clear margins
14368# 8) program ENTER to transmit ^J,
14369# We use \212 to program the ^J because a bare ^J will get translated by
14370# UNIX into a CR/LF. The enter key is needed for AT&T uOMS.
14371#     1      2            3              4     5     6    7  8
14372# <is3> set screen color to black,
14373# No representation in terminfo for the delete word key: kdw1=\Ed
14374# Key capabilities assume the power-up send sequence...
14375# This <rmcup> is not strictly necessary, but it helps maximize
14376# memory usefulness: <rmcup=\Ez>,
14377# Alternate sgr0:	<sgr0=\E[m\EW^O>,
14378# 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%;>,
14379# smkx programs the SYS PF keys to send a set sequence.
14380# It also sets up labels f1, f2, ..., f8, and sends edit keys.
14381# This string causes them to send the strings <kf1>-<kf8>
14382# when pressed in SYS PF mode.
14383# (att4415: I added <rmam>/<smam> based on the init string -- esr)
14384att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
14385	db,
14386	lm#78, wsl#55,
14387	clear=\E[x\E[J, cnorm=\E[11;0j, cub1=^H,
14388	cup=\E[%i%p1%d;%p2%dx, cvvis=\E[11;1j,
14389	ech=\E[%p1%ds\E[%p1%dD, flash=\E[?5h$<200>\E[?5l,
14390	home=\E[x, ich1@, indn=\E[%p1%dE, is1=\E[?3l$<100>,
14391	is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h
14392	    \E[4i\Ex\E[21;1j\212,
14393	is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
14394	kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc, kf2=\EOd,
14395	kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
14396	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
14397	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
14398	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?2i, mc4=\E[?9i,
14399	mc5=\E[?4i, mrcup=\E[%i%p1%d;%p2%dt,
14400	pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s,
14401	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV,
14402	rin=\E[%p1%dF, rmam=\E[?7l, rmkx=\E[19;0j\E[21;1j\212,
14403	rmln=\E|,
14404	sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
14405	    %|%p6%|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
14406	sgr0=\E[m\017, smam=\E[?7h, smkx=\E[19;1j\E[21;4j\Eent,
14407	smln=\E~, tsl=\E7\E[25;%p1%{8}%+%dH, use=ansi+idc,
14408	use=ansi+idl, use=ansi+inittabs, use=ansi+local,
14409	use=ansi+rca, use=att4410,
14410
14411att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols,
14412	cols#132, lm#54, wsl#97,
14413	is1=\E[?3h$<100>, use=att4415,
14414
14415att4415-rv|tty5420-rv|att5420-rv|AT&T 4415/5420 80 cols/rv,
14416	flash=\E[?5l$<200>\E[?5h, is3=\E[?5h, use=att4415,
14417
14418att4415-w-rv|tty5420-w-rv|att5420-w-rv|AT&T 4415/5420 132 cols/rv,
14419	cols#132, lm#54, wsl#97,
14420	flash=\E[?5l$<200>\E[?5h, is1=\E[?3h$<100>, is3=\E[?5h,
14421	use=att4415,
14422
14423# Note that this mode permits programming USER PF KEYS and labels
14424# However, when you program user pf labels you have to reselect
14425# user pf keys to make them appear!
14426att4415+nl|tty5420+nl|att5420+nl|generic AT&T 4415/5420 changes for not changing labels,
14427	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
14428	pfx=\E[%p1%d;%p2%l%02d;0;1q\s\s\sF%p1%d\s\s\s\s\s\s\s\s\s\s
14429	    \s%p2%s,
14430	pln=\E[%p1%d;0;0;1q%p2%:-16.16s,
14431
14432att4415-nl|tty5420-nl|att5420-nl|AT&T 4415/5420 without changing labels,
14433	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
14434	use=att4415,
14435
14436att4415-rv-nl|tty5420-rv-nl|att5420-rv-nl|AT&T 4415/5420 reverse video without changing labels,
14437	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
14438	use=att4415-rv,
14439
14440att4415-w-nl|tty5420-w-nl|att5420-w-nl|AT&T 4415/5420 132 cols without changing labels,
14441	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
14442	use=att4415-w,
14443
14444att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse without changing labels,
14445	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
14446	use=att4415-w-rv,
14447
14448att5420_2|AT&T 5420 model 2 80 cols,
14449	am, db, hs, mir, msgr, xon,
14450	cols#80, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
14451	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14452	cbt=\E[1Z, clear=\EH\EJ, cnorm=\E[11;0j, cr=\EG, cub1=^H,
14453	cud1=\E[1B, cuf1=\E[1C, cuu1=\E[1A, cvvis=\E[11;1j,
14454	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%ds\E[%p1%dD,
14455	ed=\E[0J, el=\E[0K, el1=\E[1K, flash=\E[?5h$<200>\E[?5l,
14456	fsl=\E8, ich=\E[%p1%d@, ich1=\E[@, ind=\n, indn=\E[%p1%dE,
14457	is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;0j\E[6;0j\E[7;0j
14458	    \E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j
14459	    \E[29;0j\E[1;24r,
14460	kbeg=\Et, kcbt=\E[Z, kclr=\E[2J, kdch1=\E[P, kdl1=\E[M,
14461	kel=\E[2K, kend=\Ez, kent=\n, kf1=\EOc, kf2=\EOd, kf3=\EOe,
14462	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
14463	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
14464	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
14465	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?;2i, mc4=\E[4i,
14466	mc5=\E[5i, mrcup=\E[%i%p1%d;%p2%dt, nel=\r\n,
14467	pfx=\E[%p1%d;%p2%l%02dq\s\s\sF%p1%d\s\s\s\s\s\s\s\s\s\s\s%p2
14468	    %s\E~,
14469	pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV, ri=\EM,
14470	rin=\E[%p1%dF, rmacs=^O, rmkx=\E[19;0j, rmln=\E|,
14471	rs2=\Ec\E[?3l\E[2;0y,
14472	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1
14473	    %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;%?%p8%t\EV%;,
14474	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1j, smln=\E~,
14475	tsl=\E7\E[25;%p1%{8}%+%dH, use=ansi+arrows,
14476	use=ansi+csr, use=ansi+cup, use=ansi+idl,
14477	use=ansi+inittabs, use=ansi+local, use=ansi+rca,
14478	use=ansi+sgrdim, use=decid+cpr,
14479
14480att5420_2-w|AT&T 5420 model 2 in 132 column mode,
14481	cols#132,
14482	is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;1j\E[6;0j\E[7;0j
14483	    \E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j
14484	    \E[29;0j\E[1;24r,
14485	use=att5420_2,
14486
14487att4418|att5418|AT&T 5418 80 cols,
14488	am, xon,
14489	cols#80, lines#24,
14490	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14491	bel=^G, blink=\E[5m, clear=\E[H\E[2J, cr=\r, dch=\E[%p1%dP,
14492	dch1=\E[1P, dim=\E[2m, ed=\E[0J, el=\E[0K, ich=\E[%p1%d@,
14493	ich1=\E[1@, il1=\E[1L, ind=\n, is1=\E[?3l,
14494	is2=\E)0\E?6l\E?5l, kclr=\E[%%, kcub1=\E@, kcud1=\EU,
14495	kcuf1=\EA, kcuu1=\ES, kent=\E[, kf1=\E[h, kf10=\E[m,
14496	kf11=\E[n, kf12=\E[o, kf13=\E[H, kf14=\E[I, kf15=\E[J,
14497	kf18=\E[K, kf19=\E[L, kf2=\E[i, kf20=\E[E, kf21=\E[_,
14498	kf22=\E[M, kf23=\E[N, kf24=\E[O, kf3=\E[j, kf6=\E[k,
14499	kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec, rc=\E8, rev=\E[7m,
14500	rmacs=^O, sc=\E7, sgr0=\E[m\017, smacs=^N, use=ansi+cup,
14501	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
14502	use=ansi+sgrul,
14503
14504att4418-w|att5418-w|AT&T 5418 132 cols,
14505	cols#132,
14506	is1=\E[?3h, use=att5418,
14507
14508att4420|tty4420|Teletype 4420,
14509	OTbs, da, db, eo, msgr, ul, xon,
14510	cols#80, lines#24, lm#72,
14511	bel=^G, clear=\EH\EJ, cr=\EG, cub1=\ED, cud1=\EB, cuf1=\EC,
14512	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
14513	dl1=\EM, ed=\EJ, el=\Ez, home=\EH, il1=\EL, ind=\EH\EM\EY7\s,
14514	kcbt=\EO, kclr=\EJ, kcub1=^H, kdch1=\EP, kdl1=\EM, kf0=\EU,
14515	kf3=\E@, khome=\EH, kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
14516	lf0=segment advance, lf3=cursor tab, rmdc@, rmso=\E~,
14517	rmul=\EZ, smdc@, smso=\E}, smul=\E\\, use=vt52+arrows,
14518
14519#  The following is a terminfo entry for the Teletype 4424
14520#  asynchronous keyboard-display terminal.  It supports
14521#  the vi editor.  The terminal must be set up as follows,
14522#
14523#	HIGHLIGHT DEFINITION	3-TONE
14524#	DISPLAY FUNCTION	GROUP III
14525#
14526#  The second entry below provides limited (a la adm3a)
14527#  operation under GROUP II.
14528#
14529#  This must be used with DISPLAY FUNCTION GROUP I or III
14530#	and HIGHLIGHT DEFINITION 3-TONE
14531# The terminal has either bold or blink, depending on options
14532#
14533# (att4424: commented out <smcup>=\E[1m, we don't need bright locked on -- esr)
14534att4424|tty4424|Teletype 4424,
14535	OTbs, am, xon,
14536	cols#80, lines#24,
14537	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14538	bel=^G, blink=\E3, bold=\E3, cbt=\EO, clear=\E[H\E[2J, cr=\r,
14539	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\EB, cuf1=\EC,
14540	cuu1=\EA, dch=\E[%p1%dP, dch1=\EP, dim=\EW, dl=\E[%p1%dM,
14541	dl1=\EM, ed=\EJ, el=\Ez, ht=^I, hts=\EH, ich=\E[%p1%d@,
14542	ich1=\E\^, il=\E[%p1%dL, il1=\EL, ind=\n, is2=\E[20l\E[?7h,
14543	kclr=\EJ, nel=\EE, rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~,
14544	rmul=\EZ,
14545	sgr=\EX\E~\EZ\E4\E(B%?%p1%p3%|%t\E}%;%?%p2%t\E\\%;%?%p4%p6%|
14546	    %t\E3%;%?%p5%t\EW%;%?%p9%t\E(0%;,
14547	sgr0=\EX\E~\EZ\E4\E(B, smacs=\E(0, smso=\E}, smul=\E\\,
14548	tbc=\EF, use=ansi+arrows, use=ansi+cup, use=ansi+local,
14549	use=vt100+pf1-pf4,
14550
14551att4424-1|tty4424-1|Teletype 4424 in display function group I,
14552	kclr@, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome@,
14553	use=att4424,
14554
14555# This entry is not one of AT&T's official ones, it was translated from the
14556# 4.4BSD termcap file.  The highlight strings are different from att4424.
14557# I have no idea why this is -- older firmware version, maybe?
14558# The following two lines are the comment originally attached to the entry:
14559# This entry appears to avoid the top line - I have no idea why.
14560# From: jwb Wed Mar 31 13:25:09 1982 remote from ihuxp
14561att4424m|tty4424m|Teletype 4424M,
14562	am, da, db, mir,
14563	cols#80, it#8, lines#23,
14564	bel=^G, clear=\E[2;H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
14565	cup=\E[%i%p1%2d;%p2%2dH\E[B, cuu1=\E[A, dch1=\EP,
14566	dl1=\EM, el=\E[K, ht=^I, ich1=\E\^, il1=\EL, ind=\n, ip=$<2/>,
14567	is2=\E[m\E[2;24r, nel=\r\n, ri=\ET, sgr0=\E[m,
14568	use=ansi+arrows, use=ansi+sgrso, use=ansi+sgrul,
14569	use=vt100+pf1-pf4,
14570
14571# The Teletype 5425 is really version 2 of the Teletype 5420. It
14572# is quite similar, except for some minor differences. No page
14573# mode, for example, so all of the <cup> sequences used above have
14574# to change back to what's being used for the 5410. Many of the
14575# option settings have changed their numbering as well.
14576#
14577# This has been tested on a preliminary model.
14578#
14579# (att5425: added <rmam>/<smam> based on the init string -- esr)
14580att5425|tty5425|att4425|AT&T 4425/5425,
14581	da, db, hs, mir, xenl, xon,
14582	lh#2, lm#78, lw#8, nlab#8, wsl#55,
14583	bold=\E[2;7m, cnorm=\E[12;0j, cub1=^H, cud1=\n,
14584	cup=\E[%i%p1%d;%p2%dH, cvvis=\E[12;1j, dch=\E[%p1%dP,
14585	dch1=\E[P, dim=\E[2m, ech=\E[%p1%ds\E[%p1%dD, el1=\E[1K,
14586	flash=\E[?5h$<200>\E[?5l, fsl=\E8, ich=\E[%p1%d@,
14587	indn=\E[%p1%dE, is1=\E<\E[?3l$<100>,
14588	is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h
14589	    \E[4i\Ex\E[25;1j\212,
14590	is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kclr=\E[J, kdch1=\E[P,
14591	kdl1=\E[M, kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc,
14592	kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi,
14593	kf8=\EOj, kich1=\E[4h, kil1=\E[L, kind=\E[T, kri=\E[S,
14594	ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i, nel=\r\n,
14595	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
14596	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, ri=\EM,
14597	rin=\E[%p1%dF, rmam=\E[?7l, rmir=\E[4l,
14598	rmkx=\E[21;0j\E[25;1j\212, rmln=\E|,
14599	rs2=\Ec\E[?3l\E[2;0y,
14600	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6
14601	    %|%t;7%;%?%p7%t;8%;m%?%p8%t\EV%;%?%p9%t\016%e\017%;,
14602	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h,
14603	smkx=\E[21;1j\E[25;4j\Eent\E~, smln=\E~,
14604	tsl=\E7\E[25;%p1%{8}%+%dH, use=ansi+arrows,
14605	use=ansi+csr, use=ansi+erase, use=ansi+idl,
14606	use=ansi+inittabs, use=ansi+local, use=ansi+rca,
14607	use=ansi+sgrbold, use=decid+cpr, use=vt100+4bsd,
14608
14609att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels,
14610	smkx=\E[21;1j\E[25;4j\Eent, use=att4425,
14611
14612att5425-w|att4425-w|tty5425-w|Teletype 4425/5425 in 132 column mode,
14613	cols#132, lm#54, wsl#97,
14614	is1=\E[?3h$<100>, use=tty5425,
14615
14616# (att4426: his had bogus capabilities: :ri=\EM:, :ri=\E[1U:.
14617# I also added <rmam>/<smam> -- esr)
14618att4426|tty4426|Teletype 4426S,
14619	am, da, db, xon,
14620	cols#80, lines#24, lm#48,
14621	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14622	bel=^G, bold=\E[5m, clear=\E[H\E[2J\E[1U\E[H\E[2J\E[1V,
14623	cr=\r, dch=\E[%p1%dP, dch1=\EP, ed=\E[J, el=\E[0K,
14624	hpa=\E[%p1%dG, ht=^I, hts=\E1, ich=\E[%p1%d@, ich1=\E\^,
14625	il1=\EL, ind=\n, is1=\Ec\E[?7h, is2=\E[m\E[1;24r, kbs=^H,
14626	kcbt=\EO, kclr=\E[2J, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
14627	khome=\E[H, kll=\E[24;1H, ll=\E[24H, nel=\r\n, rc=\E8,
14628	rev=\E[7m, ri=\ET, rmacs=\E(B, rmam=\E[?7l, rmso=\E[m,
14629	rs2=\Ec\E[?3l\E[2;0y, sc=\E7, sgr0=\E[m\E(B, smacs=\E(0,
14630	smam=\E[?7h, smso=\E[5m, tbc=\E[3g, vpa=\E[%p1%dd,
14631	use=ansi+cup, use=ansi+idl, use=ansi+local,
14632	use=ansi+sgrul, use=ecma+index, use=vt100+pf1-pf4,
14633	use=vt52+arrows,
14634
14635# Terminfo entry for the AT&T 510 A Personal Terminal
14636# Function keys 9 - 16 are available only after the
14637# screen labeled (soft keys/action blocks) are labeled.  Function key
14638# 9 corresponds to the leftmost touch target on the screen,
14639# function key 16 corresponds to the rightmost.
14640#
14641# This entry is based on one done by Ernie Rice at Summit, NJ and
14642# changed by Anne Gallup, Skokie, IL, ttrdc!anne
14643att510a|bct510a|AT&T 510A Personal Terminal,
14644	am, mir, msgr, xenl, xon,
14645	cols#80, lh#2, lines#24, lw#7, nlab#8,
14646	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
14647	bel=^G, blink=\E[5m, bold=\E[2;7m, civis=\E[11;0|,
14648	clear=\E[H\E[J, cnorm=\E[11;3|, cr=\r, cub1=^H,
14649	cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
14650	ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E(B\E)1, ff=^L, ind=\n,
14651	is1=\E(B\E)1\E[2l, is3=\E[21;1|\212, kLFT=\E[u,
14652	kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
14653	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd, kf11=\EOe,
14654	kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi, kf16=\EOj,
14655	kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf, kf7=\ENh,
14656	kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, mc0=\E[0i,
14657	mc4=\E[?8i, mc5=\E[?4i, nel=\EE, pln=\E[%p1%dp%p2%:-16s,
14658	rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E[19;0|, sc=\E7,
14659	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6
14660	    %|%t;7%;m%?%p9%t\016%e\017%;,
14661	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1|, use=ansi+cpr,
14662	use=ansi+cup, use=ansi+idl, use=ansi+local,
14663	use=ansi+sgrso, use=ansi+sgrul, use=ansi+tabs,
14664
14665# Terminfo entry for the AT&T 510 D Personal Terminal
14666# Function keys 9 through 16 are accessed by bringing up the
14667# system blocks.
14668# Function key 9 corresponds to the leftmost touch target on the screen,
14669# function key 16 corresponds to the rightmost.
14670#
14671# There are problems with soft key labeling.  These are due to
14672# strangenesses in the native terminal that are impossible to
14673# describe in a terminfo.
14674att510d|bct510d|AT&T 510D Personal Terminal,
14675	am, da, db, mir, msgr, xenl, xon,
14676	cols#80, lh#2, lines#24, lm#48, lw#7, nlab#8,
14677	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
14678	bel=^G, bold=\E[2;7m, clear=\E[H\E[J, cnorm=\E[11;3|,
14679	cr=\r, cub1=^H, cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P,
14680	dim=\E[2m, ed=\E[0J, el=\E[0K, el1=\E[1K, enacs=\E(B\E)1,
14681	ff=^L, ich=\E[%p1%d@, ind=\n, is1=\E(B\E)1\E[5;0|,
14682	is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
14683	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
14684	kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
14685	kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
14686	kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
14687	ll=\E#2, mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, mgc=\E:, nel=\EE,
14688	pln=\E[%p1%dp%p2%:-16s, rc=\E8, ri=\EM, rmacs=^O,
14689	rmir=\E[4l, rmkx=\E[19;0|, rmln=\E<, rmxon=\E[29;1|,
14690	rs2=\E[5;0|, sc=\E7,
14691	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6
14692	    %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
14693	sgr0=\E[m\017, smacs=^N, smgl=\E4, smgr=\E5, smir=\E[4h,
14694	smkx=\E[19;1|, smln=\E?, smxon=\E[29;0|, use=ansi+cpr,
14695	use=ansi+cup, use=ansi+idl, use=ansi+local, use=ansi+rep,
14696	use=ansi+sgrbold, use=ansi+tabs, use=ecma+index,
14697	use=ansi+rca,
14698
14699# (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
14700att500|att513|AT&T 513 using page mode,
14701	am, chts, mir, msgr, xenl, xon,
14702	cols#80, lh#2, lines#24, lw#8, nlab#8,
14703	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
14704	bel=^G, bold=\E[2;7m, cnorm=\E[11;0|, cr=\r,
14705	csr=%i\E[%p1%d;%p2%dr, cub1=^H, cud1=\n, cvvis=\E[11;1|,
14706	dch=\E[%p1%dP, dch1=\E[P$<1>, dim=\E[2m, el1=\E[1K,
14707	enacs=\E(B\E)1, ich=\E[%p1%d@, ind=\n, indn=\E[%p1%dE,
14708	is1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l,
14709	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
14710	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
14711	kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK,
14712	kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ,
14713	kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY,
14714	kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kcan=\EOw,
14715	kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd,
14716	kcrt=\EOn, kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0,
14717	kent=\Eent, kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe,
14718	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx,
14719	khlp=\EOm, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
14720	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
14721	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
14722	kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB,
14723	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, ll=\E#2,
14724	mc0=\E[?98l\E[0i, mc4=\E[?98l\E[?8i, mc5=\E[?98l\E[?4i,
14725	nel=\EE,
14726	pfkey=\E[%p1%d;%p2%l%d;3;0p\s\s\sF%p1%d\s\s\s\s\s\s\s\s\s\s
14727	      \s%p2%s,
14728	pfloc=\E[%p1%d;%p2%l%d;2;0p\s\s\sF%p1%d\s\s\s\s\s\s\s\s\s\s
14729	      \s%p2%s,
14730	pfx=\E[%p1%d;%p2%l%d;1;0p   F%p1%d           %p2%s,
14731	pln=\E[%p1%dp%p2%:-16s, rc=\E8, ri=\EM, rin=\E[%p1%dF,
14732	rmacs=^O, rmir=\E[4l, rmkx=\E[19;0|\E[21;1|\212,
14733	rmln=\E<,
14734	rs1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l\E[2;0|
14735	    \E[6;1|\E[8;0|\E[19;0|\E[1{\E[?99l,
14736	rs2=\E[5;0|, sc=\E7,
14737	sgr=\E[0%?%p1%p5%|%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
14738	    %|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
14739	sgr0=\E[m\017, smacs=^N, smir=\E[4h,
14740	smkx=\E[19;1|\E[21;4|\Eent, smln=\E?, use=ansi+arrows,
14741	use=ansi+cup, use=ansi+erase, use=ansi+idl,
14742	use=ansi+local, use=ansi+rca, use=ansi+rep,
14743	use=ansi+sgrbold, use=ansi+tabs, use=decid+cpr,
14744
14745# 01-07-88:
14746# printer must be set to EMUL ANSI to accept ESC codes
14747# <cuu1> stops at top margin
14748# <is1> sets cpi 10,lpi 6,form 66,left 1,right 132,top 1,bottom 66,font
14749#	and alt font ascii,wrap on,tabs cleared
14750# <is2> disables newline on LF,Emphasized off
14751# The <u0> capability sets form length
14752att5310|att5320|AT&T Model 53210 or 5320 matrix printer,
14753	xhpa, xvpa,
14754	bufsz#0x2000, cols#132, cps#120, it#8, lines#66, orc#10,
14755	orhi#100, orl#12, orvi#72,
14756	cpi=%?%p1%{10}%=%t\E[w%e%p1%{12}%=%t\E[2w%e%p1%{5}%=%t\E[5w
14757	    %e%p1%{13}%=%p1%{14}%=%O%t\E[3w%e%p1%{16}%=%p1%{17}%=%O
14758	    %t\E[4w%e%p1%{6}%=%t\E[6w%e%p1%{7}%=%t\E[7w%e%p1%{8}%=%t
14759	    \E[8w%;,
14760	cr=\r,
14761	csnm=%?%p1%{0}%=%tusascii%e%p1%{1}%=%tenglish%e%p1%{2}%=%tfi
14762	     nnish%e%p1%{3}%=%tjapanese%e%p1%{4}%=%tnorwegian%e%p1
14763	     %{5}%=%tswedish%e%p1%{6}%=%tgermanic%e%p1%{7}%=%tfrench
14764	     %e%p1%{8}%=%tcanadian_french%e%p1%{9}%=%titalian%e%p1
14765	     %{10}%=%tspanish%e%p1%{11}%=%tline%e%p1%{12}%=%tsecurit
14766	     y%e%p1%{13}%=%tebcdic%e%p1%{14}%=%tapl%e%p1%{15}%=%tmos
14767	     aic%;,
14768	cud=\E[%p1%de, cud1=\n, cuf=\E[%p1%da, cuf1=\s, cuu1=\EM,
14769	ff=^L, hpa=\E[%p1%d`, ht=^I, is1=\Ec, is2=\E[20l\r,
14770	lpi=%?%p1%{2}%=%t\E[4z%e%p1%{3}%=%t\E[5z%e%p1%{4}%=%t\E[6z%e
14771	    %p1%{6}%=%t\E[z%e%p1%{8}%=%t\E[2z%e%p1%{12}%=%t\E[3z%;,
14772	rshm=\E[m,
14773	scs=%?%p1%{0}%=%t\E(B%e%p1%{1}%=%t\E(A%e%p1%{2}%=%t\E(C%e%p1
14774	    %{3}%=%t\E(D%e%p1%{4}%=%t\E(E%e%p1%{5}%=%t\E(H%e%p1%{6}
14775	    %=%t\E(K%e%p1%{7}%=%t\E(R%e%p1%{8}%=%t\E(Q%e%p1%{9}%=%t
14776	    \E(Y%e%p1%{10}%=%t\E(Z%e%p1%{11}%=%t\E(0%e%p1%{12}%=%t
14777	    \E(1%e%p1%{13}%=%t\E(3%e%p1%{14}%=%t\E(8%e%p1%{15}%=%t
14778	    \E(}%;,
14779	smgbp=\E[;%p1%dr, smglp=\E[%{1}%p1%+%ds,
14780	smgrp=\E[;%{1}%p1%+%ds, smgtp=\E[%p1%dr, sshm=\E[5m,
14781	u0=\E[%p1%dt, vpa=\E[%p1%dd,
14782
14783# Teletype 5620, firmware version 1.1 (8;7;3) or earlier from BRL
14784# The following SET-UP modes are assumed for normal operation:
14785#	CR_DEF=CR	NL_DEF=INDEX	DUPLEX=FULL
14786# Other SET-UP modes may be set for operator convenience or communication
14787# requirements.  This termcap description is for the Resident Terminal Mode.
14788# No delays specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
14789# The BRL entry also said: UNSAFE :ll=\E[70H:
14790att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
14791	am, xon,
14792	cols#88, it#8, lines#70, vt#3,
14793	bel=^G, cr=\r, cub1=^H, cud1=\n, dch=\E[%p1%dP, dch1=\E[P,
14794	ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\n, kclr=\E[2J,
14795	kll=\E[70;1H, nel=\r\n, rc=\E8, ri=\E[T, rs1=\Ec, sc=\E7,
14796	use=ansi+arrows, use=ansi+cup, use=ansi+erase,
14797	use=ansi+idl, use=ansi+local1, use=ecma+index,
14798
14799# 5620 terminfo  (2.0 or later ROMS with char attributes)
14800# The following SET-UP modes are assumed for normal operation:
14801#	DUPLEX=FULL	GEN_FLOW=ON	NEWLINE=INDEX	RETURN=CR
14802# Other SET-UP modes may be set for operator convenience or communication
14803# requirements.  This termcap description is for Resident Terminal Mode.  No
14804# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
14805# assumptions: <ind> (scroll forward one line) is only done at screen bottom
14806# Be aware that older versions of the dmd have a firmware bug that affects
14807# parameter defaulting; for this terminal, the 0 in \E[0m is not optional.
14808# <msgr> is from an otherwise inferior BRL for this terminal.  That entry
14809# also has <ll>=\E[70H commented out and marked unsafe.
14810# For more, see the 5620 FAQ maintained by David Breneman <daveb@dgtl.com>.
14811att5620|dmd|tty5620|ttydmd|5620|AT&T 5620 terminal 88 columns,
14812	OTbs, am, msgr, npc, xon,
14813	cols#88, it#8, lines#70,
14814	bel=^G, bold=\E[2m, cr=\r, cub1=^H, dch=\E[%p1%dP, dch1=\E[P,
14815	dim=\E[2m, ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S,
14816	kclr=\E[2J, kll=\E[70;1H, nel=\n,
14817	pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\E[T,
14818	rmso=\E[0m, rmul=\E[0m, rs1=\Ec, sc=\E7, sgr0=\E[0m,
14819	smso=\E[7m, smul=\E[4m, use=ansi+arrows, use=ansi+cup,
14820	use=ansi+erase, use=ansi+idl, use=ansi+local1,
14821	use=ecma+index,
14822
14823att5620-24|tty5620-24|dmd-24|Teletype dmd 5620 in a 24x80 layer,
14824	lines#24, use=att5620,
14825att5620-34|tty5620-34|dmd-34|Teletype dmd 5620 in a 34x80 layer,
14826	lines#34, use=att5620,
14827# 5620 layer running the "S" system's downloaded graphics handler:
14828att5620-s|tty5620-s|layer|vitty|AT&T 5620 S layer,
14829	OTbs, OTpt, am,
14830	cols#80, it#8, lines#72,
14831	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n,
14832	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=^K, dl1=\ED,
14833	el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=\n, kclr=\E[2J,
14834	khome=\E[H, kll=\E[70;1H, use=ansi+arrows,
14835
14836# Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
14837#
14838# Entries for <kf29> thru <kf46> refer to the alternate keypad mode
14839# keys:  = * / + 7 8 9 - 4 5 6 , 1 2 3 0 . ENTER
14840att605|AT&T 605 80 column 102key keyboard,
14841	am, eo, xon,
14842	cols#80, lines#24, lw#8, nlab#8, wsl#80,
14843	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14844	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r, cub1=^H,
14845	cup=\E[%i%p1%d;%p2%dH, dim=\E[2m, dl=\E[%p1%dM,
14846	el1=\E[1K, fsl=\E8, ht=^I, ind=\n, invis=\E[8m,
14847	is1=\E[8;0|\E[?\E[13;20l\E[?\E[12h, is2=\E[m\017,
14848	kLFT=\E[ A, kRIT=\E[ @, kcbt=\E[Z, kclr=\E[2J, kdch1=\E[P,
14849	kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, kf11=\ENq,
14850	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
14851	kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
14852	kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
14853	kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
14854	kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
14855	kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
14856	kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
14857	kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
14858	kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@, kil1=\E[L,
14859	kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H, mc4=\E[?4i,
14860	mc5=\E[?5i, nel=\EE,
14861	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
14862	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
14863	rmacs=^O, rmln=\E[2p, rs2=\Ec\E[?3l, sc=\E7, sgr0=\E[m\017,
14864	smacs=\E)0\016, smln=\E[p, tsl=\E7\E[25;%i%p1%dx,
14865	use=ansi+arrows, use=ansi+cpr, use=ansi+erase,
14866	use=ansi+idc, use=ansi+idl1, use=ansi+local1,
14867	use=ansi+sgrso, use=ansi+sgrul,
14868
14869att605-pc|AT&T 605 in pc term mode,
14870	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
14871	     \263,
14872	cub1=\E[D, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
14873	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
14874	kf9=\E[U, knp=\E[G, kpp=\E[I, rmsc=\E[50;0|$<400>,
14875	smsc=\E[?11l\E[50;1|$<250>, xoffc=g, xonc=e, use=att605,
14876att605-w|AT&T 605-w 132 column 102 key keyboard,
14877	cols#132, wsl#132,
14878	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0, use=att605,
14879# (att610: I added <rmam>/<smam> based on the init string.  I also
14880# added <indn> and <rin> because the BSD file says the att615s have them,
14881# and the 615 is like a 610 with a big keyboard, and most of their other
14882# smart terminals support the same sequence -- esr)
14883att610|AT&T 610; 80 column; 98key keyboard,
14884	am, eslok, hs, mir, msgr, xenl, xon,
14885	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
14886	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14887	bel=^G, cbt=\E[Z, cr=\r, cub1=^H, cvvis=\E[?12;25h,
14888	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, el1=\E[1K,
14889	flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I, ich=\E[%p1%d@,
14890	ind=\ED,
14891	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0,
14892	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A,
14893	kcbt=\E[Z, kclr=\E[2J, kf1=\EOc, kf10=\ENp, kf11=\ENq,
14894	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe,
14895	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo,
14896	kind=\E[S, kri=\E[T, ll=\E[24H, mc4=\E[?4i, mc5=\E[?5i,
14897	nel=\EE,
14898	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
14899	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, ri=\EM, rmacs=^O,
14900	rmam=\E[?7l, rmir=\E[4l, rmln=\E[2p, rs2=\Ec\E[?3l,
14901	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
14902	    %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
14903	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
14904	smln=\E[p, tsl=\E7\E[25;%i%p1%dx, use=ansi+arrows,
14905	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
14906	use=ansi+local, use=ansi+sgrbold, use=decid+cpr,
14907	use=ecma+index, use=att610+cvis,
14908
14909att610-w|AT&T 610; 132 column; 98key keyboard,
14910	cols#132, wsl#132,
14911	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
14912	use=att610,
14913
14914att610-103k|AT&T 610; 80 column; 103key keyboard,
14915	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
14916	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
14917	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
14918	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
14919	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
14920	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
14921	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\r,
14922	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf9@, kfnd=\EOx,
14923	khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi, kmsg=\EOl,
14924	knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V,
14925	kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, kres=\EOq,
14926	krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB, ksav=\EOo,
14927	kslt=\ENI, kspd=\EOp, kund=\EOs, use=att610,
14928att610-103k-w|AT&T 610; 132 column; 103key keyboard,
14929	cols#132, wsl#132,
14930	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
14931	use=att610-103k,
14932att615|AT&T 615; 80 column; 98key keyboard,
14933	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
14934	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
14935	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
14936	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
14937	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
14938	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
14939	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610,
14940att615-w|AT&T 615; 132 column; 98key keyboard,
14941	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
14942	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
14943	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
14944	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
14945	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
14946	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
14947	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610-w,
14948att615-103k|AT&T 615; 80 column; 103key keyboard,
14949	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k,
14950att615-103k-w|AT&T 615; 132 column; 103key keyboard,
14951	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k-w,
14952# (att620: I added <rmam>/<smam> based on the init string and
14953# <rin>/<indn> from a BSD termcap -- esr)
14954att620|AT&T 620; 80 column; 98key keyboard,
14955	am, eslok, hs, mir, msgr, xenl, xon,
14956	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
14957	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14958	bel=^G, cbt=\E[Z, cr=\r, cub1=^H, cvvis=\E[?12;25h,
14959	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, el1=\E[1K,
14960	flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I, ich=\E[%p1%d@,
14961	ind=\ED,
14962	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h,
14963	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @,
14964	kcbt=\E[Z, kclr=\E[2J, kf1=\EOc, kf10=\ENp, kf11=\ENq,
14965	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
14966	kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
14967	kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
14968	kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
14969	kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
14970	kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
14971	kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
14972	kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
14973	kf7=\EOi, kf8=\EOj, kf9=\ENo, kind=\E[S, kri=\E[T, ll=\E[24H,
14974	mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
14975	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
14976	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, ri=\EM,
14977	rmacs=\E(B\017, rmam=\E[?7l, rmir=\E[4l, rmln=\E[2p,
14978	rs2=\Ec\E[?3l,
14979	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
14980	    %|%t;7%;%?%p7%t;8%;m%?%p9%t\E)0\016%e\E(B\017%;,
14981	sgr0=\E[m\E(B\017, smacs=\E)0\016, smam=\E[?7h,
14982	smir=\E[4h, smln=\E[p, tsl=\E7\E[25;%i%p1%dx,
14983	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
14984	use=ansi+erase, use=ansi+idl, use=ansi+local,
14985	use=ansi+sgrbold, use=decid+cpr, use=ecma+index,
14986	use=att610+cvis,
14987
14988att620-w|AT&T 620; 132 column; 98key keyboard,
14989	cols#132, wsl#132,
14990	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
14991	use=att620,
14992att620-103k|AT&T 620; 80 column; 103key keyboard,
14993	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
14994	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
14995	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
14996	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
14997	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
14998	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
14999	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\r,
15000	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@,
15001	kf18@, kf19@, kf20@, kf21@, kf22@, kf23@, kf24@, kf25@, kf26@, kf27@,
15002	kf28@, kf29@, kf30@, kf31@, kf32@, kf33@, kf34@, kf35@, kf36@, kf37@,
15003	kf38@, kf39@, kf40@, kf41@, kf42@, kf43@, kf44@, kf45@, kf46@, kf9@,
15004	kfnd=\EOx, khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi,
15005	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
15006	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
15007	kres=\EOq, krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB,
15008	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, use=att620,
15009
15010att620-103k-w|AT&T 620; 132 column; 103key keyboard,
15011	cols#132, wsl#132,
15012	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
15013	use=att620-103k,
15014
15015# AT&T (formerly Teletype) 630 Multi-Tasking Graphics terminal
15016# The following SETUP modes are assumed for normal operation:
15017#	Local_Echo=Off	Gen_Flow=On	Return=CR	Received_Newline=LF
15018#	Font_Size=Large		Non-Layers_Window_Cols=80
15019#				Non-Layers_Window_Rows=60
15020# Other SETUP modes may be set for operator convenience or communication
15021# requirements.  Some capabilities assume a printer attached to the Aux EIA
15022# port.  This termcap description is for the Fixed Non-Layers Window.  No
15023# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
15024# (att630: added <ich1>, <blink> and <dim> from a BSD termcap file -- esr)
15025att630|AT&T 630 windowing terminal,
15026	OTbs, am, da, db, mir, msgr, npc, xon,
15027	cols#80, it#8, lines#60, lm#0,
15028	bel=^G, blink=\E[5m, cbt=\E[Z, cr=\r, cub1=^H, dim=\E[2m,
15029	el1=\E[1K, ht=^I, ind=\ED, is2=\E[m, kcbt=\E[Z, kclr=\E[2J,
15030	kdch1=\E[P, kdl1=\E[M, kent=\r, kf10=\ENp, kf11=\ENq,
15031	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv,
15032	kf17=\ENw, kf18=\ENx, kf19=\ENy, kf20=\ENz, kf21=\EN{,
15033	kf22=\EN|, kf23=\EN}, kf24=\EN~, kf9=\ENo, kich1=\E[@,
15034	kil1=\E[L, mc4=\E[?4i, mc5=\E[?5i, nel=\r\n,
15035	pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\EM,
15036	rs2=\Ec, sc=\E7,
15037	sgr=\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%p4%|%t;7
15038	    %;m,
15039	sgr0=\E[m, use=ansi+arrows, use=ansi+cpr, use=ansi+cup,
15040	use=ansi+erase, use=ansi+idc, use=ansi+idl,
15041	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
15042	use=ecma+index,
15043
15044att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
15045	lines#24, use=att630,
15046
15047# This is the att700 entry for 700 native emulation of the AT&T 700
15048# terminal.  Comments are relative to changes from the 605V2 entry and
15049# att730 on which the entry is based.  Comments show the terminfo
15050# capability name, termcap name, and description.
15051#
15052# Here is what's going onm in the init string:
15053#	ESC [ 50;4|	set 700 native mode (really is 605)
15054# x	ESC [ 56;ps|	set lines to 24: ps=0; 40: ps=1 (plus status line)
15055#	ESC [ 53;0|	set GenFlow to Xon/Xoff
15056#	ESC [ 8 ;0|	set CR on NL
15057# x	ESC [ ? 3 l/h	set workspace: 80 col(l); 132 col(h)
15058#	ESC [ ? 4 l	jump scroll
15059#	ESC [ ? 5 l/h	video: normal (l); reverse (h)
15060#	ESC [ ?13 l	Labels on
15061#	ESC [ ?15 l	parity check = no
15062#	ESC [ 13 l	monitor mode off
15063#	ESC [ 20 l	LF on NL (not CRLF on NL)
15064#	ESC [ ? 7 h	autowrap on
15065#	ESC [ 12 h	local echo off
15066#	ESC ( B		GO = ASCII
15067#	ESC ) 0		G1 = Special Char & Line Drawing
15068#	ESC [ ? 31 l	Set 7 bit controls
15069#
15070# Note: Most terminals, especially the 600 family use Reverse Video for
15071# standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
15072# Assume we should stay with reverse video for 70..  However, the 605V2 exits
15073# standout mode with \E[m (all normal attributes).  The 730 entry simply
15074# exits reverse video which would leave other current attributes intact.  It
15075# was assumed the 730 entry to be more correct so rmso has changed.  The
15076# 605V2 has no sequences to turn individual attributes off, thus its setting
15077# and the rmso/smso settings from the 730.
15078#
15079# Note: For the same reason as above in rmso I changed exit under-score mode
15080# to specifically turn off underscore, rather than return to all normal
15081# attributes
15082#
15083# Note: The following pkey_xmit is taken from the 605V2 which contained the
15084# capability as pfxl.  It was changed here to pfx since pfxl
15085# will only compile successfully with Unix 4.0 tic.  Also note that pfx only
15086# allows strings to be parameters and label values must be programmed as
15087# constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
15088# and strings to be parameters.  The 605V2 pfx entry should be examined later
15089# in this regard. For reference the 730 pfxl entry is shown here for comparison
15090# 730 pfx entry:
15091#     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
15092# SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
15093#
15094# (for 4.0 tic)
15095#     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
15096#
15097# (for <4.0 tic)
15098#     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
15099#
15100# From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
15101#
15102# Port1 Interface
15103#
15104# modular 10 pin Connector
15105# Left side       Right side
15106# Pin 1 2 3 4 5 6 7 8 9 10
15107#
15108#        Key (notch) at bottom
15109#
15110# Pin    1 DSR
15111#        3 DCD
15112#        4 DTR
15113#        5 Sig Ground
15114#        6 RD
15115#        7 SD
15116#        8 CTS
15117#        9 RTS
15118#        10 Frame Ground
15119#
15120# The manual is 189 pages and is loaded with details about the escape codes,
15121# etc..... Available from AT&T CIC 800-432-6600...
15122# ask for Document number 999-300-660..
15123#
15124att700|AT&T 700 24x80 column display w/102key keyboard,
15125	am, eslok, hs, mir, msgr, xenl, xon,
15126	cols#80, lh#2, lines#24, lw#8, nlab#8, wsl#80,
15127	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15128	bel=^G, cr=\r, cub1=^H, cvvis=\E[?12;25h, dch=\E[%p1%dP,
15129	dch1=\E[P, dim=\E[2m, el1=\E[1K, enacs=\E(B\E)0,
15130	flash=\E[?5h$<200>\E[?5l, fln=4\,4, fsl=\E8,
15131	ich=\E[%p1%d@, ind=\ED,
15132	is2=\E[50;4|\E[53;0|\E[8;0|\E[?4;13;15l\E[13;20l\E[?7h\E[12h
15133	    \E(B\E)0\E[?31l\E[0m\017,
15134	is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kcbt=\E[Z,
15135	kclr=\E[2J, kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc,
15136	kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
15137	kf15=\EOC, kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG,
15138	kf2=\EOd, kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO,
15139	kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT,
15140	kf29=\EOq, kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt,
15141	kf33=\EOu, kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy,
15142	kf38=\EOu, kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq,
15143	kf42=\EOr, kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM,
15144	kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@,
15145	kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H, nel=\EE,
15146	pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t\s\s\sF%p1%1d\s\s\s\s\s
15147	    \s\s\s\s\s\s%;%p2%s,
15148	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, ri=\EM, rmacs=^O,
15149	rmir=\E[4l, rmln=\E[2p, rmxon=\E[53;3|,
15150	rs1=\Ec\E[?3;5l\E[56;0|,
15151	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
15152	    %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
15153	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p,
15154	smxon=\E[53;0|, tsl=\E7\E[99;%i%p1%dx,
15155	use=ecma+underline, use=ecma+standout, use=ansi+arrows,
15156	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
15157	use=ansi+inittabs, use=ansi+local, use=ansi+rep,
15158	use=ansi+sgrbold, use=decid+cpr, use=dec+pp,
15159	use=att610+cvis0,
15160
15161# This entry was modified 3/13/90 by JWE.
15162# fixes include additions of <enacs>, correcting <rep>, and modification
15163# of <kHOM>.  (See comments below)
15164# att730 has status line of 80 chars
15165# These were commented out: <indn=\E[%p1%dS>, <rin=\E[%p1%dT>,
15166# the <kf25> and up keys are used for shifted system Fkeys
15167# NOTE: JWE 3/13/90 The 98 key keyboard translation for shift/HOME is
15168# currently the same as <khome> (unshifted HOME or \E[H).  On the 102, 102+1
15169# and 122 key keyboards, the 730's translation is \E[2J.  For consistency
15170# <kHOM> has been commented out.  The user can uncomment <kHOM> if using the
15171# 102, 102+1, or 122 key keyboards
15172#       kHOM=\E[2J,
15173# (att730: I added <rmam>/<smam> based on the init string -- esr)
15174att730|AT&T 730 windowing terminal,
15175	am, da, db, eslok, hs, mir, msgr, npc, xenl, xon,
15176	cols#80, it#8, lh#2, lines#60, lm#0, lw#8, nlab#24, wsl#80,
15177	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15178	bel=^G, cbt=\E[Z, cr=\r, cub1=^H, dch=\E[%p1%dP, dch1=\E[P,
15179	dim=\E[2m, el1=\E[1K, enacs=\E(B\E)0,
15180	flash=\E[?5h$<200>\E[?5l, fsl=\E8, ht=^I, ich=\E[%p1%d@,
15181	ind=\ED,
15182	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B,
15183	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A,
15184	kcbt=\E[Z, kclr=\E[2J, kf1=\EOc, kf10=\ENp, kf11=\ENq,
15185	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv,
15186	kf17=\ENw, kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz,
15187	kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC,
15188	kf26=\EOD, kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe,
15189	kf30=\EOH, kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP,
15190	kf35=\ENQ, kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU,
15191	kf4=\EOf, kf40=\EOV, kf41=\EOW, kf42=\EOX, kf43=\EOY,
15192	kf44=\EOZ, kf45=\EO[, kf46=\EO\s, kf47=\EO], kf48=\EO\^,
15193	kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, kich1=\E[@,
15194	kil1=\E[L, kind=\E[S, kri=\E[T, mc0=\E[?19h\E[0i, nel=\EE,
15195	pfx=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}
15196	    %<%tq\s\s\sSYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
15197	pfxl=\E[%p1%d;%p2%l%02d;0;0q%p3%:-16.16s%p2%s,
15198	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, ri=\EM, rmacs=^O,
15199	rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h, rmxon=\E[?21l,
15200	rs2=\Ec\E[?3l,
15201	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
15202	    %|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
15203	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
15204	smln=\E[?13l, smxon=\E[?21h, swidm=\E#6,
15205	tsl=\E7\E[;%i%p1%dx, use=ecma+underline,
15206	use=ecma+standout, use=ansi+arrows, use=ansi+csr,
15207	use=ansi+cup, use=ansi+erase, use=ansi+idl,
15208	use=ansi+local, use=ansi+rep, use=ansi+sgrbold,
15209	use=decid+cpr, use=dec+pp, use=att610+cvis,
15210
15211# "MGT" is "Multi-Tasking Graphics Terminal"
15212att730-41|730MTG-41|AT&T 730-41 windowing terminal,
15213	lines#41, use=att730,
15214att730-24|730MTG-24|AT&T 730-24 windowing terminal,
15215	lines#24, use=att730,
15216att730r|730MTGr|AT&T 730 rev video windowing terminal,
15217	flash=\E[?5l$<200>\E[?5h,
15218	is1=\E[8;0|\E[?3;4;13;15l\E[?5h\E[13;20l\E[?7h\E[12h\E(B\E)B, use=att730,
15219att730r-41|730MTG-41r|AT&T 730r-41 rev video windowing terminal,
15220	lines#41, use=att730r,
15221att730r-24|730MTGr-24|AT&T 730r-24 rev video windowing terminal,
15222	lines#24, use=att730r,
15223
15224# The following represents the screen layout along with the associated
15225# bezel buttons for the 5430/pt505 terminal. The "kf" designations do
15226# not appear on the screen but are shown to reference the bezel buttons.
15227# The "CMD", "MAIL", and "REDRAW" buttons are shown in their approximate
15228# position relative to the screen.
15229#
15230#
15231#
15232#      +----------------------------------------------------------------+
15233#      |                                                                |
15234# XXXX | kf0                                                       kf24 | XXXX
15235#      |                                                                |
15236#      |                                                                |
15237# XXXX | kf1                                                       kf23 | XXXX
15238#      |                                                                |
15239#      |                                                                |
15240# XXXX | kf2                                                       kf22 | XXXX
15241#      |                                                                |
15242#      |                                                                |
15243# XXXX | kf3                                                       kf21 | XXXX
15244#      |                                                                |
15245#      |                                                                |
15246# XXXX | kf4                                                       kf20 | XXXX
15247#      |                                                                |
15248#      |                                                                |
15249# XXXX | kf5                                                       kf19 | XXXX
15250#      |                                                                |
15251#      |                                                                |
15252# XXXX | kf6                                                       kf18 | XXXX
15253#      |                                                                |
15254#      |                                                                |
15255# XXXX |                                                                | XXXX
15256#      |                                                                |
15257#      |                                                                |
15258#      +----------------------------------------------------------------+
15259#
15260#          XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX
15261#
15262# Note: XXXX represents the screen buttons
15263#                                                          CMD   REDRAW
15264#
15265#                                                          MAIL
15266#
15267# version 1 note:
15268#	The character string sent by key 'kf26' may be user programmable
15269#       to send either \E[16s, or \E[26s.
15270#       The character string sent by key 'krfr' may be user programmable
15271#       to send either \E[17s, or \E[27s.
15272#
15273# Depression of the "CMD" key sends    \E!    (kcmd)
15274# Depression of the "MAIL" key sends   \E[26s (kf26)
15275# "REDRAW" same as "REFRESH" (krfr)
15276#
15277# "kf" functions adds carriage return to output string if terminal is in
15278# 'new line' mode.
15279#
15280# The following are functions not covered in the table above:
15281#
15282#       Set keyboard character (SKC): \EPn1;Pn2w
15283#                       Pn1= 0 Back Space key
15284#                       Pn1= 1 Break key
15285#                       Pn2=   Program char (hex)
15286#
15287#       Screen Definition (SDF): \E[Pn1;Pn2;Pn3;Pn4;Pn5t
15288#                       Pn1=     Window number (1-39)
15289#                       Pn2-Pn5= Y;X;Y;X coordinates
15290#
15291#       Screen Selection (SSL): \E[Pnu
15292#                       Pn= Window number
15293#
15294#       Set Terminal Modes (SM): \E[Pnh
15295#                       Pn= 3 Graphics mode
15296#                       Pn= > Cursor blink
15297#                       Pn= < Enter new line mode
15298#                       Pn= = Enter reverse insert/replace mode
15299#                       Pn= ? Enter no scroll mode
15300#
15301#       Reset Terminal Mode (RM): \E[Pnl
15302#                       Pn= 3 Exit graphics mode
15303#                       Pn= > Exit cursor blink
15304#                       Pn= < Exit new line mode
15305#                       Pn= = Exit reverse insert/replace mode
15306#                       Pn= ? Exit no scroll mode
15307#
15308#       Screen Status Report (SSR): \E[Pnp
15309#                       Pn= 0 Request current window number
15310#                       Pn= 1 Request current window dimensions
15311#
15312#       Device Status Report (DSR): \E[6n    Request cursor position
15313#
15314#       Call Status Report (CSR): \E[Pnv
15315#                       Pn= 0 Call failed
15316#                       Pn= 1 Call successful
15317#
15318#       Transparent Button String (TBS): \E[Pn1;Pn2;Pn3;{string
15319#                       Pn1= Button number to be loaded
15320#                       Pn2= Character count of "string"
15321#                       Pn3= Key mode being loaded:
15322#                               0= Unshifted
15323#                               1= Shifted
15324#                               2= Control
15325#                       String= Text string (15 chars max)
15326#
15327#       Screen Number Report (SNR): \E[Pnp
15328#                       Pn= Screen number
15329#
15330#       Screen Dimension Report (SDR): \E[Pn1;Pn2r
15331#                       Pn1= Number of rows available in window
15332#                       Pn2= Number of columns available in window
15333#
15334#       Cursor Position Report (CPR): \E[Pn1;Pn2R
15335#                       Pn1= "Y" Position of cursor
15336#                       Pn2= "X" Position of cursor
15337#
15338#       Request Answer Back (RAB): \E[c
15339#
15340#       Answer Back Response (ABR): \E[?;*;30;VSV
15341#                       *=  0 No printer available
15342#                       *=  2 Printer available
15343#                       V=  Software version number
15344#                       SV= Software sub version number
15345#	(printer-available field not documented in v1)
15346#
15347#       Screen Alignment Aid: \En
15348#
15349#       Bell (lower pitch): \E[x
15350#
15351#       Dial Phone Number: \EPdstring\
15352#                       string= Phone number to be dialed
15353#
15354#       Set Phone Labels: \EPpstring\
15355#                       string= Label for phone buttons
15356#
15357#       Set Clock: \EPchour;minute;second\
15358#
15359#       Position Clock: \EPsY;X\
15360#                       Y= "Y" coordinate
15361#                       X= "X" coordinate
15362#
15363#       Delete Clock: \Epr\
15364#
15365#       Programming The Function Buttons: \EPfPn;string\
15366#                       Pn= Button number (00-06, 18-24)
15367#                                         (kf00-kf06, kf18-kf24)
15368#                       string= Text to sent on button depression
15369#
15370# The following in version 2 only:
15371#
15372#       Request For Local Directory Data: \EPp12;\
15373#
15374#       Local Directory Data to host: \EPp11;LOCAL...DIRECTORY...DATA\
15375#
15376#	Request for Local Directory Data in print format: \EPp13;\
15377#
15378#	Enable 'Prt on Line' mode: \022 (DC2)
15379#
15380#	Disable 'Prt on Line' mode: \024 (DC4)
15381#
15382
15383# 05-Aug-86:
15384# The following Terminfo entry describes functions which are supported by
15385# the AT&T 5430/pt505 terminal software version 2 and later.
15386att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
15387	am, xon,
15388	cols#80, it#8, lines#24,
15389	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15390	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
15391	cnorm=\E[>l, cr=\r, cup=\E[%p1%d;%p2%dH, cvvis=\E[>h,
15392	dch=\E[%p1%dP, dch1=\E[P, ed=\E[0J, el=\E[0K, el1=\E[2K,
15393	home=\E[H, ht=^I, ind=\n,
15394	is1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l,
15395	kbs=^H, kcmd=\E!, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
15396	kcuu1=\E[A, kf0=\E[00s, kf1=\E[01s, kf18=\E[18s,
15397	kf19=\E[19s, kf2=\E[02s, kf20=\E[20s, kf21=\E[21s,
15398	kf22=\E[22s, kf23=\E[23s, kf24=\E[24s, kf26=\E[26s,
15399	kf3=\E[03s, kf4=\E[04s, kf5=\E[05s, kf6=\E[06s,
15400	krfr=\E[27s, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
15401	rmacs=\E[10m, rmam=\E[11;1j, rmir=\E[4l, rmso=\E[m,
15402	rs1=\Ec, sc=\E7, sgr0=\E[m, smacs=\E[11m, smam=\E[11;0j,
15403	smir=\E[4h, smso=\E[1m, use=ansi+cpr, use=ansi+idl,
15404	use=ansi+local, use=ansi+sgrul,
15405
15406# The following Terminfo entry describes functions which are supported by
15407# the AT&T 5430/pt505 terminal software version 1.
15408att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines,
15409	lines#24,
15410	mc4@, mc5@, rc@, rmam@, sc@, smam@, use=att505,
15411att505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines,
15412	lines#22, use=att505,
15413#
15414#### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
15415# This cut mark helps make life less painful for people running ncurses tic
15416# on machines with relatively little RAM.  The file can be broken in half here
15417# cleanly and compiled in sections -- no `use' references cross this cut
15418# going forward.
15419#
15420
15421#### Ampex (Dialogue)
15422#
15423# Yes, these are the same people who are better-known for making audio- and
15424# videotape.  I'm told they are located in Redwood City, CA.
15425#
15426
15427# From: <cbosg!ucbvax!SRC:george> Fri Sep 11 22:38:32 1981
15428# (ampex80: some capabilities merged in from SCO's entry -- esr)
15429ampex80|a80|d80|dialogue|dialogue80|Ampex dialogue 80,
15430	OTbs, am, bw, ul,
15431	cols#80, it#8, lines#24,
15432	bel=^G, cbt=\EI, clear=\E*$<75>, cr=\r, cub1=^H, cud1=\n,
15433	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
15434	dch1=\EW, dl1=\ER$<5*>, ed=\Ey, el=\Et, ht=^I, hts=\E1,
15435	ich1=\EQ, il1=\EE$<5*>, ind=\n, is2=\EA, rmso=\Ek, rmul=\Em,
15436	smso=\Ej, smul=\El, tbc=\E3,
15437# This entry was from somebody anonymous, Tue Aug  9 20:11:37 1983, who wrote:
15438ampex175|Ampex d175,
15439	am,
15440	cols#80, lines#24,
15441	bel=^G, clear=\E+, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
15442	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
15443	dl1=\ER, ed=\Ey, el=\Et, home=^^, ich1=\EQ, il1=\EE, ind=\n,
15444	is2=\EX\EA\EF, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
15445	kdch1=\EW, kdl1=\ER, khome=^^, kich1=\EQ, kil1=\EE, ll=^^^K,
15446	rmcup=\EF, rmso=\Ek, rmul=\Em, smcup=\EN, smso=\Ej, smul=\El,
15447# No backspace key in the main QWERTY cluster. Fortunately, it has a
15448# NEWLINE/PAGE key just above RETURN that sends a strange single-character
15449# code.  Given a suitable Unix (one that lets you set an echo-erase-as-BS-SP-BS
15450# mode), this key can be used as the erase key; I find I like this. Because
15451# some people and some systems may not, there is another termcap ("ampex175")
15452# that suppresses this little eccentricity by omitting the relevant capability.
15453ampex175-b|Ampex d175 using left arrow for erase,
15454	kbs=^_, use=ampex175,
15455# From: Richard Bascove <atd!dsd!rcb@ucbvax.berkeley.edu>
15456# (ampex210: removed obsolete ":kn#10:" -- esr)
15457ampex210|a210|Ampex a210,
15458	OTbs, am, hs, xenl,
15459	cols#80, it#8, lines#24, xmc#1,
15460	cbt=\EI, clear=\E*, cub1=^H, cuf1=^L,
15461	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
15462	dl1=\ER, ed=\Ey, el=\Et, flash=\EU\EX\EU\EX\EU\EX\EU\EX,
15463	fsl=\E.2, home=^^, ht=^I, ich1=\EQ,
15464	if=/usr/share/tabset/std, il1=\EE, invis@,
15465	is2=\EC\Eu\E'\E(\El\EA\E%\E{\E.2\EG0\Ed\En, kcub1=^H,
15466	kcud1=^V, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
15467	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
15468	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, khome=^^,
15469	tsl=\E.0\Eg\E}\Ef, use=adm+sgr,
15470# (ampex219: I added <rmam>/<smam> based on the init string, added <cvvis>
15471# from ampex219w, added <cnorm>=\E[?3l, irresistibly suggested by <cvvis>,
15472# and moved the padding to be *after* the caps -- esr)
15473ampex219|ampex-219|amp219|Ampex with automargins,
15474	hs, xenl,
15475	cols#80, it#8, lines#24,
15476	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, cbt=\E[Z,
15477	clear=\E[H\E[2J$<50>, cnorm=\E[?3l, cr=\r,
15478	csr=%i\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B,
15479	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
15480	cuu1=\E[A$<2>, cvvis=\E[?3h, dim=\E[1m, ed=\E[J$<50>,
15481	el=\E[K$<3>, home=\E[H, ht=^I, ind=\n,
15482	is2=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
15483	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[21~,
15484	kf1=\E[7~, kf2=\E[8~, kf3=\E[9~, kf4=\E[10~, kf5=\E[11~,
15485	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
15486	rev=\E[7m, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E>,
15487	rmso=\E[m$<2>, rmul=\E[m$<2>, sgr0=\E[m$<2>, smam=\E[?7h,
15488	smkx=\E=, smso=\E[7m$<2>, smul=\E[4m$<2>,
15489ampex219w|ampex-219w|amp219w|Ampex 132 cols,
15490	cols#132,
15491	cud1=\n, is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
15492	use=ampex219,
15493# (ampex232: removed <if=/usr/share/tabset/ampex>, no file and no <hts> --esr)
15494ampex232|ampex-232|Ampex Model 232,
15495	am,
15496	cols#80, lines#24, xmc#1,
15497	cbt=\EI, civis=\E.0, clear=\E+, cnorm=\E.4, cub1=^H, cud1=^V,
15498	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
15499	dch1=\EW, dl1=\ER$<5*/>, ed=\EY, el=\ET,
15500	flash=\Eb$<200/>\Ed, ht=^I, ich1=\EQ, il1=\EE$<5*/>,
15501	invis@, is2=\Eg\El, kbs=^H, kcub1=^H, kcud1=^V, kcuf1=^L,
15502	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
15503	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
15504	kf9=^AI\r, khome=^^, use=adm+sgr,
15505# (ampex: removed <if=/usr/share/tabset/amp-132>, no file and no <hts> -- esr)
15506ampex232w|Ampex Model 232 / 132 columns,
15507	cols#132,
15508	is2=\E\034Eg\El, use=ampex232,
15509
15510#### Ann Arbor (aa)
15511#
15512# Ann Arbor made dream terminals for hackers -- large screen sizes and huge
15513# numbers of function keys.  At least some used monitors in portrait mode,
15514# allowing up to 76-character screen heights!  They were reachable at:
15515#
15516#	Ann Arbor Terminals
15517#	6175 Jackson Road
15518#	Ann Arbor, MI 48103
15519#	(313)-663-8000
15520#
15521# But in 1996 the phone number reaches some kitschy retail shop, and Ann Arbor
15522# can't be found on the Web; I fear they're long dead.  R.I.P.
15523#
15524
15525
15526# Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
15527# Highly modified 6/22 by Mike O'Brien.
15528# split out into several for the various screen sizes by dave-yost@rand
15529# Modifications made 3/82 by Mark Horton
15530# Modified by Tom Quarles at UCB for greater efficiency and more diversity
15531# status line moved to top of screen, <flash> removed 5/82
15532# Some unknown person at SCO then hacked the init strings to make them more
15533# efficient.
15534#
15535# assumes the following setup:
15536#   A menu: 0000 1010  0001 0000
15537#   B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
15538#   C menu: 56   66   0    0    9600  0110 1100
15539#   D menu: 0110 1001   1   0
15540#
15541#	Briefly, the settings are for the following modes:
15542#	   (values are for bit set/clear with * indicating our preference
15543#	    and the value used to test these termcaps)
15544#	Note that many of these settings are irrelevant to the terminfo
15545#	and are just set to the default mode of the terminal as shipped
15546#	by the factory.
15547#
15548# A menu: 0000 1010  0001 0000
15549#	Block/underline cursor*
15550#	blinking/nonblinking cursor*
15551#	key click/no key click*
15552#	bell/no bell at column 72*
15553#
15554#	key pad is cursor control*/key pad is numeric
15555#	return and line feed/return for <cr> key *
15556#	repeat after .5 sec*/no repeat
15557#	repeat at 25/15 chars per sec. *
15558#
15559#	hold data until pause pressed/process data unless pause pressed*
15560#	slow scroll/no slow scroll*
15561#	Hold in area/don't hold in area*
15562#	functions keys have default*/function keys disabled on powerup
15563#
15564#	show/don't show position of cursor during page transmit*
15565#	unused
15566#	unused
15567#	unused
15568#
15569# B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
15570#	Baud rate (9600*)
15571#
15572#	2 bits of parity - 00=odd,01=even*,10=space,11=mark
15573#	1 stop bit*/2 stop bits
15574#	parity error detection off*/on
15575#
15576#	keyboard local/on line*
15577#	half/full duplex*
15578#	disable/do not disable keyboard after data transmission*
15579#
15580#	transmit entire page/stop transmission at cursor*
15581#	transfer/do not transfer protected characters*
15582#	transmit all characters/transmit only selected characters*
15583#	transmit all selected areas/transmit only 1 selected area*
15584#
15585#	transmit/do not transmit line separators to host*
15586#	transmit/do not transmit page tab stops tabs to host*
15587#	transmit/do not transmit column tab stop tabs to host*
15588#	transmit/do not transmit graphics control (underline,inverse..)*
15589#
15590#	enable*/disable auto XON/XOFF control
15591#	require/do not require receipt of a DC1 from host after each LF*
15592#	pause key acts as a meta key/pause key is pause*
15593#	unused
15594#
15595#	unused
15596#	unused
15597#	unused
15598#	unused
15599#
15600#	XON character (17*)
15601#	XOFF character (19*)
15602#
15603# C menu: 56   66   0    0    9600  0110 1100
15604#	number of lines to print data on (printer) (56*)
15605#
15606#	number of lines on a sheet of paper (printer) (66*)
15607#
15608#	left margin (printer) (0*)
15609#
15610#	number of pad chars on new line to printer (0*)
15611#
15612#	printer baud rate (9600*)
15613#
15614#	printer parity: 00=odd,01=even*,10=space,11=mark
15615#	printer stop bits: 2*/1
15616#	print/do not print guarded areas*
15617#
15618#	new line is: 01=LF,10=CR,11=CRLF*
15619#	unused
15620#	unused
15621#
15622# D menu: 0110 1001   1   0
15623#	LF is newline/LF is down one line, same column*
15624#	wrap to preceding line if move left from col 1*/don't wrap
15625#	wrap to next line if move right from col 80*/don't wrap
15626#	backspace is/is not destructive*
15627#
15628#	display*/ignore DEL character
15629#	display will not/will scroll*
15630#	page/column tab stops*
15631#	erase everything*/erase unprotected only
15632#
15633#	editing extent: 0=display,1=line*,2=field,3=area
15634#
15635#	unused
15636#
15637
15638annarbor4080|aa4080|Ann Arbor 4080,
15639	OTbs, am,
15640	cols#80, lines#40,
15641	bel=^G, clear=\014$<2>, cr=\r, cub1=^H, cud1=\n, cuf1=^_,
15642	cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t
15643	    %{12}%+%;%{64}%+%c,
15644	cuu1=^N, home=^K, ht=^I, hts=^]^P1, ind=\n, kbs=^^, kcub1=^H,
15645	kcud1=\n, kcuf1=^_, kcuu1=^N, khome=^K, tbc=^\^P^P,
15646
15647# Strange Ann Arbor terminal from BRL
15648aas1901|Ann Arbor K4080 w/S1901 mod,
15649	am,
15650	cols#80, lines#40,
15651	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^_, cuu1=^N,
15652	home=^K, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n, ll=^O\0c,
15653	nel=\r\n,
15654
15655# If you're using the GNU termcap library, add
15656#	:cS=\E[%p1%d;%p2%d;%p3%d;%p4%dp:
15657# to these capabilities.  This is the nonstandard GNU termcap scrolling
15658# capability, arguments are:
15659#   1. Total number of lines on the screen.
15660#   2. Number of lines above desired scroll region.
15661#   3. Number of lines below (outside of) desired scroll region.
15662#   4. Total number of lines on the screen, the same as the first parameter.
15663# The generic Ann Arbor entry is the only one that uses this.
15664aaa+unk|aaa-unk|Ann Arbor Ambassador (internal - don't use this directly),
15665	OTbs, am, km, mc5i, mir, xon,
15666	cols#80,
15667	bel=^G, clear=\E[H\E[J$<156>, cr=\r, cub1=^H, cud1=^K,
15668	dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K$<5>,
15669	ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il1=\E[L$<3>, ind=^K,
15670	is1=\E[m\E7\E[H\E9\E8,
15671	is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kcbt=\E[Z, kclr=\E[J,
15672	kdch1=\E[P, kdl1=\E[M, kf1=\EOA, kf10=\EOJ, kf11=\EOK,
15673	kf12=\EOL, kf13=\EOM, kf14=\EON, kf15=\EOO, kf16=\EOP,
15674	kf17=\EOQ, kf18=\EOR, kf19=\EOS, kf2=\EOB, kf20=\EOT,
15675	kf21=\EOU, kf22=\EOV, kf23=\EOW, kf24=\EOX, kf3=\EOC,
15676	kf4=\EOD, kf5=\EOE, kf6=\EOF, kf7=\EOG, kf8=\EOH, kf9=\EOI,
15677	kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i, mc4=^C,
15678	mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8,
15679	rmkx=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E
15680	     \\,
15681	rmm=\E[>52l, sc=\E7, sgr0=\E[m,
15682	smkx=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E
15683	     \\,
15684	smm=\E[>52h, use=ansi+arrows, use=ansi+cup, use=ansi+idl,
15685	use=ansi+inittabs, use=ansi+local, use=ansi+rca,
15686	use=ansi+rep, use=ansi+sgrbold,
15687
15688aaa+rv|Ann Arbor Ambassador in reverse video,
15689	blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
15690	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
15691	rs1=\E[H\E[7m\E[J$<156>,
15692	sgr=\E[%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p1%p2%|%p3%!%|%t7
15693	    ;%;%?%p7%t8;%;m\016,
15694	sgr0=\E[7m\016, smso=\E[m, smul=\E[4;7m,
15695# Ambassador with the DEC option, for partial VT100 compatibility.
15696aaa+dec|Ann Arbor Ambassador in DEC VT100 mode,
15697	acsc=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}},
15698	csr=\E[%i%p1%d;%p2%dr, enacs=\E(B\E)0, rmacs=^O,
15699	sgr=\E[%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p1%p3%|%!%t7;%;%?
15700	    %p7%t8;%;m%?%p9%t\016%e\017%;,
15701	smacs=^N,
15702aaa-18|Ann Arbor Ambassador/18 lines,
15703	lines#18,
15704	is2=\E7\E[60;0;0;18p\E8,
15705	rmcup=\E[60;0;0;18p\E[60;1H\E[K, smcup=\E[18;0;0;18p,
15706	use=aaa+unk,
15707aaa-18-rv|Ann Arbor Ambassador/18 lines+reverse video,
15708	use=aaa+rv, use=aaa-18,
15709aaa-20|Ann Arbor Ambassador/20 lines,
15710	lines#20,
15711	is2=\E7\E[60;0;0;20p\E8,
15712	rmcup=\E[60;0;0;20p\E[60;1H\E[K, smcup=\E[20;0;0;20p,
15713	use=aaa+unk,
15714aaa-22|Ann Arbor Ambassador/22 lines,
15715	lines#22,
15716	is2=\E7\E[60;0;0;22p\E8,
15717	rmcup=\E[60;0;0;22p\E[60;1H\E[K, smcup=\E[22;0;0;22p,
15718	use=aaa+unk,
15719aaa-24|Ann Arbor Ambassador/24 lines,
15720	lines#24,
15721	is2=\E7\E[60;0;0;24p\E8,
15722	rmcup=\E[60;0;0;24p\E[60;1H\E[K, smcup=\E[24;0;0;24p,
15723	use=aaa+unk,
15724aaa-24-rv|Ann Arbor Ambassador/24 lines+reverse video,
15725	use=aaa+rv, use=aaa-24,
15726aaa-26|Ann Arbor Ambassador/26 lines,
15727	lines#26,
15728	is2=\E7\E[60;0;0;26p\E8,
15729	rmcup=\E[60;0;0;26p\E[26;1H\E[K,
15730	smcup=\E[H\E[J$<156>\E[26;0;0;26p, use=aaa+unk,
15731aaa-28|Ann Arbor Ambassador/28 lines,
15732	lines#28,
15733	is2=\E7\E[60;0;0;28p\E8,
15734	rmcup=\E[60;0;0;28p\E[28;1H\E[K,
15735	smcup=\E[H\E[J$<156>\E[28;0;0;28p, use=aaa+unk,
15736aaa-30-s|aaa-s|Ann Arbor Ambassador/30 lines w/status,
15737	lines#29,
15738	dsl=\E7\E[60;0;0;30p\E[1;1H\E[K\E[H\E8\r\n\E[K,
15739	is2=\r\n\E[A\E7\E[60;1;0;30p\E8,
15740	rmcup=\E[60;1;0;30p\E[29;1H\E[K,
15741	smcup=\E[H\E[J$<156>\E[30;1;0;30p\E[30;1H\E[K,
15742	use=aaa+unk, use=guru+s,
15743aaa-30-s-rv|aaa-s-rv|Ann Arbor Ambassador/30 lines+status+reverse video,
15744	use=aaa+rv, use=aaa-30-s,
15745aaa-s-ctxt|aaa-30-s-ctxt|Ann Arbor Ambassador/30 lines+status+save context,
15746	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
15747	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s,
15748aaa-s-rv-ctxt|aaa-30-s-rv-ct|Ann Arbor Ambassador/30 lines+status+save context+reverse video,
15749	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
15750	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s-rv,
15751aaa|aaa-30|ambas|ambassador|Ann Arbor Ambassador/30 lines,
15752	lines#30,
15753	is2=\E7\E[60;0;0;30p\E8,
15754	rmcup=\E[60;0;0;30p\E[30;1H\E[K,
15755	smcup=\E[H\E[J$<156>\E[30;0;0;30p, use=aaa+unk,
15756aaa-30-rv|aaa-rv|Ann Arbor Ambassador/30 lines in reverse video,
15757	use=aaa+rv, use=aaa-30,
15758aaa-30-ctxt|aaa-ctxt|Ann Arbor Ambassador/30 lines; saving context,
15759	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
15760	use=aaa-30,
15761aaa-30-rv-ctxt|aaa-rv-ctxt|Ann Arbor Ambassador/30 lines reverse video; saving context,
15762	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
15763	use=aaa+rv, use=aaa-30,
15764aaa-36|Ann Arbor Ambassador/36 lines,
15765	lines#36,
15766	is2=\E7\E[60;0;0;36p\E8,
15767	rmcup=\E[60;0;0;36p\E[36;1H\E[K,
15768	smcup=\E[H\E[J$<156>\E[36;0;0;36p, use=aaa+unk,
15769aaa-36-rv|Ann Arbor Ambassador/36 lines+reverse video,
15770	use=aaa+rv, use=aaa-36,
15771aaa-40|Ann Arbor Ambassador/40 lines,
15772	lines#40,
15773	is2=\E7\E[60;0;0;40p\E8,
15774	rmcup=\E[60;0;0;40p\E[40;1H\E[K,
15775	smcup=\E[H\E[J$<156>\E[40;0;0;40p, use=aaa+unk,
15776aaa-40-rv|Ann Arbor Ambassador/40 lines+reverse video,
15777	use=aaa+rv, use=aaa-40,
15778aaa-48|Ann Arbor Ambassador/48 lines,
15779	lines#48,
15780	is2=\E7\E[60;0;0;48p\E8,
15781	rmcup=\E[60;0;0;48p\E[48;1H\E[K,
15782	smcup=\E[H\E[J$<156>\E[48;0;0;48p, use=aaa+unk,
15783aaa-48-rv|Ann Arbor Ambassador/48 lines+reverse video,
15784	use=aaa+rv, use=aaa-48,
15785aaa-60-s|Ann Arbor Ambassador/59 lines+status,
15786	eslok, hs,
15787	lines#59,
15788	dsl=\E7\E[60;0;0;60p\E[1;1H\E[K\E[H\E8\r\n\E[K,
15789	fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;60p\E8,
15790	tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
15791aaa-60-s-rv|Ann Arbor Ambassador/59 lines+status+reverse video,
15792	use=aaa+rv, use=aaa-60-s,
15793aaa-60-dec-rv|Ann Arbor Ambassador/DEC mode+59 lines+status+rev video,
15794	use=aaa+dec, use=aaa+rv, use=aaa-60-s,
15795aaa-60|Ann Arbor Ambassador/60 lines,
15796	lines#60,
15797	is2=\E7\E[60;0;0;60p\E[1Q\E[m\E[>20;30l\E8,
15798	use=aaa+unk,
15799aaa-60-rv|Ann Arbor Ambassador/60 lines+reverse video,
15800	use=aaa+rv, use=aaa-60,
15801aaa-db|Ann Arbor Ambassador 30/destructive backspace,
15802	OTbs@,
15803	cub1=\E[D, is3=\E[1Q\E[m\E[>20l\E[>30h, use=aaa-30,
15804
15805guru|guru-33|guru+unk|Ann Arbor guru/33 lines 80 cols,
15806	lines#33,
15807	flash=\E[>59h$<100>\E[>59l,
15808	is2=\E7\E[255;0;0;33;80;80p\E8\E[J, is3=\E[>59l,
15809	rmcup=\E[255p\E[255;1H\E[K, smcup=\E[33p, use=aaa+unk,
15810guru+rv|guru changes for reverse video,
15811	flash=\E[>59l$<100>\E[>59h, is3=\E[>59h,
15812guru-rv|guru-33-rv|Ann Arbor guru/33 lines+reverse video,
15813	use=guru+rv, use=guru-33,
15814guru+s|guru status line,
15815	eslok, hs,
15816	dsl=\E7\E[;0p\E[1;1H\E[K\E[H\E8\r\n\E[K, fsl=\E[>51l,
15817	rmcup=\E[255;1p\E[255;1H\E[K, smcup=,
15818	tsl=\E[>51h\E[1;%p1%dH\E[2K,
15819guru-nctxt|guru with no saved context,
15820	smcup=\E[H\E[J$<156>\E[33p\E[255;1H\E[K, use=guru,
15821guru-s|guru-33-s|Ann Arbor guru/33 lines+status,
15822	lines#32,
15823	is2=\r\n\E[A\E7\E[255;1;0;33;80;80p\E8\E[J,
15824	smcup=\E[33;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
15825guru-24|Ann Arbor guru 24 lines,
15826	cols#80, lines#24,
15827	is2=\E7\E[255;0;0;24;80;80p\E8\E[J, smcup=\E[24p,
15828	use=guru+unk,
15829guru-44|Ann Arbor guru 44 lines,
15830	cols#97, lines#44,
15831	is2=\E7\E[255;0;0;44;97;100p\E8\E[J, smcup=\E[44p,
15832	use=guru+unk,
15833guru-44-s|Ann Arbor guru/44 lines+status,
15834	lines#43,
15835	is2=\r\n\E[A\E7\E[255;1;0;44;80;80p\E8\E[J,
15836	smcup=\E[44;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
15837guru-76|guru with 76 lines by 89 cols,
15838	cols#89, lines#76,
15839	is2=\E7\E[255;0;0;76;89;100p\E8\E[J, smcup=\E[76p,
15840	use=guru+unk,
15841guru-76-s|Ann Arbor guru/76 lines+status,
15842	cols#89, lines#75,
15843	is2=\r\n\E[A\E7\E[255;1;0;76;89;100p\E8\E[J,
15844	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
15845guru-76-lp|guru-lp|guru with page bigger than line printer,
15846	cols#134, lines#76,
15847	is2=\E7\E[255;0;0;76;134;134p\E8\E[J, smcup=\E[76p,
15848	use=guru+unk,
15849guru-76-w|guru 76 lines by 178 cols,
15850	cols#178, lines#76,
15851	is2=\E7\E[255;0;0;76;178;178p\E8\E[J, smcup=\E[76p,
15852	use=guru+unk,
15853guru-76-w-s|Ann Arbor guru/76 lines+status+wide,
15854	cols#178, lines#75,
15855	is2=\r\n\E[A\E7\E[255;1;0;76;178;178p\E8\E[J,
15856	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
15857guru-76-wm|guru 76 lines by 178 cols with 255 cols memory,
15858	cols#178, lines#76,
15859	is2=\E7\E[255;0;0;76;178;255p\E8\E[J, smcup=\E[76p,
15860	use=guru+unk,
15861aaa-rv-unk|Ann Arbor unknown type,
15862	lh#0, lw#0, nlab#0,
15863	blink=\E[5;7m, bold=\E[1;7m, home=\E[H, invis=\E[7;8m,
15864	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
15865	rs1=\E[H\E[7m\E[J,
15866	sgr=\E[%?%p6%t1;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p1%!%t
15867	    7;%;%?%p7%t8;%;m,
15868	sgr0=\E[7m, smso=\E[m, smul=\E[4;7m,
15869
15870#### Applied Digital Data Systems (adds)
15871#
15872# ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
15873# ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
15874# terminals was merged again.  Then AT&T sold the terminal business to
15875# SunRiver, which later changed its  name to Boundless Technologies.  The
15876# engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
15877# as of early 1995) are at:
15878#
15879#	Boundless Technologies
15880#	100 Marcus Boulevard
15881#	Hauppauge, NY 11788-3762
15882#	Vox: (800)-231-5445
15883#	Fax: (516)-342-7378
15884#	Web: http://boundless.com
15885#
15886# Their voice mail used to describe the place as "SunRiver (formerly ADDS)".
15887# In 1995 Boundless acquired DEC's terminals business.
15888#
15889
15890# Regent: lowest common denominator, works on all regents.
15891# (regent: renamed ":bc:" to ":le:" -- esr)
15892regent|ADDS Regent Series,
15893	OTbs, am,
15894	cols#80, lines#24,
15895	bel=^G, clear=^L, cr=\r, cub1=^U, cud1=\n, cuf1=^F, cuu1=^Z,
15896	home=\EY\s\s, ind=\n, ll=^A,
15897# Regent 100 has a bug where if computer sends escape when user is holding
15898# down shift key it gets confused, so we avoid escape.
15899regent100|ADDS Regent 100,
15900	xmc#1,
15901	bel=^G,
15902	cup=\013%p1%'\s'%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
15903	kf0=^B1\r, kf1=^B2\r, kf2=^B3\r, kf3=^B4\r, kf4=^B5\r,
15904	kf5=^B6\r, kf6=^B7\r, kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3,
15905	lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@,
15906	sgr0=\E0@, smso=\E0P, smul=\E0`, use=regent,
15907regent20|ADDS Regent 20,
15908	bel=^G, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, ed=\Ek, el=\EK,
15909	use=regent,
15910regent25|ADDS Regent 25,
15911	bel=^G, kcub1=^U, kcud1=\n, kcuf1=^F, kcuu1=^Z, khome=^A,
15912	use=regent20,
15913regent40|ADDS Regent 40,
15914	xmc#1,
15915	bel=^G, dl1=\El$<2*>, il1=\EM$<2*>, kf1=^B1\r, kf2=^B2\r,
15916	kf3=^B3\r, kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r,
15917	kf8=^B8\r, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6,
15918	lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@, sgr0=\E0@, smso=\E0P,
15919	smul=\E0`, use=regent25,
15920regent40+|ADDS Regent 40+,
15921	is2=\EB, use=regent40,
15922# It uses a different code for mapping acs vs dim/blink.
15923regent60|regent200|adds200|ADDS Regent 60,
15924	acsc=jLkDl@mHnhq`tXuTv\\wPxd, dch1=\EE, ed=\Ek,
15925	is2=\EV\EB, kbs=^H, kcbt=\EO, kdch1=\EE, kich1=\EF,
15926	krmir=\EF, rmacs=\E2, rmir=\EF, rmso=\ER\E0@\EV, smacs=\E1,
15927	smir=\EF, smso=\ER\E0P\EV, kF1=^B!\r, kF2=^B"\r, kF3=^B#\r,
15928	kF4=^B$\r, kF5=^B%\r, kF6=^B&\r, kF7=^B'\r, kF8=^B(\r,
15929	use=regent40+,
15930# From: <edward@onyx.berkeley.edu> Thu Jul  9 09:27:33 1981
15931# (viewpoint: added <kcuf1>, function key, and <dl1> capabilities -- esr)
15932viewpoint|addsviewpoint|ADDS Viewpoint,
15933	OTbs, am,
15934	cols#80, lines#24,
15935	bel=^G, clear=^L, cnorm=\017\E0`, cr=\r, cub1=^H, cud1=\n,
15936	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
15937	cvvis=\017\E0P, dl1=\El, ed=\Ek$<16.1*>, el=\EK$<16>,
15938	ind=\n, is2=\017\E0`, kcub1=^U, kcud1=\n, kcuf1=^F, kcuu1=^Z,
15939	kf0=^B1, kf2=^B2, kf3=^B!, kf4=^B", kf5=^B#, khome=^A, ll=^A,
15940	rmso=^O, rmul=^O, sgr0=^O, smso=^N, smul=^N,
15941# Some viewpoints have bad ROMs that foo up on ^O
15942screwpoint|ADDS Viewpoint with ^O bug,
15943	cvvis@, rmso@, rmul@, smso@, smul@, use=viewpoint,
15944
15945# From: Jay S. Rouman <jsr@dexter.mi.org> 5 Jul 92
15946# The <civis>/<cnorm>/<sgr>/<sgr0> strings were added by ESR from specs.
15947# Theory; the vp3a+ wants \E0%c to set highlights, where normal=01000000,
15948# underline=01100000, rev=01010000, blink=01000010,dim=01000001,
15949# invis=01000100 and %c is the logical or of desired attributes.
15950# There is also a `tag bit' enabling attributes, set by \E) and unset by \E(.
15951#
15952# Update by TD - 2004:
15953# Adapted from
15954#	https://web.archive.org/web/19990922005103/http://www.cs.utk.edu/~shuford/terminal/adds_viewpoint_news.txt
15955#
15956# COMMANDS                        ASCII CODE
15957#
15958# Address, Absolute               ESC,=,row,column
15959# Beep                            BEL
15960# Aux Port Enable                 ESC,@
15961# Aux Port Disable                ESC,A
15962# Backspace                       BS
15963# Cursor back                     BS
15964# Cursor down                     LF
15965# Cursor forward                  FF
15966# Cursor home                     RS
15967# Cursor up                       VT
15968# Cursor suppress                 ETB
15969# Cursor enable                   CAN
15970# Erase to end of line            ESC,T
15971# Erase to end of page            ESC,Y
15972# Erase screen                    SUB
15973# Keyboard lock                   SI
15974# Keyboard unlock                 SO
15975# Read current cursor position    ESC,?
15976# Set Attribute                   ESC,0,x  (see below for values of x)
15977# Tag bit reset                   ESC,(
15978# Tag bit set                     ESC,)
15979# Transparent Print on            ESC,3
15980# Transparent Print off           ESC,4
15981#
15982#
15983# ATTRIBUTES
15984#
15985# Normal                          @	0100
15986# Half Intensity                  A	0101
15987# Blinking                        B	0102
15988# Half Intensity Blinking         C	0103
15989# Reverse Video                   P	0120
15990# Reverse Video Half Intensity    Q	0121
15991# Reverse Video Blinking          R	0122
15992# Reverse Video Half Intensity
15993#    Blinking                     S	0123
15994# Underlined                      `	0140
15995# Underlined Half Intensity       a	0141
15996# Underlined Blinking             b	0142
15997# Underlined Half Intensity
15998#    Blinking                     c	0143
15999# Video suppress                  D	0104
16000vp3a+|viewpoint3a+|ADDS Viewpoint 3a+,
16001	am, bw,
16002	cols#80, it#8, lines#24,
16003	blink=\E0B\E), civis=^W, clear=\E*$<80>, cnorm=^X, cr=\r,
16004	cub1=^H, cud1=\n, cuf1=^L,
16005	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dim=\E0A\E),
16006	ed=\EY$<80>, el=\ET, home=^^, ht=^I, ind=\n, invis=\E0D\E),
16007	kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
16008	nel=\r\n, rev=\E0P\E), rmso=\E(,
16009	sgr=%?%p1%p2%|%p3%|%p4%|%p5%|%p7%|%t\E0%{64}%?%p1%t%{17}%|%;
16010	    %?%p2%t%{32}%|%;%?%p3%t%{16}%|%;%?%p4%t%{2}%|%;%?%p5%t
16011	    %{1}%|%;%c%?%p7%tD%;\E)%e\E(%;,
16012	sgr0=\E(, smso=\E0Q\E), smul=\E0`\E),
16013vp60|viewpoint60|addsvp60|ADDS Viewpoint60,
16014	use=regent40,
16015#
16016# adds viewpoint 90 - from cornell
16017# Note:  emacs sends ei occasionally to insure the terminal is out of
16018#        insert mode. This unfortunately puts the viewpoint90 IN insert
16019#        mode.  A hack to get around this is <ich1=\EF\s\EF^U>.  (Also,
16020#   -    :ei=:im=: must be present in the termcap translation.)
16021#   -    <xhp> indicates glitch that attributes stick to location
16022#   -    <msgr> means it's safe to move in standout mode
16023#   -    <clear=\EG\Ek>: clears screen and visual attributes without affecting
16024#               the status line
16025# Function key and label capabilities merged in from SCO.
16026vp90|viewpoint90|ADDS Viewpoint 90,
16027	OTbs, bw, msgr, xhp,
16028	cols#80, lines#24,
16029	clear=\EG\Ek, cub1=^H, cud1=\n, cuf1=^F,
16030	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EE,
16031	dl1=\El, ed=\Ek, el=\EK, home=\EY\s\s, ht=^I,
16032	ich1=\EF \EF\025, ind=\n, kbs=^H, kcub1=^U, kcud1=\n,
16033	kcuf1=^F, kcuu1=^Z, kf0=^B1\r, kf1=^B2\r, kf10=^B;\r,
16034	kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
16035	kf7=^B8\r, kf8=^B9\r, kf9=^B:\r, khome=^A, lf0=F1, lf1=F2,
16036	lf10=F11, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9,
16037	lf9=F10, ll=^A, rmso=\ER\E0@\EV, rmul=\ER\E0@\EV,
16038	sgr0=\ER\E0@\EV, smso=\ER\E0Q\EV, smul=\ER\E0`\EV,
16039# Note: if return acts weird on a980, check internal switch #2
16040# on the top chip on the CONTROL pc board.
16041adds980|a980|ADDS Consul 980,
16042	OTbs, am,
16043	cols#80, lines#24,
16044	bel=^G, clear=\014$<1>\013@, cr=\r, cub1=^H, cud1=\n,
16045	cuf1=\E^E01, cup=\013%p1%{64}%+%c\E\005%p2%2d,
16046	dl1=\E\017$<13>, il1=\E\016$<13>, ind=\n, kf0=\E0, kf1=\E1,
16047	kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
16048	kf9=\E9, rmso=^O, sgr0=^O, smso=^Y^^^N,
16049
16050#### C. Itoh Electronics
16051#
16052# As of 1995 these people no longer make terminals (they're still in the
16053# printer business).  Their terminals were all clones of the DEC VT series.
16054# They're located in Orange County, CA.
16055#
16056
16057# CIT 80  - vt-52 emulator, the termcap has been modified to remove
16058#           the delay times and do an auto tab set rather than the indirect
16059#           file used in vt100.
16060cit80|cit-80|citoh 80,
16061	OTbs, am,
16062	cols#80, lines#24,
16063	clear=\E[H\EJ, cr=\r, cub1=^H, cup=\E[%i%p1%2d;%p2%2dH,
16064	ed=\EJ, el=\EK, ff=^L, ind=\n, is2=\E>, kcub1=\EOD, kcud1=\EOB,
16065	kcuf1=\EOC, kcuu1=\EOA, rmkx=\E[?1l\E>, smkx=\E[?1h\E=,
16066	use=ansi+local1,
16067
16068# From: Tim Wood <mtxinu!sybase!tim> Fri Sep 27 09:39:12 PDT 1985
16069# (cit101: added <rmam>/<smam> based on init string, merged this with c101 -- esr)
16070cit101|citc|C. Itoh fast VT100,
16071	OTbs, am, xenl,
16072	cols#80, lines#24,
16073	bel=^G, clear=\E[H\E[2J, cnorm=\E[V\E8, cub1=^H,
16074	cup=\E[%i%p1%d;%p2%dH, cvvis=\E7\E[U, dch1=\E[P, ed=\E[J,
16075	el=\E[K, flash=\E[?5h$<200/>\E[?5l, ich1=\E[@,
16076	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[3g\E[>5g,
16077	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
16078	rmam=\E[?7l, rmkx=\E[?1l\E>, sgr0=\E[m, smam=\E[?7h,
16079	smkx=\E[?1h\E=, use=ansi+idl1, use=ansi+local1,
16080	use=ansi+sgrso, use=ansi+sgrul,
16081
16082# CIE Terminals CIT-101e from Geoff Kuenning <callan!geoff> via BRL
16083# The following termcap entry was created from the Callan cd100 entry.  The
16084# last two lines (with the capabilities in caps) are used by RM-cobol to allow
16085# full selection of combinations of reverse video, underline, and blink.
16086# (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
16087# f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
16088# :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
16089cit101e|C. Itoh CIT-101e,
16090	OTbs, OTpt, am, mir, msgr,
16091	cols#80, it#8, lines#24,
16092	acsc=, cnorm=, csr=\E[%i%p1%2d;%p2%2dr,
16093	cup=\E[%i%p1%2d;%p2%2dH, cvvis=\E[?1l\E[?4l\E[?7h,
16094	dch1=\E[P, if=/usr/share/tabset/vt100, kcub1=\E[D,
16095	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT, kf5=\EOm,
16096	kf6=\EOl, kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O,
16097	rmir=\E[4l, rmkx=\E>, sc=\E7, smacs=^N, smir=\E[4h, smkx=\E=,
16098	use=ansi+erase, use=ansi+idl1, use=ansi+local1,
16099	use=ansi+sgrso, use=ansi+sgrul, use=vt100+pf1-pf4,
16100
16101# From: David S. Lawyer, June 1997:
16102# The CIT 101-e was made in Japan in 1983-4 and imported by CIE
16103# Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
16104# late 1980's CIT Terminals went out of business.
16105# There is no need to use the initialization string is=... (by invoking
16106# tset or setterm etc.) provided that the terminal has been manually set
16107# up (and the setup saved with ^S) to be compatible with this termcap.  To be
16108# compatible it should be in ANSI mode (not VT52).   A set-up that
16109# works is to set all the manually settable stuff to factory defaults
16110# by pressing ^D in set-up mode.  Then increase the brightness with the
16111# up-arrow key since the factory default will likely be dim on an old
16112# terminal.  Then change any options you want (provided that they are
16113# compatible with the termcap).  For my terminal I set: Screen
16114# Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
16115# on.  I also set up mine for parity (but you may not need it).  Then
16116# save the setup with ^S.
16117# (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
16118cit101e-rv|C. Itoh CIT-101e (sets reverse video),
16119	am, eo, mir, msgr, xenl, xon,
16120	cols#80, lines#24,
16121	OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[1v,
16122	cnorm=\E[0;3;4v, cr=\r, cub1=^H, cvvis=\E[3;5v,
16123	flash=\E[?5l$<200/>\E[?5h, hpa=\E[%i%p1%dG, ind=\n,
16124	is2=\E<\E>\E[?1l\E[?3l\E[?4l\E[?5h\E[?7h\E[?8h\E[3g\E[>5g\E(
16125	    B\E[m\E[20l\E[1;24r\E[24;1H,
16126	kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
16127	nel=\EE, rev=\E[7m, ri=\EM, rmcup=, rs1=\Ec\E[?7h\E[>5g,
16128	sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h,
16129	u6=\E[%i%p1%d;%p2%dR, u8=\E[?6c, use=ansi+enq,
16130	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idc,
16131	use=ansi+idl, use=ansi+inittabs, use=ansi+local,
16132	use=ansi+sgrso, use=ansi+sgrul, use=ecma+index,
16133	use=vt100+pf1-pf4,
16134
16135cit101e-n|CIT-101e w/o am,
16136	am@,
16137	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=\n,
16138	use=cit101e,
16139cit101e-132|CIT-101e with 132 cols,
16140	cols#132,
16141	kbs=^H, kcub1=^H, kcud1=\n, use=cit101e,
16142cit101e-n132|CIT-101e with 132 cols w/o am,
16143	am@,
16144	cols#132,
16145	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=\n,
16146	use=cit101e,
16147# CIE Terminals CIT-500 from BRL
16148# The following SET-UP modes are assumed for normal operation:
16149#	GENERATE_XON/XOFF:YES	DUPLEX:FULL		NEWLINE:OFF
16150#	AUTOWRAP:ON		MODE:ANSI		SCREEN_LENGTH:64_LINES
16151#	DSPLY_CNTRL_CODES?NO	PAGE_WIDTH:80		EDIT_MODE:OFF
16152# Other SET-UP modes may be set for operator convenience or communication
16153# requirements.
16154# Hardware tabs are assumed to be set every 8 columns; they can be set up
16155# by the "reset", "tset", or "tabs" utilities.  No delays are specified; use
16156# "stty ixon -ixany" to enable DC3/DC1 flow control!
16157# (cit500: I added <rmam>/<smam> based on the init string -- esr)
16158cit500|CIE Terminals CIT-500,
16159	OTbs, OTpt, mir, msgr, xon,
16160	OTkn#10, cols#80, lines#64, vt#3,
16161	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
16162	cr=\r, cub1=^H, cud1=\n, cuu1=\EM, dch1=\E[P, ed=\EJ, el=\EK,
16163	ind=\n, is2=\E<\E)0, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
16164	ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
16165	kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY, kf9=\EOZ,
16166	khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l, lf0=PF1,
16167	lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17, lf7=F18,
16168	lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rev=\E[7m, ri=\EM,
16169	rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
16170	rs1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>,
16171	sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
16172	smkx=\E[?1h\E=, use=ansi+apparrows, use=ansi+csr,
16173	use=ansi+cup, use=ansi+idl, use=ansi+inittabs,
16174	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
16175
16176# C. Itoh printers begin here
16177citoh|ci8510|8510|C. Itoh 8510a,
16178	cols#80, it#8,
16179	bold=\E!, cub1@,
16180	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073.,
16181	rep=\ER%p2%03d%p1%c, ri=\Er, rmul=\EY, sgr0=\E"\EY,
16182	smul=\EX, use=lpr,
16183citoh-pica|citoh in pica,
16184	is1=\EN, use=citoh,
16185citoh-elite|citoh in elite,
16186	cols#96,
16187	is1=\EE,
16188	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089
16189	    .,
16190	use=citoh,
16191citoh-comp|citoh in compressed,
16192	cols#136,
16193	is1=\EQ,
16194	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089
16195	    \,097\,105\,113\,121\,129.,
16196	use=citoh,
16197# citoh has infinite cols because we don't want lp ever inserting \n\t**.
16198citoh-prop|citoh-ps|ips|citoh in proportional spacing mode,
16199	cols#0x7fff,
16200	is1=\EP, use=citoh,
16201citoh-6lpi|citoh in 6 lines per inch mode,
16202	is3=\EA, use=citoh,
16203citoh-8lpi|citoh in 8 lines per inch mode,
16204	lines#88,
16205	is3=\EB, use=citoh,
16206
16207#### Control Data (cdc)
16208#
16209
16210cdc456|CDC 456 terminal,
16211	OTbs, am,
16212	cols#80, lines#24,
16213	bel=^G, clear=^Y^X, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
16214	cup=\E1%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dl1=\EJ, ed=^X,
16215	el=^V, home=^Y, il1=\EL, ind=\n,
16216
16217# Assorted CDC terminals from BRL (improvements by DAG & Ferd Brundick)
16218cdc721|CDC Viking,
16219	OTbs, am,
16220	cols#80, lines#24,
16221	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
16222	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=\n, kcuf1=^I,
16223	kcuu1=^W, khome=^Y,
16224cdc721ll|CDC Viking with long lines,
16225	OTbs, am,
16226	cols#132, lines#24,
16227	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
16228	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=\n, kcuf1=^I,
16229	kcuu1=^W, khome=^Y,
16230# (cdc752: the BRL entry had :ll=\E1  ^Z: commented out
16231cdc752|CDC 752,
16232	OTbs, am, bw, xhp,
16233	cols#80, lines#24,
16234	bel=^G, clear=\030\E1\s\s, cr=\r, cub1=^H, cud1=\n, cuf1=^U,
16235	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z, el=^V,
16236	home=\E1\s\s, ind=\n, ll=^Y, rs1=\E1  \030\002\003\017,
16237# CDC 756
16238# The following switch/key settings are assumed for normal operation:
16239#	96 chars	SCROLL		FULL duplex	not BLOCK
16240# Other switches may be set according to communication requirements.
16241# Insert/delete-character cannot be used, as the whole display is affected.
16242# "so" & "se" are commented out until jove handles "sg" correctly.
16243cdc756|CDC 756,
16244	OTbs, am, bw,
16245	OTkn#10, cols#80, lines#24,
16246	bel=^G, clear=^Y^X, cr=\r, cub1=^H, cud1=\n, cuf1=^U,
16247	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z,
16248	dl1=\EJ$<6*/>, ed=^X, el=^V, home=^Y, il1=\EL$<6*/>, ind=\n,
16249	kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^U, kcuu1=^Z, kdch1=\EI,
16250	kdl1=\EL, ked=^X, kel=^V, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED,
16251	kf4=\EE, kf5=\EF, kf6=\EG, kf7=\EH, kf8=\Ea, kf9=\Eb, khome=^Y,
16252	khts=^O, kich1=\EK, kil1=\EL, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
16253	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, ll=^Y^Z,
16254	rs1=^Y^X^B^C^O,
16255#
16256# CDC 721 from Robert Viduya, Ga. Tech. <ihnp4!gatech!gitpyr!robert> via BRL.
16257#
16258# Part of the long initialization string defines the "DOWN" key to the left
16259# of the tab key to send an ESC.  The real ESC key is positioned way out
16260# in right field.
16261#
16262# The termcap won't work in 132 column mode due to the way it moves the
16263# cursor.  Termcap doesn't have the capability (as far as I could tell) to
16264# handle the 721 in 132 column mode.
16265#
16266# (cdc721: changed :ri: to :sr: -- esr)
16267cdc721-esc|Control Data 721,
16268	OTbs, OTpt, am, bw, msgr, xon,
16269	OTkn#10, cols#80, it#8, lines#30,
16270	bel=^G, blink=^N, cbt=^^^K, clear=^L, cub1=^H, cud1=^Z,
16271	cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c, cuu1=^W,
16272	dch1=^^N, dim=^\, dl1=^^Q, ed=^^P, el=^K, home=^Y, hts=^^^RW,
16273	ich1=^^O, il1=^^R, ind=\036W =\036U, invis=^^^R[,
16274	is2=\036\022B\003\036\035\017\022\025\035\036E\036\022H\036
16275	    \022J\036\022L\036\022N\036\022P\036\022Q\036\022\036
16276	    \022\^\036\022b\036\022i\036W\s=\036\022Z\036\011C1-`\s`
16277	    !k/o,
16278	kbs=^H, kcub1=^H, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^q,
16279	kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, kf7=^^x,
16280	kf8=^^y, kf9=^^z, khome=^Y, ll=^B =, rev=^^D,
16281	ri=\036W =\036V, rmir=, rmkx=^^^Rl, rmso=^^E, rmul=^],
16282	sgr0=^O^U^]^^E^^^R\\, smir=, smkx=^^^Rk, smso=^^D, smul=^\,
16283	tbc=^^^RY,
16284
16285#### Getronics
16286#
16287# Getronics is a Dutch electronics company that at one time was called
16288# `Geveke' and made async terminals; but (according to the company itself!)
16289# they've lost all their documentation on the command set.  The hardware
16290# documentation suggests the terminals were actually manufactured by a
16291# Taiwanese electronics company named Cal-Comp.  There are known
16292# to have been at least two models, the 33 and the 50.
16293#
16294
16295# The 50 seems to be a top end VT220 clone, with the addition of a higher
16296# screen resolution, a larger screen, at least 1 page of memory above and
16297# below the screen, apparently pages of memory right and left of the screen
16298# which can be panned, and about 75 function keys (15 function keys x normal,
16299# shift, control, func A, func B). It also has more setup possibilities than
16300# the VT220. The monitor case is dated November 1978 and the keyboard case is
16301# May 1982.
16302#
16303# The VT100 emulation works as is.  The entry below describes the rather
16304# non-conformant (but more featureful) ANSI mode.
16305#
16306# From: Stephen Peterson <stv@utrecht.ow.nl>, 27 May 1995
16307visa50|Geveke VISA 50 terminal in ANSI 80 character mode,
16308	bw, mir, msgr,
16309	cols#80, lines#25,
16310	acsc=0_aaffggh jjkkllmmnnooqqssttuuvvwwxx, bel=^G,
16311	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
16312	csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dX, dch1=\E[X,
16313	dim=\E[2m, ed=\E[J, el=\E[K, flash=\E[?5h$<100/>\E[?5l,
16314	ht=^I, ind=\n, invis=\E[8m,
16315	is2=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h,
16316	ka1=\E[f, ka3=\EOQ, kb2=\EOP, kc1=\EOR, kc3=\EOS, kdch1=^?,
16317	kdl1=\EOS, kf0=\E010, kf1=\E001, kf10=\E011, kf2=\E002,
16318	kf3=\E003, kf4=\E004, kf5=\E005, kf6=\E006, kf7=\E007,
16319	kf8=\E008, kf9=\E009, khome=\E[f, lf2=A delete char,
16320	lf3=A insert line, lf4=A delete line, lf5=A clear,
16321	lf6=A ce of/cf gn, lf7=A print, lf8=A on-line,
16322	lf9=A funcl0=A send, nel=\r\n, rev=\E[7m, rmacs=\E[3l,
16323	rmam=\E[?7l, rmkx=\E>, rmso=\E[0;2m, rmul=\E[0m,
16324	sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h, smkx=\E=,
16325	smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=ansi+arrows,
16326	use=ansi+cup, use=ansi+idc, use=ansi+idl, use=ansi+local,
16327	use=ansi+rca2,
16328
16329#### Human Designed Systems (Concept)
16330#
16331#	Human Designed Systems
16332#	400 Fehley Drive
16333#	King of Prussia, PA 19406
16334#	Vox: (610)-277-8300
16335#	Fax: (610)-275-5739
16336#	Net: support@hds.com
16337#
16338# John Martin <john@hds.com> is their termcap expert.  They're mostly out of
16339# the character-terminal business now (1995) and making X terminals.  In
16340# particular, the whole `Concept' line described here was discontinued long
16341# ago.
16342#
16343
16344# From: <vax135!hpk>  Sat Jun 27 07:41:20 1981
16345# Extensive changes to c108 by arpavax:eric Feb 1982
16346# Some unknown person at SCO then translated it to terminfo.
16347#
16348# There seem to be a number of different versions of the C108 PROMS
16349# (with bug fixes in its Z-80 program).
16350#
16351# The first one that we had would lock out the keyboard of you
16352# sent lots of short lines (like /usr/dict/words) at 9600 baud.
16353# Try that on your C108 and see if it sends a ^S when you type it.
16354# If so, you have an old version of the PROMs.
16355#
16356# You should configure the C108 to send ^S/^Q before running this.
16357# It is much faster (at 9600 baud) than the c100 because the delays
16358# are not fixed.
16359# new status line display entries for c108-8p:
16360# <is3> - init str #3 - setup term for status display -
16361# set programmer mode, select window 2, define window at last
16362# line of memory, set bkgnd stat mesg there, select window 0.
16363#
16364# <tsl> - to status line - select window 2, home cursor, erase to
16365# end-of-window, 1/2 bright on, goto(line#0, col#?)
16366#
16367# <fsl> - from status line - 1/2 bright off, select window 0
16368#
16369# <dsl> - disable status display - set bkgnd status mesg with
16370# illegal window #
16371#
16372# There are probably more function keys that should be added but
16373# I don't know what they are.
16374#
16375# No delays needed on c108 because of ^S/^Q handshaking
16376#
16377c108|concept108|c108-8p|concept108-8p|Concept 108 w/8 pages,
16378	is3=\EU\E\sz"\Ev\001\177\s!p\E\s;"\E\sz\s\Ev\s\s\001\177p
16379	    \Ep\n,
16380	rmcup=\Ev  \001\177p\Ep\r\n, use=c108-4p,
16381c108-4p|concept108-4p|Concept 108 w/4 pages,
16382	eslok, hs, xon,
16383	pb@,
16384	acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=\r,
16385	cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}
16386	    %>%t\001%{96}%-%;%{32}%+%c,
16387	cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s,
16388	is1=\EK\E!\E F,
16389	is3=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n,
16390	rmacs=\Ej\s, rmcup=\Ev  \001 p\Ep\r\n, smacs=\Ej!,
16391	smcup=\EU\Ev  8p\Ep\r\E\025,
16392	tsl=\E z"\E?\E\005\EE\Ea %+\s, use=c100,
16393c108-rv|c108-rv-8p|Concept 108 w/8 pages in reverse video,
16394	rmcup=\Ev  \002 p\Ep\r\n, smcup=\EU\Ev  8p\Ep\r,
16395	use=c108-rv-4p,
16396c108-rv-4p|concept108rv4p|Concept 108 w/4 pages in reverse video,
16397	flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee, smso=\EE,
16398	use=c108-4p,
16399c108-w|c108-w-8p|concept108-w-8|concept108-w8p|Concept 108 w/8 pages in wide mode,
16400	cols#132,
16401	is1=\E F\E", rmcup=\Ev  ^A0\001D\Ep\r\n,
16402	smcup=\EU\Ev  8\001D\Ep\r, use=c108-8p,
16403
16404# Concept 100:
16405# These have only window relative cursor addressing, not screen
16406# relative. To get it to work right here, smcup/rmcup (which
16407# were invented for the concept) lock you into a one page
16408# window for screen style programs.
16409#
16410# To get out of the one page window, we use a clever trick:
16411# we set the window size to zero ("\Ev    " in rmcup) which the
16412# terminal recognizes as an error and resets the window to all
16413# of memory.
16414#
16415# This trick works on c100 but does not on c108, sigh.
16416#
16417# Some tty drivers use cr3 for concept, others use nl3, hence
16418# the delays on cr and ind below. This padding is only needed at
16419# 9600 baud and up.  One or the other is commented out depending on
16420# local conventions.
16421#
16422# 2 ms padding on <rmcup> isn't always enough. 6 works fine. Maybe
16423# less than 6 but more than 2 will work.
16424#
16425# Note: can't use function keys f7-f10 because they are
16426# indistinguishable from arrow keys (!), also, del char and
16427# clear eol use xon/xoff so they probably won't work very well.
16428#
16429# Also note that we don't define insrt/del char/delline/eop/send
16430# because they don't transmit unless we reset them - I figured
16431# it was a bad idea to clobber their definitions.
16432#
16433# The <mc5> sequence changes the escape character to ^^ so that
16434# escapes will be passed through to the printer. Only trouble
16435# is that ^^ won't be - ^^ was chosen to be unlikely.
16436# Unfortunately, if you're sending raster bits through to be
16437# plotted, any character you choose will be likely, so we lose.
16438#
16439# \EQ"\EY(^W (send anything from printer to host, for xon/xoff)
16440# cannot be # in is2 because it will hang a c100 with no printer
16441# if sent twice.
16442c100|concept100|concept|c104|c100-4p|HDS Concept 100,
16443	OTbs, am, eo, mir, ul, xenl,
16444	cols#80, lines#24, pb#9600, vt#8,
16445	bel=^G, blink=\EC, clear=\E?\E\005$<2*>, cr=$<9>\r,
16446	cub1=^H, cud1=\n, cuf1=\E=,
16447	cup=\Ea%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E;,
16448	dch1=\E\021$<16*>, dim=\EE, dl1=\E\002$<3*>,
16449	ed=\E\005$<16*>, el=\E\025$<16>, flash=\Ek$<200>\EK,
16450	ht=\011$<8>, il1=\E\022$<3*>, ind=\n, invis=\EH, ip=$<16*>,
16451	is1=\EK,
16452	is2=\EU\Ef\E7\E5\E8\El\ENH\E\0\Eo&\0\Eo'\E\Eo!\0\E\007!\E
16453	    \010A@\s\E4#:"\E:a\E4#;"\E:b\E4#<"\E:c,
16454	is3=\Ev    $<6>\Ep\n, kbs=^H, kcbt=\E', kctab=\E_,
16455	kcub1=\E>, kcud1=\E<, kcuf1=\E=, kcuu1=\E;, kdch1=\E^Q,
16456	kdl1=\E^B, ked=\E^C, kel=\E^S, kf1=\E5, kf2=\E6, kf3=\E7,
16457	kf4=\E8, kf5=\E9, kf6=\E:a, kf7=\E:b, kf8=\E:c, khome=\E?,
16458	khts=\E], kich1=\E^P, kil1=\E^R, kind=\E[, knp=\E-, kpp=\E.,
16459	kri=\E\\, krmir=\E\0, mc4=\036o \E\EQ!\EYP\027,
16460	mc5=\EQ"\EY(\027\EYD\Eo \036, prot=\EI,
16461	rep=\Er%p1%c%p2%{32}%+%c$<.2*>, rev=\ED,
16462	rmcup=\Ev    $<6>\Ep\r\n, rmir=\E\s\s, rmkx=\Ex,
16463	rmso=\Ed, rmul=\Eg, sgr0=\EN@,
16464	smcup=\EU\Ev  8p\Ep\r\E\025$<16>, smir=\E^P, smkx=\EX,
16465	smso=\ED, smul=\EG,
16466c100-rv|c100-rv-4p|concept100-rv|Concept 100 reverse video,
16467	cnorm@, cvvis@, flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee,
16468	smso=\EE, use=c100,
16469oc100|oconcept|c100-1p|old 1-page Concept 100,
16470	in,
16471	is3@, use=c100,
16472
16473# From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
16474# Lots of notes, originally inline, but ncurses doesn't grok that.
16475#
16476# am:	not available in power on mode, but turned on with \E[=107;207h in
16477#	is2=.  Also, \E=124l in is2= could have been used to prevent needing
16478#	to specify xenl:, but that would have rendered the last space on the
16479#	last line useless.
16480# bw:	Not available in power on mode, but turned on with \E[=107;207h in
16481#	is2=.
16482# clear: Could be done with \E[2J alone, except that vi (and probably most
16483#	other programs) assume that this also homes the cursor.
16484# dsl:	Go to window 2, go to the beginning of the line, use a line feed to
16485#	scroll the window, and go back to window 1.
16486# is2:	the string may cause a warning to be issued by tic that it
16487#	found a very long line and that it suspects that a comma is missing
16488#	somewhere.  This warning can be ignored (unless it comes up more than
16489#	once).  The initialization string contains the following commands:
16490#
16491#	 [Setup mode items changed from factory defaults:]
16492#		\E)0			set alternate character set to
16493#						graphics
16494#		^O			set character set to default
16495#	 [In case it wasn't]
16496#		\E[m			turn off all attributes
16497#	 [In case they weren't off]
16498#		\E[=107;		cursor wrap and
16499#			207h			character wrap on
16500#		\E[90;3u		set Fkey definitions to "transmit"
16501#						defaults
16502#		\E[92;3u		set cursor key definitions to
16503#						"transmit" defaults
16504#		\E[43;1u		set shift F13 to transmit...
16505#		\177\E$P\177
16506#		\E[44;1u		set shift F14 to transmit...
16507#			\177\E$Q\177
16508#		\E[45;1u		set shift F15 to transmit...
16509#			\177\E$R\177
16510#		\E[46;1u		set shift F16 to transmit...
16511#			\177\E$S\177
16512#		\E[200;1u		set shift up to transmit...
16513#			\177\E$A\177
16514#		\E[201;1u		set shift down to transmit...
16515#			\177\E$B\177
16516#		\E[202;1u		set shift right to transmit...
16517#			\177\E$C\177
16518#		\E[203;1u		set shift left to transmit...
16519#			\177\E$D\177
16520#		\E[204;1u		set shift home to transmit...
16521#			\177\E$H\177
16522#		\E[212;1u		set backtab to transmit...
16523#			\177\E$I\177
16524#		\E[213;1u		set shift backspace to transmit...
16525#			\177\E$^H\177
16526#		\E[214;1u		set shift del to transmit...
16527#			"\E$\177"
16528#	 [Necessary items not mentioned in setup mode:]
16529#		\E[2!w			move to window 2
16530#		\E[25;25w		define window as line 25 of memory
16531#		\E[!w			move to window 1
16532#		\E[2*w			show current line of window 2 as
16533#						status line
16534#		\E[2+x			set meta key to use high bit
16535#		\E[;3+}			move underline to bottom of character
16536#
16537#	All Fkeys are set to their default transmit definitions with \E[90;3u
16538#	in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
16539#	setting MUST be redefined or deactivated, because the default is
16540#	contained in almost all of this terminal's Fkey strings!  If for some
16541#	reason "quit" cannot be altered, the Fkeys can, but it would be
16542#	necessary to change ^| to ^] in all of these definitions, and add
16543#	\E[2;029!t to is2.
16544# lines: is set to 24 because this terminal refuses to treat the 25th
16545#	line normally.
16546# ll:	Not available in power on mode, but turned on with \E[=107;207h in
16547#	is2=.
16548# lm:	Pointless, given that this definition locks a single screen of
16549#	memory into view, but what the hey...
16550# rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
16551#	other attributes alone), but some programs expect this to turn off
16552#	everything.
16553# rmul: Could use \E[4!{ to turn off only underline (leaving any other
16554#	attributes alone), but some programs expect this to turn off
16555#	everything.
16556# sgr:	Attributes are set on this terminal with the string \E[ followed by
16557#	a list of attribute code numbers (in decimal, separated by
16558#	semicolons), followed by the character m.  The attribute code
16559#	numbers are:
16560#		  1 for bold;
16561#		  2 for dim (which is ignored in power on mode);
16562#		  4 for underline;
16563#		  5 for blinking;
16564#		  7 for inverse;
16565#		  8 for not displayable; and
16566#		=99 for protected (except that there are strange side
16567#		effects to protected characters which make them inadvisable).
16568#	 The mapping of terminfo parameters to attributes is as follows:
16569#		%p1 (standout) = bold and inverse together;
16570#		%p2 (underline) = underline;
16571#		%p3 (reverse) = inverse;
16572#		%p4 (blink) = blinking;
16573#		%p5 (dim) is ignored;
16574#		%p6 (bold) = bold;
16575#		%p7 (invisible) = not displayable;
16576#		%p8 (protected) is ignored; and
16577#		%p9 (alt char set) = alt char set.
16578#	 The code to do this is:
16579#		\E[0		OUTPUT	\E[0
16580#		%?%p1%p6%O	IF	(standout; bold) OR
16581#		%t;1		THEN	OUTPUT	;1
16582#		%;		ENDIF
16583#		%?%p2		IF	underline
16584#		%t;4		THEN	OUTPUT	;4
16585#		%;		ENDIF
16586#		%?%p4		IF	blink
16587#		%t;5		THEN	OUTPUT	;5
16588#		%;		ENDIF
16589#		%?%p1%p3%O	IF	(standout; reverse) OR
16590#		%t;7		THEN	OUTPUT	;7
16591#		%;		ENDIF
16592#		%?%p7		IF	invisible
16593#		%t;8		THEN	OUTPUT	;8
16594#		%;		ENDIF
16595#		m		OUTPUT	m
16596#		%?%p9		IF	altcharset
16597#		%t^N		THEN	OUTPUT	^N
16598#		%e^O		ELSE	OUTPUT	^O
16599#		%;		ENDIF
16600# sgr0: Everything is turned off (including alternate character set), since
16601#	there is no way of knowing what it is that the program wants turned
16602#	off.
16603# smul: The "underline" attribute is reconfigurable to an overline or
16604#	strike-through, or (as done with \E[;3+} in is2=), to a line at the true
16605#	bottom of the character cell.  This was done to allow for more readable
16606#	underlined characters, and to be able to distinguish between an
16607#	underlined space, an underscore, and an underlined underscore.
16608# xenl: Terminal can be configured to not need this, but this "glitch"
16609#	behavior is actually preferable with autowrap terminals.
16610#
16611# Parameters kf31= thru kf53= actually contain the strings sent by the shifted
16612# Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
16613# string modifies the 'O' in kf43 to kf46 to a '$'.
16614#
16615# kcbt was originally ^I but redefined in is2=.
16616# kHOM was \E[H originally but redefined in is2=, as were a number of
16617# other keys.
16618# kDC was originally \177 but redefined in is2=.
16619#
16620# kbs:	Shift was also ^H originally but redefined as \E$^H in is2=.
16621# tsl:	Go to window 2, then do an hpa=.
16622#
16623#------- flash=\E[8;3!}^G\E[3;3!}
16624#------- flash=\E[?5h$<100>\E[?5l
16625# There are two ways to flash the screen, both of which have their drawbacks.
16626# The first is to set the bell mode to video, transmit a bell character, and
16627# set the bell mode back - but to what?  There is no way of knowing what the
16628# user's old bell setting was before we messed with it.  Worse, the command to
16629# set the bell mode also sets the key click volume, and there is no way to say
16630# "leave that alone", or to know what it's set to, either.
16631# The second way to do a flash is to set the screen to inverse video, pad for a
16632# tenth of a second, and set it back - but like before, there's no way to know
16633# that the screen wasn't ALREADY in inverse video, or that the user may prefer
16634# it that way.  The point is moot anyway, since vi (and probably other
16635# programs) assume that by defining flash=, you want the computer to use it
16636# INSTEAD of bel=, rather than as a secondary type of signal.
16637#
16638#------- cvvis=\E[+{
16639# The is the power on setting, which is also as visible as the cursor
16640# gets.
16641#-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
16642# Windowing is possible, but not defined here because it is also used to
16643# emulate status line functions.  Allowing a program to set a window could
16644# clobber the status line or render it unusable.  There is additional memory,
16645# but screen scroll functions are destructive and do not make use of it.
16646#
16647#-------   dim=			Not available in power on mode.
16648# You have a choice of defining low intensity characters as "half bright" and
16649# high intensity as "normal", or defining low as "normal" and high as "bold".
16650# No matter which you choose, only one of either "half bright" or "bold" is
16651# available at any time, so taking the time to override the default is
16652# pointless.
16653#
16654#-------  prot=\E[=0;99m
16655# Not defined, because it appears to have some strange side effects.
16656#------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
16657#------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
16658#-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
16659#	 Available, but making them available to programs is inadvisable.
16660#	 The code to do this is:
16661#		%?%p1%{24}%<	IF	((key; 24) <;
16662#		%p1%{30}%>		 ((key; 30) >;
16663#		%p1%{54}%<		  (key; 54) <
16664#		%A			 ) AND
16665#		%O			) OR
16666#	 [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
16667#		%t\E[		THEN	OUTPUT	\E[
16668#		%p1%d			OUTPUT	(key) as decimal
16669#	 [next line applies to pfx only]
16670#		;1			OUTPUT	;1
16671#		u			OUTPUT	u
16672#		\177			OUTPUT	\177
16673#		%p2%s			OUTPUT	(string) as string
16674#		\177			OUTPUT	\177
16675#	 [DEL chosen as delimiter, but could be any character]
16676#	 [implied:		ELSE	do nothing]
16677#		%;		ENDIF
16678#
16679#-------   rs2=
16680# Not defined since anything it might do could be done faster and easier with
16681# either Meta-Shift-Reset or the main power switch.
16682#
16683#-------  smkx=\E[1!z
16684#-------  rmkx=\E[!z
16685# These sequences apply to the cursor and setup keys only, not to the
16686# numeric keypad.  But it doesn't matter anyway, since making these
16687# available to programs is inadvisable.
16688# For the key definitions below, all sequences beginning with \E$ are
16689# custom and programmed into the terminal via is2.  \E$ also has no
16690# meaning to any other terminal.
16691#
16692#------- cmdch=\E[;%p1%d!t
16693# Available, but making it available to programs is inadvisable.
16694#------- smxon=\E[1*q
16695# Available, but making it available to programs is inadvisable.
16696# Terminal will send XON/XOFF on buffer overflow.
16697#------- rmxon=\E[*q
16698# Available, but making it available to programs is inadvisable.
16699# Terminal will not notify on buffer overflow.
16700#-------   smm=\E[2+x
16701#-------   rmm=\E[+x
16702# Available, but making them available to programs is inadvisable.
16703#
16704# Printing:
16705#	 It's not made clear in the manuals, but based on other ansi/vt type
16706#	 terminals, it's a good guess that this terminal is capable of both
16707#	 "transparent print" (which doesn't copy data to the screen, and
16708#	 therefore needs mc5i: specified to say so) and "auxiliary print"
16709#	 (which does duplicate printed data on the screen, in which case mc4=
16710#	 and mc5= should use the \E[?4i and \E[?5i strings instead).
16711
16712hds200|Human Designed Systems HDS200,
16713	am, bw, eslok, hs, km, mir, msgr, xenl, xon, NQ,
16714	cols#80, lines#24, lm#0,
16715	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
16716	blink=\E[0;5m, bold=\E[0;1m, civis=\E[6+{, cnorm=\E[+{,
16717	cr=\r, dch=\E[%p1%dP, dch1=\E[P, dsl=\E[2!w\r\n\E[!w,
16718	el1=\E[1K, fsl=\E[!w, ich=\E[%p1%d@, ind=\ED,
16719	invis=\E[0;8m,
16720	is2=\E)0\017\E[m\E[=107;207h\E[90;3u\E[92;3u\E[43;1u\177\E$P
16721	    \177\E[44;1u\177\E$Q\177\E[45;1u\177\E$R\177\E[46;1u
16722	    \177\E$S\177\E[200;1u\177\E$A\177\E[201;1u\177\E$B\177
16723	    \E[202;1u\177\E$C\177\E[203;1u\177\E$D\177\E[204;1u\177
16724	    \E$H\177\E[212;1u\177\E$I\177\E[213;1u\177\E$\010\177\E[
16725	    214;1u"\E$\177"\E[2!w\E[25;25w\E[!w\E[2*w\E[2+x\E[;3+},
16726	kDC=\E$^?, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kcbt=\E$I,
16727	kdch1=^?, kent=\r, kf1=^\001\r, kf10=^\010\r, kf11=^\011\r,
16728	kf12=^\012\r, kf13=\EOP, kf14=\EOQ, kf15=\EOR, kf16=\EOS,
16729	kf17=^\017\r, kf18=^\018\r, kf19=^\019\r, kf2=^\002\r,
16730	kf20=^\020\r, kf21=^\021\r, kf22=^\022\r, kf23=^\023\r,
16731	kf3=^\003\r, kf31=^\031\r, kf32=^\032\r, kf33=^\033\r,
16732	kf34=^\034\r, kf35=^\035\r, kf36=^\036\r, kf37=^\037\r,
16733	kf38=^\038\r, kf39=^\039\r, kf4=^\004\r, kf40=^\040\r,
16734	kf41=^\041\r, kf42=^\042\r, kf43=\E$P, kf44=\E$Q,
16735	kf45=\E$R, kf46=\E$S, kf47=^\047\r, kf48=^\048\r,
16736	kf49=^\049\r, kf5=^\005\r, kf50=^\050\r, kf51=^\051\r,
16737	kf52=^\052\r, kf53=^\053\r, kf6=^\006\r, kf7=^\007\r,
16738	kf8=^\008\r, kf9=^\009\r, kind=\E[T, knp=\E[U, kpp=\E[V,
16739	kri=\E[S, ll=\E[H\E[A, nel=\E[E, rev=\E[0;7m, ri=\EM,
16740	rmacs=^O, rmir=\E[4l, rmso=\E[m\017, rmul=\E[m\017,
16741	sgr=\E[0%?%p1%p6%O%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%O%t;7
16742	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
16743	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m,
16744	smul=\E[0;4m, tsl=\E[2!w\E[%i%p1%dG, use=ansi+arrows,
16745	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
16746	use=ansi+inittabs, use=ansi+local, use=ansi+pp,
16747	use=ansi+rca2,
16748
16749# <ht> through <el> included to specify padding needed in raw mode.
16750# (avt-ns: added empty <acsc> to suppress a tic warning --esr)
16751avt-ns|Concept AVT no status line,
16752	OTbs, am, eo, mir, ul, xenl, xon,
16753	cols#80, lines#24, lm#192,
16754	acsc=, bel=^G, clear=\E[H\E[J$<38>, cnorm=\E[=119l, cr=\r,
16755	cub1=^H, cud1=\n, cvvis=\E[=119h, dim=\E[1!{,
16756	dl=\E[%p1%dM$<4*>, dl1=\E[M$<4>, ed=\E[J$<96>,
16757	el=\E[K$<6>, ht=\011$<4>, ich=\E[%p1%d@,
16758	il=\E[%p1%dL$<4*>, il1=\E[L$<4>, ind=\n$<8>, ip=$<4>,
16759	is1=\E[=103l\E[=205l,
16760	is2=\E[1*q\E[2!t\E[7!t\E[=4;101;119;122l\E[=107;118;207h\E)1
16761	    \E[1Q\EW\E[!y\E[!z\E>\E[0:0:32!r\E[0*w\E[w\E2\r\n\E[2;27
16762	    !t,
16763	kdch1=\E\002\r, ked=\E\004\r, kich1=\E\001\r,
16764	kil1=\E\003\r, ll=\E[24H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
16765	pfloc=\E[%p1%d;0u#%p2%s#, pfx=\E[%p1%d;1u#%p2%s#,
16766	prot=\E[99m, ri=\EM$<4>, rmacs=\016$<1>,
16767	rmcup=\E[w\E2\r\n, rmkx=\E[!z\E[0;2u, rmso=\E[7!{,
16768	rmul=\E[4!{,
16769	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;
16770	    %;%?%p7%t8;%;%?%p8%t99;%;m%?%p5%t\E[1!{%;%?%p9%t\017%e
16771	    \016%;$<1>,
16772	sgr0=\E[m\016$<1>, smacs=\017$<1>,
16773	smcup=\E[=4l\E[1;24w\E2\r, smkx=\E[1!z\E[0;3u,
16774	use=ansi+arrows, use=ansi+csr, use=ansi+cup,
16775	use=ansi+idc1, use=ansi+inittabs, use=ansi+local,
16776	use=ansi+rca, use=ansi+rep, use=ansi+sgrbold,
16777	use=vt100+pf1-pf4,
16778
16779avt-rv-ns|Concept AVT in reverse video mode/no status line,
16780	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
16781	use=avt-ns,
16782avt-w-ns|Concept AVT in 132 column mode/no status line,
16783	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
16784	use=avt-ns,
16785avt-w-rv-ns|Concept AVT in 132 column mode/no status line/reverse video,
16786	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
16787	smcup=\E[H\E[1;24;1;132w, use=avt-ns,
16788
16789# Concept AVT with status line. We get the status line using the
16790# "Background status line" feature of the terminal. We swipe the
16791# first line of memory in window 2 for the status line, keeping
16792# 191 lines of memory and 24 screen lines for regular use.
16793# The first line is used instead of the last so that this works
16794# on both 4 and 8 page AVTs. (Note the lm#191 or 192 - this
16795# assumes an 8 page AVT but lm isn't currently used anywhere.)
16796#
16797avt+s|Concept AVT status line changes,
16798	eslok, hs,
16799	lm#191,
16800	dsl=\E[0*w, fsl=\E[1;1!w,
16801	is3=\E[2w\E[2!w\E[1;1;1;80w\E[H\E[2*w\E[1!w\E2\r\n,
16802	rmcup=\E[2w\E2\r\n, smcup=\E[2;25w\E2\r,
16803	tsl=\E[2;1!w\E[;%p1%dH\E[2K,
16804avt|avt-s|concept-avt|Concept AVT w/80 columns,
16805	use=avt+s, use=avt-ns,
16806avt-rv|avt-rv-s|Concept AVT reverse video w/sl,
16807	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
16808	use=avt+s, use=avt-ns,
16809avt-w|avt-w-s|Concept AVT 132 cols+status,
16810	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
16811	use=avt+s, use=avt-ns,
16812avt-w-rv|avt-w-rv-s|Concept AVT wide+status+rv,
16813	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
16814	smcup=\E[H\E[1;24;1;132w, use=avt+s, use=avt-ns,
16815
16816#### Contel Business Systems.
16817#
16818
16819# Contel c300 and c320 terminals.
16820contel300|contel320|c300|Contel Business Systems C-300 or C-320,
16821	am, in, xon,
16822	cols#80, lines#24, xmc#1,
16823	bel=^G, clear=\EK, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
16824	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
16825	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
16826	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
16827	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=\n, ip=$<5.5*>,
16828	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
16829	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
16830	rmso=\E!\0, sgr0=\E!\0, smso=\E!\r, tbc=\E3,
16831# Contel c301 and c321 terminals.
16832contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321,
16833	flash@, ich1@, ip@, rmso=\E!\0$<20>, smso=\E!\r$<20>,
16834	use=contel300,
16835
16836#### Data General (dg)
16837#
16838# According to James Carlson <carlson@xylogics.com> writing in January 1995,
16839# the terminals group at Data General was shut down in 1991; all these
16840# terminals have thus been discontinued.
16841#
16842# DG terminals have function keys that respond to the SHIFT and CTRL keys,
16843# e.g., SHIFT-F1 generates a different code from F1.  To number the keys
16844# sequentially, first the unmodified key codes are listed as F1 through F15.
16845# Then their SHIFT versions are listed as F16 through F30, their CTRL versions
16846# are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
16847# F46 through F60.  This is done in the private "includes" below whose names
16848# start with "dgkeys+".
16849#
16850# DG terminals generally support 8 bit characters.  For each of these terminals
16851# two descriptions are supplied:
16852#	1) A default description for 8 bits/character communications, which
16853#	   uses the default DG international character set and keyboard codes.
16854#	2) A description with suffix "-7b" for 7 bits/character communications.
16855#	   This description must use the NON-DEFAULT native keyboard language.
16856
16857# Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
16858# Ctrl/Shift fdkeys (kf34-kf44).
16859
16860dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys,
16861	ka1=\233020z, ka3=\233021z, kc1=\233022z, kc3=\233023z,
16862	kclr=\2332J, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
16863	kcuu1=\233A, kel=\233K, kf1=\233001z, kf10=\233010z,
16864	kf11=\233011z, kf12=\233012z, kf13=\233013z,
16865	kf14=\233014z, kf15=\233000z, kf16=\233101z,
16866	kf17=\233102z, kf18=\233103z, kf19=\233104z,
16867	kf2=\233002z, kf20=\233105z, kf21=\233106z,
16868	kf22=\233107z, kf23=\233108z, kf24=\233109z,
16869	kf25=\233110z, kf26=\233111z, kf27=\233112z,
16870	kf28=\233113z, kf29=\233114z, kf3=\233003z,
16871	kf30=\233100z, kf31=\233201z, kf32=\233202z,
16872	kf33=\233203z, kf34=\233204z, kf35=\233205z,
16873	kf36=\233206z, kf37=\233207z, kf38=\233208z,
16874	kf39=\233209z, kf4=\233004z, kf40=\233210z,
16875	kf41=\233211z, kf42=\233212z, kf43=\233213z,
16876	kf44=\233214z, kf45=\233200z, kf46=\233301z,
16877	kf47=\233302z, kf48=\233303z, kf49=\233304z,
16878	kf5=\233005z, kf50=\233305z, kf51=\233306z,
16879	kf52=\233307z, kf53=\233308z, kf54=\233309z,
16880	kf55=\233310z, kf56=\233311z, kf57=\233312z,
16881	kf58=\233313z, kf59=\233314z, kf6=\233006z,
16882	kf60=\233300z, kf7=\233007z, kf8=\233008z, kf9=\233009z,
16883	khome=\233H, kprt=\233i,
16884
16885dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys,
16886	ka1=\E[020z, ka3=\E[021z, kc1=\E[022z, kc3=\E[023z,
16887	kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
16888	kel=\E[K, kf1=\E[001z, kf10=\E[010z, kf11=\E[011z,
16889	kf12=\E[012z, kf13=\E[013z, kf14=\E[014z, kf15=\E[000z,
16890	kf16=\E[101z, kf17=\E[102z, kf18=\E[103z, kf19=\E[104z,
16891	kf2=\E[002z, kf20=\E[105z, kf21=\E[106z, kf22=\E[107z,
16892	kf23=\E[108z, kf24=\E[109z, kf25=\E[110z, kf26=\E[111z,
16893	kf27=\E[112z, kf28=\E[113z, kf29=\E[114z, kf3=\E[003z,
16894	kf30=\E[100z, kf31=\E[201z, kf32=\E[202z, kf33=\E[203z,
16895	kf34=\E[204z, kf35=\E[205z, kf36=\E[206z, kf37=\E[207z,
16896	kf38=\E[208z, kf39=\E[209z, kf4=\E[004z, kf40=\E[210z,
16897	kf41=\E[211z, kf42=\E[212z, kf43=\E[213z, kf44=\E[214z,
16898	kf45=\E[200z, kf46=\E[301z, kf47=\E[302z, kf48=\E[303z,
16899	kf49=\E[304z, kf5=\E[005z, kf50=\E[305z, kf51=\E[306z,
16900	kf52=\E[307z, kf53=\E[308z, kf54=\E[309z, kf55=\E[310z,
16901	kf56=\E[311z, kf57=\E[312z, kf58=\E[313z, kf59=\E[314z,
16902	kf6=\E[006z, kf60=\E[300z, kf7=\E[007z, kf8=\E[008z,
16903	kf9=\E[009z, khome=\E[H, kprt=\E[i,
16904
16905dgkeys+11|Private entry describing 11 minimal-subset DG mode special keys,
16906	kclr=^L, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kel=^K,
16907	kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^a, kf13=^^b, kf14=^^c,
16908	kf15=^^d, kf16=^^e, kf17=^^f, kf18=^^g, kf19=^^h, kf2=^^r,
16909	kf20=^^i, kf21=^^j, kf22=^^k, kf23=^^1, kf24=^^2, kf25=^^3,
16910	kf26=^^4, kf27=^^5, kf28=^^6, kf29=^^7, kf3=^^s, kf30=^^8,
16911	kf31=^^9, kf32=^^:, kf33=^^;, kf34=^^!, kf35=^^", kf36=^^#,
16912	kf37=^^$, kf38=^^%%, kf39=^^&, kf4=^^t, kf40=^^', kf41=^^(,
16913	kf42=^^), kf43=^^*, kf44=^^+, kf5=^^u, kf6=^^v, kf7=^^w,
16914	kf8=^^x, kf9=^^y, khome=^H,
16915
16916dgkeys+15|Private entry describing 15 DG mode special keys,
16917	kHOM=^^^H, kLFT=^^^Y, kRIT=^^^X, ka1=^^\\, ka3=^^], kc1=^^\^,
16918	kc3=^^_, kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^|, kf13=^^},
16919	kf14=^^~, kf15=^^p, kf16=^^a, kf17=^^b, kf18=^^c, kf19=^^d,
16920	kf2=^^r, kf20=^^e, kf21=^^f, kf22=^^g, kf23=^^h, kf24=^^i,
16921	kf25=^^j, kf26=^^k, kf27=^^l, kf28=^^m, kf29=^^n, kf3=^^s,
16922	kf30=^^`, kf31=^^1, kf32=^^2, kf33=^^3, kf34=^^4, kf35=^^5,
16923	kf36=^^6, kf37=^^7, kf38=^^8, kf39=^^9, kf4=^^t, kf40=^^:,
16924	kf41=^^;, kf42=^^<, kf43=^^=, kf44=^^>, kf45=^^0, kf46=^^!,
16925	kf47=^^", kf48=^^#, kf49=^^$, kf5=^^u, kf50=^^%%, kf51=^^&,
16926	kf52=^^', kf53=^^(, kf54=^^), kf55=^^*, kf56=^^+, kf57=^^\,,
16927	kf58=^^-, kf59=^^., kf6=^^v, kf60=^^\s, kf7=^^w, kf8=^^x,
16928	kf9=^^y,
16929
16930# Data General color terminals use the "Tektronix" color model.  The total
16931# number of colors varies with the terminal model, as does support for
16932# attributes used in conjunction with color.
16933
16934# Removed u7, u8 definitions since they conflict with tack:
16935#		Preserve user-defined colors in at least some cases.
16936#	u7=^^Fh,
16937#		Default is ACM mode.
16938#	u8=^^F}20^^Fi^^F}21,
16939#
16940dgunix+fixed|Fixed color info for DG D430C terminals in DG-UNIX mode,
16941	ncv#53, use=dgmode+color,
16942
16943dg+fixed|Fixed color info for DG D430C terminals in DG mode,
16944	use=dgunix+fixed,
16945
16946# Video attributes are coordinated using static variables set by "sgr", then
16947# checked by "op", "seta[bf]", and "set[bf]" to refresh the attribute settings.
16948# (D=dim, U=underline, B=blink, R=reverse.)
16949dg+color8|Color info for Data General D220 and D230C terminals in ANSI mode,
16950	bce,
16951	colors#8, ncv#16, pairs#64,
16952	op=\E[%?%gD%t2;%;%?%gU%t4;%;%?%gB%t5;%;%?%gR%t7;%;m,
16953	setab=\E[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
16954	setaf=\E[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
16955	setb=\E[4%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;
16956	     %d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
16957	setf=\E[3%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;
16958	     %d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
16959
16960dg+color|Color info for Data General D470C terminals in ANSI mode,
16961	colors#16, ncv#53, pairs#0x100,
16962	setab=\E[%?%p1%{8}%<%t4%p1%e=%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;
16963	      %?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t
16964	      ;5%;%?%gR%t;7%;m,
16965	setaf=\E[%?%p1%{8}%<%t3%p1%e<%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;
16966	      %?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t
16967	      ;5%;%?%gR%t;7%;m,
16968	setb=\E[%?%p1%{8}%<%t4%e=%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?
16969	     %p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;
16970	     %?%gR%t;7%;m,
16971	setf=\E[%?%p1%{8}%<%t3%e<%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?
16972	     %p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;
16973	     %?%gR%t;7%;m,
16974	use=dg+color8,
16975
16976dgmode+color8|Color info for Data General D220/D230C terminals in DG mode,
16977	op=\036Ad\036Bd,
16978	setab=\036B%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|
16979	      %;%{48}%+%c,
16980	setaf=\036A%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|
16981	      %;%{48}%+%c,
16982	setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
16983	use=dg+color8,
16984
16985dgmode+color|Color info for Data General D470C terminals in DG mode,
16986	colors#16, pairs#0x100,
16987	setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1
16988	      %{4}%&%t%{1}%|%;%;%{48}%+%c,
16989	setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1
16990	      %{4}%&%t%{1}%|%;%;%{48}%+%c,
16991	use=dgmode+color8,
16992
16993dgunix+ccc|Configurable color info for DG D430C terminals in DG-UNIX mode,
16994	initp=\036RG0%p1%02X%p2%{255}%*%{1000}%/%02X%p3%{255}%*
16995	      %{1000}%/%02X%p4%{255}%*%{1000}%/%02X%p5%{255}%*
16996	      %{1000}%/%02X%p6%{255}%*%{1000}%/%02X%p7%{255}%*
16997	      %{1000}%/%02X,
16998	oc=\036RG01A00FF00000000\036RG01B00000000FF00
16999	   \036RG01C007F00000000\036RG01D000000007F00,
17000	op=\036RF4831A\036RF2E31B\036RF1D31C\036RF3F31D,
17001	scp=\036RG2%p1%02X, use=dg+ccc,
17002
17003# Colors are in the order:  normal, reverse, dim, dim + reverse.
17004dg+ccc|Configurable color info for DG D430C terminals in DG mode,
17005	bce, ccc,
17006	colors#52, ncv#53, pairs#26,
17007	initp=\036RG0%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c%p2%{255}
17008	      %*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c
17009	      %p3%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m
17010	      %{48}%+%c%p4%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}%+%c%ga
17011	      %{16}%m%{48}%+%c%p5%{255}%*%{1000}%/%Pa%ga%{16}%/%{48}
17012	      %+%c%ga%{16}%m%{48}%+%c%p6%{255}%*%{1000}%/%Pa%ga%{16}
17013	      %/%{48}%+%c%ga%{16}%m%{48}%+%c%p7%{255}%*%{1000}%/%Pa
17014	      %ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c,
17015	oc=\036RG01:00??00000000\036RG01;00000000??00\036RG01<007?00
17016	   000000\036RG01=000000007?00,
17017	op=\036RF4831:\036RF2>31;\036RF1=31<\036RF3?31=,
17018	scp=\036RG2%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c,
17019
17020# The generic DG terminal type (an 8-bit-clean subset of the 6053)
17021# Initialization string 1 sets:
17022#	^R		- vertical scrolling enabled
17023#	^C		- blinking enabled
17024dg-generic|generic Data General terminal in DG mode,
17025	am, bw, msgr, xon,
17026	cols#80, lines#24,
17027	bel=^G, blink=^N, clear=^L, cr=\r, cub1=^Y, cud1=^Z, cuf1=^X,
17028	cup=\020%p2%c%p1%c, cuu1=^W, dim=^\, el=^K, ind=\n, is1=^R^C,
17029	mc0=^Q, nel=\n, rmso=^], rmul=^U, sgr0=^O^U^], smso=^\,
17030	smul=^T, use=dgkeys+11,
17031
17032# According to the 4.4BSD termcap file, the dg200 <cup> should be the
17033# termcap equivalent of \020%p2%{128}%+%c%p1%{128}%+%c (in termcap
17034# notation that's "^P%r%+\200%+\200").  Those \200s are suspicious,
17035# maybe they were originally nuls (which would fit).
17036
17037dg200|Data General DASHER 200,
17038	OTbs, am, bw,
17039	cols#80, lines#24,
17040	bel=^G, clear=^L, cr=\r, cub1=^Y, cud1=^Z, cuf1=^X,
17041	cup=\020%p2%c%p1%c, cuu1=^W, el=^K, home=^H, ind=\n,
17042	kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^z, kf1=^^q,
17043	kf2=^^r, kf3=^^s, kf4=^^t, kf5=^^u, kf6=^^v, kf7=^^w, kf8=^^x,
17044	kf9=^^y, khome=^H, lf0=f10, nel=\n, rmso=^^E, rmul=^U,
17045	smso=^^D, smul=^T,
17046
17047# Data General 210/211 (and 410?)	from Lee Pearson (umich!lp) via BRL
17048dg210|dg-ansi|Data General 210/211,
17049	am,
17050	cols#80, lines#24,
17051	OTnl=\E[B, clear=\E[2J, ed=\E[J, el=\E[K, kcub1=\E[D,
17052	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
17053	nel=\r\E[H\E[A\n, rmso=\E[0;m, rmul=\E[0;m, smso=\E[7;m,
17054	smul=\E[4;m, use=ansi+cup, use=ansi+local1,
17055
17056# From: Peter N. Wan <ihnp4!gatech!gacsr!wan>
17057# courtesy of Carlos Rucalde of Vantage Software, Inc.
17058# (dg211: this had <cup=\020%r%.%>., which was an ancient termcap hangover.
17059# I suspect the d200 function keys actually work on the dg211, check it out.)
17060dg211|Data General d211,
17061	cnorm=^L, cvvis=^L^R, ht=^I, ind@, kbs=^Y, kf0@, kf1@, kf2@, kf3@,
17062	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, lf0@, nel=\r^Z, rmcup=^L,
17063	rmso=\036E$<0/>, smcup=^L^R, smso=\036D$<5/>, use=dg200,
17064
17065# dg450 from Cornell (not official)
17066dg450|dg6134|Data General 6134,
17067	cub1@, cuf1=^X, use=dg200,
17068
17069# Not official...
17070# Note: lesser Dasher terminals will not work with vi because vi insists upon
17071# having a command to move straight down from any position on the bottom line
17072# and scroll the screen up, or a direct vertical scroll command.  The 460 and
17073# above have both, the D210/211, for instance, has neither.  We must use ANSI
17074# mode rather than DG mode because standard UNIX tty drivers assume that ^H is
17075# backspace on all terminals.  This is not so in DG mode.
17076# (dg460-ansi: removed obsolete ":kn#6:"; also removed ":mu=\EW:", on the
17077# grounds that there is no matching ":ml:"
17078dg460-ansi|Data General Dasher 460 in ANSI-mode,
17079	OTbs, am, msgr, ul,
17080	cols#80, it#8, lines#24,
17081	OTnl=\ED, blink=\E[5m, clear=\E[2J, cub1=^H,
17082	cup=\E[%i%p1%2d;%p2%2dH, dch1=\E[P, dim=\E[2m, ed=\E[J,
17083	el=\E[K, home=\E[H, ht=^I, ich1=\E[@, ind=\E[S, is2=^^F@,
17084	kbs=\E[D, kf0=\E[001z, kf1=\E[002z, kf2=\E[003z,
17085	kf3=\E[004z, kf4=\E[005z, kf5=\E[006z, kf6=\E[007z,
17086	kf7=\E[008z, kf8=\E[009z, kf9=\E[00:z, lf0=f1, lf1=f2,
17087	lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10,
17088	mc0=\E[i, rev=\E[7m, ri=\E[T, rmul=\E[05,
17089	sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;
17090	    %?%p1%p3%|%t;7%;m,
17091	sgr0=\E(B\E[m, smul=\E[4m, u8=\E[5n, u9=\E[0n,
17092	use=ansi+arrows, use=ansi+cpr, use=ansi+idl1,
17093	use=ansi+local1, use=ansi+sgrso,
17094
17095# From: Wayne Throop <mcnc!rti-sel!rtp47!throopw> (not official)
17096# Data General 605x
17097# Ought to work for a Model 6242, Type D210 as well as a 605x.
17098# Note that the cursor-down key transmits ^Z.  Job control users, beware!
17099# This also matches a posted description of something called a `Dasher 100'
17100# so there's a dg100 alias here.
17101# (dg6053: the 4.4BSD file had <cub1=^H>, <cud1=^J>, <cuf1=^S>. -- esr)
17102dg6053-old|dg100|Data General 6053,
17103	OTbs, am, bw, ul,
17104	cols#80, lines#24,
17105	OTbc=^Y, bel=^G, clear=^L, cnorm=^L, cr=\r, cub1=^Y, cud1=^Z,
17106	cuf1=^X, cup=\020%p2%c%p1%c, cuu1=^W, cvvis=^L^R, el=^K,
17107	home=^H, ht=^I, is2=^R, kbs=^Y, kcub1=^Y, kcud1=^Z, kcuf1=^X,
17108	kcuu1=^W, kf0=^^q, kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v,
17109	kf6=^^w, kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L,
17110	rmso=\0^^E, rmul=^U, smcup=^L^R, smso=\0\0\0\0\0\036D,
17111	smul=^T,
17112
17113# (Some performance can be gained over the generic DG terminal type)
17114dg6053|6053|6053-dg|dg605x|605x|605x-dg|d2|d2-dg|Data General DASHER 6053,
17115	xon@,
17116	home=\020\0\0, ll=^P\0^W, use=dg-generic,
17117
17118# Like 6053, but adds reverse video and more keypad and function keys.
17119d200|d200-dg|Data General DASHER D200,
17120	bold=^^D^T, home@, ll@, rev=^^D, rmso=^^E^],
17121	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4
17122	    %t\016%e\017%;%?%p1%p5%|%t\034%e\035%;,
17123	sgr0=^O^U^]^^E, smso=^^D^\, use=dgkeys+15, use=dg6053,
17124
17125# DASHER D210 series terminals in ANSI mode.
17126#	Reverse video, no insert/delete character/line, 7 bits/character only.
17127#
17128# Initialization string 1 sets:
17129#	<0		- scrolling enabled
17130#	<1		- blink enabled
17131#	<4		- print characters regardless of attributes
17132d210|d214|Data General DASHER D210 series,
17133	am, bw, msgr, xon,
17134	cols#80, lines#24,
17135	bel=^G, blink=\E[5m, bold=\E[4;7m, clear=\E[2J, cr=\r,
17136	cub1=^H, dim=\E[2m, ed=\E[J, el=\E[K, el1=\E[1K, ind=\n,
17137	is1=\E[<0;<1;<4l, ll=\E[H\E[A, nel=\n, rev=\E[7m,
17138	rmso=\E[m,
17139	sgr=\E[%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;%?%p1%p3%|
17140	    %p6%|%t7;%;m,
17141	sgr0=\E[m, smso=\E[2;7m, use=ansi+cup, use=ansi+local,
17142	use=ansi+sgrul, use=dgkeys+7b,
17143
17144# DASHER D210 series terminals in DG mode.
17145# Like D200, but adds clear to end-of-screen and needs XON/XOFF.
17146d210-dg|d214-dg|Data General DASHER D210 series in DG mode,
17147	xon,
17148	ed=^^FF, use=d200-dg,
17149
17150# DASHER D211 series terminals in ANSI mode.
17151# Like the D210, but with 8-bit characters and local printer support.
17152#
17153# Initialization string 2 sets:
17154#	\E[2;1;1;1v
17155#		2;1	- 8 bit operations
17156#		1;1	- 8 bit (international) keyboard language
17157#	\E(B		- default primary character set (U.S. ASCII)
17158#	\E)4		- default secondary character set (international)
17159#	^O		- primary character set
17160#
17161d211|d215|Data General DASHER D211 series,
17162	km,
17163	is2=\E[2;1;1;1v\E(B\E)4\017, mc0=\E[i, use=dgkeys+8b,
17164	use=d210,
17165
17166# Initialization string 2 sets:
17167#	\E[2;0;1;0v
17168#		2;0	- 7 bit operations
17169#		1;0	- 7 bit (native) keyboard language
17170#	\E(0		- default character set (the keyboard native language)
17171#	^O		- primary character set
17172d211-7b|d215-7b|Data General DASHER D211 series in 7 bit mode,
17173	km@,
17174	is2=\E[2;0;1;0v\E(0\017, use=dgkeys+7b, use=d211,
17175
17176# Like the D210 series, but adds support for 8-bit characters.
17177#
17178# Reset string 2 sets:
17179#	^^N	- secondary character set
17180#	^^FS0>	- 8 bit international character set
17181#	^^O	- primary character set
17182#	^^FS00	- default character set (matching the native keyboard language)
17183#
17184d211-dg|d215-dg|Data General DASHER D211 series in DG mode,
17185	km,
17186	rs2=\036N\036FS0>\036O\036FS00, use=d210-dg,
17187
17188d216-dg|d216e-dg|d216+dg|d216e+dg|d217-dg|Data General DASHER D216 series in DG mode,
17189	use=d211-dg,
17190
17191# Enhanced DG mode with changes to be more UNIX compatible.
17192d216-unix|d216e-unix|d216+|d216e+|Data General DASHER D216+ in DG-UNIX mode,
17193	mc5i,
17194	it#8,
17195	acsc=a\177j$k"l!m#n)q+t'u&v(w%x*, blink=^^PI,
17196	clear=^^PH, cub1=^^PD, cud1=^^PB, cuf1=^^PC, cuu1=^^PA,
17197	el=^^PE, home=^^PF, hpa=\020%p1%c\177, ht=^I, ind=\n,
17198	is1=^R^C^^P@1, is3=^^Fz0, kHOM=^^Pf, kLFT=^^Pd, kPRT=^^P1,
17199	kRIT=^^Pc, kclr=^^PH, kcub1=^^PD, kcud1=^^PB, kcuf1=^^PC,
17200	kcuu1=^^PA, kel=^^PE, khome=^^PF, kprt=^^P0, mc0=^^F?9,
17201	mc4=^^Fa, mc5=^^F`, rmacs=\036FS00,
17202	rs2=\036N\036FS0E\036O\036FS00,
17203	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;
17204	    \036P%?%p4%tI%eJ%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t1
17205	    1%e00%;,
17206	sgr0=\036PJ\025\035\036E\036FS00, smacs=\036FS11,
17207	vpa=\020\177%p1%c, use=dgkeys+15, use=d216-dg,
17208d216-unix-25|d216+25|Data General DASHER D216+ in DG-UNIX mode with 25 lines,
17209	lines#25,
17210	is3=^^Fz2, use=d216+,
17211
17212d217-unix|Data General DASHER D217 in DG-UNIX mode,
17213	use=d216-unix,
17214d217-unix-25|Data General DASHER D217 in DG-UNIX mode with 25 lines,
17215	use=d216-unix-25,
17216
17217# DASHER D220 color terminal in ANSI mode.
17218# Like the D470C but with fewer colors and screen editing features.
17219#
17220# Initialization string 1 sets:
17221#	\E[<0;<1;<4l
17222#		<0	- scrolling enabled
17223#		<1	- blink enabled
17224#		<4	- print characters regardless of attributes
17225#	\E[m		- all attributes off
17226# Reset string 1 sets:
17227#	\Ec		- initial mode defaults (RIS)
17228#
17229d220|Data General DASHER D220,
17230	mc5i@,
17231	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
17232	use=dg+color8, use=d470c,
17233
17234d220-7b|Data General DASHER D220 in 7 bit mode,
17235	mc5i@,
17236	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
17237	use=dg+color8, use=d470c-7b,
17238
17239# Initialization string 3 sets:
17240#	- default cursor (solid rectangle)
17241# Reset string 2 sets:
17242#	^^N     - secondary character set
17243#	^^FS0>  - 8 bit international character set
17244#	^^O     - primary character set
17245#       ^^FS00  - default character set (matching the native keyboard language)
17246#
17247d220-dg|Data General DASHER D220 color terminal in DG mode,
17248	mc5i@,
17249	dl1@, home@, il1@, is2@, is3=^^FQ2, ll@, mc4@, mc5@, rs1@,
17250	rs2=\036N\036FS0>\036O\036FS00, use=dgmode+color8,
17251	use=d470c-dg,
17252
17253# DASHER D230C color terminal in ANSI mode.
17254# Like the D220 but with minor ANSI compatibility improvements.
17255#
17256d230c|d230|Data General DASHER D230C,
17257	blink=\E[5;50m, bold=\E[4;7;50m, dim=\E[2;50m, nel=\r\n,
17258	rev=\E[7;50m, rmkx=\E[2;1v, rmso=\E[50m, rmul=\E[50m,
17259	sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}
17260	    %;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e
17261	    %{0}%;%PD50m\E)%?%p9%t6\016%e4\017%;,
17262	sgr0=\E[50m\E)4\017, smkx=\E[2;0v, smso=\E[2;7;50m,
17263	smul=\E[4;50m, use=dgkeys+7b, use=d220,
17264
17265d230c-dg|d230-dg|Data General DASHER D230C in DG mode,
17266	use=d220-dg,
17267
17268# DASHER D400/D450 series terminals.
17269# These add intelligent features like insert/delete to the D200 series.
17270#
17271# Initialization string 2 sets:
17272#	^^FQ2		- default cursor (solid rectangle)
17273#	^^FW		- character protection disabled
17274#	^^FJ		- normal (80 column) mode
17275#	^^F\^		- horizontal scrolling enabled (for alignment)
17276#	^^FX004?	- margins at columns 0 and 79
17277#	^^F]		- horizontal scrolling disabled
17278#	^^O		- primary character set
17279#	^^FS00		- default character set (the keyboard native language)
17280#	- (should reset scrolling regions, but that glitches the screen)
17281# Reset string 1 sets:
17282#	^^FA		- all terminal defaults except scroll rate
17283# Reset string 2 sets:
17284#	^^F]		- horizontal scrolling disabled
17285#	^^FT0		- jump scrolling
17286#
17287d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series,
17288	mc5i,
17289	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=^^FQ0, cnorm=^^FQ2,
17290	dch1=^^K, dl1=^^FI, enacs=\036N\036FS11\036O, home=^^FG,
17291	hpa=\020%p1%c\177, ich1=^^J, il1=^^FH,
17292	is2=\036FQ2\036FW\036FJ\036F\^\036FX004?\036F]\036O
17293	    \036FS00,
17294	ll=^^FG^W, mc4=^^Fa, mc5=^^F`, ri=^^I, rmacs=^^O, rs1=^^FA,
17295	rs2=\036F]\036FT0,
17296	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4
17297	    %t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036%?%p9%tN%eO%;,
17298	sgr0=^O^U^]^^E^^O, smacs=^^N, vpa=\020\177%p1%c,
17299	use=d210-dg,
17300
17301# DASHER D410/D460 series terminals in ANSI mode.
17302# These add a large number of intelligent terminal features.
17303#
17304# Initialization string 1 sets:
17305#	\E[<0;<1;<2;<4l
17306#		<0	- scrolling enabled
17307#		<1	- blink enabled
17308#		<2	- horizontal scrolling enabled (for alignment)
17309#		<4	- print characters regardless of attributes
17310#	\E[5;0v		- normal (80 column) mode
17311#	\E[1;1;80w	- margins at columns 1 and 80
17312#	\E[1;6;<2h
17313#		1	- print all characters even if protected
17314#		6	- character protection disabled
17315#		<2	- horizontal scrolling disabled
17316#	- (should reset scrolling regions, but that glitches the screen)
17317#
17318# Initialization string 2 sets:
17319#	\E[3;2;2;1;1;1v
17320#		3;2	- default cursor (solid rectangle)
17321#		2;1	- 8 bit operations
17322#		1;1	- international keyboard language
17323#	\E(B		- default primary character set (U.S. ASCII)
17324#	\E)4		- default secondary character set (international)
17325#	^O		- primary character set
17326#
17327#	Reset string 1 sets:
17328#	\Ec		- initial mode defaults (RIS)
17329#	\E[<2h		- horizontal scrolling disabled
17330#
17331# Reset string 2 sets:
17332#	\E[4;0;2;1;1;1v
17333#		4;0	- jump scrolling
17334#		2;1	- 8 bit operations
17335#		1;1	- 8 bit (international) keyboard language
17336#	\E(B		- default primary character set (U.S. ASCII)
17337#	\E)4		- default secondary character set (international)
17338#
17339d410|d411|d460|d461|Data General DASHER D410/D460 series,
17340	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v,
17341	cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@,
17342	ich1=\E[@,
17343	is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h,
17344	is2=\E[3;2;2;1;1;1v\E(B\E)4\017, ri=\EM,
17345	rmacs=\E)4\017, rs1=\Ec\E[<2h,
17346	rs2=\E[4;0;2;1;1;1v\E(B\E)4,
17347	sgr=\E[%?%p1%t2;7%;%?%p3%t7;%;%?%p4%t5;%;%?%p2%t4;%;%?%p1%p5
17348	    %|%t2;%;%?%p6%t4;7;%;m\E)%?%p9%t6\016%e4\017%;,
17349	sgr0=\E[m\E)4\017, smacs=\E)6\016, use=d211,
17350	use=ansi+idl, use=ansi+pp,
17351
17352# Initialization string 2 sets:
17353#	\E[3;2;2;0;1;0v
17354#		3;2	- default cursor (solid rectangle)
17355#		2;0	- 7 bit operations
17356#		1;0	- 7 bit (native) keyboard language
17357#	\E(0		- default character set (the keyboard native language)
17358#	^O		- primary character set
17359#
17360# Reset string 2 sets:
17361#	\E[4;0;2;0;1;0v
17362#		4;0	- jump scrolling
17363#		2;0	- 7 bit operations
17364#		1;0	- 7 bit (native) keyboard language
17365#	\E(0		- default character set (the keyboard native language)
17366#
17367d410-7b|d411-7b|d460-7b|d461-7b|Data General DASHER D410/D460 series in 7 bit mode,
17368	km@,
17369	enacs=\E)6, is2=\E[3;2;2;0;1;0v\E(0\017, rmacs=^O,
17370	rs2=\E[4;0;2;0;1;0v\E(0,
17371	sgr=\E[%?%p1%p5%|%t2;%;%?%p2%p6%|%t4;%;%?%p1%p3%|%p6%|%t7;%;
17372	    %?%p4%t5;%;m%?%p9%t\016%e\017%;,
17373	sgr0=\E[m\017, smacs=^N, use=dgkeys+7b, use=d410,
17374
17375d410-dg|d460-dg|d411-dg|d461-dg|Data General DASHER D410/D460 series in DG mode,
17376	km,
17377	enacs@, rmacs=\036FS00,
17378	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4
17379	    %t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e0
17380	    0%;,
17381	sgr0=\017\025\035\036E\036FS00, smacs=\036FS11,
17382	use=d400-dg,
17383
17384# DASHER D410/D460 series terminals in wide (126 columns) ANSI mode.
17385#
17386# Initialization string 1 sets:
17387#	\E[<0;<1;<2;<4l
17388#		<0	- scrolling enabled
17389#		<1	- blink enabled
17390#		<2	- horizontal scrolling enabled (for alignment)
17391#		<4	- print characters regardless of attributes
17392#	\E[5;1v		- compressed (135 column) mode
17393#	\E[1;1;126	- margins at columns 1 and 126
17394#	\E[1;6;<2h
17395#		1	- print all characters even if protected
17396#		6	- character protection disabled
17397#		<2	- horizontal scrolling disabled
17398#	- (should reset scrolling regions, but that glitches the screen)
17399#
17400# Reset string 1 sets:
17401#	\Ec		- initial mode defaults (RIS)
17402#	\E[5;1v		- compressed (135 column) mode
17403#	\E[1;1;126w	- margins at columns 1 and 126
17404#	\E[<2h		- horizontal scrolling disabled
17405#
17406d410-w|d411-w|d460-w|d461-w|Data General DASHER D410/D460 series in wide mode,
17407	cols#126,
17408	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
17409	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410,
17410
17411d410-7b-w|d411-7b-w|d460-7b-w|d461-7b-w|Data General DASHER D410/D460 series in wide 7 bit mode,
17412	cols#126,
17413	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
17414	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410-7b,
17415
17416d412-dg|d462-dg|d462e-dg|d412+dg|d462+dg|d413-dg|d463-dg|Data General DASHER D412/D462 series in DG mode,
17417	use=d410-dg,
17418
17419# These add intelligent features like scrolling regions.
17420d412-unix|d462-unix|d412+|d462+|Data General DASHER D412+/D462+ series in Unix mode,
17421	civis=^^FQ0, clear=^^FE, cnorm=^^FQ5,
17422	cup=\036FP%p2%2.2X%p1%2.2X, dch1=^^K, dl1=^^FI,
17423	home=^^FG, hpa=\036FP%p1%2.2XFF, ich1=^^J, il1=^^FH,
17424	is2=\036FQ5\036FW\036FJ\036F\^\036FX004F\036O
17425	    \036FS00,
17426	ll=\036FG\036PA, mc0=^A, rc=\036F}11, ri=^^I,
17427	rs1=\036FA\036FT0, rs2=^^P@1, sc=\036F}10,
17428	vpa=\036FPFF%p1%2.2X,
17429	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2
17430	     %>%t000%;\036FX%p3%2.2X%p4%2.2X,
17431	use=d216+,
17432d412-unix-w|d462-unix-w|d412+w|d462+w|Data General DASHER D412+/D462+ series in wide Unix mode,
17433	cols#132,
17434	is2=\036FQ5\036FW\036FK\036F\^\036FX0083\036O
17435	    \036FS00,
17436	rs2=\036P@1\036FK\036FX0083,
17437	wind=\036FB%?%p1%t%p1%2.2X1%;%p2%p1%-%{1}%+%2.2X1%?%{23}%p2
17438	     %>%t001%;\036FX%p3%2.2X%p4%2.2X,
17439	use=d412-unix,
17440d412-unix-25|d462-unix-25|d412+25|d462+25|Data General DASHER D412+/D462+ series in Unix mode with 25 lines,
17441	lines#25,
17442	is3=^^Fz2,
17443	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{24}%p2
17444	     %>%t000%;\036FX%p3%2.2X%p4%2.2X,
17445	use=d462+,
17446d412-unix-s|d462-unix-s|d412+s|d462+s|Data General DASHER D412+/D462+ in Unix mode with status line,
17447	eslok, hs,
17448	clear=\036FG\036PH, fsl=\036F}01\022,
17449	is3=\036Fz2\036F}00\036FB180000\036F}01, ll@,
17450	tsl=\036F}00\036FP%p1%2.2X18\036PG,
17451	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2
17452	     %>%t%{23}%p2%-%2.2X0%;000\036FX%p3%2.2X%p4%2.2X,
17453	use=d462+,
17454
17455#	Relative cursor motions are confined to the current window,
17456#	which is not what the scrolling region specification expects.
17457#	Thus, relative vertical cursor positioning must be deleted.
17458d412-unix-sr|d462-unix-sr|d412+sr|d462+sr|Data General DASHER D412+/D462+ in Unix mode with scrolling region,
17459	csr=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>
17460	    %t000%;,
17461	cud1@, cuu1@, ll@, use=d462+,
17462
17463d413-unix|d463-unix|Data General DASHER D413/D463 series in DG-UNIX mode,
17464	use=d412-unix,
17465d413-unix-w|d463-unix-w|Data General DASHER D413/D463 series in wide DG-UNIX mode,
17466	use=d412-unix-w,
17467d413-unix-25|d463-unix-25|Data General DASHER D413/D463 series in DG-UNIX mode with 25 lines,
17468	use=d412-unix-25,
17469d413-unix-s|d463-unix-s|Data General DASHER D413/D463 in DG-UNIX mode with status line,
17470	use=d412-unix-s,
17471d413-unix-sr|d463-unix-sr|Data General DASHER D413/D463 in DG-UNIX mode with scrolling region,
17472	use=d412-unix-sr,
17473
17474d414-unix|d464-unix|Data General D414/D464 in DG-UNIX mode,
17475	use=d413-unix,
17476d414-unix-w|d464-unix-w|Data General D414/D464 in wide DG-UNIX mode,
17477	use=d413-unix-w,
17478d414-unix-25|d464-unix-25|Data General D414/D464 in DG-UNIX mode with 25 lines,
17479	use=d413-unix-25,
17480d414-unix-s|d464-unix-s|Data General D414/D464 in DG-UNIX mode with status line,
17481	use=d413-unix-s,
17482d414-unix-sr|d464-unix-sr|Data General D414/D464 in DG-UNIX mode with scrolling region,
17483	use=d413-unix-sr,
17484
17485d430c-dg|d430-dg|Data General D430C in DG mode,
17486	use=d413-dg, use=dg+fixed,
17487d430c-dg-ccc|d430-dg-ccc|Data General D430C in DG mode with configurable colors,
17488	use=d413-dg, use=dg+ccc,
17489
17490d430c-unix|d430-unix|Data General D430C in DG-UNIX mode,
17491	use=d413-unix, use=dgunix+fixed,
17492d430c-unix-w|d430-unix-w|Data General D430C in wide DG-UNIX mode,
17493	use=d413-unix-w, use=dgunix+fixed,
17494d430c-unix-25|d430-unix-25|Data General D430C in DG-UNIX mode with 25 lines,
17495	use=d413-unix-25, use=dgunix+fixed,
17496d430c-unix-s|d430-unix-s|Data General D430C in DG-UNIX mode with status line,
17497	use=d413-unix-s, use=dgunix+fixed,
17498d430c-unix-sr|d430-unix-sr|Data General D430C in DG-UNIX mode with scrolling region,
17499	use=d413-unix-sr, use=dgunix+fixed,
17500d430c-unix-ccc|d430-unix-ccc|Data General D430C in DG-UNIX mode with configurable colors,
17501	use=d413-unix, use=dgunix+ccc,
17502d430c-unix-w-ccc|d430-unix-w-ccc|Data General D430C in wide DG-UNIX mode with configurable colors,
17503	use=d413-unix-w, use=dgunix+ccc,
17504d430c-unix-25-ccc|d430-unix-25-ccc|Data General D430C in DG-UNIX mode with 25 lines and configurable colors,
17505	use=d413-unix-25, use=dgunix+ccc,
17506d430c-unix-s-ccc|d430-unix-s-ccc|Data General D430C in DG-UNIX mode with status line and configurable colors,
17507	use=d413-unix-s, use=dgunix+ccc,
17508d430c-unix-sr-ccc|d430-unix-sr-ccc|Data General D430C in DG-UNIX mode with scrolling region and configurable colors,
17509	use=d413-unix-sr, use=dgunix+ccc,
17510
17511# DASHER D470C color terminal in ANSI mode.
17512# Like the D460 but with 16 colors and without a compressed mode.
17513#
17514# Initialization string 1 sets:
17515#	\E[<0;<1;<2;<4l
17516#		<0	- scrolling enabled
17517#		<1	- blink enabled
17518#		<2	- horizontal scrolling enabled (for alignment)
17519#		<4	- print characters regardless of attributes
17520#	\E[1;1;80w	- margins at columns 1 and 80
17521#	\E[1;6;<2h
17522#		1	- print all characters even if protected
17523#		6	- character protection disabled
17524#		<2	- horizontal scrolling disabled
17525#	- (should reset scrolling regions, but that glitches the screen)
17526#
17527d470c|d470|Data General DASHER D470C,
17528	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
17529	sgr=\E[%?%p3%t7;%;%?%p4%t5;%;%?%p2%t4;%;%?%p6%t4;7;%;%?%p1%t
17530	    2;7;%;%?%p5%t2;%;m\E)%?%p9%t6\016%e4\017%;,
17531	use=dg+color, use=d460,
17532
17533d470c-7b|d470-7b|Data General DASHER D470C in 7 bit mode,
17534	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
17535	sgr=\E[%?%p3%t7;%;%?%p4%t5;%;%?%p2%t4;%;%?%p6%t4;7;%;%?%p1%t
17536	    2;7;%;%?%p5%t2;%;m%?%p9%t\016%e\017%;,
17537	use=dg+color, use=d460-7b,
17538
17539# Initialization string 2 sets:
17540#	^^FQ2		- default cursor (solid rectangle)
17541#	^^FW		- character protection disabled
17542#	^^F\^		- horizontal scrolling enabled (for alignment)
17543#	^^FX004?	- margins at columns 0 and 79
17544#	^^F]		- horizontal scrolling disabled
17545#	^^O		- primary character set
17546#	^^FS00		- default character set (the keyboard native language)
17547#	- (should reset scrolling regions, but that glitches the screen)
17548#
17549d470c-dg|d470-dg|Data General DASHER D470C in DG mode,
17550	is2=\036FQ2\036FW\036F\^\036FX004?\036F]\036O
17551	    \036FS00,
17552	use=dgmode+color, use=d460-dg,
17553
17554# DASHER D555 terminal in ANSI mode.
17555# Like a D411, but has an integrated phone.
17556d555|Data General DASHER D555,
17557	use=d411,
17558d555-7b|Data General DASHER D555 in 7-bit mode,
17559	use=d411-7b,
17560d555-w|Data General DASHER D555 in wide mode,
17561	use=d411-w,
17562d555-7b-w|Data General DASHER D555 in wide 7-bit mode,
17563	use=d411-7b-w,
17564d555-dg|Data General DASHER D555 series in DG mode,
17565	use=d411-dg,
17566
17567# DASHER D577 terminal in ANSI mode.
17568# Like a D411, but acts as a keyboard for serial printers ("KSR" modes).
17569d577|Data General DASHER D577,
17570	use=d411,
17571d577-7b|Data General DASHER D577 in 7-bit mode,
17572	use=d411-7b,
17573d577-w|Data General DASHER D577 in wide mode,
17574	use=d411-w,
17575d577-7b-w|Data General DASHER D577 in wide 7-bit mode,
17576	use=d411-7b-w,
17577
17578d577-dg|d578-dg|Data General DASHER D577/D578 series in DG mode,
17579	use=d411-dg,
17580
17581# DASHER D578 terminal.
17582# Like a D577, but without compressed mode; like a D470C in this respect.
17583#
17584# Initialization string 1 sets:
17585#	\E[<0;<1;<2;<4l
17586#		<0	- scrolling enabled
17587#		<1	- blink enabled
17588#		<2	- horizontal scrolling enabled (for alignment)
17589#		<4	- print characters regardless of attributes
17590#	\E[1;1;80w	- margins at columns 1 and 80
17591#	\E[1;6;<2h
17592#		1	- print all characters even if protected
17593#		6	- character protection disabled
17594#		<2	- horizontal scrolling disabled
17595#	- (should reset scrolling regions, but that glitches the screen)
17596#
17597d578|Data General DASHER D578,
17598	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577,
17599d578-7b|Data General DASHER D578 in 7-bit mode,
17600	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577-7b,
17601
17602#### Datamedia (dm)
17603#
17604# Datamedia was headquartered in Nashua, New Hampshire until it went
17605# out of business in 1993, but the ID plates on the terminals referred
17606# to the factory in Pennsauken, NJ.  The factory was sold to a PCB board
17607# manufacturer which threw out all information about the terminals.
17608#
17609
17610cs10|colorscan|Datamedia Color Scan 10,
17611	msgr,
17612	cols#80, lines#24,
17613	bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
17614	cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ind=\n, kcub1=\E[D,
17615	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, sgr0=\E[m,
17616	use=ansi+erase, use=ansi+sgrso, use=ansi+sgrul,
17617	use=vt100+pf1-pf4,
17618
17619cs10-w|Datamedia Color Scan 10 with 132 columns,
17620	cols#132,
17621	cup=\E[%i%p1%02d;%p2%03dH, use=cs10,
17622
17623# (dm1520: removed obsolete ":ma=^\ ^_^P^YH:" -- esr)
17624dm1520|dm1521|Datamedia 1520,
17625	OTbs, am, xenl,
17626	cols#80, it#8, lines#24,
17627	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^\,
17628	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
17629	home=^Y, ht=^I, ind=\n, kcub1=^H, kcud1=\n, kcuf1=^\, kcuu1=^_,
17630	khome=^Y,
17631# dm2500: this terminal has both <ich> and <smir>. Applications using
17632# termcap/terminfo directly (rather than through ncurses) might be confused.
17633dm2500|datamedia2500|Datamedia 2500,
17634	OTbs, OTnc,
17635	cols#80, lines#24,
17636	bel=^G, clear=^^^^^?, cub1=^H, cud1=\n, cuf1=^\,
17637	cup=\014%p2%{96}%^%c%p1%{96}%^%c, cuu1=^Z,
17638	dch1=\020\010\030\035$<10*>,
17639	dl1=\020\032\030\035$<10*>, el=^W, home=^B,
17640	ich1=\020\034\030\035$<10*>,
17641	il1=\020\n\030\035\030\035$<15>, ind=\n, pad=\377,
17642	rmdc=^X^], rmir=\377\377\030\035$<10>, rmso=^X^],
17643	smdc=^P, smir=^P, smso=^N,
17644# dmchat is like DM2500, but DOES need "all that padding" (jcm 1/31/82)
17645# also, has a meta-key.
17646# From: <goldberger@su-csli.arpa>
17647# (dmchat: ":MT:" changed to ":km:" -- esr)
17648dmchat|dmchat version of Datamedia 2500,
17649	km,
17650	dl1=\020\032\030\035$<2/>,
17651	il1=\020\n\030\035\030\035$<1*/>, use=dm2500,
17652# (dm3025: ":MT:" changed to ":km:" -- esr)
17653dm3025|Datamedia 3025a,
17654	OTbs, km,
17655	cols#80, it#8, lines#24,
17656	bel=^G, clear=\EM$<2>, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
17657	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
17658	dch1=\010$<6>, dl1=\EP\EA\EQ$<130>, ed=\EJ$<2>, el=\EK,
17659	home=\EH, ht=^I, il1=\EP\n\EQ$<130>, ind=\n, ip=$<6>,
17660	is2=\EQ\EU\EV, rmdc=\EQ, rmir=\EQ, rmso=\EO0, smdc=\EP,
17661	smir=\EP, smso=\EO1,
17662dm3045|Datamedia 3045a,
17663	am, eo, km@, ul, xenl,
17664	dch1=\EB$<6>, dl1@, il1@, is2=\EU\EV, kcuf1=\EC, kcuu1=\EA,
17665	kf0=\Ey\r, kf9=\Ex\r, khome=\EH, pad=^?, rmdc@, rmir=\EP,
17666	rmso@, smdc@, smso@, use=dm3025, use=hp+pfk+cr,
17667# Datamedia DT80 soft switches:
17668# 1	0=Jump  1=Smooth
17669#	Autorepeat	0=off  1=on
17670#	Screen		0=Dark 1=light
17671#	Cursor		0=u/l  1=block
17672#
17673# 2	Margin Bell	0=off  1=on
17674#	Keyclick	0=off  1=on
17675#	ANSI/VT52	0=VT52 1=ANSI
17676#	Xon/Xoff	0=Off  1=On
17677#
17678# 3	Shift3		0=Hash 1=UK Pound
17679#	Wrap		0=Off  1=On
17680#	Newline		0=Off  1=On
17681#	Interlace	0=Off  1=On
17682#
17683# 4	Parity		0=Odd  1=Even
17684#	Parity		0=Off  1=On
17685#	Bits/Char	0=7    1=8
17686#	Power		0=60Hz 1=50Hz
17687#
17688# 5	Line Interface  0=EIA  1=Loop
17689#	Aux Interface	0=EIA  1=Loop
17690#	Local Copy	0=Off  1=On
17691#	Spare
17692#
17693# 6	Aux Parity	0=Odd  1=Even
17694#	Aux Parity	0=Off  1=On
17695#	Aux Bits/Char	0=7    1=8
17696#	CRT Saver	0=Off  1=On
17697# dm80/1 is a VT100 lookalike, but it doesn't seem to need any padding.
17698dm80|dmdt80|dt80|Datamedia dt80/1,
17699	clear=\E[2J\E[H, cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH,
17700	cuu1=\E[A, ed=\E[J, el=\E[K, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
17701	ri=\EM, sgr0=\E[m\017$<2>, use=ansi+sgrso,
17702	use=ansi+sgrul, use=vt100+4bsd,
17703# except in 132 column mode, where it needs a little padding.
17704# This is still less padding than the VT100, and you can always turn on
17705# the ^S/^Q handshaking, so you can use VT100 flavors for things like
17706# reverse video.
17707dm80w|dmdt80w|dt80w|Datamedia dt80/1 in 132 char mode,
17708	cols#132,
17709	clear=\E[H\E[2J$<50/>, cud1=\n,
17710	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<5/>,
17711	ed=\E[0J$<20/>, el=\E[0K$<20/>, use=dm80,
17712# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
17713dt80-sas|Datamedia DT803/DTX for SAS usage,
17714	am, bw,
17715	cols#80, lines#24,
17716	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
17717	bel=^G, clear=^L, cr=\r,
17718	csr=\E=%p1%{32}%+%c%{32}%c\E#1\E=%p2%{32}%+%c%{32}%c\E#2,
17719	cub1=^H, cud1=\EB, cuf1=^\,
17720	cup=\E=%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, dl1=\EM, ed=^K,
17721	el=^], ff=^L, home=^Y, ht=^I, hts=\E'1, il1=\EL, ind=\EB,
17722	is2=\E)0\E<\EP\E'0\E$2, kclr=^L, kcub1=^H, kcud1=\n,
17723	kcuf1=^\, kcuu1=^_, ked=^K, kel=^], khome=^Y, mc4=^O, mc5=^N,
17724	rev=\E$2\004, ri=\EI, rmacs=\EG, rmso=^X, sgr0=^X, smacs=\EF,
17725	smso=\E$2\004, tbc=\E'0,
17726
17727# Datamedia Excel 62, 64 from Gould/SEL UTX/32 via BRL
17728# These aren't end-all Excel termcaps; but do insert/delete char/line
17729# and name some of the extra function keys.  (Mike Feldman ccvaxa!feldman)
17730# The naming convention has been bent somewhat, with the use of E? (where
17731# E is for 'Excel') as # a name.  This was done to distinguish the entries
17732# from the other Datamedias in use here, and yet to associate a model of
17733# the Excel terminals with the regular datamedia terminals that share
17734# major characteristics.
17735excel62|excel64|Datamedia Excel 62,
17736	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=\n, kf5=\EOu, kf6=\EOv,
17737	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
17738	use=dt80,
17739excel62-w|excel64-w|Datamedia Excel 62 in 132 char mode,
17740	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=\n, kf5=\EOu, kf6=\EOv,
17741	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
17742	use=dt80w,
17743excel62-rv|excel64-rv|Datamedia Excel 62 in reverse video mode,
17744	dch1=\E[P, flash=\E[?5l\E[?5h, kbs=^H, kcub1=^H, kcud1=\n,
17745	kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l,
17746	smir=\E[4h, use=dt80,
17747
17748#### Falco
17749#
17750#	Falco Data Products
17751#	440 Potrero Avenue
17752#	Sunnyvale, CA 940864-196
17753#	Vox: (800)-325-2648
17754#	Fax: (408)-745-7860
17755#	Net: techsup@charm.sys.falco.com
17756#
17757# Current Falco models as of 1995 are generally ANSI-compatible and support
17758# emulations of DEC VT-series, Wyse, and TeleVideo types.
17759#
17760
17761# Test version for Falco ts-1. See <arpavax.hickman@ucb> for info
17762# This terminal was released around 1983 and was discontinued long ago.
17763# The standout and underline highlights are the same.
17764falco|ts1|ts-1|Falco ts-1,
17765	OTbs, am,
17766	cols#80, it#8, lines#24,
17767	bel=^G, clear=\E*, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
17768	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
17769	dl1=\ER, ed=\EY, el=\ET\EG0\010, home=^^, ht=^I, il1=\EE,
17770	ind=\n, is2=\Eu\E3, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
17771	kf0=^A0\r, rmir=\Er, rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0,
17772	smir=\Eq, smso=\Eg1, smul=\Eg1,
17773falco-p|ts1p|ts-1p|Falco ts-1 with paging option,
17774	OTbs, am, da, db, mir, msgr, ul,
17775	cols#80, it#8, lines#24,
17776	bel=^G, cbt=\EI, clear=\E*, cr=\r, cub1=^H,
17777	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, dch1=\EW, dl1=\ER,
17778	ed=\EY, el=\ET\EG0\010\Eg0, ht=^I, il1=\EE, ind=\n,
17779	is2=\EZ\E3\E_c, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
17780	kcuu1=\E[A, khome=\E[H, rmcup=\E_b, rmir=\Er, rmso=\Eg0,
17781	rmul=\Eg0, sgr0=\Eg0, smcup=\E_d, smir=\Eq, smso=\Eg4,
17782	smul=\Eg1, use=ansi+local1,
17783
17784# (ts100: I added <rmam>/<smam> based on the init string -- esr)
17785ts100|ts100-sp|Falco ts100-sp,
17786	mir, xenl, xon,
17787	vt#3,
17788	cub1=^H, cud1=\n, cuf1=\E[C$<2>, cuu1=\E[A$<2>, dch1=\E~W,
17789	dl1=\E~R, ich1=\E~Q, il1=\E~E, is1=\E~)\E~ea, kcub1=\EOD,
17790	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmam=\E[?7l,
17791	rmkx=\E[?1l\E>,
17792	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smam=\E[?7h,
17793	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+local,
17794	use=decid+cpr, use=vt100+4bsd, use=vt100+fnkeys,
17795
17796ts100-ctxt|Falco ts-100 saving context,
17797	rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
17798
17799#### Florida Computer Graphics
17800#
17801
17802# Florida Computer Graphics Beacon System, using terminal emulator program
17803# "host.com", as provided by FCG.  This description is for an early release
17804# of the "host" program.  Known bug: <ed> clears the whole screen, so it's
17805# commented out.
17806
17807# From: David Bryant <cbosg!djb> 1/7/83
17808beacon|FCG Beacon System,
17809	am, da, db,
17810	cols#80, lines#32,
17811	bel=\ESTART\r\E37\r\EEND\r$<1>,
17812	blink=\ESTART\r\E61\,1\r\EEND\r, clear=\EZ$<10>, cr=\r,
17813	cub1=^H, cud1=\n, cuf1=\EV,
17814	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=\EU,
17815	dch1=\EW, dl1=\ER, el=\ET, home=\EH$<10>, ich1=\EQ, il1=\EE,
17816	ind=\n, rev=\ESTART\r\E59\,1\r\EEND\r, rmcup=,
17817	rmso=\ESTART\r\E70\,0\r\EEND\r$<20>,
17818	rmul=\ESTART\r\E60\,0\r\EEND\r,
17819	sgr0=\ESTART\r\E78\r\E70\,0\r\EEND\r$<20>,
17820	smcup=\ESTART\r\E2\,0\r\E12\r\EEND\r$<10>,
17821	smso=\ESTART\r\E70\,6\r\EEND\r$<20>,
17822	smul=\ESTART\r\E60\,1\r\EEND\r,
17823
17824#### Fluke
17825#
17826
17827# The f1720a differences from ANSI: no auto margin, destructive
17828# tabs, # of lines, funny highlighting and underlining
17829f1720|f1720a|fluke 1720A,
17830	xt,
17831	cols#80, lines#16, xmc#1,
17832	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H,
17833	cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, ind=\ED,
17834	is2=\E[H\E[2J, kcub1=^_, kcud1=^], kcuf1=^^, kcuu1=^\,
17835	ri=\EM, sgr0=\E[m, use=ansi+local1, use=ansi+sgrso,
17836	use=ansi+sgrul,
17837
17838#### Liberty Electronics (Freedom)
17839#
17840#	Liberty Electronics
17841#	48089 Fremont Blvd
17842#	Fremont CA 94538
17843#	Vox: (510)-623-6000
17844#	Fax: (510)-623-7021
17845
17846# From: <faletti@berkeley.edu>
17847# (f100: added empty <acsc> to suppress a tic warning;
17848# made this relative to adm+sgr -- note that <invis> isn't
17849# known to work for f100 but does on the f110. --esr)
17850f100|freedom|freedom100|Liberty Freedom model 100,
17851	OTbs, am, bw, hs, mir, msgr, xon,
17852	cols#80, lines#24,
17853	acsc=, bel=^G, cbt=\EI, clear=^Z, cr=\r, cub1=^H, cud1=\n,
17854	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
17855	dch1=\EW, dl1=\ER$<11.5*>, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
17856	flash=\Eb$<200>\Ed, fsl=\r, home=^^, hpa=\E]%p1%{32}%+%c,
17857	ht=^I, hts=\E1, il1=\EE$<8.5*>, ind=\n, ip=$<6>,
17858	is2=\Eg\Ef\r\Ed, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V,
17859	kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r, kf2=^AA\r,
17860	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
17861	kf8=^AG\r, kf9=^AH\r, khome=^^, ri=\Ej, rmacs=\E$, rmir=\Er,
17862	smacs=\E%%, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
17863	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
17864f100-rv|freedom-rv|Liberty Freedom 100 in reverse video,
17865	flash=\Ed$<200>\Eb, is2=\Eg\Ef\r\Eb, use=f100,
17866# The f110 and f200 have problems with vi(1).  They use the ^V
17867# code for the down cursor key. When kcud1 is defined in terminfo
17868# as ^V, the Control Character Quoting capability (^V in insert mode)
17869# is lost! It cannot be remapped in vi because it is necessary to enter
17870# a ^V to, to quote the ^V that is being remapped!!!
17871#
17872# f110/f200 users will have to decide whether
17873# to lose the down cursor key or the quoting capability. We will opt
17874# initially for leaving the quoting capability out, since use of VI
17875# is not generally applicable to most interactive applications
17876# (f110: added <ht>, <khome> & <kcbt> from f100 -- esr)
17877f110|freedom110|Liberty Freedom 110,
17878	bw@, eslok,
17879	it#8, wsl#80,
17880	blink=\EG2, bold=\EG0, civis=\E.1, cnorm=\E.2, cud1=^V,
17881	dim=\EG@, dl1=\ER, dsl=\Ef\r, flash=\Eb$<200/>\Ed, il1=\EE,
17882	ip@, is2@, kclr=^^, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET,
17883	kf0=^AI\r, kf10@, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
17884	ri=\EJ, rmacs=\E%%, rmir=\Er\EO, smacs=\E$, smir=\EO\Eq,
17885	smso=\EG<, tsl=\Ef, use=f100,
17886f110-14|Liberty Freedom 110 14inch,
17887	dch1@, use=f110,
17888f110-w|Liberty Freedom 110 - 132 cols,
17889	cols#132, use=f110,
17890f110-14w|Liberty Freedom 110 14in/132 cols,
17891	cols#132,
17892	dch1@, use=f110,
17893# (f200: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
17894f200|freedom200|Liberty Freedom 200,
17895	OTbs, am, eslok, hs, mir, msgr, xon,
17896	cols#80, it#8, lines#24, wsl#80,
17897	acsc=, bel=^G, blink=\EG2, bold=\EG0, cbt=\EI, civis=\E.0,
17898	clear=^Z, cnorm=\E.1, cr=\r,
17899	csr=\Em0%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^V,
17900	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
17901	dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET,
17902	flash=\Eo$<200/>\En, fsl=\r, home=^^,
17903	hpa=\E]%p1%{32}%+%c, hts=\E1, il1=\EE, ind=\n, kbs=^H,
17904	kclr=^^, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
17905	kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
17906	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
17907	kf8=^AG\r, kf9=^AH\r, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
17908	ri=\EJ, rmacs=\E%%, rmir=\Er, smacs=\E$, smir=\Eq, smso=\EG<,
17909	tbc=\E3, tsl=\Ef, vpa=\E[%p1%{32}%+%c, use=adm+sgr,
17910f200-w|Liberty Freedom 200 - 132 cols,
17911	cols#132, use=f200,
17912# The f200 has the ability to reprogram the down cursor key. The key is
17913# reprogrammed to ^J (linefeed). This value is remembered in non-volatile RAM,
17914# so powering the terminal off and on will not cause the change to be lost.
17915f200vi|Liberty Freedom 200 for vi,
17916	flash=\Eb$<200/>\Ed, kcud1=\n, use=f200,
17917f200vi-w|Liberty Freedom 200 - 132 cols for vi,
17918	cols#132, use=f200vi,
17919
17920#### GraphOn (go)
17921#
17922#	Graphon Corporation
17923#	544 Division Street
17924#	Campbell, CA 95008
17925#	Vox: (408)-370-4080
17926#	Fax: (408)-370-5047
17927#	Net: troy@graphon.com (Troy Morrison)
17928#
17929#
17930# The go140 and go225 have been discontinued.  GraphOn now makes X terminals,
17931# including one odd hybrid that starts out life on power-up as a character
17932# terminal, than can be switched to X graphics mode (driven over the serial
17933# line) by an escape sequence.  No info on this beast yet.
17934# (go140: I added <rmam>/<smam> based on the init string -- esr)
17935go140|graphon go-140,
17936	OTbs,
17937	cols#80, it#8, lines#24,
17938	clear=\E[H\E[2J$<10/>, cub1=^H,
17939	cup=\E[%i%p1%2d;%p2%2dH, dch1=\E[P, ed=\E[J$<10/>,
17940	el=\E[K, ht=^I, if=/usr/share/tabset/vt100,
17941	is2=\E<\E=\E[?3l\E[?7l\E(B\E[J\E7\E[;r\E8\E[m\E[q,
17942	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
17943	ri=\EM, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, sgr0=\E[m,
17944	smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, use=ansi+idl1,
17945	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
17946	use=vt100+pf1-pf4,
17947
17948go140w|graphon go-140 in 132 column mode,
17949	am,
17950	cols#132,
17951	is2=\E<\E=\E[?3h\E[?7h\E(B\E[J\E7\E[;r\E8\E[m\E[q,
17952	use=go140,
17953# Hacked up vt200 termcap to handle GO-225/VT220
17954# From: <edm@nwnexus.WA.COM>
17955# (go225: I added <rmam>/<smam> based on the init string -- esr)
17956go225|go-225|Graphon 225,
17957	OTbs, am, mir, xenl,
17958	cols#80, it#8, lines#25, vt#3,
17959	blink=\E[5m, bold=\E[1m, cub1=^H, cud1=\n, cuf1=\E[C,
17960	cuu1=\E[A, dch1=\E[P, ht=^I, ind=\ED,
17961	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, rev=\E[7m,
17962	rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
17963	rmcup=\E[!p\E[?7h\E[2;1;1#w, rmir=\E[4l, rmkx=\E>,
17964	rs1=\E[!p\E[?7h\E[2;1;1#w, sgr0=\E[m, smam=\E[?7h,
17965	smcup=\E[2;0#w\E[1;25r, smir=\E[4h, smkx=\E=,
17966	use=ecma+underline, use=ecma+standout, use=ansi+arrows,
17967	use=ansi+csr, use=ansi+cup, use=ansi+erase,
17968	use=ansi+idl1, use=vt100+pf1-pf4,
17969
17970#### Harris (Beehive)
17971#
17972# Bletch.  These guys shared the Terminal Brain Damage laurels with Hazeltine.
17973# Their terminal group is ancient history now (1995) though the parent
17974# company is still in business.
17975#
17976
17977# Beehive documentation is undated and marked Preliminary and has no figures
17978# so we must have early Superbee2 (Model 600, according to phone conversation
17979# with mfr.). It has proved reliable except for some missing padding
17980# (notably after \EK and <nl> at bottom of screen).
17981#
17982# The key idea is that AEP mode is poison for <cup> & that US's in
17983# the local memory should be avoided like the plague. That means
17984# that the 2048 character local buffer is used as 25 lines of 80
17985# characters, period. No scrolling local memory, folks. It also
17986# appears that we cannot use naked INS LINE feature since it uses
17987# US. The sbi fakes <il1> with an 80-space insert that may be too
17988# slow at low speeds; also spaces get converted to \040 which is
17989# too long for some programs (not vi).  DEL LINE is ok but slow.
17990#
17991# The <nl> string is designed for last line of screen ONLY; cup to
17992# 25th line corrects the motion inherent in scrolling to Page 1.
17993#
17994# There is one understood bug. It is that the screen appears to
17995# pop to a new (blank) page after a <nel>, or leave a half-line
17996# ellipsis to a quad that is the extra 48 memory locations. The
17997# data received is dumped into memory but not displayed.  Not to
17998# worry if <cup> is being used; the lines not displayed will be,
17999# whenever the cursor is moved up there. Since <cup> is addressed
18000# relative to MEMORY of window, nothing is lost; but beware of
18001# relative cursor motion (<cuu1>,<cud1>,<cuf1>,<cub1>). Recommended,
18002# therefore, is setenv MORE -c .
18003#
18004# WARNING: Not all features tested.
18005#
18006# Timings are assembled from 3 sources. Some timings may reflect
18007# SB2/Model 300 that were used if more conservative.
18008# Tested on a Model 600 at 1200 and 9600 bd.
18009#
18010# The BACKSPACEkb option is cute. The NEWLINE key, so cleverly
18011# placed on the keyboard and useless because of AEP, is made
18012# into a backspace key. In use ESC must be pressed twice (to send)
18013# and sending ^C must be prefixed by ESC to avoid that weird
18014# transmit mode associated with ENTER key.
18015#
18016# IF TERMINAL EVER GOES CATATONIC with the cursor buzzing across
18017# the screen, then it has dropped into ENTER mode; hit
18018# RESET--ONLINE--!tset.
18019#
18020# As delivered this machine has a FATAL feature that will throw
18021# it into that strange transmit state (SPOW) if the space bar is
18022# hit after a CR is received, but before receiving a LF (or a
18023# few others).
18024#
18025# The circuits MUST be modified to eliminate the SPOW latch.
18026# This is done by strapping on chip A46 of the I/O board; cut
18027# the p.c. connection to Pin 5 and strap Pin 5 to Pin 8 of that
18028# chip. This mod has been checked out on a Mod 600 of Superbee II.
18029# With this modification absurdly high timings on cr are
18030# unnecessary.
18031#
18032# NOTE WELL that the rear panel switch should be set to CR/LF,
18033# not AEP!
18034#
18035sb1|Beehive SuperBee,
18036	OTbs, am, bw, da, db, mir, ul, xsb,
18037	cols#80, lines#25, xmc#1,
18038	bel=^G, cbt=\E`$<650>, clear=\EH$<1>\EJ$<3>, cr=$<1>\r,
18039	cub1=^H, cud1=\n, cuf1=\EC$<3>, cup=\EF%p2%03d%p1%03d,
18040	cuu1=\EA$<3>, dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>,
18041	el=\EK$<3>, home=\EH$<1>, ht=^I, hts=\E1,
18042	il1=\EN\EL$<3>\EQ\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s
18043	    \s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s
18044	    \s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s
18045	    \s\s\s\s\s\EP$<3>\s\EO\ER\EA$<3>,
18046	ind=\n, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kdl1=\EM,
18047	ked=\EJ, kel=\EK, kf0=\E2, kf9=\E1, khome=\EH, kich1=\EQ\EO,
18048	krmir=\ER, lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER,
18049	rmso=\E_3, rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO,
18050	smso=\E_1, smul=\E_0, tbc=\E3, use=hp+pfk-cr,
18051	use=vt52+arrows,
18052sbi|superbee|Beehive SuperBee at Indiana U.,
18053	xsb,
18054	cr=\r$<1>, il1=\EN$<1>\EL$<9>\EQ \EP$<9> \EO\ER\EA,
18055	use=sb1,
18056# Alternate (older) description of Superbee - f1=escape, f2=^C.
18057# Note: there are at least 3 kinds of superbees in the world.  The sb1
18058# holds onto escapes and botches ^C's.  The sb2 is the best of the 3.
18059# The sb3 puts garbage on the bottom of the screen when you scroll with
18060# the switch in the back set to CRLF instead of AEP.  This description
18061# is tested on the sb2 but should work on all with either switch setting.
18062# The f1/f2 business is for the sb1 and the <xsb> can be taken out for
18063# the other two if you want to try to hit that tiny escape key.
18064# This description is tricky: being able to use cup depends on there being
18065# 2048 bytes of memory and the hairy <nl> string.
18066superbee-xsb|Beehive SuperBee (improved),
18067	am, da, db, xsb,
18068	cols#80, it#8, lines#25,
18069	clear=\EH\EJ$<3>, cnorm=\n, cr=\r$<1000>, cub1=^H, cud1=\n,
18070	cuf1=\EC, cup=\EF%p2%3d%p1%3d, cuu1=\EA$<3>,
18071	dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>,
18072	home=\EH, ht=^I, hts=\E1,
18073	ind=\n\0\0\0\n\0\0\0\EA\EK\0\0\0\ET\ET, is2=\EH\EJ,
18074	khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3,
18075	use=hp+pfk-cr, use=vt52+arrows,
18076# This loses on lines > 80 chars long, use at your own risk
18077superbeeic|SuperBee with insert char,
18078	ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb,
18079sb2|sb3|fixed SuperBee,
18080	xsb@, use=superbee,
18081
18082#### Beehive Medical Electronics
18083#
18084# Steve Seymour <srseymour@mindspring.com> writes (Wed, 03 Feb 1999):
18085# Regarding your question though; Beehive terminals weren't made by Harris.
18086# They were made by Beehive Medical Electronics in Utah. They went out of
18087# business in the early '80s.
18088#
18089# (OK, then, I don't know why a couple of these say "Harris Beehive".)
18090#
18091
18092# Reports are that most of these Beehive entries (except superbee) have not
18093# been tested and do not work right.  <rmso> is a trouble spot.  Be warned.
18094
18095# (bee: <ich1> was empty, which is obviously bogus -- esr)
18096beehive|bee|Harris Beehive,
18097	OTbs, am, mir,
18098	cols#80, lines#24,
18099	cbt=\E>, clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
18100	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
18101	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, kbs=^H, kcbt=\E>,
18102	kclr=\EE, kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ,
18103	kil1=\EL, krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@,
18104	sgr0=\Ed@, smir=\EQ, smso=\EdP, smul=\Ed`, use=vt52+arrows,
18105# set tab is ^F, clear (one) tab is ^V, no way to clear all tabs.
18106# good grief - does this entry make :sg:/:ug: when it doesn't have to?
18107# look at those spaces in <rmso>/<smso>.  Seems strange to me...
18108# (beehive: <if=/usr/share/tabset/beehive> removed, no such file.  If you
18109# really care, cook up one using ^F -- esr)
18110beehive3|bh3m|beehiveIIIm|Harris Beehive 3m,
18111	OTbs, am,
18112	cols#80, it#8, lines#20,
18113	bel=^G, clear=^E^R, cr=\r, cub1=^H, cud1=\n, cuf1=^L, cuu1=^K,
18114	dl1=\021$<350>, ed=^R, el=^P, home=^E, ht=^I, hts=^F,
18115	il1=\023$<160>, ind=\n, ll=^E^K, rmso=\s^_, smso=^]\s,
18116beehive4|bh4|Beehive 4,
18117	am,
18118	cols#80, lines#24,
18119	bel=^G, clear=\EE, cr=\r, cub1=\ED, cud1=\n, cuf1=\EC,
18120	cuu1=\EA, ed=\EJ, el=\EK, home=\EH, ind=\n,
18121# There was an early Australian kit-built computer called a "Microbee".
18122# It's not clear whether this is for one of those or for a relative
18123# of the Beehive.
18124microb|microbee|Micro Bee series,
18125	OTbs, am,
18126	cols#80, it#8, lines#24,
18127	bel=^G, clear=\EE, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
18128	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
18129	el=\EK, ht=^I, ind=\n, kf9=\Ex, khome=\EH, rmso=\Ed@,
18130	rmul=\Ed@, sgr0=\Ed@, smso=\s\EdP, smul=\Ed`,
18131	use=hp+pfk-cr, use=vt52+arrows,
18132
18133# 8675, 8686, and bee from Cyrus Rahman
18134# (8675: changed k10, k11...k16 to k;, F1...F6 -- esr)
18135ha8675|Harris 8675,
18136	is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU, kf1=^F,
18137	kf10=\Ed, kf11=^W, kf12=\ER, kf13=\EE, kf14=\EI, kf15=\Ei,
18138	kf16=\Eg, kf2=^P, kf3=^N, kf4=^V, kf5=\n, kf6=^T, kf7=^H, kf8=^?,
18139	kf9=\Ee, use=bee,
18140# (8686: changed k10, k11...k16 to k;, F1...F6; fixed broken continuation
18141# in :is: -- esr)
18142ha8686|Harris 8686,
18143	is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU\E"*Z01\E"8F35021B7C83#
18144	    \E"8F45021B7D83#\E"8F55021B7E83#\E"8F65021B7F83#\E"8F750
18145	    21B7383#\E"8F851BD7#\E"8F95021B7083#\E"8FA5021B7183#\E"8
18146	    FB5021B7283#,
18147	kf1=^B\Ep^C, kf10=\Ej, kf11=\EW, kf12=^B\E{^C,
18148	kf13=^B\E|^C, kf14=^B\E}^C, kf15=^B\E~^C, kf16=^B\E^?^C,
18149	kf2=^B\Eq^C, kf3=^B\Er^C, kf4=^B\Es^C, kf5=\E3, kf6=\EI,
18150	kf7=\ER, kf8=\EJ, kf9=\E(, use=bee,
18151
18152#### Hazeltine
18153#
18154# Hazeltine appears to be out of the terminal business as of 1995.  These
18155# guys were co-owners of the Terminal Brain Damage Hall Of Fame along with
18156# Harris. They have a hazeltine.com domain (but no web page there ) and can
18157# be reached at:
18158#
18159#	Hazeltine
18160#	450 East Pulaski Road
18161#	Greenlawn, New York 11740
18162#
18163# As late as 1993, manuals for the terminal product line could still be
18164# purchased from:
18165#
18166#	TRW Customer Service Division
18167#	15 Law Drive
18168#	P.O. Box 2076
18169#	Fairfield, NJ 07007-2078
18170#
18171# They're now (1998) a subsidiary of General Electric, operating under the
18172# marque "GEC-Marconi Hazeltine" and doing military avionics.  Web page
18173# at <https://web.archive.org/web/19990223214534/http://www.gec.com/cpd/1ncpd.htm#1.55>.
18174#
18175
18176# Since <cuf1> is blank, when you want to erase something you
18177# are out of luck.  You will have to do ^L's a lot to
18178# redraw the screen.  h1000 is untested.  It doesn't work in
18179# vi - this terminal is too dumb for even vi.  (The code is
18180# there but it isn't debugged for this case.)
18181hz1000|Hazeltine 1000,
18182	OTbs,
18183	cols#80, lines#12,
18184	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\s, home=^K,
18185	ind=\n,
18186# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
18187hz1420|Hazeltine 1420,
18188	OTbs, am,
18189	cols#80, lines#24,
18190	bel=^G, clear=\E^\, cr=\r, cub1=^H, cud1=\n, cuf1=^P,
18191	cup=\E\021%p2%c%p1%{32}%+%c, cuu1=\E^L, dl1=\E^S,
18192	ed=\E^X, el=\E^O, ht=^N, il1=\E^Z, ind=\n, rmso=\E^Y,
18193	smso=\E^_,
18194# New "safe" cursor movement (11/87) from <cgs@umd5.umd.edu>.  Prevents
18195# freakout with out-of-range args and tn3270.  No hz since it needs to
18196# receive tildes.
18197hz1500|Hazeltine 1500,
18198	OTbs, am, hz,
18199	cols#80, lines#24,
18200	bel=^G, clear=~^\, cr=\r, cub1=^H, cud1=~^K, cuf1=^P,
18201	cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%{96}%+%c%p1%{96}%+%c,
18202	cuu1=~^L, dl1=~\023$<40>, ed=~\030$<10>, el=~^O, home=~^R,
18203	il1=~\032$<40>, ind=\n, kcub1=^H, kcud1=\n, kcuf1=^P,
18204	kcuu1=~^L, khome=~^R, rmso=~^Y, smso=~^_,
18205# h1510 assumed to be in sane escape mode.  Else use h1500.
18206# (h1510: early versions of this entry apparently had "<rmso=\E^_>,
18207# <smso=\E^Y>, but these caps were commented out in 8.3; also,
18208# removed incorrect and overridden ":do=^J:" -- esr)
18209hz1510|Hazeltine 1510,
18210	OTbs, am,
18211	cols#80, lines#24,
18212	bel=^G, clear=\E^\, cr=\r, cub1=^H, cud1=\E^K, cuf1=^P,
18213	cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S, ed=\E^X,
18214	el=\E^O, il1=\E^Z, ind=\n,
18215# Hazeltine 1520
18216# The following switch settings are assumed for normal operation:
18217#	FULL		CR		U/L_CASE	ESCAPE
18218#	FORMAT_OFF	EOM_A_OFF	EOM_B_OFF	WRAPAROUND_ON
18219# Other switches may be set for operator convenience or communication
18220# requirements.
18221hz1520|Hazeltine 1520,
18222	OTbs, am, bw, msgr,
18223	cols#80, lines#24,
18224	bel=^G, bold=\E^_, clear=\E^\, cr=\r, cub1=^H, cud1=\n,
18225	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
18226	ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z, ind=\n, kbs=^H,
18227	kclr=\E^\, kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L,
18228	kdl1=\E^S, ked=\E^X, kel=\E^O, khome=\E^R, kil1=\E^Z,
18229	rmso=\E^Y, rs1=\E$\E\005\E?\E\031, sgr0=\E^Y, smso=\E^_,
18230# This version works with the escape switch off
18231# (h1520: removed incorrect and overridden ":do=^J:" -- esr)
18232hz1520-noesc|Hazeltine 1520 (no escape),
18233	am, hz,
18234	cols#80, lines#24,
18235	bel=^G, clear=~^\, cr=\r, cub1=^H, cud1=~^K, cuf1=^P,
18236	cup=~\021%p2%c%p1%c$<1>, cuu1=~^L, dl1=~^S, ed=~^X, el=~^O,
18237	home=~^R, il1=~^Z, ind=\n, rmso=~^Y, smso=~^_,
18238# Note: the h1552 appears to be the first Hazeltine terminal which
18239# is not braindamaged.  It has tildes and backprimes and everything!
18240# Be sure the auto lf/cr switch is set to cr.
18241hz1552|Hazeltine 1552,
18242	OTbs,
18243	cud1=\n, dl1=\EO, il1=\EE, lf1=blue, lf2=red, lf3=green,
18244	use=vt52,
18245hz1552-rv|Hazeltine 1552 reverse video,
18246	cud1=\n, rmso=\ET, smso=\ES, use=hz1552,
18247# Note: h2000 won't work well because of a clash between upper case and ~'s.
18248hz2000|Hazeltine 2000,
18249	OTbs, OTnc, am,
18250	cols#74, lines#27,
18251	bel=^G, clear=~\034$<6>, cub1=^H, cud1=\n,
18252	cup=~\021%p2%c%p1%c, dl1=~\023$<6>, home=~^R,
18253	il1=~\032$<6>, ind=\n, pad=^?,
18254# Date: Fri Jul 23 10:27:53 1982.  Some unknown person wrote:
18255# I tested this termcap entry for the Hazeltine Esprit with vi. It seems
18256# to work ok. There is one problem though if one types a lot of garbage
18257# characters very fast vi seems not able to keep up and hangs while trying
18258# to insert. That's in insert mode while trying to insert in the middle of
18259# a line. It might be because the Esprit doesn't have insert char and delete
18260# char as a built in function. Vi has to delete to end of line and then
18261# redraw the rest of the line.
18262esprit|Hazeltine Esprit I,
18263	OTbs, am, bw,
18264	cols#80, lines#24,
18265	bel=^G, cbt=\E^T, clear=\E^\, cr=\r, cub1=^H, cud1=\E^K,
18266	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
18267	ed=\E^W, el=\E^O, home=\E^R, il1=\E^Z, ind=\n, is2=\E?, kbs=^H,
18268	kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L, kf0=^B0\n,
18269	kf1=^B1\n, kf2=^B2\n, kf3=^B3\n, kf4=^B4\n, kf5=^B5\n,
18270	kf6=^B6\n, kf7=^B7\n, kf8=^B8\n, kf9=^B9\n, khome=\E^R,
18271	lf0=0, lf1=1, lf2=2, lf3=3, lf4=4, lf5=5, lf6=6, lf7=7, lf8=8, lf9=9,
18272	rmkx=\E>, rmso=\E^Y, smkx=\E<, smso=\E^_,
18273esprit-am|Hazeltine esprit auto-margin,
18274	am, use=esprit,
18275# Hazeltine Modular-1 from Cliff Shackelton <ittvax!ittral!shackelt> via BRL
18276# Vi it seems always wants to send a control J for "do" and it turned out
18277# that the terminal would work somewhat if the auto LF/CR was turned off.
18278# (hmod1: removed :dn=~^K: -- esr)
18279hmod1|Hazeltine Modular 1,
18280	OTbs, am, hz,
18281	cols#80, lines#24,
18282	bel=^G, cbt=~^T, clear=~^\, cr=\r, cub1=^H, cud1=~^K, cuf1=^P,
18283	cup=~\021%p2%c%p1%c, cuu1=~^L, dl1=~^S, home=~^R, il1=~^Z,
18284	ind=\n, kcub1=^H, kcud1=~^K, kcuf1=^P, kcuu1=~^L, khome=~^R,
18285	rc=~^Q, rmso=~^Y, sc=~^E, sgr0=~^Y, smso=~^_,
18286#
18287# Hazeltine Executive 80 Model 30 (1554?)
18288#	from  Will Martin <control@ALMSA-1.ARPA> via BRL
18289# Like VT100, except for different "am" behavior.
18290hazel|exec80|h80|he80|Hazeltine Executive 80,
18291	OTbs, OTpt, am,
18292	cols#80, it#8, lines#24, vt#3,
18293	OTnl=\n, bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
18294	clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
18295	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
18296	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
18297	ht=^I, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
18298	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rev=\E[7m$<2/>,
18299	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
18300	rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
18301	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
18302	sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
18303	smul=\E[4m$<2/>, use=ansi+csr, use=vt100+pf1-pf4,
18304
18305#### IBM
18306#
18307
18308ibm327x|line mode IBM 3270 style,
18309	gn,
18310	clear=\r\n, el=\r, home=\r,
18311
18312ibm3101|i3101|IBM 3101-10,
18313	OTbs, am, xon,
18314	cols#80, lines#24,
18315	bel=^G, clear=\EK, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
18316	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
18317	el=\EI, home=\EH, hts=\E0, ind=\n, nel=\r\n, tbc=\EH,
18318	use=vt52+arrows,
18319ibm3151|IBM 3151 display,
18320	is2=\E S, rmacs=\E>B, rs2=\E S,
18321	sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;
18322	    %?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t
18323	    %{80}%|%;%c%?%p9%t\E>A%e\E>B%;,
18324	sgr0=\E4@\E>B, smacs=\E>A, use=ibm3162,
18325# From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992
18326# removed kend, knp, kpp -TD
18327#
18328# From: Stephen Powell <zlinuxman@wowway.com> 23 Apr 2015
18329# Added ich1 (kich1 without ich1 doesn't make sense).
18330# Added il1 (kil1 without il1 doesn't make sense).
18331# Added xon (terminal uses XON/XOFF flow control).
18332#
18333ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
18334	OTbs, am, mir, msgr, xon,
18335	cols#80, it#8, lines#24,
18336	acsc=j\352k\353l\354m\355n\356q\361t\364u\365v\366w\367x
18337	     \370,
18338	bel=^G, blink=\E4D, bold=\E4H, clear=\EH\EJ, cr=\r, cub1=\ED,
18339	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
18340	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
18341	ich1=\EP \010, il1=\EN, ind=\n, invis=\E4P, kbs=^H, kcbt=\E2,
18342	kclr=\EL\r, kctab=\E1, kdch1=\EQ, kdl1=\EO, ked=\EJ, kel=\EI,
18343	kf1=\Ea\r, kf10=\Ej\r, kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r,
18344	kf14=\E!b\r, kf15=\E!c\r, kf16=\E!d\r, kf17=\E!e\r,
18345	kf18=\E!f\r, kf19=\E!g\r, kf2=\Eb\r, kf20=\E!h\r,
18346	kf21=\E!i\r, kf22=\E!j\r, kf23=\E!k\r, kf24=\E!l\r,
18347	kf3=\Ec\r, kf4=\Ed\r, kf5=\Ee\r, kf6=\Ef\r, kf7=\Eg\r,
18348	kf8=\Eh\r, kf9=\Ei\r, khome=\EH, khts=\E0, kich1=\EP \010,
18349	kil1=\EN, ktbc=\E 1, mc4=^P^T, mc5=^P^R, rev=\E4A,
18350	rmcup=\E>A, rmso=\E4@, rmul=\E4@,
18351	sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;
18352	    %?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t
18353	    %{80}%|%;%c%?%p9%t\E>A%e\E<@%;,
18354	sgr0=\E4@\E<@, smcup=\E>A, smso=\E4A, smul=\E4B,
18355	use=vt52+arrows,
18356
18357ibm3161-C|IBM 3161-C NLS terminal using cartridge,
18358	rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, use=ibm3161,
18359#
18360# From: Stephen Powell <zlinuxman@wowway.com> 23 Apr 2015
18361# Deleted il1.  (il1 will now be inherited from ibm3161-C, which inherits
18362# it from ibm3161.
18363#
18364ibm3162|IBM 3162 display,
18365	blink=\E4$a, bold=\E4(a, invis=\E40a, rev=\E4!a,
18366	rmso=\E4>b, rmul=\E4=b, sgr0=\E4@, smso=\E4!a, smul=\E4"a,
18367	use=ibm3161-C,
18368
18369# This really should not use setab/setaf, but it is clear that the
18370# original terminfo does not toggle red/blue colors as in setb/setf.
18371ibm3164|i3164|IBM 3164,
18372	msgr,
18373	colors#8, pairs#64,
18374	op=\E4 "@, rmcup=\E!9(N\E>B, s0ds=\E>B, s1ds=\E>A,
18375	setab=\E4  %p1%{64}%+%c,
18376	setaf=\E4%?%p1%t %p1%{32}%+%c%e!'%;@,
18377	smcup=\E!9/N\E>B, use=ibm3161,
18378
18379ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display,
18380	am, bw, msgr, xon,
18381	cols#80, it#8, lines#25,
18382	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
18383	     \263,
18384	bel=^G, cr=\r, cub1=^H, cud1=\n, dch1=\E[P, ech=\E[%p1%dX,
18385	hpa=\E[%i%p1%dG, ind=\E[S, is2=\Ec, kcbt=\E[Z,
18386	kclr=\E[144q, kdch1=\E[P, ked=\E[148q, kel=\E[142q,
18387	kend=\E[146q, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
18388	kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, kf15=\E[015q,
18389	kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, kf19=\E[019q,
18390	kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, kf22=\E[022q,
18391	kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, kf26=\E[026q,
18392	kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, kf3=\E[003q,
18393	kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, kf33=\E[033q,
18394	kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, kf4=\E[004q,
18395	kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
18396	kf9=\E[009q, kich1=\E[139q, kil1=\E[140q, kind=\E[151q,
18397	knp=\E[154q, kpp=\E[150q, kri=\E[155q, krmir=\E[4l,
18398	ri=\E[T, rmir=\E[4l, rs2=\Ec,
18399	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
18400	    %;%?%p7%t;8%;m,
18401	smir=\E[4h, use=ansi+arrows, use=ansi+cup,
18402	use=ansi+erase, use=ansi+idl, use=ansi+local,
18403	use=ansi+sgrbold, use=ecma+index,
18404
18405ibmaed|IBM Experimental display,
18406	OTbs, am, eo, msgr,
18407	cols#80, it#8, lines#52,
18408	clear=\EH\EK, cub1=^H, cud1=\EB, cuf1=\EC,
18409	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
18410	dl1=\EO, ed=\EJ, el=\EI, flash=\EG, home=\EH, ht=^I, ich1=\EP,
18411	il1=\EN, kbs=^H, rmso=\E0, sgr0=\E0, smso=\E0,
18412	use=vt52+arrows,
18413ibm-apl|apl|IBM apl terminal simulator,
18414	lines#25, use=dm1520,
18415# (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.
18416# Also it had ":I0=f10:" which pretty obviously should be "l0=f10" -- esr)
18417ibmmono|IBM workstation monochrome,
18418	eslok, hs,
18419	bold=\EZ, dl1=\EM, dsl=\Ej\EY8 \EI\Ek, fsl=\Ek, il1=\EL,
18420	invis=\EF\Ef0;\Eb0;, kbs=^H, kf0=\E<, kf1=\ES, kf2=\ET,
18421	kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EY,
18422	khome=\EH, kich1=\0, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG,
18423	lf0=f10, rev=\Ep, ri=\EA, rmso=\Ez, rmul=\Ew,
18424	sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo,
18425	use=ibm3101,
18426ibmega|IBM Enhanced Color Display,
18427	ht=^I, kcub1=^H, kcud1=\n, use=ibmmono,
18428# This color scheme is assumed in some recent IBM terminal descriptions
18429# (green on black, emulated on a 16-color terminal).
18430ibm+color|IBM color definitions,
18431	colors#8, ncv#3, pairs#64,
18432	op=\E[32m\E[40m,
18433	setb=\E[%?%p1%{0}%=%t40m%e%p1%{1}%=%t41m%e%p1%{2}%=%t42m%e
18434	     %p1%{3}%=%t43m%e%p1%{4}%=%t44m%e%p1%{5}%=%t45m%e%p1%{6}
18435	     %=%t46m%e%p1%{7}%=%t107m%;,
18436	setf=\E[%?%p1%{0}%=%t30m%e%p1%{1}%=%t31m%e%p1%{2}%=%t32m%e
18437	     %p1%{3}%=%t33m%e%p1%{4}%=%t34m%e%p1%{5}%=%t35m%e%p1%{6}
18438	     %=%t36m%e%p1%{7}%=%t97m%;,
18439ibm+16color|IBM aixterm color definitions,
18440	colors#16, pairs#0x100,
18441	setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
18442	setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
18443	setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e
18444	     %ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
18445	setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e
18446	     %ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
18447ibm5154|IBM 5154 Color display,
18448	ncv@,
18449	bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
18450	use=ibm+color,
18451ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline,
18452	rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;,
18453	use=ibmmono,
18454ibmvga-c|IBM VGA display color termcap,
18455	ht=^I, kcub1=^H, kcud1=\n, use=ibmega-c,
18456ibmvga|IBM VGA display,
18457	use=ibmega,
18458# ibmapa* and ibmmono entries come from ACIS 4.3 distribution
18459rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display,
18460	lines#32,
18461	dsl=\Ej\EY@ \EI\Ek, tsl=\Ej\EY@%+ \Eo, use=ibmmono,
18462ibm6155|IBM 6155 Black & White display,
18463	blink@, bold@, use=ibm5151,
18464# Advanced Monochrome (6153) and Color (6154) Graphics Display:
18465ibmapa8c|ibmapa8|IBM 6154 Advanced Graphics Display,
18466	lines#31,
18467	dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmmono,
18468ibmapa8c-c|ibm6154-c|IBM 6154 Advanced Color Graphics Display,
18469	lines#31,
18470	dim=\EF\Ef7;, dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo,
18471	use=ibmega-c,
18472ibm6154|IBM 6154 Color displays,
18473	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
18474	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p7%t;8%;%?%p6%t;1
18475	    2%;m,
18476	sgr0=\E[0;10m, use=ibm5154,
18477ibm6153|IBM 6153 Black & White display,
18478	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
18479	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p7%t;8%;%?%p6%t;1
18480	    2%;m,
18481	sgr0=\E[0;10m, use=ibm5151,
18482ibm6153-90|IBM 6153 Black & White display (36-line),
18483	cols#90, lines#36,
18484	blink@, bold@, use=ibm5151,
18485ibm6153-40|IBM 6153 Black & White display (12-line),
18486	cols#40, lines#12, use=ibm6153-90,
18487ibm8512|ibm8513|IBM color VGA Terminal,
18488	mir,
18489	cub1=\E[D, is2=\Eb\E[m\017\E[?7h, kf0=\E[010q, rc=\E[u,
18490	rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l,
18491	rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m,
18492	smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb,
18493	smdc=\E[4h, use=ibm8503,
18494hft-c|HFT with Color,
18495	acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0,
18496	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B,
18497	use=ibm5151, use=ibm+color,
18498hft-c-old|HFT with Color PC850,
18499	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
18500	use=ibm+color,
18501hft-old|AIWS High Function Terminal,
18502	am, xon,
18503	cols#80, lines#25,
18504	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
18505	cuf1=\E[C, cuu1=\E[A, dch1=\E[P, ht=^I, ich1=\E[@, ind=\n,
18506	invis=\E[8m, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
18507	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
18508	kf8=\E[008q, kf9=\E[009q, knp=\E[153q, kpp=\E[159q,
18509	ktbc=\E[010q, rev=\E[7m, rmir=\E6, sgr0=\E[m, smir=\E6,
18510	use=ansi+arrows, use=ansi+cup, use=ansi+erase,
18511	use=ansi+idl1, use=ansi+sgrso, use=ansi+sgrul,
18512	use=ibm+color,
18513
18514ibm-system1|system1|IBM system/1 computer,
18515	am, xt,
18516	cols#80, lines#24,
18517	bel=^G, clear=^Z, cub1=^H, cuf1=^\,
18518	cup=\005%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, home=^K,
18519	ind=\n,
18520#       lft-pc850 : IBM Low Function Terminal Device
18521#    lft "supports" underline, bold, and blink in the sense that the lft code
18522#    sets all the right bits.  HOWEVER, depending upon the adapter, these
18523#    attributes may or may not be supported by the device driver.
18524lft|lft-pc850|LFT-PC850|IBM LFT PC850 Device,
18525	am, bw, msgr, xon,
18526	cols#80, it#8, lines#25,
18527	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
18528	     \263,
18529	bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n,
18530	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ed=\E[2J,
18531	el=\E[0K, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ind=\ED, is2=\Ec,
18532	kcbt=\E[Z, kclr=\E[144q, kdch1=\E[P, ked=\E[148q,
18533	kel=\E[142q, kend=\E[146q, kf1=\E[001q, kf10=\E[010q,
18534	kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q,
18535	kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q,
18536	kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q,
18537	kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q,
18538	kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q,
18539	kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q,
18540	kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q,
18541	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
18542	kf8=\E[008q, kf9=\E[009q, kich1=\E[139q, kil1=\E[140q,
18543	kind=\E[151q, knp=\E[154q, kpp=\E[150q, kri=\E[155q,
18544	krmir=\E[4l, ri=\EL, rmacs=\E(B, rmir=\E[4l, rmso=\E[0m,
18545	rmul=\E[0m, rs2=\Ec,
18546	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
18547	    %;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
18548	smacs=\E(0, smir=\E[4h, tbc=\E[3g, use=ansi+arrows,
18549	use=ansi+cup, use=ansi+idl, use=ansi+local,
18550	use=ansi+sgrbold, use=ecma+index,
18551
18552# "Megapel" refers to the display adapter, which was used with the IBM RT
18553# aka IBM 6150.
18554ibm5081|hft|IBM Megapel Color display,
18555	acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
18556	s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
18557ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
18558	lines#33,
18559	dsl=\Ej\EYA \EI\Ek, tsl=\Ej\EYA%+ \Eo, use=ibmega-c,
18560ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display,
18561	use=hft-c,
18562ibm8514|IBM 8514/a color VGA display,
18563	eslok, hs,
18564	dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft,
18565ibm8514-c|IBM 8514 color display with standout and underline,
18566	lines#41,
18567	dsl=\Ej\EYI \EI\Ek, ht=^I, kcub1=^H, kcud1=\n,
18568	tsl=\Ej\EYI%+ \Eo, use=ibmega-c,
18569
18570#
18571# AIX entries.  IBM ships these with AIX 3.2.5.
18572# -- added rc, sc based on man page -TD
18573# -- added rmacs, smacs based on man page -TD
18574# Note that we could use ibm+16color, but that is not how IBM defines this one.
18575aixterm|IBM Aixterm Terminal Emulator,
18576	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, rc=\E8, ri@,
18577	rmacs=\E(B, s0ds=\E(B, s1ds=\E(0, sc=\E7,
18578	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7
18579	    %t;8%;m%?%p9%t\E(0%e\E(B%;,
18580	sgr0=\E[0;10m\E(B, smacs=\E(0, use=ibm6154,
18581	use=aixterm+sl,
18582aixterm+sl|status line for AIXterm,
18583	eslok, hs,
18584	dsl=\E[?E, fsl=\E[?F, tsl=\E[?%p1%dT,
18585
18586aixterm-m|IBM AIXterm Monochrome Terminal Emulator,
18587	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, ri@, s0ds=\E(B,
18588	s1ds=\E(0,
18589	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7
18590	    %t;8%;m%?%p9%t\E(0%e\E(B%;,
18591	sgr0=\E[0;10m\E(B, use=ibm6153, use=aixterm+sl,
18592aixterm-m-old|old IBM AIXterm Monochrome Terminal Emulator,
18593	bold=\E[1m, ri@,
18594	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7
18595	    %t;8%;m,
18596	use=ibm6153, use=aixterm+sl,
18597jaixterm|IBM Kanji Aixterm Terminal Eemulator,
18598	acsc@, rmacs@,
18599	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7%t;8
18600	    %;m,
18601	sgr0=\E[m, smacs@, use=aixterm,
18602jaixterm-m|IBM Kanji AIXterm Monochrome Terminal Emulator,
18603	acsc@, rmacs@,
18604	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p7%t;8
18605	    %;m,
18606	sgr0=\E[m, smacs@, use=aixterm-m,
18607
18608# This flavor is adapted from xterm, in turn from aixterm documentation -TD
18609aixterm-16color|IBM Aixterm Terminal Emulator with 16 colors,
18610	use=ibm+16color, use=aixterm,
18611
18612#### Infoton/General Terminal Corp.
18613#
18614
18615# gt100 sounds like something DEC would come out with.  Let's hope they don't.
18616i100|gt100|gt100a|General Terminal 100A (formerly Infoton 100),
18617	OTbs, am,
18618	cols#80, lines#24,
18619	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
18620	cup=\Ef%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dl1=\EM,
18621	ed=\EJ, el=\EK, flash=\Eb$<200/>\Ea, home=\EH, il1=\EL,
18622	ind=\n, rmso=\Ea, smso=\Eb,
18623
18624i400|Infoton 400,
18625	OTbs, am,
18626	cols#80, lines#25,
18627	bel=^G, clear=\E[2J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
18628	cup=\E[%i%p1%3d;%p2%3dH, cuu1=\E[A,
18629	dch1=\E[4h\E[2Q\E[P\E[4l\E[0Q, el=\E[N, ind=\n,
18630	rmir=\E[4l\E[0Q, smir=\E[4h\E[2Q, use=ansi+idl1,
18631
18632# (addrinfo: removed obsolete ":bc=^Z:" -- esr)
18633addrinfo|cursor-addressable Infoton,
18634	cup=\037%p1%c%p2%c, home=^H, use=infoton,
18635
18636# "VISTAR II/HZ Technical Users Manual" (May 1975).
18637#
18638infoton2|cursor-addressable Infoton VISTAR II,
18639	cup=~\021%p2%c%p1%c, home=^H, use=infoton,
18640
18641# "VISTAR Technical User's Manual" (October 1972).
18642#
18643# (infoton: used to have the no-ops <lh#0>, <lw#0>, <nlab#0> -- esr)
18644infoton|Infoton VISTAR,
18645	am,
18646	cols#80, lines#24,
18647	bel=^G, clear=^L, cr=\r, cub1=^Z, cud1=\n, cuf1=^Y, cuu1=^\,
18648	ed=^K, ind=\n, ll=^H^\,
18649
18650# The ICL6402 was actually the Kokusai Display System 6402.
18651# The 6404 was the KDS7372 (color version of the 6402).
18652#
18653# ICL6404 control codes follow:
18654#
18655#code            function
18656#~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18657#ctrl-A          set SOM position at cursor position
18658#ctrl-G          Bell
18659#ctrl-H          Backspace
18660#ctrl-I          Horizontal tab
18661#ctrl-J          Linefeed
18662#ctrl-K          Cursor up
18663#ctrl-L          Cursor right
18664#ctrl-M          Carriage return
18665#ctrl-N          Disable xon/xoff to host
18666#ctrl-O          Enable xon/xoff to host
18667#ctrl-R          Enable bidirectional mode
18668#ctrl-T          Disable bidirectional mode
18669#ctrl-V          Cursor down
18670#ctrl-Z          Clear unprotected data to insert char
18671#ctrl-^          Cursor home
18672#ctrl-_          Newline
18673#
18674#ESC             lead-in char for multiple character command
18675#
18676#ESC space R     execute power on sequence
18677#ESC ! p1 p2     define scroll region:
18678#                p1 = scroll top    line:  20h - 37h
18679#                p1 = scroll bottom line:  20h - 37h
18680#ESC "           unlock keyboard
18681#ESC #           lock keyboard
18682#ESC $           Semi-graphics mode on
18683#ESC %           Semi-graphics mode off
18684#ESC &           protect mode on
18685#ESC '           protect mode off
18686#ESC (           write protect mode off (full intensity)
18687#ESC )           write protect mode on (half intensity)
18688#
18689#ESC *           clear screen
18690#ESC +           clear unprotected data to insert char
18691#ESC ,           clear unprotected data to half intensity spaces
18692#ESC - p1 p2 p3 p4     address cursor to page, row, column:
18693#                      p1 = page number  0 - 3
18694#                      p2 = row          20h - 7fh
18695#                      p3 = column (lo)  20h - 7fh
18696#                      p4 = column (hi)  20h - 21h (only 132 col)
18697#ESC . p1        set cursor style:
18698#                p1 = 0  invisible cursor
18699#                p1 = 1  block blinking cursor
18700#                p1 = 2  block steady cursor
18701#                p1 = 3  underline blinking cursor
18702#                p1 = 4  underline steady cursor
18703#ESC /           transmit cursor location (page, row, column)
18704#ESC 0 p1 p2 p3 p4     program edit key:
18705#                      p1 = edit key code: '@'-'S', '`'-'s'
18706#                      p2 p3 p4 = program data (3 bytes)
18707#
18708#ESC 1           set tab
18709#ESC 2           clear tab at cursor
18710#ESC 3           clear all tabs
18711#ESC 4           send unprotect line to cursor
18712#ESC 5           send unprotect page to cursor
18713#ESC 6           send line to cursor
18714#ESC 7           send page to cursor
18715#ESC 8 n         set scroll mode:
18716#                n = 0   set jump scroll
18717#                n = 1   set smooth scroll
18718#ESC 9 n         control display:
18719#                n = 0   display off
18720#                n = 1   display on
18721#ESC :           clear unprotected data to null
18722#ESC ;           clear unprotected data to insert char
18723#
18724#ESC <           keyclick on
18725#ESC = p1 p2     address cursor to row, column
18726#                p1 = row          20h - 7fh
18727#                p2 = column (lo)  20h - 7fh
18728#                p3 = column (hi)  20h - 21h (only 132 col)
18729#ESC >           keyclick off
18730#ESC ?           transmit cursor location (row, column)
18731#
18732#ESC @           copy print mode on
18733#ESC A           copy print mode off
18734#ESC B           block mode on
18735#ESC C           block mode off (conversation mode)
18736#ESC D F         set full duplex
18737#ESC D H         set half duplex
18738#ESC E           line insert
18739#ESC F p1 p2     set page colour (p1 = f/grnd, p2 = b/grnd)
18740#                0 = black, 1 = red,     2 = green, 3 = yellow
18741#                4 = blue,  5 = magenta, 6 = cyan,  7 = white
18742#ESC G n         set serial field attribute (n = 30h - 3Fh)
18743#ESC H n         full graphics mode:
18744#                n = 0  exit full graphics mode
18745#                n = 1  enter full graphics mode
18746#ESC I           back tab
18747#ESC J           back page
18748#ESC K           forward page
18749#
18750#ESC L           unformatted page print
18751#ESC M L         move window left  (132 col mode only)
18752#ESC M R         move window right (132 col mode only)
18753#ESC N           set page edit (clear line edit)
18754#ESC O           set line edit (clear page edit)
18755#ESC P           formatted page print
18756#ESC Q           character insert
18757#ESC R           line delete
18758#ESC S           send message unprotected only
18759#ESC T           erase line to insert char
18760#ESC U           set monitor mode   (see ESC X, ESC u)
18761#
18762#ESC V n         select video attribute mode:
18763#                n = 0   serial field attribute mode
18764#                n = 1   parallel character attribute mode
18765#ESC V 2 n       define line attribute:
18766#                n = 0   single width single height
18767#                n = 1   single width double height
18768#                n = 2   double width single height
18769#                n = 3   double width double height
18770#ESC V 3 n       select character font:
18771#                n = 0   system font
18772#                n = 1   user defined font
18773#ESC V 4 n       select screen mode:
18774#                n = 0   page screen mode
18775#                n = 1   virtual screen mode
18776#ESC V 5 n       control mouse mode:
18777#                n = 0   disable mouse
18778#                n = 1   enable sample mode
18779#                n = 2   send mouse information
18780#                n = 3   enable request mode
18781#ESC W           character delete
18782#ESC X           clear monitor mode (see ESC U, ESC u)
18783#ESC Y           erase page to insert char
18784#
18785#ESC Z n         send user/status line:
18786#                n = 0   send user line
18787#                n = 1   send status line
18788#                n = 2   send terminal ID
18789#ESC [ p1 p2 p3  set character attribute (parallel char mode):
18790#                p1: 0 = normal
18791#                    1 = blank
18792#                    2 = blink
18793#                    3 = blink blank (= blank)
18794#                    4 = reverse
18795#                    5 = reverse blank
18796#                    6 = reverse blink
18797#                    7 = reverse blink blank (= reverse blank)
18798#                    8 = underline
18799#                    9 = underline blank
18800#                    : = underline blink
18801#                    ; = underline blink blank
18802#                    < = reverse underline
18803#                    = = reverse underline blank
18804#                    > = reverse underline blink
18805#                    ? = reverse underline blink blank
18806#                p2, p3: f/grnd, b/grnd colour
18807#                (see ESC F for colours)
18808#                use ZZ for mono, eg.
18809#                    ESC [ 0 Z Z for normal
18810#                    ESC [ 4 Z Z for inverse etc.
18811#
18812#ESC \ n         set page size:
18813#                n = 1   24 lines/page
18814#                n = 2   48 lines/page
18815#                n = 3   72 lines/page
18816#                n = 4   96 lines/page
18817#ESC ] n         set Wordstar mode:
18818#                n = 0   normal (KDS7372) mode
18819#                n = 1   Wordstar mode
18820#
18821#ESC b           set foreground colour screen
18822#
18823#ESC c n         enter self-test mode:
18824#                n = 0   exit self test mode
18825#                n = 1   ROM test
18826#                n = 2   RAM test
18827#                n = 3   NVRAM test
18828#                n = 4   screen display test
18829#                n = 5   main/printer port test
18830#                n = 6   mouse port test
18831#                n = 7   graphics board test
18832#                n = 8   graphics memory test
18833#                n = 9   display all 'E'
18834#                n = :   display all 'H'
18835#ESC d           set background colour screen
18836#
18837#ESC e n         program insert char (n = insert char)
18838#ESC f text CR   load user status line with 'text'
18839#
18840#ESC g           display user status line on 25th line
18841#ESC h           display system status line on 25th line
18842#ESC i           tab
18843#ESC j           reverse linefeed
18844#ESC k n         duplex/local edit mode:
18845#                n = 0   duplex edit mode
18846#                n = 1   local edit mode
18847#ESC l n         select virtual screen:
18848#                n = 0   screen 1
18849#                n = 1   screen 2
18850#ESC m           save current config to NVRAM
18851#ESC n p1        select display screen:
18852#                p1 = 0  screen 1
18853#                p1 = 1  screen 2
18854#                p1 = 2  screen 3
18855#                p1 = 3  screen 4
18856#ESC o p1 p2     set characters/line and attribute:
18857#                p1 = 0  80 chars/line
18858#
18859#ESC o p1 p2     set characters/line and attribute:
18860#                p1 = 0  80 chars/line
18861#                p1 = 1  132 chars/line
18862#                p2 = 0  single width single height
18863#                p2 = 1  single width double height
18864#                p2 = 2  double width single height
18865#                p2 = 3  double width double height
18866#
18867#ESC q           insert mode on
18868#ESC r           edit mode on
18869#ESC s           send message all
18870#ESC t           erase line to null
18871#ESC u           clear monitor mode (see ESC U, ESC X)
18872#ESC v           autopage mode on
18873#ESC w           autopage mode off
18874#ESC x p1 p2 p3  define delimiter code...
18875#ESC y           erase page to null
18876#
18877#ESC z 2 p1 p2 p3 p4   draw quadrangle:
18878#                      p1 = starting row
18879#                      p2 = starting column
18880#                      p3 = end row
18881#                      p4 = end column
18882#
18883#ESC { p1 p2 p3 p4     configure main port
18884#                      (baud, stop bits, parity, word length)
18885#
18886#ESC | p1 p2 text Ctrl-Y    program function key with 'text':
18887#                        p1 = function key code:
18888#                             '1' - ';'  normal f1- f11
18889#                             '<' - 'F'  shifted f1 - f11
18890#                        p2 = program mode:
18891#                             1 = FDX
18892#                             2 = LOC
18893#                             3 = HDX
18894#                        Ctrl-Y = terminator
18895#                        (use Ctrl-P to escape ^P, ^Y )
18896#
18897#ESC } p1 p2 p3 p4     configure printer port
18898#                      (baud, stop bits, parity, word length)
18899#ESC ~           send system status
18900#
18901# Codes and info from Peter Disdale <pete@pdlmail.demon.co.uk> 12 May 1997
18902#
18903# Entry is by esr going solely on above information and is UNTESTED.
18904# This actually looks a lot like a TeleVideo 9xx.
18905# This entry uses page 0 and is monochrome; I'm not brave enough to try
18906# to make color work without a test terminal.  The <am> capability is a guess.
18907# The initialization string sets conversation mode, blinking underline cursor,
18908# full duplex, parallel attribute mode, display user status line, white
18909# foreground, black background, normal highlight.
18910#
18911icl6404|kds7372|icl6402|kds6402|ICL 6404 aka Kokusai Display Systems 7372,
18912	OTbs, am, hs,
18913	cols#80, lines#24,
18914	bel=^G, blink=\E[2ZZ, cbt=\EI, civis=\E.0, clear=\E*,
18915	cnorm=\E.3, cr=\r, csr=\E!%p1%{32}%+%c%p2%{32}%+%c,
18916	cub1=^H, cud1=^V, cuf1=^L,
18917	cup=\E=%p1%{32}%+%c%p2%{80}%m%{32}%+%c%p2%{80}%>%{32}%+%c,
18918	cuu1=^K, cvvis=\E.1, dch1=\EW, dl1=\ER, home=^^, ht=^I,
18919	hts=\E1, il1=\EE, invis=\E[1ZZ,
18920	is1=\EC\E.3\EDF\EV1\Eg\E[0ZZ, nel=^_, rev=\E[4ZZ,
18921	rmir=\Er, rmso=\E[%gh%{4}%^%Ph%gh%dZZ,
18922	rmul=\E[%gh%{8}%^%Ph%gh%dZZ, rs2=\Eo1,
18923	sgr=\E[%'0'%?%p1%t%'8'%|%;%?%p2%t%'8'%|%;%?%p3%t%'4'%|%;%?
18924	    %p4%t%'2'%|%;%?%p7%t%'1'%|%;%cZZ,
18925	sgr0=\E[0ZZ, smir=\Eq, smso=\E[8ZZ, smul=\E[8ZZ, tbc=\E3,
18926icl6404-w|kds7372-w|ICL 6404 aka Kokusai Display Systems 7372 132 cols,
18927	rs2=\Eo1, use=icl6404,
18928
18929#### Interactive Systems Corp
18930#
18931# ISC used to sell OEMed and customized hardware to support ISC UNIX.
18932# ISC UNIX still exists in 1995, but ISC itself is no more; they got
18933# bought out by Sun.
18934#
18935
18936# From: <cithep!eric>  Wed Sep 16 08:06:44 1981
18937# (intext: removed obsolete ":ma=^K^P^R^L^L ::bc=^_:", also the
18938# ":le=^_:" later overridden -- esr)
18939intext|Interactive Systems Corporation modified owl 1200,
18940	OTbs, am,
18941	cols#80, it#8, lines#24, xmc#1,
18942	bel=^G, cbt=^Y, clear=\014$<132>, cr=\r, cub1=^H, cud1=\n,
18943	cuf1=^^, cup=\017%p1%{32}%+%c%p2%{32}%+%c, cuu1=^\,
18944	dch1=\022$<5.5*>, dl1=\021$<5.5*>, ed=\026J$<5.5*>,
18945	el=^Kp^R, ht=^I, il1=\020$<5.5*>, ind=\n, ip=$<5.5*>, kbs=^H,
18946	kcub1=^_, kcud1=\n, kcuf1=^^, kcuu1=^\, kf0=^VJ\r, kf1=^VA\r,
18947	kf2=^VB\r, kf3=^VC\r, kf4=^VD\r, kf5=^VE\r, kf6=^VF\r,
18948	kf7=^VG\r, kf8=^VH\r, kf9=^VI\r, khome=^Z, rmir=^V<,
18949	rmkx=^V9, rmso=^V#\s, smir=^V;, smkx=\036:\264\026%%,
18950	smso=^V$\,,
18951intext2|intextii|INTERACTIVE modified owl 1251,
18952	am, bw, ul,
18953	cols#80, lines#24, xmc#0,
18954	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=\r,
18955	cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, ed=\E[J, el=\E[K,
18956	flash=\E[;;;;;;;;;2;;u$<200/>\E[;;;;;;;;;1;;u,
18957	hpa=\E[%p1%{1}%+%dG, ht=^I, ich1=\E[@, ind=\E[S, kbs=^H,
18958	kcub1=\ED\r, kcud1=\EB\r, kcuf1=\EC\r, kcuu1=\EA\r,
18959	kf0=\E@\r, kf1=\EP\r, kf2=\EQ\r, kf3=\ES\r, kf4=\ET\r,
18960	kf5=\EU\r, kf6=\EV\r, kf7=\EW\r, kf8=\EX\r, kf9=\EY\r,
18961	khome=\ER\r, lf0=REFRSH, lf1=DEL CH, lf2=TABSET, lf3=GOTO,
18962	lf4=+PAGE, lf5=+SRCH, lf6=-PAGE, lf7=-SRCH, lf8=LEFT,
18963	lf9=RIGHT, ri=\E[T, rmso=\E[2 D, rmul=\E[2 D, smso=\E[6 D,
18964	smul=\E[18 D, use=ansi+idl1, use=ansi+local1,
18965
18966#### Kimtron (abm, kt)
18967#
18968# Kimtron seems to be history, but as March 1998 these people are still
18969# offering repair services for Kimtron equipment:
18970#
18971#    Com/Pair Monitor Service
18972#    1105 N. Cliff Ave.
18973#    Sioux Falls, South Dakota 57103
18974#
18975#    WATS voice:  1-800/398-4946
18976#    POTS   fax: +1 605/338-8709
18977#    POTS voice: +1 605/338-9650
18978#         Email: <compair@sd.cybernex.net>
18979#  Internet/Web: <http://www.com-pair.com>
18980#
18981# Kimtron entries include (undocumented) codes for: enter dim mode,
18982# enter bold mode, enter reverse mode, turn off all attributes.
18983#
18984
18985# Kimtron ABM 85 added by Dual Systems
18986# (abm85: removed duplicated ":kd=^J:" -- esr)
18987abm85|Kimtron ABM 85,
18988	OTbs, am, bw, msgr,
18989	cols#80, it#8, lines#24, xmc#1,
18990	cbt=\EI, clear=\E*, cub1=^H, cud1=\n, cuf1=^L,
18991	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
18992	dl1=\ER, ed=\Ey, el=\Et, ht=^I,
18993	if=/usr/share/tabset/stdcrt, il1=\EE,
18994	is2=\EC\EX\Eg\En\E%\Er\E(\Ek\Em\Eq, kbs=^H, kcub1=^H,
18995	kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^, rmir=\Er, rmso=\Ek,
18996	rmul=\Em, smir=\EQ, smso=\Ej, smul=\El,
18997# Kimtron ABM 85H added by Dual Systems.
18998# Some notes about the abm85h entries:
18999# 1) there are several firmware revs of 85H in the world. Use abm85h-old for
19000#    firmware revs prior to SP51
19001# 2) Make sure to use abm85h entry if the terminal is in 85h mode and the
19002#    abm85e entry if it is in tvi920 emulation mode. They are incompatible
19003#    in some places and NOT software settable i.e., <is2> can't fix it)
19004# 3) In 85h mode, the arrow keys and special functions transmit when
19005#    the terminal is in dup-edit, and work only locally in local-edit.
19006#    Vi won't swallow `del char' for instance, but <smcup> turns on
19007#    dup-edit anyway so that the arrow keys will work right. If the
19008#    arrow keys don't work the way you like, change <smcup>, <rmcup>, and
19009#    <is2>.  Note that 920E mode does not have software commands to toggle
19010#    between dup and local edit, so you get whatever was set last on the
19011#    terminal.
19012# 4) <flash> attribute is nice, but seems too slow to work correctly
19013#    (\Eb<pad>\Ed)
19014# 5) Make sure `hidden' attributes are selected. If `embedded' attributes
19015#    are selected, the <xmc@> entry should be removed.
19016# 6) auto new-line should be on (selectable from setup mode only)
19017#
19018# From: Erik Fair <fair@ucbarpa>  Sun Oct 27 07:21:05 1985
19019abm85h|Kimtron ABM 85H native mode,
19020	hs,
19021	xmc@,
19022	bel=^G, cnorm=\E.4, cvvis=\E.2, dim=\E), dsl=\Ee, flash@,
19023	fsl=\r, invis@,
19024	is2=\EC\EN\EX\024\016\EA\Ea\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r
19025	    \EG0\Ed\E.4\El,
19026	kcud1=^V, sgr0=\E(\EG0, smir=\EZ, tsl=\Eg\Ef, use=adm+sgr,
19027	use=abm85,
19028abm85e|Kimtron ABM 85H in 920E mode,
19029	xmc@,
19030	bel=^G, dim=\E), flash@,
19031	is2=\EC\EX\EA\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\Ek\Eq
19032	    \Em,
19033	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
19034abm85h-old|oabm85h|o85h|Kimtron ABM 85H with old firmware rev.,
19035	xmc@,
19036	bel=^G, dim=\E),
19037	is2=\E}\EC\EX\Ee\En\E%\Er\E(\Ek\Em\Eq\Ed\ET\EC\E9
19038	    \EF,
19039	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
19040# From: <malman@bbn-vax.arpa>
19041# (kt7: removed obsolete :ma=^V^J^L :" -- esr)
19042kt7|kimtron model kt-7,
19043	OTbs, am,
19044	cols#80, it#8, lines#24,
19045	cbt=\EI, clear=^Z, cub1=^H, cud1=^V, cuf1=^L,
19046	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
19047	dl1=\ER, ed=\EY, el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
19048	if=/usr/share/tabset/stdcrt, il1=\EE, invis@, is2=\El\E",
19049	kbs=^H, kcbt=\EI, kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L,
19050	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r,
19051	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
19052	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
19053	kich1=\EQ, kil1=\EE, tsl=\Ef, use=adm+sgr,
19054# Renamed TB=^I to :ta:, BE=^G to :bl:, BS=^H to :kb:, N to :kS: (based on the
19055# other kt7 entry and the adjacent key capabilities).  Removed EE which is
19056# identical to :mh:.  Removed :ES=\EGD: which is some kind of highlight
19057# but we can't figure out what.
19058kt7ix|kimtron model kt-7 or 70 in IX mode,
19059	am, bw,
19060	cols#80, it#8, lines#25,
19061	acsc=jYk?lZm@nEqDt4uCvAwBx3, bel=^G, blink=\EG2, cbt=\EI,
19062	civis=\E.0, clear=\E*, cnorm=\E.3, cr=\r, cub1=^H, cud1=^V,
19063	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
19064	dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=\r,
19065	home=^^, ht=^I, ich1=\EQ, il1=\EE, ind=\n,
19066	is2=\EG0\E s\017\E~, kcbt=\EI, kclr=\E*, kdl1=\ER, ked=\EY,
19067	kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
19068	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
19069	kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, knp=\EJ,
19070	nel=\r\n, pulse=\EK, rmacs=\E%%, rmir=, rmso=\EG0, rmul=\EG0,
19071	sgr0=\EG0, smacs=\E$, smir=, smso=\EG4, smul=\EG8, tsl=\Ef,
19072	use=ansi+arrows,
19073
19074#### Microdata/MDIS
19075#
19076# This was a line of terminals made by McDonnell-Douglas Information Systems.
19077# These entries come direct from MDIS documentation.  I have edited them only
19078# to move primary names of the form p[0-9] * to aliases, and to comment out
19079# <rmacs>/<smacs> in a couple of entries without <acsc> strings.  I have
19080# also removed the change history; the last version indicates this is
19081# version 4.3 by A.Barkus, September 1990 (earliest entry is October 1989).
19082#
19083
19084# McDonnell Information Systems Terminal Family History
19085# =========================================
19086#
19087# Prism-1, Prism-2 and P99:
19088#       Ancient Microdata and CMC terminals, vaguely like ADDS Regent 25.
19089#
19090# Prism-4 and Prism-5:
19091#       Slightly less ancient range of Microdata terminals. Follow-on from
19092#       Prism-2, but with many enhancements. P5 has eight display pages.
19093#
19094# Prism-6:
19095#       A special terminal for use with library systems, primarily in Germany.
19096#       Limited numbers. Similar functionality to P5 (except attributes?).
19097#
19098# Prism-7, Prism-8 and Prism-9:
19099#       More recent range of MDIS terminals, in which P7 and P8
19100#       replace the P4 & P5, with added functionality, and P9 is the flagship.
19101#       The P9 has two emulation modes - P8 and ANSI - and includes a
19102#       large number of the DEC VT220 control sequences. Both
19103#       P8 and P9 support 80c/24ln/8pg and 132cl/24li/4pg formats.
19104#
19105# Prism-12 and Prism-14:
19106#       Latest range, functionally very similar to the P9.  The P14 has a
19107#       black-on-white overscanning screen.
19108#
19109# The terminfo definitions given here are:
19110#
19111# p2      - Prism-2 (or Prism-1 or P99).
19112#
19113# p4      - Prism-4 (and older P7s & P8s).
19114# p5      - Prism-5 (or Prism-6).
19115#
19116# p7      - Prism-7.
19117# p8      - Prism-8 (in national or multinational mode).
19118# p8-w    - 132 column version of p8.
19119# p9      - Prism-9 in ANSI mode.
19120# p9-w    - 132 column version of p9.
19121# p9-8    - Prism-9 in Prism-8 emulation mode.
19122# p9-8-w  - As p9-8, but with 132 columns.
19123#
19124# p12     - Prism-12 in ANSI mode.
19125# p12-w   - 132 column version of p12.
19126# p12-m   - Prism-12 in MDC emulation mode.
19127# p12-m-w - As p12-m, but with 132 columns.
19128# p14     - Prism-14 in ANSI mode.
19129# p14-w   - 132 column version of p14.
19130# p14-m   - Prism-14 in MDC emulation mode.
19131# p14-m-w - As p14-m, but with 132 columns.
19132#
19133# p2: Prism-2
19134# -----------
19135#
19136# Includes Prism-1 and basic P99 without SP or MP loaded.
19137# The simplest form of Prism-type terminal.
19138# Basic cursor movement and clearing operations only.
19139# No video attributes.
19140# Notes:
19141#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
19142#  value up, followed by backspace.
19143#
19144prism2|MDC Prism-2,
19145	am, bw, msgr,
19146	cols#80, lines#24,
19147	bel=^G, clear=\014$<20>, cr=\r, cub1=^H, cud1=\n, cuf1=^F,
19148	cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?
19149	    %{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
19150	cuu1=^Z, ed=\EJ, el=\EK, home=^A,
19151	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc
19152	    %=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
19153	ind=\n, kbs=^H, khome=^A, vpa=\013%p1%{32}%+%c,
19154
19155# p4: Prism-4
19156# -----------
19157#
19158# Includes early versions of P7 & P8.
19159# Basic family definition for most Prisms (except P2 and P9 ANSI).
19160# Notes:
19161#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
19162#  value up, followed by backspace.
19163#  Cursor key definitions removed because they interfere with vi and csh keys.
19164#
19165prism4|p4|P4|MDC Prism-4,
19166	am, bw, hs, mc5i, msgr,
19167	cols#80, lines#24, wsl#72, xmc#1,
19168	bel=^G, blink=^CB, civis=\035\344, clear=\014$<20>,
19169	cnorm=\035\342, cr=\r, cub1=^H, cud1=\n, cuf1=^F,
19170	cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?
19171	    %{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
19172	cuu1=^Z, dim=^CA, dsl=\035\343\035\345, ed=\EJ, el=\EK,
19173	fsl=\035\345, home=^A,
19174	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc
19175	    %=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
19176	ind=\n, invis=^CH, kbs=^H, khome=^A, mc0=\EU, mc4=\ET, mc5=\ER,
19177	rev=^CD, rmso=^C\s, rmul=^C\s,
19178	sgr=\003%{64}%?%p1%p3%|%t%{4}%+%;%?%p2%t%{16}%+%;%?%p4%t%{2}
19179	    %+%;%?%p5%t%{1}%+%;%?%p7%t%{8}%+%;%c%?%p9%t\016%e\017%;,
19180	sgr0=^C\s, smso=^CD, smul=^CP, tsl=\035\343,
19181	vpa=\013%p1%{32}%+%c,
19182
19183# p5: Prism-5
19184# -----------
19185#
19186# Same definition as p4. Includes Prism-6 (not tested!).
19187# Does not use any multi-page features.
19188#
19189prism5|p5|P5|MDC Prism-5,
19190	use=p4,
19191
19192# p7: Prism-7
19193# -----------
19194#
19195# Similar definition to p4. Uses ANSI cursor motion to avoid network problems.
19196# Notes:
19197#  Use p4 for very early models of P7.
19198#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
19199#
19200prism7|p7|P7|MDC Prism-7,
19201	cup=\E[%i%p1%d;%p2%dH, hpa@, vpa@, use=p4,
19202
19203# p8: Prism-8
19204# -----------
19205#
19206# Similar definition to p7. Uses ANSI cursor motion to avoid network problems.
19207# Supports national and multinational character sets.
19208# Notes:
19209#  Alternate char set operations only work in multinational mode.
19210#  Use p4 for very early models of P8.
19211#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
19212# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
19213#
19214prism8|p8|P8|MDC Prism-8,
19215	cup=\E[%i%p1%d;%p2%dH, hpa=\E[%i%p1%d`, is2=\E[<12h,
19216	vpa=\E[%i%p1%dd, use=p4,
19217
19218# p8-w: Prism-8 in 132 column mode
19219# --------------------------------
19220#
19221# 'Wide' version of p8.
19222# Notes:
19223#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
19224#
19225prism8-w|p8-w|P8-W|MDC Prism-8 in 132 column mode,
19226	cols#132,
19227	is2=\E[<12h\E[<14h, use=p8,
19228
19229# p9: Prism-9 in ANSI mode
19230# -------------------------
19231#
19232# The "flagship" model of this generation of terminals.
19233# ANSI X3.64 (ISO 6429) standard sequences, plus many DEC VT220 ones.
19234# Notes:
19235#  Tabs only reset by "reset". Otherwise assumes default (8 cols).
19236#  Fixes to deal with terminal firmware bugs:
19237#  . 'ri' uses insert-line since rev index doesn't always
19238#  . 'sgr0' has extra '0' since esc[m fails
19239#  . 'fsl' & 'dsl' use illegal char since cr is actioned wrong on line 25
19240#  Not covered in the current definition:
19241#  . Labels
19242#  . Programming Fn keys
19243#  . Graphic characters (defaults correctly to vt100)
19244#  . Padding values (sets xon)
19245# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
19246#
19247prism9|p9|P9|MDC Prism-9 in ANSI mode,
19248	am, bw, hs, msgr, xenl, xon,
19249	cols#80, lines#24, vt#3, wsl#72,
19250	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[<4l, clear=^L,
19251	cnorm=\E[<4h, cr=\r, csr=\E[%i%p1%d;%p2%d%%v, cub1=^H,
19252	cud1=\n, dch=\E[%p1%dP, dch1=\E[P, dsl=\E[%}\024,
19253	ech=\E[%p1%dX, ed=\E[J$<10>, el=\E[K, fsl=^T,
19254	hpa=\E[%i%p1%d`, ind=\n, is2=\E[&p\E[<12l\E F, kclr=^L,
19255	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
19256	kf17=\E[31~, kf18=\E[32~, nel=\r\n, prot=\E[32%{, rc=\E[%z,
19257	rep=\E[%p2%db%p1%c, rev=\E[7m, ri=\E[L, rmir=\E[4l,
19258	rs2=\E[&p\E[<12l\E\sF\E[3g\E[9;17;25;33;41;49;57;65;73
19259	    \sN,
19260	sc=\E[%y,
19261	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;m%?
19262	    %p8%t\E[32%%{%;%?%p9%t\016%e\017%;,
19263	sgr0=\E[0m\017, smir=\E[4h, tsl=\E[%i%p1%d%%},
19264	vpa=\E[%i%p1%dd, use=ecma+underline, use=ecma+standout,
19265	use=ansi+arrows, use=ansi+cup, use=ansi+idl,
19266	use=ansi+inittabs, use=ansi+local, use=ansi+pp,
19267	use=xterm+r5+fkeys,
19268
19269# p9-w: Prism-9 in 132 column mode
19270# --------------------------------
19271#
19272# 'Wide' version of p9.
19273#
19274prism9-w|p9-w|P9-W|MDC Prism-9 in 132 column mode,
19275	cols#132,
19276	is2=\E[&p\E[<12l\E F\E[<14h,
19277	rs2=\E[&p\E[<12l\E F\E[<14h, use=p9,
19278
19279# p9-8: Prism-9 in P8 mode
19280# ------------------------
19281#
19282# P9 terminal in P8 emulation mode.
19283# Similar to p8 definition.
19284# Insertion and deletion operations possible.
19285#
19286prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
19287	dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@,
19288	use=ansi+idl, use=p8,
19289
19290# p9-8-w: Prism-9 in P8 and 132 column modes
19291# ------------------------------------------
19292#
19293# P9 terminal in P8 emulation mode and 132 column mode.
19294#
19295prism9-8-w|p9-8-w|P9-8-W|MDC Prism-9 in Prism 8 emulation and 132 column mode,
19296	dch=\E[%p1%dP, dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@,
19297	use=ansi+idl, use=p8-w,
19298
19299# p12: Prism-12 in ANSI mode
19300# ---------------------------
19301#
19302# See p9 definition.
19303#
19304prism12|p12|P12|MDC Prism-12 in ANSI mode,
19305	use=p9,
19306
19307# p12-w: Prism-12 in 132 column mode
19308# ----------------------------------
19309#
19310# 'Wide' version of p12.
19311#
19312prism12-w|p12-w|P12-W|MDC Prism-12 in 132 column mode,
19313	use=p9-w,
19314
19315# p12-m: Prism-12 in MDC emulation mode
19316# -------------------------------------
19317#
19318# P12 terminal in MDC emulation mode.
19319# Similar to p8 definition.
19320# Insertion and deletion operations possible.
19321#
19322prism12-m|p12-m|P12-M|MDC Prism-12 in MDC emulation mode,
19323	use=p9-8,
19324
19325# p12-m-w: Prism-12 in MDC emulation and 132 column modes
19326# -------------------------------------------------------
19327#
19328# P12 terminal in MDC emulation mode and 132 column mode.
19329#
19330prism12-m-w|p12-m-w|P12-M-W|MDC Prism-12 in MDC emulation and 132 column mode,
19331	use=p9-8-w,
19332
19333# p14: Prism-14 in ANSI mode
19334# ---------------------------
19335#
19336# See p9 definition.
19337#
19338prism14|p14|P14|MDC Prism-14 in ANSI mode,
19339	use=p9,
19340
19341# p14-w: Prism-14 in 132 column mode
19342# ----------------------------------
19343#
19344# 'Wide' version of p14.
19345#
19346prism14-w|p14-w|P14-W|MDC Prism-14 in 132 column mode,
19347	use=p9-w,
19348
19349# p14-m: Prism-14 in MDC emulation mode
19350# -------------------------------------
19351#
19352# P14 terminal in MDC emulation mode.
19353# Similar to p8 definition.
19354# Insertion and deletion operations possible.
19355#
19356prism14-m|p14-m|P14-M|MDC Prism-14 in MDC emulation mode,
19357	use=p9-8,
19358
19359# p14-m-w: Prism-14 in MDC emulation and 132 column modes
19360# -------------------------------------------------------
19361#
19362# P14 terminal in MDC emulation mode and 132 column mode.
19363#
19364prism14-m-w|p14-m-w|P14-M-W|MDC Prism-14 in MDC emulation and 132 column mode,
19365	use=p9-8-w,
19366
19367# End of McDonnell Information Systems Prism definitions
19368
19369# These things were popular in the Pick database community at one time
19370# From: George Land <georgeland@aol.com> 24 Sep 1996
19371p8gl|prism8gl|McDonnell-Douglas Prism-8 alternate definition,
19372	am, bw, hs, mir,
19373	cols#80, lines#24, ma#1, wsl#78, xmc#1,
19374	bel=^G, blink=^CB, clear=^L, cr=\r, cub1=^U, cud1=\n, cuf1=^F,
19375	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, dch1=\s^H, dim=^CA, dl1=^P,
19376	ed=\EJ, el=\EK, home=^A, ind=\n, invis=^CH, kbs=^H, kcub1=^U,
19377	kcud1=\n, kcuf1=^F, kcuu1=^Z, kdch1=\s^H, kdl1=^P, ked=\EJ,
19378	kel=\EK, kf1=^A@\r, kf10=^AI\r, kf12=^AJ\r, kf13=^AK\r,
19379	kf14=^AL\r, kf15=^AM\r, kf16=^AN\r, kf17=^AO\r, kf2=^AA\r,
19380	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
19381	kf8=^AG\r, kf9=^AH\r, khome=^A, lf1=F1, lf10=F10, lf2=F2,
19382	lf3=F3, lf4=F4, lf5=F5, lf6=F6, lf7=F7, lf8=F8, lf9=F9, nel=\n\r,
19383	pad=\0, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE,
19384	smul=^C0,
19385
19386#### Microterm (act, mime)
19387#
19388# The mime1 entries refer to the Microterm Mime I or Mime II.
19389# The default mime is assumed to be in enhanced act iv mode.
19390#
19391
19392# New "safe" cursor movement (5/87) from <reuss@umd5.umd.edu>.  Prevents
19393# freakout with out-of-range args on Sytek multiplexors.  No <smso=^N> and
19394# <rmso=^N> since  it gets confused and it's too dim anyway.  No <ich1>
19395# since Sytek insists ^S means xoff.
19396# (act4: found ":ic=2^S:ei=:im=:ip=.1*^V:" commented out in 8.3 -- esr)
19397act4|microterm|microterm act iv,
19398	OTbs, am,
19399	cols#80, lines#24,
19400	bel=^G, clear=\014$<12/>, cr=\r, cub1=^H, cud1=^K, cuf1=^X,
19401	cup=\024%p1%{24}%+%c%p2%p2%?%{47}%>%t%{48}%+%;%{80}%+%c,
19402	cuu1=^Z, dch1=\004$<.1*/>, dl1=\027$<2.3*/>,
19403	ed=\037$<2.2*/>, el=\036$<.1*/>, home=^],
19404	il1=\001<2.3*/>, ind=\n, kcub1=^H, kcud1=^K, kcuf1=^X,
19405	kcuu1=^Z,
19406# The padding on :sr: and :ta: for act5 and mime is a guess and not final.
19407# The act 5 has hardware tabs, but they are in columns 8, 16, 24, 32, 41 (!)...
19408# (microterm5: removed obsolete ":ma==^Z^P^Xl^Kj:" -- esr)
19409act5|microterm5|microterm act v,
19410	ri=\EH$<3>, uc=^H\EA, use=act4,
19411# Mimes using brightness for standout.  Half bright is really dim unless
19412# you turn up the brightness so far that lines show up on the screen.
19413mime-fb|full bright mime1,
19414	is2=^S\E, rmso=^S, smso=^Y, use=mime,
19415mime-hb|half bright mime1,
19416	is2=^Y\E, rmso=^Y, smso=^S, use=mime,
19417# (mime: removed obsolete ":ma=^X ^K^J^Z^P:"; removed ":do=^K:" that overrode
19418# the more plausible ":do=^J:" -- esr)
19419# uc was at one time disabled to get around a curses bug, be wary of it
19420mime|mime1|mime2|mimei|mimeii|microterm mime1,
19421	OTbs, am,
19422	cols#80, it#8, lines#24, vt#9,
19423	bel=^G, clear=^]^C, cr=\r, cub1=^H, cud1=\n, cuf1=^X,
19424	cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%{48}%+%;%{80}%+%c,
19425	cuu1=^Z, dl1=\027$<80>, ed=^_, el=^^, home=^], ht=\011$<2>,
19426	il1=\001$<80>, ind=\n, is2=^S\E^Q, kcub1=^H, kcud1=^K,
19427	kcuf1=^X, kcuu1=^Z, ri=\022$<3>, uc=^U,
19428# These termcaps (for mime2a) put the terminal in low intensity mode
19429# since high intensity mode is so obnoxious.
19430mime2a-s|microterm mime2a (emulating an enhanced Soroc iq120),
19431	OTbs, am,
19432	cols#80, lines#24,
19433	bel=^G, clear=\EL, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
19434	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EI, dch1=\ED,
19435	dl1=\027$<20*>, ed=\EJ$<20*>, el=\EK, home=^^,
19436	il1=\001$<20*>, ind=\n, ip=$<2>, is2=\E), kcub1=^H, kcud1=\n,
19437	kcuf1=^L, kcuu1=^K, ri=\EI, rmir=^Z, rmso=\E;, rmul=\E7,
19438	smir=\EE, smso=\E:, smul=\E6,
19439# This is the preferred mode (but ^X can't be used as a kill character)
19440mime2a|mime2a-v|microterm mime2a (emulating an enhanced VT52),
19441	OTbs,
19442	cols#80, it#8, lines#24,
19443	bel=^G, clear=\EL, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
19444	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=^N,
19445	dl1=\027$<20*>, ed=\EQ$<20*>, el=\EP, home=\EH, ht=^I,
19446	il1=\001$<20*>, ind=\n, ip=$<2>, is2=^Y, ri=\EA, rmir=^Z,
19447	rmso=\E9, rmul=\E5, smir=^O, smso=\E8, smul=\E4,
19448	use=vt52+arrows,
19449# (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
19450mime3a|mime1 emulating 3a,
19451	am@,
19452	kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
19453mime3ax|mime-3ax|mime1 emulating enhanced 3a,
19454	it#8,
19455	dl1=\027$<80>, ed=^_, el=^X, ht=\011$<3>, il1=\001$<80>,
19456	use=mime3a,
19457# Wed Mar  9 18:53:21 1983
19458# We run our terminals at 2400 baud, so there might be some timing problems at
19459# higher speeds. The major improvements in this model are the terminal now
19460# scrolls down and insert mode works without redrawing the rest of the line
19461# to the right of the cursor. This is done with a bit of a kludge using the
19462# exit graphics mode to get out of insert, but it does not appear to hurt
19463# anything when using vi at least. If you have some users using act4s with
19464# programs that use curses and graphics mode this could be a problem.
19465mime314|mm314|mime 314,
19466	am,
19467	cols#80, lines#24,
19468	clear=^L, cub1=^H, cuf1=^X, cup=\024%p1%c%p2%c, cuu1=^Z,
19469	dch1=^D, dl1=^W, ed=^_, el=^^, home=^], ht=^I, il1=^A, kcub1=^H,
19470	kcud1=^K, kcuf1=^X, kcuu1=^Z, rmir=^V, smir=^S,
19471# Microterm mime 340 from University of Wisconsin
19472mm340|mime340|mime 340,
19473	cols#80, lines#24,
19474	clear=\032$<12/>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
19475	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
19476	dch1=\E#$<2.1*/>, dl1=\EV$<49.6/>, ed=\037$<2*/>,
19477	el=\EL$<2.1/>, ht=^I, il1=\EU$<46/>, ind=\n, is2=\E\,,
19478	kbs=^H, kcub1=^H, kcud1=\n, kcuu1=^K, nel=\r\n,
19479# This came from University of Wisconsin marked "astro termcap for jooss".
19480# (mt4520-rv: removed obsolete ":kn#4:" and incorrect ":ri=\E[C:";
19481# also added <rmam>/<smam> based  on the init string -- esr)
19482mt4520-rv|micro-term 4520 reverse video,
19483	am, hs, msgr, xenl, xon,
19484	cols#80, it#8, lines#24, wsl#80,
19485	bel=^G, cnorm=\E[0V\E8, cr=\r, cvvis=\E7\E[0U,
19486	dch=\E[%p1%dP, dch1=\E[P, flash=\E[?5l$<200/>\E[?5h,
19487	fsl=\E[?5l\E[?5h, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
19488	ind=\ED,
19489	is2=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[1;24r\E[24;1H\E[H
19490	    \E[J,
19491	ll=\E[24;1H, nel=\EE, rf=/usr/share/tabset/vt100, ri=\EM,
19492	rmam=\E[?7l, rmso=\E[0m,
19493	rs1=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[H\E[J,
19494	sgr0=\E[m, smam=\E[?7h, smso=\E[7m, tbc=\E[g, tsl=\E[25;1H,
19495	use=ecma+underline, use=ansi+arrows, use=ansi+csr,
19496	use=ansi+cup, use=ansi+erase, use=ansi+idl,
19497	use=ansi+local, use=vt100+pf1-pf4,
19498
19499# Fri Aug  5 08:11:57 1983
19500# This entry works for the ergo 4000 with the following setups:
19501# ansi,wraparound,newline disabled, xon/xoff disabled in both
19502# setup a & c.
19503#
19504# WARNING!!! There are multiple versions of ERGO 4000 microcode
19505# Be advised that very early versions DO NOT WORK RIGHT !!
19506# Microterm does have a ROM exchange program- use it or lose big
19507# (ergo400: added <rmam>/<smam> based on the init string -- esr)
19508ergo4000|microterm ergo 4000,
19509	da, db, msgr,
19510	cols#80, lines#66,
19511	bel=^G, clear=\E[H\E[2J$<80>, cr=\r, cub1=^H,
19512	cup=\E[%i%p1%d;%p2%dH, dch1=\E[1P$<80>, dl1=\E[1M$<5*>,
19513	ed=\E[0J$<15>, el=\E[0K$<13>, ht=^I, il1=\E[1L$<5*>,
19514	ind=\ED$<20*>,
19515	is2=\E<\E=\E[?1l\E[?4l\E[?5l\E[?7h\E[?8h$<300>,
19516	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, lf1=pf1,
19517	lf2=pf2, lf3=pf3, lf4=pf4, ri=\EM$<20*>, rmam=\E[?7l,
19518	rmir=\E[4l, rmkx=\E=$<4>, rmso=\E[m$<20>, sgr0=\E[m$<20>,
19519	smam=\E[?7m, smir=\E[4h$<6>, smkx=\E=$<4>,
19520	smso=\E[7m$<20>, use=ansi+local1, use=vt100+pf1-pf4,
19521
19522#### NCR
19523#
19524# NCR's terminal group was merged with AT&T's when AT&T bought the company.
19525# For what happened to that group, see the ADDS section.
19526#
19527# There is an NCR4103 terminal that's just a re-badged Wyse-50.
19528#
19529
19530# The following vendor-supplied termcaps were captured from the Boundless
19531# Technologies site, 8 March 1998.  I removed all-upper-case names that were
19532# identical, except for case, to lower-case ones.  I also uncommented the acsc
19533# capabilities.X
19534#
19535# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
19536# DEC VT200/300 with color capabilities added.
19537ncr260intan|NCR Intecolor emulation of the 2900/260C with an ANSI keyboard,
19538	colors#8, pairs#64,
19539	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
19540	use=decid+cpr, use=ncr260vt300an,
19541# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
19542# DEC VT200/300 with color capabilities added.
19543ncr260intwan|NCR Intecolor emulation of the 2900/260C with an ANSI keyboard (132 column),
19544	colors#8, pairs#64,
19545	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
19546	use=decid+cpr, use=ncr260vt300wan,
19547# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
19548# DEC VT200/300 with color capabilities added.
19549ncr260intpp|NCR Intecolor emulation of the 2900/260C with a PC+ keyboard,
19550	colors#8, pairs#64,
19551	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
19552	use=ncr260vt300pp,
19553# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
19554# DEC VT200/300 with color capabilities added.
19555ncr260intwpp|NCR Intecolor emulation of the 2900/260C with a PC+ keyboard (132 column),
19556	colors#8, pairs#64,
19557	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
19558	use=ncr260vt300wpp,
19559# This definition for ViewPoint supports several attributes.  This means
19560# that it has magic cookies (extra spaces where the attributes begin).
19561# Some applications do not function well with magic cookies.  The System
19562# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
19563# If supporting various attributes is not vital, 'xmc#1' and the extra
19564# attributes can be removed.
19565# Mapping to ASCII character set ('acsc' capability) can also be
19566# restored if needed.
19567ncr260vppp|NCR 2900/260 viewpoint,
19568	am, bw, km, mc5i, mir, msgr, xon,
19569	cols#80, lines#24, nlab#32, xmc#1,
19570	acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, bel=^G, blink=\EG2,
19571	cbt=\EI, civis=\E`0, clear=\014$<40>, cnorm=\E`5,
19572	cr=\r$<2>, cub1=\010$<2>, cud1=\n$<2>, cuf1=\006$<2>,
19573	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5>, cuu1=\032$<2>,
19574	dch1=\EW$<2>, dim=\EGp, dl1=\El$<2>, ed=\Ek$<2>,
19575	el=\EK$<2>, home=\036$<2>, ht=^I, hts=\E1, il1=\EM$<2>,
19576	ind=\n$<2>, invis=\EG1,
19577	is2=\Ee6\E~%$<100>\E+\E`:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0
19578	    \EcC1\Ee7$<100>,
19579	kDC=\El, kEND=\Ek, kHOM=^A, kPRT=\E7, kRIT=^F, ka1=^A, ka3=\EJ,
19580	kbs=^H, kc1=\ET, kc3=\EJ, kcub1=^U, kcud1=\n, kcuf1=^F,
19581	kcuu1=^Z, kdch1=\EW, kend=\EK, kf1=^B1\r, kf10=^B:\r,
19582	kf11=^B;\r, kf12=^B<\r, kf13=^B=\r, kf14=^B>\r, kf15=^B?\r,
19583	kf16=^B@\r, kf17=^B!\r, kf18=^B"\r, kf19=^B#\r, kf2=^B2\r,
19584	kf20=^B$\r, kf21=^B%^M, kf22=^B&\r, kf23=^B'\r, kf24=^B(\r,
19585	kf25=^B)\r, kf26=^B*\r, kf27=^B+\r, kf28=\002\,\r,
19586	kf29=^B-\r, kf3=^B3\r, kf30=^B.\r, kf31=^B/\r, kf32=^B0\r,
19587	kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r, kf8=^B8\r,
19588	kf9=^B9\r, khome=^A, kich1=\Eq, knp=\EJ, kpp=\EJ, kprt=\EP,
19589	ll=\001$<5>, mc0=\EP$<100>, mc4=^T, mc5=^R,
19590	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<5>,
19591	nel=\037$<2>, rev=\EG4, ri=\Ej$<2>, rmacs=\EcB0\EH\003,
19592	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
19593	rs2=\Ee6\E~%$<100>\E+\E`:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0
19594	    \EcC1\Ee7$<100>,
19595	sgr0=\EG0\EH\003, smacs=\EcB1\EH\002, smir=\Eq,
19596	smso=\EG4, smul=\EG8, smxon=\Ec21, use=ncr260vp+sl,
19597
19598ncr260vp+sl|NCR 2900/260 viewpoint with status-line,
19599	hs,
19600	dsl=\E`c, fsl=\r, tsl=\EF,
19601
19602ncr260vpwpp|NCR 2900/260 viewpoint wide mode,
19603	cols#132,
19604	cup=\Ea%i%p1%dR%p2%dC$<30>,
19605	is2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0
19606	    \EcC1\Ee7$<100>,
19607	rs2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0
19608	    \EcC1\Ee7$<100>,
19609	use=ncr260vppp,
19610
19611ncr260vt100an|NCR 2900/260 VT100 with ANSI keyboard,
19612	am, mir, msgr, xenl, xon,
19613	cols#80, lines#24, nlab#32,
19614	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
19615	clear=\E[2J\E[1;1H$<20>, cr=\r$<1>, cub=\E[%p1%dD$<5>,
19616	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
19617	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
19618	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
19619	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
19620	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, ech=\E[%p1%dX,
19621	ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>, home=\E[H$<1>,
19622	hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, ich=\E[%p1%d@$<5>,
19623	il=\E[%p1%dL$<5>, il1=\E[L$<5>, ind=\ED$<5>,
19624	indn=\E[%p1%dE$<5>,
19625	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19626	    200>,
19627	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19628	khlp=\E[28~, kich1=\E[2~, krdo=\E[29~, nel=\EE$<5>,
19629	ri=\EM$<5>, rmacs=^O, rmir=\E[4l, rmkx=\E[?1l\E>,
19630	rmso=\E[0m, rmul=\E[0m,
19631	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19632	    200>,
19633	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
19634	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
19635	sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
19636	smkx=\E[?1h\E=, smso=\E[1;7m, tbc=\E[3g,
19637	vpa=\E[%p1%dd$<40>, use=ansi+csr, use=ansi+sgrbold,
19638	use=decid+cpr, use=vt220+vtedit, use=vt220+cvis,
19639	use=vt220+keypad, use=ncr260vt+sl,
19640
19641ncr260vt+sl|NCR 2900/260 VT100 status line,
19642	hs,
19643	dsl=\E[0$~\E[1$~, fsl=\E[0$}, tsl=\E[2$~\E[1$},
19644ncr260vt100wan|NCR 2900/260 VT100 wide mode ANSI keyboard,
19645	cols#132,
19646	cup=\E[%i%p1%d;%p2%dH$<30>,
19647	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19648	    200>,
19649	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19650	    200>,
19651	use=ncr260vt100an,
19652ncr260vt100pp|NCR 2900/260 VT100 with PC+ keyboard,
19653	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
19654	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
19655	kend=\E[5~, khome=\E[2~, kich1=\E[1~, kpp=\E[3~, lf1=pf1,
19656	lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
19657	use=ncr260vt100an,
19658ncr260vt100wpp|NCR 2900/260 VT100 wide mode PC+  keyboard,
19659	cols#132,
19660	cup=\E[%i%p1%d;%p2%dH$<30>,
19661	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19662	    200>,
19663	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19664	    200>,
19665	use=ncr260vt100pp,
19666ncr260vt200an|NCR 2900/260 VT200 with ANSI keyboard,
19667	am, mir, msgr, xenl, xon,
19668	cols#80, lines#24, nlab#32,
19669	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
19670	clear=\E[2J\E[1;1H$<20>, cr=\r$<1>,
19671	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
19672	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
19673	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
19674	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
19675	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
19676	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, ech=\E[%p1%dX$<5>,
19677	ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>, home=\E[H,
19678	hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, ich=\E[%p1%d@$<5>,
19679	il=\E[%p1%dL$<5>, il1=\E[L$<5>, ind=\ED$<5>,
19680	indn=\E[%p1%dE$<5>,
19681	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19682	    200>,
19683	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19684	kf0=\EOy, kf21=\E[31~, kf22=\E[32~, kf23=\E[33~,
19685	kf24=\E[34~, kf25=\E[35~, kf26=\E[1~, kf27=\E[2~,
19686	kf28=\E[3~, kf29=\E[4~, kf30=\E[5~, kf31=\E[6~, kf32=\E[7~,
19687	kf33=\E[8~, kf34=\E[9~, kf35=\E[10~, kf5=\E[M, khlp=\E[28~,
19688	krdo=\E[29~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8,
19689	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
19690	rmkx=\E[?1l\E>,
19691	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19692	    200>,
19693	sc=\E7,
19694	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
19695	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
19696	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
19697	smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
19698	vpa=\E[%p1%dd$<40>, use=ecma+underline,
19699	use=ecma+standout, use=ansi+sgrbold, use=decid+cpr,
19700	use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
19701	use=ncr260vt+sl, use=vt220+sfkeys, use=vt220+ufkeys,
19702
19703ncr260vt200wan|NCR 2900/260 VT200 wide mode ANSI keyboard,
19704	cols#132,
19705	cup=\E[%i%p1%d;%p2%dH$<30>,
19706	is2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
19707	rs2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>, use=ncr260vt200an,
19708ncr260vt200pp|NCR 2900/260 VT200 with PC+ keyboard,
19709	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
19710	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
19711	kend=\E[1~, khome=\E[H, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
19712	rmkx=\E>, smkx=\E=, use=ncr260vt200an,
19713ncr260vt200wpp|NCR 2900/260 VT200 wide mode PC+  keyboard,
19714	cols#132,
19715	cup=\E[%i%p1%d;%p2%dH$<30>,
19716	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19717	    200>,
19718	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<
19719	    200>,
19720	use=ncr260vt200pp,
19721ncr260vt300an|NCR 2900/260 VT300 with ANSI keyboard,
19722	am, mir, msgr, xenl, xon,
19723	cols#80, lines#24, nlab#32,
19724	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
19725	clear=\E[2J\E[1;1H$<20>, cr=\r$<1>,
19726	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
19727	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
19728	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
19729	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
19730	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
19731	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, ech=\E[%p1%dX$<5>,
19732	ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>, home=\E[H,
19733	hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH, ich=\E[%p1%d@$<5>,
19734	il=\E[%p1%dL$<5>, il1=\E[L$<5>, ind=\ED$<5>,
19735	indn=\E[%p1%dE$<5>,
19736	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1
19737	    ;1H\E>$<200>,
19738	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
19739	kf0=\EOy, kf21=\E[31~, kf22=\E[32~, kf23=\E[33~,
19740	kf24=\E[34~, kf25=\E[35~, kf26=\E[1~, kf27=\E[2~,
19741	kf28=\E[3~, kf29=\E[4~, kf30=\E[5~, kf31=\E[6~, kf32=\E[7~,
19742	kf33=\E[8~, kf34=\E[9~, kf35=\E[10~, kf5=\E[M, khlp=\E[28~,
19743	krdo=\E[29~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8,
19744	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
19745	rmkx=\E[?1l\E>,
19746	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1
19747	    ;1H\E>$<200>,
19748	sc=\E7,
19749	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
19750	    %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<20>,
19751	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
19752	smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
19753	vpa=\E[%p1%dd$<40>, use=ecma+underline,
19754	use=ecma+standout, use=ansi+sgrbold, use=decid+cpr,
19755	use=vt220+vtedit, use=vt220+cvis, use=vt220+keypad,
19756	use=ncr260vt+sl, use=vt220+sfkeys, use=vt220+ufkeys,
19757
19758ncr260vt300wan|NCR 2900/260 VT300 wide mode ANSI keyboard,
19759	cols#132,
19760	cup=\E[%i%p1%d;%p2%dH$<30>,
19761	is2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1
19762	    H$<200>,
19763	rs2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1
19764	    H$<200>,
19765	use=ncr260vt300an,
19766ncr260vt300pp|NCR 2900/260 VT300 with PC+ keyboard,
19767	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
19768	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
19769	kend=\E[1~, khome=\E[H, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
19770	rmkx=\E>, smkx=\E=, use=ncr260vt300an,
19771ncr260vt300wpp|NCR260VT300WPP|NCR 2900/260 VT300 wide mode PC+  keyboard,
19772	cols#132,
19773	cup=\E[%i%p1%d;%p2%dH$<30>,
19774	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1
19775	    ;1H\E>$<200>,
19776	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1
19777	    ;1H\E>$<200>,
19778	use=ncr260vt300pp,
19779# This terminfo file contains color capabilities for the Wyse325 emulation of
19780# the NCR 2900/260C color terminal.  Because of the structure of the command
19781# (escape sequence) used to set color attributes, one of the fore/background
19782# colors must be preset to a given value. I have set the background color to
19783# black.  The user can change this setup by altering the last section of the
19784# 'setf' definition.  The escape sequence to set color attributes is
19785#		ESC d y <foreground_color> <background_color> 1
19786# In addition, the background color can be changed through the desk accessories.
19787# The capability 'op' sets colors to green on black (default combination).
19788#
19789# NOTE:  The NCR Unix System Administrator's Shell will not function properly
19790#	    if the 'pairs' capability is defined. Un-Comment the 'pairs'
19791#	    capability and recompile if you wish to have it included.
19792#
19793ncr260wy325pp|NCR 2900/260 Wyse 325,
19794	am, bw, km, mc5i, mir, msgr, xon,
19795	colors#16, cols#80, lines#24, ncv#33, nlab#32,
19796	acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, bel=^G, blink=\EG2,
19797	cbt=\EI, civis=\E`0, clear=\E*$<10>, cnorm=\E`1, cr=\r,
19798	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
19799	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
19800	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, ed=\Ey$<5>,
19801	el=\Et$<5>, home=\036$<5>, ht=^I, hts=\E1, il1=\EE$<5>,
19802	ind=\n$<5>, invis=\EG1,
19803	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"\Ee4\Ex@\E`9
19804	    \Ee7$<100>,
19805	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
19806	kRIT=^L, ka1=^^, kb2=\EJ, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H,
19807	kcud1=\n, kcuf1=^L, kcuu1=^K, kdch1=\EW, kend=\ET,
19808	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
19809	kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf20=^Ac\r, kf21=^Ad\r,
19810	kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, kf26=^Ai\r,
19811	kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf30=^Am\r, kf31=^An\r,
19812	kf32=^Ao\r, khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
19813	mc0=\EP, mc4=^T, mc5=^R,
19814	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
19815	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
19816	rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
19817	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"\Ee4\Ex@\E`9
19818	    \Ee7$<100>,
19819	setb=\s,
19820	setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}
19821	     %e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}
19822	     %e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{64}%e%p1%{8}%=%t%{57}
19823	     %e%p1%{9}%=%t%{58}%e%p1%{10}%=%t%{59}%e%p1%{11}%=%t
19824	     %{60}%e%p1%{12}%=%t%{61}%e%p1%{13}%=%t%{62}%e%p1%{14}%=
19825	     %t%{63}%e%p1%{15}%=%t%{56}%;\Edy%c11$<100>,
19826	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH\002\EcB1, smam=\Ed/,
19827	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
19828	use=ncr260vp+sl, use=tvi920b+fn, use=ansi+arrows,
19829	use=ansi+apparrows,
19830ncr260wy325wpp|NCR 2900/260 Wyse 325 wide mode,
19831	cols#132,
19832	cup=\Ea%i%p1%dR%p2%dC$<30>,
19833	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9
19834	    \Ee7$<100>,
19835	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9
19836	    \Ee7$<100>,
19837	use=ncr260wy325pp,
19838# This definition for Wyse 350 supports several attributes.  This means
19839# that it has magic cookies (extra spaces where the attributes begin).
19840# Some applications do not function well with magic cookies.  The System
19841# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
19842# If supporting various attributes is not vital, 'xmc#1' and the extra
19843# attributes can be removed.
19844# Mapping to ASCII character set ('acsc' capability) can also be
19845# restored if needed.
19846# In addition, color capabilities have been added to this file.  The drawback,
19847# however, is that the background color has to be black.  The foreground colors
19848# are numbered 0 through 15.
19849#
19850# NOTE:  The NCR Unix System Administrator's Shell does not function properly
19851#	    with the 'pairs' capability defined as below.  If you wish to
19852#	    have it included, Un-comment it and recompile (using 'tic').
19853#
19854ncr260wy350pp|NCR 2900/260 Wyse 350,
19855	colors#16, ncv#33, pairs#16,
19856	acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, cbt=\EI,
19857	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, ed=\Ey$<5>,
19858	el=\Et$<5>, ht=^I, hts=\E1,
19859	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"\Ee4\Ex@\E`9
19860	    \Ee7$<100>,
19861	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<20>,
19862	rmacs=\EH\003\EcB0,
19863	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"\Ee4\Ex@\E`9
19864	    \Ee7$<100>,
19865	setb=\s,
19866	setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}
19867	     %e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}
19868	     %e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{102}%e%p1%{8}%=%t%{97}
19869	     %e%p1%{9}%=%t%{98}%e%p1%{10}%=%t%{99}%e%p1%{11}%=%t
19870	     %{101}%e%p1%{12}%=%t%{106}%e%p1%{13}%=%t%{110}%e%p1
19871	     %{14}%=%t%{111}%e%p1%{15}%=%t%{56}%;\Em0%c$<100>,
19872	sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, tbc=\E0,
19873	use=ncr260vp+sl, use=ncr160wy50+pp,
19874ncr260wy350wpp|NCR 2900/260 Wyse 350 wide mode,
19875	cols#132,
19876	cup=\Ea%i%p1%dR%p2%dC$<30>,
19877	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9
19878	    \Ee7$<200>,
19879	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9
19880	    \Ee7$<200>,
19881	use=ncr260wy350pp,
19882# This definition for Wyse 50+ supports several attributes.  This means
19883# that it has magic cookies (extra spaces where the attributes begin).
19884# Some applications do not function well with magic cookies.  The System
19885# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
19886# If supporting various attributes is not vital, 'xmc#1' and the extra
19887# attributes can be removed.
19888# Mapping to ASCII character set ('acsc' capability) can also be
19889# restored if needed.
19890# (ncr260wy50+pp: originally contained commented-out
19891# <acsc=j5k3l2m1n8q:t4u9v=w0x6>, as well as the commented-out one there -- esr)
19892ncr260wy50+pp|NCR 2900/260 Wyse 50+,
19893	am, bw, km, mc5i, mir, msgr, xon,
19894	cols#80, lines#24, nlab#32, xmc#1,
19895	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
19896	cbt=\EI$<5>, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=\r,
19897	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
19898	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<30>, cuu1=\013$<5>,
19899	cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>,
19900	ed=\EY$<5>, el=\ET$<5>, home=\036$<10>, ht=\011$<5>,
19901	hts=\E1$<5>, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
19902	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"
19903	    \Ee4\Ex@\E`9\Ee7$<100>,
19904	kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
19905	kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=\n, kcuf1=^L,
19906	kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
19907	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
19908	kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
19909	kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
19910	kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
19911	kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
19912	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
19913	khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
19914	mc0=\EP$<10>, mc4=^T, mc5=^R,
19915	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
19916	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
19917	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
19918	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"
19919	    \Ee4\Ex@\E`9\Ee7$<100>,
19920	sgr0=\EG0\EH\003$<15>, smacs=\EH^B, smam=\Ed/, smir=\Eq,
19921	smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<5>,
19922	use=ncr260vp+sl,
19923ncr260wy50+wpp|NCR 2900/260 Wyse 50+ wide mode,
19924	cols#132,
19925	cup=\Ea%i%p1%dR%p2%dC$<30>,
19926	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"
19927	    \Ee4\Ex@\E`9\Ee7$<200>,
19928	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"
19929	    \Ee4\Ex@\E`9\Ee7$<200>,
19930	use=ncr260wy50+pp,
19931ncr260wy60pp|NCR 2900/260 Wyse 60,
19932	am, bw, km, mc5i, mir, msgr, xon,
19933	cols#80, lines#24, nlab#32,
19934	acsc=07a?h;j5k3l2m1n8q:t4u9v=w0x6, bel=^G, blink=\EG2,
19935	cbt=\EI$<15>, civis=\E`0, clear=\E*$<100>, cnorm=\E`1,
19936	cr=\r, cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
19937	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
19938	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, ed=\Ey$<5>,
19939	el=\Et$<5>, home=\036$<25>, ht=\011$<15>, hts=\E1$<15>,
19940	il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
19941	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"
19942	    \Ee4\Ex@\E`9\Ee7$<100>,
19943	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
19944	kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK,
19945	kcbt=\EI$<15>, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
19946	kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
19947	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
19948	kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r,
19949	kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r,
19950	kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r,
19951	kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r,
19952	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
19953	kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
19954	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<30>,
19955	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
19956	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
19957	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`:\E`@\E~!\E"
19958	    \Ee4\Ex@\E`9\Ee7$<100>,
19959	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH^B, smam=\Ed/,
19960	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<15>,
19961	use=ncr260vp+sl,
19962ncr260wy60wpp|NCR 2900/260 Wyse 60 wide mode,
19963	cols#132,
19964	cup=\Ea%i%p1%dR%p2%dC$<30>,
19965	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"
19966	    \Ee4\Ex@\E`9\Ee7$<100>,
19967	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"
19968	    \Ee4\Ex@\E`9\Ee7$<100>,
19969	use=ncr260wy60pp,
19970ncr160vppp|NCR 2900/160 viewpoint,
19971	use=ncr260vppp,
19972ncr160vpwpp|NCR 2900/160 viewpoint wide mode,
19973	use=ncr260vpwpp,
19974ncr160vt100an|NCR 2900/160 VT100 with ANSI keyboard,
19975	use=ncr260vt100an,
19976ncr160vt100pp|NCR 2900/160 VT100 with PC+  keyboard,
19977	use=ncr260vt100pp,
19978ncr160vt100wan|NCR 2900/160 VT100 wide mode ANSI keyboard,
19979	use=ncr260vt100wan,
19980ncr160vt100wpp|NCR 2900/160 VT100 wide mode PC+  keyboard,
19981	use=ncr260vt100wpp,
19982ncr160vt200an|NCR 2900/160 VT200 with ANSI keyboard,
19983	use=ncr260vt200an,
19984ncr160vt200pp|NCR 2900/160 VT200 with PC+  keyboard,
19985	use=ncr260vt200pp,
19986ncr160vt200wan|NCR 2900/160 VT200 wide mode ANSI keyboard,
19987	use=ncr260vt200wan,
19988ncr160vt200wpp|NCR 2900/160 VT200 wide mode PC+  keyboard,
19989	use=ncr260vt200wpp,
19990ncr160vt300an|NCR 2900/160 VT300 with ANSI keyboard,
19991	use=ncr260vt300an,
19992ncr160vt300pp|NCR 2900/160 VT300 with PC+ keyboard,
19993	use=ncr260vt300pp,
19994ncr160vt300wan|NCR 2900/160 VT300 wide mode ANSI keyboard,
19995	use=ncr260vt300wan,
19996ncr160vt300wpp|NCR 2900/160 VT300 wide mode PC+  keyboard,
19997	use=ncr260vt300wpp,
19998ncr160wy50+pp|NCR 2900/160 Wyse 50+,
19999	use=ncr260wy50+pp,
20000ncr160wy50+wpp|NCR 2900/160 Wyse 50+ wide mode,
20001	use=ncr260wy50+wpp,
20002ncr160wy60pp|NCR 2900/160 Wyse 60,
20003	use=ncr260wy60pp,
20004ncr160wy60wpp|NCR 2900/160 Wyse 60 wide mode,
20005	use=ncr260wy60wpp,
20006ncrvt100an|ncrvt100pp|NCR VT100 for the 2900 terminal,
20007	hs, mc5i, mir, xon,
20008	nlab#32,
20009	acsc=``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~,
20010	blink=\E[5m$<30>, bold=\E[1m$<30>,
20011	clear=\E[2J\E[1;1H$<300>,
20012	csr=\E[%i%p1%d;%p2%dr$<100>, cub=\E[%p1%dD$<30>,
20013	cub1=\E[D$<2>, cud=\E[%p1%dB$<30>, cud1=\E[B$<2>,
20014	cuf=\E[%p1%dC$<30>, cup=\E[%i%p1%d;%p2%dH$<100>,
20015	cuu=\E[%p1%dA$<30>, dch=\E[%p1%dP$<40>,
20016	dch1=\E[1P$<10>, dl=\E[%p1%dM$<70>, dl1=\E[M$<40>,
20017	dsl=\E[31l$<25>, ed=\E[0J$<300>, el=\E[0K$<30>,
20018	el1=\E[1K$<30>, enacs=\E(B\E)0$<40>, fsl=1$<10>,
20019	home=\E[H$<2>$<80>, il=\E[%p1%dL$<80>,
20020	il1=\E[B\E[L$<80>, ind=\ED,
20021	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3l\E(B\E)0$<200>,
20022	kLFT=\E[D, kRIT=\E[C, ka1=\E[H, kent=\r, mc0=\E[i$<100>,
20023	nel=\EE, rc=\E8, rev=\E[7m$<30>, ri=\EM$<50>,
20024	rmacs=\017$<90>, rmir=\E[4l$<80>, rmso=\E[0m$<30>,
20025	rmul=\E[0m$<30>,
20026	rs2=\Ec\E[12;31h\E[?3;4;5;10l\E[?6;7;19;25h\E[33;34l\E[0m\E(
20027	    B\E)0\E%/0n\E[P\031$<200>,
20028	sc=\E7,
20029	sgr=%?%p9%t\016%e\017%;\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1
20030	    %p3%|%t;7%;%?%p4%t;5%;m$<120>,
20031	sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>,
20032	smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>,
20033	tsl=\E[>+1$<70>, use=decid+cpr, use=vt100+4bsd,
20034	use=vt100+pf1-pf4,
20035ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal,
20036	cols#132,
20037	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>,
20038	rs2=\Ec\E[12;31h\E[?4;5;10l\E?3;6;7;19;25h\E[33;34l\E[0m\E(B
20039	    \E)0\E%/0n\E[P\031$<200>,
20040	use=ncrvt100an,
20041#
20042# Vendor-supplied NCR termcaps end here
20043
20044# NCR7900 DIP switches:
20045#
20046# Switch A:
20047# 1-4 - Baud Rate
20048# 5   - Parity (Odd/Even)
20049# 6   - Don't Send or Do Send Spaces
20050# 7   - Parity Enable
20051# 8   - Stop Bits (One/Two)
20052#
20053# Switch B:
20054# 1   - Upper/Lower Shift
20055# 2   - Typewriter Shift
20056# 3   - Half Duplex / Full Duplex
20057# 4   - Light/Dark Background
20058# 5-6 - Carriage Return Without / With Line Feed
20059# 7   - Extended Mode
20060# 8   - Suppress Keyboard Display
20061#
20062# Switch C:
20063# 1   - End of line entry disabled/enabled
20064# 2   - Conversational mode / (Local?) Mode
20065# 3   - Control characters displayed / not displayed
20066# 4   - (2-wire?) / 4-wire communications
20067# 5   - RTS on and off for each character
20068# 6   - (50Hz?) / 60 Hz
20069# 7   - Exit after level zero diagnostics
20070# 8   - RS-232 interface
20071#
20072# Switch D:
20073# 1   - Reverse Channel (yes / no)
20074# 2   - Manual answer (no / yes)
20075# 3-4 - Cursor appearance
20076# 5   - Communication Rate
20077# 6   - Enable / Disable EXT turnoff
20078# 7   - Enable / Disable CR turnoff
20079# 8   - Enable / Disable backspace
20080#
20081# Since each attribute parameter is 0 or 1, we shift each attribute (standout,
20082# reverse, blink, dim, and underline) the appropriate number of bits (by
20083# multiplying the 0 or 1 by a correct factor to shift) so the bias character,
20084# '@' is (effectively) "or"ed with each attribute to generate the proper third
20085# character in the <ESC>0 sequence.  The <sgr> string implements the following
20086# equation:
20087#
20088# ((((('@' + P5) | (P4 << 1)) | (P3 << 3)) | (P2 << 4)) | (p1 * 17))    =>
20089# ((((('@' + P5) + (P4 << 1)) + (P3 << 3)) + (P2 << 4)) + (p1 * 17))
20090#
20091#	Where:  P1 <==> Standout attribute parameter
20092#		P2 <==> Underline attribute parameter
20093#		P3 <==> Reverse attribute parameter
20094#		P4 <==> Blink attribute parameter
20095#		P5 <==> Dim attribute parameter
20096# From <root@goliath.un.atlantaga.NCR.COM>, init string hacked by SCO.
20097ncr7900i|ncr7900|n7900|NCR 7900 model 1,
20098	am, bw, ul,
20099	cols#80, lines#24, xmc#1,
20100	bel=^G, blink=\E0B, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^F,
20101	cup=\E1%p2%c%p1%c, cuu1=^Z, dim=\E0A, ed=\Ek, el=\EK, ind=\n,
20102	is2=\E0@\010\E3\E4\E7, kcub1=^U, kcud1=\n, kcuf1=^F,
20103	kcuu1=^Z, khome=^A, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=\E0@,
20104	rmul=\E0@,
20105	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}
20106	    %*%+%c,
20107	sgr0=\E0@, smso=\E0Q, smul=\E0`,
20108ncr7900iv|NCR 7900 model 4,
20109	am, bw, eslok, hs,
20110	cols#80, lines#24,
20111	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n,
20112	cup=\013%p1%{64}%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1,
20113	fsl=\Ek\Ey5, home=\013@\E^E00, il1=\E^N, ind=\n, kbs=^H,
20114	kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ,
20115	kf8=\ER, khome=\EH, lf6=blue, lf7=red, lf8=white, nel=\r\n,
20116	tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo, use=vt52+arrows,
20117# Warning: This terminal will lock out the keyboard when it receives a CTRL-D.
20118#	   The user can enter a CTRL-B to get out of this locked state.
20119# In <hpa>, we want to output the character given by the formula:
20120#		((col / 10) * 16) + (col % 10)		where "col" is "p1"
20121ncr7901|NCR 7901 model,
20122	am, bw, ul,
20123	cols#80, lines#24,
20124	bel=^G, blink=\E0B, civis=^W, clear=^L, cnorm=^X, cr=\r,
20125	cub1=^H, cud1=\n, cuf1=^F,
20126	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dim=\E0A,
20127	ed=\Ek, el=\EK,
20128	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c, ind=\n,
20129	is2=\E4^O, kclr=^L, kcub1=^U, kcud1=\n, kcuf1=^F, kcuu1=^Z,
20130	khome=^H, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=^O, rmul=^O,
20131	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}
20132	    %*%+%c\016,
20133	sgr0=^O, smso=\E0Q\016, smul=\E0`\016,
20134	vpa=\013%p1%{64}%+%c,
20135
20136# Newbury Data Recording Limited (Newbury Data)
20137#
20138# Have been manufacturing and reselling  various peripherals for a long time
20139# They don't make terminals anymore, but are still in business (in 2007).
20140# Their e-mail address is at ndsales@newburydata.co.uk
20141# and their post address is:
20142#
20143# Newbury Data Recording Ltd,
20144# Premier Park, Road One,
20145# Winsford, Cheshire, CW7 3PT
20146#
20147# Their technical support is still good, they sent me for free a printed copy
20148# of the 9500 user manual and I got it just 1 week after I first contacted them
20149# (in 2005)!
20150
20151# NDR 9500
20152# Manufactured in the early/mid eighties, behaves almost the same as a
20153# TeleVideo 950.  Take a 950, change its cabinet for a more 80s-ish one (but
20154# keep the same keyboard layout), add an optional 25-line mode, replace the DIP
20155# switches with a menu and remove the "lock line" feature (ESC !  1 and ESC !
20156# 2), here is the NDR 9500.  Even the line-lock, albeit disabled, is
20157# recognized:  if you type in "ESC !", the next (third) character is not
20158# echoed, showing that the terminal was actually waiting for a parameter!
20159ndr9500|nd9500|Newbury Data 9500,
20160	am, bw, hs, mc5i, mir, msgr, ul, xon,
20161	cols#80, lines#24, wsl#79,
20162	acsc=jDkClBmAnIqKtMuLvOwNxJ, bel=^G, cbt=\EI, civis=\E.0,
20163	clear=\E;, cnorm=\E.1, cr=\r, cub1=^H, cud1=^V, cuf1=^L,
20164	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
20165	dim=\E), dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
20166	flash=\Eb$<50/>\Ed, fsl=\r, home=^^, ht=^I, hts=\E1,
20167	ich1=\EQ, il1=\EE, ind=\n, is2=\Ew\E'\EDF\El\Er\EO,
20168	kDC=\Er, kDL=\EO, kEOL=\Et, kIC=\Eq, kcbt=\EI, kclr=^Z,
20169	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
20170	ked=\EY, kel=\ET, kent=\r, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
20171	kf12=^A`\r, kf13=^Aa\r, kf14=^Ab\r, kf15=^Ac\r, kf16=^Ad\r,
20172	kf17=^Ae\r, kf18=^Af\r, kf19=^Ag\r, kf2=^AA\r, kf20=^Ah\r,
20173	kf21=^Ai\r, kf22=^Aj\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
20174	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
20175	kich1=\EQ, kil1=\EE, kprt=\EP, mc4=\Ea, mc5=\E`, nel=^_,
20176	pfloc=\E|%{48}%p1%+%c2%p2%s\031,
20177	pfx=\E|%{48}%p1%+%c1%p2%s\031, prot=\E), ri=\Ej,
20178	rmacs=\E%%, rmir=\Er, rmso=\E(, rmxon=^N,
20179	sgr=\EG0\E%%%%\E(%?%p1%p5%p8%|%|%t\E)%;%?%p9%t\E$%;,
20180	sgr0=\EG0\E%%\E(, smacs=\E$, smir=\Eq, smso=\E), smxon=^O,
20181	tbc=\E3, tsl=\Eg\Ef\011%p1%{32}%+%c, .kbs=^H,
20182
20183ndr9500-nl|NDR 9500 with no status line,
20184	hs@,
20185	wsl@,
20186	dsl@, fsl@, tsl@, use=ndr9500,
20187
20188ndr9500-25|NDR 9500 with 25th line enabled,
20189	lines#25, use=ndr9500,
20190
20191ndr9500-25-nl|NDR 9500 with 25 lines and no status line,
20192	lines#25, use=ndr9500-nl,
20193
20194ndr9500-mc|NDR 9500 with magic cookies (enables underline inverse video invisible and blink),
20195	msgr@,
20196	xmc#1,
20197	blink=\EG2, invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0,
20198	sgr=\E%%\E(%?%p5%p8%|%t\E)%;%?%p9%t\E$%;\EG%{48}%?%p7%t%{1}
20199	    %+%;%?%p4%t%{2}%+%;%?%p3%p1%|%t%{4}%+%;%?%p2%t%{8}%+%;%c,
20200	smso=\EG4, smul=\EG8, use=ndr9500,
20201
20202ndr9500-25-mc|NDR 500 with 25 lines and magic cookies,
20203	lines#25, use=ndr9500-mc,
20204
20205ndr9500-mc-nl|NDR 9500 with magic cookies and no status line,
20206	hs@,
20207	wsl@,
20208	dsl@, fsl@, tsl@, use=ndr9500-mc,
20209
20210ndr9500-25-mc-nl|NDR 9500 with 25 lines and magic cookies and no status line,
20211	lines#25, use=ndr9500-mc-nl,
20212
20213#### Perkin-Elmer (Owl)
20214#
20215# These are official terminfo entries from within Perkin-Elmer.
20216#
20217
20218bantam|pe550|pe6100|Perkin Elmer 550,
20219	OTbs,
20220	cols#80, lines#24,
20221	bel=^G, clear=\EK$<20>, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
20222	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
20223	el=\EI$<20>, home=\EH, ind=\n, ll=\EH\EA,
20224fox|pe1100|Perkin Elmer 1100,
20225	OTbs, am,
20226	cols#80, lines#24,
20227	bel=^G, clear=\EH\EJ$<132>, cr=\r, cub1=^H, cud1=\n,
20228	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
20229	ed=\EJ$<5.5*>, el=\EI, flash=\020\002$<200/>\020\003,
20230	home=\EH, hts=\E1, ind=\n, ll=\EH\EA, tbc=\E3,
20231owl|pe1200|Perkin Elmer 1200,
20232	OTbs, am, in,
20233	cols#80, lines#24,
20234	bel=^G, clear=\EH\EJ$<132>, cr=\r, cub1=^H, cud1=\n,
20235	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
20236	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
20237	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
20238	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=\n, ip=$<5.5*>,
20239	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
20240	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
20241	rmso=\E!\0, sgr0=\E!\0, smso=\E!^H, tbc=\E3,
20242pe1251|pe6300|pe6312|Perkin Elmer 1251,
20243	am,
20244	cols#80, it#8, lines#24, pb#300, vt#8, xmc#1,
20245	bel=^G, clear=\EK$<332>, cr=\r, cub1=\ED, cud1=\EB, cuf1=\EC,
20246	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
20247	ed=\EJ$<20*>, el=\EI$<10*>, home=\EH, hts=\E1, ind=\n,
20248	kf0=\ERA, kf1=\ERB, kf10=\ERK, kf2=\ERC, kf3=\ERD, kf4=\ERE,
20249	kf5=\ERF, kf6=\ERG, kf7=\ERH, kf8=\ERI, kf9=\ERJ, tbc=\E3,
20250# (pe7000m: this had
20251#	rmul=\E!\0, smul=\E!\040,
20252# which is probably wrong, it collides with kf0
20253pe7000m|Perkin Elmer 7000 series monochrome monitor,
20254	am,
20255	cols#80, lines#24,
20256	bel=^G, cbt=\E!Y, clear=\EK, cr=\r, cub1=\ED, cud1=\EB,
20257	cuf1=\EC, cup=\ES%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
20258	ed=\EJ, el=\EI, home=\EH, ind=\n,
20259	is1=\E!\0\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V,
20260	kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\0, kf1=\E!^A,
20261	kf10=\E!\n, kf2=\E!^B, kf3=\E!^C, kf4=\E!^D, kf5=\E!^E,
20262	kf6=\E!^F, kf7=\E!^G, kf8=\E!^H, kf9=\E!^I, khome=\E!S,
20263	ll=\ES7\s, ri=\ER,
20264pe7000c|Perkin Elmer 7000 series colour monitor,
20265	is1=\E!\0\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0,
20266	rmul=\E!\0, smso=\Eb2, smul=\E!\s, use=pe7000m,
20267
20268#### Sperry Univac
20269#
20270# Sperry Univac has merged with Burroughs to form Unisys.
20271#
20272
20273# This entry is for the Sperry UTS30 terminal running the TTY
20274# utility under control of CP/M Plus 1R1. The functionality
20275# provided is comparable to the DEC VT100.
20276# (uts30: I added <rmam>/<smam> based on the init string -- esr)
20277uts30|Sperry UTS30 with cp/m@1R1,
20278	am, bw, hs,
20279	cols#80, lines#24, wsl#40,
20280	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20281	bel=^G, blink=\E[5m, bold=\E[1m, civis=\ER, clear=^L,
20282	cnorm=\ES, cr=\r, csr=\EU%p1%{32}%+%c%p2%{32}%+%c,
20283	cub1=^H, dch=\E[%p1%dP, dch1=\EM, dl=\E[%p1%dM, dl1=\EL,
20284	fsl=\r, ht=^I, ich=\E[%p1%d@, ich1=\EO, il=\E[%p1%dL,
20285	il1=\EN, ind=\n, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H,
20286	khome=\E[H, rc=\EX, rev=\E[7m,
20287	rf=/usr/share/tabset/vt100, ri=\EI, rin=\E[%p1%dA,
20288	rmacs=\Ed, rmam=\E[?7l,
20289	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\EW,
20290	sgr0=\E[m, smacs=\EF, smam=\E[?7m, tsl=\E], uc=\EPB,
20291	use=ansi+apparrows, use=ansi+cup, use=ansi+erase,
20292	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
20293
20294#### Tandem
20295#
20296# Tandem builds these things for use with its line of fault-tolerant
20297# transaction-processing computers.  They aren't generally available
20298# on the merchant market, and so are fairly uncommon.
20299#
20300
20301tandem6510|adm3a repackaged by Tandem,
20302	use=adm3a,
20303
20304# A funny series of terminal that TANDEM uses.  The actual model numbers
20305# have a fourth digit after 653 that designates minor variants.  These are
20306# natively block-mode and rather ugly, but they have a character mode which
20307# this doubtless(?) exploits.  There is a 6520 that is slightly dumber.
20308# (tandem653: had ":sb=\ES:", probably someone's mistake for sf; also,
20309# removed <if=/usr/share/tabset/tandem653>, no such file -- esr)
20310tandem653|t653x|Tandem 653x multipage terminal,
20311	OTbs, am, da, db, hs,
20312	cols#80, lines#24, wsl#64, xmc#1,
20313	clear=\EI, cub1=^H, cud1=\n, cuf1=\EC,
20314	cup=\023%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dsl=\Eo\r,
20315	ed=\EJ, el=\EK, fsl=\r, home=\EH, ind=\ES, ri=\ET, rmso=\E6\s,
20316	rmul=\E6\s, sgr0=\E6\s, smso=\E6$, smul=\E60, tsl=\Eo,
20317
20318#### Tandy/Radio Shack
20319#
20320# Tandy has a line of VDTs distinct from its microcomputers.
20321#
20322
20323dmterm|deskmate terminal,
20324	am, bw,
20325	cols#80, lines#24,
20326	bel=^G, civis=\EG5, clear=\Ej, cnorm=\EG6, cr=\r, cub1=^H,
20327	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
20328	cuu1=\EA, dch1=\ES, dl1=\ER, ed=\EJ, el=\EK, home=\EH, ht=^I,
20329	ich1=\EQ, il1=\EP, ind=\EX, invis@, kf0=\E1, kf1=\E2, kf2=\E3,
20330	kf3=\E4, kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
20331	khome=\EH, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6,
20332	lf6=f7, lf7=f8, lf8=f9, lf9=f10, ll=\EE, rmul@, smul@,
20333	use=adm+sgr, use=vt52+arrows,
20334dt100|dt-100|Tandy DT-100 terminal,
20335	xon,
20336	cols#80, lines#24, xmc#1,
20337	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, clear=\E[H\E[2J,
20338	cr=\r, csr=\E[%p1%2d;%p2%2dr, cub1=^H,
20339	cup=\010\E[%i%p1%d;%p2%dH, dch1=\E[P, ed=\E[J, el=\E[K,
20340	home=\E[H, ht=^I, ich1=\E[@, ind=\n, is2=\E[?3l\E)0\E(B,
20341	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[?3i,
20342	kf10=\E[?5i, kf2=\E[2i, kf3=\E[@, kf4=\E[M, kf5=\E[17~,
20343	kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, khome=\E[H,
20344	knp=\E[29~, kpp=\E[28~, lf1=f1, lf2=f2, lf3=f3, lf4=f4, lf5=f5,
20345	lf6=f6, lf7=f7, lf8=f8, ri=\EM, rmacs=^O, sgr0=\E[m, smacs=^N,
20346	use=ansi+idl1, use=ansi+local1, use=ansi+sgrso,
20347	use=ansi+sgrul, use=vt220+cvis,
20348dt100w|dt-100w|Tandy DT-100 terminal (wide mode),
20349	cols#132, use=dt100,
20350
20351dt110|Tandy DT-110 emulating ANSI,
20352	xon,
20353	cols#80, lines#24,
20354	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, clear=\E[H\E[2J,
20355	cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
20356	cup=\010\E[%i%p1%d;%p2%dH, dch1=\E[0P, dl1=\E[0M,
20357	ed=\E[0J, el=\E[0K, enacs=\E(B\E)0, home=\E[H, ht=^I,
20358	ich1=\E[0@, il1=\E[0L, ind=\n, is2=\E[?3l\E)0\E(B,
20359	kend=\E[K, kf1=\E[1~, kf10=\E[10~, kf2=\E[2~, kf3=\E[3~,
20360	kf4=\E[4~, kf5=\E[5~, kf6=\E[6~, kf7=\E[7~, kf8=\E[8~,
20361	kf9=\E[9~, khome=\E[G, kich1=\E[@, knp=\E[26~, kpp=\E[25~,
20362	lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8,
20363	lf8=f9, lf9=f10, ri=\EM, rmacs=^O, sgr0=\E[m, smacs=^N,
20364	use=ansi+cup, use=ansi+local1, use=ansi+sgrso,
20365	use=ansi+sgrul, use=vt100+noapp, use=vt220+cvis,
20366pt210|TRS-80 PT-210 printing terminal,
20367	hc, os,
20368	cols#80,
20369	bel=^G, cr=\r, cud1=\n, ind=\n,
20370
20371#### Tektronix (tek)
20372#
20373# Tektronix tubes are graphics terminals.  Most of them use modified
20374# oscilloscope technology incorporating a long-persistence green phosphor,
20375# and support vector graphics on a main screen with an attached "dialogue
20376# area" for interactive text.
20377#
20378
20379tek|tek4012|Tektronix 4012,
20380	OTbs, os,
20381	cols#75, lines#35,
20382	bel=^G, clear=\E\014$<1000>, cr=\r, cub1=^H, cud1=\n,
20383	ff=\014$<1000>, is2=\E^O,
20384# (tek4013: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
20385tek4013|Tektronix 4013,
20386	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4012,
20387tek4014|Tektronix 4014,
20388	cols#81, lines#38,
20389	is2=\E\017\E9, use=tek4012,
20390# (tek4015: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
20391tek4015|Tektronix 4015,
20392	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014,
20393tek4014-sm|Tektronix 4014 in small font,
20394	cols#121, lines#58,
20395	is2=\E\017\E:, use=tek4014,
20396# (tek4015-sm: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
20397tek4015-sm|Tektronix 4015 in small font,
20398	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014-sm,
20399# Tektronix 4023 from Andrew Klossner <orca!andrew.tektronix@csnet-relay>
20400#
20401# You need to have "stty nl2" in effect.  Some versions of tset(1) know
20402# how to set it for you.
20403#
20404# It's got the Magic Cookie problem around stand-out mode.  If you can't
20405# live with Magic Cookie, remove the :so: and :se: fields and do without
20406# reverse video.  If you like reverse video stand-out mode but don't want
20407# it to flash, change the letter 'H' to 'P' in the :so: field.
20408tek4023|Tektronix 4023,
20409	OTbs, am,
20410	OTdN#4, cols#80, lines#24, vt#4, xmc#1,
20411	OTnl=\n, bel=^G, clear=\E\014$<4/>, cr=\r, cub1=^H, cud1=\n,
20412	cuf1=^I, cup=\034%p2%{32}%+%c%p1%{32}%+%c, kbs=^H,
20413	rmso=^_@, smso=^_P,
20414# It is recommended that you run the 4025 at 4800 baud or less;
20415# various bugs in the terminal appear at 9600.  It wedges at the
20416# bottom of memory (try "cat /usr/dict/words"); ^S and ^Q typed
20417# on keyboard don't work.  You have to hit BREAK twice to get
20418# one break at any speed - this is a documented feature.
20419# Can't use cursor motion because it's memory relative, and
20420# because it only works in the workspace, not the monitor.
20421# Same for home. Likewise, standout only works in the workspace.
20422#
20423# <el> was commented out since vi and rogue seem to work better
20424# simulating it with lots of spaces!
20425#
20426# <il1> and <il> had 145ms of padding, but that slowed down vi's ^U
20427# and didn't seem necessary.
20428#
20429tek4024|tek4025|tek4027|Tektronix 4024/4025/4027,
20430	OTbs, am, da, db,
20431	cols#80, it#8, lines#34, lm#0,
20432	bel=^G, clear=\037era\r\n\n, cmdch=^_, cr=\r,
20433	cub=\037lef %p1%d\r, cub1=^H, cud=\037dow %p1%d\r,
20434	cud1=^F\n, cuf=\037rig %p1%d\r, cuf1=\037rig\r,
20435	cuu=\037up %p1%d\r, cuu1=^K, dch1=\037dch\r,
20436	dl=\037dli %p1%d\r\006, dl1=\037dli\r\006,
20437	ed=\037dli 50\r, ht=^I, ich1=\037ich\r \010,
20438	il=\037up\r\037ili %p1%d\r, il1=\037up\r\037ili\r,
20439	ind=^F\n,
20440	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
20441	rmkx=\037lea\sp2\r\037lea\sp4\r\037lea\sp6\r\037lea\sp8\r
20442	     \037lea\sf5\r,
20443	smkx=\037lea\sp4\s/h/\r\037lea\sp8\s/k/\r\037lea\sp6\s/\s/
20444	     \r\037lea\sp2\s/j/\r\037lea\sf5\s/H/\r,
20445tek4025-17|Tektronix 4025 17 line window,
20446	lines#17, use=tek4025,
20447tek4025-17-ws|Tektronix 4025 17 line window in workspace,
20448	is2=!com\s31\r\n\037sto\s9\s17\s25\s33\s41\s49\s57\s65\s73
20449	    \r\037wor\s17\r\037mon\s17\r,
20450	rmcup=\037mon h\r, rmso=\037att s\r, smcup=\037wor h\r,
20451	smso=\037att e\r, use=tek4025-17,
20452tek4025-ex|tek4027-ex|Tektronix 4025/4027 w/!,
20453	is2=\037com 33\r\n!sto 9 17 25 33 41 49 57 65 73\r,
20454	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
20455# Tektronix 4025a
20456# From: Doug Gwyn <gwyn@brl-smoke.ARPA>
20457# The following status modes are assumed for normal operation (replace the
20458# initial "!" by whatever the current command character is):
20459#	!COM 29			# NOTE: changes command character to GS (^])
20460#	^]DUP
20461#	^]ECH R
20462#	^]EOL
20463#	^]RSS T
20464#	^]SNO N
20465#	^]STO 9 17 25 33 41 49 57 65 73
20466# Other modes may be set according to communication requirements.
20467# If the command character is inadvertently changed, termcap can't restore it.
20468# Insert-character cannot be made to work on both top and bottom rows.
20469# Clear-to-end-of-display emulation via !DLI 988 is too grotty to use, alas.
20470# There also seems to be a problem with vertical motion, perhaps involving
20471# delete/insert-line, following a typed carriage return.  This terminal sucks.
20472# Delays not specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
20473# (tek4025a: removed obsolete ":xx:". This may mean the tek4025a entry won't
20474# work any more. -- esr)
20475tek4025a|Tektronix 4025A,
20476	OTbs, OTpt, am, bw, da, db, xon,
20477	cols#80, it#8, lines#34,
20478	bel=^G, cbt=\035bac;, clear=\035era;\n\035rup;, cmdch=^],
20479	cr=\r, cub=\035lef %p1%d;, cub1=^H, cud=\035dow %p1%d;,
20480	cud1=\n, cuf=\035rig %p1%d;, cuf1=\035rig;,
20481	cuu=\035up %p1%d;, cuu1=^K, dch=\035dch %p1%d;,
20482	dch1=\035dch;, dl=\035dli %p1%d;, dl1=\035dli;,
20483	el=\035dch 80;, hpa=\r\035rig %p1%d;, ht=^I,
20484	il1=\013\035ili;, ind=\n, indn=\035dow %p1%d;,
20485	rs2=!com\s29\035del\s0\035rss\st\035buf\035buf\sn\035cle
20486	    \035dis\035dup\035ech\sr\035eol\035era\sg\035for\sn
20487	    \035pad\s203\035pad\s209\035sno\sn\035sto\s9\s17\s25
20488	    \s33\s41\s49\s57\s65\s73\035wor\s0;,
20489	tbc=\035sto;,
20490# From: cbosg!teklabs!davem Wed Sep 16 21:11:41 1981
20491# Here's the command file that I use to get rogue to work on the 4025.
20492# It should work with any program using the old curses (e.g. it better
20493# not try to scroll, or cursor addressing won't work.  Also, you can't
20494# see the cursor.)
20495# (This "learns" the arrow keys for rogue. I have adapted it for termcap - mrh)
20496tek4025-cr|Tektronix 4025 for curses and rogue,
20497	OTbs, am,
20498	cols#80, it#8, lines#33,
20499	clear=\037era;, cub1=^H, cud1=^F\n, cuf1=\037rig;,
20500	cup=\037jum%i%p1%d\,%p2%d;, cuu1=^K, ht=^I, ind=^F\n,
20501	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
20502	rmcup=\037wor 0, smcup=\037wor 33h,
20503# next two lines commented out since curses only allows 128 chars, sigh.
20504#	: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:\
20505#	: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:
20506tek4025ex|4025ex|4027ex|Tektronix 4025 w/!,
20507	is2=\037com\s33\r\n!sto\s9\,17\,25\,33\,41\,49\,57\,65\,73
20508	    \r,
20509	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
20510
20511tek4105|Tektronix 4105,
20512	OTbs, am, mir, msgr, ul, xenl, xt,
20513	cols#79, it#8, lines#29,
20514	acsc=, bel=^G, blink=\E[=3;<7m, bold=\E[=7;<4m, cbt=\E[Z,
20515	clear=\E[2J\E[H, cr=\r, cub1=\E[1D, cud1=\E[1B, cuf1=\E[1C,
20516	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[1A, dch1=\E[1P,
20517	dim=\E[=1;<6m, dl1=\E[1M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
20518	il1=\E[1L, ind=\E[S, invis=\E[=6;<5, is1=\E%!1\E[m,
20519	is2=\E%!1\E[?6141\E[m, kbs=^H, kcub1=\E[1D, kcud1=\E[1B,
20520	kcuf1=\E[1C, kcuu1=\E[1A, rev=\E[=1;<3m, ri=\E[T,
20521	rmacs=\E[m, rmcup=, rmir=\E[4l, rmso=\E[=0;<1m,
20522	rmul=\E[=0;<1m, sgr0=\E[=0;<1m, smacs=\E[1m,
20523	smcup=\E%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
20524	smul=\E[=5;<2m, tbc=\E[1g,
20525
20526# (tek4105-30: I added <rmam>/<smam> based on the init string -- esr)
20527tek4105-30|Tektronix 4015 emulating 30 line VT100,
20528	mir, xenl, xon,
20529	lines#30, vt#3,
20530	cub1=^H, cud1=\n, cuf1=\E[C$<2>, cuu1=\E[A$<2>, kcub1=\EOD,
20531	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmam=\E[?7l,
20532	rmkx=\E[?1l\E>, rmso=\E[m$<2>, smam=\E[?7h,
20533	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+local,
20534	use=vt100+4bsd, use=vt100+fnkeys,
20535
20536# Tektronix 4105 from BRL
20537# The following setup modes are assumed for normal operation:
20538#	CODE ansi		CRLF no			DABUFFER 141
20539#	DAENABLE yes		DALINES 30		DAMODE replace
20540#	DAVISIBILITY yes	ECHO no			EDITMARGINS 1 30
20541#	FLAGGING input		INSERTREPLACE replace	LFCR no
20542#	ORIGINMODE relative	PROMPTMODE no		SELECTCHARSET G0 B
20543#	SELECTCHARSET G1 0	TABS -2
20544# Other setup modes may be set for operator convenience or communication
20545# requirements; I recommend
20546#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
20547#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
20548#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
20549#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 10 1
20550#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
20551#	PROMPTSTRING ''		QUEUESIZE 2460		WINDOW 0 0 4095 3132
20552#	XMTDELAY 0
20553# and factory color maps.  After setting these modes, save them with NVSAVE. No
20554# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
20555# "IC" cannot be used in combination with "im" & "ei".
20556# "tek4105a" is just a guess:
20557tek4105a|Tektronix 4105 (BRL),
20558	OTbs, OTpt, msgr, xon,
20559	OTkn#8, cols#80, lines#30, vt#3,
20560	acsc=, bel=^G, blink=\E[5m, bold=\E[1m,
20561	civis=\E%!0\ETD00\E%!1, cnorm=\E%!0\ETD10\E%!1, cr=\r,
20562	cub1=^H, cud1=\n, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
20563	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ind=\n, is2=\E%!1,
20564	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20565	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
20566	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
20567	lf5=F6, lf6=F8, ll=\E[30;H, nel=\EE, rev=\E[7m, ri=\EM,
20568	rmacs=^O, rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l,
20569	rmkx=\E[?1l\E>,
20570	rs2=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40
20571	    \ELI100\ELLA>\ELM0\EKE0\ENF1\EKS0\END0\E%!1\Ec\E[?3;5l
20572	    \E[?7;8h\E[r\E[m\E>,
20573	sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
20574	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+cup,
20575	use=ansi+erase, use=ansi+idl, use=ansi+inittabs,
20576	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
20577	use=ecma+index,
20578
20579# Tektronix 4106/4107/4109 from BRL
20580# The following setup modes are assumed for normal operation:
20581#	CODE ansi		COLUMNMODE 80		CRLF no
20582#	DABUFFER 141		DAENABLE yes		DALINES 32
20583#	DAMODE replace		DAVISIBILITY yes	ECHO no
20584#	EDITMARGINS 1 32	FLAGGING input		INSERTREPLACE replace
20585#	LFCR no			LOCKKEYBOARD no		ORIGINMODE relative
20586#	PROMPTMODE no		SELECTCHARSET G0 B	SELECTCHARSET G1 0
20587#	TABS -2
20588# Other setup modes may be set for operator convenience or communication
20589# requirements; I recommend
20590#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
20591#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
20592#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
20593#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 9 3
20594#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
20595#	PROMPTSTRING ''		QUEUESIZE 2620		WINDOW 0 0 4095 3132
20596#	XMTDELAY 0
20597# and factory color maps.  After setting these modes, save them with NVSAVE.  No
20598# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
20599# "IC" cannot be used in combination with "im" & "ei".
20600tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109,
20601	msgr, xon,
20602	cols#80, lines#32, vt#3,
20603	acsc=, bel=^G, blink=\E[5m, bold=\E[1m,
20604	civis=\E%!0\ETD00\E%!1, cnorm=\E%!0\ETD10\E%!1, cr=\r,
20605	cub1=^H, cud1=\n, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
20606	dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, ind=\n, is2=\E%!1,
20607	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
20608	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
20609	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
20610	lf5=F6, lf6=F8, ll=\E[32;H, nel=\EE, rev=\E[7m, ri=\EM,
20611	rmacs=^O, rmcup=\E%!0\ELBH=\E%!1, rmir=\E[4l,
20612	rmkx=\E[?1l\E>, rmso=\E[m,
20613	rs1=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40
20614	    \ELI100\ELLB0\ELM0\EKE0\ENF1\EKS0\END0\ERE0\E%!1\Ec\E[?3
20615	    ;5l\E[?7;8h\E[r\E[m\E>,
20616	sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
20617	smkx=\E[?1h\E=, smso=\E[7;42m, use=ansi+csr,
20618	use=ansi+cup, use=ansi+erase, use=ansi+idl,
20619	use=ansi+inittabs, use=ansi+local, use=ansi+sgrul,
20620	use=ecma+index,
20621
20622# Refer to:
20623# TEK Programmer's Reference
20624# Part No. 070-4893-00
20625# Product Group 18
20626# 4107/4109 Computer Display Terminal
20627# November 1983
20628#
20629# Tektronix 4107/4109 interpret 4 modes using "\E%!" followed by a code:
20630# 0 selects Tek mode, i.e., \E%!0
20631# 1 selects ANSI mode
20632# 2 selects ANSI edit-mode
20633# 3 selects VT52 mode
20634#
20635# One odd thing about the description (which has been unchanged since the 90s)
20636# is that the cursor addressing is using VT52 mode, and a few others use the
20637# VT52's non-CSI versions of ANSI, e.g., \EJ.  A possible explanation is that
20638# the developer used Emacs, which misuses cvvis (this description sets VT52
20639# mode in that capability).
20640tek4107|tek4109|Tektronix terminals 4107 4109,
20641	OTbs, am, mir, msgr, ul, xenl, xt,
20642	cols#79, it#8, lines#29,
20643	bel=^G, blink=\E%!1\E[5m$<2>\E%!0,
20644	bold=\E%!1\E[1m$<2>\E%!0, clear=\ELZ, cnorm=\E%!0, cr=\r,
20645	cub1=^H, cud1=\n, cuf1=\EC,
20646	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E%!3,
20647	dim=\E%!1\E[<0m$<2>\E%!0, ed=\EJ, el=\EK, ht=^I, ind=\n,
20648	kbs=^H, rev=\E%!1\E[7m$<2>\E%!0, ri=\EI,
20649	rmso=\E%!1\E[m$<2>\E%!0, rmul=\E%!1\E[m$<2>\E%!0,
20650	sgr=\E%%!1\E[%?%p1%t;7;5%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;
20651	    %?%p5%t<0%;%?%p6%t;1%;m$<2>\E%%!0,
20652	sgr0=\E%!1\E[m$<2>\E%!0, smso=\E%!1\E[7;5m$<2>\E%!0,
20653	smul=\E%!1\E[4m$<2>\E%!0, use=vt52+arrows,
20654# Tektronix 4207 with sysline.  In the ancestral termcap file this was 4107-s;
20655# see the note attached to tek4207.
20656tek4207-s|Tektronix 4207 with sysline but no memory,
20657	eslok, hs,
20658	dsl=\E7\E[?6l\E[2K\E[?6h\E8, fsl=\E[?6h\E8,
20659	is1=\E%!1\E[2;32r\E[132D\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8
20660	    C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
20661	is2=\E7\E[?6l\E[2K\E[?6h\E8,
20662	tsl=\E7\E[?6l\E[2K\E[;%i%df, use=tek4107,
20663
20664# The 4110 series may be a wonderful graphics series, but they make the 4025
20665# look good for screen editing.  In the dialog area, you can't move the cursor
20666# off the bottom line.  Out of the dialog area, ^K moves it up, but there
20667# is no way to scroll.
20668#
20669# Note that there is a floppy for free from Tek that makes the
20670# 4112 emulate the VT52 (use the VT52 termcap). There is also
20671# an expected enhancement that will use ANSI standard sequences.
20672#
20673# 4112 in non-dialog area pretending to scroll. It really wraps
20674# but vi is said to work (more or less) in this mode.
20675#
20676# 'vi' works reasonably well with this entry.
20677#
20678otek4112|o4112-nd|otek4113|otek4114|Tektronix 4110 series (old),
20679	am,
20680	cols#80, lines#34,
20681	bel=^G, clear=\E^L, cr=\r, cub1=^H, cud1=\n, cuu1=^K, ind=\n,
20682	rmcup=\EKA1\ELV1, smcup=\EKA0\ELV0\EMG0,
20683# The 4112 with the ANSI compatibility enhancement
20684tek4112|tek4114|Tektronix 4110 series,
20685	OTbs, am, db,
20686	cols#80, lines#34,
20687	cbt=\E[Z, clear=\E[2J\E[0;0H, cub1=^H, cud1=\E[B,
20688	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch1=\E[P,
20689	ed=\E[0J, el=\E[0K, ich1=\E[@, ind=\E7\E[0;0H\E[M\E8,
20690	is2=\E3!1, ri=\E7\E[0;0H\E[L\E8, sgr0=\E[m,
20691	use=ansi+idl1, use=ansi+sgrso, use=ansi+sgrul,
20692tek4112-nd|Tektronix 4112 not in dialog area,
20693	OTns,
20694	cuu1=^K, use=tek4112,
20695tek4112-5|Tektronix 4112 in 5 line dialog area,
20696	lines#5, use=tek4112,
20697
20698# (tek4113: this used to have "<cuf1=\LM1\s\LM0>", someone's mistake;
20699# removed "<smacs=\E^N>, <rmacs=\E^O>", which had been commented out in 8.3.
20700# Note, the !0 and !1 sequences in <rmcup>/<smcup>/<cnorm>/<civis> were
20701# previously \0410 and \0411 sequences...I don't *think* they were supposed
20702# to be 4-digit octal -- esr)
20703tek4113|Tektronix 4113 color graphics with 5 line dialog area,
20704	OTbs, am, da, eo,
20705	cols#80, lines#5,
20706	clear=\ELZ, cub1=^H, cud1=\n, cuf1=\ELM1 \ELM0,
20707	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4
20708	      \ERBA4\ERBA4\ERB0,
20709	is2=\EKA1\ELL5\ELV0\ELV1, uc=\010\ELM1_\ELM0,
20710tek4113-34|Tektronix 4113 color graphics with 34 line dialog area,
20711	lines#34,
20712	is2=\EKA1\ELLB2\ELV0\ELV1, use=tek4113,
20713# :ns: left off to allow vi visual mode. APL font (:as=\E^N:/:ae=\E^O:) not
20714# supported here. :uc: is slow, but looks nice. Suggest setenv MORE -up .
20715# :vb: needs enough delay to let you see the background color being toggled.
20716tek4113-nd|Tektronix 4113 color graphics with no dialog area,
20717	OTbs, am, eo,
20718	cols#80, it#8, lines#34,
20719	clear=\E^L, cub1=^H, cud1=\n, cuf1=^I, cuu1=^K,
20720	cvvis=\ELZ\EKA0,
20721	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4
20722	      \ERBA4\ERBA4\ERB0,
20723	home=\ELF7l\177 @, ht=^I, is2=\ELZ\EKA0\ELF7l\177 @,
20724	ll=\ELF hl @, rmso=\EMT1, smso=\EMT2, uc=\010\EMG1_\EMG0,
20725# This entry is from Tek. Inc.  (Brian Biehl)
20726# (tek4115: :bc: renamed to :le:, <rmam>/<smam> added based on init string -- esr)
20727otek4115|Tektronix 4115 (old),
20728	OTbs, am, da, db, eo,
20729	cols#80, it#8, lines#34,
20730	cbt=\E[Z, clear=\E[H\E[2J,
20731	cnorm=\E%!0\ELBG8\E%!1\E[34;1H,
20732	cvvis=\E%!0\ELBB2\E%!1, dch1=\E[P, ed=\E[J, el=\E[K, ht=^I,
20733	if=/usr/share/tabset/vt100,
20734	is2=\E%!0\E%\014\ELV0\EKA1\ELBB2\ENU@=\ELLB2\ELM0\ELV1\EKYA?
20735	    \E%!1\E[<1l\E[?7h\E[?8h\E[34;1H\E[34B\E[m,
20736	kbs=^H, ri=\EM, rmam=\E[?7l,
20737	rmcup=\E%!0\ELBG8\E%!1\E[34;1H\E[J, rmir=\E[4l,
20738	rmkx=\E>, sgr0=\E[m, smam=\E[?7h, smcup=\E%!0\ELBB2\E%!1,
20739	smir=\E[4h, smkx=\E=, use=ansi+cup, use=ansi+idl1,
20740	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
20741tek4115|Tektronix 4115 entry with more ANSI capabilities (new),
20742	am, xon,
20743	cols#80, lines#34,
20744	bel=^G, cr=\r, cub1=^H, cud1=\n, dch1=\E[P, ich=\E[%p1%d@,
20745	ich1=\E[@, ind=\n, kcuu1=\E[A, rmam=\E[?7l, sgr0=\E[m,
20746	smam=\E[?7h, use=ansi+arrows, use=ansi+cup,
20747	use=ansi+erase, use=ansi+idl, use=ansi+local,
20748	use=ansi+rep, use=ansi+rca, use=ansi+sgrbold,
20749	use=ansi+tabs,
20750
20751# The tek4125 emulates a VT100 incorrectly - the scrolling region
20752# command is ignored.  The following entry replaces <csr> with the needed
20753# <il>, <il>, and <smir>; removes some cursor pad commands that the tek4125
20754# chokes on; and adds a lot of initialization for the Tektronix dialog area.
20755# Note that this entry uses all 34 lines and sets the cursor color to green.
20756# Steve Jacobson 8/85
20757# (tek4125: there were two "\!"s in the is that I replaced with "\E!";
20758# commented out, <smir>=\E1 because there's no <rmir>  -- esr)
20759tek4125|Tektronix 4125,
20760	lines#34,
20761	csr@, dl1=\E[1M, il1=\E[1L,
20762	is2=\E%\E!0\EQD1\EUX03\EKA\ELBB2\ELCE0\ELI100\ELJ2\ELLB2
20763	    \ELM0\ELS1\ELX00\ELV1\E%\E!1\E>\E[?3l\E[?4l\E[?5l\E[?7h
20764	    \E[?8h,
20765	rc@, sc@, smkx=\E=, use=vt100+4bsd,
20766
20767# From: <jcoker@ucbic>
20768# (tek4207: This was the termcap file's entry for the 4107/4207, but SCO
20769# supplied another, less capable 4107 entry.  So we'll use that for 4107 and
20770# note that if jcoker wasn't confused you may be able to use this one.
20771# I merged in <msgr>,<ind>,<ri>,<invis>,<tbc> from a BRL entry -- esr)
20772tek4207|Tektronix 4207 graphics terminal with memory,
20773	am, bw, mir, msgr, ul, xenl,
20774	cols#80, it#8, lines#32,
20775	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J$<156/>,
20776	cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\EM, dch1=\E[P$<4/>,
20777	dl1=\E[M$<3/>, ed=\E[J, el=\E[K$<5/>, ht=^I,
20778	ich1=\E[@$<4/>, il1=\E[L$<3/>, ind=\E[S, invis=\E[=6;<5,
20779	is2=\E%!0\ELBP0\E%!1\E[H\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8
20780	    C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
20781	kcub1=\E[D, kcud1=\ED, kcuf1=\E[C, kcuu1=\EM, khome=\E[H,
20782	rev=\E[7m, ri=\E[T,
20783	rmcup=\E[?6h\E%!0\ELBP0\E%!1\E[32;1f, sgr0=\E[m,
20784	smcup=\E[?6l\E[H\E[J, tbc=\E[1g, use=ansi+cup,
20785	use=ansi+sgrso, use=ansi+sgrul,
20786
20787# From: <carolyn@dali.berkeley.edu>  Thu Oct 31 12:54:27 1985
20788# (tek4404: There was a "\!" in <smcup> that I replaced with "\E!".
20789# Tab had been given as \E2I,that must be the tab-set capability -- esr)
20790tek4404|Tektronix 4404,
20791	OTbs,
20792	cols#80, it#8, lines#32,
20793	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cub1=^H, cud1=\n,
20794	cuf1=\E[C, cuu1=\E[A, dch1=\E[P, dl1=\E[1M, ed=\E[J, el=\E[K,
20795	ht=^I, hts=\E[2I, il1=\E[1L, kcub1=\E[D, kcud1=\E[B,
20796	kcuf1=\E[C, kcuu1=\E[A, rmcup=\E[1;1H\E[0J\E[?6h\E[?1l,
20797	rmir=\E[4l, rmkx=\E[?1h, sgr0=\E[m,
20798	smcup=\E%\E!1\E[1;32r\E[?6l\E>, smir=\E[4h,
20799	smkx=\E[?1l, use=ecma+standout, use=ansi+csr,
20800	use=ansi+cup, use=ansi+sgrul,
20801
20802# Some unknown person wrote:
20803# I added the is string - straight Unix has ESC ; in the login
20804# string which sets a ct8500 into monitor mode (aka 4025 snoopy
20805# mode). The is string here cleans up a few things (but not
20806# everything).
20807ct8500|Tektronix ct8500,
20808	am, bw, da, db,
20809	cols#80, lines#25,
20810	bel=^G, cbt=\E^I, clear=\E^E, cr=\r, cub1=^H, cud1=\n,
20811	cuf1=\ES, cup=\E|%p1%{32}%+%c%p2%{32}%+%c, cuu1=\ER,
20812	dch1=\E^], dl1=\E\r, ed=\E^U, el=\E^T, ht=^I, ich1=\E^\,
20813	il1=\E^L, ind=\n, is2=\037\EZ\Ek, ri=\E^A, rmso=\E\s,
20814	rmul=\E\s, sgr0=\E\s, smso=\E$, smul=\E!,
20815
20816# Tektronix 4205 terminal.
20817#
20818# am is not defined because the wrap around occurs not when the char.
20819# is placed in the 80'th column, but when we are attempting to type
20820# the 81'st character on the line.  (esr: hmm, this is like the VT100
20821# version of xenl, perhaps am + xenl would work!)
20822#
20823# Bold, dim, and standout are simulated by colors and thus not allowed
20824# with colors.  The Tektronix color table is mapped into the RGB color
20825# table by setf/setb. All colors are reset to factory specifications by oc.
20826# The <initc> cap uses RGB notation to define colors.  for arguments 1-3 the
20827# interval (0-1000) is broken into 8 smaller sub-intervals (125).  Each sub-
20828# interval then maps into pre-defined value.
20829tek4205|Tektronix 4205,
20830	ccc, mir, msgr,
20831	colors#8, cols#80, it#8, lines#30, ncv#49, pairs#63,
20832	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
20833	bel=^G, blink=\E[5m, bold=\E[=7;<4m, cbt=\E[Z,
20834	clear=\E[2J\E[H, cr=\r, dch1=\E[1P, dim=\E[=1;<6m,
20835	dl=\E[%p1%dM, dl1=\E[1M, ech=\E%p1%dX, ed=\E[J, el=\E[K,
20836	el1=\E[1K, enacs=\E)0, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
20837	il1=\E[1L, ind=\ED,
20838	initc=\E%%!0\ETF4%?%p1%{0}%=%t0%e%p1%{1}%=%t4%e%p1%{2}%=%t3
20839	      %e%p1%{3}%=%t5%e%p1%{4}%=%t2%e%p1%{5}%=%t6%e%p1%{6}%=
20840	      %t7%e1%;%?%p2%{125}%<%t0%e%p2%{250}%<%tA2%e%p2%{375}%<
20841	      %tA?%e%p2%{500}%<%tC8%e%p2%{625}%<%tD4%e%p2%{750}%<%tE
20842	      1%e%p2%{875}%<%tE:%eF4%;%?%p3%{125}%<%t0%e%p3%{250}%<
20843	      %tA2%e%p3%{375}%<%tA?%e%p3%{500}%<%tC8%e%p3%{625}%<%tD
20844	      4%e%p3%{750}%<%tE1%e%p3%{875}%<%tE:%eF4%;%?%p4%{125}%<
20845	      %t0%e%p4%{250}%<%tA2%e%p4%{375}%<%tA?%e%p4%{500}%<%tC8
20846	      %e%p4%{625}%<%tD4%e%p4%{750}%<%tE1%e%p4%{875}%<%tE:%eF
20847	      4%;\E%%!1,
20848	invis=\E[=6;<5, is1=\E%!0\ETM1\E%!1\E[m, kbs=^H,
20849	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOA,
20850	kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EP, kf5=\EQ, kf6=\ER,
20851	kf7=\ES,
20852	oc=\E%!0\ETFB000001F4F4F42F40030F404A4C<F450F4F46F40F47F4F40
20853	   \E%!1,
20854	op=\E[39;40m, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=,
20855	rmir=\E[4l, rmso=\E[=0;<1m,
20856	setb=\E[=%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1
20857	     %{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m
20858	     %e1m%;,
20859	setf=\E[<%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1
20860	     %{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m
20861	     %e1m%;,
20862	sgr0=\E[=0;<1m\E[24;25;27m\017, smacs=^N,
20863	smcup=\E%%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
20864	smul=\E[4m, tbc=\E[1g, use=ecma+underline, use=ansi+cup,
20865	use=ansi+local,
20866
20867#### Teletype (tty)
20868#
20869# These are the hardcopy Teletypes from before AT&T bought the company,
20870# clattering electromechanical dinosaurs in Bakelite cases that printed on
20871# pulpy yellow roll paper.  If you remember these you go back a ways.
20872# Teletype-branded VDTs are listed in the AT&T section.
20873#
20874# The earliest UNIXes were designed to use these clunkers; nroff and a few
20875# other programs still default to emitting codes for the Model 37.
20876#
20877
20878tty33|tty35|model 33 or 35 teletype,
20879	hc, os, xon,
20880	cols#72,
20881	bel=^G, cr=\r, cud1=\n, ind=\n,
20882tty37|model 37 teletype,
20883	OTbs, hc, os, xon,
20884	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=\E7, hd=\E9, hu=\E8,
20885	ind=\n,
20886
20887# There are known to be at least three flavors of the tty40, all seem more
20888# like IBM half duplex forms fillers than ASCII terminals.  They have lots of
20889# awful braindamage, such as printing a visible newline indicator after each
20890# newline.  The 40-1 is a half duplex terminal and is hopeless.  The 40-2 is
20891# braindamaged but has hope and is described here.  The 40-4 is a 3270
20892# lookalike and beyond hope.  The terminal has visible bell but I don't know
20893# it - it's null here to prevent it from showing the BL character.
20894# There is an \EG in <nl> because of a bug in old vi (if stty says you have
20895# a "newline" style terminal (-crmode) vi figures all it needs is nl
20896# to get crlf, even if <cr> is not ^M.)
20897# (tty40: removed obsolete ":nl=\EG\EB:", it's just do+cr -- esr)
20898tty40|ds40|ds40-2|dataspeed40|Teletype dataspeed 40/2,
20899	OTbs, xon,
20900	cols#80, lines#24,
20901	clear=\EH$<20>\EJ$<80>, cr=\EG, cub1=^H, cud1=\EB,
20902	cuf1=\EC, cuu1=\E7, dch1=\EP$<50>, dl1=\EM$<50>,
20903	ed=\EJ$<75>, home=\EH$<10>, ht=\E@$<10>, hts=\E1,
20904	ich1=\E\^$<50>, il1=\EL$<50>, ind=\ES$<20>, kbs=^],
20905	kcub1=^H, mc4=^T, mc5=\022$<2000>, ri=\ET$<10>, rmso=\E4,
20906	rs2=\023\ER$<60>, smso=\E3, tbc=\EH\E2$<80>,
20907tty43|model 43 teletype,
20908	OTbs, am, hc, os, xon,
20909	cols#132,
20910	bel=^G, cr=\r, cub1=^H, cud1=\n, ind=\n, kbs=^H,
20911
20912#### Tymshare
20913#
20914
20915# You can add <is2=\E<> to put this 40-column mode, though I can't
20916# for the life of me think why anyone would want to.
20917scanset|sc410|sc415|Tymshare Scan Set,
20918	am, bw, msgr,
20919	cols#80, lines#24,
20920	acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=\r, cub1=^H,
20921	cud1=\n, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
20922	cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=\n, mc0=\E;3, mc4=\E;0,
20923	mc5=\E;0, rc=^C, rmacs=^O, rs1=\E>, sc=^B, smacs=^N,
20924	use=vt52+arrows,
20925
20926#### Volker-Craig (vc)
20927#
20928# If you saw a Byte Magazine cover with a terminal on it during the early
20929# 1980s, it was probably one of these.  Carl Helmers liked them because
20930# they could crank 19.2 and were cheap (that is, he liked them until he tried
20931# to program one...)
20932#
20933
20934# Missing in vc303a and vc303 descriptions:  they scroll 2 lines at a time
20935# every other linefeed.
20936vc303|vc103|vc203|Volker-Craig 303,
20937	OTbs, OTns, am,
20938	cols#80, lines#24,
20939	bel=^G, clear=\014$<40>, cr=\r, cub1=^H, cud1=\n, cuf1=^I,
20940	cuu1=^N, home=\013$<40>, kcub1=^H, kcud1=\n, kcuf1=^I,
20941	kcuu1=^N, ll=\017$<1>W,
20942vc303a|vc403a|Volker-Craig 303a,
20943	clear=\030$<40>, cuf1=^U, cuu1=^Z, el=\026$<20>,
20944	home=\031$<40>, kcuf1=^U, kcuu1=^Z, ll=^P, use=vc303,
20945# (vc404: removed obsolete ":ma=^Z^P^U :" -- esr)
20946vc404|Volker-Craig 404,
20947	OTbs, am,
20948	cols#80, lines#24,
20949	bel=^G, clear=\030$<40>, cr=\r, cub1=^H, cud1=\n, cuf1=^U,
20950	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
20951	ed=\027$<40>, el=\026$<20>, home=\031$<40>, ind=\n,
20952	kcub1=^H, kcud1=\n, kcuf1=^U, kcuu1=^Z,
20953vc404-s|Volker-Craig 404 w/standout mode,
20954	cud1=\n, rmso=^O, smso=^N, use=vc404,
20955# From: <wolfgang@cs.sfu.ca>
20956# (vc414: merged in cup/dl1/home from an old vc414h-noxon)
20957vc414|vc414h|Volker-Craig 414H in sane escape mode.,
20958	OTbs, am,
20959	cols#80, lines#24,
20960	clear=\E\034$<40>, cud1=\E^K, cuf1=^P,
20961	cup=\E\021%p2%c%p1%c$<40>, cuu1=\E^L, dch1=\E3,
20962	dl1=\E\023$<40>, ed=\E^X, el=\E\017$<10/>, home=\E^R,
20963	ich1=\E:, il1=\E\032$<40>, kcub1=^H, kcud1=\E^K, kcuf1=^P,
20964	kcuu1=\E^L, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED, kf4=\EE,
20965	kf5=\EF, kf6=\EG, kf7=\EH, khome=\E^R, lf0=PF1, lf1=PF2,
20966	lf2=PF3, lf3=PF4, lf4=PF5, lf5=PF6, lf6=PF7, lf7=PF8,
20967	rmso=\E^_, smso=\E^Y,
20968vc415|Volker-Craig 415,
20969	clear=^L, use=vc404,
20970
20971######## OBSOLETE PERSONAL-MICRO CONSOLES AND EMULATIONS
20972#
20973
20974#### IBM PC and clones
20975#
20976
20977# The pcplot IBM-PC terminal emulation program is really messed up. It is
20978# supposed to emulate a vt-100, but emulates the wraparound bug incorrectly,
20979# doesn't support scrolling regions, ignores add line commands, and ignores
20980# delete line commands. Consequently, the resulting behavior looks like a
20981# crude adm3a-type terminal.
20982# Steve Jacobson 8/85
20983pcplot|pc-plot terminal emulation program,
20984	xenl@,
20985	csr@, dl@, dl1@, il@, il1@, rc@, sc@, use=vt100+4bsd,
20986# KayPro II from Richard G Turner <rturner at Darcom-Hq.ARPA>
20987# I've found that my KayPro II, running MDM730, continues to emulate an
20988# ADM-3A terminal, just like I was running TERM.COM. On our 4.2 UNIX
20989# system the following termcap entry works well:
20990# I have noticed a couple of minor glitches, but nothing I can't work
20991# around. (I added two capabilities from the BRL entry -- esr)
20992kaypro|kaypro2|kaypro II,
20993	OTbs, am,
20994	cols#80, lines#24,
20995	bel=^G, clear=\032$<1/>, cr=\r, cud1=\n, cuf1=^L,
20996	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER, ed=^W,
20997	el=^X, home=^^, il1=\EE, ind=\n, kcud1=\n, kcuf1=^L, kcuu1=^K,
20998
20999# From IBM, Thu May  5 19:35:27 1983
21000# (ibmpc: commented out <smir>=\200R because we don't know <rmir> -- esr)
21001ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS),
21002	OTbs, am,
21003	cols#80, lines#24,
21004	bel=^G, clear=^L^K, cr=\r^^, cub1=^], cud1=\n, cuf1=^\,
21005	cuu1=^^, home=^K, ind=\n$<10>, kcud1=^_,
21006
21007ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX,
21008	OTbs, am, bw, eo, hs, km, msgr, ul,
21009	cols#80, it#8, lines#24,
21010	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
21011	     \263,
21012	bel=^G, clear=\Ec, cr=\r, ech=\E[%p1%dX, hpa=\E[%i%p1%dG,
21013	ind=\E[S\E[B, indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m,
21014	kcbt=^], kdch1=^?, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241,
21015	kf3=\242, kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247,
21016	kf9=\250, kich1=\E[^H, knp=\E[U, kpp=\E[V, ll=\E[24;1H,
21017	nel=\r, ri=\E[T\E[A, rin=\E[%p1%dT\E[%p1%dA,
21018	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
21019	    %;%?%p7%t30;40%;m,
21020	sgr0=\E[m, use=ansi+arrows, use=ansi+cup, use=ansi+erase,
21021	use=ansi+local, use=ansi+sgrbold,
21022
21023#### Apple II
21024#
21025# Apple II firmware console first, then various 80-column cards and
21026# terminal emulators.  For two cents I'd toss all these in the UFO file
21027# along with the 40-column apple entries.
21028#
21029
21030# From: brsmith@umn-cs.cs.umn.edu (Brian R. Smith) via BRL
21031#	'it#8' tells UNIX that you have tabs every 8 columns.  This is a
21032#		function of TIC, not the firmware.
21033#	The clear key on a IIgs will do something like clear-screen,
21034#		depending on what you're in.
21035appleIIgs|appleIIe|appleIIc|Apple 80 column firmware interface,
21036	OTbs, am, bw, eo, msgr,
21037	cols#80, it#8, lines#24,
21038	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^\,
21039	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
21040	home=^Y, ht=^I, ind=^W, kbs=^H, kclr=^X, kcub1=^H, kcud1=\n,
21041	kcuf1=^U, kcuu1=^K, kdch1=^?, nel=\r^W, ri=^V, rmso=^N,
21042	smso=^O,
21043# Apple //e with 80-column card, entry from BRL
21044# The modem interface is permitted to discard LF (maybe DC1), otherwise
21045# passing characters to the 80-column firmware via COUT (PR#3 assumed).
21046# Auto-wrap does not work right due to newline scrolling delay, which also
21047# requires that you set "stty cr2".
21048# Note: Cursor addressing is only available via the Pascal V1.1 entry,
21049# not via the BASIC PR#3 hook.  All this nonsense can be avoided only by
21050# using a terminal emulation program instead of the built-in firmware.
21051apple2e|Apple //e,
21052	bw, msgr,
21053	cols#80, lines#24,
21054	bel=^G, clear=\014$<100/>, cub1=^H, cud1=\n, cuu1=^_,
21055	ed=\013$<4*/>, el=\035$<4/>, home=^Y, ht=^I, ind=^W,
21056	is2=^R^N, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^U, kcuu1=^K,
21057	nel=\r$<100/>, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
21058	smso=^O,
21059# mcvax!vu44!vu45!wilcke uses the "ap" entry together with Ascii Express Pro
21060# 4.20, with incoming and outgoing terminals both on 0, emulation On.
21061apple2e-p|Apple //e via Pascal,
21062	cup=\036%p2%{32}%+%c%p1%{32}%+%c, use=apple2e,
21063# (ASCII Express) MouseTalk "Standard Apple //" emulation from BRL
21064# Enable DC3/DC1 flow control with "stty ixon -ixany".
21065apple-ae|ASCII Express,
21066	OTbs, am, bw, msgr, nxon, xon,
21067	cols#80, it#8, lines#24,
21068	bel=\007$<500/>, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^U,
21069	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
21070	home=^Y, ind=^W, is2=^R^N, kclr=^X, kcub1=^H, kcud1=\n,
21071	kcuf1=^U, kcuu1=^K, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
21072	smso=^O,
21073appleII|Apple II plus,
21074	OTbs, am,
21075	cols#80, it#8, lines#24,
21076	clear=^L, cnorm=^TC2, cub1=^H, cud1=\n, cuf1=^\,
21077	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, cvvis=^TC6,
21078	ed=^K, el=^], flash=\024G1$<200/>\024T1, home=\E^Y, ht=^I,
21079	is2=^TT1^N, kcud1=\n, kcuf1=^U, rmso=^N, sgr0=^N, smso=^O,
21080# Originally by Gary Ford 21NOV83
21081# From: <ee178aci%sdcc7@SDCSVAX.ARPA>  Fri Oct 11 21:27:00 1985
21082apple-80|Apple II with smarterm 80 col,
21083	OTbs, am, bw,
21084	cols#80, lines#24,
21085	cbt=^R, clear=\014$<10*/>, cr=\r$<10*/>, cub1=^H, cud1=\n,
21086	cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_,
21087	ed=\013$<10*/>, el=\035$<10/>, home=^Y,
21088apple-soroc|Apple emulating Soroc 120,
21089	am,
21090	cols#80, lines#24,
21091	bel=^G, clear=\E*$<300>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
21092	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
21093	home=^^, ind=\n, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
21094# From Peter Harrison, Computer Graphics Lab, San Francisco
21095#   ucbvax!ucsfmis!harrison  .....uucp
21096#   ucbvax!ucsfmis!harrison@BERKELEY   .......ARPA
21097# "These two work.  If you don't have the inverse video chip for the
21098# Apple with videx then remove the :so: and :se: fields."
21099# (apple-videx: this used to be called DaleApple -- esr)
21100apple-videx|Apple with videx videoterm 80 column board with inverse video,
21101	OTbs, am, xenl,
21102	cols#80, it#8, lines#24,
21103	clear=\014$<300/>, cub1=^H, cud1=\n, cuf1=^\,
21104	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
21105	home=^Y, ht=^I, kcub1=^H, kcud1=\n, kcuf1=^U, khome=^Y,
21106	rmso=^Z2, sgr0=^Z2, smso=^Z3,
21107# My system [for reference] : Apple ][+, 64K, Ultraterm display card,
21108#			      Apple Cat ][ 212 modem, + more all
21109#			      controlled by ASCII Express: Pro.
21110# From Dave Shaver <isucs1!shaver>
21111apple-uterm-vb|Videx Ultraterm for Apple micros with Visible Bell,
21112	OTbs, am, eo, xt,
21113	cols#80, lines#24,
21114	acsc=, clear=^L, cuf1=^\,
21115	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
21116	flash=^W35^W06, home=^Y,
21117	is2=^V4^W06\017\rVisible Bell Installed.\016\r\n,
21118	rmso=^N, smso=^O,
21119apple-uterm|Ultraterm for Apple micros,
21120	OTbs, am, eo, xt,
21121	cols#80, lines#24,
21122	acsc=, clear=^L, cuf1=^\,
21123	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
21124	home=^Y, is2=^V4^W06\016, rmso=^N, smso=^O,
21125# from trwrba!bwong (Bradley W. Wong):
21126#
21127# This entry assumes that you are using an apple with the UCSD Pascal
21128# language card.  SYSTEM.MISCINFO is assumed to be the same as that
21129# supplied with the standard apple except that screenwidth should be set
21130# using SETUP to 80 columns.  Note that the right arrow is not mapped in
21131# this termcap entry.  This is because that key, on the Apple, transmits
21132# a ^U and would thus preempt the more useful "up" function of vi.
21133#
21134# HMH 2/23/81
21135apple80p|80-column apple with Pascal card,
21136	am, bw,
21137	cols#80, lines#24,
21138	clear=^Y^L, cuf1=^\:, cup=\036%p2%{32}%+%c%p1%{32}%+%c,
21139	cuu1=^_, ed=^K, el=^], home=^Y, kcub1=^H,
21140#
21141# Apple II+ equipped with Videx 80 column card
21142#
21143# Terminfo from ihnp4!ihu1g!djc1 (Dave Christensen) via BRL;
21144# manually converted by D A Gwyn
21145#
21146# DO NOT use any terminal emulation with this data base, it works directly
21147# with the Videx card.  This has been tested with vi 1200 baud and works fine.
21148#
21149# This works great for vi, except I've noticed in pre-R2, ^U will scroll back
21150# 1 screen, while in R2 ^U doesn't.
21151# For inverse alternate character set add:
21152#	<smacs>=^O:<rmacs>=^N:
21153# (apple-v: added it#8 -- esr)
21154apple-videx2|Apple II+ w/ Videx card (similar to Datamedia h1520),
21155	am, xenl,
21156	cols#80, it#8, lines#24,
21157	bel=\007$<100/>, clear=\014$<16*/>, cr=\r, cub1=^H,
21158	cud1=\n, cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c,
21159	cuu1=^_, ed=\013$<16*/>, el=^], home=^Y, ht=\011$<8/>,
21160	ind=\n, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^\, kcuu1=^_,
21161	khome=^Y, rmso=^Z2, smso=^Z3,
21162apple-videx3|vapple|Apple II with 80 col card,
21163	OTbs, am,
21164	cols#80, lines#24,
21165	clear=\Ev, cub1=\ED, cud1=\EB, cuf1=\EC,
21166	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, el=\Ex,
21167	home=\EH, kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!,
21168	kf5=\E", kf6=\E#, kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
21169	use=vt52+arrows,
21170#From: decvax!cbosgd!cbdkc1!mww Mike Warren via BRL
21171aepro|Apple II+ running ASCII Express Pro--vt52,
21172	OTbs,
21173	cols#80, lines#24,
21174	clear=\014$<300/>, cub1=\ED, cud1=\EB, cuf1=\EC,
21175	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
21176	el=\EK, home=\EH,
21177# UCSD addition: Yet another termcap from Brian Kantor's Micro Munger Factory
21178apple-vm80|ap-vm80|Apple with viewmax-80,
21179	OTbs,
21180	cols#80, lines#24,
21181	clear=\014$<300/>, cuf1=^\:,
21182	cup=\036%p1%{32}%+%c%p2%{32}%+%c$<100/>, cuu1=^_,
21183	ed=\013$<300/>, el=^], home=\031$<200/>,
21184
21185#### Apple Lisa & Macintosh
21186#
21187
21188# (lisa: changed <cvvis> to <cnorm> -- esr)
21189lisa|Apple Lisa console display (black on white),
21190	OTbs, am, eo, msgr,
21191	cols#88, it#8, lines#32,
21192	acsc=jdkclfmenbqattuvvuwsx`, civis=\E[5h, clear=^L,
21193	cnorm=\E[5l, cub1=^H, dch1=\E[P, ed=\E[J, el=\E[K, ht=^I,
21194	ich1=\E[@, is2=\E>\E[m\014, kbs=^H, kcub1=\E[D, kcud1=\E[B,
21195	kcuf1=\E[C, kcuu1=\E[A, rmacs=\E[10m, sgr0=\E[m,
21196	smacs=\E[11m, use=ansi+cup, use=ansi+idl1,
21197	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
21198liswb|Apple Lisa console display (white on black),
21199	is2=\E>\E[0;7m\014, rmso=\E[0;7m, rmul=\E[0;7m,
21200	smso=\E[m, smul=\E[4m, use=lisa,
21201
21202# lisaterm from ulysses!gamma!epsilon!mb2c!jed (John E. Duncan III) via BRL;
21203# <is2> revised by Ferd Brundick <fsbrn@BRL.ARPA>
21204#
21205# These entries assume that the 'Auto Wraparound' is enabled.
21206# Xon-Xoff flow control should also be enabled.
21207#
21208# The VT100 uses :rs2: and :rf: rather than :is2:/:tbc:/:hts: because the tab
21209# settings are in non-volatile memory and don't need to be reset upon login.
21210# Also setting the number of columns glitches the screen annoyingly.
21211# You can type "reset" to get them set.
21212#
21213lisaterm|Apple Lisa or Lisa/2 running LisaTerm VT100 emulation,
21214	OTbs, OTpt, am, xenl, xon,
21215	OTkn#4, cols#80, it#8, lines#24, vt#3,
21216	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
21217	cub1=^H, cud1=\n, ed=\E[J, el=\E[K, ht=^I, hts=\EH, ind=\n,
21218	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
21219	kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=F1, lf1=F2, lf2=F3,
21220	lf3=F4, rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
21221	rs1=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r,
21222	sgr0=\E[m, smkx=\E[?1h\E=, tbc=\E[3g, use=ansi+csr,
21223	use=ansi+cup, use=ansi+local, use=ansi+sgrso,
21224	use=ansi+sgrul,
21225
21226# Lisaterm in 132 column ("wide") mode.
21227lisaterm-w|Apple Lisa with Lisaterm in 132 column mode,
21228	cols#132,
21229	kbs=^H, kcub1=^H, kcud1=\n, use=lisaterm,
21230# Although MacTerminal has insert/delete line, it is commented out here
21231# since it is much faster and cleaner to use the "lock scrolling region"
21232# method of inserting and deleting lines due to the MacTerminal implementation.
21233# Also, the "Insert/delete ch" strings have an extra character appended to them
21234# due to a bug in MacTerminal V1.1.  Blink is disabled since it is not
21235# supported by MacTerminal.
21236mac|macintosh|Macintosh with MacTerminal,
21237	xenl,
21238	OTdN#30,
21239	blink@, dch1=\E[P$<7/>, ich1=\E[@$<9/>, ip=$<7/>, use=lisa,
21240# Lisaterm in 132 column ("wide") mode.
21241mac-w|macterminal-w|Apple Macintosh with MacTerminal in 132 column mode,
21242	cols#132, use=mac,
21243
21244#### Radio Shack/Tandy
21245#
21246
21247# (coco3: This had "ta" used incorrectly as a boolean and bl given as "bl#7".
21248# I read these as mistakes for ":it#8:" and ":bl=\007:" respectively -- esr)
21249# From: <{pbrown,ctl}@ocf.berkeley.edu> 12 Mar 90
21250coco3|os9LII|Tandy CoCo3 24*80 OS9 Level II,
21251	OTbs, am,
21252	cols#80, it#8, lines#24,
21253	bel=^G, blink=^_", bold=\E:^A, civis=^E\s,
21254	clear=\014$<5*/>, cnorm=^E!, cub1=^H, cud1=\n, cuf1=^F,
21255	cup=\002%p2%{32}%+%c%p1%{32}%+%c$<2/>, cuu1=^I,
21256	dl1=^_1, ed=^K, el=^D, home=^A, il1=^_0, kcub1=^H, kcud1=\n,
21257	kcuf1=^I, kcuu1=^L, rev=^_\s, rmso=^_!, rmul=^_#,
21258	sgr0=\037!\E:\0, smso=^_\s, smul=^_",
21259# (trs2: removed obsolete ":nl=^_:" -- esr)
21260trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M,
21261	OTbs, am, msgr,
21262	cols#80, it#8, lines#24,
21263	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=^_, cuf1=^],
21264	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, dl1=^K, ed=^B,
21265	el=^A, home=^F, ht=^I, il1=^D, ind=\n, kbs=^H, kcub1=^\,
21266	kcud1=^_, kcuf1=^], kcuu1=^^, rmso=^O, sgr0=^O, smso=^N,
21267# From: Kevin Braunsdorf <ksb@mentor.cc.purdue.edu>
21268# (This had extension capabilities
21269#	:BN=\E[?33h:BF=\E[?33l:UC=\E[_ q:BC=\E[\177 q:\
21270#	:CN=\ERC:CF=\ERc:NR=\ERD:NM=\ER@:
21271# I also deleted the unnecessary ":kn#2:", ":sg#0:" -- esr)
21272trs16|trs-80 model 16 console,
21273	OTbs, am,
21274	cols#80, it#8, lines#24,
21275	acsc=jak`l_mbquvewcxs, bel=^G, civis=\ERc, clear=^L,
21276	cnorm=\ERC, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
21277	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
21278	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
21279	ind=\n, kbs=^H, kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P,
21280	kf6=^N, kf7=^S, khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5,
21281	lf5=f6, lf6=f7, lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg,
21282	rmso=\ER@, sgr0=\ER@, smacs=\ERG, smso=\ERD,
21283	use=vt52+arrows,
21284
21285#### Commodore Business Machines
21286#
21287# Formerly located in West Chester, PA; went spectacularly bust in 1994
21288# after years of shaky engineering and egregious mismanagement.  Made one
21289# really nice machine (the Amiga) and boatloads of nasty ones (PET, C-64,
21290# C-128, VIC-20).  The C-64 is said to have been the most popular machine
21291# ever (most units sold); they can still be found gathering dust in closets
21292# everywhere.
21293#
21294
21295# From: Kent Polk <kent@swrinde.nde.swri.edu>, 30 May 90
21296# Added a few more entries, converted caret-type control sequence (^x) entries
21297# to '\0xx' entries since a couple of people mentioned losing '^x' sequences.
21298# Corrections by Ty Sarna <tsarna@endicor.com>, Sat Feb 28 18:55:15 1998
21299#
21300# :as:, :ae:			Support for alternate character sets.
21301# :ve=\E[\040p:vi=\E[\060\040p:	cursor visible/invisible.
21302# :xn:  vt100 kludginess at column 80/NEWLINE ignore after 80 cols(Concept)
21303#     This one appears to fix a problem I always had with a line ending
21304#     at 'width+1' (I think) followed by a blank line in vi. The blank
21305#     line tended to disappear and reappear depending on how the screen
21306#     was refreshed. Note that this is probably needed only if you use
21307#     something like a Dnet Fterm with the window sized to some peculiar
21308#     dimension larger than 80 columns.
21309# :k0=\E9~:	map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
21310# (amiga: removed obsolete :kn#10:,
21311# also added empty <acsc> to suppress a warning --esr)
21312amiga|Amiga ANSI,
21313	OTbs, am, bw, xenl,
21314	cols#80, lines#24,
21315	acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z,
21316	civis=\E[0 p, cnorm=\E[ p, dch=\E[%p1%dP, dch1=\E[P,
21317	dim=\E[2m, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m,
21318	is2=\E[20l, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
21319	kcuu1=\E[A, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~, kf3=\E[2~,
21320	kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~, kf8=\E[7~,
21321	kf9=\E[8~, rev=\E[7m, ri=\E[T, rmacs=^O, rs1=\Ec, sgr0=\E[m,
21322	smacs=^N, use=ansi+cup, use=ansi+erase, use=ansi+idl,
21323	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
21324	use=ecma+index,
21325
21326# From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
21327# (amiga: added empty <acsc> to suppress a warning.
21328# I'm told this entry screws up badly with AS225, the Amiga
21329# TCP/IP package once from Commodore, and now sold by InterWorks.--esr)
21330amiga-h|Hans Verkuil's Amiga ANSI,
21331	OTbs, bw, msgr,
21332	cols#80, lines#24,
21333	acsc=, bel=^G, blink=\2337;2m, bold=\2331m, cbt=\233Z,
21334	civis=\2330 p, clear=\233H\233J, cnorm=\233 p, cr=\r,
21335	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
21336	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
21337	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
21338	dim=\2332m, ech=\233%p1%dP, ed=\233J, el=\233K, flash=^G,
21339	home=\233H, ht=^I, ich=\233%p1%d@, ich1=\233@, ind=\233S,
21340	indn=\233%p1%dS, invis=\2338m, is2=\23320l, kbs=^H,
21341	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
21342	kdch1=^?, kf0=\2339~, kf1=\2330~, kf2=\2331~, kf3=\2332~,
21343	kf4=\2333~, kf5=\2334~, kf6=\2335~, kf7=\2336~, kf8=\2337~,
21344	kf9=\2338~, nel=\233B\r, rev=\2337m, ri=\233T,
21345	rin=\233%p1%dT, rmacs=^O, rmcup=\233?7h, rmso=\2330m,
21346	rmul=\2330m, rs1=\Ec, sgr0=\2330m, smacs=^N, smcup=\233?7l,
21347	smso=\2337m, smul=\2334m,
21348
21349# From: Henning 'Faroul' Peters <Faroul@beyond.kn-bremen.de>, 25 Sep 1999
21350#
21351# Pavel Fedin added
21352#	Home    Shift+Left
21353#	End     Shift+Right
21354#	PgUp    Shift+Up
21355#	PgDn    Shift+Down
21356amiga-8bit|Amiga ANSI using 8-bit controls,
21357	acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
21358	ind=\204, indn@, kend=\233 @, khome=\233 A, knp=\233S,
21359	kpp=\233T, ri=\215, rin@, use=amiga-h,
21360
21361# From: Ruediger Kuhlmann <terminfo@ruediger-kuhlmann.de>, 18 Jul 2000
21362# requires use of appropriate preferences settings.
21363amiga-vnc|Amiga using VNC console (black on light gray),
21364	am, da, db, msgr, ndscr,
21365	btns#1, colors#16, cols#80, lines#24, lm#0, ncv#0, pairs#0x100,
21366	bel=^G, blink=\E[7;2m, bold=\E[1m, civis=\E[0p,
21367	cnorm=\E[p\E[>?6l, cr=\r, csr=\E[%i%p1%d;%p2%dr,
21368	cup=\E[%i%p1%d;%p2%dH, cvvis=\E[>?6h, dch=\E[%p1%dP,
21369	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[1M, flash=^G,
21370	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
21371	invis=\E8m,
21372	is2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
21373	kcbt=\233Z, kdch1=^?, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
21374	kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
21375	kf8=\E[7~, kf9=\E[8~, khlp=\E[?~, khome=\E[44~, kll=\E[45~,
21376	kmous=\E[M, knp=\E[42~, kpp=\E[41~, nel=\EE, oc=\E[0m,
21377	rev=\E[7m, ri=\EM, rmcup=\E[?7h\E[r\E[J, rmkx=\E[?1l,
21378	rmso=\E[21m, rs1=\Ec,
21379	rs2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
21380	setab=\E[%?%p1%{8}%>%t%'F'%p1%+%d%e4%p1%d%;m,
21381	setaf=\E[%?%p1%{8}%>%t%'2'%p1%+%d%e3%p1%d%;m,
21382	sgr0=\E[0m\017\E[30;85;>15m, smcup=\E[?7h, smkx=\E[?1h,
21383	smso=\E[1m, smul=\E[4m, use=ecma+underline,
21384	use=ansi+arrows, use=ansi+erase, use=ansi+local,
21385	use=ecma+index,
21386
21387# MorphOS on Genesi Pegasos
21388# By Pavel Fedin <sonic_amiga@rambler.ru>
21389morphos|MorphOS on Genesi Pegasos,
21390	acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
21391	ind=\204, indn@, kend=\23345~, kf11=\23320~, kf12=\23321~,
21392	khome=\23344~, kich1=\23340~, knp=\23342~, kpp=\23341~,
21393	ri=\215, rin@, use=amiga-h,
21394
21395# Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
21396#	I'm trying to write a termcap for a commodore b-128, and I'm
21397# having a little trouble. I've had to map most of my control characters
21398# to something that unix will accept (my delete-char is a ctrl-t, etc),
21399# and create some functions (like cm), but thats life.
21400#	The problem is with the arrow keys - right, and up work fine, but
21401# left deletes the previous character and down I just can't figure out.
21402# Jove knows what I want, but I don't know what it's sending to me (it
21403# isn't thats bound to next-line in jove).
21404#	Anybody got any ideas? Here's my termcap.
21405# DAG -- I changed his "^n" entries to "\n"; see if that works.
21406#
21407commodore|b-128|Commodore B-128 micro,
21408	am, bw,
21409	OTdN#20, cols#80, lines#24, pb#150,
21410	OTbc=^H, OTnl=\r, clear=\E\006$<10/>, cr=\r, cud1=\n,
21411	cuf1=^F, cup=\E\013%p1%2d\,%p2%2d\,$<20/>, cuu1=^P,
21412	dch1=\177$<10*/>, dl1=\Ed$<10*/>, el=\Eq$<10/>,
21413	home=\E^E, ht=\011$<5/>, ich1=\E\n$<5/>, il1=\Ei$<10/>,
21414	kcub1=^B, kcud1=\n, kcuf1=^F, kcuu1=^P, khome=\E^E, rmir=,
21415	smir=,
21416
21417#### North Star
21418#
21419# North Star Advantage from Lt. Fickie <brl-ibd!fickie> via BRL
21420northstar|North Star Advantage,
21421	OTbs,
21422	cols#80, lines#24,
21423	clear=\004$<200/>,
21424	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1/>, ed=\017$<200/>,
21425	el=\016$<200/>, home=\034\032$<200/>,
21426
21427#### Osborne
21428#
21429# Thu Jul  7 03:55:16 1983
21430#
21431# As an aside, be careful; it may sound like an anomaly on the
21432# Osborne, but with the 80-column upgrade, it's too easy to
21433# enter lines >80 columns!
21434#
21435# I've already had several comments...
21436# The Osborne-1 with the 80-col option is capable of being
21437# 52, 80, or 104 characters wide; default to 80 for compatibility
21438# with most systems.
21439#
21440# The tab is destructive on the Ozzie; make sure to 'stty -tabs'.
21441osborne-w|osborne1-w|Osborne I in 104-column mode,
21442	msgr, ul, xt,
21443	cols#104, lines#24,
21444	bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
21445	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
21446	dl1=\ER, el=\ET, ich1=\EQ, il1=\EE, ind=\n, kcub1=^H, kcud1=\n,
21447	kcuf1=^L, kcuu1=^K, rmso=\E(, rmul=\Em, smso=\E), smul=\El,
21448# Osborne I	from ptsfa!rhc (Robert Cohen) via BRL
21449osborne|osborne1|Osborne I in 80-column mode,
21450	OTbs, am, mir, msgr, ul, xhp,
21451	OTdB#4, cols#80, lines#24,
21452	clear=^Z, cub1=\010$<4>, cud1=\n, cuf1=^L,
21453	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
21454	dch1=\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H,
21455	kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, rmir=, rmso=\E),
21456	rmul=\Em, smir=\EQ, smso=\E(, smul=\El,
21457#
21458# Osborne Executive definition from BRL
21459# Similar to tvi920
21460# Added by David Milligan and Tom Smith (SMU)
21461osexec|Osborne executive,
21462	OTbs, am,
21463	OTug#1, cols#80, lines#24, xmc#1,
21464	OTnl=\n, bel=^G, clear=^Z, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
21465	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
21466	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
21467	is2=\Eq\Ek\Em\EA\Ex0, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L,
21468	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
21469	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
21470	kf9=^AI\r, rmir=, rmso=\Ek, rmul=\Em, smir=, smso=\Ej,
21471	smul=\El, tbc=\E3,
21472
21473#### Console types for obsolete UNIX clones
21474#
21475# Coherent, Minix, Venix, and several lesser-known kin were OSs for 8088
21476# machines that tried to emulate the UNIX look'n'feel.  Coherent and Venix
21477# were commercial, Minix an educational tool sold in conjunction with a book.
21478# Memory-segmentation limits and a strong tendency to look like V7 long after
21479# it was obsolete made all three pretty lame.  Venix croaked early.  Coherent
21480# and Minix were ported to 32-bit Intel boxes, only to be run over by a
21481# steamroller named `Linux' (which, to be fair, traces some lineage to Minix).
21482# Coherent's vendor, the Mark Williams Company, went belly-up in 1994.  There
21483# are also, I'm told, Minix ports that ran on Amiga and Atari machines and
21484# even as single processes under SunOS and the Macintosh OS.
21485#
21486
21487# See
21488#	https://web.archive.org/web/20120703021949/http://www.minix3.org/manpages/html4/console.html
21489minix|minix console (v3),
21490	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j
21491	     \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
21492	     \301w\302x\263y\363z\362{\343|\330}\234~\376,
21493	kdch1=^?, kend=\E[Y, kf0=\E[21~, kf10=\E[21~,
21494	kf11=\E[11;2~, kf12=\E[12;2~, kf13=\E[13;2~,
21495	kf14=\E[14;2~, kf15=\E[15;2~, kf16=\E[17;2~,
21496	kf17=\E[18;2~, kf18=\E[19;2~, kf19=\E[20;2~,
21497	kf20=\E[21;2~, kf21=\E[11;5~, kf22=\E[12;5~,
21498	kf23=\E[13;5~, kf24=\E[14;5~, kf25=\E[15;5~,
21499	kf26=\E[17;5~, kf27=\E[18;5~, kf28=\E[19;5~,
21500	kf29=\E[20;5~, kf30=\E[21;5~, kf31=\E[11;6~,
21501	kf32=\E[12;6~, kf33=\E[13;6~, kf34=\E[14;6~,
21502	kf35=\E[15;6~, kf36=\E[17;6~, kf37=\E[18;6~,
21503	kf38=\E[19;6~, kf39=\E[20;6~, kf40=\E[21;6~, kich1=\E[@,
21504	knp=\E[U, kpp=\E[V, lf0@, lf1@, lf2@, lf3@, lf4@, lf5@,
21505	use=xterm+r5+fkeys, use=minix-3.0,
21506
21507minix-3.0|minix console (v3.0),
21508	use=ecma+color, use=minix-1.7,
21509
21510# See
21511#	https://web.archive.org/web/20030914201935/http://www.minix-vmd.org/pub/Minix-vmd/1.7.0/wwwman/man4/console.4.html
21512# This matches the entry provided with minix 1.7.4, with bogus :ri: removed.
21513minix-1.7|minix console (v1.7),
21514	am, xenl, xon@,
21515	el1=\E[2K, is2=\E[0m, lf0=End, lf1=PgUp, lf2=PgDn, lf3=Num +,
21516	lf4=Num -, lf5=Num 5, use=minix-1.5,
21517# Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
21518minix-old|minix-1.5|minix console (v1.5),
21519	xon, NQ,
21520	cols#80, it#8, lines#25,
21521	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=\r,
21522	cub1=^H, dch=\E[%p1%dP, dch1=\E[P, ed=\E[0J, el=\E[K, ht=^I,
21523	ich=\E[%p1%d@, ich1=\E[@, ind=\n, kf0=\E[Y, kf1=\E[V,
21524	kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G, nel=\r\n, rev=\E[7m,
21525	ri=\EM, rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m, smso=\E[7m,
21526	smul=\E[4m, use=ansi+arrows, use=ansi+cup, use=ansi+idl,
21527	use=ansi+local,
21528
21529# The linewrap option can be specified by editing /usr/include/minix/config.h
21530# before recompiling the minix 1.5 kernel.
21531minix-old-am|minix console with linewrap,
21532	am, use=minix-old,
21533
21534pc-minix|minix console on an Intel box,
21535	use=klone+acs, use=minix-3.0,
21536
21537# According to the Coherent 2.3 manual, the PC console is similar
21538# to a z19. The differences seem to be (1) 25 lines, (2) no status
21539# line, (3) standout is broken, (4) ins/del line is broken, (5)
21540# has blinking and bold.
21541pc-coherent|pcz19|coherent|IBM PC console running Coherent,
21542	am, mir,
21543	cols#80, it#8, lines#25,
21544	bel=^G, clear=\EE, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
21545	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EN,
21546	ed=\EJ, el=\EK, home=\EH, ht=^I, ind=\n, kbs=^H, khome=\EH,
21547	ri=\EI, rmir=\EO, rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
21548	use=vt52+arrows,
21549
21550# According to the Venix 1.1 manual, the PC console is similar
21551# to a DEC VT52.  Differences seem to be (1) arrow keys send
21552# different strings, (2) enhanced standout, (3) added insert/delete line.
21553# Note in particular that it doesn't have automatic margins.
21554# There are other keys (f1-f10, kpp, knp, kcbt, kich1, kdch1) but they
21555# not described here because this derives from an old termcap entry.
21556pc-venix|venix|IBM PC console running Venix,
21557	cols#80, it#8, lines#25,
21558	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
21559	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
21560	ed=\EJ, el=\EK, ht=^I, il1=\EL, ind=\n, kbs=^H, kcub1=\EK,
21561	kcud1=\EP, kcuf1=\EM, kcuu1=\EH, khome=\EG, ri=\EI,
21562
21563#### Miscellaneous microcomputer consoles
21564#
21565# If you know anything more about any of these, please tell me.
21566#
21567
21568# The MAI Basic Four computer was obsolete at the end of the 1980s.
21569# It may be used as a terminal by putting it in "line" mode as seen on
21570# one of the status lines.
21571# Initialization is similar to CIT80. <is2> will set ANSI mode for you.
21572# Hardware tabs set by <if> at 8-spacing.  Auto line wrap causes glitches so
21573# wrap mode is reset by <cvvis>.  Using <ind>=\E[S caused errors so I
21574# used \ED instead.
21575# From: bf347@lafn.org (David Lawyer), 28 Jun 1997
21576mai|basic4|MAI Basic Four in ANSI mode,
21577	am, da, db, mir, msgr,
21578	cols#82, it#8, lines#25,
21579	bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h,
21580	cr=\r, cub1=^H, cud1=\n, cuf1=^X, cup=\E[%i%p1%d;%p2%dH,
21581	cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P, ed=^_, el=^^, home=^],
21582	ht=^I, if=/usr/share/tabset/vt100, ind=\ED,
21583	is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H,
21584	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
21585	kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, nel=\r\ED, rev=\E[7m,
21586	ri=\E[T, rmir=\E[4l, sgr0=\E[m, smir=\E[4h, use=ansi+csr,
21587	use=ansi+idl1, use=ansi+sgrso, use=ansi+sgrul,
21588	use=vt100+pf1-pf4,
21589
21590# basis from Peter Harrison, Computer Graphics Lab, San Francisco
21591#   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
21592#
21593# On Sat, 7 Aug 1999, Torsten Jerzembeck <toje@nightingale.ms.sub.org> wrote:
21594# The Basis 108 was a Apple II clone, manufactured by the "Basis
21595# Mikrocomputer GmbH" in Munster, Germany (the company still exists today,
21596# about 1,5 km from where I live, but doesn't build own computers any
21597# more). A Basis 108 featured a really heavy (cast aluminium?) case, was
21598# equipped with one or two 5.25" disk drives, had a monochrome and colour
21599# video output for a TV set or a dedicated monitor and several slots for
21600# Apple II cards. Basis 108 were quite popular at german schools before
21601# the advent of the IBM PC. They run, for example, the UCSD Pascal
21602# development system (which I used even in 1993 to program the steering
21603# and data recording for our school's experimental solar panel :), Apple DOS
21604# or CP/M.
21605# (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
21606basis|BASIS108 computer with terminal translation table active,
21607	clear=\E*$<300/>, cud1=\n$<5000/>, ed=\EY, el=\ET, kbs=^H,
21608	rmso=\E), sgr0=\E), smso=\E(, use=adm3a,
21609# luna's BMC terminal emulator
21610luna|luna68k|LUNA68K Bitmap console,
21611	cols#88, lines#46, use=ansi-mini,
21612megatek|pegasus workstation terminal emulator,
21613	am, os,
21614	cols#83, lines#60,
21615# The Xerox 820 was a Z80 micro with a snazzy XEROX PARC-derived
21616# interface (pre-Macintosh by several years) that went nowhere.
21617xerox820|x820|Xerox 820,
21618	am,
21619	cols#80, lines#24,
21620	bel=^G, clear=\032$<1>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
21621	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^Q, el=^X,
21622	home=^^, ind=\n,
21623
21624#### Videotex and teletext
21625#
21626
21627# \E\:1}	switch to te'le'informatique mode (ascii terminal/ISO 6429)
21628# \E[?3l	80 columns
21629# \E[?4l	scrolling on
21630# \E[12h	local echo off
21631# \Ec		reset: G0 U.S. charset (to get #,@,{,},...), 80 cols, clear screen
21632# \E)0		G1 DEC set (line graphics)
21633#
21634# From: Igor Tamitegama <igor@ppp1493-ft.teaser.fr>, 18 Jan 1997
21635m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'informatique,
21636	OTbs, eslok, hs, xenl,
21637	cols#80, it#8, lines#24, wsl#72, xmc#0,
21638	acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G,
21639	blink=\E[5m, bold=\E[1m, civis=\E[<1h, cnorm=\E[<1l, cr=\r,
21640	dch=\E[%p1%dP, dch1=\E[P, flash=^G, fsl=\n, ht=^I, ind=\n,
21641	ip=$<7/>, is1=\E:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0,
21642	is3=\E[?3l, kclr=\E[2J, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
21643	kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu,
21644	kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, kich1=\E[4h,
21645	kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H, mc0=\E[i,
21646	nel=\r\n, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l,
21647	rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sgr0=\E[m, smacs=^N,
21648	smir=\E[4h, tsl=^_@A, use=ecma+underline,
21649	use=ecma+standout, use=ansi+arrows, use=ansi+cpr,
21650	use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
21651	use=ansi+local,
21652
21653# From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998, updated 19 Sep 2016
21654#
21655minitel1|minitel 1,
21656	am, bw, eslok, hs, hz, .msgr, G0,
21657	colors#8, cols#40, lines#24, pairs#8, .ncv#16,
21658	acsc=j+k+l+m+n+o~q`s_t+u+v+w+x|, bel=^G, blink=\EH,
21659	civis=^T, clear=^L, cnorm=^Q, cr=\r, cub1=^H, cud1=\n, cuf1=^I,
21660	cup=\037%p1%'A'%+%c%p2%'A'%+%c, cuu1=^K,
21661	dsl=\037@A\030\n, el=^X,
21662	flash=\037@A\EW \177\022\177\022P\r\030\n, fsl=\n,
21663	home=^^, ind=\n, is2=\E;`ZQ\E:iC\E:iE\021, kbs=^SG,
21664	kcan=^SE, kend=^SI, kent=^SA, khlp=^SD, knp=^SH, kpp=^SB,
21665	krfr=^SC, nel=\r\n, op=\EG, rep=%p1%c\022%p2%'?'%+%c,
21666	rev=\E], ri=^K, rmso=\E\\,
21667	rs2=\024\037XA\030\n\030\n\030\n\030\n\030\n\030\n\030\n
21668	    \030\n\030\n\030\n\030\n\030\n\030\n\030\n\030\n\030\n
21669	    \030\n\030\n\030\n\030\n\030\n\030\n\030\n\030\014
21670	    \021,
21671	setab=\0, setaf=\E%p1%'@'%+%c, setb=\0,
21672	setf=\E%?%p1%{1}%=%tD%e%p1%{3}%=%tF%e%p1%{4}%=%tA%e%p1%{6}%=
21673	     %tC%e%p1%'@'%+%c%;,
21674	sgr=%?%p1%t\E]%;%?%p3%t\E]%;%?%p4%t\EH%;,
21675	sgr0=\EI\E\\\EG, smso=\E], tsl=\037@%p1%'A'%+%c,
21676	u6=\037%c%'A'%-%c%'A'%-, u7=\Ea,
21677	u8=\001%[BCDEFGHIJKLbcresdfg0123456789]\004, u9=\E9{,
21678	.dim=\EB, .hup=\E9g, .rs2=^L, .u8=^ABr4^D,
21679	C0=`>a9f!j%k4l<m-n=p#q\,rpt=u5v-w<x5yvzy|l~$, E0=^O,
21680	S0=^N,
21681	XC=B\031%\,\241!\,\242"\,\243#\,\244$\,\245%\,\246&\,\247'\,
21682	   \250(\,\253+\,\257P\,\2600\,\2611\,\2622\,\2633\,\2655\,
21683	   \2677\,\272k\,\273;\,\274<\,\275=\,\276>\,\277?\,\300AA\,
21684	   \301BA\,\302CA\,\303DA\,\304HA\,\305JA\,\306a\,\307KC\,
21685	   \310AE\,\311BE\,\312CE\,\313HE\,\314AI\,\315BI\,\316CI\,
21686	   \317HI\,\320b\,\321DN\,\322AO\,\323BO\,\324CO\,\325DO\,
21687	   \326HO\,\3274\,\330i\,\331AU\,\332BU\,\333CU\,\334HU\,
21688	   \335BY\,\336l\,\337{\,\340Aa\,\341Ba\,\342Ca\,\343Da\,
21689	   \344Ha\,\345Ja\,\346q\,\347Kc\,\350Ae\,\351Be\,\352Ce\,
21690	   \353He\,\354Ai\,\355Bi\,\356Ci\,\357Hi\,\360r\,\361Dn\,
21691	   \362Ao\,\363Bo\,\364Co\,\365Do\,\366Ho\,\3678\,\370y\,
21692	   \371Au\,\372Bu\,\373Cu\,\374Hu\,\375By\,\376|\,\377Hy\,
21693	   \252c\,\,0\017\031%\016\,}#\,f0\,g1\,\\\,\\\,\,+.\,./\,0
21694	   \177\,--,
21695minitel1b|minitel 1-bistandard (in 40cols mode),
21696	mir,
21697	cub1=^H, cud1=\n, cuf1=^I, cuu1=^K, dch=\E[%p1%dP, dch1=\E[P,
21698	ed=\E[J, el1=\E[1K, is1=\E;iYA\E;jYC, kbs@, kcan@,
21699	kclr=\E[2J, kctab=^I, kdch1=\E[P, kdl1=\E[M, kent@, kf1=^SD,
21700	kf10=^Y0, kf11=^Y1, kf12=^Y/, kf13=^Y{1, kf14=^Y{2,
21701	kf15=^Y{3, kf16=^Y{4, kf17=^Y{5, kf18=^Y{6, kf19=^Y{7,
21702	kf2=^SC, kf20=^Y{8, kf21=^Y{9, kf22=^Y{0, kf23=^Y{*,
21703	kf24=^Y{#, kf3=^SF, kf4=^SA, kf5=^SG, kf6=^SE, kf7=^Y8,
21704	kf8=^Y\,, kf9=^Y., khlp@, kich1=\E[4h, kil1=\E[L, krfr@,
21705	lf1=Guide, lf2=Repetition, lf3=Sommaire, lf4=Envoi,
21706	lf5=Correction, lf6=Annulation, rmir=\E[4l, smir=\E[4h,
21707	u8=\001%[ABCPtuvwxyz0123456789:;<=>?]\004,
21708	.ich=\E[%p1%d@, .ich1=\E[@, .kLFT=\E[P, .kRIT=\E[4h,
21709	.kb2=^Y{g, .kcbt=^Y{i, .kel=^X, .mc0=\E:|k, .rmkx=\E;jYA,
21710	.rs1=\E[4l\E[2l, .smkx=\E;iYA\E;jYC, .u8=^ACu<^D,
21711	use=ansi+arrows, use=ansi+idl, use=ansi+local,
21712	use=minitel1,
21713
21714# rmkx posait des problemes (logout en sortant de vi).
21715minitel1b-80|minitel 1-bistandard (standard teleinformatique),
21716	am@, bw@, eslok@, hz@, msgr,
21717	colors@, cols#80, it#8, pairs@,
21718	acsc@, blink=\E[5m, bold=\E[1m, civis=\037@A\024\n,
21719	clear=\E[H\E[J, cnorm=\037@A\021\n, cuf1=\E[C,
21720	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
21721	ht=^I, ind=\ED, is1@, is2@, kbs=\EOl, kcan=\EOQ, kend=\E)4\r,
21722	kent=\EOM, kf1=\EOq, kf10=\EOp, kf11=\EOP1, kf12=\EOP2,
21723	kf13=\EOP3, kf14=\EOP4, kf15=\EOP5, kf16=\EOP6, kf17=\EOP7,
21724	kf18=\EOP8, kf19=\EOP9, kf2=\EOr, kf20=\EOP0, kf21=\EOP*,
21725	kf22=\EOP#, kf23@, kf24@, kf3=\EOs, kf4=\EOt, kf5=\EOu,
21726	kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khlp=\EOm, knp=\EOn,
21727	kpp=\EOR, krfr=\EOS, lf1@, lf2@, lf3@, lf4@, lf5@, lf6@, nel=\EE,
21728	op@, rc=\E8, rep@, rev=\E[7m, ri=\EM, rmkx@,
21729	rs2=\036\E[12H\E[2M\E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2M\E[
21730	    H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2M
21731	    \E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2
21732	    M\E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[2M\E[H\E[L\E[12H\E[
21733	    2M\E[H\E[J\E[m,
21734	sc=\E7, setab@, setaf@, setb@, setf@, sgr@, sgr0=\E[m, smkx@,
21735	tsl=\037@%?%p1%{63}%<%t%p1%'A'%+%c%e\177%p1%{62}%-%Pa%?%ga
21736	    %{1}%&%t\011%;%?%ga%{2}%&%t\011\011%;%?%ga%{4}%&%t\011
21737	    \011\011\011%;%?%ga%{07}%>%t\011\011\011\011\011\011
21738	    \011\011%;%?%ga%{15}%>%t\011\011\011\011\011\011\011
21739	    \011%;%;,
21740	u6@, u7@, u8@, u9@, .acsc=}#f[, .enacs=^O, .kb2=\EOPg,
21741	.kcbt=\EOPi, .ll=\E[24H, .mc0=\E[i, .rmacs=^O, .rs2=\Ec,
21742	.sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1
21743	     ;%;m,
21744	.smacs=^N, C0=}#f[j+k+l+m+n+o~q=s_t+u+v+w+x!0\032,
21745	XC=B\016%\017\,\243#\,\247]\,\260[\,\340@\,\347\\\\\,\351{\,
21746	   \350}\,\371|\,\300A\,\301A\,\302A\,\303A\,\304A\,\305A\,
21747	   \306E\,\307C\,\310E\,\311E\,\312E\,\313E\,\314I\,\315I\,
21748	   \316I\,\317I\,\320D\,\321N\,\322O\,\323O\,\324O\,\325O\,
21749	   \326O\,\331U\,\332U\,\333U\,\334U\,\335Y\,\337s\,\341a\,
21750	   \342a\,\343a\,\344a\,\345a\,\346e\,\352e\,\353e\,\354i\,
21751	   \355i\,\356i\,\357i\,\360d\,\361n\,\362o\,\363o\,\364o\,
21752	   \365o\,\366o\,\372u\,\373u\,\374u\,\375y\,\377y\,\267.\,
21753	   \327x\,\367/\,\261\E7\E[4m+\E8\E[C\,\,0\017%\016\,x|\,y
21754	   \E7\E[4m<\E8\E[C\,z\E7\E[4m>\E8\E[C\,g\E7\E[4m+\E8\E[C,
21755	use=ecma+underline, use=ecma+standout, use=minitel1b,
21756
21757minitel1-nb|minitel 1 (40cols) noir & blanc sans couleurs avec bold et dim ...,
21758	colors@, pairs@,
21759	bold=\EG, clear=^L\EB,
21760	cup=\037%p1%'A'%+%c%p2%'A'%+%c\EB, dim=\ED, home=^^\EB,
21761	op@, rs2=^L\EB, setab@, setaf@, setb@, setf@,
21762	sgr=%?%p1%p3%O%t\E]%;%?%p4%t\EH%;%?%p5%t\ED%;%?%p6%t\EG%;,
21763	sgr0=\EI\E\\\EB, tsl=\037@%p1%'A'%+%c\EB, .invis=\E@,
21764	use=minitel1,
21765
21766minitel1b-nb|minitel 1b (40cols) noir & blanc sans couleurs avec bold et dim ...,
21767	msgr,
21768	colors@, pairs@,
21769	acsc=`>a9f!j%k4l<m-n=p#q\,rpt=u5v-w<x5yvzy|l~$,
21770	bold=\EG, clear=^L\EB, cup=\E[%i%p1%d;%p2%dH, dim=\ED,
21771	home=^^\EB, kend=\E)4\r, kf1=\E$4\r, kf2=\E#4\r,
21772	kf3=\E&4\r, kf4=\E!4\r, kf5=\E'4\r, kf6=\E/4\r, knp=\E(4\r,
21773	kpp=\E"4\r, op@, rmacs=^O, rs2=^L\EB, setab@, setaf@, setb@,
21774	setf@,
21775	sgr=%?%p1%p3%O%t\E]%;%?%p4%t\EH%;%?%p5%t\ED%;%?%p6%t\EG%;,
21776	sgr0=\EI\E\\\EB, smacs=^N, tsl=\037@%p1%'A'%+%c\EB,
21777	u8=\001%[ABCPpqrstuvwxyz{|}~\177]\004\r, .invis=\E@,
21778	.u8=\001Cu|\004r, use=minitel1b,
21779
21780# Note:
21781#
21782# Faire, Fnct T puis "/" (TS+"?") pour activer les touches en 40cols :
21783#
21784# TS+Connexion/Fin(Fin),Retour(Page Up),Suite(Page Down),Guide(F1),
21785# Repetition(F2),Sommaire(F3),Envoi(F4),Correction(F5),Annulation(F6),
21786# Ctrl+7(F7),Ctrl+8(F8),Ctrl+9(F9),Ctrl+0(F10),Ctrl+*(F11),Ctrl+#(F12).
21787#
21788# Ctrl+Suite-1(F13), Ctrl+Suite-2(F14), Ctrl+Suite-3(F15),
21789# Ctrl+Suite-4(F16), Ctrl+Suite-5(F17), Ctrl+Suite-6(F18),
21790# Ctrl+Suite-7(F19), Ctrl+Suite-8(F20), Ctrl+Suite-9(F21),
21791# Ctrl+Suite-0(F22), Ctrl+Suite-*(F23), Ctrl+Suite-#(F24).
21792#
21793# Fonctionne par exemple avec Midnight Commander (mc).
21794
21795minitel2-80|minitel 2 (80cols) avec filets VT100 (DEC),
21796	acsc=ffggjjkkllmmnnooqqssttuuvvwwxxyyzz||}},
21797	enacs=\E)0, rmacs=^O, smacs=^N, u6=\E[%i%d;%dR,
21798	C0=ffggjjkkllmmnnooqqssttuuvvwwxxyyzz||}},
21799	S0=\E)0\016,
21800	XC=B%\E(B\,\243\E(3}\,\247\E(R[\,\257\E(3v\,\260\E(3f\,\261
21801	   \E(3g\,\265\E(3Y\,\267\E(3~\,\274\E(3O\,\275\E(3P\,\276
21802	   \E(3Q\,\277\E(3Z\,\300A\,\301A\,\302A\,\303A\,\304\E(3R\,
21803	   \305A\,\306E\,\307C\,\310E\,\311\E(3S\,\312E\,\313E\,
21804	   \314\E(3T\,\315I\,\316I\,\317I\,\320D\,\321\E(3W\,\322\E(
21805	   3U\,\323O\,\324O\,\325O\,\326O\,\327x\,\331U\,\332U\,
21806	   \333U\,\334\E(3V\,\335Y\,\337\E(3{\,\340\E(3A\,\341a\,
21807	   \342\E(3B\,\343a\,\344\E(3C\,\345a\,\346e\,\347\E(R\\\\\,
21808	   \350\E(3E\,\351\E(3D\,\352\E(3F\,\353\E(3G\,\354i\,\355i
21809	   \,\356\E(3H\,\357\E(3I\,\360d\,\361\E(3X\,\362o\,\363o\,
21810	   \364\E(3J\,\365o\,\366\E(3K\,\367\E(3h\,\371\E(3L\,\372u
21811	   \,\373\E(3M\,\374\E(3N\,\375y\,\377y\,\,0\E)3%\E)0\,\\\,m
21812	   \,+k\,.l\,0\177\,-j,
21813	use=minitel12-80,
21814
21815minitel12-80|minitel 12 (80cols),
21816	civis=\E[<1h, cnorm=\E[<1l, is2=\E[12h, u6=\E[%i%d;%dH,
21817	u7=\E[6n,
21818	.acsc=ffggj+k+l+m+n+ovq-swt+u+v+w+xx}}\,m+k.l-j0
21819	      \177,
21820	.enacs=\E)3, .rmacs=^O, .rs3=\E[?4l, .scs=\E(%p1%c,
21821	.smacs=^N,
21822	C0=ffggj+k+l+m+n+ovq-swt+u+v+w+xx}}\,m+k.l-j0\177,
21823	S0=\E)3\016,
21824	XC=B%\E(B\,\243\E(3}\,\247\E(R[\,\257\E(3v\,\260\E(3f\,\261
21825	   \E(3g\,\267\E(3~\,\274\E(3O\,\275\E(3P\,\276\E(3Q\,\300A
21826	   \,\301A\,\302A\,\303A\,\304A\,\305A\,\306E\,\307C\,\310E
21827	   \,\311E\,\312E\,\313E\,\314I\,\315I\,\316I\,\317I\,\320D
21828	   \,\321N\,\322O\,\323O\,\324O\,\325O\,\326O\,\327x\,\331U
21829	   \,\332U\,\333U\,\334U\,\335Y\,\337\E(3{\,\340\E(3A\,
21830	   \341a\,\342\E(3B\,\343a\,\344\E(3C\,\345a\,\346e\,\347\E(
21831	   R\\\\\,\350\E(3E\,\351\E(3D\,\352\E(3F\,\353\E(3G\,\354i
21832	   \,\355i\,\356\E(3H\,\357\E(3I\,\360d\,\361n\,\362o\,
21833	   \363o\,\364\E(3J\,\365o\,\366\E(3K\,\367\E(3h\,\371\E(3L
21834	   \,\372u\,\373\E(3M\,\374\E(3N\,\375y\,\377y\,\,0\E)3%\E)0
21835	   \,\\\,m\,+k\,.l\,0\177\,-j,
21836	use=minitel1b-80,
21837
21838#
21839# Add these in your ~/.screenrc for inputting some special glyphs like french
21840# accentuated chars in 40 cols mode:
21841#
21842# bindkey ^YA digraph '`'  # Saisi accent grave.
21843# bindkey ^YB digraph "'"  # Saisi accent aigu.
21844# bindkey ^YC digraph '^'  # Saisi accent circonflexe.
21845# bindkey ^YH digraph '"'  # Saisi accent trema.
21846#
21847# bindkey ^Y#      stuff \243  # Livre.
21848# bindkey "^Y\047" stuff \247  # Paragraphe.
21849# bindkey ^Yj      stuff \306  # AE
21850# bindkey ^Yz      stuff \346  # ae
21851# bindkey ^YKc     stuff \347  # c cedille.
21852#
21853
21854screen.minitel1|Screen specific for minitel1,
21855	ncv@,
21856	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
21857	     yzz||}}~~,
21858	bel=\007\E\^ \E\\, bold@, csr@, flash=\Eg\E\^ \E\\, kmous@,
21859	rmul@, smul@, u8=\E[?1;2c, use=decid+cpr,
21860	use=xterm+x11mouse, use=screen,
21861
21862screen.minitel1b|Screen specific for minitel1b,
21863	kclr=\E[2J, kdl1=\E[M, kf13=^Y{1, kf14=^Y{2, kf15=^Y{3,
21864	kf16=^Y{4, kf17=^Y{5, kf18=^Y{6, kf19=^Y{7, kf20=^Y{8,
21865	kf21=^Y{9, kf22=^Y{0, kf23=^Y{*, kf24=^Y{#, kil1=\E[L,
21866	use=screen.minitel1,
21867
21868screen.minitel1b-80|screen.minitel2-80|screen.minitel12-80|Screen specific for minitel1b-80 minitel2-80 and minitel12-80,
21869	colors@, ncv@, pairs@,
21870	bold=\E[1m, kent=\EOM, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@,
21871	kf19@, kf20@, kf21@, kf22@, kf23@, kf24@, khlp=\EOm, op@, setab@,
21872	setaf@, setb@, setf@, use=ecma+underline,
21873	use=screen.minitel1b,
21874
21875screen.minitel1-nb|Screen specific for minitel1-nb,
21876	colors@, ncv@, pairs@,
21877	bold=\E[1m, op@, setab@, setaf@, setb@, setf@,
21878	use=screen.minitel1,
21879
21880screen.minitel1b-nb|Screen specific for minitel1b-nb,
21881	colors@, ncv@, pairs@,
21882	bold=\E[1m, dim=\E[2m, op@, setab@, setaf@, setb@, setf@,
21883	use=screen.minitel1b,
21884
21885# From: Alexandre Montaron, 29 Sep 2016
21886
21887linux-m1|Linux Minitel 1 "like" Couleurs,
21888	am, ccc, mir, msgr, xenl,
21889	it#8, ncv#16,
21890	acsc=a\261f\370g\361h\260j\274k\273l\311m\310n\316q\315t
21891	     \314u\271v\312w\313x\272y\363z\362{\343|\252~\372,
21892	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
21893	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
21894	el1=\E[1K, enacs=\E)U, flash=\E[?5h$<100/>\E[?5l,
21895	hpa=\E[%i%p1%d`, ht=^I, hts=\EH, ind=\n,
21896	initc=\E]P%p1%{15}%&%X%p2%{255}%&%02X%p3%{255}%&%02X%p4
21897	      %{255}%&%02X,
21898	is2=\E]R\E]P3FFFF80\E[?8c, ka1=\EOw, ka3=\EOy, kb2=\E[G,
21899	kbs=^?, kc1=\EOq, kc3=\EOs, kcbt=\E^I, kclr=\E\r,
21900	kdl1=\E\E[A, kent=\EOM, khome=\E[1~, kil1=\E\E[B,
21901	kmous=\E[M, nel=\EE, oc=\E]R\E]P3FFFF80, op=\E[39;49m,
21902	rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
21903	rmpch=\E[10m, rs1=\Ec, rs3=\E[37;40m\E[8], sgr0=\E[m,
21904	smacs=^N, smam=\E[?7h, smir=\E[4h, smpch=\E[11m, tbc=\E[3g,
21905	.VN=\E[?5l, .VR=\E[?5h, .am@, .ich=\E[%p1%d@, .ich1=\E[@,
21906	.ll=\E[99H, .rmcup=, .smcup=\E]R\E]P3FFFF80\E[?8c,
21907	.smul=\E[4m, .use=ecma+underline,
21908	E3=\E[99H\E[2J\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21909	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21910	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21911	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21912	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21913	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21914	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21915	   \n\n\n\n\n\n\n\n\n\n,
21916	use=ecma+standout, use=ansi+arrows, use=ansi+csr,
21917	use=ansi+cup, use=ansi+erase, use=ansi+idl,
21918	use=ansi+local1, use=ansi+rca2, use=ansi+sgrso,
21919	use=klone+color, use=linux+decid, use=linux+lockeys,
21920	use=vt220+pcedit, use=vt220+cvis, use=vt220+sfkeys,
21921	use=vt220+ufkeys,
21922
21923# 1. Using double-shapes for VT100 graphical chars (eg: mc).
21924# 2. Native brown color corrected to good yellow color.
21925# 3. Adding "Insert" and "Delete Line" keys as ESC Up and ESC Down arrow keys.
21926# 4. Suppressed nonexistent underlined mode (normally as bright).
21927# 5. ich/ich1 not filled because of non-curses programs.
21928#--
21929# 6. Suppressed nonexistent invisible mode.
21930#(7.)Adding forgotten "cub/cud/cuf/cuu" sequences deplacement.
21931
21932linux-m1b|Linux Minitel 1B "like" Monochrome (Gris/Blanc/Noir+Dim),
21933	ccc@,
21934	colors@, ncv@, pairs@,
21935	acsc@, bold=\E[33m, enacs@, initc@,
21936	is2=\E]R\E]P1A9A9A9\E]P2A9A9A9\E]P3FFFFFF\E]P4A9A9A9\E]P5A9A
21937	    9A9\E]P6A9A9A9\E]P9FFFFFF\E]PAFFFFFF\E]PBFFFFFF\E]PCFFFF
21938	    FF\E]PDFFFFFF\E]PEFFFFFF\E[?2c,
21939	oc@, op@, rmacs@, setab=^A, setaf=^A, smacs@, .setab@, .setaf@,
21940	.smcup=\E]R\E]P1A9A9A9\E]P2A9A9A9\E]P3FFFFFF\E]P4A9A9A9\E]P5
21941	       A9A9A9\E]P6A9A9A9\E]P9FFFFFF\E]PAFFFFFF\E]PBFFFFFF\E]
21942	       PCFFFFFF\E]PDFFFFFF\E]PEFFFFFF\E[?2c,
21943	use=linux-m1,
21944
21945linux-m2|Linux Minitel 2 "like" Couleurs (Vert/Blanc/Noir+Bleu),
21946	ccc@,
21947	colors@, ncv@, pairs@,
21948	acsc=++\,\,--..00``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttu
21949	     uvvwwxxyyzz{{||}}~~,
21950	bold=\E[33m, cnorm=\E[?2c\E[?25h, cvvis=\E[?8c\E[?25h,
21951	enacs=\E)0, initc@,
21952	is2=\E]R\E]P100A900\E]P200A900\E]P3FFFFFF\E]P400A900\E]P500A
21953	    900\E]P600A900\E]P700A900\E]P80000FF\E]P9FFFFFF\E]PAFFFF
21954	    FF\E]PBFFFFFF\E]PCFFFFFF\E]PDFFFFFF\E]PEFFFFFF\E]PFFFFFF
21955	    F\E[;37m,
21956	oc@, op@, setab=^A, setaf=^A, sgr0=\E[;37m, .setab@, .setaf@,
21957	.smcup=\E]R\E]P100A900\E]P200A900\E]P3FFFFFF\E]P400A900\E]P5
21958	       00A900\E]P600A900\E]P700A900\E]P80000FF\E]P9FFFFFF\E]
21959	       PAFFFFFF\E]PBFFFFFF\E]PCFFFFFF\E]PDFFFFFF\E]PEFFFFFF
21960	       \E]PFFFFFFF\E[;37m,
21961	use=linux-m1,
21962
21963# From: Alexandre Montaron, 27 May 2020
21964linux-s|Linux console with added status line at bottom,
21965	hs,
21966	clear=\E[255;255H\E[A\E[1J\E[H, csr@,
21967	dsl=\E7\E[255H\E[K\E8, ed@, fsl=\E8,
21968	iprog=\sbash\s-c\s'echo\s-ne\s"\E[?6l\E[255H\E[A\E[6n"\s;
21969	      \sread\s-d\sR\sTMP\s;\sLINES=`echo\s$TMP\s|\scut\s-f1
21970	      \s-d\s";"\s|\scut\s-f2\s-d\s"["`\s;\sstty\srows\s$LINE
21971	      S\s;\secho\s-ne\s"\E[;"$LINES"r\E[J"',
21972	rs1=\E]R, tsl=\E7\E[255;%p1%dH, .rc@, .sc@, use=linux,
21973
21974# Screen entries counterpart :
21975
21976screen.linux-m1|Linux m1 specific for screen,
21977	ncv@,
21978	kclr=\E\r, kdl1=\E\E[A, kil1=\E\E[B, rmul@, smul@,
21979	u8=\E[?1;2c,
21980	E3=\E[99H\E[2J\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21981	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21982	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21983	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21984	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21985	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21986	   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
21987	   \n\n\n\n\n\n\n\n\n\n,
21988	use=decid+cpr, use=xterm+x11mouse, use=screen,
21989	use=vt220+sfkeys,
21990
21991screen.linux-m1b|Linux m1b specific for screen,
21992	colors@, pairs@,
21993	op@, setab@, setaf@, setb@, setf@, use=screen.linux-m1,
21994
21995screen.linux-m2|Linux m2 specific for screen,
21996	acsc=++\,\,--..00``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttu
21997	     uvvwwxxyyzz{{||}}~~,
21998	use=screen.linux-m1b,
21999
22000# Putty :
22001
22002putty-m1|Putty Minitel 1 "like" Couleurs,
22003	dim@, .E3=\E[300S, use=ecma+underline,
22004	use=xterm+r5+lockeys, use=xterm+alt47,
22005	use=putty+screen, use=xterm+sl-twm, use=ecma+index,
22006	use=linux-m1,
22007
22008putty-m1b|Putty Minitel 1B "like" Monochrome (Gris/Blanc/Noir),
22009	dim@, .E3=\E[300S, use=ecma+underline,
22010	use=xterm+r5+lockeys, use=xterm+alt47,
22011	use=putty+screen, use=xterm+sl-twm, use=ecma+index,
22012	use=linux-m1b,
22013
22014putty-m2|Putty Minitel 2 "like" Couleurs (Vert/Blanc/Noir),
22015	acsc=``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{
22016	     {||}}~~,
22017	dim@, .E3=\E[300S, use=ecma+underline,
22018	use=xterm+r5+lockeys, use=xterm+alt47,
22019	use=putty+screen, use=xterm+sl-twm, use=ecma+index,
22020	use=linux-m2,
22021
22022putty+screen|PuTTY with screen resizing extensions (building-block),
22023	.WS=\E[8;%p1%d;%p2%dt, Z0=\E[?3h, Z1=\E[?3l,
22024
22025putty-screen|PuTTY with screen resizing extensions,
22026	WS=\E[8;%p1%d;%p2%dt, use=putty+screen, use=putty,
22027
22028screen.putty-m1|Putty m1 specific for screen,
22029	dim@, E3@, use=ecma+underline, use=screen.linux-m1,
22030
22031screen.putty-m1b|Putty m1b specific for screen,
22032	colors@, pairs@,
22033	op@, setab@, setaf@, setb@, setf@, use=screen.putty-m1,
22034
22035screen.putty-m2|Putty m2 specific for screen,
22036	acsc=++\,\,--..00``aabbccddeeffgghhiijjkkllmmnnooppqqrrssttu
22037	     uvvwwxxyyzz{{||}}~~,
22038	use=screen.putty-m1b,
22039# From: Alexandre Montaron, 19 Nov 2015, updated 19 Sep 2016
22040#
22041# He comments:
22042# viewdata lacks a true cup capability,
22043# so I achieved it with home and cud1/cuf1 sequences only !
22044viewdata|Prestel/Viewdata terminals,
22045	am, bw, eslok, hz,
22046	cols#40, lines#24,
22047	bel=^G, civis=^T, clear=^L, cnorm=^Q, cr=\r, cub1=^H, cud1=\n,
22048	cuf1=^I,
22049	cup=\036%?%p1%{07}%>%t\n\n\n\n\n\n\n\n%;%?%p1%{15}%>%t\n\n
22050	    \n\n\n\n\n\n%;%?%p1%{4}%&%t\n\n\n\n%;%?%p1%{2}%&%t\n\n%;
22051	    %?%p1%{1}%&%t\n%;%?%p2%{07}%>%t\011\011\011\011\011\011
22052	    \011\011%;%?%p2%{15}%>%t\011\011\011\011\011\011\011
22053	    \011%;%?%p2%{23}%>%t\011\011\011\011\011\011\011\011%;%?
22054	    %p2%{31}%>%t\011\011\011\011\011\011\011\011%;%?%p2%{4}
22055	    %&%t\011\011\011\011%;%?%p2%{2}%&%t\011\011%;%?%p2%{1}%&
22056	    %t\011%;,
22057	cuu1=^K, home=^^, nel=\r\n, rs2=^L, .el=^X, .ind=\n,
22058	.rep=%p1%c\022%p2%'?'%+%c, .ri=^K,
22059
22060viewdata-o|optimized version of Viewdata Prestel/Viewdata terminals,
22061	cup=\036%p1%?%p2%{20}%>%t%?%p1%{23}%=%t%Pa%{1}%e%{1}%+%;%;
22062	    %Pa%?%ga%{13}%<%t%?%ga%{07}%>%t\n\n\n\n\n\n\n\n%;%?%ga
22063	    %{4}%&%t\n\n\n\n%;%?%ga%{2}%&%t\n\n%;%?%ga%{1}%&%t\n%;%e
22064	    %{24}%ga%-%Pa%?%ga%{07}%>%t\013\013\013\013\013\013\013
22065	    \013%;%?%ga%{4}%&%t\013\013\013\013%;%?%ga%{2}%&%t\013
22066	    \013%;%?%ga%{1}%&%t\013%;%;%?%p2%{21}%<%t%?%p2%{07}%>%t
22067	    \011\011\011\011\011\011\011\011%;%?%p2%{15}%>%t\011
22068	    \011\011\011\011\011\011\011%;%?%p2%{4}%&%t\011\011\011
22069	    \011%;%?%p2%{2}%&%t\011\011%;%?%p2%{1}%&%t\011%;%e%{40}
22070	    %p2%-%Pa%?%ga%{07}%>%t\010\010\010\010\010\010\010\010%;
22071	    %?%ga%{15}%>%t\010\010\010\010\010\010\010\010%;%?%ga
22072	    %{4}%&%t\010\010\010\010%;%?%ga%{2}%&%t\010\010%;%?%ga
22073	    %{1}%&%t\010%;%?%p1%{23}%=%t\013%;%;,
22074	.ll=^^^K, use=viewdata,
22075
22076# Samples with TERM=viewdata and TERM=viewdata-rv: http://canal.chez.com/blog/
22077
22078viewdata-rv|Prestel/Viewdata terminals with reverse capabilitie (as green),
22079	xmc#1,
22080	rmso=\EG, smso=\EB, use=viewdata-o,
22081
22082######## OBSOLETE VDT TYPES
22083#
22084# These terminals are *long* dead -- these entries are retained for
22085# historical interest only.
22086
22087#### Amtek Business Machines
22088#
22089
22090# (abm80: early versions of this entry apparently had ":se=\E^_:so=\E^Y",
22091# but these caps were commented out in 8.3; also, removed overridden
22092# ":do=^J:" -- esr)
22093abm80|amtek business machines 80,
22094	OTbs, am, bw,
22095	cols#80, lines#24,
22096	cbt=^T, clear=\E^\, cub1=^H, cud1=\E^K, cuf1=^P,
22097	cup=\E\021%p2%{32}%+%c%p1%{32}%+%c, cuu1=\E^L,
22098	dl1=\E^S, ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z,
22099
22100#### Bell Labs blit terminals
22101#
22102# These were AT&T's official entries.  The 5620 FAQ maintained by
22103# David Breneman <daveb@dgtl.com> has this to say:
22104#
22105#  Actually, in the beginning was the Jerq, and the Jerq was white with a
22106#  green face, and Locanthi and Pike looked upon the Jerq and said the Jerq
22107#  was good.  But lo, upon the horizon loomed a mighty management-type person
22108#  (known now only by the initials VP) who said, the mighty Jerq must stay
22109#  alone, and could not go forth into the world. So Locanthi and Pike put the
22110#  Jerq to sleep, cloned its parts, and the Blit was brought forth unto the
22111#  world. And the Jerq lived the rest of its days in research, but never
22112#  strayed from those paths.
22113#
22114#  In all seriousness, the Blit was originally known as the Jerq, but when
22115#  it started to be shown outside of the halls of the Bell Labs Research
22116#  organization, the management powers that be decided that the name could
22117#  not remain. So it was renamed to be Blit. This was in late 1981.
22118#
22119# (The AT&T 5620 was the commercialized Blit.  Its successors were the 630,
22120# 730, and 730+.)
22121#
22122
22123blit|jerq|blit running teletype rom,
22124	am, eo, ul, xon,
22125	cols#87, it#8, lines#72,
22126	bel=^G, clear=^L, cr=\r, cub1=\ED, cud1=\n, cuf1=\EC,
22127	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
22128	dch=\Ee%p1%{32}%+%c, dch1=\Ee!, dl=\EE%p1%{32}%+%c,
22129	dl1=\EE!, el=\EK, ht=^I, ich=\Ef%p1%{32}%+%c, ich1=\Ef!,
22130	il=\EF%p1%{32}%+%c, il1=\EF!, ind=\n, kbs=^H, kf1=\Ex,
22131	kf2=\Ey, kf3=\Ez, use=vt52+arrows,
22132
22133# (cbblit: here's a BSD termcap that says <cud1=\EG> -- esr)
22134cbblit|fixterm|blit running columbus code,
22135	cols#88,
22136	ed=\EJ, flash=\E^G, ich1@, mc4=^T, mc5=^R, mc5p=\EP%p1%03d,
22137	rmir=\ER, rmso=\EV!, rmul=\EV", smir=\EQ, smso=\EU!,
22138	smul=\EU", use=blit,
22139
22140oblit|ojerq|first version of blit rom,
22141	am, da, db, eo, mir, ul, xon,
22142	cols#88, it#8, lines#72,
22143	bel=^G, clear=^L, cr=\r, cub1=\ED, cud1=\n, cuf1=\EC,
22144	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\EO,
22145	dl=\Ee%p1%{32}%+%c, dl1=\EE, ed=\EJ, el=\EK, flash=\E^G,
22146	ht=^I, il=\Ef%p1%{32}%+%c, il1=\EF, ind=\n, kbs=^H, rmir=\ER,
22147	smir=\EQ,
22148
22149#### Bolt, Beranek & Newman (bbn)
22150#
22151# The BitGraph was a product of the now-defunct BBN Computer Corporation.
22152# The parent company, best known as the architects of the Internet, is
22153# still around.
22154#
22155# Jeff DelPapa <dp@world.std.com> writes:
22156# The bitgraph was a large white box that contained a monochrome bitmap
22157# display, and a 68000 to run it.  You could download code and run it on
22158# the cpu, it had 128kb (I think) of memory.  I used one in the late
22159# 70's, sure beat a VT100.  It had one strange feature tho -- it used
22160# the cpu to bitblt pixels to scroll, it took longer than the refresh
22161# rate, and looked like a rubber sheet stretching, then snapping
22162# upwards.  It had everything the early mac had, except a floppy drive a
22163# small screen (it had a 17" crisp beauty) and a real OS. They (Bolt
22164# Beranek and Neuman) sold at most a few hundred of them to the real
22165# world.  DOD may have bought more...
22166#
22167
22168# Entries for the BitGraph terminals.  The problem
22169# with scrolling in vi can only be fixed by getting BBN to put
22170# smarter scroll logic in the terminal or changing vi or padding
22171# scrolls with about 500 ms delay.
22172#
22173# I always thought the problem was related to the terminal
22174# counting newlines in its input buffer before scrolling and
22175# then moving the screen that much. Then vi comes along and
22176# paints lines in on the bottom line of the screen, so you get
22177# this big white gap.
22178
22179bitgraph|bg2.0nv|bg3.10nv|BBN BitGraph 2.0 or later (normal video),
22180	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
22181	use=bg2.0,
22182bg2.0rv|bg3.10rv|BBn BitGraph 2.0 (reverse video),
22183	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
22184	use=bg2.0,
22185bg2.0|bg3.10|BBN BitGraph 2.0 or later (no init),
22186	OTbs, xenl,
22187	cols#85, lines#64,
22188	bel=^G, clear=\E[H\E[J$<150>, cr=\r, cub1=^H,
22189	cup=%i\E[%p1%d;%p2%dH, dl1=\E[M$<2*>, ed=\E[J$<150>,
22190	el=\E[K$<2>, ht=^I, il1=\E[L$<2*>, ind=\n$<280>,
22191	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, lf1=PF1,
22192	lf2=PF2, lf3=PF3, lf4=PF4, rmkx=\E>, sgr0=\E[m, smkx=\E=,
22193	use=ansi+csr, use=ansi+local1, use=ansi+sgrso,
22194	use=vt100+pf1-pf4,
22195
22196bg1.25rv|BBN BitGraph 1.25 (reverse video),
22197	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
22198	use=bg1.25,
22199bg1.25nv|BBN BitGraph 1.25 (normal video),
22200	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
22201	use=bg1.25,
22202# (bg1.25: I added <rmam>/<smam> based on the init string -- esr)
22203bg1.25|BBN BitGraph 1.25,
22204	cols#85, lines#64,
22205	bel=^G, clear=\E[H\E[J$<150>, cr=\r, cub1=^H,
22206	cup=%i\E[%p1%d;%p2%dH, dl1=\E[M$<2*>, ed=\E[J$<150>,
22207	el=\E[K$<2>, ht=^I, il1=\E[L$<2*>, ind=\n$<280>, kf1=\EP,
22208	kf2=\EQ, kf3=\ER, kf4=\ES, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
22209	ll=\E[64;1H, rmam=\E[?7l, rmkx=\E>, sgr0=\E[m, smam=\E[?7h,
22210	smkx=\E=, use=ansi+local1, use=ansi+sgrso,
22211	use=vt52+arrows,
22212
22213#### Bull (bq, dku, vip)
22214#
22215# (Adapted for terminfo; AIX extension capabilities translated -- esr)
22216
22217#============================================#
22218# BULL QUESTAR 210 `SDP' terminals emulation #
22219#============================================#
22220#
22221# Description written by R.K.Saunders (Bull Transac)
22222#
22223# Modifications written by F. Girard (Bull MTS)
22224#		19-05-87 V02.00.01
22225#		17-12-87 V02.00.02
22226#		15-09-89 V02.00.05
22227#
22228#	Typical technical selections F1 (modes SDP/ROLL):
22229# -------------------------------------------------------
22230# |   01   02   03   04   05   06   07   08   09   10   |
22231# |  1010 0011 1010 0110 0110 0001 0100 0000 0000 0000  |
22232# |                                                     |
22233# |   11   12   13   14   15   16   17   18   19   20   |
22234# |  0000 0110 100? 0000 0000 0000 0001 0000 0000 0001  |
22235# |                                                     |
22236# |   21   22   23   24   25   26   27   28   29   30   |
22237# |  0011 0000 0001 1000 0000 0000 0000 0000 0000 0000  |
22238# |                                                     |
22239# |   31   32   33   34   35   36   37   38   39   40   |
22240# |  1010 0011 0000 0000 0000 0000 0000 0000 0000 0000  |
22241# -------------------------------------------------------
22242#	Typical firmware identification F5 "etat 6":
22243#  P287.02.04b	(AZERTY)
22244#  P297.11.04	(24-pin: 2732)	or P798.11.04	(28-pin: 2764)
22245#  P298.03.03	(monochrome)	or P374.03.02	(colour)
22246#
22247#	SM SDP mode (VIP command):	^[[?=h
22248#	RIS (erases screen):		^[c
22249#	DMI disable keyboard:		^[`
22250#	SM double rendition mode:	^[[?>h
22251#	RM solicited status mode:	^[[5l
22252#	RM character mode:		^[[>l
22253#	RM echoplex mode:		^[[12l
22254#	RM column tab mode:		^[[18l
22255#	RM forbid SS2 keyboard mode:	^[[?<l
22256#	SM scroll mode:			^[[=h
22257#	FCF enable XON/XOFF:		^[P1s^[\
22258#	MTL select end msg character:	^[[^Wp
22259#	EMI enable keyboard:		^[b
22260#	RIS retour etat initial:	^[c
22261#	enable FC keypad:		^[[?<h,
22262#	MPW map status line window:	^[PY99:98^[\
22263#	SCP select status line:		^[[0;98v
22264#	ED erase entire partition:	^[[2J
22265#	SCP select main partition:	^[[v
22266#	SM character insertion mode:	^[[4h
22267#	RM character replacement mode:	^[[4l
22268#	COO cursor on:			^[[r
22269#	COO cursor off:			^[[1r
22270#	SGR dim (turquoise) rev attr:	^[[2;7m
22271#	SGR Data normal attr:		^[[m
22272#	SO Line-graphic mode ON:	^N
22273#	SI Line-graphic mode OFF:	^O
22274#	MC start routing to printer:	^[[5i
22275#	MC stop routing to printer:	^M^[[4i
22276#
22277
22278# This entry covers the following terminals:
22279# dku7102, tws2102, and tws models 2105 to 2112
22280tws-generic|dku7102|Bull Questar tws terminals,
22281	am, mir, msgr, xenl, xhp@, xon,
22282	cols#80, lines#24, wsl#80,
22283	acsc=``aaffggj)k\,l&m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~,
22284	bel=^G, blink=\E[0;5m, civis=\E[1r, clear=\E[2J,
22285	cnorm=\E[r, cr=\r, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%df,
22286	dch=\E[%p1%dP, dch1=\E[P, dim=\E[0;2m,
22287	dsl=\EPY99:98\E\\\E[0;98v\E[2J\E[v, fsl=\E[v, ht=\E[I,
22288	ind=\n, invis=\E[0;8m,
22289	is1=\E[?=h\Ec\E`\E[?>h\EPY99:98\E\\,
22290	is2=\E[5;>;12;18;?<l\E[=h\EP1s\E\\\E[\027p,
22291	is3=\Eb\E[?<h, kcbt=\E[Z, kctab=\E[g, kdch1=\E[P,
22292	kdl1=\E[M, ked=\E[J, kel=\E[K, kf1=\E[1u\027,
22293	kf2=\E[2u\027, kf3=\E[3u\027, kf4=\E[4u\027,
22294	kf5=\E[5u\027, kf6=\E[6u\027, kf7=\E[7u\027,
22295	kf8=\E[8u\027, khts=\EH, kil1=\E[L, krmir=\E[4l,
22296	ll=\E[H\E[A, mc0=\E[0i, mc4=\r\E[4i, mc5=\E[5i,
22297	rev=\E[0;7m, rmacs=^O, rmcup=\E[0;98v\E[2J\E[v,
22298	rmir=\E[4l, rs2=\E[?=h\Ec, s0ds=^O, s1ds=^N,
22299	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?
22300	    %p7%t;8%;m%?%p9%t\016%e\017%;,
22301	sgr0=\E[m\017, smacs=^N, smcup=\E[?>h\EPY99:98\E\\,
22302	smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m,
22303	tsl=\EPY99:98\E\\\E[0;98v\E[2;7m, use=ansi+arrows,
22304	use=ansi+cup, use=ansi+erase, use=ansi+idl,
22305	use=ansi+inittabs, use=ansi+local, use=ansi+sgrdim,
22306	use=dec+sl,
22307
22308tws2102-sna|dku7102-sna|Bull Questar tws2102 for SNA,
22309	dsl=\E[0;98v\E[2J\E[v, fsl=\E[v, is3=\Eb, tsl=\E[0;98v,
22310	use=tws-generic,
22311tws2103|xdku|Bull Questar tws2103,
22312	ht=^I, use=tws-generic,
22313tws2103-sna|dku7103-sna|Bull Questar tws2103 for SNA,
22314	ht=^I, use=tws2102-sna,
22315dku7102-old|Bull Questar 200 DKU7102 (microcode version < 6),
22316	clear=\E[2J\E[H, cup@, dl@, dl1@,
22317	dsl=\EPY99:98\E\\\E[0;98v\E[2J\E[H\E[v, el=\E[K\E[m,
22318	il@, il1@, tsl=\EPY99:98\E\\\E[0;98v\E[H\E[2;7m,
22319	use=tws-generic,
22320dku7202|Bull Questar 200 DKU7202 (colour/character attributes),
22321	blink=\E[0;2;4m, dim=\E[0;5m, ht=^I, is3=\E[?3h\Eb,
22322	sgr=\E[0%?%p1%t;2;4;5;7%;%?%p3%t;7%;%?%p2%t;2%;%?%p4%t;2;4%;
22323	    %?%p5%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
22324	smso=\E[0;4;5;7m, smul=\E[0;2m, use=tws-generic,
22325
22326#=========================================================#
22327# BULL QUESTAR 303 & 310 `DEC VT 320' terminals emulation #
22328#=========================================================#
22329#
22330# Description written by J. Staerck (BULL SA)
22331#       Copyright (c) 1989 BULL SA
22332#---------------------------------------------------------------------------
22333#  This entry is used for terminals with VT320 emulation mode
22334#  and following set-up :
22335#    8 bit ISO Latin Character Set (ISO 8859-1),
22336#    7 bit Control Characters,
22337#    80 columns screen.
22338#  Hereafter are some DEC vt terminals' commands. (valid on VT200 and 300)
22339#  They are used in string capabilities with VT220-320 emulation mode.
22340#  In the following DEC definitions, two kinds of terminfo databases are
22341#    provided :
22342#    1. the first with Command Sequence Introducer starting with escape
22343#       sequence in 7 bits characters ex. ESC [ : 2 chars. in 7-bit mode.
22344#    2. the second with Command Sequence Introducer starting with escape
22345#       sequence in 8 bits characters ex. ESC [ : 1 char. 'CSI' =x9B.
22346#	Soft Terminal Reset		esc [ ! p
22347#	RIS (erases screen):		esc c
22348#	DECKPNM numeric keypad mode:	esc >
22349#	DECKPAM applic. keypad mode:	esc =
22350#	DECSTBM Scrolling region:	esc [ r
22351#	SCS select G0 = US:		esc ( B
22352#	SCS select G1 = line-graphic:	esc ) 0
22353#	Select 7-bit C1 controls:	esc sp F
22354#	Select 8-bit C1 controls:	esc sp G
22355#	Select cursor home:		esc [  H
22356#	Select erase screen:		esc [  J
22357#	SM KAM lock keyboard:		esc [ 2 h
22358#	RM KAM unlock keyboard:		esc [ 2 l
22359#	SM SRM local echo off:		esc [ 1 2 h
22360#	RM SRM local echo on:		esc [ 1 2 l
22361#	SM LNM New line :		esc [ 2 0 h
22362#	RM LNM return = CR only:	esc [ 2 0 l
22363#	SM DECCKM cursor keys mode:	esc [ ? 1 h
22364#	RM DECCKM appli. keys mode:	esc [ ? 1 l
22365#	SM DECANM ANSI mode on:		esc [ ? 2 h
22366#	RM DECANM ANSI mode off:	esc [ ? 2 l
22367#	SM DECCOLM 132-column screen:	esc [ ? 3 h
22368#	RM DECCOLM 80-column screen:	esc [ ? 3 l
22369#	SM DECSCLM Smooth scroll:	esc [ ? 4 h
22370#	RM DECSCLM Jump scroll:		esc [ ? 4 l
22371#	SM DECSCNM screen light backgr.	esc [ ? 5 h
22372#	RM DECSCNM screen dark backgr.	esc [ ? 5 l
22373#	SM DECOM move within margins:	esc [ ? 6 h
22374#	RM DECOM move outside margins:	esc [ ? 6 l
22375#	SM DECAWM auto right margin:	esc [ ? 7 h
22376#	RM DECAWM auto right margin:	esc [ ? 7 l
22377#	SM DECARM auto repeat:		esc [ ? 8 h
22378#	RM DECARM auto repeat:		esc [ ? 8 l
22379#	DECSASD Select active main:	esc [ 0 $ }
22380#	DECSASD Select active status:	esc [ 1 $ }
22381#	DECSSDT Select status none:	esc [ 0 $ ~
22382#	DECSSDT Select status indic.:	esc [ 1 $ ~
22383#	DECSSDT Select status host-wr:	esc [ 2 $ ~
22384#	SM DECTCEM Visible cursor:	esc [ ? 2 5 h
22385#	RM DECTCEM Invisible cursor:	esc [ ? 2 5 l
22386#	SM DECNCRM 7 bits NCR set:	esc [ ? 4 2 h
22387#	RM DECNCRM Multi or ISO latin:	esc [ ? 4 2 l
22388#	SM DECNKM numeric keypad mode:	esc [ ? 6 6 h
22389#	RM DECNKM numeric keypad appl.:	esc [ ? 6 6 l
22390#	SM DECKBUM clavier informatique	esc [ ? 6 8 h
22391#	RM DECKBUM clavier bureautique:	esc [ ? 6 8 l
22392#	DECSCL VT300 mode 8-bit ctrl:	esc [ 6 3 " p
22393# or	DECSCL VT300 mode 8-bit ctrl:	esc [ 6 3 ; 0 " p
22394# or	DECSCL VT300 mode 8-bit ctrl:	esc [ 6 3 ; 2 " p
22395#	DECSCL VT300 mode 7-bit ctrl:	esc [ 6 3 ; 1 " p
22396#	Char. and Line attributes:	esc [ Ps ... Ps m
22397# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
22398# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
22399#
22400
22401# This entry covers BQ303, BQ306, BQ310, Q303, Q306, Q310
22402bq300|Bull VT320 ISO Latin 1 80 columns terminal,
22403	eo, km, mir, xenl, xon,
22404	vt#3, wsl#80,
22405	blink=\E[5m, bold=\E[1m, cup=\E[%i%p1%d;%p2%dH,
22406	dch=\E[%p1%dP, dch1=\E[P, dsl=\E[1$}\E[2$~\n\E[0$},
22407	ech=\E[%p1%dX, el1=\E[1K, flash=\E[?5h$<50>\E[?5l,
22408	ich=\E[%p1%d@, ind=\ED, is1=\E[63;1"p\E[2h,
22409	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22410	    l,
22411	is3=\E[0$}\E[?25h\E[2l\E[H\E[J, ka1=\EOw, ka3=\EOy,
22412	kb2=\EOu, kc1=\EOq, kc3=\EOs, khlp=\E[28~, krdo=\E[29~,
22413	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, nel=\EE, rev=\E[7m, ri=\EM,
22414	rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?7h, rmir=\E[4l,
22415	rmkx=\E[?1l\E>, rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B,
22416	s1ds=\E(0,
22417	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
22418	    %;m%?%p9%t\E(0%e\E(B%;,
22419	sgr0=\E[0m\E(B, smacs=\E(0, smam=\E[?7h,
22420	smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smul=\E[4m,
22421	tsl=\E[1$}\E[2$~, use=ecma+underline,
22422	use=ecma+standout, use=ansi+enq, use=ansi+csr,
22423	use=ansi+erase, use=ansi+idl, use=ansi+local,
22424	use=ansi+pp, use=dec+sl, use=vt100+4bsd,
22425	use=vt100+pf1-pf4, use=vt220+cvis, use=vt220+vtedit,
22426	use=vt220+sfkeys, use=vt220+ufkeys,
22427
22428bq300-rv|Bull VT320 reverse 80 columns,
22429	flash=\E[?5l$<50>\E[?5h,
22430	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22431	    l,
22432	use=bq300,
22433bq300-w|Bull VT320 132 columns,
22434	cols#132, wsl#132,
22435	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22436	    l,
22437	rs2=\E[?3h, use=bq300,
22438bq300-w-rv|Bull VT320 reverse mode 132 columns,
22439	cols#132, wsl#132,
22440	flash=\E[?5l$<50>\E[?5h,
22441	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22442	    l,
22443	rs2=\E[?3h, use=bq300,
22444
22445#  This entry is used for terminals with VT320 emulation mode
22446#  and following set-up :
22447#    8 bit ISO Latin Character Set (ISO 8859-1),
22448#    8 bit Control Characters, (CSI coded as x9B for ESC [)
22449#    80 columns screen.
22450#	Soft Terminal Reset		csi ! p
22451#	RIS (erases screen):		esc c
22452#	DECKPNM numeric keypad mode:	esc >
22453#	DECKPAM applic. keypad mode:	esc =
22454#	DECSTBM Scrolling region:	esc [ r
22455#	SCS select G0 = US:		esc ( B
22456#	SCS select G1 = line-graphic:	esc ) 0
22457#	Select 7-bit C1 controls:	esc sp F
22458#	Select 8-bit C1 controls:	esc sp G
22459#	Select cursor home:		csi H
22460#	Select erase screen:		csi J
22461#	SM KAM lock keyboard:		csi 2 h
22462#	RM KAM unlock keyboard:		csi 2 l
22463#	SM SRM local echo off:		csi 1 2 h
22464#	RM SRM local echo on:		csi 1 2 l
22465#	SM LNM New line :		csi 2 0 h
22466#	RM LNM return = CR only:	csi 2 0 l
22467#	SM DECCKM cursor keys mode:	csi ? 1 h
22468#	RM DECCKM appli. keys mode:	csi ? 1 l
22469#	SM DECANM ANSI mode on:		csi ? 2 h
22470#	RM DECANM ANSI mode off:	csi ? 2 l
22471#	SM DECCOLM 132-column screen:	csi ? 3 h
22472#	RM DECCOLM 80-column screen:	csi ? 3 l
22473#	SM DECSCLM Smooth scroll:	csi ? 4 h
22474#	RM DECSCLM Jump scroll:		csi ? 4 l
22475#	SM DECSCNM screen light backgr.	csi ? 5 h
22476#	RM DECSCNM screen dark backgr.	csi ? 5 l
22477#	SM DECOM move within margins:	csi ? 6 h
22478#	RM DECOM move outside margins:	csi ? 6 l
22479#	SM DECAWM auto right margin:	csi ? 7 h
22480#	RM DECAWM auto right margin:	csi ? 7 l
22481#	SM DECARM auto repeat:		csi ? 8 h
22482#	RM DECARM auto repeat:		csi ? 8 l
22483#	DECSASD Select active main:	csi 0 $ }
22484#	DECSASD Select active status:	csi 1 $ }
22485#	DECSSDT Select status none:	csi 0 $ ~
22486#	DECSSDT Select status indic.:	csi 1 $ ~
22487#	DECSSDT Select status host-wr:	csi 2 $ ~
22488#	SM DECTCEM Visible cursor:	csi ? 2 5 h
22489#	RM DECTCEM Invisible cursor:	csi ? 2 5 l
22490#	SM DECNCRM 7 bits NCR set:	csi ? 4 2 h
22491#	RM DECNCRM Multi or ISO latin:	csi ? 4 2 l
22492#	DECSCL VT300 mode 8-bit ctrl:	csi 6 3 " p
22493# or	DECSCL VT300 mode 8-bit ctrl:	csi 6 3 ; 0 " p
22494#	DECSCL VT300 mode 7-bit ctrl:	csi 6 3 ; 1 " p
22495#	Char. and Line attributes:	csi Ps ... Ps m
22496# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
22497# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
22498# (bq300-8: <cub1>,<cuf1>,<cuu1>,<cud1>,<dl1>,<il1> to get under 1024 --esr)
22499bq300-8|Bull VT320 full 8 bits 80 columns,
22500	eo, eslok, hs, km, mc5i, mir, xenl, xon,
22501	vt#3, wsl#80,
22502	blink=\2335m, bold=\2331m, clear=\233H\233J,
22503	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=\2331D,
22504	cud=\233%p1%dB, cud1=\2331B, cuf=\233%p1%dC, cuf1=\2331C,
22505	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\2331A,
22506	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
22507	dsl=\2331$}\2332$~\n\2330$}, ech=\233%p1%dX, ed=\233J,
22508	el=\233K, el1=\2331K, flash=\233?5h$<50>\233?5l,
22509	fsl=\2330$}, home=\233H, ich=\233%p1%d@, il=\233%p1%dL,
22510	il1=\233L, ind=\ED, is1=\E[63;2"p\E[2h,
22511	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22512	    l,
22513	is3=\2330$}\233?25h\2332l\233H\233J, ka1=\217w,
22514	ka3=\217y, kb2=\217u, kc1=\217q, kc3=\217s, kcub1=\233D,
22515	kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\2333~,
22516	kf1=\217P, kf10=\23321~, kf11=\23323~, kf12=\23324~,
22517	kf13=\23325~, kf14=\23326~, kf15=\23328~, kf16=\23329~,
22518	kf17=\23331~, kf18=\23332~, kf19=\23333~, kf2=\217Q,
22519	kf20=\23334~, kf3=\217R, kf4=\217S, kf6=\23317~,
22520	kf7=\23318~, kf8=\23319~, kf9=\23320~, kfnd=\2331~,
22521	khlp=\23328~, kich1=\2332~, knp=\2336~, kpp=\2335~,
22522	krdo=\23329~, kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3,
22523	lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8,
22524	rev=\2337m, ri=\EM, rmacs=\E(B, rmam=\233?7l,
22525	rmcup=\233?7h, rmir=\2334l, rmkx=\233?1l\E>,
22526	rmso=\23327m, rmul=\23324m, rs1=\E[!p, rs2=\E[?3l,
22527	s0ds=\E(B, s1ds=\E(0, sc=\E7,
22528	sgr=\233%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;
22529	    1%;m%?%p9%t\E(0%e\E(B%;,
22530	sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h,
22531	smcup=\233?7l\233?1l\E(B, smir=\2334h, smso=\2337m,
22532	smul=\2334m, tbc=\2333g, tsl=\2331$}\2332$~,
22533	use=vt100+4bsd, use=vt220+cvis8,
22534bq300-8rv|Bull VT320 8-bit reverse mode 80 columns,
22535	flash=\233?5l$<50>\233?5h,
22536	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22537	    l,
22538	use=bq300-8,
22539bq300-8w|Bull VT320 8-bit 132 columns,
22540	cols#132, wsl#132,
22541	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22542	    l,
22543	rs2=\233?3h, use=bq300-8,
22544bq300-w-8rv|Bull VT320 8-bit reverse mode 132 columns,
22545	cols#132, wsl#132,
22546	flash=\233?5l$<50>\233?5h,
22547	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22548	    l,
22549	rs2=\233?3h, use=bq300-8,
22550
22551#  This entry is used for terminals with VT320 emulation mode
22552#  a 102 keys keyboard (PC scancode !) and following set-up :
22553#    8 bit ISO Latin Character Set (ISO 8859-1),
22554#    7 bit Control Characters,
22555#    80 columns screen.
22556bq300-pc|Questar 303 with PC keyboard ISO Latin 1 80 columns,
22557	kbs=^H, kf1=\E[17~, kf10=\E[28~, kf11=\E[29~, kf12=\E[31~,
22558	kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E[18~, kf20@,
22559	kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~,
22560	kf8=\E[25~, kf9=\E[26~, kfnd@, khlp@, krdo@, kslt@, lf1@, lf2@,
22561	lf3@, lf4@, use=vt220+pcedit, use=bq300,
22562bq300-pc-rv|Questar 303 with PC keyboard reverse mode 80 columns,
22563	flash=\E[?5l$<50>\E[?5h,
22564	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22565	    l,
22566	use=bq300-pc,
22567bq300-pc-w|Questar 303 with PC keyboard 132 columns terminal,
22568	cols#132, wsl#132,
22569	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22570	    l,
22571	rs2=\E[?3h, use=bq300-pc,
22572bq300-pc-w-rv|Questar 303 with PC keyboard reverse mode 132 columns,
22573	cols#132, wsl#132,
22574	flash=\E[?5l$<50>\E[?5h,
22575	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sF\E[?42l\E[?4
22576	    l,
22577	rs2=\E[?3h, use=bq300-pc,
22578#    8 bit ISO Latin Character Set (ISO 8859-1),
22579#    8 bit Control Characters,
22580#    80 columns screen.
22581bq300-8-pc|Q306-8-pc|Questar 303 with PC keyboard in full 8 bits 80 columns,
22582	kend=\2334~, kf1=\23317~, kf10=\23328~, kf11=\23329~,
22583	kf12=\23331~, kf13@, kf14@, kf15@, kf16@, kf17@, kf18@, kf19@,
22584	kf2=\23318~, kf20@, kf3=\23319~, kf4=\23320~, kf5=\23321~,
22585	kf6=\23323~, kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@,
22586	khlp@, khome=\2331~, krdo@, kslt@, lf1@, lf2@, lf3@, lf4@,
22587	use=bq300-8,
22588bq300-8-pc-rv|Questar 303 with PC keyboard full 8 bits reverse mode 80 columns,
22589	flash=\E[?5l$<50>\E[?5h,
22590	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22591	    l,
22592	use=bq300-8-pc,
22593bq300-8-pc-w|Questar 303 with PC keyboard full 8 bits 132 columns,
22594	cols#132, wsl#132,
22595	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22596	    l,
22597	rs2=\E[?3h, use=bq300-8-pc,
22598bq300-8-pc-w-rv|Questar 303 with PC keyboard full 8 bits reverse 132 columns,
22599	cols#132, wsl#132,
22600	flash=\E[?5l$<50>\E[?5h,
22601	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E\sG\E[?42l\E[?4
22602	    l,
22603	rs2=\E[?3h, use=bq300-8-pc,
22604
22605#======================================================#
22606# BULL QUESTAR 310 `VIP 7800/8800' terminals emulation #
22607#======================================================#
22608
22609# normal mode, 8 bits, 80 columns terminal.
22610#	BLD  bell disable			^[g
22611#	BLE  bell enable			^[h
22612#	CAMR char. attr. mode reset		^[[G
22613#	CAMS char. attr. mode set		^[[D
22614#	CLR  clear				^[`
22615#	CM   character mode (async.)		^[k
22616#	EP   echoplex mode (by host)		^[m
22617#	IM   insert mode set			^[[I
22618#	IMR  insert mode reset			^[[J
22619#	KBL  keyboard lock (reset)		^[[X
22620#	KBU  keyboard unlock (set)		^[[W
22621#	LGR  Line-graphic mode reset		^[F
22622#	LGS  Line-graphic mode set		^[G
22623#	NEP  non echoplex mode (by host)	^[l
22624#	PDS  print data space			^[[0p
22625#	PDT  print data terminator		^[[<p
22626#	PHD  print host data			^[[3p
22627#	PRES print adapter reset		^[[2p
22628#	RBM  block mode reset			^[[E
22629#	RES  reset :				^[e
22630#	RIS  reset initial state:		^[c
22631#	RMR  roll mode reset			^[q
22632#	RMS  roll mode set			^[r
22633#	SCD  scroll down (72 lines)		^[[1s
22634#	SCU  scroll up	(72 lines)		^[[0s
22635#	SLL  status line lock			^[O
22636#	SLR  status line reset			^[v
22637#	SLS  status line set			^[w
22638#	SM78 set mode vip7800			^[[1q
22639#	SSP0 partition 0 set			^[[00u
22640#	SSP1 partition n format 1		^[[PnPnSTRINGu
22641#	SSP2 partition n format 2		^[[PnPnSTRINGu
22642#	SSP3 partition n format 3		^[[PnPnu
22643#	SSPR multi-part. reset			^[[<>u
22644#	TBC  tab clear (at cursor pos.)		^[[g
22645#	TBI  tab initialize			^[[N
22646#	TBS  tab set (at cursor pos.)		^[p
22647#
22648#	ATR attribute (visual)
22649#	    blink :				^[sB
22650#	    dim :				^[sL
22651#	    hide (blank) :			^[sH
22652#	    inverse video :			^[sI
22653#	    protected :				^[sP
22654#	    reset :				^[sR
22655#	    underline :				^[s_
22656#
22657# This covers the vip7800 and BQ3155-vip7800
22658vip|Bull Questar 3155-7800,
22659	am, eslok, hs, km, mc5i, msgr, xenl, xon,
22660	vt#3, wsl#80,
22661	acsc=0pjdkblamcnkqitgufvhwexj, blink=\EsB, clear=\E`,
22662	cub1=^H, cud1=\n, cup=\E[%i%p1%03d%p2%03df, dch1=\E[P,
22663	dim=\EsL, dl1=\E[M, dsl=\Ev,
22664	flash=\007$<80>\007$<80>\007, fsl=\EO, hts=\Ep,
22665	ich1=\E[I, invis=\EsH,
22666	is2=\E[00u\E[<>001001024080024080u\E[01u,
22667	is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kcbt=\E[Z,
22668	kclr=\E`, kctab=\E[g, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
22669	kel=\EK, kf1=\E0, kf10=\ET, kf11=\E\\, kf12=\E\^, kf13@, kf14@,
22670	kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E2, kf20@, kf21=\E1,
22671	kf22=\E5, kf23=\E7, kf24=\E9, kf25=\E;, kf26=\E=, kf27=\E?,
22672	kf28=\EQ, kf29=\ES, kf3=\E6, kf30=\EV, kf31=\E], kf32=\E_,
22673	kf4=\E8, kf5=\E:, kf6=\E<, kf7=\E>, kf8=\EP, kf9=\ER,
22674	khome=\EH, khts=\Ep, kich1=\E[I, kil1=\E[L, kind=\E[0s,
22675	kll=\EH\EA, kri=\E[1s, krmir=\E[J, ktbc=\E[N, lf1=pf1,
22676	lf2=pf2, lf3=pf3, lf4=pf4, ll=\EH\EA, mc0=\E[0p, mc4=\E[<p,
22677	mc5=\E[3p, nel=\r, prot=\EsP, rev=\EsI,
22678	ri=\EA\EJ\EH\E[L$<10>, rmacs=\EF, rmir=\E[J, rmso=\EsR,
22679	rmul=\EsR, rs1=\Ec, rs2=\E[G, s0ds=\EF, s1ds=\EG,
22680	sgr0=\EsR\EsU\EF, smacs=\EG, smir=\E[I, smso=\EsI,
22681	smul=\Es_, tbc=\E[N, tsl=\Ew, use=ansi+inittabs,
22682	use=vt52-basic,
22683# normal screen, 8 bits, 132 columns terminal.
22684vip-w|vip7800-w|Q310-vip-w|Q310-vip-w-am|Questar 3155-vip7800 wide,
22685	cols#132, wsl#132,
22686	is2=\E[00u\E[<>001001024132024132u\E[01u, use=vip,
22687vip-H|vip7800-H|Q310-vip-H|Q310-vip-H-am|Questar 3155-vip7800 72 lines,
22688	lines#72,
22689	is2=\E[00u\E[<>001001024080072080u\E[01u, use=vip,
22690vip-Hw|vip7800-Hw|Q310-vip-Hw|Questar 3155-vip7800 wide 72 lines,
22691	cols#132, lines#72, wsl#132,
22692	is2=\E[00u\E[<>001001024132072132u\E[01u, use=vip,
22693
22694#### Chromatics
22695#
22696
22697# I have put the long strings in <smcup>/<rmcup>. Ti sets up a window
22698# that is smaller than the screen, and puts up a warning message
22699# outside the window. Te erases the warning message, puts the
22700# window back to be the whole screen, and puts the cursor at just
22701# below the small window. I defined <cnorm> and <civis> to really turn
22702# the cursor on and off, but I have taken this out since I don't
22703# like the cursor being turned off when vi exits.
22704cg7900|chromatics|chromatics 7900,
22705	am,
22706	cols#80, lines#40,
22707	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^],
22708	cup=\001M%p2%d\,%p1%d\,, cuu1=^K, dch1=^A<1, dl1=^A<2,
22709	ed=^Al, el=^A`, home=^\, ich1=^A>1, il1=^A>2, ind=\n, ll=^A|,
22710	rmcup=\001W0\,40\,85\,48\,\014\001W0\,0\,85\,48\,\001M0\,40
22711	      \,,
22712	rmso=\001C1\,\001c2\,,
22713	smcup=\001P0\001O1\001R1\001C4\,\001c0\,\014\001M0\,42\,WARN
22714	      ING\sDOUBLE\sENTER\sESCAPE\sand\s\025\001C1\,\001c2\,
22715	      \001W0\,0\,79\,39\,,
22716	smso=\001C4\,\001c7\,, uc=^A^A_^A\0,
22717
22718#### Computer Automation
22719#
22720
22721ca22851|Computer Automation 22851,
22722	am,
22723	cols#80, lines#24,
22724	bel=^G, clear=\014$<8>, cr=\r, cub1=^U, cud1=\n, cuf1=^I,
22725	cup=\002%i%p1%c%p2%c, cuu1=^V, ed=^\, el=^], home=^^, ind=\n,
22726	kcub1=^U, kcud1=^W, kcuu1=^V, khome=^^,
22727
22728#### Cybernex
22729#
22730
22731# This entry has correct padding and the undocumented "ri" capability
22732cyb83|xl83|Cybernex xl-83,
22733	OTbs, am,
22734	cols#80, lines#24,
22735	bel=^G, clear=\014$<62>, cr=\r, cub1=^H, cud1=\n, cuf1=^I,
22736	cup=\027%p1%{32}%+%c%p2%{32}%+%c, cuu1=^N,
22737	ed=\020$<62>, el=\017$<3>, home=^K, ind=\n, kcub1=^H,
22738	kcud1=\n, kcuf1=^I, kcuu1=^N, ri=^N,
22739# (mdl110: removed obsolete ":ma=^Z^P:" and overridden ":cd=145^NA^W:" -- esr)
22740cyb110|mdl110|Cybernex mdl-110,
22741	OTbs, am,
22742	cols#80, lines#24,
22743	bel=^G, clear=\030$<70>, cr=\r, cub1=^H, cud1=\n, cuf1=^U,
22744	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
22745	dch1=\016A\036$<3.5>, dl1=\016A\016\036$<40>,
22746	ed=\016@\026$<6>, el=\016@\026$<145>, home=^Y,
22747	ht=\011$<43>, ich1=\016A\035$<3.5>,
22748	il1=\016A\016\035$<65>, ind=\n, rmso=^NG, smso=^NF,
22749
22750#### Datapoint
22751#
22752# Datapoint is gone.  They used to be headquartered in Texas.
22753# They created ARCnet, an Ethernet competitor that flourished for a while
22754# in the early 1980s before 3COM got wise and cut its prices.  The service
22755# side of Datapoint still lives (1995) in the form of Intelogic Trace.
22756#
22757
22758dp3360|datapoint|Datapoint 3360,
22759	OTbs, am,
22760	cols#82, lines#25,
22761	bel=^G, clear=^]^_, cr=\r, cub1=^H, cud1=\n, cuf1=^X, cuu1=^Z,
22762	ed=^_, el=^^, home=^], ind=\n,
22763
22764# From: Jan Willem Stumpel <jw.stumpel@inter.nl.net>, 11 May 1997
22765# The Datapoint 8242 Workstation was sold at least between 1985
22766# and 1989. To make the terminal work with this entry, press
22767# CONTROL-INT-INT to take the terminal off-line, and type (opt).
22768# Set the options AUTO ROLL, ROLL DN, and ESC KBD on, and AUTO
22769# CR/LF off. Use control-shift-[] as escape key, control-I as tab,
22770# shift-F1 to shift-F5 as F6 to F10 (unshifted F1 to F5 are in
22771# fact unusable because the strings sent by the terminal conflict
22772# with other keys).
22773# The terminal is capable of displaying "box draw" characters.
22774# For each graphic character you must send 2 ESC's (\E\E) followed
22775# by a control character as follows:
22776#         character        meaning
22777#         =========        =======
22778#         ctrl-E           top tee
22779#         ctrl-F           right tee
22780#         ctrl-G           bottom tee
22781#         ctrl-H           left tee
22782#         ctrl-I           cross
22783#         ctrl-J           top left corner
22784#         ctrl-K           top right corner
22785#         ctrl-L           bottom left corner
22786#         ctrl-M           bottom right corner
22787#         ctrl-N           horizontal line
22788#         ctrl-O           vertical line
22789# Unfortunately this cannot be fitted into the termcap/terminfo
22790# description scheme.
22791dp8242|Datapoint 8242,
22792	msgr,
22793	cols#80, lines#25,
22794	bel=^G, civis=^Y, clear=^U\E^D^W^X, cnorm=^X, cr=\r, cub1=^H,
22795	cud1=\n, cup=\011%p2%'\0'%+%c%p1%'\0'%+%c, dl1=\E^Z,
22796	ed=^W, el=^V, home=^U, ht=^I, il1=\E^T, ind=^C,
22797	is1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
22798	kbs=^H, kcub1=^D, kcud1=^B, kcuf1=^F, kcuu1=^E, kf1=^G\Ee,
22799	kf10=\EK\Ea, kf2=^I\Ed, kf3=\n\Ec, kf4=\n\Eb, kf5=^S\Ea,
22800	kf6=\EO\Ee, kf7=\EN\Ed, kf8=\EM\Ec, kf9=\EL\Eb, nel=\r\n,
22801	rep=\E\023%p1%c%p2%c, ri=^K, rmso=\E^D, rmul=\E^D,
22802	rs1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
22803	smso=\E^E, smul=\E^F,
22804	wind=\E\014\E\016%p1%'\0'%+%c%p2%'\0'%+%c%p3%'\0'%+%c%p4%'
22805	     \0'%+%c\025,
22806
22807#### DEC terminals (Obsolete types: DECwriter and VT40/42/50)
22808#
22809# These entries came from DEC's official terminfos for its older terminals
22810# (which happen to be identical to the AT&T/SCO terminal descriptions),
22811# Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support Engineering
22812# may have had more information.  Updated terminfos and termcaps were available
22813# at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
22814
22815# DEC's terminfos did not describe the auxiliary keypad.
22816#
22817# DECScope of course had no "function keys", but this building block assigns
22818# the three blank keys at the top of the auxiliary (numeric) keypad, using
22819# the same analogy as VT100 (also lacking function-keys).
22820#
22821# These assignments use the same layout for 0-9 as VT100+keypad; the VT52
22822# keypad had its cursor-keys on the right-column as shown -TD
22823#   _______________________________________
22824#  |   PF1   |   PF2   |   PF3   | c-up    |
22825#  |   \EP   |   \EQ   |   \ER   |   \EA   |
22826#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|kcuu1_k4_|
22827#  |    7         8         9      c-down  |
22828#  |   \E?w  |   \E?x  |   \E?y  |   \EB   |
22829#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|kcud1____|
22830#  |    4    |    5    |    6    | c-right |
22831#  |   \E?t  |   \E?u  |   \E?v  |   \EC   |
22832#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|kcuf1_k8_|
22833#  |    1    |    2    |    3    | c-left  |
22834#  |   \E?q  |   \E?r  |   \E?s  |   \ED   |
22835#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|kcub1____|
22836#  |         0         |   .     |  enter  |
22837#  |        \E?p       |  \E?n   |  \E?M   |
22838#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
22839#
22840vt52+keypad|DECScope auxiliary keypad,
22841	ka1=\E?q, ka3=\E?s, kb2=\E?r, kc1=\E?p, kc3=\E?n, kf0=\E?y,
22842	kf1=\EP, kf2=\EQ, kf3=\ER, kf5=\E?t, kf6=\E?u, kf7=\E?v,
22843	kf8=\E?w, kf9=\E?x,
22844
22845gt40|DEC gt40,
22846	OTbs, os,
22847	cols#72, lines#30,
22848	bel=^G, cr=\r, cub1=^H, cud1=\n,
22849gt42|DEC gt42,
22850	OTbs, os,
22851	cols#72, lines#40,
22852	bel=^G, cr=\r, cub1=^H, cud1=\n,
22853
22854vt50|DEC VT50,
22855	OTbs,
22856	cols#80, lines#12,
22857	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
22858	cuu1=\EA, ed=\EJ, el=\EK, ht=^I, ind=\n, u8=\E/A, u9=\EZ,
22859vt50h|DEC VT50h,
22860	cub1=\ED, cud1=\EB, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
22861	u8=\E/[HJ], use=vt52+keypad, use=vt50, use=vt52+arrows,
22862
22863# (vt61: there's a BSD termcap that claims <dl1=\EPd>, <il1=\EPf.> <kbs=^H>)
22864vt61|vt-61|vt61.5|DEC VT61,
22865	cols#80, lines#24,
22866	bel=^G, clear=\EH\EJ$<120>, cr=\r$<20>, cub1=^H, cud1=\n,
22867	cuf1=\EC$<20>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>,
22868	cuu1=\EA$<20>, ed=\EJ$<120>, el=\EK$<70>, ht=^I,
22869	ind=\n$<20>, ri=\E$<20>I, use=vt52+arrows,
22870
22871# The gigi does standout with red!
22872# (gigi: I added <rmam>/<smam> based on the init string, corrected cub1 -- esr)
22873gigi|vk100|DEC gigi graphics terminal,
22874	OTbs, am, xenl,
22875	cols#84, lines#24,
22876	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
22877	cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, ht=^I, ind=\n,
22878	is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h,
22879	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
22880	ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, sgr0=\E[m,
22881	smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7;31m,
22882	use=ansi+local, use=ansi+sgrul, use=vt100+pf1-pf4,
22883
22884# DEC PRO-350 console (VT220-style).  The 350 was DEC's attempt to produce
22885# a PC differentiated from the IBM clones.  It was a total, ludicrous,
22886# grossly-overpriced failure (among other things, DEC's OS didn't include
22887# a format program, so you had to buy pre-formatted floppies from DEC at
22888# a hefty premium!).
22889pro350|decpro|DEC pro console,
22890	OTbs,
22891	cols#80, it#8, lines#24,
22892	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
22893	clear=\EH\EJ, cub1=^H, cud1=\EB, cuf1=\EC,
22894	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
22895	el=\EK, home=\EH, ht=^I, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH,
22896	kf4=\EI, kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI,
22897	rmacs=\EG, rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H,
22898	smul=\E^D, use=vt52+arrows,
22899
22900dw1|DECwriter I,
22901	OTbs, hc, os,
22902	cols#72,
22903	bel=^G, cr=\r, cub1=^H, cud1=\n, ind=\n,
22904dw2|decwriter|dw|DECwriter II,
22905	OTbs, hc, os,
22906	cols#132,
22907	bel=^G, cr=\r, cub1=^H, cud1=\n, ind=\n, kbs=^H,
22908# \E(B		Use U.S. character set (otherwise # => british pound !)
22909# \E[20l	Disable "linefeed newline" mode (else puts \r after \n,\f,\v)
22910# \E[w		10 char/in pitch
22911# \E[1;132	full width horizontal margins
22912# \E[2g		clear all tab stops
22913# \E[z		6 lines/in
22914# \E[66t	66 lines/page (for \f)
22915# \E[1;66r	full vertical page can be printed
22916# \E[4g		clear vertical tab stops
22917# \E>		disable alternate keypad mode (so it transmits numbers!)
22918# \E[%i%p1%du	set tab stop at column %d (origin == 1)
22919#		(Full syntax is \E[n;n;n;n;n;...;nu where each 'n' is
22920#		a tab stop)
22921#
22922#       The dw3 does standout with wide characters.
22923#
22924dw3|la120|DECwriter III,
22925	OTbs, hc, os,
22926	cols#132,
22927	bel=^G, cr=\r, cub1=^H, cud1=\n, ht=^I, ind=\n,
22928	is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
22929	is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u
22930	    \r,
22931	kbs=^H, rmso=\E[w, sgr0=\E[w, smso=\E[6w,
22932dw4|DECwriter IV,
22933	OTbs, am, hc, os,
22934	cols#132,
22935	bel=^G, cr=\r, cub1=^H, cud1=\n, ht=^I, ind=\n, is2=\Ec, kbs=^H,
22936	kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
22937
22938# These aren't official
22939ln03|DEC ln03 laser printer,
22940	hc,
22941	cols#80, lines#66,
22942	bel=^G, cr=\r, cud1=\n, hd=\EK, ht=^I, hu=\EL, ind=\n, nel=\r\n,
22943	rmso=\E[22m, sgr0=\E[m, smso=\E[1m, use=ecma+underline,
22944ln03-w|DEC ln03 laser printer 132 cols,
22945	cols#132,
22946	kbs=^H, kcub1=^H, kcud1=\n, use=ln03,
22947
22948#### Delta Data (dd)
22949#
22950
22951# Untested. The cup sequence is hairy enough that it probably needs work.
22952# The idea is ctrl(O), dd(row), dd(col), where dd(x) is x - 2*(x%16) + '9'.
22953# There are BSD-derived termcap entries floating around for this puppy
22954# that are *certainly* wrong.
22955delta|dd5000|delta data 5000,
22956	OTbs, am,
22957	cols#80, lines#27,
22958	bel=^G, clear=^NR, cub1=^H, cud1=\n, cuf1=^Y,
22959	cup=\017%p1%p1%{16}%m%{2}%*%-%{57}%+%c%p2%p2%{16}%m%{2}%*%-
22960	    %{57}%+%c,
22961	cuu1=^Z, dch1=^NV, el=^NU, home=^NQ, ind=\n,
22962
22963#### Digital Data Research (ddr)
22964#
22965
22966# (ddr: I added <rmam>/<smam> based on the init string -- esr)
22967ddr|rebus3180|ddr3180|Rebus/DDR 3180 VT100 emulator,
22968	OTbs, am, xenl,
22969	cols#80, it#8, lines#24, vt#3,
22970	blink=\E[5m$<2/>, bold=\E[1m$<2/>,
22971	clear=\E[H\E[2J$<50/>, cub1=^H, cud1=\n, cuf1=\E[C$<2/>,
22972	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
22973	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
22974	ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D,
22975	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rev=\E[7m$<2/>,
22976	rf=/usr/share/tabset/vt100, ri=\EM$<5/>, rmam=\E[7l,
22977	rmkx=\E[?1l\E>, rmul=\E[m$<2/>,
22978	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
22979	sgr0=\E[m$<2/>, smam=\E[7l, smkx=\E[?1h\E=,
22980	smul=\E[4m$<2/>, use=ansi+csr, use=ansi+sgrso,
22981	use=vt100+pf1-pf4,
22982
22983#### Evans & Sutherland
22984#
22985
22986# Jon Leech <leech@cs.unc.edu> tells us:
22987# The ps300 was the Evans & Sutherland Picture System 300, a high
22988# performance 3D vector graphics system with a bunch of specialized hardware.
22989# Approximate date of release was 1982 (early 80s, anyway), and it had several
22990# evolutions including (limited) color versions such as the PS330C. PS300s
22991# were effectively obsolete by the late 80s, replaced by raster graphics
22992# systems, although specialized applications like molecular modeling
22993# hung onto them for a while longer.  AFAIK all E&S vector graphics systems
22994# are out of production, though of course E&S is very much alive (in 1996).
22995# (ps300: changed ":pt@:" to "it@" -- esr)
22996#
22997ps300|Picture System 300,
22998	xt,
22999	it@,
23000	rmso@, rmul@, smso@, smul@, use=vt100+4bsd,
23001
23002#### General Electric (ge)
23003#
23004
23005terminet1200|terminet300|tn1200|tn300|terminet|GE terminet 1200,
23006	OTbs, hc, os,
23007	cols#120,
23008	bel=^G, cr=\r, cud1=\n, ind=\n,
23009
23010#### Heathkit/Zenith
23011#
23012
23013# Here is a description of the H19 DIP switches:
23014#
23015# S401
23016# 0-3 = baud rate as follows:
23017#
23018#         3       2       1       0
23019#	---	---	---	---
23020#         0       0       1       1       300 baud
23021#         0       1       0       1       1200 baud
23022#         1       0       0       0       2400 baud
23023#         1       0       1       0       4800 baud
23024#         1       1       0       0       9600 baud
23025#         1       1       0       1       19.2K baud
23026#
23027# 4 = parity (0 = no parity)
23028# 5 = even parity (0 = odd parity)
23029# 6 = stick parity (0 = normal parity)
23030# 7 = full duplex (0 = half duplex)
23031#
23032# S402
23033# 0 = block cursor (0 = underscore cursor)
23034# 1 = no key click (0 = keyclick)
23035# 2 = wrap at end of line (0 = no wrap)
23036# 3 = auto LF on CR (0 = no LF on CR)
23037# 4 = auto CR on LF (0 = no CR on LF)
23038# 5 = ANSI mode (0 = VT52 mode)
23039# 6 = keypad shifted (0 = keypad unshifted)
23040# 7 = 50Hz refresh (1 = 60Hz refresh)
23041#
23042# Factory Default settings are as follows:
23043#          7 6 5 4 3 2 1 0
23044# S401     1 0 0 0 1 1 0 0
23045# S402     0 0 0 0 0 0 0 0
23046# (h19: I added <rmam>/<smam> based on the init string;
23047# also added empty <acsc> to suppress a tic warning -- esr)
23048h19-a|h19a|heath-ansi|heathkit-a|Heathkit h19 ANSI mode,
23049	OTbs, am, mir, msgr,
23050	cols#80, it#8, lines#24,
23051	acsc=, bel=^G, clear=\E[2J, cnorm=\E[>4l, cr=\r, cub1=^H,
23052	cud1=\E[1B, cuf1=\E[1C, cuu1=\E[1A, cvvis=\E[>4h,
23053	dch1=\E[1P, dl1=\E[1M$<1*>, ed=\E[J, el=\E[K, ht=^I,
23054	il1=\E[1L$<1*>, ind=\n,
23055	is2=\E<\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m\E[?7h,
23056	kbs=^H, kcub1=\E[1D, kcud1=\E[1B, kcuf1=\E[1C, kcuu1=\E[1A,
23057	kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
23058	kf7=\EOQ, kf8=\EOR, khome=\E[H, lf6=blue, lf7=red, lf8=white,
23059	ri=\EM, rmacs=\E[11m, rmam=\E[?7l, rmir=\E[4l,
23060	smacs=\E[10m, smam=\E[?7h, smir=\E[4h, use=ansi+cup,
23061	use=ansi+sgrso,
23062h19-bs|Heathkit w/keypad shifted,
23063	rmkx=\Eu, smkx=\Et, use=h19-b,
23064h19-us|h19us|h19-smul|Heathkit w/keypad shifted/underscore cursor,
23065	rmkx=\Eu, smkx=\Et, use=h19-u,
23066# (h19: merged in <ip> from BSDI hp19-e entry>;
23067# also added empty <acsc> to suppress a tic warning --esr)
23068# From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998
23069# Tim tells us that:
23070# I have an old Zenith-19 terminal at home that still gets a lot of use.
23071# This terminal suffers from the same famous insert-mode padding lossage
23072# that has been acknowledged for the Z29 terminal.  Emacs is nearly
23073# unusable on this box, since even a half-scroll up or down the window
23074# causes flaming terminal death.
23075#
23076# On the Z19, the only way I have found around this problem is to remove
23077# the :al: and :dl: entries entirely.  No amount of extra padding will
23078# help (I have tried up to 20000).  Removing <il1=\EL$> and <dl1=\EM$>
23079# makes Emacs a little slower, but it remains in the land of the living.
23080# Big win.
23081h19|heath|h19-b|heathkit|heath-19|z19|zenith|Heathkit h19,
23082	OTbs, am, eslok, hs, mir, msgr,
23083	cols#80, it#8, lines#24,
23084	acsc=+h.kaiggjdkclfmenbozqas{tvutvuwsx`~\^, bel=^G,
23085	clear=\EE, cnorm=\Ey4, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
23086	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ex4,
23087	dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I, ind=\n,
23088	ip=$<1.5/>, kbs=^H, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
23089	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue,
23090	lf7=red, lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
23091	smacs=\EF, smir=\E@, smso=\Ep,
23092	tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo, use=vt52+arrows,
23093h19-u|Heathkit with underscore cursor,
23094	cnorm@, cvvis@, use=h19-b,
23095h19-g|h19g|Heathkit w/block cursor,
23096	cnorm=\Ex4, cvvis@, use=h19-b,
23097alto-h19|altoh19|altoheath|alto-heath|alto emulating Heathkit h19,
23098	lines#60,
23099	dl1=\EM, il1=\EL, use=h19,
23100
23101# The major problem with the Z29 is that it requires more padding than the Z19.
23102#
23103# The problem with declaring an H19 to be synonymous with a Z29 is that
23104# it needs more padding. It especially loses if a program attempts
23105# to put the Z29 into insert mode and insert text at 9600 baud. It
23106# even loses worse if the program attempts to insert tabs at 9600
23107# baud. Adding padding to text that is inserted loses because in
23108# order to make the Z29 not die, one must add so much padding that
23109# whenever the program tries to use insert mode, the effective
23110# rate is about 110 baud.
23111#
23112# What program would want to put the terminal into insert mode
23113# and shove stuff at it at 9600 baud you ask?
23114#
23115# Emacs. Emacs seems to want to do the mathematically optimal
23116# thing in doing a redisplay rather than the practical thing.
23117# When it is about to output a line on top of a line that is
23118# already on the screen, instead of just killing to the end of
23119# the line and outputting the new line, it compares the old line
23120# and the new line and if there are any similarities, it
23121# constructs the new line by deleting the text on the old line
23122# on the terminal that is already there and then inserting new
23123# text into the line to transform it into the new line that is
23124# to be displayed. The Z29 does not react kindly to this.
23125#
23126# But don't cry for too long.... There is a solution. You can make
23127# a termcap entry for the Z29 that says the Z29 has no insert mode.
23128# Then Emacs cannot use it. "Oh, no, but now inserting into a
23129# line will be really slow", you say. Well there is a sort of a
23130# solution to that too. There is an insert character option on
23131# the Z29 that will insert one character. Unfortunately, it
23132# involves putting the terminal into ANSI mode, inserting the
23133# character, and changing it back to H19 mode. All this takes 12
23134# characters. Pretty expensive to insert one character, but it
23135# works. Either Emacs doesn't try to use its inserting hack when
23136# it's only given an insert character ability or the Z29 doesn't
23137# require padding with this (the former is probably more likely,
23138# but I haven't checked it out).
23139# (z29: added empty <acsc> to suppress a tic warning, merged in
23140# status line capabilities from BRL entry --esr)
23141z29|zenith29|z29b|Zenith z29b,
23142	OTbs, OTpt, am, eslok, hs, mir, msgr,
23143	OTkn#10, cols#80, lines#24,
23144	OTbc=\ED, acsc=, bel=^G, cbt=\E-, clear=\EE$<14>, cnorm=\Ey4,
23145	cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
23146	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E$<1>A,
23147	cvvis=\Ex4, dch1=\EN$<0.1*>, dl1=\EM$<1/>, dsl=\Ey1,
23148	ed=\EJ$<14>, el=\EK$<1>, fsl=\Ek\Ey5, home=\EH, ht=^I,
23149	ich1=\E<\E[1@\E[?2h$<1>, il1=\EL$<1/>, ind=\n$<2>,
23150	is2=\E<\E[?2h\Ev, kbs=^H, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU,
23151	kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I,
23152	khome=\EH, lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO,
23153	rmso=\Eq, rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep,
23154	smul=\Es8, tsl=\Ej\Ex5\Ex1\EY8%+ \Eo, use=vt52+arrows,
23155# z29 in ANSI mode. Assumes that the cursor is in the correct state, and that
23156# the world is stable. <rs1> causes the terminal to be reset to the state
23157# indicated by the name. kc -> key click, nkc -> no key click, uc -> underscore
23158# cursor, bc -> block cursor.
23159# From: Mike Meyers
23160# (z29a: replaced nonexistent <if=/usr/share/tabset/zenith29> because <hts>
23161# looks VT100-compatible -- esr)
23162z29a|z29a-kc-bc|h29a-kc-bc|Heath/Zenith 29 in ANSI mode,
23163	OTbs, OTpt, am, eslok, hs, mir, msgr,
23164	OTkn#10, cols#80, it#8, lines#24,
23165	OTbc=\ED, bel=^G, blink=\E[5m, bold=\E[2m, clear=\E[2J,
23166	cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\n,
23167	dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dsl=\E[>1l, ed=\E[J,
23168	el=\E[K, fsl=\E[u\E[>5l, ht=^I, hts=\EH,
23169	if=/usr/share/tabset/vt100, ind=\ED, kclr=\E[J, ked=\E[J,
23170	kf0=\E[~, kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW,
23171	kf6=\EOP, kf7=\EOQ, kf8=\EOR, kf9=\EOX, khome=\E[H, lf0=help,
23172	mc0=\E#7, nel=\r\ED, rc=\E[r, rev=\E[7m, ri=\EM,
23173	rmcup=\E[?7h, rmso=\E[m,
23174	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>4h\E[>1;2;3;5;6;7;8;9l\E[m
23175	    \E[11m,
23176	sc=\E[s, sgr0=\E[m, smcup=\E[?7l, smso=\E[7;2m, tbc=\E[3g,
23177	tsl=\E[s\E[>5;1h\E[25;%i%dH\E[1K, use=ansi+apparrows,
23178	use=ansi+cup, use=ansi+idl, use=ansi+local,
23179	use=ansi+sgrul,
23180
23181z29a-kc-uc|h29a-kc-uc|Zenith z29 ANSI mode with keyclick and underscore cursor,
23182	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11
23183	    m,
23184	use=z29a,
23185z29a-nkc-bc|h29a-nkc-bc|Zenith z29 ANSI mode with block cursor and no keyclick,
23186	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2;4h\E[>1;3;5;6;7;8;9l\E[m
23187	    \E[11m,
23188	use=z29a,
23189z29a-nkc-uc|h29a-nkc-uc|Zenith z29 ANSI mode with underscore cursor and no keyclick,
23190	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2h\E[>1;3;4;5;6;7;8;9l\E[m
23191	    \E[11m,
23192	use=z29a,
23193# From: Jeff Bartig <jeffb@dont.doit.wisc.edu> 31 Mar 1995
23194z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
23195	am, eslok, hs, mir, msgr, xon,
23196	cols#80, lines#24,
23197	acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
23198	blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h,
23199	clear=\E[2J\E[H, cnorm=\E[>5l, cr=\r,
23200	csr=\E[%i%p1%d;%p2%dr, cub1=^H, dch=\E[%p1%dP,
23201	dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[>1l,
23202	ed=\E[0J, el=\E[0K, el1=\E[1K, fsl=\E[u, il=\E[%p1%dL,
23203	il1=\E[1L, ind=\n, is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J,
23204	ka1=\EOw, ka3=\EOu, kb2=\EOy, kc1=\EOq, kc3=\EOs, ked=\E[J,
23205	kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
23206	kf7=\EOQ, kf8=\EOR, kf9=\EOX, khlp=\E[~, ll=\E[24;1H,
23207	mc0=\E[?19h\E[i, rc=\E[u, rev=\E[7m, rmacs=\E(B,
23208	rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m, rmul=\E[0m,
23209	rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0, smir=\E[4h,
23210	smkx=\E[>7h, smso=\E[7m, smul=\E[4m,
23211	tsl=\E[s\E[>1h\E[25;%i%p1%dH, use=ansi+arrows,
23212	use=ansi+cup, use=ansi+local, use=ansi+pp, use=ansi+tabs,
23213
23214# From: Brad Brahms <Brahms@USC-ECLC>
23215z100|h100|z110|z-100|h-100|Heath/Zenith z-100 pc with color monitor,
23216	cnorm=\Ey4\Em70, cvvis=\Ex4\Em71, use=z100bw,
23217# (z100bw: removed obsolete ":kn#10:", added empty <acsc> -- esr)
23218z100bw|h100bw|z110bw|z-100bw|h-100bw|Heath/Zenith z-100 pc,
23219	OTbs, OTpt, mir, msgr,
23220	OTkn#10, cols#80, it#8, lines#24,
23221	acsc=+h.kaiggjdkclfmenbozqas{tvutvuwsx`~\^,
23222	clear=\EE$<5*/>, cnorm=\Ey4, cub1=^H, cud1=\EB, cuf1=\EC,
23223	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<1*/>, cuu1=\EA,
23224	cvvis=\Ex4, dch1=\EN$<1*/>, dl1=\EM$<5*/>, ed=\EJ, el=\EK,
23225	home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H, kf0=\EJ, kf1=\ES,
23226	kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
23227	kf9=\EOI, khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
23228	smacs=\EF, smir=\E@, smso=\Ep, use=vt52+arrows,
23229p19|h19-b with il1/dl1,
23230	dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
23231# From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
23232# (ztx: removed duplicate :sr: -- esr)
23233ztx|ztx11|zt-1|htx11|ztx-1-a|Heath/Zenith ztx-10 or 11,
23234	OTbs, am, eslok, hs,
23235	cols#80, it#8, lines#24,
23236	clear=\EE, cub1=^H, cud1=\n, cuf1=\EC,
23237	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
23238	dsl=\Ey1, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I,
23239	il1=\EL, is2=\Ej\EH\Eq\Ek\Ev\Ey1\Ey5\EG\Ey8\Ey9\Ey>,
23240	kbs=^H, kf0=\ES, kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP,
23241	kf6=\EQ, kf7=\ER, ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5,
23242	smul=\Es2, tsl=\Ej\Ex5\Ex1\EY8%+ \Eo, use=vt52+arrows,
23243
23244#### IMS International (ims)
23245#
23246# There was a company called IMS International located in Carson City,
23247# Nevada, that flourished from the mid-70s to mid-80s.  They made S-100
23248# bus/Z80 hardware and a line of terminals called Ultimas.
23249#
23250
23251# From: Erik Fair <fair@ucbarpa.berkeley.edu>  Sun Oct 27 07:21:05 1985
23252ims950-b|bare ims950 no init string,
23253	is2@, use=ims950,
23254# (ims950: removed obsolete ":ko@:" -- esr)
23255ims950|IMS TeleVideo 950 emulation,
23256	xenl@,
23257	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
23258	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950,
23259# (ims950-rv: removed obsolete ":ko@:" -- esr)
23260ims950-rv|IMS tvi950 rev video,
23261	xenl@,
23262	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
23263	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950-rv,
23264ims-ansi|ultima2|ultimaII|IMS Ultima II,
23265	OTbs, am,
23266	cols#80, it#8, lines#24,
23267	clear=\E[H\E[2J, cub1=^H, cud1=\ED, cuf1=\EC,
23268	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\EM, ed=\E[0J, el=\E[0K,
23269	ht=^I, if=/usr/share/tabset/vt100,
23270	is2=\E[m\E[>14l\E[?1;?5;20l\E>\E[1m\r, kcub1=\E[D,
23271	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, ri=\EM,
23272	rmso=\E[m\E[1m, rmul=\E[m\E[1m, sgr0=\E[m, smso=\E[7m,
23273	smul=\E[4m,
23274
23275#### Intertec Data Systems
23276#
23277# I think this company is long dead as of 1995.  They made an early CP/M
23278# micro called the "Intertec Superbrain" that was moderately popular,
23279# then sank out of sight.
23280#
23281
23282superbrain|Intertec Superbrain,
23283	OTbs, am, bw,
23284	cols#80, lines#24,
23285	OTbc=^U, bel=^G, clear=\014$<5*>, cr=\r, cub1=^H, cud1=\n,
23286	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=^K,
23287	ed=\E~k<10*>, el=\E~K$<15>, ht=^I, ind=\n, kcub1=^U,
23288	kcud1=\n, kcuf1=^F, kcuu1=^K, rmcup=^L, smcup=^L,
23289# (intertube: a Gould entry via BRL asserted smul=\E0@$<200/>,
23290# rmul=\E0A$<200/>; my guess is the highlight letter is bit-coded like an ADM,
23291# and the reverse is actually true.  Try it. -- esr)
23292intertube|intertec|Intertec InterTube,
23293	OTbs, am,
23294	cols#80, lines#25,
23295	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^F,
23296	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<50>, cuu1=^Z, home=^A,
23297	ind=\n, rmso=\E0@, smso=\E0P,
23298# The intertube 2 has the "full duplex" problem like the Tektronix 4025: if you
23299# are typing and a command comes in, the keystrokes you type get interspersed
23300# with the command and it messes up
23301intertube2|Intertec data systems InterTube 2,
23302	OTbs,
23303	cup=\016%p1%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
23304	el=\EK, hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c,
23305	ll=^K^X\r, vpa=\013%p1%c, use=intertube,
23306
23307#### Ithaca Intersystems
23308#
23309# This company made S100-bus personal computers long ago in the pre-IBM-PC
23310# past.  They used to be reachable at:
23311#
23312#	Ithaca Intersystems
23313#	1650 Hanshaw Road
23314#	Ithaca, New York 14850
23315#
23316# However, the outfit went bankrupt years ago.
23317#
23318
23319# The Graphos III was a color graphics terminal from Ithaca Intersystems.
23320# These entries were written (originally in termcap syntax) by Brian Yandell
23321# <yandell@stat.wisc.edu> and Mike Meyer <mikem@stat.wisc.edu> at the
23322# University of Wisconsin.
23323
23324# (graphos: removed obsolete and syntactically incorrect :kn=4:,
23325# removed <if=/usr/share/tabset/init.graphos> and
23326# <rf=/usr/share/tabset/init.graphos> no such file & no <hts> -- esr)
23327graphos|graphos III,
23328	am, mir,
23329	cols#80, it#8, lines#24,
23330	clear=\E[H\E[2J, cnorm=\Ez56;2;0;0z\Ez73z\Ez4;1;1z,
23331	cr=\r, cub1=^H, cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P,
23332	ht=^I, ind=\ED, nel=\r\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
23333	rmir=\E[4l, sc=\E7, sgr0=\E[m, smdc=\E[4h, smir=\E[4h,
23334	use=ansi+arrows, use=ansi+cup, use=ansi+erase,
23335	use=ansi+idl, use=ansi+local, use=ansi+sgrso,
23336	use=vt100+pf1-pf4,
23337
23338graphos-30|graphos III with 30 lines,
23339	lines#30,
23340	cvvis=\Ez4;2;1z\Ez56;2;80;30z, use=graphos,
23341
23342#### Modgraph
23343#
23344# These people used to be reachable at:
23345#
23346#	Modgraph, Inc
23347#	1393 Main Street,
23348#	Waltham, MA 02154
23349#	Vox: (617)-890-5796.
23350#
23351# However, if you call that number today you'll get an insurance company.
23352# I have mail from "Michael Berman, V.P. Sales, Modgraph" dated
23353# 26 Feb 1997 that says:
23354#
23355# Modgraph GX-1000, replaced by GX-2000.  Both are out of production, have been
23356# for ~7 years.  Modgraph still in business.  Products are rugged laptop and
23357# portable PC's and specialized CRT and LCD monitors (rugged, rack-mount
23358# panel-mount etc).  I can be emailed at sonfour@aol.com
23359#
23360# Peter D. Smith <pdsmith@nbbn.com> notes that his modgraph manual was
23361# dated 1984.  According to the manual, it featured Tek 4010/4014
23362# graphics and DEC VT100/VT52 + ADM-3A emulation with a VT220-style keyboard.
23363#
23364
23365modgraph|mod24|modgraph terminal emulating VT100,
23366	xenl@,
23367	cvvis=\E\^9;0s\E\^7;1s,
23368	is2=\E\^9;0s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11
23369	    ;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s
23370	    \E\^11;81s\E\^11;89s,
23371	rf@, ri=\EM\E[K$<5/>, use=vt100+4bsd,
23372# The GX-1000 manual is dated 1984.  This looks rather like a VT-52.
23373modgraph2|modgraph gx-1000 80x24 with keypad not enabled,
23374	am, da, db,
23375	cols#80, it#8, lines#24,
23376	clear=\EH\EJ$<50/>, cub1=^H, cud1=\EB$<2/>,
23377	cuf1=\EC$<2/>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5/>,
23378	cuu1=\EA$<2/>, ed=\EJ$<50/>, el=\EK$<3/>, ht=^I,
23379	is2=\E<\E\^5;2s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E
23380	    \^11;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;7
23381	    3s\E\^11;81s\E\^11;89s\E\^12;0s\E\^14;2s\E\^15;9s\E\^25;
23382	    1s\E\^9;1s\E\^27;1,
23383	ri=\EI$<5/>,
23384#
23385# Modgraph from Nancy L. Cider <nancyc@brl-tbd>
23386# BUG NOTE from Barbara E. Ringers <barb@brl-tbd>:
23387# If we set TERM=vt100, and set the Modgraph screen to 24 lines, setting a
23388# mark and using delete-to-killbuffer work correctly.  However, we would
23389# like normal mode of operation to be using a Modgraph with 48 line setting.
23390# If we set TERM=mod (which is a valid entry in termcap with 48 lines)
23391# the setting mark and delete-to-killbuffer results in the deletion of only
23392# the line the mark is set on.
23393# We've discovered that the delete-to-killbuffer works correctly
23394# with TERM=mod and screen set to 80x48 but it's not obvious.  Only
23395# the first line disappears but a ctrl-l shows that it did work
23396# correctly.
23397modgraph48|mod|Modgraph w/48 lines,
23398	OTbs, OTpt, am, xenl,
23399	cols#80, it#8, lines#48, vt#3,
23400	OTnl=\n, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
23401	cr=\r, cub1=^H, cud1=\n, cuf1=\E[C, cuu1=\E[A, ed=\E[J,
23402	el=\E[K, flash=\E[?5h\E[0q\E[1;2q\E[?5l\E[0q\E[4;3q,
23403	ht=^I, is2=\E<\E[1;48r\E[0q\E[3;4q\E=\E[?1h, kbs=^H,
23404	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rev=\E[7m,
23405	ri=\EM, rmkx=\E[?1l\E>, rs1=\E=\E[0q\E>, sgr0=\E[m,
23406	smkx=\E[?1h\E=, use=ansi+csr, use=ansi+cup,
23407	use=ansi+sgrso, use=ansi+sgrul, use=vt100+pf1-pf4,
23408
23409#### Morrow Designs
23410#
23411# This was George Morrow's company.  They started in the late 1970s making
23412# S100-bus machines.  They used to be reachable at:
23413#
23414#        Morrow
23415#        600 McCormick St.
23416#        San Leandro, CA 94577
23417#
23418# but they're long gone now (1995).
23419#
23420
23421# The mt70 terminal was shipped with the Morrow MD-3 microcomputer.
23422# Jeff's specimen was dated June 1984.
23423# From: Jeff Wieland <wieland@acn.purdue.edu> 24 Feb 1995
23424mt70|mt-70|Morrow MD-70; native Morrow mode,
23425	am, mir, msgr, xon,
23426	cols#80, it#8, lines#24,
23427	acsc=+z\,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI, bel=^G,
23428	cbt=\EI, civis=\E"0, clear=^Z, cnorm=\E"2, cr=\r, cub1=^H,
23429	cud1=\n, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1>,
23430	cuu1=^K, dch1=\EW, dim=\EG2, dl1=\ER, ed=\EY, el=\ET$<10>,
23431	flash=\EK1$<200>\EK0, home=^^, ht=^I, ich1=\EQ, il1=\EE,
23432	ind=\n, invis@, is1=\E"2\EG0\E], kbs=^H, kcbt=^A^Z\r,
23433	kclr=^An\r, kcub1=^AL\r, kcud1=^AK\r, kcuf1=^AM\r,
23434	kcuu1=^AJ\r, kdch1=^?, kf1=^A@\r, kf10=^AI\r, kf11=^A`\r,
23435	kf12=^Aa\r, kf13=^Ab\r, kf14=^Ac\r, kf15=^Ad\r, kf16=^Ae\r,
23436	kf17=^Af\r, kf18=^Ag\r, kf19=^Ah\r, kf2=^AA\r, kf20=^Ai\r,
23437	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
23438	kf8=^AG\r, kf9=^AH\r, khlp=^AO\r, khome=^AN\r, nel=^_,
23439	rmacs=\E%%, rmcup=, smacs=\E$, smcup=\E"2\EG0\E],
23440	smul=\EG1, tbc=\E0, use=adm+sgr,
23441
23442#### Motorola
23443#
23444
23445# Motorola EXORterm 155	from {decvax, ihnp4}!philabs!sbcs!megad!seth via BRL
23446# (Seth H Zirin)
23447ex155|Motorola Exorterm 155,
23448	OTbs, am, bw,
23449	OTkn#5, OTug#1, cols#80, lines#24,
23450	cbt=\E[, clear=\EX, cub1=\ED, cud1=\EB, cuf1=\EC,
23451	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\ET,
23452	el=\EU, home=\E@, ht=\EZ, kbs=^H, kcbt=\E[, kclr=\EX, kcub1=^H,
23453	kcud1=\n, kcuf1=^L, kcuu1=^K, ked=\ET, kel=\EU, khome=\E@,
23454	rmso=\Ec\ED, rmul=\Eg\ED, smso=\Eb\ED, smul=\Ef\ED,
23455
23456#### Omron
23457#
23458# This company is still around in 1995, manufacturing point-of-sale systems.
23459
23460omron|Omron 8025AG,
23461	OTbs, am, da, db,
23462	cols#80, lines#24,
23463	bel=^G, clear=\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC, cuu1=\EA,
23464	cvvis=\EN, dch1=\EP, dl1=\EM, ed=\ER, el=\EK, home=\EH,
23465	il1=\EL, ind=\ES, ri=\ET, rmso=\E4, smso=\Ef,
23466
23467#### Ramtek
23468#
23469# Ramtek was a vendor of high-end graphics terminals around 1979-1983; they
23470# were competition for things like the Tektronix 4025.
23471#
23472
23473# Ramtek 6221 from BRL, probably by Doug Gwyn
23474# The following SET-UP modes are assumed for normal operation:
23475#	UNDERLINE_CURSOR	ANSI_MODE	AUTO_XON/XOFF_ON
23476#	NEWLINE_OFF		80_COLUMNS
23477# Other SET-UP modes may be set for operator convenience or communication
23478# requirements; I recommend
23479#	SMOOTH_SCROLL	AUTO_REPEAT_ON	3_#_SHIFTED	WRAP_AROUND_ON
23480# Hardware tabs are assumed to be every 8 columns; they can be set up by the
23481# "reset", "tset", or "tabs" utilities (use rt6221-w, 160 columns, for this).
23482# Note that the Control-E key is useless on this brain-damaged terminal.  No
23483# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
23484rt6221|Ramtek 6221 80x24,
23485	OTbs, OTpt, msgr, xon,
23486	OTkn#4, cols#80, it#8, lines#24, vt#3,
23487	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l,
23488	clear=\E[1;1H\E[J, cnorm=\E[>5h\E[>9h, cr=\r, cub1=^H,
23489	cud1=^K, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM,
23490	cvvis=\E[>7h\E[>9l, ed=\E[J, el=\E[K, home=\E[1;1H, ht=^I,
23491	hts=\EH, ind=\n, is2=\E)0, kbs=^H, kcub1=\E[D, kcud1=\E[B,
23492	kcuf1=\E[C, kcuu1=\E[A, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
23493	kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[24;1H,
23494	nel=\EE, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E>,
23495	rs1=\E[1w\E[>37m\E[>39m\E[1v\E[20l\E[?3l\E[?6l\E[>5h\E[>6h
23496	    \E[>7h\E[>8l\E[>9h\E[>10l\E[1;24r\E[m\E[q\E(B\017\E)0\E#
23497	    5\E>,
23498	sgr0=\E[m, smacs=^N, smkx=\E=, tbc=\E[3g, use=ansi+csr,
23499	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
23500
23501# [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
23502rt6221-w|Ramtek 6221 160x48,
23503	cols#160, lines#48,
23504	ll=\E[48;1H, use=rt6221,
23505
23506#### RCA
23507#
23508
23509# RCA VP3301 or VP3501
23510rca|RCA vp3301/vp3501,
23511	OTbs,
23512	cols#40, lines#24,
23513	clear=^L, cuf1=^U, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
23514	cuu1=^K, home=^Z, rmso=\E\ES0, smso=\E\ES1,
23515
23516
23517#### Selanar
23518#
23519
23520# Selanar HiREZ-100 from BRL, probably by Doug Gwyn
23521# The following SET-UP modes are assumed for normal operation:
23522#	SET_DEFAULT_TABS	48_LINES		80_COLUMNS
23523#	ONLINE			ANSI			CURSOR_VISIBLE
23524#	VT102_AUTO_WRAP_ON	VT102_NEWLINE_OFF	VT102_MONITOR_MODE_OFF
23525#	LOCAL_ECHO_OFF		US_CHAR_SET		WPS_TERMINAL_DISABLED
23526#	CPU_AUTO_XON/XOFF_ENABLED			PRINT_FULL_SCREEN
23527# For use with graphics software, all graphics modes should be set to factory
23528# default.  Other SET-UP modes may be set for operator convenience or
23529# communication requirements.  No delays are specified; use "stty ixon -ixany"
23530# to enable DC3/DC1 flow control!
23531# I commented out the scrolling capabilities since they are too slow.
23532hirez100|Selanar HiREZ-100,
23533	OTbs, OTpt, mir, msgr, xon,
23534	OTkn#4, cols#80, it#8, lines#48, vt#3,
23535	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H,
23536	cud1=\n, cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, ht=^I, hts=\EH,
23537	is2=\E<\E)0, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
23538	kcuu1=\EOA, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1,
23539	lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[48H, mc0=\E[i,
23540	mc4=\E[4i\E[?4i, mc5=\E[?5i\E[5i, nel=\EE, rc=\E8,
23541	rev=\E[7m, rmacs=^O, rmkx=\E[?1l\E>,
23542	rs1=\030\E2\E<\E[4i\E[?4i\E[12h\E[2;4;20l\E[?0;7h\E[?1;3;6;1
23543	    9l\E[r\E[m\E(B\017\E)0\E>,
23544	sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E[?1h\E=, tbc=\E[3g,
23545	use=ansi+cup, use=ansi+erase, use=ansi+idl,
23546	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
23547
23548hirez100-w|Selanar HiREZ-100 in 132-column mode,
23549	cols#132, use=hirez100,
23550
23551#### Signetics
23552#
23553
23554# From University of Wisconsin
23555vsc|Signetics Vsc Video driver by RMC,
23556	am, msgr,
23557	cols#80, it#8, lines#26,
23558	clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
23559	cuu1=\E[A, el=\E[K, ht=^I, ind=\n, kbs=^H, kcub1=^H, kcud1=\n,
23560	nel=\r\n, rev=^_\s, rmso=^_!, rmul=^_#, sgr0=^_!, smso=^_\s,
23561	smul=^_", use=ansi+cup,
23562
23563#### Soroc
23564#
23565# Alan Frisbie <frisbie@flying-disk.com> writes:
23566#
23567# As you may recall, the Soroc logo consisted of their name,
23568# with the letter "S" superimposed over an odd design.   This
23569# consisted of a circle with a slightly smaller 15 degree (approx.)
23570# wedge with rounded corners inside it.   The color was sort of
23571# a metallic gold/yellow.
23572#
23573# If I had been more of a beer drinker it might have been obvious
23574# to me, but it took a clue from their service department to make
23575# me exclaim, "Of course!"   The circular object was the top of
23576# a beer can (the old removable pop-top style) and "Soroc" was an
23577# anagram for "Coors".
23578#
23579# I can just imagine the founders of the company sitting around
23580# one evening, tossing back a few and trying to decide what to
23581# call their new company and what to use for a logo.
23582#
23583
23584# (soroc120: removed obsolete ":ma=^K^P^R^L^L :" -- esr)
23585soroc120|iq120|soroc|Soroc iq120,
23586	clear=\E*$<2>, ed=\EY, el=\ET, use=adm3a,
23587soroc140|iq140|Soroc iq140,
23588	OTbs, am, mir,
23589	cols#80, lines#24,
23590	bel=^G, cbt=\EI, clear=\E+, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
23591	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\Ew,
23592	dl1=\Er$<.7*>, ed=\Ey, el=\Et, home=^^, il1=\Ee$<1*>, ind=\n,
23593	kbs=^H, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A@\r, kf2=^AA\r,
23594	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
23595	kf8=^AG\r, kf9=^AH\r, khome=^^, ll=^^^K, rmir=\E8, rmso=\E^?,
23596	rmul=\E^A, smir=\E9, smso=\E^?, smul=\E^A,
23597
23598#### Southwest Technical Products
23599#
23600# These guys made an early personal micro called the M6800.
23601# The ct82 was probably its console terminal.
23602#
23603
23604# (swtp: removed obsolete ":bc=^D:" -- esr)
23605swtp|ct82|Southwest Technical Products ct82,
23606	am,
23607	cols#82, lines#20,
23608	bel=^G, clear=^L, cr=\r, cub1=^D, cud1=\n, cuf1=^S,
23609	cup=\013%p2%c%p1%c, cuu1=^A, dch1=^\^H, dl1=^Z, ed=^V, el=^F,
23610	home=^P, ich1=^\^X, il1=^\^Y, ind=^N,
23611	is2=\034\022\036\023\036\004\035\027\011\023\036\035\036
23612	    \017\035\027\022\011,
23613	ll=^C, ri=^O, rmso=^^^F, smso=^^^V,
23614
23615#### Synertek
23616#
23617# Bob Manson <manson@pattyr.acs.ohio-state.edu> writes (28 Apr 1995):
23618#
23619# Synertek used to make ICs, various 6502-based single-board process
23620# control and hobbyist computers, and assorted peripherals including a
23621# series of small inexpensive terminals (I think they were one of the
23622# first to have a "terminal-on-a-keyboard", where the terminal itself
23623# was only slightly larger than the keyboard).
23624#
23625# They apparently had a KTM-1 model, which I've never seen. The KTM-2/40
23626# was a 40x24 terminal that could connect to a standard TV through a
23627# video modulator.  The KTM-2/80 was the 80-column version (the 2/40
23628# could be upgraded to the 2/80 by adding 2 2114 SRAMs and a new ROM).
23629# I have a KTM-2/80 still in working order.  The KTM-2s had fully
23630# socketed parts, used 2 6507s, a 6532 as keyboard scanner, a program
23631# ROM and 2 ROMs as character generators. They were incredibly simple,
23632# and I've never had any problems with mine (witness the fact that mine
23633# was made in 1981 and is still working great... I've blown the video
23634# output transistor a couple of times, but it's a 2N2222 :-)
23635#
23636# The KTM-3 (which is what is listed in the terminfo file) was their
23637# attempt at putting a KTM-2 in a box (and some models came with a
23638# CRT). It wasn't much different from the KTM-2 hardware-wise, but the
23639# control and escape sequences are very different. The KTM-3 was always
23640# real broken, at least according to the folks I've talked to about it.
23641#
23642# The padding in the entry is probably off--these terminals were very
23643# slow (it takes like 100ms for the KTM-2 to clear the screen...) And
23644# anyone with any sanity replaced the ROMs with something that provided
23645# a reasonable subset of VT100 functionality, since the usual ROMs were
23646# obviously very primitive... oh, you could get an upgraded ROM from
23647# Synertek for some incredible amount of money, but what hacker with an
23648# EPROM burner would do that? :)
23649#
23650# Sorry I don't have any contact info; I believe they were located in
23651# Sunnyvale, and I'm fairly sure they are still manufacturing ICs
23652# (they've gone to ASICs and FPGAs), but I doubt they're in the computer
23653# business these days.
23654#
23655
23656# Tested, seems to work fine with vi.
23657synertek|ktm|synertek380|Synertek KTM 3/80 tubeless terminal,
23658	am,
23659	cols#80, lines#24,
23660	clear=^Z, cub1=^H, cuf1=^L,
23661	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
23662
23663#### Tab Office Products
23664#
23665#	TAB Products Co. - Palo Alto, California
23666#	Electronic Office Products,
23667#	1451 California Avenue 94304
23668#
23669# I think they're out of business.
23670#
23671
23672# The tab 132 uses xon/xoff, so no padding needed.
23673# <smkx>/<rmkx> have nothing to do with arrow keys.
23674# <is2> sets 80 col mode, normal video, autowrap on (for <am>).
23675# Seems to be no way to get rid of status line.
23676# The manual for this puppy was dated June 1981.  It claims to be VT52-
23677# compatible but looks more VT100-like -esr
23678#
23679# According to
23680# https://ub.fnwi.uva.nl/computermuseum/tab13215g.html
23681#	This monochrome graphics terminal of TAB Products, California, is a DEC
23682#	VT52/VT100/VT132 compatible alphanumeric terminal (TAB 132/15),
23683#	factory-fitted with additional hardware for Tektronix 4010 emulation.
23684#	Also the terminal understands a selection of Tektronix 4027 commands.
23685tab132|tab|tab132-15|tab 132/15,
23686	da, db,
23687	OTdN@, lm#96,
23688	cup=\E[%i%p1%d;%p2%dH, dch1=\E[P,
23689	is2=\E[?7h\E[?3l\E[?5l, rmir=\E[4l, rmkx@, smir=\E[4h,
23690	smkx@, use=ansi+idl1, use=decid+cpr, use=vt100+4bsd,
23691tab132-w|tab132 in wide mode,
23692	cols#132,
23693	is2=\E[?7h\E[?3h\E[?5l, use=tab132,
23694tab132-rv|tab132 in reverse-video mode,
23695	is2=\E[?7h\E[?3l\E[?5h, use=tab132,
23696tab132-w-rv|tab132 in reverse-video/wide mode,
23697	is2=\E[?7h\E[?3h\E[?5h, use=tab132-w,
23698
23699
23700#### Teleray
23701#
23702#	Research Incorporated
23703#	6425 Flying Cloud Drive
23704#	Eden Prairie, MN 55344
23705#	Vox: (612)-941-3300
23706#
23707# The Teleray terminals were all discontinued in 1992-93.  RI still services
23708# and repairs these beasts, but no longer manufactures them.  The Teleray
23709# people believe that all the types listed below are very rare now (1995).
23710# There was a newer line of Telerays (Model 7, Model 20, Model 30, and
23711# Model 100) that were ANSI-compatible.
23712#
23713# Note two things called "teleray".  Reorder should move the common one
23714# to the front if you have either.  A dumb Teleray with the cursor stuck
23715# on the bottom and no obvious model number is probably a 3700.
23716#
23717
23718t3700|dumb Teleray 3700,
23719	OTbs,
23720	cols#80, lines#24,
23721	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, ind=\n,
23722t3800|Teleray 3800 series,
23723	OTbs,
23724	cols#80, it#8, lines#24,
23725	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
23726	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
23727	home=\EH, ht=^I, ind=\n, ll=\EY7\s,
23728t1061|teleray|Teleray 1061,
23729	OTbs, am, km, xhp, xt,
23730	cols#80, it#8, lines#24, xmc#1,
23731	bel=^G, clear=\014$<1>, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
23732	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
23733	dl1=\EM$<2*>, ed=\EJ$<1>, el=\EK, home=\EH, ht=^I, hts=\EF,
23734	ich1=\EP, il1=\EL$<2*>, ind=\n, ip=$<0.4*>,
23735	is2=\Ee\EU01^Z1\EV\EU02^Z2\EV\EU03^Z3\EV\EU04^Z4\EV\EU05^Z5
23736	    \EV\EU06^Z6\EV\EU07^Z7\EV\EU08^Z8\EV\Ef,
23737	kf1=^Z1, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5, kf6=^Z6, kf7=^Z7,
23738	kf8=^Z8, rmso=\ER@, rmul=\ER@, smso=\s\ERD, smul=\ERH,
23739	tbc=\EG,
23740t1061f|Teleray 1061 with fast PROMs,
23741	dl1=\EM, il1=\EL, ip@, use=t1061,
23742# "Teleray Arpa Special", officially designated as
23743# "Teleray Arpa network model 10" with "Special feature 720".
23744# This is the new (1981) fast microcode updating the older "arpa" proms
23745# (which gave meta-key and programmable-fxn keys).  720 is much, much faster,
23746# converts the keypad to programmable function keys, and has other goodies.
23747# Standout mode is still broken (magic cookie, etc) so is suppressed as no
23748# programs handle such lossage properly.
23749# Note: this is NOT the old termcap's "t1061f with fast proms."
23750# From: J. Lepreau <lepreau@utah-cs> Tue Feb  1 06:39:37 1983, Univ of Utah
23751# (t10: removed overridden ":so@:se@:us@:ue@:" -- esr)
23752t10|Teleray 10 special,
23753	OTbs, km, xhp, xt,
23754	cols#80, it#8, lines#24, xmc#2,
23755	clear=\Ej$<30/>, cub1=^H, cud1=\EB, cuf1=\EC,
23756	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
23757	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
23758	ind=\Eq, pad=\0, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD,
23759	smul=\ERH,
23760# Teleray 16 - map the arrow keys for vi/rogue, shifted to up/down page, and
23761# back/forth words. Put the function keys (f1-f10) where they can be
23762# found, and turn off the other magic keys along the top row, except
23763# for line/local. Do the magic appropriate to make the page shifts work.
23764# Also toggle ^S/^Q for those of us who use Emacs.
23765t16|Teleray 16,
23766	am, da, db, mir, xhp, xt,
23767	cols#80, lines#24,
23768	bel=^G, clear=\E[H\E[2J, cr=\r, cub1=^H,
23769	cup=%i\E[%p1%d;%p2%df, dch1=\E[P, ed=\E[0J, el=\E[0K,
23770	home=\E[H, ht=^I, ind=\n, kf1=^Z1, kf10=^Z0, kf2=^Z2, kf3=^Z3,
23771	kf4=^Z4, kf5=^Z5, kf6=^Z6, kf7=^Z7, kf8=^Z8, kf9=^Z9, ri=\E[T,
23772	rmcup=\E[V\E[24;1f\E[?38h, rmir=\E[4l, sgr0=\E[m,
23773	smcup=\E[U\E[?38l, smir=\E[4h, use=ansi+idl1,
23774	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
23775
23776#### Texas Instruments (ti)
23777#
23778
23779# The Silent 700 was so called because it was built around a quiet thermal
23780# printer.  It was portable, equipped with an acoustic coupler, and pretty
23781# neat for its day.
23782ti700|ti733|ti735|ti745|ti800|Texas Instruments Silent 700/733/735/745 or OMNI 800,
23783	OTbs, hc, os,
23784	cols#80,
23785	bel=^G, cr=\r$<162>, cub1=^H, cud1=\n, ind=\n,
23786
23787# Terminal entries for the Texas Instruments 703/707
23788# hardcopy terminals.
23789#
23790# http://www.bitsavers.org/pdf/ti/terminal/silent_700/
23791# Refer to:
23792#	Model 707 Data Terminal User's Manual
23793#	http://www.bitsavers.org/pdf/ti/terminal/silent_700/2310451-0001_Silent_700_Model_707_Users_Manual_Nov1983.pdf
23794#
23795# pages 2-7 and 2-8 say that the model 707 prints 10.2 characters per inch
23796# (cpi) (80 characters per line) by default, and can be switched to/from 17.0
23797# cpi using an escape sequence.  There is no 80/132-column capability in
23798# terminfo (only the more general cpi which allows any value).
23799ti703|ti707|Texas Instruments Silent 703/707,
23800	am, xenl,
23801	it#8,
23802	cuf1=\s, is2=\EPC\\, nel=\r\n, use=ti700,
23803ti703-w|ti707-w|Texas Instruments Silent 703/707 (132 column),
23804	cols#132,
23805	is2=\EPD\\, use=ti703,
23806
23807#
23808# Texas Instruments 916 VDT 7 bit control mode
23809#
23810ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 VT220 mode 7 bit CTRL,
23811	da, db, in,
23812	cbt=\E[Z, clear=\E[H\E[2J$<6>, dch=\E[%p1%dP$<250>,
23813	ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K,
23814	enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>, hts=\E[0W,
23815	ich=\E[%p1%d@$<250>, il=\E[%p1%dL$<36>, ip=$<10>,
23816	is2=\E[1;24r\E[24;1H, kcmd=\E[29~, kdch1=\E[P, kent=\n,
23817	kf1=\E[17~, kf10=\E[28~, kf11=\E[29~, kf12=\E[31~,
23818	kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~,
23819	kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[H, kich1=\E[@,
23820	knp=\E[S, kpp=\E[T, kprt=^X, prot=\E&, rmacs=\017$<2>,
23821	rs2=\E[!p, sgr@, smacs=\016$<2>, use=ansi+rca, use=vt220,
23822#
23823# Texas Instruments 916 VDT 8 bit control mode
23824#
23825ti916-8|ti916-220-8|Texas Instruments 916 VDT 8859/1 8 VT220 mode bit CTRL,
23826	kcmd=\23329~, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
23827	kcuu1=\233A, kdch1=\233P, kf1=\23317~, kf10=\23328~,
23828	kf11=\23329~, kf12=\23331~, kf2=\23318~, kf3=\23319~,
23829	kf4=\23320~, kf5=\23321~, kf6=\23323~, kf7=\23324~,
23830	kf8=\23325~, kf9=\23326~, khome=\233H, kich1=\233@,
23831	knp=\233S, kpp=\233T, use=ti916,
23832#
23833# Texas Instruments 916 VDT 8859/1 7 bit control 132 column mode
23834#
23835ti916-132|Texas Instruments 916 VDT VT220 132 column,
23836	cols#132, use=ti916,
23837#
23838# Texas Instruments 916 VDT 8859/1 8 bit control 132 column mode
23839#
23840ti916-8-132|Texas Instruments 916 VDT 8-bit VT220 132 column,
23841	cols#132, use=ti916-8,
23842ti924|Texas Instruments 924 VDT 8859/1 7 bit CTRL,
23843	OTbs, am, xon,
23844	cols#80, it#8, lines#24,
23845	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H, cr=\r,
23846	csr=%i\E[%p1%d;%p2%dr, cup=%i\E[%p1%d;%p2%dH,
23847	cvvis=\E[?31h, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
23848	ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
23849	kcuu1=\E[A, kdch1=\E[P, kf5=\E[16~, kf6=\E[17~, kf7=\E[18~,
23850	kf8=\E[19~, kf9=\E[20~, kich1=\E[@, rc=\E8, rev=\E[7m,
23851	ri=\EM, sc=\E7, sgr0=\E[m, tbc=\E[3g, use=ansi+idl1,
23852	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
23853	use=vt100+pf1-pf4, use=vt220+cvis,
23854ti924-8|Texas Instruments 924 VDT 8859/1 8 bit CTRL,
23855	am, xon,
23856	cols#80, it#8, lines#24,
23857	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H, cr=\r,
23858	csr=%i\E[%p1%d;%p2%dr, cup=%i\E[%p1%d;%p2%dH,
23859	cvvis=\E[?31h, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
23860	ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
23861	kcuu1=\E[A, kdch1=\233P, kf1=\217P, kf2=\217Q, kf3=\217R,
23862	kf4=\217S, kf5=\23316~, kf6=\23317~, kf7=\23318~,
23863	kf8=\23319~, kf9=\23320~, kich1=\233@, rc=\E8, rev=\E[7m,
23864	ri=\EM, sc=\E7, sgr0=\E[m, tbc=\E[3g, use=ansi+idl1,
23865	use=ansi+local1, use=ansi+sgrso, use=ansi+sgrul,
23866	use=vt220+cvis,
23867ti924w|Texas Instruments 924 VDT 7 bit - 132 column mode,
23868	cols#132, use=ti924,
23869ti924-8w|Texas Instruments 924 VDT 8 bit - 132 column mode,
23870	cols#132, use=ti924-8,
23871ti931|Texas Instruments 931 VDT,
23872	OTbs, am, xon,
23873	cols#80, lines#24,
23874	bel=^G, blink=\E4P, clear=\EL, cnorm=\E4@, cr=\r, cub1=\ED,
23875	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
23876	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
23877	ich1=\ER\EP\EM, il1=\EN, ind=\Ea, invis=\E4H,
23878	is2=\EGB\E(@B@@\E), kdch1=\EQ, kdl1=\EO, kf1=\Ei1,
23879	kf2=\Ei2, kf3=\Ei3, kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7,
23880	kf8=\Ei8, kf9=\Ei9, kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb,
23881	rmso=\E4@, rmul=\E4@, sgr0=\E4@, smso=\E4A, smul=\E4D,
23882	use=vt52+arrows,
23883ti926|Texas Instruments 926 VDT 8859/1 7 bit CTRL,
23884	csr@, ind=\E[1S, ri=\E[1T, use=ti924,
23885# (ti926-8: I corrected this from the broken SCO entry -- esr)
23886ti926-8|Texas Instruments 926 VDT 8859/1 8 bit CTRL,
23887	csr@, ind=\2331S, ri=\2331T, use=ti924-8,
23888ti_ansi|basic entry for ti928,
23889	am, bce, eo, xenl, xon,
23890	colors#8, cols#80, it#8, lines#25, pairs#64,
23891	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[2J\E[H,
23892	cr=\r, csr=\E[%i%p1%d;%p2%dr, cub1=^H, dch1=\E[P, ed=\E[J,
23893	el=\E[K, ht=^I, ich1=\E[@, ind=\E[S, kend=\E[F, kf0=\E[V,
23894	kf1=\E[M, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R,
23895	kf7=\E[S, kf8=\E[T, kf9=\E[U, knp=\E[G, kpp=\E[I,
23896	op=\E[37;40m, ri=\E[T, setab=\E[4%p1%dm,
23897	setaf=\E[3%p1%dm, sgr0=\E[m, use=ansi+arrows,
23898	use=ansi+cup, use=ansi+idl1, use=ansi+local1,
23899	use=ansi+sgrso, use=ansi+sgrul,
23900#
23901#       928 VDT 7 bit control mode
23902#
23903ti928|Texas Instruments 928 VDT 8859/1 7 bit CTRL,
23904	kdch1=\E[P, kend=\E_1\E\\, kent=\E[8~, kf1=\E[17~,
23905	kf10=\E[28~, kf11=\E[29~, kf12=\E[31~, kf13=\E[32~,
23906	kf15=\E[34~, kf2=\E[18~, kf3=\E[19~, kf4=\E[20~,
23907	kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
23908	kich1=\E[@, knp=\E[S, kpp=\E[T, kprt=\E[35~, use=ti_ansi,
23909#
23910#       928 VDT 8 bit control mode
23911#
23912ti928-8|Texas Instruments 928 VDT 8859/1 8 bit CTRL,
23913	kdch1=\233P, kend=\2371\234, kent=\2338~, kf1=\23317~,
23914	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13=\23332~,
23915	kf15=\23334~, kf2=\23318~, kf3=\23319~, kf4=\23320~,
23916	kf5=\23321~, kf6=\23323~, kf7=\23324~, kf8=\23325~,
23917	kf9=\23326~, khome=\233H, kich1=\233@, knp=\233S,
23918	kpp=\233T, kprt=\23335~, use=ti_ansi,
23919
23920#### Zentec (zen)
23921#
23922
23923# (zen30: removed obsolete :ma=^L ^R^L^K^P:.  This entry originally
23924# had just <smso>=\EG6 which I think means standout was supposed to be
23925# dim-reverse using ADM12-style attributes. ADM12 <smul>/<rmul> and
23926# <invis> might work-- esr)
23927zen30|z30|Zentec 30,
23928	OTbs, am, mir, ul,
23929	cols#80, lines#24,
23930	bel=^G, clear=\E*, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
23931	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
23932	dim=\EG2, dl1=\ER$<1.5*>, ed=\EY, el=\ET$<1.0*>, home=^^,
23933	il1=\EE$<1.5*>, ind=\n, rmir=\Er, rmul@, smir=\Eq, smso=\EG6,
23934	smul@, use=adm+sgr,
23935# (zen50: this had extension capabilities
23936#	:BS=^U:CL=^V:CR=^B:
23937# UK/DK/RK/LK/HM were someone's aliases for ku/kd/kl/kr/kh,
23938# which were also in the original entry -- esr)
23939# (zen50: removed obsolete ":ma=^Hh^Ll^Jj^Kk:" -- esr)
23940zen50|z50|Zentec Zephyr,
23941	OTbs, am,
23942	cols#80, lines#24, xmc#1,
23943	clear=\E+, cub1=^H, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
23944	cuu1=^K, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ich1=\EQ, il1=\EE,
23945	invis@, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K, khome=^^,
23946	rmul@, smul@, use=adm+sgr,
23947
23948# CCI 4574 (Office Power) from Will Martin <wmartin@BRL.ARPA> via BRL
23949cci|cci1|z8001|zen8001|CCI Custom Zentec 8001,
23950	OTbs, am, bw,
23951	cols#80, lines#24,
23952	blink=\EM", clear=\EH\EJ, cnorm=\EP,
23953	csr=\ER%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\n,
23954	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
23955	cvvis=\EF\EQ\EM \ER 7, dim=\EM!, ed=\EJ, el=\EK, home=\EH,
23956	invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, khome=\EH,
23957	mc4=^T, mc5=^R, rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s,
23958	sgr0=\EM\s, smso=\EM$, smul=\EM0, use=vt52+arrows,
23959
23960######## OBSOLETE UNIX CONSOLES
23961#
23962
23963#### Apollo consoles
23964#
23965# Apollo got bought by Hewlett-Packard.  The Apollo workstations are
23966# labeled HP700s now.
23967#
23968
23969# From: Gary Darland <goodmanc@garnet.berkeley.edu>
23970apollo|Apollo console,
23971	OTbs, am, mir,
23972	cols#88, lines#53,
23973	clear=^L, cub1=^H, cud1=\EB, cuf1=\EC,
23974	cup=\EM%p1%{32}%+%c%p2%d), cuu1=\EA, dch1=\EP, dl1=\EL,
23975	ed=\EJ, el=\EK, hpa=\EN%p1%d, il1=\EI, ind=\EE, ri=\ED,
23976	rmcup=\EX, rmir=\ER, rmso=\ET, rmul=\EV, smcup=\EW, smir=\EQ,
23977	smso=\ES, smul=\EU, vpa=\EO+\s,
23978
23979# We don't know whether or not the apollo guys replicated DEC's firmware bug
23980# in the VT132 that reversed <rmir>/<smir>.  To be on the safe side, disable
23981# both these capabilities.
23982apollo+vt132|Apollo console emulating VT132,
23983	rmir@, smir@, use=vt132,
23984
23985apollo_15P|Apollo 15 inch display,
23986	use=apollo+vt132,
23987apollo_19L|Apollo 19 inch display,
23988	use=apollo+vt132,
23989apollo_color|Apollo color display,
23990	use=apollo+vt132,
23991
23992#### AT&T consoles
23993
23994# This actually describes the generic SVr4 display driver for Intel boxes.
23995# The <dim=\E[2m> isn't documented and therefore may not be reliable.
23996# From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
23997att6386|at386|386at|AT&T WGS 6386 console,
23998	am, bw, eo, xon,
23999	cols#80, lines#25,
24000	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
24001	bel=^G, civis=\E[=C, clear=\E[2J\E[H, cnorm=\E[=1C, cr=\r,
24002	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
24003	dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, ich=\E[%p1%d@,
24004	ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
24005	is2=\E[0;10;39m, kcbt=^], kdch1=\E[P, kend=\E[Y, kf10=\EOY,
24006	kf11=\EOZ, kf12=\EOA, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
24007	kf9=\EOX, kich1=\E[@, knp=\E[U, kpp=\E[V, krmir=\E0,
24008	nel=\r\E[S, rc=\E8, ri=\E[T, rmacs=\E[10m, sc=\E7,
24009	sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;
24010	    2%;%?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m,
24011	sgr0=\E[0;10m, smacs=\E[12m, use=ansi+arrows,
24012	use=ansi+cup, use=ansi+inittabs, use=ansi+local,
24013	use=ansi+rca2, use=ansi+sgrbold, use=ecma+index,
24014	use=klone+color, use=vt100+pf1-pf4,
24015
24016# (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
24017pc6300plus|AT&T 6300 plus,
24018	OTbs, am, xon,
24019	cols#80, lines#24,
24020	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C,
24021	clear=\E[2J\E[H, cnorm=\E[=1C, cr=\r, cub1=^H,
24022	cup=\E[%i%p1%2d;%p2%2dH, dch1=\E[1P, dim=\E[2m,
24023	dl1=\E[1M, ed=\E[0J, el=\E[0K, home=\E[H, hts=\EH,
24024	ich1=\E[1@, il1=\E[1L, ind=\n, invis=\E[9m, kbs=^H,
24025	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOc,
24026	kf10=\EOu, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh,
24027	kf7=\EOi, kf8=\EOj, kf9=\EOk, nel=\r\n, rev=\E[7m, sgr0=\E[m,
24028	tbc=\E[3g, use=ansi+local1, use=ansi+sgrso,
24029	use=ansi+sgrul,
24030
24031# From: Benjamin C. W. Sittler <bsittler@nmt.edu>
24032#
24033# I have a UNIX PC which I use as a terminal attached to my Linux PC.
24034# Unfortunately, the UNIX PC terminfo entry that comes with ncurses
24035# is broken. All the special key sequences are broken, making it unusable
24036# with Emacs. The problem stems from the following:
24037#
24038# The UNIX PC has a plethora of keys (103 of them, and there's no numeric
24039# keypad!), loadable fonts, and strange highlighting modes ("dithered"
24040# half-intensity, "smeared" bold, and real strike-out, for example.) It also
24041# uses resizable terminal windows, but the bundled terminal program always
24042# uses an 80x24 window (and doesn't support seem to support a 132-column
24043# mode.)
24044#
24045# HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
24046# library which was a superset of SVr3.5 curses (called tam, for "terminal
24047# access method".) tam includes support for real, overlapping windows,
24048# onscreen function key labels, and bitmap graphics. But since the primary
24049# user interface on the UNIX PC was a GUI program (ua, for "user
24050# assistant",) and remote administration was considered important for the
24051# machine, tam also supported VT100-compatible terminals attached to the
24052# serial port or used across the StarLan network. To simulate the extra keys
24053# not present on a VT100, users could press ESC and a two-letter sequence,
24054# such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
24055# however, were not the same as those sent by the actual Undo key. The
24056# actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
24057# (If you're interested in adding some of the tam calls to ncurses, btw, I
24058# have the full documentation and several programs which use tam. It also
24059# used an extended terminfo format to describe key sequences, special
24060# highlighting modes, etc.)
24061#
24062# KEYS: This means that ncurses would quite painful on the UNIX PC, since
24063# there are two sequences for every key-modifier combination (local keyboard
24064# sequence and remote "VT100" sequence.) But I doubt many people are trying
24065# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
24066# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume)
24067# seem to have been built from the manual describing the VT100 sequences.
24068# This means it doesn't work for a real live UNIX PC.
24069#
24070# FONTS: The UNIX PC also has a strange interpretation of "alternate
24071# character set". Rather than the VT100 graphics you might expect, it allows
24072# up to 8 custom fonts to be loaded at any given time. This means that
24073# programs expecting VT100 graphics will usually be disappointed. For this
24074# reason I have disabled the smacs/rmacs sequences, but they could easily be
24075# re-enabled. Here are the relevant control sequences (from the ESCAPE(7)
24076# man page), should you wish to do so:
24077#
24078# SGR10 - Select font 0 - ESC [ 10 m or SO
24079# SGR11 - Select font 1 - ESC [ 11 m or SI
24080# SGR12 - Select font 2 - ESC [ 12 m
24081# ... (etc.)
24082# SGR17 - Select font 7 - ESC [ 17 m
24083#
24084# Graphics for line drawing are not reliably found at *any* character
24085# location because the UNIX PC has dynamically reloadable fonts. I use font
24086# 0 for regular text and font 1 for italics, but this is by no means
24087# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
24088#
24089# MISC: The cursor visible/cursor invisible sequences were swapped in the
24090# distributed terminfo.
24091#
24092# To ameliorate these problems (and fix a few highlighting bugs) I rewrote
24093# the UNIX PC terminfo entry. The modified version works great with Lynx,
24094# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
24095# attached by serial cable. In Emacs, even the Undo key works, and many
24096# applications can now use the F1-F8 keys.
24097#
24098# esr's notes:
24099#	Terminfo entry for the AT&T Unix PC 7300
24100#	from escape(7) in Unix PC 7300 Manual.
24101#	Somewhat similar to a vt100-am (but different enough
24102#	to redo this from scratch.)
24103#
24104#	/***************************************************************
24105#	*
24106#	*           FONT LOADING PROGRAM FOR THE UNIX PC
24107#	*
24108#	*     This routine loads a font defined in the file ALTFONT
24109#	*     into font memory slot #1.  Once the font has been loaded,
24110#	*     it can be used as an alternative character set.
24111#	*
24112#	*     The call to ioctl with the argument WIOCLFONT is the key
24113#	*     to this routine.  For more information, see window(7) in
24114#	*     the PC 7300 documentation.
24115#	***************************************************************/
24116#	#include <string.h>		/* needed for strcpy call */
24117#	#include <sys/window.h>         /* needed for ioctl call */
24118#	#define FNSIZE	60		/* font name size */
24119#	#define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
24120#	/*
24121#	*     The file /usr/lib/wfont/special.8.ft comes with the
24122#	*     standard PC software.  It defines a graphics character set
24123#	*     similar to that of the Teletype 5425 terminal.  To view
24124#	*     this or other fonts in /usr/lib/wfont, use the command
24125#	*     cfont <filename>.  For further information on fonts see
24126#	*     cfont(1) in the PC 7300 documentation.
24127#	*/
24128#
24129#	struct altfdata		/* structure for alt font data */
24130#	{
24131#	short	altf_slot;		/* memory slot number */
24132#	char	altf_name[FNSIZE];	/* font name (file name) */
24133#	};
24134#	ldfont()
24135#	{
24136#		int wd;		/* window in which altfont will be */
24137#		struct altfdata altf;
24138#		altf.altf_slot=1;
24139#		strcpy(altf.altf_name,ALTFONT);
24140#		for (wd =1; wd < 12; wd++) {
24141#		     ioctl(wd, WIOCLFONT,&altf);
24142#	        }
24143#	}
24144#
24145# (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
24146# they're confirmed by the man page for the System V display---esr)
24147#
24148att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300,
24149	am, xon,
24150	cols#80, it#8, lines#24,
24151	bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C,
24152	clear=\E[2J\E[H, cnorm=\E[=0C, cr=\r, cub1=^H, dch1=\E[P,
24153	dim=\E[2m, ed=\E[0J, el=\E[0K, ich1=\E[@, ind=\n,
24154	invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB, kCAN=\EOW,
24155	kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE, kEND=\ENN,
24156	kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ,
24157	kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR, kPRV=\ENG,
24158	kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO, kUND=\EOS,
24159	kbeg=\ENb, kcan=\EOw, kcbt=\E[Z, kclo=\EOV, kclr=\E[J,
24160	kcmd=\EOu, kcpy=\ENd, kcrt=\EOn, kdch1=\ENf, ked=\E[J,
24161	kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe,
24162	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx,
24163	khlp=\EOm, kich1=\ENj, kind=\E[B, kmov=\ENc, kmrk=\ENi,
24164	knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V,
24165	kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, krfr=\ENa,
24166	kri=\E[A, krpl=\EOy, krst=\EOB, ksav=\EOo, kslt=\ENI,
24167	kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM, sgr0=\E[0;10m,
24168	use=ansi+arrows, use=ansi+cup, use=ansi+idl,
24169	use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
24170
24171#### Convergent Technology
24172#
24173# Burroughs bought Convergent shortly before it merged with Univac.
24174# CTOS is (I believe) dead.  Probably the aws is too (this entry dates
24175# from 1991 or earlier).
24176#
24177
24178# Convergent AWS workstation from Gould/SEL UTX/32 via BRL
24179# (aws: removed unknown :dn=^K: -- esr)
24180aws|Convergent Technologies AWS workstation under UTX and Xenix,
24181	am,
24182	OTug#0, cols#80, lines#28, xmc#0,
24183	OTbc=^H, OTma=\016h\013j\001k\022l\002m, OTnl=\n, acsc=,
24184	clear=^L, cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A,
24185	dch1=\EDC, dl1=\EDL, ed=\EEF, el=\EEL, hpa=\EH%p1%c,
24186	ich1=\EIC, il1=\EIL, ind=\ESU, kbs=^H, kcub1=^N, kcud1=^K,
24187	kcuf1=^R, kcuu1=^A, ri=\ESD, rmacs=\EAAF, rmso=\EARF,
24188	rmul=\EAUF, smacs=\EAAN, smso=\EARN, smul=\EAUN,
24189	vpa=\EV%p1%c,
24190awsc|Convergent Technologies AWS workstation under CTOS,
24191	am,
24192	OTug#0, cols#80, lines#24, xmc#0,
24193	OTbc=^N, OTma=\016h\013j\001k\022l\002m, acsc=, clear=^L,
24194	cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A, ed=\EEF,
24195	el=\EEL, kbs=^H, kcub1=^N, kcud1=^K, kcuf1=^R, kcuu1=^A,
24196	rmacs=\EAAF, rmso=\EAA, rmul=\EAA, smacs=\EAAN, smso=\EAE,
24197	smul=\EAC,
24198
24199#### DEC consoles
24200#
24201
24202# The MicroVax console.  Tim Theisen <tim@cs.wisc.edu> writes:
24203# The digital uVax II's had a graphic display called a qdss.  It was
24204# supposed to be a high performance graphic accelerator, but it was
24205# late to market and barely appeared before faster dumb frame buffers
24206# appeared.  I have only used this display while running X11.  However,
24207# during bootup, it was in text mode, and probably had a terminal emulator
24208# within it.  And that is what your termcap entry is for.  In graphics
24209# mode the screen size is 1024x864 pixels.
24210qdss|qdcons|qdss glass tty,
24211	OTbs, am,
24212	cols#128, lines#57,
24213	clear=\032$<1/>, cub1=^H, cud1=\n, cuf1=^L,
24214	cup=\E=%p1%c%p2%c, cuu1=^K,
24215
24216#### Fortune Systems consoles
24217#
24218# Fortune made a line of 68K-based UNIX boxes that were pretty nifty
24219# in their day; I (esr) used one myself for a year or so around 1984.
24220# They had no graphics, though, and couldn't compete against Suns and
24221# the like.  R.I.P.
24222#
24223
24224# From: Robert Nathanson <c160-3bp@Coral> via tut   Wed Oct 5, 1983
24225# (This had extension capabilities
24226#	:rv=\EH:re=\EI:rg=0:GG=0:\
24227#	:CO=\E\\:WL=^Aa\r:WR=^Ab\r:CL=^Ac\r:CR=^Ad\r:DL=^Ae\r:RF=^Af\r:\
24228#	:RC=^Ag\r:CW=^Ah\r:NU=^Aj\r:EN=^Ak\r:HM=^Al:PL=^Am\r:\
24229#	:PU=^An\r:PD=^Ao\r:PR=^Ap\r:HP=^A@\r:RT=^Aq\r:TB=\r:CN=\177:MP=\E+F:
24230# It had both ":bs:" and ":bs=^H:"; I removed the latter.  Also, it had
24231# ":sg=0:" and ":ug=0:"; evidently the composer was trying (unnecessarily)
24232# to force both magic cookie glitches off.  Once upon a time, I
24233# used a Fortune myself, so I know the capabilities of the form ^A[a-z]\r are
24234# function keys; thus the "Al" value for HM was certainly an error.  I renamed
24235# EN/PD/PU/CO/CF/RT according to the XENIX/TC mappings, but not HM/DL/RF/RC.
24236# I think :rv: and :re: are start/end reverse video and :rg: is a nonexistent
24237# "reverse-video-glitch" capability; I have put :rv: and :re: in with standard
24238# names below.  I've removed obsolete ":nl=5^J:" as there is a :do: -- esr)
24239fos|fortune|Fortune system,
24240	OTbs, am, bw,
24241	cols#80, lines#25,
24242	acsc=j*k(l m"q&v%w#x-, bel=^G, blink=\EN, civis=\E],
24243	clear=\014$<20>, cnorm=\E\\, cr=\r, cub1=^H, cud1=\n$<3>,
24244	cup=\034C%p1%{32}%+%c%p2%{32}%+%c, cuu1=\013$<3>,
24245	cvvis=\E:, dch1=\034W$<5>, dl1=\034R$<15>, ed=\034Y$<3*>,
24246	el=^\Z, home=\036$<10>, ht=^Z, ich1=\034Q$<5>,
24247	il1=\034E$<15>, ind=\n, is2=^_.., kbs=^H, kcub1=^Aw\r,
24248	kcud1=^Ay\r, kcuf1=^Az\r, kcuu1=^Ax\r, kend=^Ak\r,
24249	kent=^Aq, kf1=^Aa\r, kf2=^Ab\r, kf3=^Ac\r, kf4=^Ad\r,
24250	kf5=^Ae\r, kf6=^Af\r, kf7=^Ag\r, kf8=^Ah\r, khome=^A?\r,
24251	knp=^Ao\r, kpp=^An\r, nel=\r\n, rev=\EH, rmacs=^O, rmso=^\I`,
24252	rmul=^\IP, sgr0=\EI, smacs=\Eo, smso=^\H`, smul=^\HP,
24253
24254#### Masscomp consoles
24255#
24256# Masscomp has gone out of business.  Their product line was purchased by a
24257# company in Georgia (US) called "XS International", parts and service may
24258# still be available through them.
24259#
24260
24261# (masscomp: ":MT:" changed to ":km:";  -- esr)
24262masscomp|masscomp workstation console,
24263	OTbs, km, mir,
24264	cols#80, it#8, lines#24,
24265	clear=\E[2J, cub1=^H, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P,
24266	ed=\E[J, el=\E[K, ht=^I, is2=\EGc\EGb\EGw, kbs=^H,
24267	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmir=\E[4l,
24268	rmul=\EGau, smir=\E[4h, smul=\EGu, use=ansi+idl1,
24269	use=ansi+local1, use=ansi+sgrso,
24270masscomp1|masscomp large screen version 1,
24271	cols#104, lines#36, use=masscomp,
24272masscomp2|masscomp large screen version 2,
24273	cols#64, lines#21, use=masscomp,
24274
24275#### OSF Unix
24276#
24277
24278# OSF/1 1.1 Snapshot 2
24279pmcons|pmconsole|PMAX console,
24280	am,
24281	cols#128, lines#57,
24282	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuu1=^K, ht=^I,
24283	ind=\n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
24284	use=vt100+pf1-pf4,
24285
24286#### Other consoles
24287# The following is a version of the ibm-pc entry distributed with PC/IX,
24288# (Interactive Systems' System 3 for the Big Blue), modified by Richard
24289# McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
24290# (the former is untrue, and the latter failed under UCB/man); standout and
24291# underline modes have been added.  Note: this entry describes the "native"
24292# capabilities of the PC monochrome display, without ANY emulation; most
24293# communications packages (but NOT PC/IX connect) do some kind of emulation.
24294pcix|PC/IX console,
24295	am, bw, eo,
24296	cols#80, lines#24,
24297	clear=\Ec, cub1=^H, cup=\E[%i%p1%2d;%p2%2dH, ed=\E[J,
24298	el=\E[K, home=\E[H, sgr0=\E[m, use=ansi+local1,
24299	use=ansi+sgrso, use=ansi+sgrul,
24300
24301# (ibmpcx: this entry used to be known as ibmx.
24302# It formerly included the following extension capabilities:
24303#	:GC=b:GL=v:GR=t:RT=^J:\
24304#	:GH=\E[196g:GV=\E[179g:\
24305#	:GU=\E[193g:GD=\E[194g:\
24306#	:G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
24307#	:CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
24308#	:WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
24309# I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
24310# ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
24311# what was there before. -- esr)
24312ibmpcx|xenix|ibmx|IBM PC xenix console display,
24313	OTbs, am, msgr,
24314	cols#80, lines#25,
24315	clear=^L, cub1=^H, cup=\E[%p1%d;%p2%dH, dch1=\E[P, ed=\E[J,
24316	el=\E[K, home=\E[H, ich1=\E[@, kend=\E[d, kf1=\E[K, kf2=\E[L,
24317	kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e, kpp=\E[Z,
24318	use=ansi+arrows, use=ansi+idl1, use=ansi+local1,
24319	use=klone+acs, use=klone+sgr8,
24320
24321######## OTHER OBSOLETE TYPES
24322#
24323# These terminals are *long* dead -- these entries are retained for
24324# historical interest only.
24325#
24326
24327#### Obsolete non-ANSI software emulations
24328#
24329
24330# CTRM terminal emulator
24331# 1. underlining is not allowed with colors: first, is is simulated by
24332# black on white, second, it disables background color manipulations.
24333# 2. BLINKING, REVERSE and BOLD are allowed with colors,
24334# so we have to save their status in the static registers A, B and H
24335# respectively, to be able to restore them when color changes
24336# (because any color change turns off ALL attributes)
24337# 3. <bold> and <rev> sequences alternate modes,
24338# rather than simply  entering them.  Thus we have to check the
24339# static register B and H to determine the status, before sending the
24340# escape sequence.
24341# 4. <sgr0> now must set the status of all 3 register (A,B,H) to zero
24342# and then reset colors
24343# 5. implementation of the protect mode would badly penalize the performance.
24344# we would have to use \E&bn sequence to turn off colors (as well as all
24345# other attributes), and keep the status of protect mode in yet another
24346# static variable.  If someone really needs this mode, they would have to
24347# create another terminfo entry.
24348# 6. original color-pair is white on black.
24349# store the information about colors into static registers
24350# 7. set foreground color.  it performs the following steps.
24351#   1) turn off all attributes
24352#   2) turn on the background and video attributes that have been turned
24353#      on before (this information is stored in static registers X,Y,Z,A,B,H,D).
24354#   3) turn on foreground attributes
24355#   4) store information about foreground into U,V,W static registers
24356# 8. turn on background: similar to turn on foreground above
24357ctrm|C terminal emulator,
24358	am, bce, xon,
24359	colors#8, cols#80, lh#0, lines#24, lm#0, lw#0, ncv#2, nlab#0,
24360	pairs#63, pb#19200, vt#6,
24361	bel=^G, blink=\E&dA%{1}%PA,
24362	bold=%?%gH%{0}%=%t\E&dH%{1}%PH%;, cbt=\Ei,
24363	clear=\EH\EJ, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
24364	cup=\E&a%p2%dc%p1%dY, cuu1=\EA, dch1=\EP$<2>, dl1=\EM,
24365	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=\011$<2>, hts=\E1,
24366	il1=\EL, ind=\n, ip=$<2>, is2=\E&jA\r, kbs=^H, kcub1=\Eu\r,
24367	kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, khome=\Ep\r,
24368	op=\E&bn\E&bB\E&bG\E&bR%{0}%PX%{0}%PY%{0}%PZ%{1}%PW%{1}%PV
24369	   %{1}%PU,
24370	rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, rmir=\ER, rmkx=\E&jA,
24371	setb=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gU%t
24372	     \E&bR%;%?%gV%t\E&bG%;%?%gW%t\E&bB%;%?%p1%{1}%&%t\E&bb
24373	     %{1}%e%{0}%;%PZ%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY%?%p1
24374	     %{4}%&%t\E&br%{1}%e%{0}%;%PX,
24375	setf=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gX%t
24376	     \E&br%;%?%gY%t\E&bg%;%?%gZ%t\E&bb%;%?%p1%{1}%&%t\E&bB
24377	     %{1}%e%{0}%;%PW%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV%?%p1
24378	     %{4}%&%t\E&bR%{1}%e%{0}%;%PU,
24379	sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH%?%p1%p3%p5%|%|%t\E&dB
24380	    %{1}%PB%;%?%p4%t\E&dA%{1}%PA%;%?%p6%t\E&dH%{1}%PH%;%?%p2
24381	    %t\E&dD%;,
24382	sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, smir=\EQ, smkx=\E&jB,
24383	smso=\E&dD, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
24384	use=hp+pfk+cr,
24385
24386# gs6300 - can't use blue foreground, it clashes with underline;
24387# it's simulated with cyan
24388# Bug: The <op> capability probably resets attributes.
24389# (gs6300: commented out <rmln> (no <smln>) --esr)
24390gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
24391	am, bce, msgr, xon,
24392	colors#8, cols#80, it#8, lines#24, pairs#63,
24393	acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyz
24394	     z{{||}}~~,
24395	bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
24396	dch=\E[%p1%dP, dch1=\E[P, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
24397	ind=\n, is2=\E[m, kcbt=^R^I, kf1=\E[0s, kf2=\E[24s,
24398	kf3=\E[1s, kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s,
24399	kf8=\E[21s, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m,
24400	ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm,
24401	setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m,
24402	sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m,
24403	use=ansi+arrows, use=ansi+cup, use=ansi+erase,
24404	use=ansi+idl, use=ansi+local,
24405
24406# From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
24407# MS-Kermit with Heath-19 emulation mode enabled
24408# (h19k: changed ":pt@:" to ":it@"
24409h19k|h19kermit|Heathkit emulation provided by Kermit (no auto margin),
24410	am@, da, db, xt,
24411	it@,
24412	ht@, use=h19-u,
24413
24414# Apple Macintosh with VersaTerm, a terminal emulator distributed by Synergy
24415# Software (formerly Peripherals Computers & Supplies, Inc) of
24416# 2457 Perkiomen Ave., Reading, PA 19606, 1-800-876-8376.  They can
24417# also be reached at support@synergy.com.
24418versaterm|VersaTerm VT100 emulator for the Macintosh,
24419	am, xenl,
24420	cols#80, it#8, lines#24,
24421	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
24422	clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
24423	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
24424	cuu1=\E[A$<2/>, dch1=\E[1P$<7/>, dl1=\E[1M$<9/>,
24425	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
24426	ich1=\E[1@$<7/>, il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H,
24427	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
24428	nel=\r\n, rev=\E[7m$<2/>, rf=/usr/share/tabset/vt100,
24429	ri=\EM$<5/>, rmkx=\E>\E[?1l, rmso=\E[m$<2/>,
24430	rmul=\E[m$<2/>, rs1=\E>, sgr0=\E[m$<2/>, smkx=\E=\E[?1h,
24431	smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+csr,
24432	use=vt100+pf1-pf4,
24433
24434# From: Rick Thomas <ihnp4!btlunix!rbt>
24435# (xtalk: I added <rmam>/<smam> based on the init string.
24436xtalk|IBM PC with xtalk communication program (versions up to 3.4),
24437	am, mir, msgr, xon,
24438	cols#80, it#8, lines#24, vt#3, xmc#1,
24439	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
24440	bel=^G, clear=\E[H\E[J$<50>, cr=\r, cub1=^H, cud1=\n,
24441	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
24442	cuu1=\E[A$<2>, dl1=\E[M$<99>, ed=\E[J$<50>, el=\E[K$<3>,
24443	el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
24444	il1=\E[L$<99>, ind=\n, kbs=^H, kcub1=\EOD, kcud1=\EOB,
24445	kcuf1=\EOC, kcuu1=\EOA, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
24446	rmkx=\E[?1l\E>, rmso=\E[m\s,
24447	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
24448	smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
24449	tbc=\E[3g, use=ansi+local, use=vt100+fnkeys,
24450
24451# The official PC terminal emulator program of the AT&T Product Centers.
24452# Note - insert mode commented out - doesn't seem to work on AT&T PC.
24453simterm|attpc running simterm,
24454	am,
24455	cols#80, lines#24,
24456	bel=^G, clear=\EH\EJ, cr=\r, cub1=^H, cud1=\EB, cuf1=\EC,
24457	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\ER,
24458	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, ind=\n, rmcup=\EVE,
24459	rmso=\E&d@, sgr0=\E&d@, smcup=\EVS, smso=\E&dB,
24460
24461#### Daisy wheel printers
24462#
24463# This section collects Diablo, DTC, Xerox, Qume, and other daisy
24464# wheel terminals.  These are now largely obsolete.
24465#
24466
24467# (diablo1620: removed <if=/usr/share/tabset/xerox1720>, no such file -- esr)
24468diablo1620|diablo1720|diablo450|ipsi|Diablo 1620,
24469	hc, os,
24470	cols#132, it#8,
24471	cub1=^H, cud1=\n, cuu1=\E\n, hd=\ED, hpa=\E\011%i%p1%c,
24472	ht=^I, hts=\E1, hu=\EU, kbs=^H, tbc=\E2,
24473diablo1620-m8|diablo1640-m8|Diablo 1620 w/8 column left margin,
24474	cols#124,
24475	is2=\r        \E9, use=diablo1620,
24476# (diablo1640: removed <if=/usr/share/tabset/xerox1730>, no such file -- esr)
24477diablo1640|diablo1730|diablo1740|diablo630|x1700|diablo|xerox|Diablo 1640,
24478	bel=^G, rmso=\E&, rmul=\ER, smso=\EW, smul=\EE,
24479	use=diablo1620,
24480# (diablo1640-lm: removed <if=/usr/share/tabset/xerox1730-lm>, no such
24481# file -- esr)
24482diablo1640-lm|diablo-lm|xerox-lm|Diablo 1640 with indented left margin,
24483	cols#124,
24484	rmso=\E&, rmul=\ER, smso=\EW, smul=\EE, use=diablo1620,
24485diablo1740-lm|630-lm|1730-lm|x1700-lm|Diablo 1740 printer,
24486	use=diablo1640-lm,
24487# DTC 382 with VDU.  Has no <ed> so we fake it with <el>.  Standout
24488# <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\0>.
24489# The terminal has tabs, but I'm getting tired of fighting the braindamage.
24490# If no tab is set or the terminal's in a bad mood, it glitches the screen
24491# around all of memory.  Note that return puts a blank ("a return character")
24492# in the space the cursor was at, so we use ^P return (and thus ^P newline for
24493# newline).  Note also that if you turn off :pt: and let Unix expand tabs,
24494# curses won't work (some old BSD versions) because it doesn't clear this bit,
24495# and cursor addressing sends a tab for row/column 9.  What a losing terminal!
24496# I have been unable to get tabs set in all 96 lines - it always leaves at
24497# least one line with no tabs in it, and once you tab through that line,
24498# it completely weirds out.
24499# (dtc382: change <rmcup> to <smcup> -- it  just does a clear --esr)
24500dtc382|DTC 382,
24501	am, da, db, xhp,
24502	cols#80, lines#24, lm#96,
24503	bel=^G, clear=\020\035$<20>, cnorm=^Pb, cr=^P\r, cub1=^H,
24504	cuf1=^PR, cup=\020\021%p2%c%p1%c, cuu1=^P^L, cvvis=^PB,
24505	dch1=^X, dl1=^P^S, ed=^P^U^P^S^P^S, el=^P^U, home=^P^R,
24506	il1=^P^Z, ind=\n, pad=^?, rmcup=, rmir=^Pi, rmul=^P \0,
24507	smcup=\020\035$<20>, smir=^PI, smul=^P ^P,
24508dtc300s|DTC 300s,
24509	hc, os,
24510	cols#132,
24511	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
24512	hts=\E1, hu=\EH, ind=\n, kbs=^H, tbc=\E3,
24513gsi|mystery gsi terminal,
24514	hc, os,
24515	cols#132,
24516	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=^Z, hd=\Eh, ht=^I, hu=\EH,
24517	ind=\n,
24518aj830|aj832|aj|Anderson Jacobson,
24519	hc, os,
24520	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=\E7, hd=\E9, hu=\E8,
24521	ind=\n,
24522# From: Chris Torek <chris@gyre.umd.edu> Thu, 7 Nov 85 18:21:58 EST
24523aj510|Anderson-Jacobson model 510,
24524	am, mir,
24525	cols#80, lines#24,
24526	clear=^L, cub1=^H, cuf1=\EX,
24527	cup=\E#%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EY,
24528	dch1=\E'D$<.1*>, dl1=\E&D$<2*/>, ed=\E'P, el=\E'L, ich1=,
24529	il1=\E&I$<2*/>, ip=$<.1*/>, kcub1=\EW, kcud1=\EZ,
24530	kcuf1=\EX, kcuu1=\EY, pad=^?, rmcup=\E"N, rmir=\E'J,
24531	rmso=\E"I, rmul=\E"U, smcup=\E"N, smir=\E'I, smso=\E"I,
24532	smul=\E"U,
24533# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
24534# This is incomplete, but it's a start.
24535nec5520|nec|spinwriter|NEC 5520,
24536	hc, os,
24537	cols#132, it#8,
24538	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=\E9, ff=^L,
24539	hd=\E]s\n\E]W, ht=^I, hts=\E1, hu=\E]s\E9\E]W, ind=\n,
24540	kbs=^H, tbc=\E3,
24541qume5|qume|Qume Sprint 5,
24542	hc, os,
24543	cols#80, it#8,
24544	bel=^G, cr=\r, cub1=^H, cud1=\n, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
24545	hts=\E1, hu=\EH, ind=\n, kbs=^H, tbc=\E3,
24546# I suspect the Xerox 1720 is the same as the Diablo 1620.
24547xerox1720|x1720|x1750|Xerox 1720,
24548	hc, os,
24549	cols#132, it#8,
24550	bel=^G, cr=\r, cub1=^H, cud1=\n, ff=^L, ht=^I, hts=\E1, ind=\n,
24551	tbc=\E2,
24552
24553#### Miscellaneous obsolete terminals, manufacturers unknown
24554#
24555# If you have any information about these (like, a manufacturer's name,
24556# and a date on the serial-number plate) please send it!
24557
24558cad68-3|cgc3|cad68 basic monitor transparent mode size 3 chars,
24559	OTbs, am,
24560	cols#73, lines#36,
24561	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^,
24562cad68-2|cgc2|cad68 basic monitor transparent mode size 2 chars,
24563	OTbs, am,
24564	cols#85, lines#39,
24565	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^, kcub1=\E3,
24566	kcud1=\E2, kcuf1=\E4, kcuu1=\E1, kf1=\E5, kf2=\E6, kf3=\E7,
24567	kf4=\E8, rmso=\Em^C, smso=\Em^L,
24568cops10|cops|cops-10|cops 10,
24569	am, bw,
24570	cols#80, lines#24,
24571	bel=^G, clear=\030$<30/>, cr=\r, cub1=^H, cud1=\n, cuf1=^L,
24572	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^W, el=^V,
24573	ind=\n, kbs=^H, kcub1=^H, kcud1=\n, kcuf1=^L, kcuu1=^K,
24574	khome=^Y,
24575
24576# http://www.bitsavers.org/pdf/datapro/alphanumeric_terminals/Datapro_C25_Datagraphix.pdf
24577#
24578# DatagraphiX, Inc.
24579# (a subsidiary of General Dynamics),
24580# P.O. Box 82449, San Diego, California 92138.
24581#
24582# (d132: removed duplicate :ic=\E5:,
24583# merged in capabilities from a BRL entry -- esr)
24584d132|datagraphix|DatagraphiX 132a,
24585	da, db, in,
24586	cols#80, lines#30,
24587	bel=^G, clear=^L, cnorm=\Em\En, cr=\r, cub1=^H, cud1=\n,
24588	cuf1=\EL, cup=\E8%i%p1%3d%p2%3d, cuu1=\EK, cvvis=\Ex,
24589	dch1=\E6, home=\ET, ht=^I, ich1=\E5, il1=\E3, ind=\n, kbs=^H,
24590	kcub1=^H, kcud1=\n, nel=\r\n, ri=\Ew,
24591# The d800 was an early portable terminal from c.1984-85 that looked a lot
24592# like the original Compaq `lunchbox' portable (but no handle).  It had a VT220
24593# mode (which is what this entry looks like) and several other lesser-known
24594# emulations.
24595d800|Direct 800/A,
24596	OTbs, am, da, db, msgr, xhp,
24597	cols#80, it#8, lines#24,
24598	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
24599	bel=^G, clear=\E[1;1H\E[2J, cnorm=\E[>12h, cr=\r, cub1=^H,
24600	cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
24601	cvvis=\E[>12l, ed=\E[J, el=\E[K, ht=^I, ind=\ED, kcub1=\E[D,
24602	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf5=\EOT, kf6=\EOU,
24603	kf7=\EOV, kf8=\EOW, ri=\EM, rmacs=\E[m, sgr0=\E[m,
24604	smacs=\E[1m, use=ansi+sgrso, use=ansi+sgrul,
24605	use=vt100+pf1-pf4,
24606digilog|digilog 333,
24607	OTbs,
24608	cols#80, lines#16,
24609	bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=^I, cuu1=^O, el=^X,
24610	home=^N, ind=\n,
24611# The DWK was a terminal manufactured in the Soviet Union c.1986
24612dwk|dwk-vt|dwk terminal,
24613	am,
24614	acsc=+\^\,Q-S.M0\177`+a:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~
24615	     _,
24616	clear=\EH\EJ, cub1=^H, cud1=\n, dch1=\EP, ich1=\EQ, kbs=^?,
24617	kdch1=\Ee, kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4,
24618	kf5=\Ef5, kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed,
24619	knp=\Eh, kpp=\Eg, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
24620	sgr0=\EX, smacs=\EF, smso=\ET, use=vt52-basic,
24621env230|envision230|envision 230 graphics terminal,
24622	xenl@,
24623	enacs@, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rmacs@,
24624	sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;
24625	    1%;m$<2>,
24626	sgr0=\E[0m$<2>, smacs@, smso=\E[7m, use=vt100+4bsd,
24627# These execuports were impact-printer ttys with a 30- or maybe 15-cps acoustic
24628# coupler attached, the whole rig fitting in a suitcase and more or less
24629# portable.  Hot stuff for c.1977 :-) -- esr
24630ep48|ep4080|execuport 4080,
24631	OTbs, am, os,
24632	cols#80,
24633	bel=^G, cr=\r, cub1=^H, cud1=\n, hd=^\, hu=^^, ind=\n,
24634ep40|ep4000|execuport 4000,
24635	cols#136, use=ep4080,
24636# Adam Thompson <athompso@pangea.ca> tells us:
24637# Informer series - these are all portable units, resembling older
24638# automatic bread-baking machines.  The terminal looks like a `clamshell'
24639# design, but isn't.  The structure is similar to the Direct terminals,
24640# but only half the width.  The entire unit is only about 10" wide.
24641# It features an 8" screen (6" or 7" if you have color!), and an 9"x6"
24642# keyboard.  All the keys are crammed together, much like some laptop
24643# PCs today, but perhaps less well organized...all these units have a
24644# bewildering array of plugs on the back, including a built-in modem.
24645# The 305 was a color version of the 304; the 306 and 307 were mono and
24646# color terminals built for IBM bisync protocols.
24647# From: Paul Leondis <unllab@amber.berkeley.edu>
24648ifmr|Informer D304,
24649	OTbs, am,
24650	cols#80, lines#24,
24651	clear=\EZ, cub1=^H, cud1=\n, cuf1=\EC,
24652	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\E\\,
24653	ed=\E/, el=\EQ, home=\EH, ich1=\E[, ri=\En, rmso=\EK, sgr0=\EK,
24654	smso=\EJ,
24655# Entry largely based on wy60 and has the features of wy60ak.
24656opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
24657	am, bw, hs, km, mir, msgr, ul, xon,
24658	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#80,
24659	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
24660	cbt=\EI, civis=\E`0, clear=\E*$<100>, cnorm=\E`1, cr=\r,
24661	cub1=^H, cud1=\n, cuf1=^L, cup=\Ea%i%p1%dR%p2%dC, cuu1=^K,
24662	dch1=\EW$<11>, dim=\EGp, dl1=\ER$<5>, dsl=\Ez(\r,
24663	ed=\EY$<100>, el=\ET, fsl=\r, home=\036$<2>, ht=\011$<5>,
24664	hts=\E1, if=/usr/share/tabset/std, il1=\EE$<4>, ind=\n,
24665	ip=$<3>,
24666	is2=\E`:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Ed/\Ezz&\E[A\177\Ezz'\E[B
24667	    \177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177\Ezz`\E[F
24668	    \177\EA1*\EZH12,
24669	kHOM=\E{, kcbt=\EI, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET,
24670	kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
24671	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
24672	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
24673	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
24674	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, mc0=\EP,
24675	mc4=^T, mc5=^R, nel=\r\n$<3>,
24676	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
24677	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
24678	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
24679	rmacs=\EH^C, rmam=\Ed., rmcup=, rmir=\Er, rmln=\EA11,
24680	rmxon=\Ec20, rs1=\E~!\E~4$<150>, rs2=\EeF$<150>,
24681	rs3=\EwG\Ee($<150>,
24682	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;\EG%{48}%?%p2
24683	    %t%{8}%|%;%?%p1%p3%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|
24684	    %t%{64}%|%;%?%p7%t%{1}%|%;%c,
24685	sgr0=\E(\EH\003\EG0\EcD, smacs=\EH^B, smam=\Ed/,
24686	smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177
24687	      \Ezz<\E[Q\177,
24688	smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(,
24689	uc=\EG8\EG0, use=ansi+arrows, use=adm+sgr,
24690
24691teletec|Teletec Datascreen,
24692	OTbs, am,
24693	cols#80, lines#24,
24694	bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, cuf1=^_, cuu1=^K,
24695	home=^^, ind=\n,
24696# From: Mark Dornfeld <romwa@ucbvax.berkeley.edu>
24697# This description is for the LANPAR Technologies VISION 3220
24698# terminal from 1984/85.  The function key definitions k0-k5 represent the
24699# edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
24700# NEXT SCREEN. The key definitions k6-k9 represent the PF1 to PF4 keys.
24701#
24702# Kenneth Randell <kenr@datametrics.com> writes on 31 Dec 1998:
24703# I had a couple of scopes (3221) like this once where I used to work, around
24704# the 1987 time frame if memory serves me correctly.  These scopes were made
24705# by an outfit called LANPAR Technologies, and were meant to me DEC VT 220
24706# compatible.  The 3220 was a plain text terminal like the VT-220, the 3221
24707# was a like the VT-240 (monochrome with Regis + Sixel graphics), and the 3222
24708# was like the VT-241 (color with Regis + Sixel Graphics).  These terminals
24709# (3221) cost about $1500 each, and one was always broken -- had to be sent
24710# back to the shop for repairs.
24711# The only real advantage these scopes had over the VT-240's were:
24712# 1) They were faster in the Regis display, or at least the ones I did
24713# 2) They had a handy debugging feature where you could split-screen the
24714# scope, the graphics would appear on the top, and the REGIS commands would
24715# appear on the bottom.  I don't remember the VT-240s being able to do that.
24716# I would swear that LANPAR Technologies was in MA someplace, but since I
24717# don't work at the same place anymore, and those terminals and manuals were
24718# long since junked, I cannot be any more sure than that.
24719#
24720# (v3220: removed obsolete ":kn#10:",
24721# I added <rmam>/<smam> based on the init string -- esr)
24722v3220|LANPAR Vision II model 3220/3221/3222,
24723	OTbs, am, mir, xenl,
24724	cols#80, it#8, lines#24,
24725	cub1=^H, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, ht=^I,
24726	is2=\E>\E[?3l\E[?7h\E[?8h\E[p, kcub1=\E[D, kcud1=\E[B,
24727	kcuf1=\E[C, kcuu1=\E[A, kf0=\E[1~, kf1=\E[2~, kf2=\E[3~,
24728	kf3=\E[4~, kf4=\E[5~, kf5=\E[6~, kf6=\E[OP, kf7=\E[OQ,
24729	kf8=\E[OR, kf9=\E[OS, khome=\E[H, ri=\EM, rmam=\E[?7l,
24730	rmir=\E[4l, rmkx=\E>, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
24731	smkx=\E=, use=ansi+erase, use=ansi+idl1, use=ansi+local1,
24732	use=ansi+sgrso, use=ansi+sgrul,
24733######## ICH/ICH1 VERSUS RMIR/SMIR
24734#
24735# Some non-curses applications get confused if both ich/ich1 and rmir/smir
24736# are present; the symptom is doubled characters in an update using insert.
24737# These applications are technically correct; in both 4.3BSD termcap and
24738# terminfo, you're not actually supposed to specify both ich/ich1 and rmir/smir
24739# unless the terminal needs both.  To my knowledge, no terminal still in this
24740# file requires both other than the very obsolete dm2500.
24741#
24742# For ncurses-based applications this is not a problem, as ncurses uses
24743# one or the other as appropriate but never mixes the two.  Therefore we
24744# have not corrected entries like `linux' and `xterm' that specify both.
24745# If you see doubled characters from these, use the linux-nic and xterm-nic
24746# entries that suppress ich/ich1.  And upgrade to ncurses!
24747#
24748
24749######## VT100/ANSI/ISO 6429/ECMA-48/PC-TERM TERMINAL STANDARDS
24750#
24751# ANSI X3.64 has been withdrawn and replaced by ECMA-48.  The ISO 6429 and
24752# ECMA-48 standards are said to be almost identical, but are not the same
24753# as X3.64 (though for practical purposes they are close supersets of it).
24754#
24755# You can obtain ECMA-48 for free by sending email to helpdesk@ecma.ch
24756# requesting the standard(s) you want (i.e. ECMA-48, "Control Functions for
24757# Coded Character Sets"), include your snail-mail address, and you should
24758# receive the document in due course.  Don't expect an email acknowledgment.
24759#
24760# Related standards include "X3.4-1977: American National Standard Code for
24761# Information Interchange" (the ASCII standard) and "X3.41.1974:
24762# Code-Extension Techniques for Use with the 7-Bit Coded Character Set of
24763# American National Standard for Information Interchange."  I believe (but
24764# am not certain) that these are effectively identical to ECMA-6 and ECMA-35
24765# respectively.
24766#
24767
24768#### VT100/ANSI/ECMA-48
24769#
24770# ANSI Standard (X3.64) Control Sequences for Video Terminals and Peripherals
24771# and ECMA-48 Control Functions for Coded Character Sets.
24772#
24773# Much of the content of this comment is adapted from a table prepared by
24774# Richard Shuford, based on a 1984 Byte article.  Terminfo correspondences,
24775# discussion of some terminfo-related issues, and updates to capture ECMA-48
24776# have been added.  Control functions described in ECMA-48 only are tagged
24777# with * after their names.
24778#
24779# The table is a complete list of the defined ANSI X3.64/ECMA-48 control
24780# sequences.  In the main table, \E stands for an escape (\033) character,
24781# SPC for space.  Pn stands for a single numeric parameter to be inserted
24782# in decimal ASCII.  Ps stands for a list of such parameters separated by
24783# semicolons.  Parameter meanings for most parameterized sequences are
24784# described in the notes.
24785#
24786# Sequence     Sequence                             Parameter   or
24787# Mnemonic     Name              Sequence           Value      Mode   terminfo
24788# -----------------------------------------------------------------------------
24789# APC  Applicatn Program Command \E _                -         Delim  -
24790# BEL  Bell *                    ^G                  -         -      bel
24791# BPH  Break Permitted Here *    \E B                -         *      -
24792# BS   BackSpace *               ^H                  -         EF     -
24793# CAN  Cancel *                  ^X                  -         -      -   (A)
24794# CBT  Cursor Backward Tab       \E [ Pn Z           1         eF     cbt
24795# CCH  Cancel Previous Character \E T                -         -      -
24796# CHA  Cursor Horizntal Absolute \E [ Pn G           1         eF     hpa (B)
24797# CHT  Cursor Horizontal Tab     \E [ Pn I           1         eF     tab (C)
24798# CMD  Coding Method Delimiter * \E
24799# CNL  Cursor Next Line          \E [ Pn E           1         eF     nel (D)
24800# CPL  Cursor Preceding Line     \E [ Pn F           1         eF     -
24801# CPR  Cursor Position Report    \E [ Pn ; Pn R      1, 1      -      -   (E)
24802# CSI  Control Sequence Intro    \E [                -         Intro  -
24803# CTC  Cursor Tabulation Control \E [ Ps W           0         eF     -   (F)
24804# CUB  Cursor Backward           \E [ Pn D           1         eF     cub
24805# CUD  Cursor Down               \E [ Pn B           1         eF     cud
24806# CUF  Cursor Forward            \E [ Pn C           1         eF     cuf
24807# CUP  Cursor Position           \E [ Pn ; Pn H      1, 1      eF     cup (G)
24808# CUU  Cursor Up                 \E [ Pn A           1         eF     cuu
24809# CVT  Cursor Vertical Tab       \E [ Pn Y           -         eF     -   (H)
24810# DA   Device Attributes         \E [ Pn c           0         -      -
24811# DAQ  Define Area Qualification \E [ Ps o           0         -      -
24812# DCH  Delete Character          \E [ Pn P           1         eF     dch
24813# DCS  Device Control String     \E P                -         Delim  -
24814# DL   Delete Line               \E [ Pn M           1         eF     dl
24815# DLE  Data Link Escape *        ^P                  -         -      -
24816# DMI  Disable Manual Input      \E \                -         Fs     -
24817# DSR  Device Status Report      \E [ Ps n           0         -      -   (I)
24818# DTA  Dimension Text Area *     \E [ Pn ; Pn SPC T  -         PC     -
24819# EA   Erase in Area             \E [ Ps O           0         eF     -   (J)
24820# ECH  Erase Character           \E [ Pn X           1         eF     ech
24821# ED   Erase in Display          \E [ Ps J           0         eF     ed  (J)
24822# EF   Erase in Field            \E [ Ps N           0         eF     -
24823# EL   Erase in Line             \E [ Ps K           0         eF     el  (J)
24824# EM   End of Medium *           ^Y                  -         -      -
24825# EMI  Enable Manual Input       \E b                          Fs     -
24826# ENQ  Enquire                   ^E                  -         -      -
24827# EOT  End Of Transmission       ^D                  -         *      -
24828# EPA  End of Protected Area     \E W                -         -      -   (K)
24829# ESA  End of Selected Area      \E G                -         -      -
24830# ESC  Escape                    ^[                  -         -      -
24831# ETB  End Transmission Block    ^W                  -         -      -
24832# ETX  End of Text               ^C                  -         -      -
24833# FF   Form Feed                 ^L                  -         -      -
24834# FNK  Function Key *            \E [ Pn SPC W       -         -      -
24835# GCC  Graphic Char Combination* \E [ Pn ; Pn SPC B  -         -      -
24836# FNT  Font Selection            \E [ Pn ; Pn SPC D  0, 0      FE     -
24837# GSM  Graphic Size Modify       \E [ Pn ; Pn SPC B  100, 100  FE     -   (L)
24838# GSS  Graphic Size Selection    \E [ Pn SPC C       none      FE     -
24839# HPA  Horz Position Absolute    \E [ Pn `           1         FE     -   (B)
24840# HPB  Char Position Backward    \E [ j              1         FE     -
24841# HPR  Horz Position Relative    \E [ Pn a           1         FE     -   (M)
24842# HT   Horizontal Tab *          ^I                  -         FE     -   (N)
24843# HTJ  Horz Tab w/Justification  \E I                -         FE     -
24844# HTS  Horizontal Tab Set        \E H                -         FE     hts
24845# HVP  Horz & Vertical Position  \E [ Pn ; Pn f      1, 1      FE     -   (G)
24846# ICH  Insert Character          \E [ Pn @           1         eF     ich
24847# IDCS ID Device Control String  \E [ SPC O          -         *      -
24848# IGS  ID Graphic Subrepertoire  \E [ SPC M          -         *      -
24849# IL   Insert Line               \E [ Pn L           1         eF     il
24850# IND  Index                     \E D                -         FE     -
24851# INT  Interrupt                 \E a                -         Fs     -
24852# JFY  Justify                   \E [ Ps SPC F       0         FE     -
24853# IS1  Info Separator #1 *       ^_                  -         *      -
24854# IS2  Info Separator #1 *       ^^                  -         *      -
24855# IS3  Info Separator #1 *       ^]                  -         *      -
24856# IS4  Info Separator #1 *       ^\                  -         *      -
24857# LF   Line Feed                 ^J                  -         -      -
24858# LS1R Locking Shift Right 1 *   \E ~                -         -      -
24859# LS2  Locking Shift 2 *         \E n                -         -      -
24860# LS2R Locking Shift Right 2 *   \E }                -         -      -
24861# LS3  Locking Shift 3 *         \E o                -         -      -
24862# LS3R Locking Shift Right 3 *   \E |                -         -      -
24863# MC   Media Copy                \E [ Ps i           0         -      -   (S)
24864# MW   Message Waiting           \E U                -         -      -
24865# NAK  Negative Acknowledge *    ^U                  -         *      -
24866# NBH  No Break Here *           \E C                -         -      -
24867# NEL  Next Line                 \E E                -         FE     nel (D)
24868# NP   Next Page                 \E [ Pn U           1         eF     -
24869# NUL  Null *                    ^@                  -         -      -
24870# OSC  Operating System Command  \E ]                -         Delim  -
24871# PEC  Pres. Expand/Contract *   \E Pn SPC Z         0         -      -
24872# PFS  Page Format Selection *   \E Pn SPC J         0         -      -
24873# PLD  Partial Line Down         \E K                -         FE     -   (T)
24874# PLU  Partial Line Up           \E L                -         FE     -   (U)
24875# PM   Privacy Message           \E ^                -         Delim  -
24876# PP   Preceding Page            \E [ Pn V           1         eF     -
24877# PPA  Page Position Absolute *  \E [ Pn SPC P       1         FE     -
24878# PPB  Page Position Backward *  \E [ Pn SPC R       1         FE     -
24879# PPR  Page Position Forward *   \E [ Pn SPC Q       1         FE     -
24880# PTX  Parallel Texts *          \E [ \              -         -      -
24881# PU1  Private Use 1             \E Q                -         -      -
24882# PU2  Private Use 2             \E R                -         -      -
24883# QUAD Typographic Quadding      \E [ Ps SPC H       0         FE     -
24884# REP  Repeat Char or Control    \E [ Pn b           1         -      rep
24885# RI   Reverse Index             \E M                -         FE     -   (V)
24886# RIS  Reset to Initial State    \E c                -         Fs     -
24887# RM   Reset Mode *              \E [ Ps l           -         -      -   (W)
24888# SACS Set Add. Char. Sep. *     \E [ Pn SPC /       0         -      -
24889# SAPV Sel. Alt. Present. Var. * \E [ Ps SPC ]       0         -      -   (X)
24890# SCI  Single-Char Introducer    \E Z                -         -      -
24891# SCO  Sel. Char. Orientation *  \E [ Pn ; Pn SPC k  -         -      -
24892# SCS  Set Char. Spacing *       \E [ Pn SPC g       -         -      -
24893# SD   Scroll Down               \E [ Pn T           1         eF     rin
24894# SDS  Start Directed String *   \E [ Pn ]           1         -      -
24895# SEE  Select Editing Extent     \E [ Ps Q           0         -      -   (Y)
24896# SEF  Sheet Eject & Feed *      \E [ Ps ; Ps SPC Y  0,0       -      -
24897# SGR  Select Graphic Rendition  \E [ Ps m           0         FE     sgr (O)
24898# SHS  Select Char. Spacing *    \E [ Ps SPC K       0         -      -
24899# SI   Shift In                  ^O                  -         -      -   (P)
24900# SIMD Sel. Imp. Move Direct. *  \E [ Ps ^           -         -      -
24901# SL   Scroll Left               \E [ Pn SPC @       1         eF     -
24902# SLH  Set Line Home *           \E [ Pn SPC U       -         -      -
24903# SLL  Set Line Limit *          \E [ Pn SPC V       -         -      -
24904# SLS  Set Line Spacing *        \E [ Pn SPC h       -         -      -
24905# SM   Select Mode               \E [ Ps h           none      -      -   (W)
24906# SO   Shift Out                 ^N                  -         -      -   (Q)
24907# SOH  Start Of Heading *        ^A                  -         -      -
24908# SOS  Start of String *         \E X                -         -      -
24909# SPA  Start of Protected Area   \E V                -         -      -   (Z)
24910# SPD  Select Pres. Direction *  \E [ Ps ; Ps SPC S  0,0       -      -
24911# SPH  Set Page Home *           \E [ Ps SPC G       -         -      -
24912# SPI  Spacing Increment         \E [ Pn ; Pn SPC G  none      FE     -
24913# SPL  Set Page Limit *          \E [ Ps SPC j       -         -      -
24914# SPQR Set Pr. Qual. & Rapid. *  \E [ Ps SPC X       0         -      -
24915# SR   Scroll Right              \E [ Pn SPC A       1         eF     -
24916# SRCS Set Reduced Char. Sep. *  \E [ Pn SPC f       0         -      -
24917# SRS  Start Reversed String *   \E [ Ps [           0         -      -
24918# SSA  Start of Selected Area    \E F                -         -      -
24919# SSU  Select Size Unit *        \E [ Pn SPC I       0         -      -
24920# SSW  Set Space Width *         \E [ Pn SPC [       none      -      -
24921# SS2  Single Shift 2 (G2 set)   \E N                -         Intro  -
24922# SS3  Single Shift 3 (G3 set)   \E O                -         Intro  -
24923# ST   String Terminator         \E \                -         Delim  -
24924# STAB Selective Tabulation *    \E [ Pn SPC ^       -         -      -
24925# STS  Set Transmit State        \E S                -         -      -
24926# STX  Start pf Text *           ^B                  -         -      -
24927# SU   Scroll Up                 \E [ Pn S           1         eF     indn
24928# SUB  Substitute *              ^Z                  -         -      -
24929# SVS  Select Line Spacing *     \E [ Pn SPC \       1         -      -
24930# SYN  Synchronous Idle *        ^F                  -         -      -
24931# TAC  Tabul. Aligned Centered * \E [ Pn SPC b       -         -      -
24932# TALE Tabul. Al. Leading Edge * \E [ Pn SPC a       -         -      -
24933# TATE Tabul. Al. Trailing Edge* \E [ Pn SPC `       -         -      -
24934# TBC  Tab Clear                 \E [ Ps g           0         FE     tbc
24935# TCC  Tabul. Centered on Char * \E [ Pn SPC c       -         -      -
24936# TSR  Tabulation Stop Remove  * \E [ Pn SPC d       -         FE     -
24937# TSS  Thin Space Specification  \E [ Pn SC E        none      FE     -
24938# VPA  Vert. Position Absolute   \E [ Pn d           1         FE     vpa
24939# VPB  Line Position Backward *  \E [ Pn k           1         FE     -
24940# VPR  Vert. Position Relative   \E [ Pn e           1         FE     -   (R)
24941# VT   Vertical Tabulation *     ^K                  -         FE     -
24942# VTS  Vertical Tabulation Set   \E J                -         FE     -
24943#
24944# ---------------------------------------------------------------------------
24945#
24946# Notes:
24947#
24948# Some control characters are listed in the ECMA-48 standard without
24949# being assigned functions relevant to terminal control there (they
24950# referred to other standards such as ISO 1745 or ECMA-35).  They are listed
24951# here anyway for completeness.
24952#
24953# (A) ECMA-48 calls this "CancelCharacter" but retains the CCH abbreviation.
24954#
24955# (B) There seems to be some confusion abroad between CHA and HPA.  Most
24956# `ANSI' terminals accept the CHA sequence, not the HPA. but terminfo calls
24957# the capability (hpa).  ECMA-48 calls this "Cursor Character Absolute" but
24958# preserved the CHA abbreviation.
24959#
24960# (C) CHT corresponds to terminfo (tab).  Usually it has the value ^I.
24961# Occasionally (as on, for example, certain HP terminals) this has the HTJ
24962# value.  ECMA-48 calls this "Cursor Forward Tabulation" but preserved the
24963# CHT abbreviation.
24964#
24965# (D) terminfo (nel) is usually \r\n rather than ANSI \EE.
24966#
24967# (E) ECMA-48 calls this "Active Position Report" but preserves the CPR
24968# abbreviation.
24969#
24970# (F) CTC parameter values:
24971#	0 = set char tab,
24972#	1 = set line tab,
24973#	2 = clear char tab,
24974#	3 = clear line tab,
24975#	4 = clear all char tabs on current line,
24976#	5 = clear all char tabs,
24977#	6 = clear all line tabs.
24978#
24979# (G) CUP and HVP are identical in effect.  Some ANSI.SYS versions accept
24980# HVP, but always allow CUP as an alternate.  ECMA-48 calls HVP "Character
24981# Position Absolute" but retains the HVP abbreviation.
24982#
24983# (H) ECMA calls this "Cursor Line Tabulation" but preserves the CVT
24984# abbreviation.
24985#
24986# (I) DSR parameter values:
24987#	0 = ready,
24988#	1 = busy,
24989#	2 = busy, will send DSR later,
24990#	3 = malfunction,
24991#	4 = malfunction, will send DSR later,
24992#	5 = request DSR,
24993#	6 = request CPR response.
24994#
24995# (J) ECMA calls ED "Erase In Page". EA/ED/EL parameters:
24996#	0 = clear to end,
24997#	1 = clear from beginning,
24998#	2 = clear.
24999#
25000# (K) ECMA calls this "End of Guarded Area" but preserves the EPA abbreviation.
25001#
25002# (L) The GSM parameters are vertical and horizontal parameters to scale by.
25003#
25004# (M) Some ANSI.SYS versions accept HPR, but more commonly `ANSI' terminals
25005# use CUF for this function and ignore HPR.  ECMA-48 calls this "Character
25006# Position Relative" but retains the HPR abbreviation.
25007#
25008# (N) ECMA-48 calls this "Character Tabulation" but retains the HT
25009# abbreviation.
25010#
25011# (O) SGR parameter values:
25012#	0 = default mode (attributes off),
25013#	1 = bold,
25014#	2 = dim,
25015#	3 = italicized,
25016#	4 = underlined,
25017#	5 = slow blink,
25018#	6 = fast blink,
25019#	7 = reverse video,
25020#	8 = invisible,
25021#	9 = crossed-out (marked for deletion),
25022#	10 = primary font,
25023#	10 + n (n in 1..9) = nth alternative font,
25024#	20 = Fraktur,
25025#	21 = double underline,
25026#	22 = turn off 2,
25027#	23 = turn off 3,
25028#	24 = turn off 4,
25029#	25 = turn off 5,
25030#	26 = proportional spacing,
25031#	27 = turn off 7,
25032#	28 = turn off 8,
25033#	29 = turn off 9,
25034#	30 = black fg,
25035#	31 = red fg,
25036#	32 = green fg,
25037#	33 = yellow fg,
25038#	34 = blue fg,
25039#	35 = magenta fg,
25040#	36 = cyan fg,
25041#	37 = white fg,
25042#	38 = set fg color as in CCITT T.416,
25043#	39 = set default fg color,
25044#	40 = black bg
25045#	41 = red bg,
25046#	42 = green bg,
25047#	43 = yellow bg,
25048#	44 = blue bg,
25049#	45 = magenta bg,
25050#	46 = cyan bg,
25051#	47 = white bg,
25052#	48 = set bg color as in CCITT T.416,
25053#	49 = set default bg color,
25054#	50 = turn off 26,
25055#	51 = framed,
25056#	52 = encircled,
25057#	53 = overlined,
25058#	54 = turn off 51 & 52,
25059#	55 = not overlined,
25060#	56-59 = reserved,
25061#	61-65 = variable highlights for ideograms.
25062#
25063# (P) SI is also called LSO, Locking Shift Zero.
25064#
25065# (Q) SI is also called LS1, Locking Shift One.
25066#
25067# (R) Some ANSI.SYS versions accept VPR, but more commonly `ANSI' terminals
25068# use CUD for this function and ignore VPR.  ECMA calls it `Line Position
25069# Absolute' but retains the VPA abbreviation.
25070#
25071# (S) MC parameters:
25072#	0 = start xfer to primary aux device,
25073#	1 = start xfer from primary aux device,
25074#	2 = start xfer to secondary aux device,
25075#	3 = start xfer from secondary aux device,
25076#	4 = stop relay to primary aux device,
25077#	5 = start relay to primary aux device,
25078#	6 = stop relay to secondary aux device,
25079#	7 = start relay to secondary aux device.
25080#
25081# (T) ECMA-48 calls this "Partial Line Forward" but retains the PLD
25082# abbreviation.
25083#
25084# (U) ECMA-48 calls this "Partial Line Backward" but retains the PLU
25085# abbreviation.
25086#
25087# (V) ECMA-48 calls this "Reverse Line Feed" but retains the RI abbreviation.
25088#
25089# (W) RM/SM modes are as follows:
25090#	1 = Guarded Area Transfer Mode (GATM),
25091#	2 = Keyboard Action Mode (KAM),
25092#	3 = Control Representation Mode (CRM),
25093#	4 = Insertion Replacement Mode (IRM),
25094#	5 = Status Report Transfer Mode (SRTM),
25095#	6 = Erasure Mode (ERM),
25096#	7 = Line Editing Mode (LEM),
25097#	8 = Bi-Directional Support Mode (BDSM),
25098#	9 = Device Component Select Mode (DCSM),
25099#	10 = Character Editing Mode (HEM),
25100#	11 = Positioning Unit Mode (PUM),
25101#	12 = Send/Receive Mode (SRM),
25102#	13 = Format Effector Action Mode (FEAM),
25103#	14 = Format Effector Transfer Mode (FETM),
25104#	15 = Multiple Area Transfer Mode (MATM),
25105#	16 = Transfer Termination Mode (TTM),
25106#	17 = Selected Area Transfer Mode (SATM),
25107#	18 = Tabulation Stop Mode (TSM),
25108#	19 = Editing Boundary Mode (EBM),
25109#	20 = Line Feed New Line Mode (LF/NL),
25110#	21 = Graphic Rendition Combination Mode (GRCM),
25111#	22 = Zero Default Mode (ZDM).
25112#
25113# The EBM and LF/NL modes have actually been removed from ECMA-48's 5th edition
25114# but are listed here for reference.
25115#
25116# (X) Select Alternate Presentation Variants is used only for non-Latin
25117# alphabets.
25118#
25119# (Y) "Select Editing Extent" (SEE) was ANSI "Select Edit Extent Mode" (SEM).
25120#
25121# (Z) ECMA-48 calls this "Start of Guarded Area" but retains the SPA
25122# abbreviation.
25123#
25124# ---------------------------------------------------------------------------
25125#
25126# Abbreviations:
25127#
25128# Intro  an Introducer of some kind of defined sequence; the normal 7-bit
25129#        X3.64 Control Sequence Introducer is the two characters "Escape ["
25130#
25131# Delim  a Delimiter
25132#
25133# x/y    identifies a character by position in the ASCII table (column/row)
25134#
25135# eF     editor function (see explanation)
25136#
25137# FE     format effector (see explanation)
25138#
25139# F      is a Final character in
25140#             an Escape sequence (F from 3/0 to 7/14 in the ASCII table)
25141#             a control sequence (F from 4/0 to 7/14)
25142#
25143# Gs     is a graphic character appearing in strings (Gs ranges from
25144#        2/0 to 7/14) in the ASCII table
25145#
25146# Ce     is a control represented as a single bit combination in the C1 set
25147#        of controls in an 8-bit character set
25148#
25149# C0     the familiar set of 7-bit ASCII control characters
25150#
25151# C1     roughly, the set of control chars available only in 8-bit systems.
25152#        This is too complicated to explain fully here, so read Jim Fleming's
25153#        article in the February 1983 BYTE, especially pages 214 through 224.
25154#
25155# Fe     is a Final character of a 2-character Escape sequence that has an
25156#        equivalent representation in an 8-bit environment as a Ce-type
25157#        (Fe ranges from 4/0 to 5/15)
25158#
25159# Fs     is a Final character of a 2-character Escape sequence that is
25160#        standardized internationally with identical representation in 7-bit
25161#        and 8-bit environments and is independent of the currently
25162#        designated C0 and C1 control sets (Fs ranges from 6/0 to 7/14)
25163#
25164# I      is an Intermediate character from 2/0 to 2/15 (inclusive) in the
25165#        ASCII table
25166#
25167# P      is a parameter character from 3/0 to 3/15 (inclusive) in the ASCII
25168#        table
25169#
25170# Pn     is a numeric parameter in a control sequence, a string of zero or
25171#        more characters ranging from 3/0 to 3/9 in the ASCII table
25172#
25173# Ps     is a variable number of selective parameters in a control sequence
25174#        with each selective parameter separated from the other by the code
25175#        3/11 (which usually represents a semicolon); Ps ranges from
25176#        3/0 to 3/9 and includes 3/11
25177#
25178# *      Not relevant to terminal control, listed for completeness only.
25179#
25180# Format Effectors versus Editor Functions
25181#
25182# A format effector specifies how following output is to be displayed.
25183# An editor function allows you to modify the display.  Informally
25184# format effectors may be destructive; format effectors should not be.
25185#
25186# For instance, a format effector that moves the "active position" (the
25187# cursor or equivalent) one space to the left would be useful when you want to
25188# create an overstrike, a compound character made of two standard characters
25189# overlaid. Control-H, the Backspace character, is actually supposed to be a
25190# format effector, so you can do this. But many systems use it in a
25191# nonstandard fashion, as an editor function, deleting the character to the
25192# left of the cursor and moving the cursor left. When Control-H is assumed to
25193# be an editor function, you cannot predict whether its use will create an
25194# overstrike unless you also know whether the output device is in an "insert
25195# mode" or an "overwrite mode". When Control-H is used as a format effector,
25196# its effect can always be predicted. The familiar characters carriage
25197# return, linefeed, formfeed, etc., are defined as format effectors.
25198#
25199# NOTES ON THE DEC VT100 IMPLEMENTATION
25200#
25201# Control sequences implemented in the VT100 are as follows:
25202#
25203#      CPR, CUB, CUD, CUF, CUP, CUU, DA, DSR, ED, EL, HTS, HVP, IND,
25204#      LNM, NEL, RI, RIS, RM, SGR, SM, TBC
25205#
25206# plus several private DEC commands.
25207#
25208# Erasing parts of the display (EL and ED) in the VT100 is performed thus:
25209#
25210#      Erase from cursor to end of line           Esc [ 0 K    or Esc [ K
25211#      Erase from beginning of line to cursor     Esc [ 1 K
25212#      Erase line containing cursor               Esc [ 2 K
25213#      Erase from cursor to end of screen         Esc [ 0 J    or Esc [ J
25214#      Erase from beginning of screen to cursor   Esc [ 1 J
25215#      Erase entire screen                        Esc [ 2 J
25216#
25217# Some brain-damaged terminal/emulators respond to Esc [ J as if it were
25218# Esc [ 2 J, but this is wrong; the default is 0.
25219#
25220# The VT100 responds to receiving the DA (Device Attributes) control
25221#
25222#      Esc [ c    (or Esc [ 0 c)
25223#
25224# by transmitting the sequence
25225#
25226#      Esc [ ? l ; Ps c
25227#
25228# where Ps is a character that describes installed options.
25229#
25230# The VT100's cursor location can be read with the DSR (Device Status
25231# Report) control
25232#
25233#      Esc [ 6 n
25234#
25235# The VT100 reports by transmitting the CPR sequence
25236#
25237#      Esc [ Pl ; Pc R
25238#
25239# where Pl is the line number and Pc is the column number (in decimal).
25240#
25241# The specification for the DEC VT100 is document EK-VT100-UG-003.
25242
25243#### ANSI.SYS
25244#
25245# Here is a description of the color and attribute controls supported in the
25246# the ANSI.SYS driver under MS-DOS.  Most console drivers and ANSI
25247# terminal emulators for Intel boxes obey these.  They are a proper subset
25248# of the ECMA-48 escapes.
25249#
25250# 0	all attributes off
25251# 1	foreground bright
25252# 4	underscore on
25253# 5	blink on/background bright (not reliable with brown)
25254# 7	reverse-video
25255# 8	set blank (non-display)
25256# 10	set primary font
25257# 11	set first alternate font (on PCs, display ROM characters 1-31)
25258# 12	set second alternate font (on PCs, display IBM high-half chars)
25259#
25260#			Color attribute sets
25261# 3n	set foreground color       / 0=black, 1=red,     2=green, 3=brown,
25262# 4n	set background color       \ 4=blue,  5=magenta, 6=cyan,  7=white
25263# Bright black becomes gray.  Bright brown becomes yellow,
25264# These coincide with the prescriptions of the ISO 6429/ECMA-48 standard.
25265#
25266# * If the 5 attribute is on and you set a background color (40-47) it is
25267#   supposed to enable bright background.
25268#
25269# * Many VGA cards (such as the Paradise and compatibles) do the wrong thing
25270#   when you try to set a "bright brown" (yellow) background with attribute
25271#   5 (you get a blinking yellow foreground instead).  A few displays
25272#   (including the System V console) support an attribute 6 that undoes this
25273#   braindamage (this is required by iBCS2).
25274#
25275# * Some older versions of ANSI.SYS have a bug that causes them to require
25276#   ESC [ Pn k as EL rather than the ANSI ESC [ Pn K.  (This is not ECMA-48
25277#   compatible.)
25278
25279#### Intel Binary Compatibility Standard
25280#
25281# For comparison, here are the capabilities implied by the Intel Binary
25282# Compatibility Standard for UNIX systems (Intel order number 468366-001).
25283# These recommendations are optional.  IBCS2 allows the leading escape to
25284# be either the 7-bit \E[ or 8-bit \0233 introducer, in accordance with
25285# the ANSI X.364/ISO 6429/ECMA-48 standard.  Here are the iBCS2 capabilities
25286# (as described in figure 9-3 of the standard).  Those expressed in the ibcs2
25287# terminfo entry are followed with the corresponding capability in parens:
25288#
25289#	CSI <n>k		disable (n=0) or enable (n=1) keyclick
25290#	CSI 2h			lock keyboard
25291#	CSI 2i			send screen as input
25292#	CSI 2l			unlock keyboard
25293#	CSI 6m			enable background color intensity
25294#	CSI <0-2>c		reserved
25295#	CSI <0-59>m		select graphic rendition
25296#	CSI <n>;<m>H	(cup)	cursor to line n and column m
25297#	CSI <n>;<m>f		cursor to line n and column m
25298#	CSI <n>@	(ich)	insert characters
25299#	CSI <n>A	(cuu)	cursor up n lines
25300#	CSI <n>B	(cud)	cursor down n lines
25301#	CSI <n>C	(cuu)	cursor right n characters
25302#	CSI <n>D	(cud)	cursor left n characters
25303#	CSI <n>E		cursor down n lines and in first column
25304#	CSI <n>F		cursor up n lines and in first column
25305#	CSI <n>G	(hpa)	position cursor at column n-1
25306#	CSI <n>J	(ed)	erase in display
25307#	CSI <n>K	(el)	erase in line
25308#	CSI <n>L	(il)	insert line(s)
25309#	CSI <n>P	(dch)	delete characters
25310#	CSI <n>S	(indn)	scroll up n lines
25311#	CSI <n>T	(rin)	scroll down n lines
25312#	CSI <n>X	(ech)	erase characters
25313#	CSI <n>Z	(cbt)	back up n tab stops
25314#	CSI <n>`		cursor to column n on line
25315#	CSI <n>a	(cuu)	cursor right n characters
25316#	CSI <n>d	(vpa)	cursor to line n
25317#	CSI <n>e		cursor down n lines and in first column
25318#	CSI <n>g	(cbt)	clear all tabs
25319#	CSI <n>z		make virtual terminal n active
25320#	CSI ?7h		(smam)	turn automargin on
25321#	CSI ?7l		(rmam)	turn automargin off
25322#	CSI s			save cursor position
25323#	CSI u			restore cursor position to saved value
25324#	CSI =<c>A		set overscan color
25325#	CSI =<c>F		set normal foreground color
25326#	CSI =<c>G		set normal background color
25327#	CSI =<c>H		set reverse foreground color
25328#	CSI =<c>I		set reverse foreground color
25329#	CSI =<c>J		set graphic foreground color
25330#	CSI =<c>K		set graphic foreground color
25331#	CSI =<n>g	(dispc) display n from alternate graphics character set
25332#	CSI =<p>;<d>B		set bell parameters
25333#	CSI =<s>;<e>C		set cursor parameters
25334#	CSI =<x>D		enable/disable intensity of background color
25335#	CSI =<x>E		set/clear blink vs. bold background
25336#	CSI 7		(sc)	(sc) save cursor position
25337#	CSI 8		(rc)	(rc) restore cursor position to saved value
25338#	CSI H		(hts)	(hts) set tab stop
25339#	CSI Q<n><string>	define function key string
25340#				(string must begin and end with delimiter char)
25341#	CSI c		(clear) clear screen
25342#
25343# The lack of any specification for attributes in SGR (among other things)
25344# makes this a wretchedly weak standard. The table above is literally
25345# everything iBSC2 has to say about terminal escape sequences; there is
25346# no further discussion of their meaning or how to set the parameters
25347# in these sequences at all.
25348#
25349
25350######## NONSTANDARD CAPABILITY TRANSLATIONS USED IN THIS FILE
25351#
25352# The historical termcap file entries were written primarily in 4.4BSD termcap.
25353# The 4.4BSD termcap set was substantially larger than the original 4.1BSD set,
25354# with the extension names chosen for compatibility with the termcap names
25355# assigned in System V terminfo.  There are some variant extension sets out
25356# there.  We try to describe them here.
25357#
25358#### XENIX extensions:
25359#
25360# The XENIX extensions include a set of function-key capabilities as follows:
25361#
25362#       code	XENIX variable name	terminfo name	name clashes?
25363#	----	-------------------	-------------	-----------------------
25364#	CL	key_char_left
25365#	CR	key_char_right
25366#	CW	key_change_window			create_window
25367#	EN	key_end			kend
25368#	HM	key_home		khome
25369#	HP	??
25370#	LD	key_delete_line		kdl1
25371#	LF	key_linefeed				label_off
25372#	NU	key_next_unlocked_cell
25373#	PD	key_page_down		knp
25374#	PL	??
25375#	PN	start_print		mc5
25376#	PR	??
25377#	PS	stop_print		mc4
25378#	PU	key_page_up		kpp		pulse
25379#	RC	key_recalc				remove_clock
25380#	RF	key_toggle_ref				req_for_input
25381#	RT	key_return		kent
25382#	UP	key_up_arrow		kcuu1		parm_up_cursor
25383#	WL	key_word_left
25384#	WR	key_word_right
25385#
25386# The XENIX extensions also include the following character-set and highlight
25387# capabilities:
25388#
25389#	XENIX	terminfo	function
25390#	-----	--------	------------------------------
25391#	GS	smacs		start alternate character set
25392#	GE	rmacs		end alternate character set
25393#	GG			:as:/:ae: glitch (analogous to :sg:/:ug:)
25394#	bo	blink		begin blink (not used in /etc/termcap)
25395#	be			end blink (not used in /etc/termcap)
25396#	bb			blink glitch  (not used in /etc/termcap)
25397#	it	dim		begin dim (not used in /etc/termcap)
25398#	ie			end dim (not used in /etc/termcap)
25399#	ig			dim glitch  (not used in /etc/termcap)
25400#
25401# Finally, XENIX also used the following forms-drawing capabilities:
25402#
25403#	single	double  type             ASCII approximation
25404#	------	------	-------------    -------------------
25405#	GV	Gv	vertical line             |
25406#	GH	Gv	horizontal line       -   _
25407#	G1	G5	top right corner       _   |
25408#	G2	G6	top left corner       |
25409#	G3	G7	bottom left corner         |_
25410#	G4	G8	bottom right corner   _|
25411#	GD	Gd	down-tick character        T
25412#	GL	Gl	left-tick character   -|
25413#	GR	Gr	right-tick character       |-
25414#	GC	Gc	middle intersection   -|-
25415#	GU	Gu	up-tick character          _|_
25416#
25417# These were invented to take advantage of the IBM PC ROM character set.  One
25418# can compose an acsc string from the single-width characters as follows
25419#	"j{G4}k{G1}l{G2}m{G3}q{GH}x{GV}t{GR}u{GL}v{GU}w{GD}n{GC}"
25420# When translating a termcap file, ncurses tic will do this automatically.
25421# The double forms characters don't fit the SVr4 terminfo model.
25422#
25423#### AT&T Extensions:
25424#
25425# The old AT&T 5410, 5420, 5425, pc6300plus, 610, and s4 entries used a set of
25426# nonstandard capabilities.  Its signature is the KM capability, used to name
25427# some sort of keymap file.  EE, BO, CI, CV, XS, DS, FL and FE are in this
25428# set.  Comments in the original, and a little cross-checking with other AT&T
25429# documentation, seem to establish that BO=:mr: (start reverse video), DS=:mh:
25430# (start dim), XS=:mk: (secure/invisible mode), EE=:me: (end highlights),
25431# FL=:LO: (enable soft labels), FE=:LF: (disable soft labels), CI=:vi: (make
25432# cursor invisible), and CV=:ve: (make cursor normal).
25433#
25434#### HP Extensions
25435#
25436# The HP library (as of mid-1995, their term.h file version 70.1) appears to
25437# have the System V capabilities up to SVr1 level.  After that, it supports
25438# two nonstandard caps meml and memu corresponding to the old termcap :ml:,
25439# :mu: capabilities.  After that, it supports caps plab_norm, label_on,
25440# label_off, and key_f11..key_f63 capabilities like SVr4's.  This makes the
25441# HP binary format incompatible with SVr4's.
25442#
25443#### IBM Extensions
25444#
25445# There is a set of nonstandard terminfos used by IBM's AIX operating system.
25446# The AIX terminfo library diverged from SVr1 terminfo, and replaces all
25447# capabilities following prtr_non with the following special capabilities:
25448# box[12], batt[12], colb[0123456789], colf[0123456789], f[01234567], kbtab,
25449# kdo, kcmd, kcpn, kend, khlp, knl, knpn, kppn, kppn, kquit, ksel, kscl, kscr,
25450# ktab, kmpf[123456789], apstr, ksf1..ksf10, kf11...kf63, kact, topl, btml,
25451# rvert, lvert.   Some of these are identical to XPG4/SVr4 equivalents:
25452# kcmd, kend, khlp, and kf11...kf63.  Two others (kbtab and ksel) can be
25453# renamed (to kcbt and kslt).  The places in the box[12] capabilities
25454# correspond to acsc chars, here is the mapping:
25455#
25456#	box1[0]  = ACS_ULCORNER
25457#	box1[1]  = ACS_HLINE
25458#	box1[2]  = ACS_URCORNER
25459#	box1[3]  = ACS_VLINE
25460#	box1[4]  = ACS_LRCORNER
25461#	box1[5]  = ACS_LLCORNER
25462#	box1[6]  = ACS_TTEE
25463#	box1[7]  = ACS_RTEE
25464#	box1[8]  = ACS_BTEE
25465#	box1[9]  = ACS_LTEE
25466#	box1[10] = ACS_PLUS
25467#
25468# The box2 characters are the double-line versions of these forms graphics.
25469# The AIX binary terminfo format is incompatible with SVr4's.
25470#
25471#### Iris console extensions:
25472#
25473# HS is half-intensity start; HE is half-intensity end
25474# CT is color terminal type (for Curses & rogue)
25475# CP is color change escape sequence
25476# CZ are color names (for Curses & rogue)
25477#
25478# The ncurses tic utility recognizes HS as an alias for mh <dim>.
25479#
25480#### TC Extensions:
25481#
25482# There is a set of extended termcaps associated with something
25483# called the "Terminal Control" or TC package created by MainStream Systems,
25484# Winfield Kansas.  This one also uses GS/GE for as/ae, and also uses
25485# CF for civis and CO for cvvis.  Finally, they define a boolean :ct:
25486# that flags color terminals.
25487#
25488######## NCURSES USER-DEFINABLE CAPABILITIES
25489#
25490# Extensions added after ncurses 5.0 generally use the "-x" option of tic and
25491# infocmp to manipulate user-definable capabilities.  Those that are intended
25492# for use in either terminfo or termcap use 2-character names.  Extended
25493# function keys do not use 2-character names, and are available only with
25494# terminfo.
25495#
25496# Beginning in 2010, NetBSD curses has also provided a "-x" option for
25497# tic/infocmp, and uses this database (with a few changes).  There are a few
25498# differences, noted in
25499#	https://invisible-island.net/ncurses/ncurses-netbsd.html
25500#
25501# ncurses makes explicit checks for a few user-definable capabilities:  AX, E3,
25502# RGB, U8, XM, which are documented in the user_caps(5) manual page.
25503#
25504#### SCREEN Extensions:
25505#
25506# The screen program uses the termcap interface.  It recognizes a few useful
25507# nonstandard capabilities.  Those are used in this file.
25508#
25509#       AX   (bool)  Does  understand  ANSI  set  default fg/bg color (\E[39m /
25510#                    \E[49m).
25511#       G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
25512#       E0   (str)   Switch charset 'G0' back to standard charset.
25513#       S0   (str)   Switch charset 'G0' to the specified charset.
25514#       XT   (bool)  Terminal understands special xterm sequences  (OSC,  mouse
25515#                    tracking).
25516#
25517# AX is relatively straightforward; it is interpreted by ncurses to say that
25518# SGR 39/49 reset the terminal's foreground and background colors to their
25519# "default".
25520#
25521# XT is harder, since screen's man page does not give more details.  For that,
25522# we must read screen's source-code.  For example, when XT is set, screen
25523# assumes
25524#
25525# a) OSC 1 sets the title string, e.g., for the icon.  Recent versions of
25526#    screen may also set the terminal's name, which is (for xterm) distinct
25527#    from the icon name.
25528# b) OSC 20 sets the background pixmap.  This is an rxvt feature.
25529# c) OSC 39 and OSC 49 set the default foreground/background colors.  Again
25530#    this is an rxvt feature.
25531# d) certain mode settings enable the mouse: 9, 1000, 1001, 1002, 1003.
25532#    These are from xterm, although xterm accepts mouse codes that may not be
25533#    recognized by screen, e.g., 1005, 1006.
25534# e) colors beyond 0..7 are implemented by xterm's aixterm-like 16-color
25535#    sequence.  However, because screen uses only termcap, the values returned
25536#    by Af/Ab are not usable because they rely on expressions that termcap
25537#    does not support.  Therefore, screen uses a hardcoded string to work
25538#    around the limitation.  In a few cases, screen also uses tparm, which
25539#    is a terminfo function rather than termcap.
25540# f) all entries named "*xterm*" or "*rxvt*" have the bce flag set.
25541# g) screen also uses the feature to decide whether to pay attention to other
25542#    xterm-related features which are unrelated to the description in the
25543#    manual page.
25544#
25545# Since XT is useful only when the outer terminal matches screen's assumptions,
25546# it is appropriate to use it in the derived terminal descriptions such as
25547# "screen.xterm", but not in the generic "screen", "screen-bce" entries.
25548#
25549# The other ISO-2022 features are rarely used, but provided here to make
25550# screen's termcap features available.
25551#
25552#### XTERM Extensions:
25553#
25554# For a discussion of "xterm", "xterm-256color" as values for TERM, see
25555#	https://invisible-island.net/ncurses/ncurses.faq.html#xterm_generic
25556#	https://invisible-island.net/ncurses/ncurses.faq.html#xterm_256color
25557#
25558# For xterm control sequences, see
25559#	https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
25560#
25561# For function-keys with modifiers, see
25562#	https://invisible-island.net/ncurses/ncurses.faq.html#modified_keys
25563#
25564# For a discussion of "bracketed paste", see
25565#	https://invisible-island.net/xterm/xterm-paste64.html
25566#
25567# Most of the xterm extensions are for function-keys.  Since xterm patch #94 (in
25568# 1999), xterm has supported shift/control/alt/meta modifiers which produce
25569# additional function-key strings.  Some other developers copied the feature,
25570# though they did not follow xterm's lead in xterm patch #167 (in 2002), to make
25571# these key definitions less ambiguous.
25572#
25573# A few terminals provide similar functionality (sending distinct keys when
25574# a modifier is used), including rxvt.
25575#
25576# These are the extended keys defined in this file:
25577#
25578# kDC3 kDC4 kDC5 kDC6 kDC7 kDN kDN3 kDN4 kDN5 kDN6 kDN7 kEND3 kEND4 kEND5 kEND6
25579# kEND7 kHOM3 kHOM4 kHOM5 kHOM6 kHOM7 kIC3 kIC4 kIC5 kIC6 kIC7 kLFT3 kLFT4
25580# kLFT5 kLFT6 kLFT7 kNXT3 kNXT4 kNXT5 kNXT6 kNXT7 kPRV3 kPRV4 kPRV5 kPRV6 kPRV7
25581# kRIT3 kRIT4 kRIT5 kRIT6 kRIT7 kUP kUP3 kUP4 kUP5 kUP6 kUP7 kxIN kxOUT ka2 kb1
25582# kb3 kc2
25583#
25584# Bracketed paste is described with these capabilities in vim:
25585#
25586# BE enables bracketed paste
25587# BD disables bracketed paste
25588# PS is sent before the pasted text
25589# PE is sent after the pasted text
25590#
25591# vim also uses these names for xterm focus:
25592#
25593# fe enables focus events
25594# fd disables focus events
25595#
25596# Here are the other xterm-related extensions which are used in this file:
25597#
25598# Cr is a string capability which resets the cursor color
25599# Cs is a string capability which sets the cursor color to a given value.
25600#    The single string parameter is the color name/number, according to the
25601#    implementation.
25602# Ms modifies the selection/clipboard.  Its parameters are
25603#	p1 = the storage unit (clipboard, selection or cut buffer)
25604#	p2 = the base64-encoded clipboard content.
25605# RV requests the terminal to report secondary device attributes (i.e, version).
25606# rv shows the format of the terminal responses, as a regular expression.
25607# Se resets the cursor style to the terminal power-on default.
25608# Ss is a string capability with one numeric parameter.  It is used to set the
25609#    cursor style as described by the DECSCUSR function to a block or
25610#    underline.
25611# TS is a string capability which acts like "tsl", but uses no parameter and
25612#    goes to the first column of the "status line".
25613# XF is set/true for terminals which support the xterm focus-in/focus-out
25614#    escape sequences sent from the terminal to the host when private mode
25615#    1004 is set.  Those are defined as kxIN and kxOUT, to take advantage of
25616#    ncurses keypad mode to interpret them like a function key.  Because the
25617#    1004 mode is usually combined with other flags to set the mouse protocol,
25618#    this flag provides an application with the information that the focus
25619#    mode is assumed to be set, e.g., in XM.
25620# XM is a string capability which overrides ncurses's built-in string which
25621#    enables/disables xterm mouse mode.
25622# xm shows the format of the mouse responses.  Parameters:
25623#	p1 = y-ordinate
25624#	p2 = x-ordinate
25625#	p3 = button
25626#	p4 = state, e.g., pressed or released
25627#	p5 = y-ordinate starting region
25628#	p6 = x-ordinate starting region
25629#	p7 = y-ordinate ending region
25630#	p8 = x-ordinate ending region
25631# Other extensions, used in xm:
25632#	%u = UTF-8
25633# XR requests the terminal to report its version as a free-format string.
25634# xr shows the format of the terminal responses, as a regular expression.
25635#
25636#### Miscellaneous extensions:
25637#
25638# csr clears the status line
25639# gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
25640#    This was implemented for the Hurd.
25641# rmxx/smxx describes the ECMA-48 strikeout/crossed-out attributes, as an
25642#    experimental feature of tmux.
25643# CO gives the number of indexed ("ANSI") colors which overlay an RGB color
25644#    space.
25645# E3 clears the terminal's scrollback buffer.  This was implemented in the
25646#    Linux 3.0 kernel as a security feature.  It matches a feature which was
25647#    added in xterm patch #107.
25648# NQ denotes a terminal which does not support the standard query/response used
25649#    in u6/u7 (cursor position) and u8/u9 (device attributes).
25650# U8 is a numeric capability which denotes a terminal emulator which does not
25651#    support VT100 SI/SO when processing UTF-8 encoding.  Set this to a nonzero
25652#    value to enable it.
25653# Smulx modifies the appearance of underlines in VTE, December 2017.
25654#
25655######## CHANGE HISTORY
25656#
25657# The last /etc/termcap version maintained by John Kunze was 8.3, dated 8/5/94.
25658# Releases 9 and 10 (up until the release of ncurses 4.2 in 1998) were
25659# maintained by Eric S. Raymond as part of the ncurses project.
25660#
25661# This file contains all the capability information present in John Kunze's
25662# last version of the termcap master file, except as noted in the change
25663# comments at end of file.  Some information about very ancient obsolete
25664# capabilities has been moved to comments.  Some all-numeric names of older
25665# terminals have been retired.
25666#
25667# I changed :MT: to :km: (the 4.4BSD name) everywhere.  I commented out some
25668# capabilities (EP, dF, dT, dV, kn, ma, ml, mu, xr, xx) that are no longer
25669# used by BSD curses.
25670#
25671# The 9.1.0 version of this file was translated from my lightly-edited copy of
25672# 8.3, then mechanically checked against 8.3 using Emacs Lisp code written for
25673# the purpose.  Unless the ncurses tic implementation and the Lisp code were
25674# making perfectly synchronized mistakes which I then failed to catch by
25675# eyeball, the translation was correct and perfectly information-preserving.
25676#
25677# Major version number bumps correspond to major version changes in ncurses.
25678#
25679# Here is a log of the changes since then:
25680#
25681# 9.1.0 (Wed Feb  1 04:50:32 EST 1995):
25682#	* First terminfo master translated from 8.3.
25683# 9.2.0 (Wed Feb  1 12:21:45 EST 1995):
25684#	* Replaced Wyse entries with updated entries supplied by vendor.
25685#
25686# 9.3.0 (Mon Feb  6 19:14:40 EST 1995):
25687#	* Added contact & status info from G. Clark Brown <clark@sssi.com>.
25688# 9.3.1 (Tue Feb  7 12:00:24 EST 1995):
25689#	* Better XENIX keycap translation.  Describe TC termcaps.
25690#	* Contact and history info supplied by Qume.
25691# 9.3.2 (Sat Feb 11 23:40:02 EST 1995):
25692#	* Raided the Shuford FTP site for recent termcaps/terminfos.
25693#	* Added information on X3.64 and VT100 standard escape sequences.
25694# 9.3.3 (Mon Feb 13 12:26:15 EST 1995):
25695#	* Added a correct X11R6 xterm entry.
25696#	* Fixed terminfo translations of padding.
25697# 9.3.4 (Wed Feb 22 19:27:34 EST 1995):
25698#	* Added correct acsc/smacs/rmacs strings for vt100 and xterm.
25699#	* Added u6/u7/u8/u9 capabilities.
25700#	* Added PCVT entry.
25701# 9.3.5 (Thu Feb 23 09:37:12 EST 1995):
25702#	* Emacs uses :so:, not :mr:, for its mode line.  Fix linux entry
25703#	  to use reverse-video standout so Emacs will look right.
25704#	* Added el1 capability to ansi.
25705#	* Added smacs/rmacs to ansi.sys.
25706#
25707# 9.4.0 (Sat Feb 25 16:43:25 EST 1995):
25708#	* New mt70 entry.
25709#	* Added COPYRIGHTS AND OTHER DELUSIONS.
25710#	* Added AT&T 23xx & 500/513, vt220 and vt420, opus3n1+, netronics
25711#	  smartvid & smarterm, ampex 175 & 219 & 232,
25712#	  env230, falco ts100, fluke, intertube, superbrain, ncr7901, vic20,
25713#	  ozzie, trs200, tr600, Tandy & Texas Instruments VDTs, intext2,
25714#	  screwpoint, fviewpoint, Contel Business Systems, Datamedia Colorscan,
25715#	  adm36, mime314, ergo4000, ca22851.  Replaced att7300, esprit, dd5500.
25716#	* Replaced the Perkin-Elmer entries with vendor's official ones.
25717#	* Restored the old minimal-ansi entry, luna needs it.
25718#	* Fixed some incorrect ip and proportional-padding translations.
25719# 9.4.1 (Mon Feb 27 14:18:33 EST 1995):
25720#	* Fix linux & AT386 sgr strings to do A_ALTCHARSET turnoff correctly.
25721#	* Make the xterm entry 65 lines again; create xterm25 and xterm24
25722#	  to force a particular height.
25723#	* Added beehive4 and reorganized other Harris entries.
25724# 9.4.2 (Thu Mar  9 01:45:44 EST 1995):
25725#	* Merged in DEC's official entries for its terminals.  The only old
25726#	  entry I kept was Doug Gwyn's alternate vt100 (as vt100-avo).
25727#	* Replaced the translated BBN BitGraph entries with purpose-built
25728#	  ones from AT&T's SVr3.
25729#	* Replaced the AT&T entries with AT&T's official terminfos.
25730#	* Added Teleray 16, vc415, cops10.
25731#	* Merged in many individual capabilities from SCO terminfo files.
25732# 9.4.3 (Mon Mar 13 02:37:53 EST 1995):
25733#	* Typo fixes.
25734#	* Change linux entry so A_PROTECT enables IBM-PC ROM characters.
25735# 9.4.4 (Mon Mar 27 12:32:35 EST 1995):
25736#	* Added tty35, Ann Arbor Guru series. vi300 and 550, cg7900, tvi803,
25737#	  pt210, ibm3164, IBM System 1, ctrm, Tymshare scanset, dt200, adm21,
25738#	  simterm, citoh and variants.
25739#	* Replaced sol entry with sol1 and sol2.
25740#	* Replaced Qume QVT and Freedom-series entries with purpose-built
25741#	  terminfo entries.
25742#	* Enhanced vt220, tvi910, tvi924, hpterm, hp2645, adm42, tek
25743#	  and dg200 entries using caps from SCO.
25744#	* Added the usual set of function-key mappings to ANSI entry.
25745#	* Corrected xterm's function-key capabilities.
25746# 9.4.5 (Tue Mar 28 14:27:49 EST 1995):
25747#	* Fix in xterm entry, cub and cud are not reliable under X11R6.
25748# 9.4.6 (Thu Mar 30 14:52:15 EST 1995):
25749#	* Fix in xterm entry, get the arrow keys right.
25750#	* Change some \0 escapes to \200.
25751# 9.4.7 (Tue Apr  4 11:27:11 EDT 1995)
25752#	* Added apple (Videx card), adm1a, oadm31.
25753#	* Fixed malformed ampex csr.
25754#	* Fixed act4, cyb110; they had old-style prefix padding left in.
25755#	* Changed mandatory to advisory padding in many entries.
25756#	* Replaced HP entries up to hpsub with purpose-built ones.
25757#	* Blank rmir/smir/rmdc/smdc capabilities removed.
25758#	* Small fixes merged in from SCO entries for lpr, fos, tvi910+, tvi924.
25759# 9.4.8 (Fri Apr  7 09:36:34 EDT 1995):
25760#	* Replaced the Ann Arbor entries with SCO's, the init strings are
25761#	  more efficient (but the entries otherwise identical).
25762#	* Added dg211 from Shuford archive.
25763#	* Added synertek, apple-soroc, ibmpc, pc-venix, pc-coherent, xtalk,
25764#	  adm42-nl, pc52, gs6300, xerox820, uts30.
25765#	* Pull SCO's padding into vi200 entry.
25766#	* Improved capabilities for tvi4107 and other TeleVideo and Viewpoint
25767#	  entries merged in from SCO's descriptions.
25768#	* Fixed old-style prefix padding on zen50, h1500.
25769#	* Moved old superbee entry to superbee-xsb, pulled in new superbee
25770#	  entry from SCO's description.
25771#	* Reorganized the special entries.
25772#	* Added lm#0 to cbunix and virtual entries.
25773#
25774# 9.5.0 (Mon Apr 10 11:30:00 EDT 1995):
25775#	* Restored cdc456tst.
25776#	* Fixed sb1 entry, SCO erroneously left out the xsb glitch.
25777#	* Added megatek, beacon, microkit.
25778#	* Freeze for ncurses-1.9 release.
25779# 9.5.1 (Fri Apr 21 12:46:42 EDT 1995):
25780#	* Added historical data for TAB.
25781#	* Comment fixes from David MacKenzie.
25782#	* Added the new BSDI pc3 entry.
25783# 9.5.2 (Tue Apr 25 17:27:52 EDT 1995)
25784#	* A change in the tic -C logic now ensures that all entries in
25785#	  the termcap translation will fit in < 1024 bytes.
25786#	* Added `bobcat' and `gator' HP consoles and the Nu machine entries
25787#	  from GNU termcap file.  This merges in all their local information.
25788# 9.5.3 (Tue Apr 25 22:28:13 EDT 1995)
25789#	* Changed tic -C logic to dump all capabilities used by GNU termcap.
25790#	* Added warnings about entries with long translations (restoring
25791#	  all the GNU termcaps pushes a few over the edge).
25792# 9.5.4 (Wed Apr 26 15:35:09 EDT 1995)
25793#	* Yet another tic change, and a couple of entry tweaks, to reduce the
25794#	  number of long (> 1024) termcap translations back to 0.
25795#
25796# 9.6.0 (Mon May  1 10:35:54 EDT 1995)
25797#	* Added kf13-kf20 to Linux entry.
25798#	* Regularize Prime terminal names.
25799#	* Historical data on Synertek.
25800#	* Freeze for ncurses-1.9.1.
25801# 9.6.1 (Sat May  6 02:00:52 EDT 1995):
25802#	* Added true xterm-color entry, renamed djm's pseudo-color entry.
25803#	* Eliminate whitespace in short name fields, this tanks some scripts.
25804#	* Name field changes to shorten some long entries.
25805#	* Termcap translation now automatically generates empty rmir/smir
25806#	  when ich1/ich is present (copes with an ancient vi bug).
25807#	* Added `screen' entries from FSF's screen-3.6.2.
25808#	* Added linux-nic and xterm-nic entries.
25809# 9.6.2 (Sat May  6 17:00:55 EDT 1995):
25810#	* Change linux entry to use smacs=\E[11m and have an explicit acsc,
25811#	  eliminating some special-case code in ncurses.
25812#
25813# 9.7.0 (Tue May  9 18:03:12 EDT 1995):
25814#	* Added vt320-k3, rsvidtx from the Emacs termcap.dat file.  I think
25815#	  that captures everything unique from it.
25816#	* Added reorder script generator.
25817#	* Freeze for ncurses 1.9.2 release.
25818# 9.7.1 (Thu Jun 29 09:35:22 EDT 1995):
25819#	* Added Sean Farley's kspd, flash, rs1 capabilities for linux.
25820#	* Added Olaf Siebert's corrections for adm12.
25821#	* ansi-pc-color now includes the colors and pairs caps, so that
25822#	  entries which use it will inherit them automatically.
25823#	* The linux entry can now recognize the center (keypad 5) key.
25824#	* Removed some junk that found its way into Linux acsc.
25825#
25826# 9.8.0 (Fri Jul  7 04:46:57 EDT 1995):
25827#	* Add 50% cut mark as a desperate hack to reduce tic's core usage.
25828#	* xterm doesn't try to use application keypad mode any more.
25829#	* Freeze for ncurses-1.9.3 release.
25830# 9.8.1 (Thu Jul 19 17:02:12 EDT 1995):
25831#	* Added corrected sun entry from vendor.
25832#	* Added csr capability to linux entry.
25833#	* Peter Wemm says the at386 hpa should be \E[%i%p1%dG, not \E[%p1%dG.
25834#	* Added vt102-nsgr to cope with stupid IBM PC `VT100' emulators.
25835#	* Some commented-out caps in long entries come back in, my code
25836#	  for computing string-table lengths had a bug in it.
25837#	* pcansi series modified to fit comm-program reality better.
25838# 9.8.2 (Sat Sep  9 23:35:00 EDT 1995):
25839#	* BSD/OS actually ships the ibmpc3 bold entry as its console.
25840#	* Correct some bad aliases in the pcansi series
25841#	* Added entry for QNX console.
25842#	* Clean up duplicate long names for use with 4.4 library.
25843#	* Change vt100 standout to be normal reverse vide, not bright reverse;
25844#	  this makes the Emacs status line look better.
25845# 9.8.3 (Sun Sep 10 13:07:34 EDT 1995):
25846#	* Added Adam Thompson's VT320 entries, also his dtx-sas and z340.
25847#	* Minor surgery, mostly on name strings, to shorten termcap version.
25848#
25849# 9.9.0 (Sat Sep 16 23:03:48 EDT 1995):
25850#	* Added dec-vt100 for use with the EWAN emulator.
25851#	* Added kmous to xterm for use with xterm's mouse-tracking facility.
25852#	* Freeze for 1.9.5 alpha release.
25853# 9.9.1 (Wed Sep 20 13:46:09 EDT 1995):
25854#	* Changed xterm lines to 24, the X11R6 default.
25855# 9.9.2 (Sat Sep 23 21:29:21 EDT 1995):
25856#	* Added 7 newly discovered, undocumented acsc characters to linux
25857#	  entry (the pryz{|} characters).
25858#	* ncurses no longer steals A_PROTECT.  Simplify linux sgr accordingly.
25859#	* Correct two typos in the xterm entries introduced in 9.9.1.
25860#	* I finally figured out how to translate ko capabilities.  Done.
25861#	* Added tvi921 entries from Tim Theisen.
25862#	* Cleanup: dgd211 -> dg211, adm42-nl -> adm42-nsl.
25863#	* Removed mystery tec entry, it was neither interesting nor useful.
25864#	* shortened altos3, qvt203, tvi910+, tvi92D, tvi921-g, tvi955, vi200-f,
25865#	  vi300-ss, att505-24, contel301, dm3045, f200vi, pe7000c, vc303a,
25866#	  trs200, wind26, wind40, wind50, cdc456tst, dku7003, f110, dg211,
25867#	  by making them relative to use capabilities
25868#	* Added cuf1=^L to tvi925 from deleted variant tvi925a.
25869#	* fixed cup in adm22 entry and parametrized strings in vt320-k3.
25870#	* added it#8 to entries that used to have :pt: -- tvi912, vi200,
25871#	  ampex80,
25872#	* Translate all home=\E[;H capabilities to home=\E[H, they're
25873#	  equivalent.
25874#	* Translate \E[0m -> \E[m in [rs]mso, [rs]mul, and init strings of
25875#	  vt100 and ANSI-like terminals.
25876# 9.9.3 (Tue Sep 26 20:11:15 EDT 1995):
25877#	* Added it#8 and ht=\t to *all* entries with :pt:; the ncurses tic
25878#	  does this now, too.
25879#	* fviewpoint is gone, it duplicated screwpoint.
25880#	* Added hp2627, graphos, graphos-30, hpex, ibmega, ibm8514, ibm8514-c,
25881#	  ibmvga, ibmvga-c, minix, mm340, mt4520-rv, screen2, screen3,
25882#	  versaterm, vi500, vsc, vt131, vt340, vt400 entries from UW.
25883#	  The UW vi50 replaces the old one, which becomes vi50adm,
25884#	* No more embedded commas in name fields.
25885#
25886# 9.10.0 (Wed Oct  4 15:39:37 EDT 1995):
25887#	* XENIX forms characters in fos, trs16, scoansi become acsc strings,
25888#	* Introduced klone+* entries for describing Intel-console behavior.
25889#	* Linux kbs is default-mapped to delete for some brain-dead reason.
25890#	* -nsl -> -ns.  The -pp syntax is obsolete.
25891#	* Eliminate [A-Z]* primaries in accordance with SVr4 terminfo docs.
25892#	* Make xterm entry do application-keypad mode again.  I got complaints
25893#	  that it was messing up someone's 3270 emulator.
25894#	* Added some longname fields in order to avoid warning messages from
25895#	  older tic implementations.
25896#	* According to ctlseqs.ms, xterm has a full vt100 graphics set.  Use
25897#	  it! (This gives us pi, greater than, less than, and a few more.)
25898#	* Freeze for ncurses-1.9.6 release.
25899# 9.10.1 (Sat Oct 21 22:18:09 EDT 1995):
25900#	* Add xon to a number of console entries, they're memory-mapped and
25901#	  don't need padding.
25902#	* Correct the use dependencies in the ansi series.
25903#	* Hand-translate more XENIX capabilities.
25904#	* Added hpterm entry for HP's X terminal emulator.
25905#	* Added aixterm entries.
25906#	* Shortened four names so everything fits in 14 chars.
25907#
25908# 9.11.0 (Thu Nov  2 17:29:35 EST 1995):
25909#	* Added ibcs2 entry and info on iBCS2 standard.
25910#	* Corrected hpa/vpa in linux entry.  They still fail the worm test.
25911#	* We can handle the HP meml/memu capability now.
25912#	* Added smacs to klone entries, just as documentation.
25913#	* Corrected ansi.sys and cit-500 entries.
25914#	* Added z39, vt320-k311, v220c, and avatar entries.
25915#	* Make pcansi use the ansi.sys invis capability.
25916#	* Added DIP switch descriptions for vt100, adm31, tvi910, tvi920c,
25917#	  tvi925, tvi950, dt80, ncr7900i, h19.
25918#	* X3.64 has been withdrawn, change some references.
25919#	* Removed function keys from ansi-m entry.
25920#	* Corrected ansi.sys entry.
25921#	* Freeze for ncurses-1.9.7 release.
25922# 9.11.1 (Tue Nov  6 18:18:38 EST 1995):
25923#	* Added rmam/smam capabilities to many entries based on init strings.
25924#	* Added correct hpa/vpa to linux.
25925#	* Reduced several entries relative to vt52.
25926# 9.11.2 (Tue Nov  7 00:21:06 EST 1995):
25927#	* Exiled some utterly unidentifiable custom and homebrew types to the
25928#	  UFO file; also, obsolete small-screen hardware; also, entries which
25929#	  look flat-out incorrect, garbled, or redundant.  These include the
25930#	  following entries: carlock, cdc456tst, microkit, qdss, ramtek, tec,
25931#	  tec400, tec500, ubell, wind, wind16, wind40, wind50, plasma, agile,
25932#	  apple, bch, daleblit, nucterm, ttywilliams, nuterminal, nu24, bnu,
25933#	  fnu, nunix-30, nunix-61, exidy, ex3000, sexidy, pc52, sanyo55,
25934#	  yterm10, yterm11, yterm10nat, aed, aed-ucb, compucolor, compucolor2,
25935#	  vic20, dg1, act5s, netx, smartvid, smarterm, sol, sol2, dt200,
25936#	  trs80, trs100, trs200, trs600, xitex, rsvidtx, vid, att2300-x40,
25937#	  att2350-x40, att4410-nfk, att5410-ns, otty5410, att5425-nl-w,
25938#	  tty5425-fk, tty5425-w-fk, cita, c108-na, c108-rv-na, c100-rv-na,
25939#	  c108-na-acs, c108-rv-na-acs, ims950-ns, infotonKAS, ncr7900i-na,
25940#	  regent60na, scanset-n, tvi921-g, tvi925n, tvi925vbn, tvi925vb,
25941#	  vc404-na, vc404-s-na, vt420nam, vt420f-nam, vt420pc-nam, vt510nam,
25942#	  vt510pc-nam, vt520nam, vt525nam, xterm25, xterm50, xterm65, xterms.
25943#	* Corrected pcvt25h as suggested by Brian C. Grayson
25944#	  <bgrayson@pine.ece.utexas.edu>.
25945# 9.11.3 (Thu Nov  9 12:14:40 EST 1995):
25946#	* Added kspd=\E[P, kcbt=\E[Z, to linux entry, changed kbs back to ^H.
25947#	* Added kent=\EOM to xterm entry.
25948#
25949# 9.11.4 (Fri Nov 10 08:31:35 EST 1995):
25950#	* Corrected gigi entry.
25951#	* Restored cuf/cud1 to xterm, their apparent bugginess was due to
25952#	  bad hpa/vpa capabilities.
25953#	* Corrected flash strings to have a uniform delay of .2 sec.  No
25954#	  more speed-dependent NUL-padding!
25955#	* terminfo capabilities in comments bracketed with <>.
25956# 9.11.5 (Fri Nov 10 15:35:02 EST 1995):
25957#	* Replaced pcvt with the 3.31 pcvt entries.
25958#	* Freeze for 1.9.7a.
25959# 9.11.6 (Mon Nov 13 10:20:24 EST 1995):
25960#	* Added emu entry from the X11R6 contrib tape sources.
25961#
25962# 9.12.0 (Wed Nov 29 04:22:25 EST 1995):
25963#	* Improved iris-ansi and sun entries.
25964#	* More flash string improvements.
25965#	* Corrected wy160 & wy160 as suggested by Robert Dunn
25966#	* Added dim to at386.
25967#	* Reconciled pc3 and ibmpc3 with the BSDI termcap file.  Keith says
25968#	  he's ready to start using the termcap generated from this one.
25969#	* Added vt102-w, vt220-w, xterm-bold, wyse-vp, wy75ap, att4424m,
25970#	  ln03, lno3-w, h19-g, z29a*, qdss.  Made vt200 an alias of vt220.
25971#	* Improved hpterm, apollo consoles, fos, qvt101, tvi924. tvi925,
25972#	  att610, att620, att630,
25973#	* Changed hazeltine name prefix from h to hz.
25974#	* Sent t500 to the UFI file.
25975#	* I think we've sucked all the juice out of BSDI's termcap file now.
25976#	* Freeze for ncurses 1.9.8 release
25977# 9.12.1 (Thu Nov 30 03:14:06 EST 1995)
25978#	* Unfreeze, linux kbs needed to be fixed.
25979#	* Tim Theisen pinned down a bug in the DMD firmware.
25980# 9.12.2 (Thu Nov 30 19:08:55 EST 1995):
25981#	* Fixes to ansi and klone capabilities (thank you, Aaron Ucko).
25982#	  (The broken ones had been shadowed by sgr.)
25983# 9.12.3 (Thu Dec  7 17:47:22 EST 1995):
25984#	* Added documentation on ECMA-48 standard.
25985#	* New Amiga entry.
25986# 9.12.4 (Thu Dec 14 04:16:39 EST 1995):
25987#	* More ECMA-48 stuff
25988#	* Corrected typo in minix entry, added pc-minix.
25989#	* Corrected khome/kend in xterm (thank you again, Aaron Ucko).
25990#	* Added rxvt entry.
25991#	* Added 1.3.x color-change capabilities to linux entry.
25992# 9.12.5 (Tue Dec 19 00:22:10 EST 1995):
25993#	* Corrected rxvt entry khome/kend.
25994#	* Corrected linux color change capabilities.
25995#	* NeXT entries from Dave Wetzel.
25996#	* Cleaned up if and rf file names (all in /usr/share now).
25997#	* Changed linux op capability to avoid screwing up a background color
25998#	  pair set by setterm.
25999# 9.12.6 (Wed Feb  7 16:14:35 EST 1996):
26000#	* Added xterm-sun.
26001# 9.12.7 (Fri Feb  9 13:27:35 EST 1996):
26002#	* Added visa50.
26003#
26004# 9.13.0 (Sun Mar 10 00:13:08 EST 1996):
26005#	* Another sweep through the Shuford archive looking for new info.
26006#	* Added dg100 alias to dg6053 based on a comp.terminals posting.
26007#	* Added st52 from Per Persson.
26008#	* Added eterm from the GNU Emacs 19.30 distribution.
26009#	* Freeze for 1.9.9.
26010# 9.13.1 (Fri Mar 29 14:06:46 EST 1996):
26011#	* FreeBSD console entries from Andrew Chernov.
26012#	* Removed duplicate Atari st52 name.
26013# 9.13.2 (Tue May  7 16:10:06 EDT 1996)
26014#	* xterm doesn't actually have ACS_BLOCK.
26015#	* Change klone+color setf/setb to simpler forms that can be
26016#	  translated into termcap.
26017#	* Added xterm1.
26018#	* Removed mechanically-generated junk capabilities from cons* entries.
26019#	* Added color support to bsdos.
26020# 9.13.3 (Thu May  9 10:35:51 EDT 1996):
26021#	* Added Wyse 520 entries from Wm. Randolph Franklin <wrf@ecse.rpi.edu>.
26022#	* Created ecma+color, linux can use it.  Also added ech to linux.
26023#	* Teach xterm about more keys. Add Thomas Dickey's 3.1.2E updates.
26024#	* Add descriptions to FreeBSD console entries.  Also shorten
26025#	  some aliases to <= 14 chars for portability.
26026#	* Added x68k console
26027#	* Added OTbs to several VT-series entries.
26028# 9.13.4 (Wed May 22 10:54:09 EDT 1996):
26029#	* screen entry update for 3.7.1 from Michael Alan Dorman.
26030# 9.13.5 (Wed Jun  5 11:22:41 EDT 1996):
26031#	* kterm correction due to Kenji Rikitake.
26032#	* ACS correction in vt320-kll due to Phillippe De Muyter.
26033# 9.13.6 (Sun Jun 16 15:01:07 EDT 1996):
26034#	* Sun console entry correction from J.T. Conklin.
26035#	* Changed all DEC VT300 and up terminals to use VT300 tab set
26036# 9.13.7 (Mon Jul  8 20:14:32 EDT 1996):
26037#	* Added smul to linux entry (we never noticed it was missing
26038#	  because of sgr!).
26039#	* Added rmln to hp+labels (deduced from other HP entries).
26040#	* Added vt100 acsc capability to vt220, vt340, vt400, d800, dt80-sas,
26041#	  pro350, att7300, 5420_2, att4418, att4424, att4426, att505, vt320-k3.
26042#	* Corrected vt220 acsc.
26043#	* The klone+sgr and klone+sgr-dumb entries now use klone+acs;
26044#	  this corresponds to reality and helps prevent some tic warnings.
26045#	* Added sgr0 to c101, pcix, vt100-nav, screen2, oldsun, next, altos2,
26046#	  hpgeneric, hpansi, hpsub, hp236, hp700-wy, bobcat, dku7003, adm11,
26047#	  adm12, adm20, adm21, adm22, adm31, adm36, adm42, pt100, pt200,
26048#	  qvt101, tvi910, tvi921, tvi92B, tvi925, tvi950, tvi970, wy30-mc,
26049#	  wy50-mc, wy100, wyse-vp, ampex232, regent100, viewpoint, vp90,
26050#	  adds980, cit101, cit500, contel300, cs10, dm80, falco, falco-p,
26051#	  f1720a, go140, sb1, superbeeic, microb, ibm8512, kt7, ergo4000,
26052#	  owl, uts30, dmterm, dt100, dt100, dt110, appleII, apple-videx,
26053#	  lisa, trsII, atari, st52, pc-coherent, basis, m2-man, bg2.0, bg1.25,
26054#	  dw3, ln03, ims-ansi, graphos, t16, zen30, xtalk, simterm, d800,
26055#	  ifmr, v3220, wy100q, tandem653, ibmaed.
26056#	* Added DWK terminal description.
26057# 9.13.8 (Wed Jul 10 11:45:21 EDT 1996):
26058#	* Many entries now have highlights inherited from adm+sgr.
26059#	* xterm entry now corresponds to XFree86 3.1.2E, with color.
26060#	* xtitle and xtitle-twm enable access to the X status line.
26061#	* Added linux-1.3.6 color palette caps in conventional format.
26062#	* Added adm1178 terminal.
26063#	* Move fos and apollo terminals to obsolete category.
26064#	* Aha! The BRL terminals file told us what the Iris extensions mean.
26065#	* Added, from the BRL termcap file: rt6221, rt6221-w, northstar,
26066#	  commodore, cdc721-esc, excel62, osexec.  Replaced from the BRL file:
26067#	  cit500, adm11.
26068# 9.13.9 (Mon Jul 15 00:32:51 EDT 1996):
26069#	* Added, from the BRL termcap file: cdc721, cdc721l, cdc752, cdc756,
26070#	  aws, awsc, zentec8001, modgraph48, rca vp3301/vp3501, ex155.
26071#	* Corrected, from BRL termcap file: vi50.
26072#	* Better rxvt entry & corrected xterm entries from Thomas Dickey.
26073# 9.13.10 (Mon Jul 15 12:20:13 EDT 1996):
26074#	* Added from BRL: cit101e & variants, hmod1, vi200, ansi77, att5620-1,
26075#	  att5620-s, att5620-s, dg210, aas1901, hz1520, hp9845, osborne
26076#	  (old osborne moved to osborne-w), tvi970-vb, tvi970-2p, tvi925-hi,
26077#	  tek4105brl, tek4106brl, tek4107brl,tek4109brl, hazel, aepro,
26078#	  apple40p, apple80p, appleIIgs, apple2e, apple2e-p, apple-ae.
26079#	* Paired-attribute fixes to various terminals.
26080#	* Sun entry corrections from A. Lukyanov & Gert-Jan Vons.
26081#	* xterm entry corrections from Thomas Dickey.
26082# 9.13.11 (Tue Jul 30 16:42:58 EDT 1996):
26083#	* Added t916 entry, translated from a termcap in SCO's support area.
26084#	* New qnx entry from Michael Hunter.
26085# 9.13.12 (Mon Aug  5 14:31:11 EDT 1996):
26086#	* Added hpex2 from Ville Sulko.
26087#	* Fixed a bug that ran the qnx and pcvtXX together.
26088# 9.13.13 (Fri Aug  9 01:16:17 EDT 1996):
26089#	* Added dtterm entry from Solaris CDE.
26090# 9.13.14 (Tue Sep 10 15:31:56 EDT 1996):
26091#	* corrected pairs#8 typo in dtterm entry.
26092#	* added tvi9065.
26093# 9.13.15 (Sun Sep 15 02:47:05 EDT 1996):
26094#	* updated xterm entry to cover 3.1.2E's new features.
26095# 9.13.16 (Tue Sep 24 12:47:43 EDT 1996):
26096#	* Added new minix entry
26097#	* Removed aliases of the form ^[0-9]* for obsolete terminals.
26098#	* Commented out linux-old, nobody's using pre-1.2 kernels now.
26099# 9.13.17 (Fri Sep 27 13:25:38 EDT 1996):
26100#	* Added Prism entries and kt7ix.
26101#	* Caution notes about EWAN and tabset files.
26102#	* Changed /usr/lib/tabset -> /usr/share/tabset.
26103#	* Added acsc/rmacs/smacs to vt52.
26104# 9.13.18 (Mon Oct 28 13:24:59 EST 1996):
26105#	* Merged in Thomas Dickey's reorganization of the xterm entries;
26106#	  added technical corrections to avoid warning messages.
26107# 9.13.19 (Sat Nov 16 16:05:49 EST 1996):
26108#	* Added rmso=\E[27m in Linux entry.
26109#	* Added koi8-r support for Linux console.
26110#	* Replace xterm entries with canonical ones from XFree86 3.2.
26111# 9.13.20 (Sun Nov 17 23:02:51 EST 1996):
26112#	* Added color_xterm from Jacob Mandelson
26113# 9.13.21 (Mon Nov 18 12:43:42 EST 1996):
26114#	* Back off the xterm entry to use r6 as a base.
26115# 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
26116#	* Added dec-vt220 at Adrian Garside's request.
26117#
26118#-(original-changelog-1996/12/29-to-1998/02/28-by-TD)---------------------------
26119#
26120# 10.1.0 (Sun Dec 29 02:36:31 EST 1996): withdrawn
26121#	* Minor corrections to xterm entries.
26122#	* Replaced EWAN telnet entry.
26123#	* Dropped the reorder script generator.  It was a fossil.
26124# 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
26125#	* Replaced minitel-2 entry.
26126#	* Added MGR, ansi-nt.
26127# 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
26128#	* Thorsten Lockert added termcap `bs' to a lot of types, working from
26129#	  the 4.4BSD Lite2 file.
26130#
26131# 10.1.1 (Sat May  3 21:41:27 EDT 1997):
26132#	* Use setaf/setab consistently with SVr4.
26133#	* Remove ech, el1 from cons25w, they do not work in FreeBSD 2.1.5
26134# 10.1.2 (Sat May 24 21:10:57 EDT 1997)
26135#	* update xterm-xf86-v32 to match XFree86 3.2A (changes F1-F4)
26136#	* add xterm-16color, for XFree86 3.3
26137# 10.1.3 (Sat May 31 12:21:05 EDT 1997)
26138#	* correct typo in emu
26139#	* correct typo in vt102-w (Robert Wuest)
26140#	* make new entry xterm-xf86-v33, restored xterm-xf86-v32.
26141# 10.1.4 (Sun Jun 15 08:29:05 EDT 1997)
26142#	* remove ech capability from rxvt (it does the wrong thing)
26143# 10.1.5 (Sat Jun 28 21:34:36 EDT 1997)
26144#	* remove spurious newlines from several entries (hp+color, wy50,
26145#	  wy350, wy370-nk, wy99gt-tek, wy370-tek, ibm3161, tek4205, ctrm,
26146#	  gs6300)
26147# 10.1.6 (Sat Jul  5 15:08:16 EDT 1997)
26148#	* correct rmso capability of wy50-mc
26149# 10.1.7 (Sat Jul 12 20:05:55 EDT 1997)
26150#	* add cbt to xterm-xf86-v32
26151#	* disentangle some entries from 'xterm', preferring xterm-r6 in case
26152#	  'xterm' is derived from xterm-xf86-v32, which implements ech and
26153#	  other capabilities not in xterm-r6.
26154#	* remove alternate character set from kterm entry.
26155# 10.1.8 (Sat Aug  2 18:43:18 EDT 1997)
26156#	* correct acsc entries for ACS_LANTERN, which is 'i', not 'I'.
26157# 10.1.9 (Sat Aug 23 17:54:38 EDT 1997)
26158#	* add xterm-8bit entry.
26159# 10.1.10 (Sat Oct  4 18:17:13 EDT 1997)
26160#	* repair several places where early version of tic replaced \, with \\\,
26161#	* make acsc entries canonical form (sorted, uniq).
26162#	* modify acsc entries for linux, linux-koi8
26163#	* new rxvt entry, from corrected copy of distribution in rxvt 2.21b
26164#	* add color, mouse support to kterm.
26165# 10.1.11 (Sat Oct 11 14:57:10 EDT 1997)
26166#	* correct wy120 smxon/tbc capabilities which were stuck together.
26167# 10.1.12 (Sat Oct 18 17:38:41 EDT 1997)
26168#	* add entry for xterm-xf86-v39t
26169# 10.1.13 (Sat Nov  8 13:43:33 EST 1997)
26170#	* add u8,u9 to sun-il description
26171# 10.1.14 (Sat Nov 22 19:59:03 EST 1997)
26172#	* add vt220-js, pilot, rbcomm, datapoint entries from esr's 27-jun-97
26173#	  version.
26174#	* add hds200 description (Walter Skorski)
26175#	* add EMX 0.9b descriptions
26176#	* correct rmso/smso capabilities in wy30-mc and wy50-mc (Daniel Weaver)
26177#	* rename xhpterm back to hpterm.
26178# 10.1.15 (Sat Nov 29 19:21:59 EST 1997)
26179#	* change initc in linux-c-nc to use 0..1000 range.
26180# 10.1.16 (Sat Dec 13 19:41:59 EST 1997)
26181#	* remove hpa/vpa from rxvt, which implements them incorrectly.
26182#	* add sgr0 for rxvt.
26183#	* remove bogus smacs/rmacs from EMX descriptions.
26184# 10.1.17 (Sat Dec 20 17:54:10 EST 1997)
26185#	* revised entry for att7300
26186# 10.1.18 (Sat Jan  3 17:58:49 EST 1998)
26187#	* use \0 rather than \200.
26188#	* rename rxvt-color to rxvt to match rxvt 2.4.5 distribution.
26189# 10.1.19 (Sat Jan 17 14:24:57 EST 1998)
26190#	* change xterm (xterm-xf86-v40), xterm-8bit rs1 to use hard reset.
26191#	* rename xterm-xf86-v39t to xterm-xf86-v40
26192#	* remove bold/underline from sun console entries since they're not
26193#	  implemented.
26194# 10.1.20 (Sat Jan 24 11:02:51 EST 1998)
26195#	* add beterm entry (Fred Fish)
26196#	* add irix-color/xwsh entry.
26197#	* turn ncv off for linux.
26198# 10.1.21 (Sat Jan 31 17:39:16 EST 1998)
26199#	* set ncv for FreeBSD console (treat colors with reverse specially).
26200#	* remove sgr string from qnx based on report by Xiaodan Tang
26201# 10.1.22 (Wed Feb 11 18:40:12 EST 1998)
26202#	* remove spurious commas from descriptions
26203#	* correct xterm-8bit to match XFree86 3.9Ad F1-F4.
26204# 10.1.23 (Sat Feb 28 17:48:38 EST 1998)
26205#	* add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
26206#	  apparently based on cp-866).
26207#
26208#-(replaced-changelog-1998/02/28-by-ESR)----------------------------------------
26209#
26210# 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
26211#	* Replaced minitel-2 entry.
26212#	* Added MGR, ansi-nt.
26213#	* Minor corrections to xterm entries.
26214#	* Replaced EWAN telnet entry.
26215#	* Dropped the reorder script generator.  It was a fossil.
26216# 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
26217#	* Thorsten Lockert added termcap `bs' to a lot of types, working from
26218#	  the 4.4BSD Lite2 file.
26219# 9.13.25 (Fri Jun 20 12:33:36 EDT 1997):
26220#	* Added Datapoint 8242, pilot, ansi_psx, rbcomm, vt220js.
26221#	* Updated iris-ansi; corrected vt102-w.
26222#	* Switch base xterm entry to 3.3 level.
26223# 9.13.26 (Mon Jun 30 22:45:45 EDT 1997)
26224#	* Added basic4.
26225#	* Removed rmir/smir from tv92B.
26226#
26227# 10.2.0 (Sat Feb 28 12:47:36 EST 1998):
26228#	* add hds200 description (Walter Skorski)
26229#	* add beterm entry (Fred Fish)
26230#	* add Thomas Dickey's xterm-xf86-v40, xterm-8bit, xterm-16color,
26231#	  iris-color entries.
26232#	* add emx entries.
26233#	* Replaced unixpc entry with Benjamin Sittler's corrected version.
26234#	* Replaced xterm/rxvt/emu/syscons entries with Thomas Dickey's
26235#	  versions.
26236#	* remove sgr string from qnx based on report by Xiaodan Tang
26237#	* Added u8/u9, removed rmul/smul from sun-il.
26238#	* 4.2 tic displays \0 rather than \200.
26239#	* add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
26240#	  apparently based on cp-866).
26241#	* Merged in Pavel Roskin's acsc for linux-koi8
26242#	* Corrected some erroneous \\'s to \.
26243#	* 4.2 ncurses has been changed to use setaf/setab, consistent w/SysV.
26244#	* II -> ii in pcvtXX, screen, xterm.
26245#	* Removed \n chars following ANSI escapes in sgr & friends.
26246#	* Updated Wyse entries.
26247#	* h19 corrections from Tim Pierce.
26248#	* Noted that the dm2500 has both ich and smir.
26249#	* added pccons for the Alpha under OSF/1.
26250#	* Added Sony NEWS workstation entries and cit101e-rv.
26251#	* Reverted `amiga'; to Kent Polk's version, as I'm told
26252#	  the Verkuil entry messes up with Amiga Telnet.
26253# 10.2.1 (Sun Mar  8 18:32:04 EST 1998):
26254#	* Corrected attributions in 10.2.0 release notes.
26255#	* Scanned the Shuford archive for new terminfos and information.
26256#	* Removed sgr from qnx entry (Thomas Dickey).
26257#	* Added entries for ICL and Kokusai Data Systems terminals.
26258#	* Incorporated NCR terminfos from the Boundless Technology FTP site.
26259#	* Incorporated att700 from the Boundless Technology FTP site.
26260#	* Miscellaneous contact-address and Web-page updates.
26261#
26262#-(changelog-beginning-ncurses-4.2)---------------------------------------------
26263#
26264# 1998/5/9
26265#	* add nxterm and xterm-color terminfo description (request by Cristian
26266#	  Gafton <gafton@redhat.com>).
26267#	* modify rxvt terminfo description to clear alternate screen before
26268#	  switching back to normal screen, for compatibility with applications
26269#	  which use xterm (reported by Manoj Kasichainula <manojk@io.com>).
26270#	* modify linux terminfo description to reset color palette (reported
26271#	  by Telford Tendys <telford@eng.uts.edu.au>).
26272#
26273# 1998/7/4
26274#	* merge changes from current XFree86 xterm terminfo descriptions.
26275#
26276# 1998/7/25
26277#	* Added minitel1 entries from Alexander Montaron.
26278#	* Added qnxt2 from Federico Bianchi.
26279#	* Added arm100 terminfo entries from Dave Millen.
26280#
26281# 1998/8/6
26282#	* Added ncsa telnet entries from Francesco Potorti
26283#
26284# 1998/8/15
26285#	* modify ncsa telnet entry to reflect color, other capabilities based on
26286#	  examination of the source code - T.Dickey.
26287#
26288# 1998/8/22
26289#	* Corrected some erroneous \\'s to \ (eterm, osborne) - TD.
26290#
26291# 1998/8/29
26292#	* Added Francesco Potorti's tuned Wyse 99 entries.
26293#	* dtterm enacs correction from Alexander V. Lukyanov.
26294#	* Add ncsa-ns, ncsa-m-ns and ncsa-m entries from esr version.
26295#	* correct a typo in icl6404 entry.
26296#	* add xtermm and xtermc
26297#
26298# 1998/9/26
26299#	* format most %'char' sequences to %{number}
26300#	* adapt IBM AIX 3.2.5 terminfo - T.Dickey
26301#	* merge Data General terminfo from Hasufin <hasufin@vidnet.net> - TD
26302#
26303# 1998/10/10
26304#	* update xterm-xfree86 to current (xterm patch #84), for is2/rs2 changes - TD
26305#	* correct initialization string in xterm-r5, add misc other features
26306#	  to correspond with xterm patch #84 - TD
26307#
26308# 1998/12/19
26309#	* update xterm-xfree86 to current (xterm patch #90), smcur/rmcur changes - TD
26310#	* add Mathew Vernon's mach console entries
26311#	* corrections for ncsa function-keys (report by Larry Virden)
26312#
26313# 1998/12/19
26314#	* change linux to use ncv#2, since underline does not work with color - TD
26315#
26316# 1999/1/9
26317#	* add kbt to iris-ansi, document other shift/control functionkeys - TD
26318#	* correct iris-ansi and iris-ansi-ap with respect to normal vs keypad
26319#	  application modes, change kent to use the correct keypad code - TD
26320#
26321# 1999/1/10
26322#	* add entry for Tera Term - TD
26323#
26324# 1999/1/23
26325#	* minor improvements for teraterm entry - TD
26326#	* rename several entries used by BSDI: bsdos to bsdos-pc-nobold,
26327#	  and bsdos-bold to bsdos-pc (Jeffrey C Honig)
26328#
26329# 1999/2/20
26330#	* resolve ambiguity of kend/kll/kslt and khome/kfnd/kich1 strings in
26331#	  xterm and ncsa entries by removing the unneeded ones.  Note that
26332#	  some entries will return kend & khome versus kslt and kfnd, for
26333#	  PC-style keyboards versus strict vt220 compatibility - TD
26334#
26335# 1999/3/13
26336#	* adjust xterm-xfree86 khome/kend to match default PC-style keyboard
26337#	  tables - TD
26338#	* add 'crt' entry - TD
26339#	* correct typos in 'linux-c' entry - TD
26340#
26341# 1999/3/14
26342#	* update entries for BSD/OS console to use klone+sgr and klone+color
26343#	  (Jeffrey C Honig)
26344#
26345# 1999/3/27
26346#	* adjust xterm-xfree86 miscellaneous keypad keys, as per xterm patch #94 - TD.
26347#
26348# 1999/4/10
26349#	* add linux-lat, from RedHat patches to ncurses 4.2
26350#
26351# 1999/4/17
26352#	* add complete set of default function-key definitions for scoansi - TD.
26353#
26354# 1999/7/3
26355#	* add cnorm, cvvis for Linux 2.2 kernels
26356#
26357# 1999/7/24
26358#	* add kmous to xterm-r5 -TD
26359#	* correct entries xterm+sl and xterm+sl-twm, which were missing the
26360#	  parent "use" clause -TD
26361#
26362# 1999/7/31
26363#	* corrected cnorm, added el1 in 'screen' description -TD
26364#
26365# 1999/8/14
26366#	* add ms-vt100 -TD
26367#
26368# 1999/8/21
26369#	* corrections to beterm entry -TD
26370#
26371# 1999/8/28
26372#	* add cygwin entry -TD
26373#
26374# 1999/9/4
26375#	* minor corrections for beterm entry -TD
26376#
26377# 1999/9/18
26378#	* add acsc string to HP 70092 terminfo entry -Joerg Wunsch
26379#
26380# 1999/9/25
26381#	* add amiga-8bit entry
26382#	* add console entries from NetBSD: ofcons, wsvt25, wsvt25m, rcons,
26383#	  rcons-color, based on
26384#	  ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/termcap/termcap.src
26385#	* add alias for iris-ansi-net
26386#
26387# 1999/10/2
26388#	* corrected scoansi entry's acsc, some function keys, add color -TD
26389#
26390# 1999/10/23
26391#	* add cnorm, cvvis to cons25w, and modify ncv to add 'dim' -TD
26392#	* reorder ncsa entries to make ncsa-vt220 use the alternate function
26393#	  key mapping, leaving Potorti's entries more like he named them -TD
26394#	* remove enter/exit am-mode from cygwin -TD
26395#
26396# 1999/10/30
26397#	* correct typos in several entries (missing '[' from CSI):
26398#	  mgr-sun, ncsa-m, vt320-k3, att505, avt-ns, as well as smir/rmir
26399#	  strings for avt-ns -TD
26400#	* add 'dim' to ncv mask for linux (report by Klaus Weide).
26401#
26402# 1999/11/27
26403#	* correct kf1-kf4 in xterm-r6 which were vt100-style PF1-PF4 -TD
26404#	* add hts to xterm-r6, and u6-u9 to xterm-r5 -TD
26405#	* add xterm-88color and xterm-256color -TD
26406#
26407# 1999/12/4
26408#	* add "obsolete" termcap strings -TD
26409#	* add kvt and gnome entries -TD
26410#
26411# 1999/12/11
26412#	* correct cup string for regent100 -TD
26413#
26414# 2000/1/1
26415#	* update mach, add mach-color based on Debian diffs for ncurses 5.0 -TD
26416#	* add entries for xterm-hp, xterm-vt220, xterm-vt52 and xterm-noapp -TD
26417#	* change OTrs capabilities to rs2 -TD
26418#	* add obsolete and extended capabilities to 'screen' -TD
26419#
26420# 2000/1/5
26421#	* remove kf0 from rxvt, vt520, vt525 and ibm5151 since it conflicts
26422#	  with kf10 -TD
26423#	* updated xterm-xf86-v40, making kdch1 correspond to vt220 'Remove',
26424#	  and adding kcbt -TD
26425#
26426# 2000/1/12
26427#	* remove incorrect khome/kend from xterm-xf86-v333, which was based on
26428#	  nonstandard resource settings -TD
26429#
26430# 2000/2/26
26431#	* minor fixes for xterm-*, based on Debian #58530 -TD
26432#
26433# 2000/3/4
26434#	* add several terminal types from esr's "11.0", as well as comments.
26435#	  bq300*, dku7102-old, dku7202, hft, lft, pcmw, pmcons, tws*, vip*,
26436#	  vt220-8bit, vt220-old, wy85-8bit
26437#
26438# 2000/3/18
26439#	* add several terminal types from esr's "11.0.1" (ansi-*).
26440#	* update OTxx capabilities for changes on 2000/3/4.
26441#	* revert part of vt220 change (request by Todd C Miller for OpenBSD)
26442#
26443# 2000/3/26
26444#	* move screen's AX extension to ecma+color, modify several entries to
26445#	  use that, adjusting ncv as needed -TD
26446#
26447# 2000/4/8
26448#	* add bsdos-pc-m, bsdos-pc-mono (Jeffrey C Honig)
26449#	* correct spelling error in entry name: bq300-rv was given as bg300-rv
26450#	  in esr's version.
26451#
26452# 2000/4/15
26453#	* add cud, ech, etc., to beterm based on feedback from Rico Tudor -TD
26454#	* correct color definition for ibm3164, make minor changes to other
26455#	  IBM terminal definitions based on recent terminfo descriptions -TD
26456#
26457# 2000/4/22
26458#	* add mgterm, from NetBSD -TD
26459#	* add alias sun-cgsix for sun-ss5 as per NetBSD
26460#	* change cons25w to use rs2 for reset rather than rs1 -TD
26461#	* add rc/sc to aixterm based on man page -TD
26462#
26463# 2000/5/13
26464#	* remove ncv from xterm-16color, xterm-256color
26465#
26466# 2000/6/10
26467#	* add kmous capability to linux to use Joerg Schoen's gpm patch.
26468#
26469# 2000/7/1
26470#	* add Eterm (Michael Jennings)
26471#
26472# 2000-07-18
26473#       * add amiga-vnc entry.
26474#
26475# 2000-08-12
26476#	* correct description of Top Gun Telnet.
26477#	* add kterm-color
26478#
26479# 2000-08-26
26480#	* add qansi* entries from QNX ftp site.
26481#
26482# 2000-09-16
26483#	* add Matrix Orbital entries by Eric Z. Ayers).
26484#	* add xterm-basic, xterm-sco entries, update related entries to XFree86
26485#	  4.0.1c -TD
26486#
26487# 2000-09-17
26488#	* add S0, E0 extensions to screen's entry -TD
26489#
26490# 2000-09-23
26491#	* several corrections based on tic's new parameter-checking code -TD
26492#	* modify xterm-r6 and similar rs2 sequences which had \E7...\E8
26493#	  bracketing sequences that reset video attributes (\E8 would restore
26494#	  them) -TD
26495#
26496# 2000-11-11
26497#	* rename cygwin to cygwinB19, adapt newer entry from Earnie Boyd -TD
26498#
26499# 2000-12-16
26500#	* improved scoansi, based on SCO man page, and testing console,
26501#	  scoterm with tack -TD
26502#
26503# 2001-01-27
26504#	* modify kterm to use acsc via SCS controls.
26505#
26506# 2001-02-10
26507#	* screen 3.9.8 allows xterm mouse controls to pass-through
26508#
26509# 2001-03-11
26510#	* remove spurious "%|" from some xterm entries.
26511#
26512# 2001-03-31
26513#	* modify 'screen' khome/kend to match screen 3.09.08
26514#	* add examples of 'screen' customization (screen.xterm-xfree86,
26515#	  screen.xterm-r6, screen.teraterm) -TD
26516#
26517# 2001-04-14
26518#	* correct definitions of shifted editing keys for xterm-xfree86 -TD
26519#	* add "Apple_Terminal" entries -Benjamin Sittler
26520#	* remove time-delays from "Apple_Terminal" entries -TD
26521#	* make sgr entries time-delays consistent with individual caps -TD
26522#
26523# 2001-05-05
26524#	* corrected/updated screen.xterm-xfree86
26525#
26526# 2001-05-19
26527#	* ELKS descriptions, from Federico Bianchi
26528#	* add u6 (CSR) to Eterm (Michael Jennings).
26529#
26530# 2001-07-21
26531#	* renamed "Apple_Terminal" entries to "nsterm" to work with Solaris's
26532#	  tic which handles names no longer than 14 characters.  Add
26533#	  corresponding descriptions for the Darwin PowerPC console named
26534#	  "xnuppc" -Benjamin Sittler
26535#
26536# 2001-09-01
26537#	* change kbs in mach entries to ^? (Marcus Brinkmann).
26538#
26539# 2001-11-17
26540#	* add "putty" entry -TD
26541#	* updated "Apple_Terminal" entries -Benjamin Sittler
26542#
26543# 2001-11-24
26544#	* add ms-vt100-color entry -TD
26545#	* add "konsole" entries -TD
26546#
26547# 2001-12-08
26548#	* update gnome entry to Redhat 7.2 -TD
26549#
26550# 2002-05-25
26551#	* add kf13-kf48 strings to cons25w -TD
26552#	* add pcvt25-color entry -TD
26553#	* changed a few /usr/lib/tabset -> /usr/share/tabset.
26554#	* improve some features of scoansi entry based on SCO's version -TD
26555#	* add scoansi-new entry corresponding to OpenServer 5.0.6
26556#
26557# 2002-06-15
26558#	* add kcbt to screen entry -TD
26559#
26560# 2002-06-22
26561#	* add rxvt-16color, ibm+16color, mvterm entries -TD
26562#
26563# 2002-09-28
26564#	* split out linux-basic entry, making linux-c inherit from that, and
26565#	  in turn linux (with cnorm, etc) inherit from linux-c-nc to reflect
26566#	  the history of this console type -TD
26567#	* scaled the linux-c terminfo entry to match linux-c-nc, i.e., the
26568#	  r/g/b parameters of initc are in the range 0 to 1000 -TD
26569#
26570# 2002-10-05
26571#	* minor fix for scale-factor of linux-c and linux-c-nc -TD
26572#
26573# 2002-11-09
26574#	* split-out vt100+keypad and vt220+keypad, fix interchanged ka3/kb2
26575#	  in the latter -TD
26576#
26577# 2002-11-16
26578#	* add entries for mterm (mterm, mterm-ansi, decansi) -TD
26579#	* ncr260wy350pp has only 16 color pairs -TD
26580#	* add sun-type4 from NetBSD -TD
26581#	* update xterm-xfree86 to current (xterm patch #170) -TD
26582#	* add screen-bce, screen-s entries -TD
26583#	* add xterm-1002, xterm-1003 entries -TD
26584#
26585# 2003-01-11
26586#	* update homepage for Top Gun Telnet/SSH
26587#
26588# 2003-01-25
26589#	* reduce duplication in emx entries, added emx-base -TD
26590#
26591# 2003-05-24
26592#	* corrected acs for screen.teraterm -TD
26593#	* add tkterm entry -TD
26594#
26595# 2003-07-15
26596#	* cygwin changes from Charles Wilson:
26597#	  misc/terminfo.src (nxterm|xterm-color): make xterm-color
26598#	  primary instead of nxterm, to match XFree86's xterm.terminfo
26599#	  usage and to prevent circular links.
26600#	  (rxvt): add additional codes from rxvt.org.
26601#	  (rxvt-color): new alias
26602#	  (rxvt-xpm): new alias
26603#	  (rxvt-cygwin): like rxvt, but with special acsc codes.
26604#	  (rxvt-cygwin-native): ditto.  rxvt may be run under XWindows, or
26605#	  with a "native" MSWin GUI.  Each takes different acsc codes,
26606#	  which are both different from the "normal" rxvt's acsc.
26607#	  (cygwin): cygwin-in-cmd.exe window.  Lots of fixes.
26608#	  (cygwinDBG): ditto.
26609#
26610# 2003-09-27
26611#	* update gnome terminal entries -TD
26612#
26613# 2003-10-04
26614#	* add entries for djgpp 2.03 and 2.04 -TD
26615#
26616# 2003-10-25
26617#	* add alias for vtnt -TD
26618#	* update xterm-xfree86 for XFree86 4.4 -TD
26619#
26620# 2003-11-22
26621#	* add linux-vt (Andrey V Lukyanov)
26622#
26623# 2003-12-20
26624#	* add screen.linux -TD
26625#
26626# 2004-01-10
26627#	* revised/improved entries for tvi912b, tvi920b (Benjamin Sittler)
26628#
26629# 2004-01-17
26630#	* add OpenNT/Interix/SFU entries (Federico Bianchi)
26631#	* add vt100+ and vt-utf8 entries -TD
26632#	* add uwin entry -TD
26633#
26634# 2004-03-27
26635#	* add sgr strings to several common entries lacking them, e.g.,
26636#	  screen, to make the entries more portable -TD
26637#	* remove cvvis from rxvt entry, since it is the same as cnorm -TD
26638#	* similar fixups for cvvis/cnorm various entries -TD
26639#
26640# 2004-05-22
26641#	* remove 'ncv' from xterm-256color (xterm patch #188) -TD
26642#
26643# 2004-06-26
26644#	* add mlterm -TD
26645#	* add xterm-xf86-v44 -TD
26646#	* modify xterm-new aka xterm-xfree86 to accommodate luit, which relies
26647#	  on G1 being used via an ISO-2022 escape sequence (report by
26648#	  Juliusz Chroboczek) -TD
26649#	* add 'hurd' entry -TD
26650#
26651# 2004-07-03
26652#	* make xterm-xf86-v43 derived from xterm-xf86-v40 rather than
26653#	  xterm-basic -TD
26654#	* align with xterm #192's use of xterm-new -TD
26655#	* update xterm-new and xterm-8bit for cvvis/cnorm strings -TD
26656#	* make xterm-new the default "xterm" -TD
26657#
26658# 2004-07-10
26659#	* minor fixes for emu -TD
26660#	* add emu-220
26661#	* add rmam/smam to linux (Trevor Van Bremen)
26662#	* change wyse acsc strings to use 'i' map rather than 'I' -TD
26663#	* fixes for avatar0 -TD
26664#	* fixes for vp3a+ -TD
26665#
26666# 2004-07-17
26667#	* add xterm-pc-fkeys -TD
26668#	* review/update gnome and gnome-rh90 entries (prompted by
26669#	  Redhat Bugzilla #122815) -TD
26670#	* review/update konsole entries -TD
26671#	* add sgr, correct sgr0 for kterm and mlterm -TD
26672#	* correct tsl string in kterm -TD
26673#
26674# 2004-07-24
26675#	* make ncsa-m rmacs/smacs consistent with sgr -TD
26676#	* add sgr, rc/sc and ech to syscons entries -TD
26677#	* add function-keys to decansi -TD
26678#	* add sgr to mterm-ansi -TD
26679#	* add sgr, civis, cnorm to emu -TD
26680#	* correct/simplify cup in addrinfo -TD
26681#	* corrections for gnome and konsole entries
26682#	  (Redhat Bugzilla #122815) -Hans de Goede
26683#	* modify DEC entries (vt220, etc), to add sgr string, and to use
26684#	  ISO-2022 strings for rmacs/smacs -TD
26685#
26686# 2004-07-31
26687#	* rename xterm-pc-fkeys to xterm+pcfkeys -TD
26688#
26689# 2004-08-07
26690#	* improved putty entry -Robert de Bath
26691#
26692# 2004-08-14
26693#	* remove dch/dch1 from rxvt because they are implemented inconsistently
26694#	  with the common usage of bce/ech -TD
26695#	* remove khome from vt220 (vt220's have no home key) -TD
26696#	* add rxvt+pcfkeys -TD
26697#
26698# 2004-08-21
26699#	* modify several entries to ensure xterm mouse and cursor visibility
26700#	  are reset in rs2 string:  hurd, putty, gnome, konsole-base, mlterm,
26701#	  Eterm, screen.  (The xterm entries are left alone - old ones for
26702#	  compatibility, and the new ones do not require this change) -TD
26703#
26704# 2004-08-28
26705#	* add morphos entry -Pavel Fedin
26706#	* modify amiga-8bit to add khome/kend/knp/kpp -Pavel Fedin
26707#	* corrected \E[5?l to \E[?5l in vt320 entries -TD
26708#
26709# 2004-11-20
26710#	* update wsvt25 entry -TD
26711#
26712# 2005-01-29
26713#	* update pairs for xterm-88color and xterm-256color to reflect the
26714#	  ncurses extended-color support -TD
26715#
26716# 2005-02-26
26717#	* modify sgr/sgr0 in xterm-new to improve tgetent's derived "me" -TD
26718#	* add aixterm-16color to demonstrate 16-color capability -TD
26719#
26720# 2005-04-23
26721#	* add media-copy to vt100 -TD
26722#	* corrected acsc string for vt52 -TD
26723#
26724# 2005-04-30
26725#	* add kUP, kDN (user-defined shifted up/down arrow) definitions for
26726#	  xterm-new -TD
26727#	* add kUP5, kUP6, etc., for xterm-new and rxvt -TD
26728#
26729# 2005-05-07
26730#	* re-corrected acsc string for vt52 -TD
26731#
26732# 2005-05-28
26733#	* corrected sun-il sgr string which referred to bold and underline -TD
26734#	* add sun-color entry -TD
26735#
26736# 2005-07-23
26737#	* modify sgr0 in several entries to reset alternate-charset as in the
26738#	  sgr string -TD
26739#	* modify sgr string of prism9 to better match the individual
26740#	  attributes -TD
26741#
26742# 2005-10-15
26743#	* correct order of use= in rxvt-basic -TD
26744#
26745# 2005-10-26
26746#	* use kind/kri as shifted up/down cursor keys for xterm-new -TD
26747#
26748# 2005-11-12
26749#	* other minor fixes to cygwin based on tack -TD
26750#	* correct smacs in cygwin (report by Baurzhan Ismagulov).
26751#
26752# 2006-02-18
26753#	* add nsterm-16color entry -TD
26754#	* remove ncv flag from xterm-16color -TD
26755#	* remove setf/setb from xterm-256color to match xterm #209 -TD
26756#	* update mlterm entry to 2.9.2 -TD
26757#
26758# 2006-02-25
26759#	* fixes to make nsterm-16color match report
26760#	  by Christian Ebert -Alain Bench
26761#
26762# 2006-04-22
26763#	* add xterm+256color building block -TD
26764#	* add gnome-256color, putty-256color, rxvt-256color -TD
26765#
26766# 2006-05-06
26767#	* add hpterm-color -TD
26768#
26769# 2006-06-24
26770#	* add xterm+pcc0, xterm+pcc1, xterm+pcc2, xterm+pcc3 -TD
26771#	* add gnome-fc5 (prompted by GenToo #122566) -TD
26772#	* remove obsolete/misleading comments about kcbt on Linux -Alain Bench
26773#	* improve xterm-256color by combining the ibm+16color setaf/setab
26774#	  strings with SGR 48.  The setf/setb strings also are cancelled here
26775#	  rather than omitted so derived entries will cancel those also -Alain
26776#	  Bench
26777#
26778# 2006-07-01
26779#	* add some notes regarding copyright to terminfo.src -TD
26780#	* use rxvt+pcfkeys in Eterm -TD
26781#	* remove km and flash from gnome, Eterm and rxvt since they do not work
26782#	  as one would expect (km sends ESC rather than setting the 8th bit
26783#	  of the key) -TD
26784#	* add/use ansi+enq, vt100+enq and vt102+enq -TD
26785#	* add konsole-solaris -TD
26786#
26787# 2006-07-22
26788#	* update xterm-sun and xterm-sco entries to match xterm #216 -TD
26789#	* modify is2/rs2 strings for xterm-r6 as per fix in xterm #148 -TD
26790#	* modify xterm-24 to inherit from "xterm" -TD
26791#	* add xiterm entry -TD
26792#	* add putty-vt100 entry -TD
26793#	* corrected spelling of Michael A Dorman's name, prompted by
26794#	  http://www.advogato.org/person/mdorman/diary.html -TD
26795#
26796# 2006-08-05
26797#	* add xterm+pcf0, xterm+pcf2 from xterm #216 -TD
26798#	* update xterm+pcfkeys to match xterm #216 -TD
26799#
26800# 2006-08-17
26801#	* make descriptions of xterm entries consistent with its terminfo -TD
26802#
26803# 2006-08-26
26804#	* add xfce, mgt -TD
26805#
26806# 2006-09-02
26807#	* correct acsc string in kterm -TD
26808#
26809# 2006-09-09
26810#	* add kon entry -TD
26811#	* remove invis from linux and related entries, add klone+sgr8 for those
26812#	  that implement the feature (or have not been shown to lack it) -TD
26813#
26814# 2006-09-23
26815#	* add ka2, kb1, kb3, kc2 to vt220-keypad as an extension -TD
26816#	* minor improvements to rxvt+pcfkeys -TD
26817#
26818# 2006-09-30
26819#	* fix a few typos in if/then/else expressions -TD
26820#
26821# 2006-10-07
26822#	* add several GNU Screen variations with 16- and 256-colors, and
26823#	  status line (Alain Bench).
26824#
26825# 2007-03-03
26826#	* add Newbury Data entries (Jean-Charles Billaud).
26827#
26828# 2007-06-10
26829#	* corrected xterm+pcf2 modifiers for F1-F4, match xterm #226 -TD
26830#
26831# 2007-07-14
26832#	* restore section of pre-ncurses-4.2 changelog to fix attribution -TD
26833#	* add konsole-256color entry -TD
26834#
26835# 2007-08-18
26836#	* add 9term entry (request by Juhapekka Tolvanen) -TD
26837#
26838# 2007-10-13
26839#	* correct kIC in rxvt+pcfkeys (prompted by Debian #446444) -TD
26840#	* add shift-control- and control-modified keys for rxvt editing
26841#	  keypad -TD
26842#	* update mlterm entry to 2.9.3 -TD
26843#	* add mlterm+pcfkeys -TD
26844#
26845# 2007-10-20
26846#	* move kLFT, kRIT, kind and kri capabilities from xterm-new to
26847#	  xterm+pcc0, etc., to make the corresponding building blocks reflect
26848#	  xterm's capabilities -TD
26849#	* add mrxvt entry -TD
26850#	* add xterm+r6f2, use in mlterm and mrxvt entries -TD
26851#
26852# 2007-11-03
26853#	* correct acsc strings for h19 and z100 (Benjamin Sittler)
26854#
26855# 2007-11-11
26856#	* use xterm-xf86-v44 for "xterm-xfree86", reflecting changes to
26857#	  xterm starting with xterm patch #216 -TD
26858#	* make legacy xterm entries such as xterm-24 inherit from xterm-old,
26859#	  to match xterm #230 -TD
26860#	* extend xterm+pccX entries to match xterm #230 -TD
26861#	* add xterm+app, xterm+noapp, from xterm #230 -TD
26862#	* add/use xterm+pce2 from xterm #230, in xterm+pcfkeys -TD
26863#
26864# 2008-04-19
26865#	* add screen.rxvt -TD
26866#
26867# 2008-04-28
26868#	* add screen+fkeys (prompted by Debian #478094) -TD
26869#
26870# 2008-06-28
26871#	* add screen.mlterm -TD
26872#	* improve mlterm and mlterm+pcfkeys -TD
26873#
26874# 2008-08-23
26875#	* add Eterm-256color, Eterm-88color -TD
26876#	* add rxvt-88color -TD
26877#
26878# 2008-10-12
26879#	* add teraterm4.59 entry, use that as primary teraterm entry, rename
26880#	  original to teraterm2.3 -TD
26881#	* update "gnome" to 2.22.3 -TD
26882#	* update "konsole" to 1.6.6 -TD
26883#	* add "aterm" -TD
26884#	* add "linux2.6.26" -TD
26885#
26886# 2008-11-15
26887#	* change several \E[2g (clear tab at current column) to \E[3g
26888#	  (clear all tabs) to match definition for tbc capability -TD
26889#
26890# 2008-11-29
26891#	* add eterm-color -TD
26892#
26893# 2009-01-10
26894#	* add screen.Eterm -TD
26895#
26896# 2009-03-28
26897#	* correct typo in pfkey of ansi.sys-old
26898#	  (report by Kalle Olavi Niemitalo)
26899#	* move function- and cursor-keys from emx-base to ansi.sys, and create
26900#	  a pfkey capability which handles F1-F48 -TD
26901#
26902# 2009-05-02
26903#	* add vwmterm entry (Bryan Christ)
26904#
26905# 2009-09-19
26906#	* change ncv and op capabilities in sun-color to match Sun's entry for
26907#	  this (report by Laszlo Peter)
26908#	* improve interix smso by using reverse rather than bold (report by
26909#	  Kristof Zelechovski).
26910#
26911# 2009-10-03
26912#	* remove unnecessary kcan assignment to ^C from putty (Sven Joachim)
26913#	* add linux-16color (Benjamin Sittler)
26914#	* correct initc capability of linux-c-nc end-of-range (Benjamin Sittler)
26915#	* similar change for dg+ccc and dgunix+ccc (Benjamin Sittler)
26916#	* add ccc and initc capabilities to xterm-16color -TD
26917#
26918# 2009-10-31
26919#	* updated nsterm* entries (Benjamin Sittler, prompted by GenToo #206201)
26920#
26921# 2009-12-12
26922#	* updated nsterm* entries (Benjamin Sittler, Emanuele Giaquinta)
26923#
26924# 2009-12-19
26925#	* add bw (auto-left-margin) to nsterm* entries (Benjamin Sittler)
26926#	* rename minix to minix-1.7, add minix entry for Minix3 -TD
26927#
26928# 2009-12-26
26929#	* add bterm (bogl 0.1.18) -TD
26930#	* minor fix to rxvt+pcfkeys -TD
26931#
26932# 2010-02-06
26933#	* update mrxvt to 0.5.4, add mrxvt-256color -TD
26934#
26935# 2010-02-13
26936#	* add several screen-bce.XXX entries -TD
26937#
26938# 2010-02-23
26939#	* modify screen-bce.XXX entries to exclude ech, since screen's color
26940#	  model does not clear with color for that feature -TD
26941#
26942# 2010-03-20
26943#	* rename atari and st52 to atari-old, st52-old, use newer entries from
26944#	  FreeMiNT by Guido Flohr (from patch/report by Alan Hourihane).
26945#
26946# 2010-06-12
26947#	* add mlterm-256color entry -TD
26948#
26949# 2010-07-17
26950#	* add hard-reset for rs2 to wsvt25 to help ensure that reset ends
26951#	  the alternate character set (patch by Nicholas Marriott)
26952#
26953# 2010-08-28
26954#	* improve acsc for vt52 (Benjamin Sittler)
26955#	* modify nsterm entries for consistent sgr/sgr0 -TD
26956#	* modify xnuppc entries for consistent sgr/sgr0 -TD
26957#	* add invis to tek4115 sgr -TD
26958#
26959# 2010-09-11
26960#	* reformat acsc strings to canonical format -TD
26961#
26962# 2010-09-25
26963#	* add "XT" capability to entries for terminals that support both
26964#	  xterm-style mouse- and title-controls, for "screen" which
26965#	  special-cases TERM beginning with "xterm" or "rxvt" -TD
26966#
26967# 2010-10-02
26968#	* fill in no-parameter forms of cursor-movement where a parameterized
26969#	  form is available -TD
26970#	* fill in missing cursor controls where the form of the controls is
26971#	  ANSI -TD
26972#	* add parameterized cursor-controls to linux-basic (report by Dae) -TD
26973#
26974# 2010-10-09
26975#	* correct comparison used for setting 16-colors in linux-16color
26976#	  entry (Novell #644831) -TD
26977#	* improve linux-16color entry, using "dim" for color-8 which makes it
26978#	  gray rather than black like color-0 -TD
26979#
26980# 2010-11-20
26981#	* make "vte" the principal entry defining "gnome", since GNOME terminal
26982#	  is merely one of several terminals whose behavior is provided by this
26983#	  library -TD
26984#
26985# 2010-11-27
26986#	* fix typo in rmso for tek4106 -Goran Weinholt
26987#
26988# 2010-12-11
26989#	* suppress ncv in screen entry, allowing underline -Alejandro R. Sedeno
26990#	* also suppress ncv in konsole-base -TD
26991#
26992# 2011-02-05
26993#	* add U8 feature to denote entries for terminal emulators which do not
26994#	  support VT100 SI/SO when processing UTF-8 encoding -TD
26995#	* add xterm-utf8 as a demo of the U8 feature -TD
26996#
26997# 2011-02-20
26998#	* add cons25-debian entry (Brian M Carlson, Debian #607662).
26999#
27000# 2011-06-11
27001#	* update minix entry to minix 3.2 (Thomas Cort).
27002#
27003# 2011-07-09
27004#	* fix inconsistent tabset path in pcmw (Todd C. Miller).
27005#	* remove a backslash which continued comment, obscuring altos3
27006#	  definition with OpenBSD toolset (Nicholas Marriott).
27007#
27008# 2011-07-16
27009#	* add/use xterm+tmux chunk from xterm #271 -TD
27010#	* resync xterm-new entry from xterm #271 -TD
27011#	* add E3 extended capability to linux-basic (Miroslav Lichvar)
27012#	* add linux2.2, linux2.6, linux3.0 entries to give context for E3 -TD
27013#	* add SI/SO change to linux2.6 entry (Debian #515609) -TD
27014#
27015# 2011-07-21
27016#	* add kich1 to sun (Yuri Pankov)
27017#	* use bold rather than reverse for smso in sun-color (Yuri Pankov).
27018#
27019# 2011-08-06
27020#	* corrected k9 in dg460-ansi, add other features based on manuals -TD
27021#
27022# 2011-08-20
27023#	* minor cleanup of X-terminal emulator section -TD
27024#	* add terminator entry -TD
27025#	* add simpleterm entry -TD
27026#
27027# 2011-09-10
27028#	* add xterm+kbs fragment from xterm #272 -TD
27029#
27030# 2011-11-12
27031#	* add pccon entries for OpenBSD console (Alexei Malinin)
27032#
27033# 2011-12-17
27034#	* corrected old changelog comments -TD
27035#
27036# 2011-11-24
27037#	* add putty-sco -TD
27038#
27039# 2012-01-28
27040#	* add mach-gnu (Samuel Thibault)
27041#	* add mach-gnu-color, tweaks to mach-gnu -TD
27042#	* make sgr for sun-color agree with smso -TD
27043#	* make sgr for prism9 agree with other caps -TD
27044#	* make sgr for icl6404 agree with other caps -TD
27045#	* make sgr for ofcons agree with other caps -TD
27046#	* make sgr for att5410v1, att4415, att620 agree with other caps -TD
27047#	* make sgr for aaa-unk, aaa-rv agree with other caps -TD
27048#	* make sgr for avt-ns agree with other caps -TD
27049#
27050# 2012-02-11
27051#	* make sgr for xterm-pcolor agree with other caps -TD
27052#	* make sgr for att5425 agree with other caps -TD
27053#	* make sgr for att630 agree with other caps -TD
27054#	* make sgr for linux entries agree with other caps -TD
27055#	* make sgr for tvi9065 agree with other caps -TD
27056#	* make sgr for ncr260vt200an agree with other caps -TD
27057#	* make sgr for ncr160vt100pp agree with other caps -TD
27058#	* make sgr for ncr260vt300an agree with other caps -TD
27059#	* make sgr for aaa-60-dec-rv, aaa+dec agree with other caps -TD
27060#	* make sgr for cygwin, cygwinDBG agree with other caps -TD
27061#
27062# 2012-03-31
27063#	* correct order of use-clauses in st-256color -TD
27064#
27065# 2012-04-01
27066#	* revert 2011-07-16 change to "linux" alias, return to "linux2.2" -TD
27067#
27068# 2012-04-14
27069#	* document all of the user-defined capabilities in one place -TD
27070#	* add XT to some places to improve usefulness for other applications
27071#	  than screen, which would like to pretend that xterm's title is
27072#	  a status-line. -TD
27073#	* change use-clauses in ansi-mtabs, hp2626, and hp2622 based on review
27074#	  of ordering and overrides -TD
27075#
27076# 2012-04-21
27077#	* add msgr to vt420, similar DEC vtXXX entries -TD
27078#	* add several missing vt420 capabilities from vt220 -TD
27079#	* factor out ansi+pp from several entries -TD
27080#	* change xterm+sl and xterm+sl-twm to include only the status-line
27081#	  capabilities and not "use=xterm", making them more generally useful
27082#	  as building-blocks -TD
27083#	* add dec+sl building block, as example -TD
27084#
27085# 2012-04-28
27086#	* fix some inconsistencies between vt320/vt420, e.g., cnorm/civis -TD
27087#	* add eslok flag to dec+sl -TD
27088#	* dec+sl applies to vt320 and up -TD
27089#	* drop wsl width from xterm+sl -TD
27090#	* reuse xterm+sl in putty and nsca-m -TD
27091#	* add ansi+tabs to vt520 -TD
27092#	* add ansi+enq to vt220-vt520 -TD
27093#
27094# 2012-05-05
27095#	* remove p6 (bold) from opus3n1+ for consistency -TD
27096#	* remove acs stuff from env230 per clues in Ingres termcap -TD
27097#	* modify env230 sgr/sgr0 to match other capabilities -TD
27098#	* modify smacs/rmacs in bq300-8 to match sgr/sgr0 -TD
27099#	* make sgr for dku7202 agree with other caps -TD
27100#	* make sgr for ibmpc agree with other caps -TD
27101#	* make sgr for tek4107 agree with other caps -TD
27102#	* make sgr for ndr9500 agree with other caps -TD
27103#	* make sgr for sco-ansi agree with other caps -TD
27104#	* make sgr for d410 agree with other caps -TD
27105#	* make sgr for d210 agree with other caps -TD
27106#	* make sgr for d470c, d470c-7b agree with other caps -TD
27107#
27108# 2012-05-12
27109#	* rewrite vt520 entry based on vt420 -TD
27110#	* corrected 'op' for bterm (report by Samuel Thibault) -TD
27111#
27112# 2012-06-02
27113#	* add kdch1 to wsvt25 entry from NetBSD CVS (reported by David Lord,
27114#	  analysis by Martin Husemann).
27115#	* add cnorm/civis to wsvt25 entry from NetBSD CVS (report/analysis by
27116#	  Onno van der Linden).
27117#	* add kdch1 aka "Remove" to vt220 and vt220-8 entries -TD
27118#	* add kdch1, etc., to qvt108 -TD
27119#	* add dl1/il1 to some entries based on dl/il values -TD
27120#	* add dl to simpleterm -TD
27121#
27122# 2012-06-10
27123#	* modify some older xterm entries to align with xterm source -TD
27124#	* separate "xterm-old" alias from "xterm-r6" -TD
27125#
27126# 2012-07-28
27127#	* add E3 to xterm-basic and putty -TD
27128#
27129# 2012-08-11
27130#	* add nsterm-256color, make this the default nsterm -TD
27131#	* remove bw from nsterm-bce, per testing with tack -TD
27132#
27133# 2012-10-12
27134#       * add vte-2012, gnome-2012, making these the defaults for vte/gnome
27135#	  (patch by Christian Persch).
27136#
27137# 2012-11-02
27138#	* reviewed vte-2012, reverted most of the change since it was incorrect
27139#	  based on testing with tack -TD
27140#	* un-cancel the initc in vte-256color, since this was implemented
27141#	  starting with version 0.20 in 2009 -TD
27142#
27143# 2013-03-16
27144#	* correct typo in sgr string for sun-color,
27145#	  add bold for consistency with sgr,
27146#	  change smso for consistency with sgr -TD
27147#	* correct typo in sgr string for terminator -TD
27148#	* add blink to the attributes masked by ncv in linux-16color (report
27149#	  by Benjamin Sittler)
27150#
27151# 2013-03-23
27152#	* change initialization for vt220, similar entries for consistency
27153#	  with cursor-key strings (NetBSD #47674) -TD
27154#	* further improvements to linux-16color (Benjamin Sittler)
27155#
27156# 2013-05-11
27157#	* move nsterm-related entries out of "obsolete" section to more
27158#	  plausible "ansi consoles" -TD
27159#	* additional cleanup of table-of-contents by reordering -TD
27160#
27161# 2013-06-07
27162#	* added note to clarify Terminal.app's non-emulation of the various
27163#	  terminal types listed in the preferences dialog -TD
27164#
27165# 2013-11-02
27166#	* use TS extension to describe xterm's title-escapes -TD
27167#	* modify terminator and nsterm-s to use xterm+sl-twm building block -TD
27168#	* update hurd.ti, add xenl to reflect 2011-03-06 change in
27169#	  http://git.savannah.gnu.org/cgit/hurd/hurd.git/log/console/display.c
27170#	  (Debian #727119).
27171#	* simplify pfkey expression in ansi.sys -TD
27172#
27173# 2013-11-10
27174#	* split-out building blocks xterm+sm+1002 and xterm+sm+1003 -TD
27175#
27176# 2014-02-22
27177#	* updated notes for wsvt25 based on tack and vttest -TD
27178#	* add teken entry to show actual properties of FreeBSD's "xterm"
27179#	  console -TD
27180#
27181# 2014-03-22
27182#	* add terminology entry -TD
27183#	* add mlterm3 entry, use that as "mlterm" -TD
27184#	* inherit mlterm-256color from mlterm -TD
27185#
27186# 2014-03-23
27187#	* fix typo in "mlterm" entry (report by Gabriele Balducci) -TD
27188#
27189# 2014-03-30
27190#	* cancel ccc in putty-256color and konsole-256color for consistency
27191#	  with the cancelled initc capability (patch by Sven Zuhlsdorf).
27192#	* add xterm+256setaf building block for various terminals which only
27193#	  get the 256-color feature half-implemented -TD
27194#	* updated "st" entry (leaving the 0.1.1 version as "simpleterm") to
27195#	  0.4.1 -TD
27196#
27197# 2014-05-03
27198#	* add vt520ansi (Mike Gran)
27199#
27200# 2014-05-24
27201#	* correct several entries which had termcap-style padding used in
27202#	  terminfo: adm21, aj510, alto-h19, att605-pc, x820 -TD
27203#	* correct syntax for padding in some entries: dg211, h19 -TD
27204#	* correct ti924-8 which had confused padding versus octal escapes -TD
27205#	* correct padding in sbi entry -TD
27206#
27207# 2014-06-07
27208#	* update xterm-new to xterm patch #305 -TD
27209#	+ change screen's smso to use SGR 7 (ECMA-80 reverse) rather than SGR 3
27210#	  (italic).  This was a long-ago typo in screen 3.1.1 which was
27211#	  overlooked until a few terminal emulators implemented the feature -TD
27212#
27213# 2014-06-09
27214#	> fix regression in screen terminfo entries (reports by Christian
27215#	  Ebert, Gabriele Balducci) -TD
27216#	+ revert the change to screen; see notes for why this did not work -TD
27217#	+ cancel sitm/ritm for entries which extend "screen", to work around
27218#	  screen's hardcoded behavior for SGR 3 -TD
27219#
27220# 2014-06-14
27221#	+ modify sgr for screen.xterm-new to support dim capability -TD
27222#	+ add dim capability to nsterm+7 -TD
27223#	+ cancel dim capability for iterm -TD
27224#	+ add dim, invis capabilities to vte-2012 -TD
27225#	+ add sitm/ritm to konsole-base and mlterm3 -TD
27226#
27227# 2014-10-06
27228#	+ add xterm-1005 and xterm-1006 entries, with suggested extension
27229#	  capability "xm" -TD
27230#
27231# 2014-10-07
27232#	+ update test-report for mrxvt -TD
27233#
27234# 2014-10-11
27235#	+ add xterm-x10mouse, xterm-x11mouse, etc. -TD
27236#
27237# 2014-10-18
27238#	+ reviewed terminology 0.6.1, add function key definitions.  None of
27239#	  the vt100-compatibility issues were improved -TD
27240#
27241# 2015-04-22
27242#	+ add 'dim' capability to screen entry (report by Leonardo B Schenkel)
27243#	+ add several key definitions to nsterm-bce to match preconfigured
27244#	  keys, e.g., with OSX 10.9 and 10.10 (report by Leonardo B Schenkel)
27245#
27246# 2015-05-02
27247#	+ remove unnecessary ';' from E3 capabilities -TD
27248#	+ add tmux entry, derived from screen (patch by Nicholas Marriott).
27249#	+ split-out recent change to nsterm-bce as nsterm-build326, and add
27250#	  nsterm-build342 to reflect changes with successive releases of OSX
27251#	  (discussion with Leonardo B Schenkel)
27252#	+ add xon, ich1, il1 to ibm3161 (patch by Stephen Powell,
27253#	  Debian #783806)
27254#
27255# 2015-05-17
27256#	+ remove screen-bce.mlterm, since mlterm does not do "bce" -TD
27257#	+ add several screen.XXX entries to support the respective variations
27258#	  for 256 colors -TD
27259#
27260# 2015-05-23
27261#	+ add putty+fnkeys* building-block entries -TD
27262#
27263# 2015-05-30
27264#	+ remove spurious "%;" from st entry (report by Daniel Pitts) -TD
27265#	+ add vte-2014, update vte to use that -TD
27266#
27267# 2015-06-27
27268#	+ comment-out "screen.xterm" entry, and inherit screen.xterm-256color
27269#	  from xterm-new (report by Richard Birkett) -TD
27270#
27271# 2015-07-25
27272#	+ add status line to tmux via xterm+sl (patch by Nicholas Marriott).
27273#	+ fixes for st 0.5 from testing with tack -TD
27274#
27275# 2015-10-24
27276#	+ updated minitel entries to fix kel problem with emacs, and add
27277#	  minitel1b-nb (Alexandre Montaron).
27278#	+ reviewed/updated nsterm entry Terminal.app in OSX -TD
27279#	+ replace some dead URLs in commands with equivalents from the
27280#	  Internet Archive -TD
27281#
27282# 2015-11-14
27283#	+ add bold to pccon+sgr+acs and pccon-base (Tati Chevron).
27284#	+ add keys f12-f124 to pccon+keys (Tati Chevron).
27285#
27286# 2015-11-21
27287#	+ fix some inconsistencies in the pccon* entries -TD
27288#
27289# 2015-11-28
27290#	+ add viewdata (Alexandre Montaron).
27291#
27292# 2016-01-16
27293#	+ tidy up comments about hardcoded 256color palette (report by
27294#	  Leonardo Brondani Schenkel) -TD
27295#	+ add putty-noapp entry, and amend putty entry to use application mode
27296#	  for better consistency with xterm (report by Leonardo Brondani
27297#	  Schenkel) -TD
27298#
27299# 2016-04-23
27300#	+ add 'oc' capability to xterm+256color, allowing palette reset for
27301#	  xterm -TD
27302#
27303# 2016-05-14
27304#	+ modify linux2.6 entry to improve line-drawing -TD
27305#	+ make linux3.0 entry the default linux entry (Debian #823658) -TD
27306#
27307# 2016-05-29
27308#	+ modify rs1 for xterm-16color, xterm-88color and xterm-256color to
27309#	  reset palette using "oc" string as in linux -TD
27310#
27311# 2016-06-11
27312#	+ use ANSI reply for u8 in xterm-new, to reflect vt220-style responses
27313#	  that could be returned -TD
27314#	+ added a few capabilities fixed in recent vte -TD
27315#
27316# 2016-08-17
27317#	+ correct a typo in interix -TD
27318#
27319# 2016-09-24
27320#	+ updated minitel entries to use status line with screen(1), as well as
27321#	  printing special G2 videotex chars like french accentuated glyph
27322#	  using special cap XC= (patch by Alexandre Montaron).
27323#
27324# 2016-10-01
27325#	+ add linux-m1 minitel entries (patch by Alexandre Montaron).
27326#	+ correct rs2 string for vt100-nam -TD
27327#
27328# 2016-11-26
27329#	+ modify linux-16color to not mask dim, standout or reverse with the
27330#	  ncv capability -TD
27331#	+ add 0.1sec mandatory delay to flash capabilities using the VT100
27332#	  reverse-video control -TD
27333#	+ omit selection of ISO-8859-1 for G0 in enacs capability from linux2.6
27334#	  entry, to avoid conflict with the user-defined mapping.  The reset
27335#	  feature will use ISO-8859-1 in any case (Mikulas Patocka).
27336#
27337# 2016-12-30
27338#	+ merge current st description (report by Harry Gindi) -TD
27339#
27340# 2016-12-31
27341#	+ modify flash capability for linux and wyse entries to put the delay
27342#	  between the reverse/normal escapes rather than after -TD
27343#
27344# 2017-01-28
27345#	+ minor comment-fixes to help automate links to bug-urls -TD
27346#	+ add dvtm, dvtm-256color -TD
27347#	+ add settings corresponding to xterm-keys option to tmux entry to
27348#	  reflect upcoming change to make that option "on" by default
27349#	  (patch by Nicholas Marriott).
27350#	+ uncancel Ms in tmux entry (Harry Gindi, Nicholas Marriott).
27351#	+ add dumb-emacs-ansi -TD
27352#
27353# 2017-03-05
27354#	+ correct a few spelling errors in comments -TD
27355#	+ add fbterm -TD
27356#
27357# 2017-03-11
27358#	+ add vt100+4bsd building block, use that for older terminals rather
27359#	  than "vt100" which is now mostly used as a building block for
27360#	  terminal emulators -TD
27361#	+ modify vt100 rs2 string to reset vt52 mode and scrolling regions
27362#	  (report/analysis by Robert King) -TD
27363#
27364# 2017-04-01
27365#	+ minor fixes for vt100+4bsd, e.g., delay in sgr for consistency -TD
27366#	+ add smso for env230, to match sgr -TD
27367#	+ remove p7/protect from sgr in fbterm -TD
27368#	+ drop setf/setb from fbterm; setaf/setab are enough -TD
27369#	+ make xterm-pcolor sgr consistent with other capabilities -TD
27370#	+ add rmxx/smxx ECMA-48 strikeout extension to tmux and xterm-basic
27371#	  (discussion with Nicholas Marriott)
27372#
27373# 2017-04-22
27374#	+ correct missing comma-separator between string capabilities in
27375#	  icl6402 and m2-nam -TD
27376#	+ update formatting with ncurses 6.0.20170422 -TD
27377#	+ restore rmir/smir in ansi+idc to better match original ansiterm+idc,
27378#	  add alias ansiterm (report by Robert King).
27379#
27380# 2017-05-13
27381#	+ reformatted using hexadecimal numbers to improve readability -TD
27382#
27383# 2017-07-29
27384#	+ update interix entry using tack and SFU on Windows 7 Ultimate -TD
27385#	+ use ^? for kdch1 in interix (reported by Jonathan de Boyne Pollard)
27386#	+ add "rep" to xterm-new, available since 1997/01/26 -TD
27387#	+ move SGR 24 and 27 from vte-2014 to vte-2012 (request by Alain
27388#	  Williams) -TD
27389#
27390# 2017-08-16
27391#	+ update "iterm" entry -TD
27392#	+ add "iterm2" entry (report by Leonardo Brondani Schenkel) -TD
27393#
27394# 2017-08-18
27395#	+ update notes on user-defined capabilities -TD
27396#
27397# 2017-08-26
27398#	+ fixes for "iterm2" (report by Leonardo Brondani Schenkel) -TD
27399#
27400# 2017-11-11
27401#	+ add "op" to xterm+256setaf -TD
27402#	+ reviewed terminology 1.0.0 -TD
27403#	+ reviewed st 0.7 -TD
27404#
27405# 2017-11-18
27406#	+ modify old terminology entry and a few other terminal emulators to
27407#	  account for xon -TD
27408#	+ correct sgr string for tmux, which used screen's "standout" code
27409#	  rather than the standard code (patch by Roman Kagan)
27410#	+ correct sgr/sgr0 strings in a few other cases reported by tic, making
27411#	  those correspond to the non-sgr settings where they differ, but
27412#	  otherwise use ECMA-48 consistently:
27413#	  jaixterm, aixterm, att5420_2, att4424, att500, decansi, d410-7b,
27414#	  dm80, hpterm, emu-220, hp2, iTerm2.app, mterm-ansi, ncrvt100an,
27415#	  st-0.7, vi603, vwmterm -TD
27416#
27417# 2017-12-30
27418#	+ add xterm+noalt, xterm+titlestack, xterm+alt1049, xterm+alt+title
27419#	  blocks from xterm #331 -TD
27420#	+ add xterm+direct, xterm+indirect, xterm-direct entries from xterm
27421#	  #331 -TD
27422#	+ modify xterm+256color and xterm+256setaf to use correct number of
27423#	  color pairs, for ncurses 6.1 -TD
27424#	+ add rs1 capability to xterm-256color -TD
27425#	+ modify xterm-r5, xterm-r6 and xterm-xf86-v32 to use xterm+kbs to
27426#	  match xterm #272, reflecting packager's changes -TD
27427#	+ remove "boolean" Se, Ss from st-0.7 -TD
27428#
27429# 2018-01-04
27430#	+ add konsole-direct and st-direct -TD
27431#	+ remove unsupported "Tc" capability from st-0.7; use st-direct if
27432#	  direct-colors are wanted -TD
27433#
27434# 2018-01-17
27435#	+ add vte-direct -TD
27436#	+ add XT, hpa, indn, and vpa to screen, and invis, E3 to tmux (patch by
27437#	  Pierre Carru)
27438#
27439# 2018-01-21
27440#	+ use xterm+sm+1006 in xterm-new, vte-2014 -TD
27441#	+ use xterm+x11mouse in iterm, iterm2, mlterm3 because xterm's 1006
27442#	  mode does not work with those programs.  konsole is debatable -TD
27443#	+ add "termite" entry (report by Markus Pfeiffer) -TD
27444#
27445# 2018-01-27
27446#	+ trim "XT" from screen entry -TD
27447#	+ modify iterm to use xterm+sl-twm building block -TD
27448#	+ mark konsole-420pc, konsole-vt100, konsole-xf3x obsolete reflecting
27449#	  konsole's removal in 2008 -TD
27450#	+ expanded the history section of konsole to explain its flawed
27451#	  imitation of xterm's keyboard -TD
27452#	+ use xterm+x11mouse in screen.* entries because screen does not yet
27453#	  support xterm's 1006 mode -TD
27454#	+ add nsterm-build400 for macOS 10.13 -TD
27455#	+ add ansi+idc1, use that in ansi+idc adding dch for consistency -TD
27456#	+ update vte to vte-2017 -TD
27457#	+ add ecma+strikeout to vte-2017 -TD
27458#	+ add iterm2-direct -TD
27459#	+ updated teraterm, added teraterm-256color -TD
27460#	+ add mlterm-direct -TD
27461#	+ add descriptions for ANSI building-blocks -TD
27462#
27463# 2018-02-24
27464#	+ correct Ss/Ms interchange in st-0.7 entry (tmux #1264) -TD
27465#	+ fix remaining flash capabilities with trailing mandatory delays -TD
27466#
27467# 2018-03-17
27468#	+ trim some redundant capabilities from st-0.7 -TD
27469#	+ trim unnecessary setf/setb from interix -TD
27470#
27471# 2018-05-19
27472#	+ trim spurious whitespace from tmux in 2018-02-24 changes;
27473#	  fix some inconsistencies in/between tmux- and iterm2-entries for SGR
27474#	  (report by C Anthony Risinger)
27475#	+ improve iterm2 using some xterm features which it has adapted -TD
27476#
27477# 2018-06-30
27478#	+ add acsc string to vi200 (Nibby Nebbulous)
27479#	  add right/down-arrow to vi200's acsc -TD
27480#
27481# 2018-07-21
27482#	+ corrected acsc for wy50 -TD
27483#	+ add wy50 and wy60 shifted function-keys as kF1 to kF16 -TD
27484#	+ remove ansi+rep mis-added to interix in 2018-02-23 -TD
27485#
27486# 2018-07-28
27487#	+ fix typo in tvi955 -TD
27488#	+ corrected acsc for regent60 -TD
27489#	+ add alias n7900 -TD
27490#
27491# 2018-09-29
27492#	+ corrected acsc for tvi950 -TD
27493#	+ remove bogus kf0 from tvi950 -TD
27494#	+ added function-key definitions to agree with TeleVideo 950 manual -TD
27495#	+ add bel to tvi950 -TD
27496#	+ add shifted function-keys to regent60 -TD
27497#	+ renumber regent40 function-keys to match manual -TD
27498#	+ add cd (clr_eos) to adds200 -TD
27499#
27500# 2018-10-27
27501#	+ add OpenGL clients alacritty and kitty -TD
27502#	+ add Smulx for tmux, vte-2018 -Nicholas Marriott
27503#
27504# 2018-12-15
27505#	+ fix a typo in comments (Aaron Gyes).
27506#	+ add nsterm-build309 to replace nsterm-256color, assigning the latter
27507#	  as an alias of nsterm, to make mouse work with nsterm-256color -TD
27508#	+ base gnome-256color entry on "gnome", not "vte", for consistency -TD
27509#
27510# 2019-01-12
27511#	+ add nsterm-direct -TD
27512#	+ use SGR 1006 mouse for konsole-base -TD
27513#	+ use SGR 1006 mouse for putty -TD
27514#	+ add ti703/ti707, ti703-w/ti707-w (Robert Clausecker)
27515#
27516# 2019-02-23
27517#	+ fix typo in adds200 -TD
27518#
27519# 2019-03-30
27520#	+ add "screen5", to mention italics (report by Stefan Assmann)
27521#	+ modify description of xterm+x11hilite to eliminate unused p5 -TD
27522#
27523# 2019-05-18
27524#	+ update xterm-new to xterm patch #345 -TD
27525#	+ add/use xterm+keypad in xterm-new (report by Alain D D Williams) -TD
27526#	+ update terminator entry -TD
27527#	+ remove hard-tabs from ti703 (report by Robert Clausecker)
27528#	+ add Smol/Rmol for mintty, vte-2018 -Nicholas Marriott
27529#
27530# 2019-06-01
27531#	+ add rs1 to konsole, mlterm -TD
27532#
27533# 2019-06-08
27534#	+ add mintty, mintty-direct (Thomas Wolff)
27535# 2019-06-09
27536#	+ comment-out some user-defined capabilities in mintty+common to allow
27537#	  builds with existing releases 5.9-6.1 -TD
27538#
27539# 2019-06-30
27540#	+ add ms-terminal -TD
27541#	+ add vscode, vscode-direct -TD
27542#	+ use ecma+index in screen, st -TD
27543#
27544# 2019-07-06
27545#	+ add domterm -TD
27546#	+ improve comments for recent changes, add alias xterm.js -TD
27547#
27548# 2019-08-03
27549#	+ amend the change to screen, because tmux relies upon that entry
27550#	  and does not support that feature (Debian #933572) -TD
27551#	+ updated ms-terminal entry & notes -TD
27552#	+ updated kitty entry & notes -TD
27553#	+ updated alacritty+common entry & notes -TD
27554#	+ use xterm+sl-twm for consistency -TD
27555#
27556# 2019-09-22
27557#	+ correct a comment -TD
27558#
27559# 2019-10-26
27560#	+ modify linux-16color to accommodate Linux console driver change in
27561#	  early 2018 (report by Dino Petrucci).
27562#
27563# 2019-11-02
27564#	+ add "xterm-mono" to help packagers (report by Sven Joachim) -TD
27565#
27566# 2019-11-09
27567#	+ drop ich1 from rxvt-basic, Eterm and mlterm to improve compatibility
27568#	  with old non-curses programs -TD
27569#	+ reviewed st 0.8.2, updated some details -TD
27570#	+ use ansi+rep several places -TD
27571#
27572# 2020-01-12
27573#	+ update alacritty entries for 0.4.0 (prompted by patch by
27574#	  Christian Duerr) -TD
27575#
27576# 2020-01-18
27577#	+ spelling fixes per codespell -TD
27578#	+ improve xm example for xterm+x11mouse, xterm+sm+1006 -TD
27579#
27580# 2020-02-22
27581#	+ improve vt50h and vt52 based on DECScope manual -TD
27582#	+ add/use vt52+keypad and vt52-basic -TD
27583#
27584# 2020-04-18
27585#	+ use vt52+keypad in xterm-vt52, from xterm #354 -TD
27586#
27587# 2020-04-25
27588#	+ use vt100+fnkeys in putty -TD
27589#
27590# 2020-05-02
27591#	+ add details on the change to Linux SGR 21 in 2018 -TD
27592#	+ add xterm-direct16 and xterm-direct256 -TD
27593#
27594# 2020-05-03
27595#	+ fix some dead URLs -TD
27596#
27597# 2020-05-16
27598#	+ update notes on vscode / xterm.js -TD
27599#
27600# 2020-05-30
27601#	+ re-enable "bel" in konsole-base (report by Nia Huang)
27602#	+ add linux-s entry (patch by Alexandre Montaron).
27603#
27604# 2020-06-06
27605#	+ add xterm+256color2, xterm+88color2, to deprecate nonstandard usage
27606#	  in xterm+256color, xterm+88color -TD
27607#	+ add shifted Linux console keys in linux+sfkeys entry for
27608#	  screen.linux (report by Alexandre Montaron).
27609#	+ use vt100+enq in screen (report by Alexandre Montaron).
27610#	+ add screen.linux-s alias (suggested by Alexandre Montaron).
27611#
27612# 2020-07-11
27613#	+ fix pound-sign mapping in acsc of linux2.6 entry (report by Ingo
27614#	  Bruckl).
27615#
27616# 2020-08-28
27617#	+ correct icl6404 csr (report by Florian Weimer).
27618#	+ correct ti916 cup (report by Florian Weimer).
27619#	+ improve ndr9500 (report by Florian Weimer).
27620#
27621# 2020-09-05
27622#	+ correct description of vt330/vt340 (Ross Combs).
27623#
27624# 2020-09-19
27625#	+ update mlterm3 for 3.9.0 (report by Premysl Eric Janouch).
27626#
27627# 2020-09-29
27628#	+ add tmux-direct (tmux #2370)
27629#	+ simplify mlterm initialization with DECSTR -TD
27630#	+ change tmux's kbs to ^? (report by Premysl Eric Janouch)
27631#
27632# 2020-10-10
27633#	+ correct sgr in aaa+rv (report by Florian Weimer) -TD
27634#	+ fix some sgr inconsistencies in d230c, ibm6153, ibm6154,
27635#	  ncrvt100an -TD
27636#
27637# 2020-10-17
27638#	+ expanded notes about tek4107 -TD
27639#
27640# 2020-11-07
27641#	+ update kitty+common -TD
27642#	+ add putty+screen and putty-screen (suggested by Alexandre Montaron).
27643#
27644# 2020-11-28
27645#	+ add Smulx to alacritty (Christian Duerr).
27646#	+ add rep to PuTTY -TD
27647#	+ add putty+keypad -TD
27648#
27649# 2020-12-05
27650#	+ correct mlterm3 kf1-kf4 (Debian #975322) -TD
27651#	+ add flash to mlterm3 -TD
27652#
27653# 2020-12-27
27654#	+ update terminology to 1.8.1 -TD
27655#
27656# 2021-01-16
27657#	+ add comment for linux2.6 regarding CONFIG_CONSOLE_TRANSLATIONS
27658#	  (report by Patrick McDermott) -TD
27659#
27660# 2021-01-25
27661#	+ split-out att610+cvis, vt220+cvis, vt220+cvis8 -TD
27662#	+ add vt220-base, for terminal emulators which generally have not
27663#	  supported att610's blinking cursor control -TD
27664#	+ use vt220+cvis in vt220, etc -TD
27665#	+ use att610+cvis, xterm+tmux and ansi+enq in kitty -TD
27666#	+ use vt220+cvis in st, terminology, termite since they ignore
27667#	  blinking-cursor detail in att610+cvis -TD
27668#
27669# 2021-02-20
27670#	+ add/use vt220+pcedit and vt220+vtedit  -TD
27671#	+ add scrt/securecrt and absolute -TD
27672#	+ add nel to xterm-new, though supported since X11R5 -TD
27673#	+ add/use xterm+nofkeys -TD
27674#	+ move use of ecma+italics from xterm-basic to xterm+nofkeys -TD
27675#
27676# 2021-02-27
27677#	+ remove a duplicate "use" in xterm-vt220 -TD
27678#
27679# 2021-03-14
27680#	+ correct use-ordering in some xterm-direct flavors -TD
27681#
27682# 2021-03-20
27683#	+ add hterm, hterm-256color (Mike Frysinger)
27684#
27685# 2021-06-26
27686#	+ use default colors in pccon "op" -TD
27687#	+ correct rmacs/smacs in aaa+dec, aaa+rv -TD
27688#	+ add hpterm-color2 and hp98550-color (Martin Trusler)
27689#
27690# 2021-07-17
27691#	+ correct typo in "vip" comments (report by Nick Black), reviewed this
27692#	  against Glink manual -TD
27693#	+ fill in some missing pieces for pccon, to make it comparable to the
27694#	  vt220 entry -TD
27695#
27696# 2021-07-24
27697#	+ trim "flash" from pccon+base -TD
27698#	+ revert change for aaa+rv -TD
27699#	+ add workaround for Windows Terminal's problems with CR/LF mapping to
27700#	  ms-terminal (patch by Juergen Pfeifer).
27701#	+ review/update current Windows Terminal vs ms-terminal -TD
27702#
27703# 2021-07-31
27704#	+ add extensions in xterm+tmux and ecma+strikeout to ms-terminal,
27705#	  but cancel the non-working Cr and Ms capabilities -TD
27706#	+ add foot and foot-direct -TD
27707#
27708# 2021-08-15
27709#	+ fix missing "%d" for setaf/setab code 8-15 in xterm+direct16 (report
27710#	  by Florian Weimer) -TD
27711#
27712# 2021-08-16
27713#	+ corrected tsl capability for terminator -TD
27714#
27715# 2021-09-04
27716#	+ modify linux3.0 entry to reflect default mapping of shift-tab by
27717#	  kbd 1.14 (report by Jan Engelhardt) -TD
27718#
27719# 2021-09-11
27720#	+ add testing note for xterm-{hp|sco|sun} -TD
27721#	+ corrected description for ansi.sys-old -TD
27722#	+ add xterm+nopcfkeys, to fill in keys for xterm-hp, xterm-sun -TD
27723#	+ use hp+arrows in a few places -TD
27724#	+ use hp+pfk-cr in a few places -TD
27725#
27726# 2021-09-21
27727#	+ add kbeg to xterm+keypad to accommodate termcap applications -TD
27728#	+ add smglp and smgrp to vt420+lrmm, to provide useful data for the
27729#	  "tabs" +m option -TD
27730#
27731# 2021-10-09
27732#	+ fill in some details for infoton -TD
27733#	+ fix spelling/consistency in several descriptions -TD
27734#	+ use vt420+lrmm in vt420 -TD
27735#
27736# 2021-10-13
27737#	+ trim some redundant definitions -TD
27738#
27739# 2021-11-13
27740#	+ add xterm+sl-alt, use that in foot+base (report by Jonas Grosse
27741#	  Sundrup) -TD
27742#
27743# 2021-11-20
27744#	+ add dim, ecma+strikeout to st-0.6 -TD
27745#
27746# 2021-11-27
27747#	+ fix errata in description fields (report by Eric Lindblad) -TD
27748#	+ add x10term+sl, aixterm+sl, ncr260vp+sl, ncr260vp+vt, wyse+sl -TD
27749#
27750# 2022-01-23
27751#	+ update kitty -TD
27752#
27753# 2022-03-12
27754#	+ add xterm+acs building-block -TD
27755#	+ add xterm-p370, for use in older terminals -TD
27756#	+ add dec+sl to xterm-new, per patch #371 -TD
27757#	+ add mosh and mosh-256color -TD
27758#
27759# 2022-03-19
27760#	+ add xgterm -TD
27761#	+ correct setal in mintty/tmux entries, add to vte-2018 (report by
27762#	  Robert Lange)
27763#	+ add blink to vte-2018 (report by Robert Lange)
27764#
27765# 2022-03-26
27766#	+ update teken -TD
27767#	+ add teken-16color, teken-vt and teken-sc -TD
27768#	+ add a few missing details for vte-2018 (report by Robert Lange) -TD
27769#
27770# 2022-03-27
27771#	+ make description-fields distinct -TD
27772#
27773# 2022-04-30
27774#	+ modify samples for xterm mouse 1002/1003 modes to use 1006 mode, and
27775#	  also provide for focus in/out responses -TD
27776#
27777# 2022-05-28
27778#	+ expanded notes for teken/syscons -TD
27779#
27780# 2022-06-04
27781#	+ remove u6-u9 from teken-2018 -TD
27782#	+ set "xterm-new" to "xterm-p370", add "xterm-p371" -TD
27783#
27784# 2022-06-18
27785#	+ revise kon/kon2/jfbterm to undo "linux2.6" change to
27786#	  smacs/rmacs/enacs (Debian #1012800) -TD
27787#	+ amended note for att610+cvis0, as per documentation for att610,
27788#	  att620, att730 -TD
27789#
27790# 2022-06-25
27791#	+ correct dsl in dec+sl (report by Rajeev Pillai) -TD
27792#	+ add/use ansi+cpr, decid+cpr -TD
27793#
27794# 2022-07-03
27795#	+ use NQ to flag entries where the terminal does not support query and
27796#	  response -TD
27797#	+ use ansi+enq and decid+cpr in cases where the terminal probably
27798#	  supported the u6-u9 extension -TD
27799#	+ add/use apollo+vt132, xterm+alt47 -TD
27800#
27801# 2022-08-27
27802#	+ modify nsterm to use xterm+alt1049 (report by Paul Handly) -TD
27803#	+ modify putty to use xterm+alt1049 -TD
27804#
27805# 2022-12-24
27806#	+ add/use bracketed+paste to help identify terminals supporting this
27807#	  xterm feature (prompted by discussion with Bram Moolenaar) -TD
27808#
27809# 2022-12-29
27810#	+ correct PS vs PE names in bracketed+paste (report by Bram Moolenaar)
27811#	  -TD
27812#
27813# 2023-01-07
27814#	+ add comment to bracketed+paste explaining that vim patch 9.0.1117 is
27815#	  needed for use with the updated xterm descriptions (suggested by Bram
27816#	  Moolenaar).
27817#	+ add RV report+version (suggested by Bram Moolenaar).
27818#
27819# 2023-01-14
27820#	+ change RV to XR/xr, to avoid conflict with pre-existing usage in vim,
27821#	  to use RV/rv to denote DA2 and its response (discussion with Bram
27822#	  Moolenaar) -TD
27823#	+ add XF flag to xterm+focus so that termcap applications can be aware
27824#	  of terminals which may support focus in/out -TD
27825#	+ use xterm+focus in xterm-p370 and tmux -TD
27826#
27827# 2023-01-28
27828#	+ document XF, kxIN and kxOUT -TD
27829#	+ add note on sun/wscons/cmdtool/shelltool -TD
27830#
27831# 2023-04-01
27832#	+ remove DECCOLM+DECSCLM from foot (patch by Daniel Ekloef).
27833#
27834# 2023-04-08
27835#	+ add xterm+focus to alacritty+common (patch by Christian Duerr).
27836#
27837# 2023-05-08
27838#	+ add mode 1004 to xterm+sm+1006 from xterm #380 -TD
27839#
27840# 2023-06-05
27841#	+ add xterm+focus to foot+base (patch by Daniel Ekloef).
27842#
27843# 2023-07-08
27844#	+ add linux+kbs for terminals which imitate xterm's behavior with
27845#	  Linux -TD
27846#
27847# 2023-07-15
27848#	+ mention E3 in regard to user_caps(5) -TD
27849#
27850# 2023-08-12
27851#	+ add/use putty+cursor to reflect amending of modified cursor-keys in
27852#	  2021 -TD
27853#	+ add ecma+strikeout to putty -TD
27854#
27855# 2023-10-21
27856#	+ use oldxterm+sm+1006 in vte-2014 (report by Benno Schulenberg) -TD
27857#	+ add ansi+apparrows -TD
27858#
27859# 2023-10-28
27860#	+ move xterm focus mode 1004 from xterm+sm+1006 into xterm+focus as
27861#	  fe/fd capabilities, like vim (vim-pr #13440).
27862#
27863# 2023-11-11
27864#	+ used "infocmp -u" to help trim redundant capabilities -TD
27865#
27866# 2023-12-09
27867#	+ remove xterm+sm+1006 from tmux (Debian #1057688).
27868#	+ used "infocmp -u" to help trim redundant capabilities -TD
27869#
27870# 2023-12-16
27871#	+ used "infocmp -u" to help trim redundant capabilities -TD
27872#
27873# 2023-12-30
27874#	+ add ms-vt100-16color, winconsole -TD
27875#	+ add rio, rio-direct -TD
27876#	+ add mostlike -TD
27877#	+ add wezterm, contour -TD
27878#
27879# 2024-01-06
27880#	+ use ansi+arrows, ansi+apparrows, ansi+csr, ansi+erase, ansi+idc,
27881#	  ansi+idc1, ansi+idl, ansi+idl1, ansi+inittabs to trim -TD
27882#
27883# 2024-01-07
27884#	+ restore padding for wy520* and vt320-k311 (report by Sven Joachim).
27885#
27886# 2024-01-13
27887#	+ use ansi+local, ansi+local1, ansi+pp, ansi+rca, ansi+rca2, ansi+sgr
27888#	  to trim -TD
27889#
27890# 2024-01-14
27891#	+ use ansi+sgrbold, ansi+sgrdim, ansi+sgrso, ansi+sgrul, ansi+tabs
27892#	  ecma+color, ecma+sgr, vt100+4bsd, vt100+pfkeys, vt220+pcedit
27893#	  xterm+256color, xterm+acs, xterm+nopcfkeys, xterm+pcf2 to trim -TD
27894#
27895# 2024-01-27
27896#	+ amend change to z39-a (report by Sven Joachim).
27897#	+ use xterm+nopcfkeys, vt52-basic, dec+pp, dec+sl, vt52+arrows,
27898#	  hp+pfk+cr, klone+acs, klone+color, klone+sgr, ncr160wy50+pp
27899#	  to trim -TD
27900#	+ NetBSD-related fixes for x68k and wsvt52 (patch by Thomas Klausner)
27901#
27902# 2024-02-11
27903#	+ add vt100+noapp, vt100+noapp+pc, xterm+app+pc, xterm+decedit from
27904#	  xterm #389 -TD
27905#
27906# 2024-03-09
27907#	+ modify xgterm to work around line-drawing bug -TD
27908#	+ use CSI 3J in vte-2017 (report by Sven Joachim)
27909#
27910# 2024-05-25
27911#	+ review/update iTerm2 for 3.5.0 -TD
27912#
27913# 2024-07-27
27914#	+ modify wezterm, omitting its broken left/right margin feature (report
27915#	  by Thayne McCombs) -TD
27916#
27917# 2024-08-17
27918#	+ review/update foot for 1.18.1 -TD
27919#	+ add a note about DomTerm 3.2.0 -TD
27920#
27921# 2024-09-07
27922#	+ update comments -TD
27923#
27924# 2024-10-05
27925#	+ use xterm+alt+title in wezterm -TD
27926#	+ update comments -TD
27927#
27928# 2024-10-26
27929#	+ update ms-terminal -TD
27930#	+ add ms-terminal-direct -TD
27931#
27932# 2024-11-02
27933#	+ add extended-keys for djgpp 2.05 -TD
27934#
27935# 2024-12-28
27936#	+ add ghostty -TD
27937#
27938# 2025-01-04
27939#	+ cleanup use-clauses -TD
27940#	+ add linux+lockeys, xterm+r5+lockeys, xterm+r5+fkeys -TD
27941#	+ add vt220+ufkeys, vt220+sfkeys
27942#
27943# 2025-02-03
27944#	+ add note for ghostty 1.1.0 -TD
27945#
27946# 2025-02-08
27947#	+ update st (report by Alexander Kashpir) -TD
27948#
27949# 2025-02-15
27950#	+ minor fixes to comments (report by Sven Joachim) -TD
27951#
27952# 2025-03-01
27953#	+ add color to vt525 (Branden Robinson)
27954#	+ add vt520-w and vt525-w (Branden Robinson)
27955#
27956# 2025-03-29
27957#	+ add XM/xm to ms-terminal, to enable mouse with experimental Windows
27958#	  driver -TD
27959#
27960# 2025-04-03
27961#	+ add sclp -TD
27962#	+ add op to vt525 -TD
27963#
27964# 2025-04-05
27965#	+ update contour -TD
27966#
27967# 2025-04-12
27968#	+ add pangoterm -TD
27969#	+ add kf1 to kf5 to sclp (report by Werner Fink)
27970#	+ add vt100+pf1-pf4 -TD
27971#
27972# 2025-04-26
27973#	+ add illumos, sun-16color, sun-256color, sun-direct -TD
27974#	+ add wyse+cvis -TD
27975#
27976# 2025-05-03
27977#	+ update/correct some of the rv/xr strings, checked with tack -TD
27978#	+ use ansi+rca in sclp -TD
27979#	+ use vt220+pcedit in sclp (Werner Fink)
27980#	+ move some building blocks from illumos to sun-color, based on
27981#	  illumos source-history -TD
27982#	+ improve use-clauses: ansi+cup, ansi+idl1, ansi+rca, ansi+rca2,
27983#	  ansi+sgrso, ansi+sgrul -TD
27984#	+ add ecma+standout, ecma+underline -TD
27985#	+ add rv code for alacritty -TD
27986#	+ add rv/xr codes for contour, foot, ghostty, iterm2, kitty, konsole,
27987#	  vscode, vte, wezterm -TD
27988#
27989# 2025-05-10
27990#	+ add rv/xr codes for domterm, mintty, mlterm -TD
27991#	+ add xr code for putty -TD
27992#	+ update teraterm to 5.0 -TD
27993#	+ add rlogin-color -TD
27994#
27995# 2025-05-17
27996#	+ use bracketed+paste in nsterm, rlogin-color, screen, terminology -TD
27997#
27998# 2025-07-19
27999#	+ add xterm+keypad to pccon+base -TD
28000#
28001######## SHANTIH!  SHANTIH!  SHANTIH!
28002