xref: /dragonfly/contrib/ncurses/misc/terminfo.src (revision 984263bc)
1######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
2#
3# This version of terminfo.src is distributed with ncurses.
4# Report bugs to
5#	bug-ncurses@gnu.org
6#
7#	Version 10.2.1
8#	$Date: 2000/09/24 02:29:16 $
9#	terminfo syntax
10#
11#	Eric S. Raymond		(current maintainer)
12#	John Kunze, Berkeley
13#	Craig Leres, Berkeley
14#
15# Please e-mail changes to terminfo@thyrsus.com; the old termcap@berkeley.edu
16# address is no longer valid.  The latest version can always be found at
17# <http://www.tuxedo.org/terminfo>.
18#
19# PURPOSE OF THIS FILE:
20#
21# This file describes the capabilities of various character-cell terminals,
22# as needed by software such as screen-oriented editors.
23#
24# Other terminfo and termcap files exist, supported by various OS vendors
25# or as relics of various older versions of UNIX.  This one is the longest
26# and most comprehensive one in existence.  It subsumes not only the entirety
27# of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
28# termcap file, but also large numbers of vendor-maintained termcap and
29# terminfo entries more complete and carefully tested than those in historical
30# termcap/terminfo versions.
31#
32# Pointers to related resources (including the ncurses distribution) may
33# be found at <http://www.tuxedo.org/terminfo>.
34#
35# INTERNATIONALIZATION:
36#
37# This file uses only the US-ASCII character set (no ISO8859 characters).
38#
39# This file assumes a US-ASCII character set. If you need to fix this, start
40# by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
41# for your character set.  \E(A and \E)A enables the British character set
42# with the pound sign at position 2/3.
43#
44# In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
45# C1 characters are considered the first-byte set of the Japanese encodings,
46# so \E)0 should be avoided in <enacs> and initialization strings.
47#
48# FILE FORMAT:
49#
50# The version you are looking at may be in any of three formats: master
51# (terminfo with OT capabilities), stock terminfo, or termcap.  You can tell
52# which by the format given in the header above.
53#
54# The master format is accepted and generated by the terminfo tools in the
55# ncurses suite; it differs from stock (System V-compatible) terminfo only
56# in that it admits a group of capabilities (prefixed `OT') equivalent to
57# various obsolete termcap capabilities.  You can, thus, convert from master
58# to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
59# you have ncurses `tic -I' is nicer (among other things, it automatically
60# outputs entries in a canonical form).
61#
62# The termcap version is generated automatically from the master version
63# using tic -C.  This filtering leaves in the OT capabilities under their
64# original termcap names.  All translated entries fit within the 1023-byte
65# string-table limit of archaic termcap libraries except where explicitly
66# noted below.  Note that the termcap translation assumes that your termcap
67# library can handle multiple tc capabilities in an entry. 4.4BSD has this
68# capability.  Older versions of GNU termcap, through 1.3, do not.
69#
70# For details on these formats, see terminfo(5) in the ncurses distribution,
71# and termcap(5) in the 4.4BSD Unix Programmer's Manual.  Be aware that 4.4BSD
72# curses has been declared obsolete by the caretakers of the 4.4BSD sources
73# as of June 1995; they are encouraging everyone to migrate to ncurses.
74#
75# Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
76# no entry in this file has embedded comments.  This is so source translation
77# to termcap only has to carry over leading comments.  Also, no name field
78# contains embedded whitespace (such whitespace confuses rdist).
79#
80# Further note: older versions of this file were often installed with an editor
81# script (reorder) that moved the most common terminal types to the front of
82# the file.  This should no longer be necessary, as the file is now ordered
83# roughly by type frequency with ANSI/VT100 and other common types up front.
84#
85# Some information has been merged in from terminfo files distributed by
86# USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below).  Much information
87# comes from vendors who maintain official terminfos for their hardware
88# (notably DEC and Wyse).
89#
90# A detailed change history is included at the end of this file.
91#
92# FILE ORGANIZATION:
93#
94# Comments in this file begin with # - they cannot appear in the middle
95# of a terminfo/termcap entry (this feature had to be sacrificed in order
96# to allow standard terminfo and termcap syntax to be generated cleanly from
97# the master format).  Individual capabilities are commented out by
98# placing a period between the colon and the capability name.
99#
100# The file is divided up into major sections (headed by lines beginning with
101# the string "########") and minor sections (beginning with "####"); do
102#
103#	grep "^####" <file> | more
104#
105# to see a listing of section headings.  The intent of the divisions is
106# (a) to make it easier to find things, and (b) to order the database so
107# that important and frequently-encountered terminal types are near the
108# front (so that you'll get reasonable search efficiency from a linear
109# search of the termcap form even if you don't use reorder).  Minor sections
110# usually correspond to manufacturers or standard terminal classes.
111# Parenthesized words following manufacturer names are type prefixes or
112# product line names used by that manufacturers.
113#
114# HOW TO READ THE ENTRIES:
115#
116# The first name in an entry is the canonical name for the model or
117# type, last entry is a verbose description.  Others are mnemonic synonyms for
118# the terminal.
119#
120# Terminal names look like <manufacturer> <model> - <modes/options>
121# The part to the left of the dash, if a dash is present, describes the
122# particular hardware of the terminal.  The part to the right may be used
123# for flags indicating special ROMs, extra memory, particular terminal modes,
124# or user preferences.
125#
126# All names should be in lower case, for consistency in typing.
127#
128# The following are conventionally used suffixes:
129#	-2p	Has two pages of memory.  Likewise 4p, 8p, etc.
130#	-am	Enable auto-margin.
131#	-m	Monochrome.  Suppress color support
132#	-mc	Magic-cookie.  Some terminals (notably older Wyses) can
133#		only support one attribute without magic-cookie lossage.
134#		Their base entry is usually paired with another that
135#		uses magic cookies to support multiple attributes.
136#	-nam	No auto-margin - suppress <am> capability
137#	-nl	No labels - suppress soft labels
138#	-ns	No status line - suppress status line
139#	-rv	Terminal in reverse video mode (black on white)
140#	-s	Enable status line.
141#	-vb	Use visible bell (<flash>) rather than <bel>.
142#	-w	Wide - in 132 column mode.
143# If a name has multiple suffixes and one is a line height, that one should
144# go first.  Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.
145#
146# Entries with embedded plus signs are designed to be included through use/tc
147# capabilities, not used as standalone entries.
148#
149# To avoid search clashes, some older all-numeric names for terminals have
150# been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
151# All primary names of terminals now have alphanumeric prefixes.
152#
153# Comments marked "esr" are mostly results of applying the termcap-compiler
154# code packaged with ncurses and contemplating the resulting error messages.
155# In many cases, these indicated obvious fixes to syntax garbled by the
156# composers.  In a few cases, I was able to deduce corrected forms for garbled
157# capabilities by looking at context.  All the information in the original
158# entries is preserved in the comments.
159#
160# In the comments, terminfo capability names are bracketed with <> (angle
161# brackets).  Termcap capability names are bracketed with :: (colons).
162#
163# INTERPRETATION OF USER CAPABILITIES
164#
165# The System V Release 4 and XPG4 terminfo format defines ten string
166# capabilities for use by applications, <u0>...<u9>.   In this file, we use
167# certain of these capabilities to describe functions which are not covered
168# by terminfo.  The mapping is as follows:
169#
170#	u9	terminal enquire string (equiv. to ANSI/ECMA-48 DA)
171#	u8	terminal answerback description
172#	u7	cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
173#	u6	cursor position report (equiv. to ANSI/ECMA-48 CPR)
174#
175# The terminal enquire string <u9> should elicit an answerback response
176# from the terminal.  Common values for <u9> will be ^E (on older ASCII
177# terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
178#
179# The cursor position request (<u7>) string should elicit a cursor position
180# report.  A typical value (for VT100 terminals) is \E[6n.
181#
182# The terminal answerback description (u8) must consist of an expected
183# answerback string.  The string may contain the following scanf(3)-like
184# escapes:
185#
186#	%c	Accept any character
187#	%[...]	Accept any number of characters in the given set
188#
189# The cursor position report (<u6>) string must contain two scanf(3)-style
190# %d format elements.  The first of these must correspond to the Y coordinate
191# and the second to the %d.  If the string contains the sequence %i, it is
192# taken as an instruction to decrement each value after reading it (this is
193# the inverse sense from the cup string).  The typical CPR value is
194# \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
195#
196# These capabilities are used by tack(1m), the terminfo action checker
197# (distributed with ncurses 5.0).
198#
199# TABSET FILES
200#
201# All the entries in this file have been edited to assume that the tabset
202# files directory is /usr/share/tabset, in conformance with the File Hierarchy
203# Standard for Linux and open-source BSD systems.  Some vendors (notably Sun)
204# use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.
205#
206# No curses package we know of actually uses these files.  If their location
207# is an issue, you will have to hand-patch the file locations before compiling
208# this file.
209#
210# REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
211#
212# As the ANSI/ECMA-48 standard and variants take firmer hold, and as
213# character-cell terminals are increasingly replaced by X displays, much of
214# this file is becoming a historical document (this is part of the reason for
215# the new organization, which puts ANSI types, xterm, Unix consoles,
216# and vt100 up front in confidence that this will catch 95% of new hardware).
217#
218# For the terminal types still alive, I'd like to have manufacturer's
219# contact data (Internet address and/or snail-mail + phone).
220#
221# I'm also interested in enriching the comments so that the latter portions of
222# the file do in fact become a potted history of VDT technology as seen by
223# UNIX hackers.  Ideally, I'd like the headers for each manufacturer to
224# include its live/dead/out-of-the-business status, and for as many
225# terminal types as possible to be tagged with information like years
226# of heaviest use, popularity, and interesting features.
227#
228# I'm especially interested in identifying the obscure entries listed under
229# `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
230# wisdom about them gets lost.  If you know a lot about obscure old terminals,
231# please go to the terminfo resource page, grab the UFO file (ufo.ti), and
232# eyeball it for things you can identify and describe.
233#
234# If you have been around long enough to contribute, please read the file
235# with this in mind and send me your annotations.
236#
237# COPYRIGHTS AND OTHER DELUSIONS
238#
239# The BSD ancestor of this file had a standard Regents of the University of
240# California copyright with dates from 1980 to 1993.
241#
242# Some information has been merged in from a terminfo file SCO distributes.
243# It has an obnoxious boilerplate copyright which I'm ignoring because they
244# took so much of the content from the ancestral BSD versions of this file
245# and didn't attribute it, thereby violating the BSD Regents' copyright.
246#
247# Not that anyone should care.  However many valid functions copyrights may
248# serve, putting one on a termcap/terminfo file with hundreds of anonymous
249# contributors makes about as much sense as copyrighting a wall-full of
250# graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
251#
252# This file deliberately has no copyright.  It belongs to no one and everyone.
253# If you claim you own it, you will merely succeed in looking like a fool.
254# Use it as you like.  Use it at your own risk.  Copy and redistribute freely.
255# There are no guarantees anywhere.  Svaha!
256#
257
258######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
259#
260# This section describes terminal classes and brands that are still
261# quite common.
262#
263
264#### Specials
265#
266# Special "terminals".  These are used to label tty lines when you don't
267# know what kind of terminal is on it.  The characteristics of an unknown
268# terminal are the lowest common denominator - they look about like a ti 700.
269#
270
271dumb|80-column dumb tty,
272	am,
273	cols#80,
274	bel=^G, cr=^M, cud1=^J, ind=^J,
275unknown|unknown terminal type,
276	gn, use=dumb,
277lpr|printer|line printer,
278	OTbs, hc, os,
279	cols#132, lines#66,
280	bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ind=^J,
281glasstty|classic glass tty interpreting ASCII control characters,
282	OTbs, am,
283	cols#80,
284	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ht=^I, kcub1=^H,
285	kcud1=^J, nel=^M^J, .kbs=^H,
286
287vanilla,
288	OTbs,
289	bel=^G, cr=^M, cud1=^J, ind=^J,
290
291#### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
292#
293# See the end-of-file comment for more on these.
294#
295
296# ANSI capabilities are broken up into pieces, so that a terminal
297# implementing some ANSI subset can use many of them.
298ansi+local1,
299	cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
300ansi+local,
301	cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
302	cuu=\E[%p1%dA, use=ansi+local1,
303ansi+tabs,
304	cbt=\E[Z, ht=^I, hts=\EH, tbc=\E[2g,
305ansi+inittabs,
306	it#8, use=ansi+tabs,
307ansi+erase,
308	clear=\E[H\E[J, ed=\E[J, el=\E[K,
309ansi+rca,
310	hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
311ansi+cup,
312	cup=\E[%i%p1%d;%p2%dH, home=\E[H,
313ansi+rep,
314	rep=%p1%c\E[%p2%{1}%-%db,
315ansi+idl1,
316	dl1=\E[M, il1=\E[L,
317ansi+idl,
318	dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1,
319ansi+idc,
320	dch1=\E[P, ich=\E[%p1%d@, ich1=\E[@, rmir=\E6, smir=\E6,
321ansi+arrows,
322	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
323	khome=\E[H,
324ansi+sgr|ansi graphic renditions,
325	blink=\E[5m, invis=\E[8m, rev=\E[7m, sgr0=\E[0m,
326ansi+sgrso|ansi standout only,
327	rmso=\E[m, smso=\E[7m,
328ansi+sgrul|ansi underline only,
329	rmul=\E[m, smul=\E[4m,
330ansi+sgrbold|ansi graphic renditions; assuming terminal has bold; not dim,
331	bold=\E[1m,
332	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
333	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
334ansi+sgrdim|ansi graphic renditions; assuming terminal has dim; not bold,
335	dim=\E[2m,
336	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;%;m,
337	use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
338ansi+pp|ansi printer port,
339	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
340ansi+csr|ansi scroll-region plus cursor save & restore,
341	csr=\E[%i%p1%d;%p2%dr, rc=\E8, sc=\E7,
342
343# The IBM PC alternate character set.  Plug this into any Intel console entry.
344# We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
345# ROM graphics for control characters such as the diamond, up- and down-arrow.
346# This works with the System V, Linux, and BSDI consoles.  It's a safe bet this
347# will work with any Intel console, they all seem to have inherited \E[11m
348# from the ANSI.SYS de-facto standard.
349klone+acs|alternate character set for ansi.sys displays,
350	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
351	rmacs=\E[10m, smacs=\E[11m,
352
353# Highlight controls corresponding to the ANSI.SYS standard.  Most
354# console drivers for Intel boxes obey these.  Makes the same assumption
355# about \E[11m as klone+acs.  True ANSI/ECMA-48 would have <rmso=\E[27m>,
356# <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.
357klone+sgr|attribute control for ansi.sys displays,
358	blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m,
359	rmpch=\E[10m, rmso=\E[m, rmul=\E[m,
360	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
361	sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
362	use=klone+acs,
363
364# Highlight controls corresponding to the ANSI.SYS standard.  *All*
365# console drivers for Intel boxes obey these.  Does not assume \E[11m will
366# work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
367# diamond and arrow characters under curses.
368klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m),
369	blink=\E[5m, bold=\E[1m, invis=\E[8m, rev=\E[7m, rmso=\E[m,
370	rmul=\E[m,
371	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
372	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
373	use=klone+acs,
374
375# KOI8-R (RFC1489) acs (alternate character set)
376# From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
377klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset,
378	acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i\220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t\206u\207v\210w\211x\201y\230z\231{\267|\274}L~\225,
379	rmacs=\E[10m, smacs=\E[11m,
380
381# ANSI.SYS color control.  The setab/setaf caps depend on the coincidence
382# between SVr4/XPG4's color numbers and ANSI.SYS attributes.  Here are longer
383# but equivalent strings that don't rely on that coincidence:
384# setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
385# setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
386# The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
387# They match a subset of ECMA-48.
388klone+color|color control for ansi.sys and ISO6429-compatible displays,
389	colors#8, ncv#3, pairs#64,
390	op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
391
392# This is better than klone+color, it doesn't assume white-on-black as the
393# default color pair,  but many `ANSI' terminals don't grok the <op> cap.
394ecma+color|color control for ECMA-48-compatible terminals,
395	AX,
396	colors#8, ncv#3, pairs#64,
397	op=\E[39;49m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
398
399# Attribute control for ECMA-48-compatible terminals
400ecma+sgr|attribute capabilities for true ECMA-48 terminals,
401	rmso=\E[27m, rmul=\E[24m, use=klone+sgr,
402
403# For comparison, here are all the capabilities implied by the Intel
404# Binary Compatibility Standard (level 2) that fit within terminfo.
405# For more detail on this rather pathetic standard, see the comments
406# near the end of this file.
407ibcs2|Intel Binary Compatibility Standard prescriptions,
408	cbt=\E[Z, clear=\Ec, cub=\E[%p1%dD, cud=\E[%p1%dB,
409	cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
410	dch=\E[%p1%dP, dispc=\E=%p1%dg, ech=\E[%p1%dX,
411	hpa=\E[%i%p1%dG, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
412	indn=\E[%p1%dS, rc=\E7, rin=\E[%p1%dT, rmam=\E[?7l, sc=\E7,
413	smam=\E[?7h, tbc=\E[g, vpa=\E[%i%p1%dd,
414
415#### ANSI/ECMA-48 terminals and terminal emulators
416#
417# See near the end of this file for details on ANSI conformance.
418# Don't mess with these entries!  Lots of other entries depend on them!
419#
420# This section lists entries in a least-capable to most-capable order.
421# if you're in doubt about what `ANSI' matches yours, try them in that
422# order and back off from the first that breaks.
423
424# ansi-mr is for ANSI terminals with ONLY relative cursor addressing
425# and more than one page of memory.  It uses local motions instead of
426# direct cursor addressing, and makes almost no assumptions. It does
427# assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.
428ansi-mr|mem rel cup ansi,
429	am, xon,
430	cols#80, lines#24, use=vanilla, use=ansi+erase,
431	use=ansi+local1,
432
433# ansi-mini is a bare minimum ANSI terminal. This should work on anything, but
434# beware of screen size problems and memory relative cursor addressing.
435ansi-mini|any ansi terminal with pessimistic assumptions,
436	am, xon,
437	cols#80, lines#24, use=vanilla, use=ansi+cup,
438	use=ansi+erase,
439
440# ansi-mtabs adds relative addressing and minimal tab support
441ansi-mtabs|any ansi terminal with pessimistic assumptions,
442	it#8,
443	ht=^I, use=ansi+local1, use=ansi-mini,
444
445# ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
446#
447# The following is an entry for the full ANSI 3.64 (1977).  It lacks
448# padding, but most terminals using the standard are "fast" enough
449# not to require any -- even at 9600 bps.  If you encounter problems,
450# try including the padding specifications.
451#
452# Note: the :as: and :ae: specifications are not implemented here, for
453# the available termcap documentation does not make clear WHICH alternate
454# character set to specify.  ANSI 3.64 seems to make allowances for several.
455# Please make the appropriate adjustments to fit your needs -- that is
456# if you will be using alternate character sets.
457#
458# There are very few terminals running the full ANSI 3.64 standard,
459# so I could only test this entry on one verified terminal (Visual 102).
460# I would appreciate the results on other terminals sent to me.
461#
462# Please report comments, changes, and problems to:
463#
464# U.S. MAIL:   Hugh Hansard
465#              Box: 22830
466#              Emory University
467#              Atlanta, GA. 30322.
468#
469# USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
470#
471# (Added vt100 <rc>,<sc> to quiet a tic warning --esr)
472ansi77|ansi 3.64 standard 1977 version,
473	OTbs, am, mir,
474	cols#80, it#8, lines#24,
475	bel=^G, clear=\E[;H\E[2J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
476	cub1=^H, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
477	cuu1=\E[A, dch1=\E[P, dl1=\E[M$<5*/>, ed=\E[J, el=\E[K,
478	home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED, kbs=^H,
479	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
480	kf2=\EOR, kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM,
481	rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, smir=\E[4h,
482	smso=\E[7m, smul=\E[4m,
483
484# Procomm and some other ANSI emulations don't recognize all of the ANSI-
485# standard capabilities.  This entry deletes <cuu>, <cuf>, <cud>, <cub>, and
486# <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>,
487# <cuf1>, <cud1> and <cub1>.  Also deleted <ich> and <ich1>, as QModem up to
488# 5.03 doesn't recognize these.  Finally, we delete <rep> and <ri>, which seem
489# to confuse many emulators.  On the other hand, we can count on these programs
490# doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured
491# <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
492# ANSI.SYS influence.
493# From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
494pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ansi (mono mode),
495	OTbs, am, mir, msgr,
496	cols#80, it#8, lines#24,
497	bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=\E[D,
498	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
499	dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
500	hts=\EH, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
501	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, tbc=\E[2g,
502	use=klone+sgr-dumb,
503pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode),
504	lines#25, use=pcansi-m,
505pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode),
506	lines#33, use=pcansi-m,
507pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode),
508	lines#43, use=pcansi-m,
509# The color versions.  All PC emulators do color...
510pcansi|ibm-pc terminal programs claiming to be ansi,
511	use=klone+color, use=pcansi-m,
512pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines,
513	lines#25, use=pcansi,
514pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines,
515	lines#33, use=pcansi,
516pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines,
517	lines#43, use=pcansi,
518
519# ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
520# If you want pound signs rather than dollars, replace `B' with `A'
521# in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
522# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
523ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes,
524	mc5i,
525	cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
526	cuu=\E[%p1%dA, dch=\E[%p1%dP, dl=\E[%p1%dM,
527	ech=\E[%p1%dX, el1=\E[1K, hpa=\E[%i%p1%dG, ht=\E[I,
528	ich=\E[%p1%d@, il=\E[%p1%dL, indn=\E[%p1%dS, kbs=^H,
529	kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
530	kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S,
531	rep=%p1%c\E[%p2%{1}%-%db, rin=\E[%p1%dT, s0ds=\E(B,
532	s1ds=\E)B, s2ds=\E*B, s3ds=\E+B, tbc=\E[2g,
533	vpa=\E[%i%p1%dd, use=pcansi-m,
534
535# ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
536# standard terminfo.  Assumes ANSI.SYS-compatible attributes and color.
537# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
538ansi|ansi/pc-term compatible with color,
539	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?%[;0123456789]c,
540	u9=\E[c, use=ecma+color, use=klone+sgr, use=ansi-m,
541
542# ansi-generic is a vanilla ANSI terminal. This is assumed to implement
543# all the normal ANSI stuff with no extensions. It assumes
544# insert/delete line/char is there, so it won't work with
545# vt100 clones. It assumes video attributes for bold, blink,
546# underline, and reverse, which won't matter much if the terminal
547# can't do some of those. Padding is assumed to be zero, which
548# shouldn't hurt since xon/xoff is assumed.
549ansi-generic|generic ansi standard terminal,
550	am, xon,
551	cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup,
552	use=ansi+rca, use=ansi+erase, use=ansi+tabs,
553	use=ansi+local, use=ansi+idc, use=ansi+idl, use=ansi+rep,
554	use=ansi+sgrbold, use=ansi+arrows,
555
556#### DOS ANSI.SYS variants
557#
558# This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
559# documentation (except for the keyboard key reassignment feature, which
560# doen't fit the <pfkey> model well).  The klone+acs sequences were valid
561# though undocumented.  The <pfkey> capability is untested but should work for
562# keys F1-F10 (%p1 values outside this range will yield unpredictable results).
563# From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
564ansi.sys-old|ANSI.SYS under PC-DOS 2.1,
565	OTbs, am, mir, msgr, xon,
566	cols#80, lines#25,
567	clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
568	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[k, home=\E[H,
569	is2=\E[m\E[?7h, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
570	khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s", rc=\E[u,
571	rmam=\E[?7l, sc=\E[s, smam=\E[?7h, u6=\E[%i%d;%dR,
572	u7=\E[6n, use=klone+color, use=klone+sgr,
573ansi.sys|ANSI.SYS 3.1 and later versions,
574	el=\E[K, use=ansi.sys-old,
575
576#
577# Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
578# This should only be used when the terminal emulator cannot redefine the keys.
579# Since redefining keys with ansi.sys also affects PC-DOS programs, the key
580# definitions must be restored.  If the terminal emulator is quit while in vi
581# or others using <smkx>/<rmkx>, the keypad will not be defined as per PC-DOS.
582# The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
583# (^U and ^D are already defined for tn3270).  The ESC is safe for vi but it
584# does "beep".  ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
585# Note that <kcub1> is always BS, because PC-dos can tolerate this change.
586# Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
587# Consequently the End keypad key could not be set (it is relatively safe and
588# actually useful because it sends ^@ O, which beeps and opens a line above).
589ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi,
590	is2=U2 PC-DOS 3.1 ANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
591	rmkx=\E[;71;0;71p\E[;72;0;72p\E[;73;0;73p\E[;77;0;77p\E[;80;0;80p\E[;81;0;81p\E[;82;0;82p\E[;83;0;83p,
592	smkx=\E[;71;30p\E[;72;11p\E[;73;27;21p\E[;77;12p\E[;80;10p\E[;81;27;4p\E[;82;27;27;105p\E[;83;127p,
593	use=ansi.sys,
594#
595# Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
596nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS,
597	dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
598	is2=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n,
599	use=ansi.sys,
600#
601# See ansi.sysk and nansi.sys above.
602nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
603	dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
604	is2=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
605	use=ansi.sysk,
606
607#### ANSI console types
608#
609
610#### BeOS
611#
612# BeOS entry for Terminal program Seems to be almost ANSI
613beterm|BeOS Terminal,
614	am, eo, mir, msgr, xenl, xon,
615	colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64,
616	bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
617	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
618	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
619	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
620	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
621	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H,
622	hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
623	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
624	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~,
625	kend=\E[4~, kf1=\E[11~, kf10=\E[20~, kf11=\E[21~,
626	kf12=\E[22~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
627	kf5=\E[15~, kf6=\E[16~, kf7=\E[17~, kf8=\E[18~, kf9=\E[19~,
628	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kspd=^Z,
629	nel=^M^J, op=\E[m, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l,
630	rmkx=\E[?4l, rmso=\E[m, rmul=\E[24m, rs1=\Ec, sc=\E7,
631	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
632	setb=\E[%p1%{40}%+%cm, setf=\E[%p1%{30}%+%cm,
633	sgr0=\E[0;10m, smir=\E[4h, smkx=\E[?4h, smso=\E[7m,
634	smul=\E[4m, u6=\E[%i%p1%d;%p2%dR, u7=\E[6n,
635	vpa=\E[%i%p1%dd,
636
637#### Linux consoles
638#
639
640# This entry is good for the 1.2.13 or later version of the Linux console.
641#
642# ***************************************************************************
643# *                                                                         *
644# *                           WARNING:                                      *
645# * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
646# * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
647# * character. Here are the keymap replacement lines that will set this up: *
648# *                                                                         *
649#	keycode  15 = Tab             Tab
650#		alt     keycode  15 = Meta_Tab
651#		shift	keycode  15 = F26
652#	string F26 ="\033[Z"
653# *                                                                         *
654# * This has to use a key slot which is unfortunate (any unused one will    *
655# * do, F26 is the higher-numbered one).  The change ought to be built      *
656# * into the kernel tables.                                                 *
657# *                                                                         *
658# ***************************************************************************
659#
660# The 1.3.x kernels add color-change capabilities; if yours doesn't have this
661# and it matters, turn off <ccc>.  The %02x escape used to implement this is
662# not back-portable to SV curses and not supported in ncurses versions before
663# 1.9.9. All linux kernels since 1.2.13 (at least) set the screen size
664# themselves; this entry assumes that capability.
665#
666# This entry is good for the 1.2.13 or later version of the Linux console.
667#
668# ***************************************************************************
669# *                                                                         *
670# *                           WARNING:                                      *
671# * Linuxes come with a default keyboard mapping kcbt=^I.  This entry, in   *
672# * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
673# * character. Here are the keymap replacement lines that will set this up: *
674# *                                                                         *
675#	keycode  15 = Tab             Tab
676#		alt     keycode  15 = Meta_Tab
677#		shift	keycode  15 = F26
678#	string F26 ="\033[Z"
679# *                                                                         *
680# * This has to use a key slot which is unfortunate (any unused one will    *
681# * do, F26 is the higher-numbered one).  The change ought to be built      *
682# * into the kernel tables.                                                 *
683# *                                                                         *
684# ***************************************************************************
685#
686# The 1.3.x kernels add color-change capabilities; if yours doesn't have this
687# and it matters, turn off <ccc>.  The %02x escape used to implement this is
688# not back-portable to SV curses and not supported in ncurses versions before
689# 1.9.9. All linux kernels since 1.2.13 (at least) set the screen size
690# themselves; this entry assumes that capability.
691#
692# The 2.2.x kernels add a private mode that sets the cursor type; use that to
693# get a block cursor for cvvis.
694# reported by Frank Heckenbach <frank@g-n-u.de>.
695linux|linux console,
696	am, bce, eo, mir, msgr, xenl, xon,
697	it#8, ncv#18,
698	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
699	bel=^G, civis=\E[?25l\E[?1c, clear=\E[H\E[J,
700	cnorm=\E[?25h\E[?0c, cr=^M, csr=\E[%i%p1%d;%p2%dr,
701	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
702	cuu1=\E[A, cvvis=\E[?25h\E[?8c, dch=\E[%p1%dP, dch1=\E[P,
703	dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J,
704	el=\E[K, el1=\E[1K, flash=\E[?5h\E[?5l$<200/>, home=\E[H,
705	hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
706	il=\E[%p1%dL, il1=\E[L, ind=^J, kb2=\E[G, kbs=\177,
707	kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
708	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
709	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
710	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
711	kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
712	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
713	khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
714	kspd=^Z, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l,
715	rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R, sc=\E7,
716	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
717	smir=\E[4h, smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR,
718	u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd,
719	use=klone+sgr, use=ecma+color,
720linux-m|Linux console no color,
721	colors@, pairs@,
722	setab@, setaf@, setb@, setf@, use=linux,
723linux-c-nc|linux console 1.3.x hack for ncurses only,
724	ccc,
725	initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
726	oc=\E]R, use=linux,
727# From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
728linux-c|linux console 1.3.6+ with private palette for each virtual console,
729	ccc,
730	colors#8, pairs#64,
731	initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%'a'%+%c%e%p1%d%;%p2%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p3%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%p4%{255}%&%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'A'%+%c%e%gx%d%;,
732	oc=\E]R, use=linux,
733
734# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
735linux-nic|linux with ich/ich1 suppressed for non-curses programs,
736	ich@, ich1@, use=linux,
737
738# This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
739# acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
740linux-koi8|linux with koi8 alternate character set,
741	acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i\276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v\211w\210x\201y\230z\231{\267|\274~\224,
742	use=linux, use=klone+koi8acs,
743
744# Another entry for KOI8-r with Qing Long's acsc.
745# (which one better complies with the standard?)
746linux-koi8r|linux with koi8-r alternate character set,
747	use=linux, use=klone+koi8acs,
748
749# Entry for the latin1 and latin2 fonts
750linux-lat|linux with latin1 or latin2 alternate character set,
751	acsc=+\020\,\021-\030.^Y0\333`\004a\013f\370g\361h\260i\316j\211k\214l\206m\203n\305o~p\304q\212r\304s_t\207u\215v\301w\302x\205y\363z\362{\343|\330}\234~\376,
752	use=linux,
753
754#### Mach
755#
756
757# From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
758mach|Mach Console,
759	am, km,
760	cols#80, it#8, lines#25,
761	bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M,
762	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
763	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
764	cuu=\E[%p1%dA, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
765	el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J,
766	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
767	kdch1=\E[9, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf2=\EOQ,
768	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
769	kf9=\EOX, khome=\E[H, kich1=\E[@, kll=\E[F, knp=\E[U,
770	kpp=\E[V, rev=\E[7m, rmso=\E[0m, rmul=\E[24m, sgr0=\E[0m,
771	smso=\E[7m, smul=\E[4m,
772mach-bold|Mach Console with bold instead of underline,
773	rmul=\E[0m, smul=\E[1m, use=mach,
774mach-color|Mach Console with ANSI color,
775	colors#8, pairs#64,
776	dim=\E[2m, invis=\E[8m, op=\E[37;40m, rmso=\E[27m,
777	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=mach,
778
779#### OSF Unix
780#
781
782# OSF/1 1.1 Snapshot 2
783pmcons|pmconsole|PMAX console,
784	am,
785	cols#128, lines#57,
786	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuu1=^K, ht=^I,
787	ind=^J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
788	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
789
790# SCO console and SOS-Syscons console for 386bsd
791# (scoansi: had unknown capabilities
792#	:Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
793#	:GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
794#	:G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
795#	:CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
796#	:WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
797# I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
798# on the <smacs>=\E[12m  -- esr)
799#
800# klone+sgr-dumb is an error since the acsc does not match -TD
801#
802# In this description based on SCO's keyboard(HW) manpage list of default function key
803# values:
804#	F13-F24 are shifted F1-F12
805#	F25-F36 are control F1-F12
806#	F37-F48 are shift+control F1-F12
807scoansi|SCO Extended ANSI standard crt,
808	OTbs, am, eo, xon,
809	colors#8, cols#80, it#8, lines#25, pairs#64,
810	acsc=0[5566778899\:\:;;<<==>>FFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`ja0fxgqh2jYk?lZm@nEqDtCu4vAwBx3~y,
811	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J,
812	cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
813	cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
814	ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S, invis=\E[8m, kbeg=\E[E,
815	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
816	kcuu1=\E[A, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
817	kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c,
818	kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g,
819	kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l,
820	kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p,
821	kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u,
822	kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P,
823	kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[],
824	kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q,
825	kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
826	kich1=\E[L, knp=\E[G, kpp=\E[I, op=\E[37;40m, rev=\E[7m,
827	ri=\E[T, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
828	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
829	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
830	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
831
832# This actually describes the generic SVr4 display driver for Intel boxes.
833# The <dim=\E[2m> isn't documented and therefore may not be reliable.
834# From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
835att6386|at386|386at|AT&T WGS 6386 console,
836	am, bw, eo, xon,
837	cols#80, it#8, lines#25,
838	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
839	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C,
840	clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD,
841	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
842	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
843	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
844	dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
845	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
846	ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S,
847	indn=\E[%p1%dS, invis=\E[9m, is2=\E[0;10;39m, kbs=^H,
848	kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
849	kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
850	kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
851	kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kich1=\E[@,
852	knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m,
853	ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
854	sc=\E7,
855	sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p9%t;12%e;10%;%?%p7%t;9%;m,
856	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
857	tbc=\E[2g, vpa=\E[%i%p1%dd, use=klone+color,
858# (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
859pc6300plus|AT&T 6300 plus,
860	OTbs, am, xon,
861	cols#80, lines#24,
862	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C,
863	clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub1=^H, cud1=\E[B,
864	cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
865	dch1=\E[1P, dim=\E[2m, dl1=\E[1M, ed=\E[0J, el=\E[0K,
866	home=\E[H, hts=\EH, ich1=\E[1@, il1=\E[1L, ind=^J,
867	invis=\E[9m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
868	kcuu1=\E[A, kf1=\EOc, kf10=\EOu, kf2=\EOd, kf3=\EOe,
869	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\EOk,
870	nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
871	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
872
873# From: Benjamin C. W. Sittler <bsittler@nmt.edu>
874#
875# I have a UNIX PC which I use as a terminal attached to my Linux PC.
876# Unfortunately, the UNIX PC terminfo entry that comes with ncurses
877# is broken. All the special key sequences are broken, making it unusable
878# with Emacs. The problem stems from the following:
879#
880# The UNIX PC has a plethora of keys (103 of them, and there's no numeric
881# keypad!), loadable fonts, and strange highlighting modes ("dithered"
882# half-intensity, "smeared" bold, and real strike-out, for example.) It also
883# uses resizable terminal windows, but the bundled terminal program always
884# uses an 80x24 window (and doesn't support seem to support a 132-column
885# mode.)
886#
887# HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
888# library which was a superset of SVr3.5 curses (called tam, for "terminal
889# access method".) tam includes support for real, overlapping windows,
890# onscreen function key labels, and bitmap graphics. But since the primary
891# user interface on the UNIX PC was a GUI program (ua, for "user
892# assistant",) and remote administration was considered important for the
893# machine, tam also supported VT100-compatible terminals attached to the
894# serial port or used across the StarLan network. To simulate the extra keys
895# not present on a VT100, users could press ESC and a two-letter sequence,
896# such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
897# however, were not the same as those sent by the actual Undo key. The
898# actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
899# (If you're interested in adding some of the tam calls to ncurses, btw, I
900# have the full documentation and several programs which use tam. It also
901# used an extended terminfo format to describe key sequences, special
902# highlighting modes, etc.)
903#
904# KEYS: This means that ncurses would quite painful on the UNIX PC, since
905# there are two sequences for every key-modifier combination (local keyboard
906# sequence and remote "VT100" sequence.) But I doubt many people are trying
907# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
908# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume)
909# seem to have been built from the manual describing the VT100 sequences.
910# This means it doesn't work for a real live UNIX PC.
911#
912# FONTS: The UNIX PC also has a strange interpretation of "alternate
913# character set". Rather than the VT100 graphics you might expect, it allows
914# up to 8 custom fonts to be loaded at any given time. This means that
915# programs expecting VT100 graphics will usually be disappointed. For this
916# reason I have disabled the smacs/rmacs sequences, but they could easily be
917# re-enabled. Here are the relevant control sequences (from the ESCAPE(7)
918# manpage), should you wish to do so:
919#
920# SGR10 - Select font 0 - ESC [ 10 m or SO
921# SGR11 - Select font 1 - ESC [ 11 m or SI
922# SGR12 - Select font 2 - ESC [ 12 m
923# ... (etc.)
924# SGR17 - Select font 7 - ESC [ 17 m
925#
926# Graphics for line drawing are not reliably found at *any* character
927# location because the UNIX PC has dynamically reloadable fonts. I use font
928# 0 for regular text and font 1 for italics, but this is by no means
929# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
930#
931# MISC: The cursor visible/cursor invisible sequences were swapped in the
932# distributed terminfo.
933#
934# To ameliorate these problems (and fix a few highlighting bugs) I rewrote
935# the UNIX PC terminfo entry. The modified version works great with Lynx,
936# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
937# attached by serial cable. In Emacs, even the Undo key works, and many
938# applications can now use the F1-F8 keys.
939#
940# esr's notes:
941#	Terminfo entry for the AT&T Unix PC 7300
942#	from escape(7) in Unix PC 7300 Manual.
943#	Somewhat similar to a vt100-am (but different enough
944#	to redo this from scratch.)
945#
946#	/***************************************************************
947#	*
948#	*           FONT LOADING PROGRAM FOR THE UNIX PC
949#	*
950#	*     This routine loads a font defined in the file ALTFONT
951#	*     into font memory slot #1.  Once the font has been loaded,
952#	*     it can be used as an alternative character set.
953#	*
954#	*     The call to ioctl with the argument WIOCLFONT is the key
955#	*     to this routine.  For more information, see window(7) in
956#	*     the PC 7300 documentation.
957#	***************************************************************/
958#	#include <string.h>		/* needed for strcpy call */
959#	#include <sys/window.h>         /* needed for ioctl call */
960#	#define FNSIZE	60		/* font name size */
961#	#define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
962#	/*
963#	*     The file /usr/lib/wfont/special.8.ft comes with the
964#	*     standard PC software.  It defines a graphics character set
965#	*     similar to that of the Teletype 5425 terminal.  To view
966#	*     this or other fonts in /usr/lib/wfont, use the command
967#	*     cfont <filename>.  For further information on fonts see
968#	*     cfont(1) in the PC 7300 documentation.
969#	*/
970#
971#	struct altfdata 	/* structure for alt font data */
972#	{
973#	short	altf_slot;		/* memory slot number */
974#	char	altf_name[FNSIZE];	/* font name (file name) */
975#	};
976#	ldfont()
977#	{
978#		int wd;		/* window in which altfont will be */
979#		struct altfdata altf;
980#		altf.altf_slot=1;
981#		strcpy(altf.altf_name,ALTFONT);
982#		for (wd =1; wd < 12; wd++) {
983#		     ioctl(wd, WIOCLFONT,&altf);
984#	        }
985#	}
986#
987# (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
988# they're confirmed by the man page for the System V display---esr)
989#
990att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300,
991	am, xon,
992	cols#80, it#8, lines#24,
993	bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C,
994	clear=\E[2J\E[H, cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD,
995	cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
996	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
997	cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
998	ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL,
999	il1=\E[L, ind=^J, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB,
1000	kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE,
1001	kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM,
1002	kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR,
1003	kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO,
1004	kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z,
1005	kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
1006	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf,
1007	ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd,
1008	kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
1009	kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B,
1010	kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv,
1011	kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt,
1012	kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB,
1013	ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM,
1014	rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m,
1015	smul=\E[4m,
1016
1017# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1018# from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
1019# for the application keypad mode.  We have added iris-ansi-ap rather than
1020# change the original to keypad mode.
1021#
1022# (iris-ansi: added rmam/smam based on init string -- esr)
1023#
1024# This entry, and those derived from it, is used in xwsh (also known as
1025# winterm).  Some capabilities that do not fit into the terminfo model
1026# include the shift- and control-functionkeys:
1027#
1028# F1-F12 generate different codes when shift or control modifiers are used.
1029# For example:
1030#	F1      	\E[001q
1031#	shift F1	\E[013q
1032#	control-F1	\E[025q
1033#
1034# In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1035# \EOP to \EOS.  The shifted and control modifiers still do the same thing.
1036#
1037# The cursor keys also have different codes:
1038#	control-up	\E[162q
1039#	control-down	\E[165q
1040#	control-left	\E[159q
1041#	control-right	\E[168q
1042#
1043#	shift-up	\E[161q
1044#	shift-down	\E[164q
1045#	shift-left	\E[158q
1046#	shift-right	\E[167q
1047#
1048#	control-tab	\[072q
1049#
1050iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
1051	am,
1052	cols#80, it#8, lines#40,
1053	bel=^G, bold=\E[1m, clear=\E[H\E[2J,
1054	cnorm=\E[9/y\E[12/y\E[=6l, cr=^M, cub=\E[%p1%dD,
1055	cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC,
1056	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1057	cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h,
1058	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
1059	home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED,
1060	is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
1061	kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
1062	kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1063	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
1064	kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\E[010q,
1065	kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
1066	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
1067	kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
1068	knp=\E[154q, kpp=\E[150q, kprt=\E[209q, krmir=\E[146q,
1069	kspd=\E[217q, nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\,
1070	rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
1071	sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m,
1072	tbc=\E[3g,
1073iris-ansi-ap|IRIS ANSI in application-keypad mode,
1074	is2=\E[?1l\E=\E[?7h, kent=\EOM, kf10=\E[010q,
1075	kf11=\E[011q, kf12=\E[012q, kf9=\E[009q, use=iris-ansi,
1076
1077# From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1078# (T.Dickey 98/1/24)
1079iris-color|xwsh|IRIX ANSI with color,
1080	ncv#33,
1081	csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
1082	ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, ritm=\E[23m,
1083	rmul=\E[24m, rs1=\Ec,
1084	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1085	sitm=\E[3m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
1086	use=klone+color, use=iris-ansi-ap,
1087
1088# The following is a version of the ibm-pc entry distributed with PC/IX,
1089# (Interactive Systems' System 3 for the Big Blue), modified by Richard
1090# McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
1091# (the former is untrue, and the latter failed under UCB/man); standout and
1092# underline modes have been added.  Note: this entry describes the "native"
1093# capabilities of the PC monochrome display, without ANY emulation; most
1094# communications packages (but NOT PC/IX connect) do some kind of emulation.
1095pcix|PC/IX console,
1096	am, bw, eo,
1097	cols#80, lines#24,
1098	clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
1099	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
1100	home=\E[H, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m,
1101	smul=\E[4m,
1102
1103# (ibmpcx: this entry used to be known as ibmx.
1104# It formerly included the following extension capabilities:
1105#	:GC=b:GL=v:GR=t:RT=^J:\
1106#	:GH=\E[196g:GV=\E[179g:\
1107#	:GU=\E[193g:GD=\E[194g:\
1108#	:G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
1109#	:CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
1110#	:WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
1111# I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
1112# ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
1113# what was there before. -- esr)
1114ibmpcx|xenix|ibmx|IBM PC xenix console display,
1115	OTbs, am, msgr,
1116	cols#80, lines#25,
1117	clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C,
1118	cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
1119	ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H,
1120	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d,
1121	kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e,
1122	kpp=\E[Z, use=klone+acs, use=klone+sgr,
1123
1124#### QNX
1125#
1126
1127# QNX 4.0 Console
1128# Michael's original version of this entry had <am@>, <smcup=\Ei>,
1129# <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
1130# right corner without triggering a scroll.  The ncurses terminfo library can
1131# handle this case with the <ich1> capability, and prefers <am> for better
1132# optimization.  Bug: The <op> capability resets attributes.
1133# From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1134# (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
1135qnx|qnx4|qnx console,
1136	daisy, km, mir, msgr, xhpa, xt,
1137	colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8,
1138	acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t\303u\264v\301w\302x\263,
1139	bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ,
1140	cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
1141	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2,
1142	dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee,
1143	il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263,
1144	kCMD=\377\267, kCPY=\377\363, kCRT=\377\364,
1145	kDL=\377\366, kEND=\377\301, kEOL=\377\311,
1146	kEXT=\377\367, kFND=\377\370, kHLP=\377\371,
1147	kHOM=\377\260, kIC=\377\340, kLFT=\377\264,
1148	kMOV=\377\306, kMSG=\377\304, kNXT=\377\272,
1149	kOPT=\377\372, kPRT=\377\275, kPRV=\377\262,
1150	kRDO=\377\315, kRES=\377\374, kRIT=\377\266,
1151	kRPL=\377\373, kSAV=\377\307, kSPD=\377\303,
1152	kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0,
1153	kclo=\377\343, kclr=\377\341, kcmd=\377\245,
1154	kcpy=\377\265, kcrt=\377\305, kctab=\377\237,
1155	kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246,
1156	kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274,
1157	ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320,
1158	kext=\377\270, kf1=\377\201, kf10=\377\212,
1159	kf11=\377\256, kf12=\377\257, kf13=\377\213,
1160	kf14=\377\214, kf15=\377\215, kf16=\377\216,
1161	kf17=\377\217, kf18=\377\220, kf19=\377\221,
1162	kf2=\377\202, kf20=\377\222, kf21=\377\223,
1163	kf22=\377\224, kf23=\377\333, kf24=\377\334,
1164	kf25=\377\225, kf26=\377\226, kf27=\377\227,
1165	kf28=\377\230, kf29=\377\231, kf3=\377\203,
1166	kf30=\377\232, kf31=\377\233, kf32=\377\234,
1167	kf33=\377\235, kf34=\377\236, kf35=\377\276,
1168	kf36=\377\277, kf37=\377\321, kf38=\377\322,
1169	kf39=\377\323, kf4=\377\204, kf40=\377\324,
1170	kf41=\377\325, kf42=\377\326, kf43=\377\327,
1171	kf44=\377\330, kf45=\377\331, kf46=\377\332,
1172	kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206,
1173	kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346,
1174	khlp=\377\350, khome=\377\240, khts=\377\342,
1175	kich1=\377\253, kil1=\377\273, kind=\377\261,
1176	kmov=\377\351, kmrk=\377\355, kmsg=\377\345,
1177	knp=\377\252, knxt=\377\312, kopn=\377\357,
1178	kopt=\377\353, kpp=\377\242, kprt=\377\255,
1179	kprv=\377\302, krdo=\377\336, kref=\377\354,
1180	kres=\377\360, krfr=\377\347, kri=\377\271,
1181	krmir=\377\313, krpl=\377\362, krst=\377\352,
1182	ksav=\377\361, kslt=\377\247, kspd=\377\335,
1183	ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER,
1184	rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER,
1185	rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d,
1186	setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei,
1187	smso=\E(, smul=\E[,
1188#
1189#
1190qnxt|qnxt4|QNX4 terminal,
1191	crxm, use=qnx4,
1192#
1193qnxm|QNX4 with mouse events,
1194	maddr#1,
1195	chr=\E/, cvr=\E", is1=\E/0t, mcub=\E/>1h, mcub1=\E/>7h,
1196	mcud=\E/>1h, mcud1=\E/>1l\E/>9h, mcuf=\E/>1h\E/>9l,
1197	mcuf1=\E/>7l, mcuu=\E/>6h, mcuu1=\E/>6l, rmicm=\E/>2l,
1198	smicm=\E/>2h, use=qnx4,
1199#
1200qnxw|QNX4 windows,
1201	xvpa, use=qnxm,
1202#
1203#	Monochrome QNX4 terminal or console. Setting this terminal type will
1204#	allow an application running on a color console to behave as if it
1205#	were a monochrome terminal. Output will be through stdout instead of
1206#	console writes because the term routines will recognize that the
1207#	terminal name starts with 'qnxt'.
1208#
1209qnxtmono|Monochrome QNX4 terminal or console,
1210	colors@, pairs@,
1211	scp@, use=qnx4,
1212
1213# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1214# (esr: commented out <scp> and <rmcup> to avoid warnings.)
1215# (TD: derive from original qnx4 entry)
1216qnxt2|qnx 2.15 serial terminal,
1217	am,
1218	civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@,
1219	rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, use=qnx4,
1220
1221# QNX ANSI terminal definition
1222qansi-g|QNX ANSI,
1223	am, eslok, hs, xon,
1224	colors#8, cols#80, it#8, lines#25, ncv#19, pairs#64, wsl#80,
1225	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa,
1226	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
1227	clear=\E[2J\E[H, cnorm=\E[?25h\E[?12l, cr=^M,
1228	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
1229	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1230	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, cuu1=\E[A,
1231	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
1232	dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J,
1233	el=\E[K, el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l,
1234	fsl=\E[?6h\E8, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
1235	ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L,
1236	ind=\E[S, indn=\E[%p1%dS, invis=\E[9m,
1237	is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
1238	kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
1239	kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
1240	kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
1241	kbs=^H, kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa,
1242	kcmd=\E[G, kcpy=\E[g, kctab=\E[z, kcub1=\E[D, kcud1=\E[B,
1243	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
1244	kext=\E[y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
1245	kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt,
1246	kf18=\EOu, kf19=\EOv, kf2=\EOQ, kf20=\EOw, kf21=\EOx,
1247	kf22=\EOy, kf23=\EOz, kf24=\EOa, kf25=\E[1~, kf26=\E[2~,
1248	kf27=\E[3~, kf28=\E[4~, kf29=\E[5~, kf3=\EOR, kf30=\E[6~,
1249	kf31=\E[7~, kf32=\E[8~, kf33=\E[9~, kf34=\E[10~,
1250	kf35=\E[11~, kf36=\E[12~, kf37=\E[17~, kf38=\E[18~,
1251	kf39=\E[19~, kf4=\EOS, kf40=\E[20~, kf41=\E[21~,
1252	kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
1253	kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
1254	kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
1255	khome=\E[H, khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a,
1256	kmov=\ENi, kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo,
1257	kopt=\ENk, kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg,
1258	kri=\E[b, krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T,
1259	ktbc=\ENd, kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m,
1260	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\E[T,
1261	rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmso=\E[27m,
1262	rmul=\E[24m, rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
1263	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1264	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1265	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1266	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
1267	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smso=\E[7m,
1268	smul=\E[4m, tbc=\E[2g,
1269	tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH,
1270#
1271qansi|QNX ansi with console writes,
1272	daisy, xhpa, use=qansi-g,
1273#
1274qansi-t|QNX ansi without console writes,
1275	crxm, use=qansi,
1276#
1277qansi-m|QNX ansi with mouse,
1278	maddr#1,
1279	chr=\E[, cvr=\E], is1=\E[0t, mcub=\E[>1h, mcub1=\E[>7h,
1280	mcud=\E[>1h, mcud1=\E[>1l\E[>9h, mcuf=\E[>1h\E[>9l,
1281	mcuf1=\E[>7l, mcuu=\E[>6h, mcuu1=\E[>6l, rmicm=\E[>2l,
1282	smicm=\E[>2h, use=qansi,
1283#
1284qansi-w|QNX ansi for windows,
1285	xvpa, use=qansi-m,
1286
1287#### NetBSD consoles
1288#
1289# pcvt termcap database entries (corresponding to release 3.31)
1290# Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1291#
1292# (For the terminfo master file, I translated these into terminfo syntax.
1293# Then I dropped all the pseudo-HP entries. we don't want and can't use
1294# the :Xs: flag. Then I split :is: into a size-independent <is1> and a
1295# size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
1296
1297# NOTE: <ich1> has been taken out of this entry. for reference, it should
1298# be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1299# (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
1300pcvtXX|pcvt vt200 emulator (DEC VT220),
1301	am, km, mir, msgr, xenl,
1302	it#8, vt#3,
1303	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~,
1304	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
1305	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
1306	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1307	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1308	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1309	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
1310	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
1311	il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS,
1312	is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=\177,
1313	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
1314	kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
1315	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
1316	khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
1317	nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100,
1318	ri=\EM, rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
1319	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
1320	rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1321	sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
1322	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1323
1324#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1325#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1326#	50 lines entries; 80 columns
1327pcvt25|dec vt220 emulation with 25 lines,
1328	cols#80, lines#25,
1329	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1330pcvt28|dec vt220 emulation with 28 lines,
1331	cols#80, lines#28,
1332	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1333pcvt35|dec vt220 emulation with 35 lines,
1334	cols#80, lines#35,
1335	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1336pcvt40|dec vt220 emulation with 40 lines,
1337	cols#80, lines#40,
1338	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1339pcvt43|dec vt220 emulation with 43 lines,
1340	cols#80, lines#43,
1341	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1342pcvt50|dec vt220 emulation with 50 lines,
1343	cols#80, lines#50,
1344	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1345
1346#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1347#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1348#	50 lines entries; 132 columns
1349pcvt25w|dec vt220 emulation with 25 lines and 132 cols,
1350	cols#132, lines#25,
1351	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1352pcvt28w|dec vt220 emulation with 28 lines and 132 cols,
1353	cols#132, lines#28,
1354	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1355pcvt35w|dec vt220 emulation with 35 lines and 132 cols,
1356	cols#132, lines#35,
1357	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1358pcvt40w|dec vt220 emulation with 40 lines and 132 cols,
1359	cols#132, lines#40,
1360	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1361pcvt43w|dec vt220 emulation with 43 lines and 132 cols,
1362	cols#132, lines#43,
1363	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1364pcvt50w|dec vt220 emulation with 50 lines and 132 cols,
1365	cols#132, lines#50,
1366	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1367
1368# Terminfo entries to enable the use of the ncurses library in colour on a
1369# NetBSD-arm32 console (only tested on a RiscPC).
1370# Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1371# modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1372# typo in invis - TD
1373arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
1374	am, bce, msgr, xenl, xon,
1375	cols#80, it#8, lines#30,
1376	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1377	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
1378	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1379	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1380	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
1381	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
1382	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
1383	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J,
1384	invis=\E[8m$<2>, ka1=\E[q, ka3=\E[s, kb2=\E[r, kbs=^H,
1385	kc1=\E[p, kc3=\E[n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1386	kcuu1=\E[A, kent=\E[M, kf0=\E[y, kf1=\E[P, kf10=\E[x,
1387	kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t, kf6=\E[u, kf7=\E[v,
1388	kf8=\E[l, kf9=\E[w, rc=\E8, rev=\E[6m$<2>, ri=\EM$<5>,
1389	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
1390	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1391	sc=\E7,
1392	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
1393	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1394	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ecma+sgr,
1395	use=klone+color,
1396
1397arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
1398	cols#132, lines#50, use=arm100,
1399
1400# NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
1401# manufactured by Sharp for the Japenese market.
1402# From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1403x68k|x68k-ite|NetBSD/x68k ITE,
1404	cols#96, lines#32,
1405	kclr=\E[9~, khlp=\E[28~, use=vt220,
1406
1407# <tv@pobox.com>:
1408# Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1409#
1410# (still unfinished, but good enough so far.)
1411ofcons,
1412	bw,
1413	cols#80, lines#30,
1414	bel=^G, blink=\2337;2m, bold=\2331m, clear=^L, cr=^M,
1415	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
1416	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
1417	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
1418	dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K,
1419	flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL,
1420	il1=\233L, ind=^J, invis=\2338m, kbs=^H, kcub1=\233D,
1421	kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P,
1422	kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
1423	kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
1424	kf9=\2330p, knp=\233/, kpp=\233?, nel=^M^J, rev=\2337m,
1425	rmso=\2330m, rmul=\2330m, sgr0=\2330m,
1426
1427# NetBSD "wscons" emulator in vt220 mode
1428# These are micro-minimal and probably need to be redone for real
1429# after the manner of the pcvt entries.
1430wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
1431	cols#80, lines#25, use=vt220,
1432
1433wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
1434	km,
1435	cols#80, lines#25, use=vt220,
1436
1437# `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1438# DECstation/pmax.
1439rcons|BSD rasterconsole,
1440	use=sun-il,
1441# Color version of above. Color currenly only provided by NetBSD.
1442rcons-color|BSD rasterconsole with ANSI color,
1443	bce,
1444	colors#8, pairs#64,
1445	op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=rcons,
1446
1447# mgterm -- MGL/MGL2, MobileGear Graphic Library
1448# for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1449# -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1450# -- compare with cons25w
1451mgterm,
1452	OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
1453	colors#8, cols#80, it#8, lines#18, pairs#64,
1454	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1455	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1456	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1457	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1458	dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, dl=\E[%p1%dM,
1459	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
1460	home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
1461	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
1462	indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1463	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F,
1464	kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N,
1465	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
1466	kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I,
1467	nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT,
1468	rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7, setb=\E[4%p1%dm,
1469	setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
1470
1471#### FreeBSD console entries
1472#
1473# From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1474# Andrey Chernov maintains the FreeBSD termcap distributions.
1475#
1476# Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1477# or comment out the :cb: capability in the console entry.
1478#
1479# Alexander Lukyanov reports:
1480# I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1481# Now el1 clears not only to the line beginning, but also a large chunk
1482# of previous line. But there is another bug - ech does not work at all.
1483#
1484
1485# for syscons
1486# common entry without semigraphics
1487# Bug: The <op> capability resets attributes.
1488# Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1489# instance el1 does if the cursor is moved to the right margin first.  Removed
1490# by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1491#
1492# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1493# Note that this disables standout with color.
1494cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode),
1495	am, bce, bw, eo, msgr, npc,
1496	colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64,
1497	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1498	cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
1499	cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1500	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1501	cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m,
1502	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
1503	hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
1504	il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS, kb2=\E[E,
1505	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1506	kcuu1=\E[A, kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V,
1507	kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q,
1508	kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
1509	kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rev=\E[7m,
1510	ri=\E[T, rin=\E[%p1%dT, rmso=\E[m, rs2=\E[x\E[m\Ec,
1511	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
1512	smso=\E[7m, vpa=\E[%i%p1%dd,
1513cons25|ansis|ansi80x25|freebsd console (25-line ansi mode),
1514	acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371,
1515	use=cons25w,
1516cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode),
1517	colors@, pairs@,
1518	bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m,
1519	use=cons25,
1520cons30|ansi80x30|freebsd console (30-line ansi mode),
1521	lines#30, use=cons25,
1522cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode),
1523	lines#30, use=cons25-m,
1524cons43|ansi80x43|freebsd console (43-line ansi mode),
1525	lines#43, use=cons25,
1526cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode),
1527	lines#43, use=cons25-m,
1528cons50|ansil|ansi80x50|freebsd console (50-line ansi mode),
1529	lines#50, use=cons25,
1530cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode),
1531	lines#50, use=cons25-m,
1532cons60|ansi80x60|freebsd console (60-line ansi mode),
1533	lines#60, use=cons25,
1534cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode),
1535	lines#60, use=cons25-m,
1536cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic,
1537	acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\0t\206u\207v\211w\210x\201y\230z\231~\225,
1538	use=cons25w,
1539cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono),
1540	colors@, pairs@,
1541	op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25r,
1542cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines),
1543	lines#50, use=cons25r,
1544cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono),
1545	lines#50, use=cons25r-m,
1546cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines),
1547	lines#60, use=cons25r,
1548cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono),
1549	lines#60, use=cons25r-m,
1550# ISO 8859-1 FreeBSD console
1551cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars,
1552	acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k\214l\215m\216n\217o\220p\221q\222r\223s\224t\225u\226v\227w\230x\231y\232z\233~\237,
1553	use=cons25w,
1554cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono),
1555	colors@, pairs@,
1556	bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m,
1557	use=cons25l1,
1558cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines),
1559	lines#50, use=cons25l1,
1560cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono),
1561	lines#50, use=cons25l1-m,
1562cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines),
1563	lines#60, use=cons25l1,
1564cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono),
1565	lines#60, use=cons25l1-m,
1566
1567#### 386BSD and BSD/OS Consoles
1568#
1569
1570# This was the original 386BSD console entry (I think).
1571# Some places it's named oldpc3|oldibmpc3.
1572# From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
1573origpc3|origibmpc3|IBM PC 386BSD Console,
1574	OTbs, am, bw, eo, xon,
1575	cols#80, lines#25,
1576	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
1577	bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
1578	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
1579	home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1580	kcuu1=\E[A, khome=\E[Y, ri=\E[T, rmso=\E[1;0x\E[2;7x,
1581	rmul=\E[1;0x\E[2;7x, sgr0=\E[m\E[1;0x\E[2;7x,
1582	smso=\E[1;7x\E[2;0x, smul=\E[1;7x\E[2;0x,
1583
1584# description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
1585oldpc3|oldibmpc3|old IBM PC BSD/386 Console,
1586	OTbs, km,
1587	lines#25,
1588	bel=^G, bold=\E[=15F, cr=^M, cud1=^J, dim=\E[=8F, dl1=\E[M,
1589	ht=^I, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
1590	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F,
1591	knp=\E[G, kpp=\E[I, nel=^M^J, sgr0=\E[=R,
1592
1593# Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
1594# Note, the emulator supports many of the additional console features
1595# listed in the iBCS2 (e.g. character-set selection) though not all
1596# are described here.  This entry really ought to be upgraded.
1597# Also note, the console will also work with fewer lines after doing
1598# "stty rows NN", e.g. to use 24 lines.
1599# (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
1600# Bug: The <op> capability resets attributes.
1601bsdos-pc|IBM PC BSD/OS Console,
1602	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;1%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
1603	use=bsdos-pc-nobold,
1604
1605bsdos-pc-nobold|BSD/OS PC console w/o bold,
1606	use=klone+color, use=bsdos-pc-m,
1607
1608bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
1609	OTbs, am, eo, km, xon,
1610	cols#80, it#8, lines#25,
1611	bel=^G, clear=\Ec, cr=^M, cub=\E[%p1%dD, cub1=^H,
1612	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
1613	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1614	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
1615	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
1616	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L,
1617	kll=\E[F, knp=\E[G, kpp=\E[I, nel=^M^J, rc=\E8, sc=\E7,
1618	sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;,
1619	use=klone+sgr,
1620
1621# Old names for BSD/OS PC console used in releases before 4.1.
1622pc3|BSD/OS on the PC Console,
1623	use=bsdos-pc-nobold,
1624ibmpc3|pc3-bold|BSD/OS on the PC Console with bold instead of underline,
1625	use=bsdos-pc,
1626
1627# BSD/OS on the SPARC
1628bsdos-sparc|Sun SPARC BSD/OS Console,
1629	use=sun,
1630
1631# BSD/OS on the PowerPC
1632bsdos-ppc|PowerPC BSD/OS Console,
1633	use=bsdos-pc,
1634
1635#### DEC VT52
1636# (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
1637vt52|dec vt52,
1638	OTbs,
1639	cols#80, it#8, lines#24,
1640	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1641	bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
1642	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
1643	el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
1644	kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
1645
1646#### DEC VT100 and compatibles
1647#
1648# DEC terminals from the vt100 forward are collected here. Older DEC terminals
1649# and micro consoles can be found in the `obsolete' section.  More details on
1650# the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
1651# found near the end of this file.
1652#
1653# Except where noted, these entries are DEC's official terminfos.
1654# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
1655# Engineering for more information.  Updated terminfos and termcaps
1656# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
1657#
1658# In October 1995 DEC sold its terminals business, including the VT and Dorio
1659# line and trademark, to SunRiver Data Systems.  SunRiver has since changed
1660# its name to Boundless Technologies; see http://www.boundless.com.
1661#
1662
1663# NOTE:  Any VT100 emulation, whether in hardware or software, almost
1664# certainly includes what DEC called the `Level 1 editing extension' codes;
1665# only the very oldest VT100s lacked these and there probably aren't any of
1666# those left alive.  To capture these, use one of the VT102 entries.
1667#
1668# Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
1669# since the cursor is left in a different position while in the
1670# weird state (concept at beginning of next line, vt100 at end
1671# of this line) so all versions of vi before 3.7 don't handle
1672# <xenl> right on vt100. The correct way to handle <xenl> is when
1673# you output the char in column 80, immediately output CR LF
1674# and then assume you are in column 1 of the next line. If <xenl>
1675# is on, am should be on too.
1676#
1677# I assume you have smooth scroll off or are at a slow enough baud
1678# rate that it doesn't matter (1200? or less). Also this assumes
1679# that you set auto-nl to "on", if you set it off use vt100-nam
1680# below.
1681#
1682# The padding requirements listed here are guesses. It is strongly
1683# recommended that xon/xoff be enabled, as this is assumed here.
1684#
1685# The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the
1686# tab settings are in non-volatile memory and don't need to be
1687# reset upon login. Also setting the number of columns glitches
1688# the screen annoyingly. You can type "reset" to get them set.
1689#
1690# The VT100 series terminals have cursor ("arrows") keys which can operate
1691# in two different modes: Cursor Mode and Application Mode.  Cursor Mode
1692# is the reset state, and is assumed to be the normal state.  Application
1693# Mode is the "set" state.  In Cursor Mode, the cursor keys transmit
1694# "Esc [ {code}" sequences, conforming to ANSI standards.  In Application
1695# Mode, the cursor keys transmit "Esc O <code>" sequences.  Application Mode
1696# was provided primarily as an aid to the porting of VT52 applications.  It is
1697# assumed that the cursor keys are normally in Cursor Mode, and expected that
1698# applications such as vi will always transmit the <smkx> string.  Therefore,
1699# the definitions for the cursor keys are made to match what the terminal
1700# transmits after the <smkx> string is transmitted.  If the <smkx> string
1701# is a null string or is not defined, then cursor keys are assumed to be in
1702# "Cursor Mode", and the cursor keys definitions should match that assumption,
1703# else the application may fail.  It is also expected that applications will
1704# always transmit the <rmkx> string to the terminal before they exit.
1705#
1706# The VT100 series terminals have an auxiliary keypad, commonly referred to as
1707# the "Numeric Keypad", because it is a cluster of numeric and function keys.
1708# The Numeric Keypad which can operate in two different modes: Numeric Mode and
1709# Application Mode.  Numeric Mode is the reset state, and is assumed to be
1710# the normal state.  Application Mode is the "set" state.  In Numeric Mode,
1711# the numeric and punctuation keys transmit ASCII 7-bit characters, and the
1712# Enter key transmits the same as the Return key (Note: the Return key
1713# can be configured to send either LF (\015) or CR LF).  In Application Mode,
1714# all the keypad keys transmit "Esc O {code}" sequences.  The PF1 - PF4 keys
1715# always send the same "Esc O {code}" sequences.  It is assumed that the keypad
1716# is normally in Numeric Mode.  If an application requires that the keypad be
1717# in Application Mode then it is expected that the user, or the application,
1718# will set the TERM environment variable to point to a terminfo entry which has
1719# defined the <smkx> string to include the codes that switch the keypad into
1720# Application Mode, and the terminfo entry will also define function key
1721# fields to match the Application Mode control codes.  If the <smkx> string
1722# is a null string or is not defined, then the keypad is assumed to be in
1723# Numeric Mode.  If the <smkx> string switches the keypad into Application
1724# Mode, it is expected that the <rmkx> string will contain the control codes
1725# necessary to reset the keypad to "Normal" mode, and it is also expected that
1726# applications which transmit the <smkx> string will also always transmit the
1727# <rmkx> string to the terminal before they exit.
1728#
1729# Here's a diagram of the VT100 keypad keys with their bindings.
1730# The top line is the name of the key (some DEC keyboards have the keys
1731# labelled somewhat differently, like GOLD instead of PF1, but this is
1732# the most "official" name).  The second line is the escape sequence it
1733# generates in Application Keypad mode (where "$" means the ESC
1734# character).  The third line contains two items, first the mapping of
1735# the key in terminfo, and then in termcap.
1736#   _______________________________________
1737#  |   PF1   |   PF2   |   PF3   |   PF4   |
1738#  |   $OP   |   $OQ   |   $OR   |   $OS   |
1739#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1740#  |    7         8         9         -    |
1741#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1742#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
1743#  |    4    |    5    |    6    |    ,    |
1744#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1745#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
1746#  |    1    |    2    |    3    |         |
1747#  |   $Oq   |   $Or   |   $Os   |  enter  |
1748#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
1749#  |         0         |   .     |         |
1750#  |        $Op        |  $On    |         |
1751#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1752#
1753# And here, for those of you with orphaned VT100s lacking documentation, is
1754# a description of the soft switches invoked when you do `Set Up'.
1755#
1756#  Scroll 0-Jump               Shifted 3   0-#
1757#  |      1-Smooth             |           1-British pound sign
1758#  | Autorepeat 0-Off          | Wrap Around 0-Off
1759#  | |          1-On           | |           1-On
1760#  | | Screen 0-Dark Bkg       | | New Line 0-Off
1761#  | | |      1-Light Bkg      | | |        1-On
1762#  | | | Cursor 0-Underline    | | | Interlace 0-Off
1763#  | | | |      1-Block        | | | |         1-On
1764#  | | | |                     | | | |
1765#  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
1766#                | | | |                     | | | |
1767#                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
1768#                | | |               1-On    | | |       1-50 Hz
1769#                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
1770#                | |           1-ANSI        | |                1-8 Bits
1771#                | Keyclick 0-Off            | Parity 0-Off
1772#                |          1-On             |        1-On
1773#                Margin Bell 0-Off           Parity Sense 0-Odd
1774#                            1-On                         1-Even
1775#
1776# The following SET-UP modes are assumed for normal operation:
1777#	ANSI_MODE	AUTO_XON/XOFF_ON	NEWLINE_OFF	80_COLUMNS
1778#	WRAP_AROUND_ON  JUMP_SCROLL_OFF
1779# Other SET-UP modes may be set for operator convenience or communication
1780# requirements; I recommend
1781#	AUTOREPEAT_ON	BLOCK_CURSOR	MARGIN_BELL_OFF    SHIFTED_3_#
1782# Unless you have a graphics add-on such as Digital Engineering's VT640
1783# (and even then, whenever it can be arranged!) you should set
1784#	INTERLACE_OFF
1785#
1786# (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
1787vt100|vt100-am|dec vt100 (w/advanced video),
1788	OTbs, am, msgr, xenl, xon,
1789	cols#80, it#8, lines#24, vt#3,
1790	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1791	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
1792	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1793	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1794	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
1795	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
1796	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
1797	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
1798	ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
1799	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
1800	kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
1801	kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
1802	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
1803	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
1804	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1805	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
1806	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1807	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
1808vt100nam|vt100-nam|vt100 no automargins,
1809	am@, xenl@, use=vt100-am,
1810vt100-vb|dec vt100 (w/advanced video) & no beep,
1811	bel@, flash=\E[?5h\E[?5l, use=vt100,
1812
1813# Ordinary vt100 in 132 column ("wide") mode.
1814vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
1815	cols#132, lines#24,
1816	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
1817vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin),
1818	cols#132, lines#14, vt@,
1819	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam,
1820
1821# vt100 with no advanced video.
1822vt100-nav|vt100 without advanced video option,
1823	xmc#1,
1824	blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m,
1825	smul@, use=vt100,
1826vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option),
1827	cols#132, lines#14, use=vt100-nav,
1828
1829# vt100 with one of the 24 lines used as a status line.
1830# We put the status line on the top.
1831vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline,
1832	eslok, hs,
1833	lines#23,
1834	clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr,
1835	cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8,
1836	fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8,
1837	tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am,
1838
1839# Status line at bottom.
1840# Clearing the screen will clobber status line.
1841vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline,
1842	eslok, hs,
1843	lines#23,
1844	dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H,
1845	tsl=\E7\E[24;%p1%dH\E[1K, use=vt100-am,
1846
1847# Most of the `vt100' emulators out there actually emulate a vt102
1848# This entry (or vt102-nsgr) is probably the right thing to use for
1849# these.
1850vt102|dec vt102,
1851	mir,
1852	dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h,
1853	use=vt100,
1854vt102-w|dec vt102 in wide mode,
1855	cols#132,
1856	rs3=\E[?3h, use=vt102,
1857
1858# Many brain-dead PC comm programs that pretend to be `vt100-compatible'
1859# fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
1860# string in the canonical vt100 entry above leaves the screen littered
1861# with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
1862# after highlight turnoffs.  This entry should fix that, and even leave
1863# ACS support working, at the cost of making multiple-highlight changes
1864# slightly more expensive.
1865# From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
1866vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes),
1867	sgr@, sgr0=\E[m, use=vt102,
1868
1869# VT125 Graphics CRT.  Clear screen also erases graphics
1870vt125|vt125 graphics terminal,
1871	clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
1872
1873# This isn't a DEC entry, it came from University of Wisconsin.
1874# (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
1875vt131|dec vt131,
1876	OTbs, am, xenl,
1877	cols#80, it#8, lines#24, vt#3,
1878	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
1879	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1880	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
1881	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
1882	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
1883	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
1884	kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
1885	kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>,
1886	rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>,
1887	rmul=\E[m$<2/>,
1888	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1889	sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
1890	smso=\E[7m$<2/>, smul=\E[4m$<2/>,
1891
1892# vt132 - like vt100 but slower and has ins/del line and such.
1893# I'm told that <smir>/<rmir> are backwards in the terminal from the
1894# manual and from the ANSI standard, this describes the actual
1895# terminal. I've never actually used a vt132 myself, so this
1896# is untested.
1897#
1898vt132|DEC vt132,
1899	xenl,
1900	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
1901	ip=$<7>, rmir=\E[4h, smir=\E[4l, use=vt100,
1902
1903# This vt220 description maps F5--F9 to the second block of function keys
1904# at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
1905# with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
1906# PF1--PF4 are used as F1--F4.
1907#
1908vt220-old|vt200-old|DEC VT220 in vt100 emulation mode,
1909	OTbs, OTpt, am, mir, xenl, xon,
1910	cols#80, lines#24, vt#3,
1911	OTnl=^J,
1912	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1913	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
1914	clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
1915	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
1916	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
1917	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
1918	if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>,
1919	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B,
1920	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP,
1921	kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
1922	kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~,
1923	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rc=\E8,
1924	rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
1925	ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
1926	rmso=\E[27m, rmul=\E[24m,
1927	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1928	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
1929	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
1930	smso=\E[7m, smul=\E[4m,
1931
1932# A much better description of the VT200/220; used to be vt220-8
1933# changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
1934# designation to accommodate bug in pcvt -TD
1935vt220|vt200|dec vt220,
1936	OTbs, am, mc5i, mir, msgr, xenl, xon,
1937	cols#80, it#8, lines#24, vt#3,
1938	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1939	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
1940	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1941	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
1942	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1943	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
1944	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
1945	flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
1946	ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
1947	il=\E[%p1%dL, il1=\E[L, ind=\ED,
1948	is2=\E[?7h\E[>\E[?1h\E F\E[?4l, kbs=^H, kcub1=\E[D,
1949	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~,
1950	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
1951	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
1952	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
1953	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
1954	khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~,
1955	kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[i,
1956	mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
1957	rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m,
1958	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=\E(0$<2>,
1959	smam=\E[?7h, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1960vt220-w|vt200-w|DEC vt220 in wide mode,
1961	cols#132,
1962	rs3=\E[?3h, use=vt220,
1963vt220-8bit|vt220-8|vt200-8bit|vt200-8|dec vt220/200 in 8-bit mode,
1964	OTbs, am, mc5i, mir, msgr, xenl, xon,
1965	cols#80, it#8, lines#24, vt#3,
1966	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1967	bel=^G, blink=\2335m, bold=\2331m, clear=\233H\233J, cr=^M,
1968	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
1969	cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C,
1970	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
1971	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
1972	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K, enacs=\E)0,
1973	flash=\233?5h$<200/>\233?5l, home=\233H, ht=^I, hts=\EH,
1974	ich=\233%p1%d@, if=/usr/share/tabset/vt100,
1975	il=\233%p1%dL, il1=\233L, ind=\ED,
1976	is2=\233?7h\233>\233?1h\E F\233?4l, kbs=^H,
1977	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
1978	kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
1979	kf13=\23325~, kf14=\23326~, kf17=\23331~, kf18=\23332~,
1980	kf19=\23333~, kf2=\EOQ, kf20=\23334~, kf3=\EOR, kf4=\EOS,
1981	kf6=\23317~, kf7=\23318~, kf8=\23319~, kf9=\23320~,
1982	kfnd=\2331~, khlp=\23328~, khome=\233H, kich1=\2332~,
1983	knp=\2336~, kpp=\2335~, krdo=\23329~, kslt=\2334~, lf1=pf1,
1984	lf2=pf2, lf3=pf3, lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i,
1985	nel=\EE, rc=\E8, rev=\2337m, ri=\EM, rmacs=^O, rmam=\233?7l,
1986	rmir=\2334l, rmso=\23327m, rmul=\23324m, rs1=\233?3l,
1987	sc=\E7, sgr0=\233m, smacs=^N, smam=\233?7h, smir=\2334h,
1988	smso=\2337m, smul=\2334m, tbc=\2333g,
1989
1990#
1991# vt220d:
1992# This vt220 description regards F6--F10 as the second block of function keys
1993# at the top of the keyboard.  This mapping follows the description given
1994# in the VT220 Programmer Reference Manual and agrees with the labeling
1995# on some terminals that emulate the vt220.  There is no support for an F5.
1996# See vt220 for an alternate mapping.
1997#
1998vt220d|DEC VT220 in vt100 mode with DEC function key labeling,
1999	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2000	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2001	kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~,
2002	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, use=vt220-old,
2003
2004vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins,
2005	am@,
2006	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2007
2008# vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2009# (not an official DEC entry!)
2010# The problem with real vt220 terminals is they don't send escapes when in
2011# in vt220 mode.  This can be gotten around two ways.  1> don't send
2012# escapes or 2> put the vt220 into vt100 mode and use all the nifty
2013# features of vt100 advanced video which it then has.
2014#
2015# This entry takes the view of putting a vt220 into vt100 mode so
2016# you can use the escape key in emacs and everything else which needs it.
2017#
2018# You probably don't want to use this on a VMS machine since VMS will think
2019# it has a vt220 and will get fouled up coming out of emacs
2020#
2021# From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2022# (Added vt100 <rc>,<sc> to quiet a tic warning -- esr)
2023vt200-js|vt220-js|dec vt200 series with jump scroll,
2024	am,
2025	cols#80,
2026	bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2027	cub1=^H, cud1=^J, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
2028	dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
2029	il1=\E[L, ind=\ED,
2030	is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1l\E[?5l\E[?6l\E[?7h\E[?8h\E[?25h\E>\E[m,
2031	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2032	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=^M\ED, rc=\E8,
2033	rf=/usr/lib/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l,
2034	rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m,
2035	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, smdc=,
2036	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
2037
2038# This was DEC's vt320.  Use the purpose-built one below instead
2039#vt320|DEC VT320 in vt100 emulation mode,
2040#	use=vt220,
2041
2042#
2043# Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
2044#
2045vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode,
2046	am@,
2047	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2048
2049# These entries are not DEC's official ones, they were purpose-built for the
2050# VT320.  Here are the designer's notes:
2051# <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to
2052# 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2053# khome is Home on a PC kbd.  Actually 'FIND' on a VT.
2054# Things that use <knxt> usually use tab anyways... and things that don't use
2055# tab usually use <knxt> instead...
2056# kprv is same as tab - Backtab is useless...
2057# I left out <sgr> because of its RIDICULOUS complexity,
2058# and the resulting fact that it causes the termcap translation of the entry
2059# to SMASH the 1k-barrier...
2060# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2061# (vt320: uncommented <fsl> --esr)
2062vt320|vt300|dec vt320 7 bit terminal,
2063	am, eslok, hs, mir, msgr, xenl,
2064	cols#80, lines#24, wsl#80,
2065	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2066	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2067	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2068	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2069	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2070	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2071	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2072	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, fsl=\E[0$},
2073	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
2074	il1=\E[L, ind=\ED,
2075	is2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2076	ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs,
2077	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2078	kdch1=\E[3~, kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
2079	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2080	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2081	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
2082	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2083	khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~,
2084	kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
2085	nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt300,
2086	ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
2087	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2088	rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2089	sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2090	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2091	tsl=\E[1$}\E[H\E[K,
2092vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy,
2093	am@,
2094	is2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2095	rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2096	use=vt320,
2097# We have to init 132-col mode, not 80-col mode.
2098vt320-w|vt300-w|dec vt320 wide 7 bit terminal,
2099	cols#132, wsl#132,
2100	is2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2101	rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2102	use=vt320,
2103vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am,
2104	am@,
2105	is2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2106	rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2107	use=vt320-w,
2108
2109# VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2110#   which are pretty much a superset of the VT320.  They have the
2111#   host writable status line, yet another different DRCS matrix size,
2112#   and such, but they add the DEC Technical character set, Multiple text
2113#   pages, selectable length pages, and the like.  The difference between
2114#   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
2115#   monitor, the former has 4 planes and a color monitor.  These terminals
2116#   support VT131 and ANSI block mode, but as with much of these things,
2117#   termcap/terminfo doesn't deal with these features.
2118#
2119# Note that this entry is are set up in what was the standard way for GNU
2120# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2121# keys were switched into application mode at the same time the numeric pad
2122# is switched into application mode.  This changes the definitions of the
2123# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2124# your termcap or terminfo entry,
2125#
2126# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2127# (vt340: string capability "sb=\E[M" corrected to "sr";
2128# also, added <rmam>/<smam> based on the init string -- esr)
2129vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page,
2130	am, eslok, hs, mir, msgr, xenl, xon,
2131	cols#80, it#8, lines#24, vt#3,
2132	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2133	blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
2134	cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2135	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
2136	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2137	cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP,
2138	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2139	dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
2140	flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, home=\E[H, ht=^I,
2141	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
2142	is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2143	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2144	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2145	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2146	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2147	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O,
2148	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2149	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
2150	smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
2151	smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
2152
2153# DEC doesn't supply a vt400 description, so we add Daniel Glasser's
2154# (originally written with vt420 as its primary name, and usable for it).
2155#
2156# VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple
2157#    text pages and long text pages with selectable length of the vt340, along
2158#    with left and right margins, rectangular area text copy, fill, and erase
2159#    operations, selected region character attribute change operations,
2160#    page memory and rectangle checksums, insert/delete column, reception
2161#    macros, and other features too numerous to remember right now.  TERMCAP
2162#    can only take advantage of a few of these added features.
2163#
2164# Note that this entry is are set up in what was the standard way for GNU
2165# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2166# keys were switched into application mode at the same time the numeric pad
2167# is switched into application mode.  This changes the definitions of the
2168# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2169# your termcap entry,
2170#
2171# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2172# (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2173# also, added <rmam>/<smam> based on the init string -- esr)
2174vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap,
2175	am, eslok, hs, mir, msgr, xenl, xon,
2176	cols#80, it#8, lines#24, vt#3,
2177	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2178	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2179	clear=\E[H\E[J$<10/>, cnorm=\E[?25h, cr=^M,
2180	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2181	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2182	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2183	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2184	dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>,
2185	el=\E[K$<4/>, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$},
2186	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2187	il=\E[%p1%dL, il1=\E[L, ind=\ED,
2188	is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2189	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2190	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2191	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2192	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2193	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O,
2194	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2195	rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7, sgr0=\E[m,
2196	smacs=^N, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
2197	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2198	tsl=\E[2$~\E[1$}\E[1;%dH,
2199
2200# (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
2201# a missing <sc> -- esr)
2202vt420|DEC VT420,
2203	am, mir, xenl, xon,
2204	cols#80, lines#24, vt#3,
2205	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2206	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2207	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2208	cub1=^H, cud1=\E[B, cuf1=\E[C,
2209	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2210	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2211	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2212	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2213	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2214	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2215	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2216	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2217	kslt=\E[4~, rc=\E8, rev=\E[7m$<2>,
2218	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>,
2219	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
2220	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2221	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2222	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
2223	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2224	smkx=\E=, smso=\E[7m, smul=\E[4m,
2225
2226#
2227# DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
2228# takes two parameters, the key and the string.  Translating the key is
2229# straightforward (keys 1-5 are not defined on real terminals, though some
2230# emulators define these):
2231#
2232#               if (key < 16) then  value = key;
2233#               else if (key < 21) then value = key + 1;
2234#               else if (key < 25) then value = key + 2;
2235#               else if (key < 27) then value = key + 3;
2236#               else if (key < 30) then value = key + 4;
2237#               else value = key + 5;
2238#
2239# The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
2240# There's no provision in terminfo for emitting a string in this format, so the
2241# application has to know it.
2242#
2243vt420pc|DEC VT420 w/PC keyboard,
2244	kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~,
2245	kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~,
2246	kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
2247	kf18=\E[17;2~, kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~,
2248	kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[23;2~,
2249	kf24=\E[24;2~, kf25=\E[23~, kf26=\E[24~, kf27=\E[25~,
2250	kf28=\E[26~, kf29=\E[28~, kf3=\E[13~, kf30=\E[29~,
2251	kf31=\E[31~, kf32=\E[32~, kf33=\E[33~, kf34=\E[34~,
2252	kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~, kf38=\E[24;2~,
2253	kf39=\E[25;2~, kf4=\E[14~, kf40=\E[26;2~, kf41=\E[28;2~,
2254	kf42=\E[29;2~, kf43=\E[31;2~, kf44=\E[32;2~,
2255	kf45=\E[33;2~, kf46=\E[34;2~, kf47=\E[35;2~,
2256	kf48=\E[36;2~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2257	kf8=\E[19~, kf9=\E[20~, khome=\E[H,
2258	pctrm=USR_TERM\:vt420pcdos\:,
2259	pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\,
2260	use=vt420,
2261
2262vt420pcdos|DEC VT420 w/PC for DOS Merge,
2263	lines#25,
2264	dispc=%?%p1%{19}%=%t\E\023\021%e%p1%{32}%<%t\E%p1%c%e%p1%{127}%=%t\E\177%e%p1%c%;,
2265	pctrm@,
2266	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@,
2267	sgr0=\E[m, smsc=\E[?1;2r\E[34h, use=vt420pc,
2268
2269vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys,
2270	kdch1=\177, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
2271	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2272	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2273	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
2274	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2275	khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS,
2276	use=vt420,
2277
2278vt510|DEC VT510,
2279	use=vt420,
2280vt510pc|DEC VT510 w/PC keyboard,
2281	use=vt420pc,
2282vt510pcdos|DEC VT510 w/PC for DOS Merge,
2283	use=vt420pcdos,
2284
2285# VT520/VT525
2286#
2287# The VT520 is a monochrome text terminal capable of managing up to
2288# four independent sessions in the terminal.  It has multiple ANSI
2289# emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
2290# and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
2291# 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
2292#
2293# Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
2294# [Alt]/[Print Screen] depending upon which keyboard and which
2295# terminal mode is being used.  If Set-Up has been disabled or
2296# assigned to an unknown key, Set-Up may be entered by pressing
2297# [F3] as the first key after power up, regardless of keyboard type.
2298# (vt520: I added <rmam>/<smam> based on the init string, also <sc> -- esr)
2299vt520|DEC VT520,
2300	am, mir, xenl, xon,
2301	cols#80, lines#24, vt#3,
2302	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2303	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2304	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2305	cub1=^H, cud1=\E[B, cuf1=\E[C,
2306	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2307	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2308	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2309	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2310	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2311	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2312	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2313	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2314	kslt=\E[4~,
2315	pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\,
2316	rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2317	ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2318	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2319	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2320	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
2321	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2322	smso=\E[7m, smul=\E[4m,
2323
2324# (vt525: I added <rmam>/<smam> based on the init string;
2325# removed <rmso>=\E[m, <rmul>=\E[m, added <sc> -- esr)
2326vt525|DEC VT525,
2327	am, mir, xenl, xon,
2328	cols#80, lines#24, vt#3,
2329	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2330	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2331	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2332	cub1=^H, cud1=\E[B, cuf1=\E[C,
2333	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2334	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2335	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2336	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2337	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2338	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2339	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2340	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2341	kslt=\E[4~,
2342	pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>%t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+%d/%p2%s\E\\,
2343	rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2344	ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2345	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2346	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2347	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
2348	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2349	smso=\E[7m, smul=\E[4m,
2350
2351#### VT100 emulations
2352#
2353
2354# John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
2355# (the best Windows telnet as of September 1995) presents the name `dec-vt100'
2356# to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
2357# that this works best with a stock vt100 entry.
2358dec-vt100|EWAN telnet's vt100 emulation,
2359	use=vt100,
2360
2361# From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
2362dec-vt220|DOS tnvt200 terminal emulator,
2363	am@, use=vt220,
2364
2365# Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
2366# anyone who needs PC VT340 emulation. (or anything below that level, for
2367# that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
2368# RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
2369# I can send the address if requested.
2370# (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
2371# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2372z340|zstem vt340 terminal emulator 132col 42line,
2373	lines#42,
2374	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2375	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2376	use=vt320-w,
2377z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins),
2378	am@,
2379	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2380	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2381	use=z340,
2382
2383# CRT is shareware.  It implements some xterm features, including mouse.
2384crt|crt-vt220|CRT 2.3 emulating VT220,
2385	bce, msgr,
2386	ncv@,
2387	hts=\EH, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2388	use=vt220, use=ecma+color,
2389
2390# This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
2391# T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
2392# (communication program) which supports:
2393#
2394#	- Serial port connections.
2395#	- TCP/IP (telnet) connections.
2396#	- VT100 emulation, and selected VT200/300 emulation.
2397#	- TEK4010 emulation.
2398#	- File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
2399#	  Quick-VAN).
2400#	- Scripts using the "Tera Term Language".
2401#	- Japanese and Russian character sets.
2402#
2403# The program does not come with terminfo or termcap entries.  However, the
2404# emulation (testing with vttest and ncurses) is reasonably close to vt100 (no
2405# vt52 or doublesize character support; blinking is done with color).  Besides
2406# the HPA, VPA extensions it also implements CPL and CNL.
2407#
2408# All of the function keys can be remapped.  This description shows the default
2409# mapping, as installed.  Both vt100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
2410# are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
2411# is laid out like vt220, rather than the face codes on the PC keyboard, i.e,
2412#	kfnd	Insert
2413#	kslt	Delete
2414#	kich1	Home
2415#	kdch1	PageUp
2416#	kpp	End
2417#	knp	PageDown
2418#
2419# ANSI colors are implemented, but cannot be combined with video attributes
2420# except for reverse.
2421#
2422# No fonts are supplied with the program, so the acsc string is chosen to
2423# correspond with the default Microsoft terminal font.
2424#
2425# Tera Term recognizes some xterm sequences, including those for setting and
2426# retrieving the window title, and for setting the window size (i.e., using
2427# "resize -s"), though it does not pass SIGWINCH to the application if the
2428# user resizes the window with the mouse.
2429teraterm|Tera Term Pro,
2430	km, xon@,
2431	ncv#43, vt@,
2432	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
2433	blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
2434	cnorm=\E[?25h, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2435	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2436	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
2437	flash=\E[?5h\E[?5l$<200/>, hpa=\E[%i%p1%dG,
2438	il=\E[%p1%dL, il1=\E[L, kdch1=\E[3~, kf1=\E[11~,
2439	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2440	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2441	kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
2442	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2443	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~,
2444	kpp=\E[5~, kslt=\E[4~, op=\E[100m, rev=\E[7m, ri=\EM,
2445	rmso=\E[27m, rmul=\E[24m, sgr0=\E[m, smso=\E[7m,
2446	smul=\E[4m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2447	vpa=\E[%i%p1%dd, use=klone+color, use=vt100,
2448
2449# Tested with WinNT 4.0, the telnet application assumes the screensize is
2450# 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
2451ms-vt100|MS telnet imitating dec vt100,
2452	lines#25,
2453	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
2454	tbc@, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c,
2455	use=vt100,
2456
2457#### X terminal emulators
2458#
2459# You can add the following line to your .Xdefaults to change the terminal type
2460# set by the xterms you start up to my-xterm:
2461#
2462# *termName:  my-xterm
2463#
2464# System administrators can change the default entry for xterm instances
2465# by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
2466# case, xterm will detect and reject an invalid terminal type, falling back
2467# to the default of xterm.
2468#
2469
2470# X10/6.6	11/7/86, minus alternate screen, plus (csr)
2471# (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
2472# removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
2473# as these seem not to work -- esr)
2474x10term|vs100-x10|xterm terminal emulator (X10 window system),
2475	OTbs, am, km, mir, msgr, xenl, xon,
2476	cols#80, it#8, lines#65,
2477	bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
2478	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2479	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2480	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
2481	il1=\E[L, ind=^J, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
2482	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
2483	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l,
2484	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2485	sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
2486	smso=\E[7m, smul=\E[4m,
2487# Compatible with the R5 xterm
2488# (from the XFree86 3.2 distribution, <blink=@> removed)
2489# added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
2490# corrected typos in rs2 string - TD
2491# added u6-u9 -TD
2492xterm-r5|xterm R5 version,
2493	OTbs, am, km, msgr, xenl,
2494	cols#80, it#8, lines#24,
2495	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2496	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2497	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2498	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2499	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2500	el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2501	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD,
2502	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
2503	kdl1=\E[31~, kel=\E[8~, kend=\E[4~, kf0=\EOq, kf1=\E[11~,
2504	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
2505	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2506	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
2507	kil1=\E[30~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8,
2508	rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
2509	rmul=\E[m,
2510	rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
2511	sc=\E7,
2512	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
2513	sgr0=\E[m, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
2514	smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
2515	u8=\E[?1;2c, u9=\E[c,
2516# Compatible with the R6 xterm
2517# (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
2518# added khome/kend, hts based on the R6 xterm code - TD
2519# (khome/kend do not actually work in X11R5 or X11R6, but many people use this
2520# for compatibility with other emulators).
2521xterm-r6|xterm-old|xterm X11R6 version,
2522	OTbs, am, km, mir, msgr, xenl,
2523	cols#80, it#8, lines#24,
2524	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2525	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2526	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2527	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2528	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2529	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2530	el=\E[K, enacs=\E)0, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
2531	il1=\E[L, ind=^J,
2532	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H,
2533	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2534	kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
2535	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2536	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2537	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
2538	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2539	kfnd=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2540	kslt=\E[4~, meml=\El, memu=\Em, rc=\E8, rev=\E[7m, ri=\EM,
2541	rmacs=^O, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
2542	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2543	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sc=\E7,
2544	sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
2545	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2546	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2547# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
2548# The name has been changed and some aliases have been removed.
2549xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
2550	OTbs, am, bce, km, mir, msgr, xenl,
2551	cols#80, it#8, lines#24, ncv@,
2552	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2553	bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
2554	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2555	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2556	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2557	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2558	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2559	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
2560	flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
2561	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
2562	il1=\E[L, ind=^J,
2563	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
2564	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq,
2565	kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2566	kdch1=\177, kend=\EOF, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
2567	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2568	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2569	kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
2570	kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2571	kf9=\E[20~, kfnd=\E[1~, khome=\EOH, kich1=\E[2~,
2572	kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El,
2573	memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
2574	rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>,
2575	rmso=\E[27m, rmul=\E[24m, rs1=^O,
2576	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sc=\E7,
2577	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2578	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2579	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2580	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
2581	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
2582	tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2583	vpa=\E[%i%p1%dd, use=ecma+color,
2584
2585# This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
2586# codes for F1-F4 except while in VT220 mode.
2587xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System),
2588	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, use=xterm-xf86-v32,
2589
2590# This version was released in XFree86 3.3.3 (November 1998).
2591# Besides providing printer support, it exploits a new feature that allows
2592# xterm to use terminfo-based descriptions with the titeInhibit resource.
2593# -- the distribution contained incorrect khome/kend values -TD
2594xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System),
2595	mc5i,
2596	blink=\E[5m, ich1@, invis=\E[8m,
2597	is2=\E[!p\E[?3;4l\E[4l\E>, kdch1=\E[3~, kfnd@, kslt@,
2598	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, rmcup=\E[?1047l\E[?1048l,
2599	rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>,
2600	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
2601	smcup=\E[?1048h\E[?1047h, use=xterm-xf86-v33,
2602
2603# This version was released in XFree86 4.0.
2604xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System),
2605	npc,
2606	kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
2607	kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C, ka1@,
2608	ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kdch1=\E[3~, kend=\EOF,
2609	kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
2610	kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
2611	kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
2612	kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
2613	kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, kf30=\E[17;5~,
2614	kf31=\E[18;5~, kf32=\E[19;5~, kf33=\E[20;5~,
2615	kf34=\E[21;5~, kf35=\E[23;5~, kf36=\E[24;5~, kf37=\EO6P,
2616	kf38=\EO6Q, kf39=\EO6R, kf40=\EO6S, kf41=\E[15;6~,
2617	kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
2618	kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
2619	kf48=\E[24;6~, khome=\EOH, rmcup=\E[?1049l,
2620	sgr=\E[0%?%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2621	smcup=\E[?1049h, use=xterm-xf86-v333,
2622
2623xterm-xfree86|xterm-new|xterm terminal emulator (XFree86 4.0 Window System),
2624	npc,
2625	kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
2626	kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C,
2627	kb2=\EOE, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
2628	kcuu1=\EOA, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
2629	kf11=\E[23~, kf12=\E[24~, kf13=\EO2P, kf14=\EO2Q,
2630	kf15=\EO2R, kf16=\EO2S, kf17=\E[15;2~, kf18=\E[17;2~,
2631	kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
2632	kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P,
2633	kf26=\EO5Q, kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~,
2634	kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
2635	kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
2636	kf36=\E[24;5~, kf37=\EO6P, kf38=\EO6Q, kf39=\EO6R,
2637	kf4=\EOS, kf40=\EO6S, kf41=\E[15;6~, kf42=\E[17;6~,
2638	kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
2639	kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~, kf5=\E[15~,
2640	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\EOH,
2641	kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2642	use=xterm-basic,
2643#
2644# This chunk is used for building the VT220/Sun/PC keyboard variants.
2645xterm-basic|xterm terminal emulator - common (XFree86),
2646	am, bce, km, mc5i, mir, msgr, xenl,
2647	colors#8, cols#80, it#8, lines#24, pairs#64,
2648	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2649	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
2650	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2651	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2652	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2653	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2654	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2655	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
2656	flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
2657	ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
2658	ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^H,
2659	kdch1=\E[3~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
2660	memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
2661	rmam=\E[?7l, rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>,
2662	rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
2663	rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm,
2664	setaf=\E[3%p1%dm,
2665	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2666	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2667	sgr=\E[0%?%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
2668	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[?1049h,
2669	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
2670	tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2671	vpa=\E[%i%p1%dd,
2672
2673# From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
2674xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1,
2675	rmso=\E[m, rmul=\E[m, use=xterm-xf86-v33,
2676
2677# This is one of the variants of XFree86 3.3 xterm, updated for 4.0 (T.Dickey)
2678xterm-16color|xterm with 16 colors like aixterm,
2679	colors#16, ncv#32, pairs#256,
2680	setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
2681	setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
2682	setb=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
2683	setf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%Pa%?%ga%{1}%=%t4%e%ga%{3}%=%t6%e%ga%{4}%=%t1%e%ga%{6}%=%t3%e%ga%d%;m,
2684	use=xterm-xfree86,
2685
2686# These variants of XFree86 3.9.16 xterm are built as a configure option.
2687xterm-256color|xterm with 256 colors,
2688	ccc,
2689	colors#256, ncv#32, pairs#256,
2690	initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
2691	setab=\E[48;5;%p1%dm, setaf=\E[38;5;%p1%dm,
2692	setb=\E[48;5;%p1%dm, setf=\E[38;5;%p1%dm,
2693	use=xterm-xfree86,
2694xterm-88color|xterm with 88 colors,
2695	colors#88, pairs#88, use=xterm-256color,
2696
2697# This is another variant, for XFree86 4.0 xterm (T.Dickey)
2698# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
2699# To use it, your decTerminalID resource must be set to 200 or above.
2700#
2701#	HTS	\E H	\210
2702#	RI	\E M	\215
2703#	SS3	\E O	\217
2704#	CSI	\E [	\233
2705#
2706xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
2707	OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl,
2708	colors#8, cols#80, it#8, lines#24, pairs#64,
2709	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2710	bel=^G, blink=\2335m, bold=\2331m, cbt=\233Z,
2711	civis=\233?25l, clear=\233H\2332J, cnorm=\233?25h, cr=^M,
2712	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
2713	cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C,
2714	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
2715	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
2716	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
2717	enacs=\E(B\E)0, flash=\233?5h$<100/>\233?5l,
2718	home=\233H, hpa=\233%i%p1%dG, ht=^I, hts=\210,
2719	ich=\233%p1%d@, il=\233%p1%dL, il1=\233L, ind=^J,
2720	invis=\2338m,
2721	is2=\E7\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>,
2722	ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kbs=^H,
2723	kc1=\217q, kc3=\217s, kcbt=\233Z, kcub1=\217D, kcud1=\217B,
2724	kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\2334~,
2725	kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~,
2726	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
2727	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
2728	kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~,
2729	kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~,
2730	kf9=\23320~, khome=\2331~, kich1=\2332~, kmous=\233M,
2731	knp=\2336~, kpp=\2335~, mc0=\233i, mc4=\2334i, mc5=\2335i,
2732	meml=\El, memu=\Em, op=\23339;49m, rc=\E8, rev=\2337m,
2733	ri=\215, rmacs=^O, rmam=\233?7l, rmcup=\233?1049l,
2734	rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
2735	rs1=\Ec,
2736	rs2=\E[62"p\E G\E7\233r\E8\233m\233?7h\233?1;3;4;6l\2334l\E>,
2737	sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm,
2738	setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2739	setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2740	sgr=\2330%?%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
2741	sgr0=\233m^O, smacs=^N, smam=\233?7h, smcup=\233?1049h,
2742	smir=\2334h, smkx=\233?1h\E=, smso=\2337m, smul=\2334m,
2743	tbc=\2333g, u6=\233[%i%d;%dR, u7=\E[6n, u8=\233[?1;2c,
2744	u9=\E[c, vpa=\233%i%p1%dd,
2745
2746xterm-hp|XFree86 xterm with hpterm function keys,
2747	kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
2748	kdch1=\EP, kend=\EF, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es,
2749	kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, kich1=\EQ,
2750	knp=\ES, kpp=\ET, use=xterm-basic,
2751
2752xterm-sco|XFree86 xterm with SCO function keys,
2753	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F,
2754	kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf13=\E[Y,
2755	kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e,
2756	kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i,
2757	kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n,
2758	kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r,
2759	kf33=\E[s, kf34=\E[t, kf35=\E[u, kf4=\E[P, kf5=\E[Q,
2760	kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
2761	kich1=\E[L, knp=\E[G, kpp=\E[I, use=xterm-basic,
2762
2763# The xterm-xfree86 description has all of the features, but is not completely
2764# compatible with vt220.  If you are using a Sun or PC keyboard, set the
2765# sunKeyboard resource to true:
2766#	+ maps the editing keypad
2767#	+ interprets control-function-key as a second array of keys, so a
2768#	  12-fkey keyboard can support vt220's 20-fkeys.
2769#	+ maps numeric keypad "+" to ",".
2770#	+ uses DEC-style control sequences for the application keypad.
2771#
2772xterm-vt220|XFree86 xterm emulating vt220,
2773	ka1=\EOw, ka3=\EOy, kbeg=\EOu, kc1=\EOq, kc3=\EOs, kcbt=\E[Z,
2774	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[4~,
2775	kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
2776	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
2777	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
2778	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~,
2779	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
2780	kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2781	use=xterm-basic,
2782
2783xterm-vt52|XFree86 xterm emulating dec vt52,
2784	cols#80, it#8, lines#24,
2785	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2786	bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
2787	cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
2788	home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
2789	kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
2790
2791xterm-noapp|xterm with cursor keys in normal mode,
2792	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rmcup@,
2793	rmkx=\E>, smcup@, smkx=\E=, use=xterm,
2794
2795xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
2796	lines#24, use=xterm-r6,
2797
2798# This is xterm for ncurses.
2799xterm|xterm terminal emulator (X Window System),
2800	use=xterm-r6,
2801#	use=xterm-xfree86,
2802
2803# These entries allow access to the X titlebar and icon name as a status line.
2804# Note that twm (and possibly window managers descended from it such as tvtwm,
2805# ctwm, and vtwm) track windows by icon-name; thus, you don't want to mess
2806# with it.
2807xterm+sl|access X title line and icon name,
2808	hs,
2809	wsl#40,
2810	dsl=\E]0;\007, fsl=^G, tsl=\E]0;, use=xterm,
2811xterm+sl-twm|access X title line (pacify twm-descended window managers),
2812	hs,
2813	wsl#40,
2814	dsl=\E]2;\007, fsl=^G, tsl=\E]2;, use=xterm,
2815
2816#
2817# The following xterm variants don't depend on your base version
2818#
2819# xterm with bold instead of underline
2820xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold,
2821	smso=\E[7m, smul=\E[1m, use=xterm,
2822# (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
2823# (kterm should not invoke DEC Graphics as the alternate character set
2824#  -- Kenji Rikitake)
2825kterm|kterm kanji terminal emulator (X window system),
2826	eslok, hs,
2827	acsc@, csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs@, fsl=\E[?F,
2828	kmous=\E[M, rc=\E8, rmacs@, sc=\E7, smacs@,
2829	tsl=\E[?E\E[?%i%dT, use=xterm-r6, use=ecma+color,
2830kterm-color|kterm-co|kterm with ANSI colors,
2831	ncv@, use=kterm, use=ecma+color,
2832# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
2833xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
2834	ich@, ich1@, use=xterm,
2835# From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996
2836xterm1|xterm terminal emulator ignoring the alternate screen buffer,
2837	rmcup@, smcup@, use=xterm,
2838
2839# This describes the capabilities of color_xterm, an xterm variant from
2840# before ECMA-64 color support was folded into the main-line xterm release.
2841# This entry is straight from color_xterm's maintainer.
2842# From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
2843# The README's with the distribution also say that it supports SGR 21, 24, 25
2844# and 27, but they are not present in the terminfo or termcap.
2845color_xterm|cx|cx100|color_xterm color terminal emulator for X,
2846	OTbs, am, km, mir, msgr, xenl,
2847	cols#80, it#8, lines#65, ncv@,
2848	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2849	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2850	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2851	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2852	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2853	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2854	el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I,
2855	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
2856	is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, ka1=\EOw, ka3=\EOy,
2857	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\EOD, kcud1=\EOB,
2858	kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kent=\EOM, kf1=\E[11~,
2859	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
2860	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2861	kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
2862	kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM,
2863	rmacs=^O, rmam=\E[?7l, rmcup=\E>\E[?41;1r, rmir=\E[4l,
2864	rmso=\E[27m, rmul=\E[24m,
2865	rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
2866	sc=\E7,
2867	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2868	sgr0=\E[m, smacs=^N, smam=\E[?7h,
2869	smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m,
2870	smul=\E[4m, use=ecma+color,
2871
2872# The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
2873# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
2874# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
2875# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
2876# that each of those implements the home, end, delete keys differently.
2877#
2878# Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
2879# colors; note that this is not compatible with the 5.2 version.
2880nxterm|xterm-color|generic color xterm,
2881	ncv@,
2882	op=\E[m, use=xterm-r6, use=klone+color,
2883
2884# this describes the alpha-version of Gnome terminal shipped with Redhat 6.0
2885gnome|Gnome terminal,
2886	bce,
2887	kdch1=\177, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2888	use=xterm-color,
2889
2890# This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
2891# or not is debatable).
2892kvt|KDE terminal,
2893	bce, km@,
2894	kdch1=\177, kend=\E[F, khome=\E[H, use=xterm-color,
2895
2896# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
2897# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
2898# Notes:
2899# rxvt 2.21b uses
2900#	smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
2901# but some applications don't work with that.
2902# It also has an AIX extension
2903#	box2=lqkxjmwuvtn,
2904# and
2905#	ech=\E[%p1%dX,
2906# but the latter does not work correctly.
2907#
2908# The distributed terminfo says it implements hpa and vpa, but they are not
2909# implemented correctly, using relative rather than absolute positioning.
2910#
2911# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
2912# Since rxvt is not really compatible with xterm, it should be configured as
2913# "rxvt" (monochrome) and "rxvt-color".
2914rxvt-basic|rxvt terminal base (X Window System),
2915	OTbs, am, bce, eo, km, mir, msgr, xenl, xon,
2916	cols#80, it#8, lines#24,
2917	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2918	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2919	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2920	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2921	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2922	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2923	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2924	el=\E[K, el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h\E[?5l,
2925	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2926	il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E[?47l\E=\E[?1l,
2927	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
2928	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
2929	kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H,
2930	kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
2931	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
2932	kend=\E[8~, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
2933	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2934	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2935	kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
2936	kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2937	kf9=\E[20~, kfnd=\E[1~, khome=\E[7~, kich1=\E[2~,
2938	kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, rc=\E8,
2939	rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
2940	rmir=\E[4l, rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
2941	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
2942	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
2943	s0ds=\E(B, s1ds=\E(0, sc=\E7, sgr0=\E[0m\017, smacs=^N,
2944	smcup=\E7\E[?47h, smir=\E[4h, smkx=\E=, smso=\E[7m,
2945	smul=\E[4m, tbc=\E[3g,
2946rxvt|rxvt terminal emulator (X Window System),
2947	ncv@,
2948	sgr0=\E[m\017, use=rxvt-basic, use=ecma+color,
2949
2950# From: Michael Jennings <mej@valinux.com>
2951# removed kf0 which conflicts with kf10 -TD
2952# remove cvvis which conflicts with cnorm -TD
2953# There's no u6 because Eterm appears to lack CPR (cursor position report).
2954Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
2955	am, bce, bw, eo, km, mc5i, mir, msgr, xenl, xon,
2956	btns#5, cols#80, it#8, lines#24, lm#0, ncv@,
2957	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2958	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2959	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2960	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2961	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
2962	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2963	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2964	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
2965	flash=\E[?5h\E[?5l, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
2966	hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
2967	ind=^J, is1=\E[?47l\E>\E[?1l,
2968	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
2969	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
2970	kPRV=\E[5$, kRIT=\E[c, ka1=\E[7~, ka3=\E[5~, kb2=\EOu,
2971	kbeg=\EOu, kbs=^H, kc1=\E[8~, kc3=\E[6~, kcbt=\E[Z,
2972	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2973	kdch1=\E[3~, kel=\E[8\^, kend=\E[8~, kent=\EOM, kf1=\E[11~,
2974	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2975	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2976	kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
2977	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2978	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
2979	khome=\E[7~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2980	kslt=\E[4~, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM,
2981	rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
2982	rmkx=, rmso=\E[27m, rmul=\E[24m,
2983	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
2984	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
2985	sc=\E7,
2986	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2987	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
2988	smir=\E[4h, smkx=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2989	u7=\E[6n, u8=\E[?1;2c, u9=\E[c, vpa=\E[%i%p1%dd,
2990	use=ecma+color,
2991
2992# These (xtermc and xtermm) are distributed with Solaris.  They refer to a
2993# variant of xterm which is apparently no longer supported, but are interesting
2994# because they illustrate SVr4 curses mouse controls - T.Dickey
2995xtermm|xterm terminal emulator (monocrome),
2996	OTbs, am, km, mir, msgr, xenl,
2997	btns#3, cols#80, it#8, lines#24,
2998	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2999	bel=^G, blink=@, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3000	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[1D,
3001	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3002	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3003	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3004	el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY,
3005	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
3006	il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr,
3007	kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
3008	kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kent=\EOM, kf0=\EOy,
3009	kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ,
3010	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
3011	kf9=\EOX, khome=\E[H, kmous=\E[^_, knp=\E[U, kpp=\E[V,
3012	rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM, rmacs=^O,
3013	rmcup=\E@0\E[?4r, rmso=\E[m,
3014	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
3015	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3016	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3017	sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
3018	smso=\E[7m, tbc=\E[3g,
3019
3020xtermc|xterm terminal emulator (color),
3021	colors#8, ncv#7, pairs#64,
3022	op=\E[100m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
3023	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3024	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3025	use=xtermm,
3026
3027# From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
3028# Here's a termcap entry I've been using for xterm_color, which comes
3029# with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
3030# color stuff, I also have a status line defined as the window manager
3031# title bar. [I have translated it to terminfo -- ESR]
3032xterm-pcolor|xterm with color used for highlights and status line,
3033	bold=\E[1m\E[43m, rev=\E[7m\E[34m, smso=\E[7m\E[31m,
3034	smul=\E[4m\E[42m, use=xterm+sl, use=xterm-r6,
3035
3036# HP ships this, except for the pb#9600 which was merged in from BSD termcap.
3037# (hpterm: added empty <acsc>, we have no idea what ACS chars look like --esr)
3038hpterm|X-hpterm|hp X11 terminal emulator,
3039	am, da, db, mir, xhp,
3040	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0,
3041	acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M,
3042	cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC,
3043	cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK,
3044	hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=^J, kbs=^H,
3045	kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3046	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
3047	kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
3048	khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
3049	knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, meml=\El,
3050	memu=\Em, pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
3051	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
3052	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
3053	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
3054	rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@,
3055	rmul=\E&d@,
3056	sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
3057	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
3058	smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
3059
3060# This entry describes an xterm with Sun-style function keys enabled
3061# via the X resource setting "xterm*sunFunctionKeys:true"
3062# To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
3063# The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
3064# because we want it to be seen as <kcpy>.
3065# The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
3066# with their Sun keyboard labels instead.
3067# From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
3068xterm-sun|xterm with sunFunctionKeys true,
3069	kb2=\E[218z, kcpy=\E[197z, kend=\E[220z, kf1=\E[224z,
3070	kf10=\E[233z, kf11=\E[192z, kf12=\E[193z, kf13=\E[194z,
3071	kf14=\E[195z, kf15=\E[196z, kf17=\E[198z, kf18=\E[199z,
3072	kf19=\E[200z, kf2=\E[225z, kf20=\E[201z, kf3=\E[226z,
3073	kf31=\E[208z, kf32=\E[209z, kf33=\E[210z, kf34=\E[211z,
3074	kf35=\E[212z, kf36=\E[213z, kf38=\E[215z, kf4=\E[227z,
3075	kf40=\E[217z, kf42=\E[219z, kf44=\E[221z, kf5=\E[228z,
3076	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
3077	kfnd=\E[200z, khlp=\E[196z, khome=\E[214z, kich1=\E[2z,
3078	knp=\E[222z, kpp=\E[216z, kund=\E[195z, use=xterm,
3079xterms-sun|small (80x24) xterm with sunFunctionKeys true,
3080	cols#80, lines#24, use=xterm-sun,
3081
3082# This is for the extensible terminal emulator on the X11R6 contrib tape.
3083emu|emu native mode,
3084	mir, msgr, xon,
3085	colors#15, cols#80, it#8, lines#24, pairs#64, vt#200,
3086	acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244,
3087	bel=^G, blink=\ES\EW, bold=\ES\EU, civis=\EZ,
3088	clear=\EP\EE0;0;, cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;,
3089	cub=\Eq-%p1%d;, cub1=^H, cud=\Ep%p1%d;, cud1=\EB,
3090	cuf=\Eq%p1%d;, cuf1=\ED, cup=\EE%p1%d;%p2%d;,
3091	cuu=\Ep-%p1%d;, cuu1=\EA, dch=\EI%p1%d;, dch1=\EI1;,
3092	dl=\ER%p1%d;, dl1=\ER1;, ech=\Ej%p1%d;, ed=\EN, el=\EK,
3093	el1=\EL, enacs=\0, home=\EE0;0;, ht=^I, hts=\Eh,
3094	il=\EQ%p1%d;, il1=\EQ1;, ind=\EG, is2=\ES\Er0;\Es0;,
3095	kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED, kcuu1=\EA,
3096	kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01, kf10=\EF10,
3097	kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14, kf15=\EF15,
3098	kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19, kf2=\EF02,
3099	kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05, kf6=\EF06,
3100	kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind, kich1=\Eins,
3101	knp=\Enext, kpp=\Eprior, kslt=\Esel, oc=\Es0;\Er0;,
3102	rev=\ES\ET, ri=\EF, rmacs=\0, rmir=\EX, rmso=\ES, rmul=\ES,
3103	rs2=\ES\Es0;\Er0;, setab=\Es%i%p1%d;,
3104	setaf=\Er%i%p1%d;, sgr0=\ES, smacs=\0, smir=\EY,
3105	smso=\ES\ET, smul=\ES\EV, tbc=\Ej,
3106
3107#### MGR
3108#
3109# MGR is a Bell Labs window system lighter-weight than X.
3110# These entries describe MGR's xterm-equivalent.
3111# They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997
3112#
3113
3114mgr|Bellcore MGR (non X) window system terminal emulation,
3115	am, km,
3116	bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=^M,
3117	csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er,
3118	cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h,
3119	dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>,
3120	dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u,
3121	ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>,
3122	il1=\Ea$<3>, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
3123	kcuf1=\E[C, kcuu1=\E[A, nel=^M^J, rev=\E1n, rmam=\E5S,
3124	rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n,
3125	smul=\E4n,
3126mgr-sun|Mgr window with Sun keyboard,
3127	ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z,
3128	kc3=\E[222z, kcpy=\E[197z, kend=\E[220z, kent=\E[250z,
3129	kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z,
3130	kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z,
3131	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
3132	kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z,
3133	kopn=\E[198z, kpp=\E[216z, kund=\E[195z, use=mgr,
3134mgr-linux|Mgr window with Linux keyboard,
3135	ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~,
3136	kdch1=\E[3~, kend=\E[4~, kf0=\E[[J, kf1=\E[[A, kf10=\E[21~,
3137	kf11=\E[23~, kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D,
3138	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3139	khome=\E[1~, knp=\E[6~, kpp=\E[5~, use=mgr,
3140
3141######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
3142#
3143
3144# Columbus UNIX virtual terminal. This terminal also appears in
3145# UNIX 4.0 and successors as line discipline 1 (?), but is
3146# undocumented and does not really work quite right.
3147cbunix|cb unix virtual terminal,
3148	OTbs, am, da, db,
3149	cols#80, lines#24, lm#0,
3150	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
3151	cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL,
3152	el=\EK, ich1=\EO, il1=\EP, ind=^J, kcub1=\ED, kcud1=\EB,
3153	kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A,
3154	smso=\Ea^D, smul=\Ea^A,
3155# (vremote: removed obsolete ":nl@:" -- esr)
3156vremote|virtual remote terminal,
3157	am@,
3158	cols#79, use=cbunix,
3159
3160pty|4bsd pseudo teletype,
3161	cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!,
3162	smso=\Ea$, smul=\Ea!, use=cbunix,
3163
3164# The codes supported by the term.el terminal emulation in GNU Emacs 19.30
3165eterm|gnu emacs term.el terminal emulation,
3166	am, mir, xenl,
3167	cols#80, lines#24,
3168	bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
3169	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3170	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3171	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3172	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3173	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
3174	il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m,
3175	rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
3176	sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m,
3177	smul=\E[4m,
3178
3179# Entries for use by the `screen' program by Juergen Weigert,
3180# Michael Schroeder, Oliver Laumann.  The screen and
3181# screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
3182# come from University of Wisconsin and may be older.
3183# (screen: added <cnorm> on ANSI model -- esr)
3184#
3185# 'screen' defines extensions to termcap.  Some are used in its terminal
3186# description:
3187#      G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
3188#      AX   (bool)  Does  understand ANSI set default fg/bg color
3189#                   (\E[39m / \E[49m).
3190#      S0   (str)   Switch charset 'G0' to the specified charset.
3191#      E0   (str)   Switch charset 'G0' back to standard charset.
3192screen|VT 100/ANSI X3.64 virtual terminal,
3193	OTbs, OTpt, am, km, mir, msgr, xenl, G0,
3194	colors#8, cols#80, it#8, lines#24, pairs#64,
3195	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3196	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
3197	clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
3198	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3199	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3200	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
3201	cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
3202	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
3203	flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
3204	il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD,
3205	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kf1=\EOP,
3206	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR,
3207	kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
3208	kf9=\E[20~, khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~,
3209	kpp=\E[5~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
3210	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m,
3211	rs2=\Ec, sc=\E7, sgr0=\E[m, smacs=^N, smir=\E[4h,
3212	smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g, E0=\E(B,
3213	S0=\E(%p1%c, use=ecma+color,
3214
3215screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
3216	cols#132, use=screen,
3217
3218screen2|old VT 100/ANSI X3.64 virtual terminal,
3219	cols#80, it#8, lines#24,
3220	cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H,
3221	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
3222	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3223	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3224	el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL,
3225	il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3226	kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
3227	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
3228	nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m,
3229	rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h,
3230	smso=\E[3m, smul=\E[4m, tbc=\E[3g,
3231# (screen3: removed unknown ":xv:LP:G0:" -- esr)
3232screen3|older VT 100/ANSI X3.64 virtual terminal,
3233	km, mir, msgr,
3234	cols#80, it#8, lines#24,
3235	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
3236	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3237	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3238	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
3239	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3240	el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
3241	il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD,
3242	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
3243	kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
3244	rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec,
3245	sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m,
3246	smul=\E[4m, tbc=\E[3g,
3247
3248# Francesco Potorti <F.Potorti@cnuce.cnr.it>:
3249# NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
3250# been maintained until recently by the National Center for Supercomputer
3251# Applications, and it is feature rich, stable and free.  It can be downloaded
3252# from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
3253# xterm+sl, and the docs at NCSA.  It works well.
3254#
3255# NCSA Telnet 2.6 for Macintosh in vt220 8-bit emulation mode
3256# The terminal options should be set as follows:
3257#         Xterm sequences ON
3258#         use VT wrap mode ON
3259#         use Emacs arrow keys OFF
3260#         CTRL-COMND is Emacs meta ON
3261#         8 bit mode ON
3262#         answerback string: "ncsa-vt220-8"
3263#         setup keys: all disabled
3264#
3265# Application mode is not used.
3266#
3267# Other special mappings:
3268#	Apple		VT220
3269#	HELP 		Find
3270#	HOME		Insert here
3271#	PAGEUP		Remove
3272#	DEL		Select
3273#	END		Prev Screen
3274#	PAGEDOWN	Next Screen
3275#
3276# Though it supports ANSI color, NCSA Telnet uses color to represent blinking
3277# text.
3278#
3279# The status-line manipulation is a mapping of the xterm-compatible control
3280# sequences for setting the window-title.  So you must use tsl and fsl in
3281# pairs, since the latter ends the string that is loaded to the window-title.
3282ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
3283	am, hs, km, mir, msgr, xenl,
3284	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3285	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3286	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
3287	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3288	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3289	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3290	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
3291	dsl=\E]0;\007, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
3292	flash=\E[?5h\E[?5l, fsl=^G, home=\E[H, ht=^I, hts=\EH,
3293	ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
3294	il=\E[%p1%dL, il1=\E[L, ind=\n$<150*>,
3295	is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, kbs=^H,
3296	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3297	kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~,
3298	kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~,
3299	kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~,
3300	kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~,
3301	khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i,
3302	rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
3303	rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l,
3304	rmso=\E[27m, rmul=\E[24m,
3305	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>, sc=\E7,
3306	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
3307	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7,
3308	smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E]0;,
3309	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?62;1;6c, u9=\E[c,
3310ncsa|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
3311	use=ncsa-m, use=klone+color,
3312ncsa-ns|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
3313	hs@,
3314	dsl@, fsl@, tsl@, use=ncsa,
3315ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
3316	hs@,
3317	dsl@, fsl@, tsl@, use=ncsa-m,
3318# alternate -TD:
3319# The documented function-key mapping refers to the Apple Extended Keyboard
3320# (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
3321# codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
3322# some keyboards and many applications require these as F1-F4.
3323#
3324ncsa-vt220|NCSA Telnet using vt220-compatible function keys,
3325	kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3326	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
3327	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
3328	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
3329	kf8=\E[19~, kf9=\E[20~, use=ncsa,
3330
3331#### Pilot Pro Palm-Top
3332#
3333# Termcap for Top Gun Telnet and SSH on the Palm Pilot.
3334# http://www.isaac.cs.berkeley.edu/pilot/tgtelnet.html
3335pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional,
3336	OTbs, am, xenl,
3337	cols#39, lines#16,
3338	bel=^G, clear=\Ec, cr=^M, cub1=^H, cud1=^J,
3339	cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I,
3340	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, knp=^L, kpp=^K, nel=\Em~\s,
3341	rmso=\EB, smso=\Eb,
3342
3343######## COMMERCIAL WORKSTATION CONSOLES
3344#
3345
3346#### Alpha consoles
3347#
3348
3349# This is from the OSF/1 Release 1.0 termcap file
3350pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation,
3351	am, xon,
3352	cols#80, lines#25,
3353	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3354	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
3355	el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H,
3356	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
3357	nel=^M^J, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m,
3358
3359#### Sun consoles
3360#
3361
3362# :is1: resets scrolling region in case a previous user had used "tset vt100"
3363oldsun|Sun Microsystems Workstation console,
3364	OTbs, am, km, mir, msgr,
3365	cols#80, it#8, lines#34,
3366	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
3367	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
3368	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
3369	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
3370	is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3371	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
3372	rmso=\E[m, sgr0=\E[m, smso=\E[7m,
3373# From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
3374# <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
3375# SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
3376sun-il|Sun Microsystems console with working insert-line,
3377	am, km, msgr,
3378	cols#80, lines#34,
3379	bel=^G, bold@, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3380	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
3381	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
3382	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
3383	kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
3384	kcuu1=\E[A, kdch1=\177, kend=\E[220z, kf1=\E[224z,
3385	kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z,
3386	kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z,
3387	kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z,
3388	knp=\E[222z, kopt=\E[194z, kpp=\E[216z, kres=\E[193z,
3389	kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@, rs2=\E[s,
3390	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3391	sgr0=\E[m, smso=\E[7m, smul@, u8=\E[1t, u9=\E[11t,
3392# On some versions of CGSIX framebuffer firmware (SparcStation 5), <il1>/<il>
3393# flake out on the last line.  Unfortunately, without them the terminal has no
3394# way to scroll.
3395sun-cgsix|sun-ss5|Sun SparcStation 5 console,
3396	il@, il1@, use=sun-il,
3397# If you are using an SS5, change the sun definition to use sun-ss5.
3398sun|sun1|sun2|Sun Microsystems Inc. workstation console,
3399	use=sun-il,
3400
3401# From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
3402sun-s|Sun Microsystems Workstation window with status line,
3403	hs,
3404	dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun,
3405sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs,
3406	hs,
3407	dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun-e,
3408sun-48|Sun 48-line window,
3409	cols#80, lines#48, use=sun,
3410sun-34|Sun 34-line window,
3411	cols#80, lines#34, use=sun,
3412sun-24|Sun 24-line window,
3413	cols#80, lines#24, use=sun,
3414sun-17|Sun 17-line window,
3415	cols#80, lines#17, use=sun,
3416sun-12|Sun 12-line window,
3417	cols#80, lines#12, use=sun,
3418sun-1|Sun 1-line window for sysline,
3419	eslok, hs,
3420	cols#80, lines#1,
3421	dsl=^L, fsl=\E[K, tsl=^M, use=sun,
3422sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character,
3423	ich1@, rmir@, smir@, use=sun,
3424sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history,
3425	lines#35,
3426	rmcup=\E[>4h, smcup=\E[>4l, use=sun,
3427
3428#### Iris consoles
3429#
3430
3431# (wsiris: this had extension capabilities
3432#	:HS=\E7F2:HE=\E7F7:\
3433#	:CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
3434# See the note on Iris extensions near the end of this file.
3435# Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> &
3436# <flash> from BRL -- esr)
3437wsiris|iris40|iris emulating a 40 line visual 50 (approximately),
3438	OTbs, OTnc, OTpt, am,
3439	OTkn#3, cols#80, it#8, lines#40,
3440	OTnl=\EB, bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB,
3441	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
3442	cvvis=\E;, dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK,
3443	flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL,
3444	ind=^J, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB,
3445	kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3,
3446	kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI,
3447	rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P,
3448	smul=\E7R2\E9P,
3449
3450#### NeWS consoles
3451#
3452# Console terminal windows under the NeWS (Sun's Display Postscript windowing
3453# environment).   Note: these have nothing to do with Sony's News workstation
3454# line.
3455#
3456
3457# Entry for NeWS's psterm from Eric Messick & Hugh Daniel
3458# (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
3459psterm|psterm-basic|NeWS psterm-80x34,
3460	OTbs, am, hs, km, ul,
3461	cols#80, it#8, lines#34,
3462	blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;,
3463	cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY,
3464	dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl,
3465	home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D,
3466	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr,
3467	ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^],
3468	sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu,
3469	tsl=\EOl,
3470psterm-96x48|NeWS psterm 96x48,
3471	cols#96, lines#48, use=psterm,
3472psterm-90x28|NeWS psterm 90x28,
3473	cols#90, lines#28, use=psterm,
3474psterm-80x24|NeWS psterm 80x24,
3475	cols#80, lines#24, use=psterm,
3476# This is a faster termcap for psterm.  Warning:  if you use this termcap,
3477# some control characters you type will do strange things to the screen.
3478# (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
3479psterm-fast|NeWS psterm fast version (flaky ctrl chars),
3480	OTbs, am, hs, km, ul,
3481	cols#80, it#8, lines#34,
3482	blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;,
3483	cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y,
3484	dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I,
3485	il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
3486	kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni,
3487	rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi,
3488	smso=^Oo, smul=^Ou, tsl=^Ol,
3489
3490#### NeXT consoles
3491#
3492# Use `glasstty' for the Workspace application
3493#
3494
3495# From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
3496next|NeXT console,
3497	am, xt,
3498	cols#80, it#8, lines#24,
3499	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3500	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
3501	ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
3502	rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m,
3503nextshell|NeXT Shell application,
3504	am,
3505	cols#80,
3506	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H,
3507	kcud1=^J, nel=^M^J,
3508
3509#### Sony NEWS workstations
3510#
3511
3512# (news-unk: this had :KB=news: -- esr)
3513news-unk|SONY NEWS vt100 emulator common entry,
3514	OTbs, OTpt, am, xenl,
3515	cols#80,
3516	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
3517	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
3518	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
3519	ed=\E[J, el=\E[K, home=\E[H, ht=^I,
3520	if=/usr/lib/tabset/vt100, il=\E[%p1%dL, il1=\E[L,
3521	is2=\E[?7h\E[?1l\E[?3l\E7\E8, kbs=^H, kcub1=\EOD,
3522	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP,
3523	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
3524	kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM,
3525	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3526	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sc=\E7,
3527	sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
3528#
3529# (news-29: this had :TY=ascii: --esr)
3530news-29,
3531	lines#29, use=news-unk,
3532# (news-29-euc: this had :TY=euc: --esr)
3533news-29-euc,
3534	use=news-29,
3535# (news-29-sjis: this had :TY=sjis: --esr)
3536news-29-sjis,
3537	use=news-29,
3538#
3539# (news-33: this had :TY=ascii: --esr)
3540news-33,
3541	lines#33, use=news-unk,
3542# (news-33-euc: this had :TY=euc: --esr)
3543news-33-euc,
3544	use=news-33,
3545# (news-33-sjis: this had :TY=sjis: --esr)
3546news-33-sjis,
3547	use=news-33,
3548#
3549# (news-42: this had :TY=ascii: --esr)
3550news-42,
3551	lines#42, use=news-unk,
3552# (news-42-euc: this had :TY=euc: --esr)
3553news-42-euc,
3554	use=news-42,
3555# (news-42-sjis: this had :TY=sjis: --esr)
3556news-42-sjis,
3557	use=news-42,
3558#
3559#	NEWS-OS old termcap entry
3560#
3561# (news-old-unk: this had :KB=news:TY=sjis: --esr)
3562news-old-unk|SONY NEWS vt100 emulator common entry,
3563	OTbs, OTpt, am, xenl,
3564	cols#80, vt#3,
3565	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
3566	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
3567	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
3568	home=\E[H, ht=^I, if=/usr/lib/tabset/vt100, kbs=^H,
3569	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
3570	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM,
3571	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3572	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3573	sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
3574#
3575# (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
3576nwp512|news|nwp514|news40|vt100-bm|old sony vt100 emulator 40 lines,
3577	OTbs,
3578	lines#40,
3579	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
3580	use=news-old-unk,
3581#
3582# (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
3583nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line,
3584	lines#42,
3585	is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8,
3586	use=news-old-unk,
3587#
3588# (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as <OTbs>. --esr)
3589nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines,
3590	OTbs,
3591	lines#40,
3592	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
3593	use=news-old-unk,
3594#
3595# (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
3596nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines,
3597	OTbs,
3598	lines#31,
3599	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
3600	use=news-old-unk,
3601#
3602# (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
3603# also the alias vt100-bm.
3604nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|old sony vt100 emulator 33 lines,
3605	OTbs,
3606	lines#33,
3607	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8,
3608	use=news-old-unk,
3609#
3610# (nwp513-o: had :DE=^H:, I think that's <OTbs>; also the alias vt100-bm --esr)
3611nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|old sony vt100 emulator 33 lines,
3612	OTbs,
3613	lines#31,
3614	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
3615	use=news-old-unk,
3616#
3617# (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
3618news28|sony vt100 emulator 28 lines,
3619	OTbs,
3620	lines#28,
3621	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8,
3622	use=news-old-unk,
3623#
3624# (news29: this had :TY=ascii:KB=nws1200:\ --esr)
3625news29|news28-a|sony vt100 emulator 29 lines,
3626	lines#29,
3627	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8,
3628	use=news-old-unk,
3629#
3630# (news511: this had :TY=sjis: --esr)
3631nwp511|nwp-511|nwp-511 vt100,
3632	OTbs, OTpt, am, xenl,
3633	cols#80, lines#24,
3634	clear=\E[;H\E[2J$<20/>, cuf1=\E[C,
3635	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A$<2/>, dl1=\E[M,
3636	ed=\E[J$<30/>, el=\E[K$<3/>,
3637	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
3638	il1=\E[L, is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D,
3639	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
3640	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\E#W, khome=\E[H,
3641	ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
3642	rs2=\E7\E[r\E8\E[?5l\E[?1l\E>\E[?7h\E[?8h,
3643	smso=\E[7m$<2/>, smul=\E[4m$<2/>,
3644# (news517: this had :TY=sjis:. --esr)
3645nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows,
3646	eslok, hs,
3647	cols#80, lines#30,
3648	OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
3649	is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3650	tsl=\E[1$}\E[;%df, use=vt200,
3651# (news517-w: this had :TY=sjis:. --esr)
3652nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows,
3653	eslok, hs,
3654	cols#132, lines#50,
3655	OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
3656	is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
3657	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
3658	tsl=\E[1$}\E[;%df, use=vt200,
3659
3660#### Common Desktop Environment
3661#
3662
3663# This ships with Sun's CDE in Solaris 2.5
3664# Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
3665dtterm|CDE desktop terminal,
3666	am, mir, msgr, xenl, xon,
3667	cols#80, it#8, lines#24, lm#0, ncv@,
3668	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3669	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3670	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
3671	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3672	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3673	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3674	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
3675	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
3676	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H,
3677	ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
3678	ind=\ED, invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l,
3679	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3680	kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
3681	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
3682	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
3683	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
3684	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3685	kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
3686	kslt=\E[4~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
3687	rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, rmul=\E[24m,
3688	sc=\E7,
3689	sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3690	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
3691	smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=ecma+color,
3692
3693#### Non-Unix Consoles
3694#
3695
3696# Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
3697# a Unix-style environment used on OS/2.  (Note that the suffix makes some
3698# names longer than 14 characters, the nominal maximum).
3699#
3700# Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
3701ansi-emx|ANSI.SYS color,
3702	am, bce, eo, mir, msgr, xenl, xon,
3703	colors#16, cols#80, it#8, lines#25, pairs#64,
3704	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3705	clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3706	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3707	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3708	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3709	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3710	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3711	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3712	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[5;37;41m,
3713	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;44m\E[1;33m,
3714	rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm,
3715	setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h,
3716	smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m,
3717	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3718ansi-color-2-emx|ANSI.SYS color 2,
3719	am, bce, eo, mir, msgr, xenl, xon,
3720	colors#16, cols#80, it#8, lines#25, pairs#64,
3721	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3722	clear=\E[0;37;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3723	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3724	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3725	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3726	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3727	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3728	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3729	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
3730	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;44m,
3731	rmul=\E[0;37;44m, rs1=\Ec, setab=\E[4%p1%dm,
3732	setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smir=\E[4h,
3733	smpch=\E[11m, smso=\E[1;37;46m, smul=\E[1;36;44m,
3734	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3735ansi-color-3-emx|ANSI.SYS color 3,
3736	am, bce, eo, mir, msgr, xenl, xon,
3737	colors#16, cols#80, it#8, lines#25, pairs#64,
3738	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3739	clear=\E[0;37;40m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3740	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3741	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3742	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3743	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3744	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3745	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3746	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
3747	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;40m,
3748	rmul=\E[0;37;40m, rs1=\Ec, setab=\E[4%p1%dm,
3749	setaf=\E[3%p1%dm, sgr0=\E[0;10m, smir=\E[4h,
3750	smpch=\E[11m, smso=\E[1;37;46m, smul=\E[0;36;40m,
3751	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3752mono-emx|stupid monochrome ansi terminal with only one kind of emphasis,
3753	am,
3754	cols#80, it#8, lines#24,
3755	clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
3756	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
3757	ht=^I, kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M,
3758	kcuu1=\0H, kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>,
3759	kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G,
3760	kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I, nel=^M^J, rev=\E[7m,
3761	sgr0=\E[0m,
3762
3763# Use this for cygwin32 (tested with beta 19.1)
3764# underline is colored bright magenta
3765# shifted kf1-kf12 are kf11-kf22
3766cygwin|ansi emulation for cygwin32,
3767	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3768	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
3769	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
3770	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
3771	kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
3772	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3773	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rmam@, smam@,
3774	use=ansi.sys,
3775
3776# This entry fits the Windows NT console when the _POSIX_TERM environment
3777# variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
3778# the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
3779# stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
3780# systems is not, and (surprise!) they match very well.
3781#
3782# See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
3783# VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
3784# are the installation instructions a pile of mind-numbing bureaucratese,
3785# but the termcap entry is actually broken and unusable as given; the :do:
3786# capability is misspelled "d".
3787#
3788# To use this, you need to a bunch of environment variables:
3789#
3790# SET _POSIX_TERM=on
3791# SET TERM=ansi
3792# SET TERMCAP=location of termcap file in POSIX file format
3793# which is case-sensitive.
3794# e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
3795# SET TMP=//C/TEMP
3796#
3797# Important note: setting the TMP environment variable in POSIX style renders
3798# it incompatible with a lot of other applications, including Visual C++. So
3799# you should have a separate command window just for vi. All the other
3800# variables may be permanently set in the Control Panel\System applet.
3801#
3802# You can find out more about the restrictions of this facility at
3803# <http://www.nentug.org/unix-to-nt/ntposix.htm>.
3804#
3805# From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
3806ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode,
3807	am, bw, msgr,
3808	cols#80, it#8, lines#25,
3809	bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3810	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
3811	home=\E[H, ht=^I, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[V,
3812	kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S, rc=\E[u, rev=\E[7m,
3813	ri=\E[T, rmso=\E[m, sc=\E[s, sgr0=\E[0m, smso=\E[7m,
3814# From: jew@venus.sunquest.com
3815# Date: 19 Feb 93 23:41:07 GMT
3816# Here's  a  combination of  ansi and  vt100 termcap
3817# entries   that  works  nearly   perfectly  for  me
3818# (Gateway 2000 Handbook and Microsoft Works 3.0):
3819pcmw|PC running Microsoft Works,
3820	am, xenl,
3821	cols#80, it#8, lines#24, vt#3,
3822	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
3823	clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J,
3824	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
3825	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
3826	ht=^I, hts=\EH$<2/>, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H,
3827	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
3828	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED$<5/>,
3829	rc=\E8, rev=\E[7m$<2/>, rf=/usr/share/lib/tabset/vt100,
3830	ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
3831	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3832	sgr0=\E[m$<2/>, smso=\E[7m$<2/>, smul=\E[4m$<2/>,
3833	tbc=\E[3g$<2/>,
3834
3835######## COMMON TERMINAL TYPES
3836#
3837# This section describes terminal classes and maker brands that are still
3838# quite common, but have proprietary command sets not blessed by ANSI.
3839#
3840
3841#### Altos
3842#
3843# Altos made a moderately successful line of UNIX boxes.  In 1990 they were
3844# bought out by Acer, a major Taiwanese manufacturer of PC-clones.
3845# Acer has a web site at http://www.acer.com.
3846#
3847# Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
3848# His comments suggest they were shipped with the system.
3849#
3850
3851# (altos2: had extension capabilities
3852#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3853#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3854#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3855#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3856#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
3857#	:YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
3858#	:HL=^AP\r:SP=\E[i:\
3859#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
3860#	:LO=\E[0q:LC=\E[5q:LL=\E[6q:\
3861# Comparison with the k* capabilities makes it obvious that the c* things are
3862# shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
3863# :sr: was given as a boolean-- esr)
3864altos2|alt2|altos-2|altos II,
3865	cols#80, it#8, lines#24, xmc#0,
3866	clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[1B, cuf1=\E[1C,
3867	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch1=\E[P, dl1=\E[M,
3868	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
3869	if=/usr/share/tabset/vt100, il1=\E[L, ind=^J,
3870	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r,
3871	kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D,
3872	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r,
3873	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
3874	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
3875	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
3876	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
3877	kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r,
3878	nel=^M^J, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
3879	smam=\E[?7h, smso=\E[7m, smul=\E[4m,
3880# (altos3: had extension capabilities
3881#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3882#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3883#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3884#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3885#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
3886#	:HL=^AP\r:SP=\E[i:\
3887#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
3888altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V,
3889	blink=\E[5p, ri=\EM, sgr0=\E[p, use=altos2,
3890altos4|alt4|altos-4|altos IV,
3891	use=wy50,
3892# (altos7: had extension capabilities:
3893#	:GG#0:GI=\EH8:GF=\EH7:\
3894#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3895#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3896#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3897#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3898# Comparison with the k* capabilities makes it obvious that the c* things are
3899# shift keys.  I have renamed them to keys 32 and up accordingly.  I have
3900# also made this entry relative to adm12 in order to give it an <sgr>. The
3901# <invis> imported by use=adm+sgr may work, let me know. -- esr)
3902altos7|alt7|altos VII,
3903	am, mir,
3904	cols#80, lines#24, xmc#0,
3905	acsc=j5k3l2m1n8q\:t4u9v=w0x6, blink=\EG2, bold=\EGt,
3906	clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
3907	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
3908	dim=\EGp, dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE,
3909	ind=^J, invis=\EG1,
3910	is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r,
3911	kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H,
3912	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r,
3913	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
3914	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
3915	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
3916	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
3917	kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r,
3918	knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=^M^J, ri=\Ej,
3919	rmir=\Er, smir=\Eq, use=adm+sgr,
3920altos7pc|alt7pc|altos PC VII,
3921	kend=\ET, use=altos7,
3922
3923#### Hewlett-Packard (hp)
3924#
3925#	Hewlett-Packard
3926#	8000 Foothills Blvd
3927#	Roseville, CA 95747
3928#	Vox: 1-(916)-785-4363	(Technical response line for VDTs)
3929#	     1-(800)-633-3600	(General customer support)
3930#
3931#
3932# As of March 1998, HP no longer has any terminals in production.
3933# The 700 series (22, 32, 41, 44, 92, 94, 96, 98) is still being
3934# supported (they still have parts). So are the 2392a and 2394a.
3935# See the WORKSTATION CONSOLES section for the 700s.
3936#
3937
3938# Generic HP terminal - this should (hopefully) work on any HP terminal.
3939hpgeneric|hp|hewlett-packard generic terminal,
3940	OTbs, OTpt, am, da, db, mir, xhp,
3941	cols#80, lines#24, lm#0, vt#6,
3942	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
3943	cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM,
3944	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL,
3945	ind=^J, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@,
3946	sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3,
3947	vpa=\E&a%p1%dY,
3948
3949hp110|hewlett-packard model 110 portable,
3950	lines#16, use=hpgeneric,
3951
3952hp+pfk+cr|hp function keys with CR,
3953	kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r,
3954	kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r,
3955
3956hp+pfk-cr|hp function keys w/o CR,
3957	kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev,
3958	kf8=\Ew,
3959
3960# The hp2621s use the same keys for the arrows and function keys,
3961# but not separate escape sequences. These definitions allow the
3962# user to use those keys as arrow keys rather than as function
3963# keys.
3964hp+pfk+arrows|hp alternate arrow definitions,
3965	kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@,
3966	kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r,
3967	kll=\Eq\r, kri=\Es\r,
3968
3969hp+arrows|hp arrow definitions,
3970	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
3971	kind=\ES, kll=\EF, kri=\ET,
3972
3973# Generic stuff from the HP 262x series
3974#
3975hp262x|HP 262x terminals,
3976	xhp,
3977	blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES,
3978	invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3979	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
3980	kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET,
3981	krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
3982	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%c,
3983	sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
3984
3985# Note: no <home> on HPs since that homes to top of memory, not screen.
3986# Due to severe 2621 braindamage, the only way to get the arrow keys to
3987# transmit anything at all is to turn on the function key labels
3988# with <smkx>, and even then the user has to hold down shift!
3989# The default 2621 turns off the labels except when it has to to
3990# enable the function keys. If your installation prefers labels
3991# on all the time, or off all the time (at the "expense" of the
3992# function keys), use 2621-nl or 2621-wl.
3993#
3994# Note: there are newer ROMs for 2621's that allow you to set
3995# strap A so the regular arrow keys xmit \EA, etc, as with the
3996# 2645. However, even with this strap set, the terminal stops
3997# xmitting if you reset it, until you unset and reset the strap!
3998# Since there is no way to set/unset the strap with an escape
3999# sequence, we don't use it in the default.
4000# If you like, you can use 2621-ba (brain-damaged arrow keys).
4001hp2621-ba|2621 w/new rom and strap A set,
4002	rmkx@, smkx@, use=hp+arrows, use=hp2621,
4003
4004# hp2621 with function labels. Most of the time they are off,
4005# but inside vi, the function key labels appear. You have to
4006# hold down shift to get them to xmit.
4007hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels,
4008	is2=\E&jA\r, rmkx=\E&jA, use=hp2621-fl,
4009hp2621-fl|hp 2621,
4010	xhp@, xon,
4011	pb#19200,
4012	cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>,
4013	ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@,
4014	sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD,
4015	use=hp+pfk+cr, use=hpgeneric,
4016
4017# To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
4018hp2621p|hp 2621 with printer,
4019	mc4=\E&p13C, mc5=\E&p11C, use=hp2621,
4020
4021hp2621p-a|hp2621p with fn as arrows,
4022	use=hp+pfk+arrows, use=hp2621p,
4023
4024# hp2621 with k45 keyboard
4025hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard,
4026	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
4027	khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
4028
4029# 2621 using all 48 lines of memory, only 24 visible at any time.
4030hp2621-48|48 line 2621,
4031	lines#48,
4032	cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR,
4033	use=hp2621,
4034
4035# 2621 with no labels ever. Also prevents vi delays on escape.
4036hp2621-nl|hp 2621 with no labels,
4037	kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@,
4038	use=hp2621-fl,
4039
4040# Needed for UCB ARPAVAX console, since lsi-11 expands tabs
4041# (wrong).
4042#
4043hp2621-nt|hp 2621 w/no tabs,
4044	ht@, use=hp2621,
4045
4046# Hp 2624 B with 4 or 10 pages of memory.
4047#
4048# Some assumptions are made with this entry. These settings are
4049# NOT set up by the initialization strings.
4050#
4051# Port Configuration
4052# 	RecvPace=Xon/Xoff
4053# 	XmitPace=Xon/Xoff
4054# 	StripNulDel=Yes
4055#
4056# Terminal Configuration
4057# 	InhHndShk=Yes
4058# 	InhDC2=Yes
4059# 	XmitFnctn(A)=No
4060# 	InhEolWrp=No
4061#
4062# Note: the 2624 DOES have a true <home>, believe it or not!
4063#
4064# The 2624 has an "error line" to which messages can be sent.
4065# This is CLOSE to what is expected for a "status line". However,
4066# after a message is sent to the "error line", the next carriage
4067# return is EATEN and the "error line" is turned back off again!
4068# So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
4069#
4070# This entry supports emacs (and any other program that uses raw
4071# mode) at 4800 baud and less. I couldn't get the padding right
4072# for 9600.
4073#
4074# (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
4075hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B,
4076	da, db,
4077	lm#96,
4078	flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F,
4079	use=hp+labels, use=scrhp,
4080
4081# This hp2626 entry does not use any of the fancy windowing stuff
4082# of the 2626.
4083#
4084# Indeed, terminfo does not yet handle such stuff. Since changing
4085# any window clears memory, it is probably not possible to use
4086# this for screen opt.
4087#
4088# ed is incredibly slow most of the time - I am guessing at the
4089# exact padding. Since the terminal uses xoff/xon this is intended
4090# only for cost computation, so that the terminal will prefer el
4091# or even dl1 which is probably faster!
4092#
4093# \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
4094# extra slow on the last line of the window.
4095#
4096# The padding probably should be changed.
4097#
4098hp2626|hp2626a|hp2626p|hp 2626,
4099	da, db,
4100	lm#0, pb#19200,
4101	ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>,
4102	is2=\E&j@\r, rin=\E&r%p1%dU, use=hp+pfk+cr,
4103	use=hp+labels, use=scrhp,
4104
4105# This entry is for sysline. It allocates a 23 line window with
4106# a 115 line workspace for regular use, and a 1 line window for
4107# the status line.
4108#
4109# This assumes port 2 is being used.
4110# Turn off horizontal line, Create ws #1 with 115 lines,
4111# Create ws #2 with 1 line, Create window #1 lines 1-23,
4112# Create window #2 lines 24-24, Attach cursor to workspace #1.
4113# Note that this clears the tabs so it must be done by tset before
4114# it sets the tabs.
4115#
4116hp2626-s|hp 2626 using only 23 lines,
4117	eslok, hs,
4118	lines#23,
4119	fsl=\E&d@\E&w7f2p1I\E&w4f1I,
4120	is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r,
4121	tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, use=hp2626,
4122# Force terminal back to 24 lines after being 23.
4123hp2626-ns|hp 2626 using all 24 lines,
4124	is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r,
4125	use=hp2626,
4126# Various entries useful for small windows on 2626.
4127hp2626-12|hewlett-packard 2626 12 lines,
4128	lines#12, use=hp2626,
4129hp2626-12x40|hewlett-packard 2626 12 lines 40 columns,
4130	cols#40, lines#12, use=hp2626,
4131hp2626-x40|hewlett-packard 2626 40 columns,
4132	cols#40, use=hp2626,
4133hp2626-12-s|hewlett-packard 2626 11 lines plus status,
4134	lines#11, use=hp2626-s,
4135
4136#
4137# hp2627 color tubes from University of Wisconsin
4138#
4139hp2627a-rev|hp 2627 with reverse video colors,
4140	cr=^M, cud1=^J, ht=^I, ind=^J,
4141	is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r,
4142	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmul=\E&v0S\E&d@,
4143	smul=\E&dD\E&v1S, use=hp2621-nl,
4144hp2627a|hp 2627 color terminal with no labels,
4145	cr=^M, cud1=^J, ht=^I, ind=^J,
4146	is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r,
4147	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmso=\E&v0S,
4148	rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S,
4149	use=hp2621-nl,
4150hp2627c|hp 2627 color (cyan) terminal with no labels,
4151	cr=^M, cud1=^J, ht=^I, ind=^J,
4152	is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r,
4153	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, use=hp2627a,
4154
4155# hp2640a doesn't have the Y cursor addressing feature, and C is
4156# memory relative instead of screen relative, as we need.
4157#
4158hp2640a|hp 2640a,
4159	cup@, rmkx@, smkx@, use=hp2645,
4160
4161hp2640b|hp2644a|hp 264x series,
4162	rmkx@, smkx@, use=hp2645,
4163
4164# (hp2641a: removed unknown :gu: -- esr)
4165hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry,
4166	am, da, db, mir, xhp,
4167	cols#80, lines#24,
4168	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4169	cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
4170	ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I,
4171	if=/usr/share/tabset/std, il1=\EL, ind=^J,
4172	is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
4173	rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
4174	vpa=\E&a%p1%2dY,
4175
4176# This terminal should be used at 4800 baud or less. It needs padding for
4177# plain characters at 9600, I guessed at an appropriate cr delay.  It really
4178# wants ^E/^F handshaking, but that doesn't work well even if you write
4179# software to support it.
4180hp2645|hp45|HP 2645 series,
4181	pb#9600,
4182	blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED,
4183	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4184	ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL,
4185	kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB,
4186	rmkx=\E&s0A,
4187	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%?%p5%t%{72}%|%;%?%p6%t%{66}%|%;%c,
4188	sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, use=hpgeneric,
4189# You should use this terminal at 4800 baud or less.
4190hp2648|hp2648a|HP 2648a graphics terminal,
4191	clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
4192	dch1=\EP$<7>, ip=$<5>, use=hp2645,
4193
4194# The HP 150 terminal is a fairly vanilla HP terminal, with the
4195# clreol standout problem. It also has graphics capabilities and
4196# a touch screen, which we don't describe here.
4197hp150|hewlett packard Model 150,
4198	OTbs, use=hp2622,
4199
4200# HP 2382a terminals, "the little ones." They don't have any
4201# alternate character set support and sending out ^N/^O will
4202# leave the screen blank.
4203hp2382a|hp2382|hewlett packard 2382a,
4204	da, db,
4205	lh#1, lm#48,
4206	acsc@,
4207	pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
4208	rmacs@,
4209	sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c,
4210	sgr0=\E&d@, smacs@, use=hp+labels, use=scrhp,
4211
4212hp2621-a|hp2621a-a|hp2621 with fn as arrows,
4213	use=hp+pfk+arrows, use=hp2621-fl,
4214
4215# newer hewlett packard terminals
4216
4217newhpkeyboard|generic entry for HP extended keyboard,
4218	kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4219	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
4220	kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV,
4221	kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A,
4222	use=hp+pfk-cr,
4223
4224newhp|generic entry for new hewlett packard terminals,
4225	am, bw, mir, xhp, xon,
4226	cols#80, lines#24, pb#4800,
4227	acsc=2[3@4>5I9(\:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\:Y+Z*dHjGkTlRmFn/q\,t5u6v8w7x.,
4228	bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H,
4229	cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH,
4230	dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J,
4231	invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=^M^J,
4232	pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s,
4233	pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s,
4234	pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET,
4235	rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg,
4236	sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%{64}%+%e%{83}%;%e%?%ga%t%ga%{64}%+%e%{64}%;%;%c%?%p9%t\016%e\017%;,
4237	sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD,
4238	tbc=\E3, use=newhpkeyboard,
4239
4240memhp|memory relative addressing for new HP ttys,
4241	vt#6,
4242	clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR,
4243	cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR,
4244	home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r,
4245	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp,
4246
4247scrhp|screen relative addressing for new HP ttys,
4248	clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC,
4249	cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC,
4250	cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR,
4251	home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA,
4252	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp,
4253
4254# (hp+labels: added label values from a BRL termcap -- esr)
4255hp+labels|"standard" label info for new HP ttys,
4256	lh#2, lw#8, nlab#8,
4257	lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8,
4258	pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
4259	rmln=\E&j@, smln=\E&jB,
4260
4261hp+printer|"standard" printer info for HP ttys,
4262	ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C,
4263
4264
4265# The new hp2621b is kind of a cross between the old 2621 and the
4266# new 262x series of machines. It has dip-switched options.
4267# The firmware has a bug in it such that if you give it a null
4268# length label, the following character is eaten!
4269hp2621b|hp 2621b with old style keyboard,
4270	lh#1, lm#48, lw#8, nlab#8,
4271	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
4272	kind=\ET, kll=\EF, kri=\ES,
4273	pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%{32}%c%;%p2%s\E%{111}%p1%+%c\r,
4274	smln=\E&jB, use=hp2621,
4275
4276hp2621b-p|hp 2621b with printer,
4277	use=hp+printer, use=hp2621b,
4278
4279# hp2621b - new 2621b with new extended keyboard
4280# these are closer to the new 26xx series than the other 2621b
4281hp2621b-kx|hp 2621b with extended keyboard,
4282	use=newhpkeyboard, use=hp2621b,
4283
4284hp2621b-kx-p|hp 2621b with new keyboard & printer,
4285	use=hp+printer, use=hp2621b-kx,
4286
4287# Some assumptions are made in the following entries.
4288# These settings are NOT set up by the initialization strings.
4289#
4290#    Port Configuration
4291# RecvPace=Xon/Xoff	XmitPace=Xon/Xoff	StripNulDel=Yes
4292#
4293#    Terminal Configuration
4294# InhHndShk(G)=Yes	InhDC2(H)=Yes
4295# XmitFnctn(A)=No		InhEolWrp=No
4296#
4297#
4298# Hp 2622a & hp2623a display and graphics terminals
4299#
4300hp2622|hp2622a|hp 2622,
4301	da, db,
4302	lm#0, pb#19200,
4303	is2=\E&dj@\r, use=hp+pfk+cr, use=hp+labels, use=scrhp,
4304
4305# The 2623 is a 2622 with extra graphics hardware.
4306hp2623|hp2623a|hp 2623,
4307	use=hp2622,
4308
4309hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer,
4310	use=hp+printer, use=hp2624,
4311
4312# The hewlett packard B can have an optional extra 6 pages of memory.
4313hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory,
4314	lm#240, use=hp2624,
4315
4316hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer,
4317	lm#240, use=hp2624b-p,
4318
4319# Color manipulations for HP terminals
4320hp+color|hp with colors,
4321	ccc,
4322	colors#16, ncv#17, pairs#7,
4323	initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a%?%p3%{1000}%=%t1%e.%p3%d%;b%?%p4%{1000}%=%t1%e.%p4%d%;c%?%p5%{1000}%=%t1%e.%p5%d%;x%?%p6%{1000}%=%t1%e.%p6%d%;y%?%p7%{1000}%=%t1%e.%p7%d%;z%p1%dI,
4324	oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I,
4325	op=\E&v0S, scp=\E&v%p1%dS,
4326
4327# <is2> sets the screen to be 80 columns wide
4328hp2397a|hp2397|hewlett packard 2397A color terminal,
4329	is2=\E&w6f80X, use=memhp, use=hp+labels, use=hp+color,
4330
4331#  HP 700/44 Setup parameters:
4332# Terminal Mode		HP-PCterm
4333# Inhibit Auto Wrap	NO
4334# Status Line		Host Writable
4335# PC Character Set	YES
4336# Twenty-Five Line Mode	YES
4337# XON/XOFF		@128 or 64 (sc)
4338# Keycode Mode 		NO   or YES (sc)
4339# Backspace Key		BS or BS/DEL
4340#
4341# <is2> 	sets pcterm; autowrap; 25 lines; pc char set; prog DEL key;
4342# \E\\? does not turn off keycode mode
4343# <smsc>	sets alternate start/stop; keycode on
4344hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode,
4345	am, eo, xenl, xon,
4346	cols#80, lines#25,
4347	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
4348	bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H,
4349	cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
4350	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
4351	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
4352	ind=^J,
4353	is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\,
4354	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
4355	kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
4356	kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~,
4357	kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~,
4358	kpp=\E[5~, rmam=\E[?7l,
4359	rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m,
4360	rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
4361	smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m,
4362	smul=\E[4m, xoffc=g, xonc=e,
4363#
4364# (hp2392: copied <rmir> here from hpex -- esr)
4365hp2392|239x series,
4366	cols#80,
4367	cbt=\Ei, cup=\E&a%p1%dy%p2%dC, kf1=\Ep\r, kf2=\Eq\r,
4368	kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r,
4369	kf8=\Ew\r, khome=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV,
4370	rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY,
4371	use=hpsub,
4372
4373hpsub|hp terminals -- capability subset,
4374	am, da, db, mir, xhp, xon,
4375	lines#24,
4376	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
4377	cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC,
4378	ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J,
4379	is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB,
4380	kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@,
4381	sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
4382
4383# hpex:
4384#	May be used for most 24 x 80 hp terminals,
4385# but has no padding added, so may allow runover in some terminals at high
4386# baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and
4387# hp98x5 terminal emulators or hp98x6 consoles.
4388# 	Adds xy-cursor addressing, vertical cursor addressing, home,
4389# last line, and underline capabilities.
4390#
4391# (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
4392# moved <rmir> here from hpsub -- esr)
4393hpex|hp extended capabilites,
4394	cr=^M, cud1=^J, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=^J, kbs=^H,
4395	kcub1=^H, kcud1=^J, nel=^M^J, rmir=\ER, rmul=\E&d@, smir=\EQ,
4396	smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub,
4397
4398# From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
4399hp2|hpex2|hewlett-packard extended capabilities newer version,
4400	am, da, db, mir, xhp,
4401	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, xmc#0,
4402	bel=^G, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
4403	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4404	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4405	il1=\EL, ind=^J, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
4406	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4407	ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
4408	kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
4409	kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
4410	krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
4411	pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
4412	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
4413	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
4414	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A,
4415	rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
4416	sgr=\E&d%?%p7%t%{115}%c%;%p1%p3%|%p6%|%{2}%*%p2%{4}%*%+%p4%+%p5%{8}%*%+%{64}%+%c%?%p9%t%'\016'%c%e%'\017'%c%;,
4417	sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smln=\E&jB, smso=\E&dB,
4418	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4419
4420# HP 236 console
4421# From: <ddavis@ic.berkeley.edu>
4422hp236|hp236 internal terminal emulator,
4423	OTbs, am,
4424	cols#80, lines#24,
4425	clear=\EF, cnorm=\EDE, cub1=^H,
4426	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\EDB,
4427	dch1=\EJ, dl1=\EH, el=\EK, ich1=\EI, il1=\EG, rmso=\ECI,
4428	sgr0=\ECI, smso=\EBI,
4429
4430# This works on a hp300 console running Utah 4.3 BSD
4431# From: Craig Leres <leres@okeeffe.berkeley.edu>
4432hp300h|HP Catseye console,
4433	OTbs, am, da, db, mir, xhp,
4434	cols#128, lines#51, lm#0, xmc#0,
4435	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
4436	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4437	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I,
4438	if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, kbs=^H,
4439	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
4440	rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
4441	smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, tbc=\E3,
4442	vpa=\E&a%p1%dY,
4443# From: Greg Couch <gregc@ernie.berkeley.edu>
4444hp9837|hp98720|hp98721|HP 9000/300 workstations,
4445	OTbs, am, da, db, mir, xhp,
4446	cols#128, it#8, lines#46, lm#0,
4447	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB,
4448	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4449	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4450	il1=\EL, ind=^J, is2=\E&v0m1b0i&j@, kbs=^H, kcub1=\ED,
4451	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4452	ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, knp=\EU,
4453	kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S, rmul=\E&d@,
4454	sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S, smul=\E&dD,
4455	tbc=\E3, vpa=\E&a%p1%dY,
4456# HP 9845 desktop computer from BRL
4457# (hp9845: removed unknown capability :gu: -- esr)
4458hp9845|HP 9845,
4459	OTbs, am, da, db, eo, mir, xhp,
4460	cols#80, lines#21,
4461	OTbc=\ED, clear=\EH\EJ, cuf1=\EC, cup=\E&a%p2%2dc%p1%2dY,
4462	cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK,
4463	if=/usr/share/tabset/std, il1=\EL, rmir=\ER, rmso=\E&d@,
4464	smir=\EQ, smso=\E&dB,
4465# From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
4466# (hp98550: replaced /usr/share/tabset/9837 with std because <it#8>,<hts=\E1>;
4467# added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
4468hp98550|hp98550a|HP 9000 Series 300 color console,
4469	OTbs, am, da, db, mir, xhp,
4470	cols#128, it#8, lines#49, lm#0,
4471	acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR,
4472	clear=\EH\EJ, cnorm=\E*dQ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4473	cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH,
4474	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4475	if=/usr/share/tabset/std, il1=\EL, ind=^J, invis=\E&ds,
4476	kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4477	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
4478	kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
4479	khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
4480	knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dJ,
4481	rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
4482	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smso=\E&dJ,
4483	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4484# From: Victor Duchovni <vic@fine.princeton.edu>
4485# (hp700-wy: removed obsolete ":nl=^J:";
4486# replaced /usr/share/tabset/hp700-wy with std because <it#8>,<hts=\E1> -- esr)
4487hp700-wy|HP700/41 emulating wyse30,
4488	OTbs, am, bw, mir, msgr,
4489	cols#80, it#8, lines#24, xmc#1,
4490	cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
4491	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4492	dl1=\ER, ed=\EY, el=\ET$<10/>, home=^^, ht=^I, hts=\E1,
4493	if=/usr/share/tabset/stdcrt, il1=\EE$<0.7*/>,
4494	is1=\E~"\EC\Er\E(\EG0\003\E`9\E`1, kbs=\177, kcbt=\EI,
4495	kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, ked=\EY,
4496	kel=\ET, khome=^^, khts=\EI, kich1=\Eq, krmir=\Er, ll=^^^K,
4497	ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>,
4498	sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>,
4499	smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c,
4500hp70092|hp70092a|hp70092A|HP 700/92,
4501	am, da, db, xhp,
4502	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8,
4503	acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA,
4504	bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H,
4505	cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
4506	dch1=\EP, dim=\E&dH, dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I,
4507	hts=\E1, il1=\EL, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
4508	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4509	ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
4510	kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
4511	kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
4512	krmir=\ER, ktbc=\E3, rev=\E&dB, ri=\ET, rmacs=^O, rmir=\ER,
4513	rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
4514	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
4515	smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4516
4517bobcat|sbobcat|HP 9000 model 300 console,
4518	am, da, db, mir, xhp,
4519	cols#128, it#8, lines#47, xmc#0,
4520	cbt=\Ei, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
4521	cup=\E&a%p1%dy%p2%dC$<6/>, cuu1=\EA, dch1=\EP,
4522	dl1=\EM$<10*/>, ed=\EJ, el=\EK, hpa=\E&a%p1%dC$<6/>, ht=^I,
4523	il1=\EL$<10*/>, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
4524	kcuf1=\EC, kcuu1=\EA, khome=\Eh, nel=^M^J, rmir=\ER,
4525	rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smir=\EQ,
4526	smkx=\E&s1A, smso=\E&dB, smul=\E&dD, vpa=\E&a%p1%dY$<6/>,
4527gator-t|HP 9000 model 237 emulating extra-tall AAA,
4528	lines#94, use=gator,
4529gator|HP 9000 model 237 emulating AAA,
4530	bw, km, mir, ul,
4531	cols#128, it#8, lines#47,
4532	bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J,
4533	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM,
4534	dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>,
4535	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%d`,
4536	ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@, il=\E[%p1%dL$<1*/>,
4537	il1=\E[L, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
4538	rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m,
4539	rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
4540gator-52|HP 9000 model 237 emulating VT52,
4541	cols#128, lines#47, use=vt52,
4542gator-52t|HP 9000 model 237 emulating extra-tall VT52,
4543	lines#94, use=gator-52,
4544
4545#### Honeywell-Bull
4546#
4547# From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
4548#
4549
4550# Honeywell Bull terminal.  Its cursor and function keys send single
4551# control characters and it has standout/underline glitch.  Most programs
4552# do not like these features/bugs.  Visual bell is realized by flashing the
4553# "keyboard locked" LED.
4554dku7003-dumb|Honeywell Bull DKU 7003 dumb mode,
4555	cols#80, lines#25,
4556	clear=^]^_, cr=^M, cub1=^Y, cud1=^K, cuf1=^X,
4557	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, ed=^_, el=\E[K,
4558	flash=\E[2h\E[2l, home=^], ht=^I, ind=^J, kbs=^H, kcub1=^Y,
4559	kcud1=^K, kcuf1=^X, kcuu1=^Z, khome=^], nel=^M^J,
4560dku7003|Honeywell Bull DKU 7003 all features described,
4561	msgr,
4562	xmc#1,
4563	blink=\E[5m, bold=\E[7m, dim=\E[2m, rev=\E[7m, rmso=\E[m,
4564	rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
4565	use=dku7003-dumb,
4566
4567#### Lear-Siegler (adm)
4568#
4569# These guys are long since out of the terminals business, but
4570# in 1995 many current terminals still have an adm type as one of their
4571# emulations (usually their stupidest, and usually labeled adm3, though
4572# these `adm3' emulations normally have adm3a+ capabilities).
4573#
4574# WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a
4575# `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
4576# was being held to ground would trigger a send of the top line on the screen.
4577# A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
4578# hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
4579# for clearing up this point.)
4580
4581adm1a|adm1|lsi adm1a,
4582	am,
4583	cols#80, lines#24,
4584	bel=^G, clear=\E;$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4585	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^,
4586	ind=^J,
4587adm2|lsi adm2,
4588	OTbs, am,
4589	cols#80, lines#24,
4590	bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4591	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4592	dl1=\ER, ed=\EY, el=\ET, home=^^, ich1=\EQ, il1=\EE, ind=^J,
4593	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
4594# (adm3: removed obsolete ":ma=^K^P:" -- esr)
4595adm3|lsi adm3,
4596	OTbs, am,
4597	cols#80, lines#24,
4598	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, ind=^J,
4599# The following ADM-3A switch settings are assumed for normal operation:
4600#	SPACE		U/L_DISP	CLR_SCRN	24_LINE
4601#	CUR_CTL		LC_EN		AUTO_NL		FDX
4602# Other switches may be set for operator convenience or communication
4603# requirements.  I recommend
4604#	DISABLE_KB_LOCK	LOCAL_OFF	103		202_OFF
4605#	ETX_OFF		EOT_OFF
4606# Most of these terminals required an option ROM to support lower case display.
4607# Open the case and look at the motherboard; if you see an open 24-pin DIP
4608# socket, you may be out of luck.
4609#
4610# (adm3a: some capabilities merged in from BRl entry -- esr)
4611adm3a|lsi adm3a,
4612	OTbs, am,
4613	cols#80, lines#24,
4614	OTma=^K^P, OTnl=^J, bel=^G, clear=\032$<1/>, cr=^M, cub1=^H,
4615	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
4616	cuu1=^K, home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L,
4617	kcuu1=^K, rs2=^N,
4618adm3a+|adm3a plus,
4619	kbs=^H, use=adm3a,
4620# (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
4621adm5|lsi adm5,
4622	xmc#1,
4623	bel=^G, cr=^M, cud1=^J, ed=\EY, el=\ET, kbs=^H, khome=^^,
4624	rmso=\EG, smso=\EG, use=adm3a+,
4625# A lot of terminals other than adm11s use these.  Wherever you see
4626# use=adm+sgr with some of its capabilities disabled, try the
4627# disabled ones.  They may well work but not have been documented or
4628# expressed in the using entry.  We'd like to cook up an <sgr> but the
4629# <rmacs>/<smacs> sequences of the using entries vary too much.
4630adm+sgr|adm style highlight capabilities,
4631	invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0, sgr0=\EG0,
4632	smso=\EG4, smul=\EG8,
4633# LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
4634# Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
4635# <khome> from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  <clear> could also
4636# be ^Z, according to his entry.
4637# (adm11: <smul>=\EG4 was obviously erroneous because it also said
4638# <rev>=\EG4.  Looking at other ADMs confirms this -- esr)
4639adm11|LSI ADM-11,
4640	OTbs, am, hs,
4641	OTkn#8, cols#80, lines#24,
4642	OTnl=^J, bel=^G, blink=\EG2, clear=\E*, cr=^M, cub1=^H,
4643	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
4644	cuu1=^K, dsl=\Eh, ed=\EY, el=\ET, fsl=\E(\r, home=^^, ht=^I,
4645	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
4646	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
4647	kf7=^AF\r, kf8=^AG\r, khome=^^, nel=^M^J, tsl=\EF\E),
4648	use=adm+sgr,
4649# From: Andrew Scott Beals <bandy@lll-crg.ARPA>
4650# Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
4651# Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
4652# (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
4653# <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
4654# via BRL.  That entry asserted <xmc#1>, but I've left that out because
4655# neither earlier nor later ADMSs have it -- esr)
4656#
4657# You will need to get into the supervisor setup before you can set
4658# baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
4659# see a lot more setup options.
4660#
4661# While in supervisor setup you can also use following codes:
4662#
4663# Ctrl-P Personality character selections (configure for example what
4664#        arrow keys send, if I recall correctly)
4665# Ctrl-T tabs 1-80   use left&right to move and up to set and
4666# Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
4667# Ctrl-B Binary setup (probably not needed. I think that everything can
4668#        be set using normal setup)
4669# Ctrl-A Answerback mode (enter answerback message)
4670# Ctrl-U User friendly mode (normal setup)
4671# Ctrl-D Defaults entire setup and function keys from EPROM tables
4672# Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
4673# Ctrl-R Reads both setup and functions keys from NVM.
4674# Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
4675#
4676# ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
4677# RTS/CTS used nowadays with virtually every modem and computer. 19200
4678# bps works fine with hardware flow control.
4679#
4680# The following null-modem cable should fix this and enable you to use
4681# RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
4682# set ADM-12+ for DTR handshaking from supervisor setup.
4683#
4684# PC Serial   ADM-12+
4685#  --------   -------
4686#         2 - 3
4687#         3 - 2
4688#         4 - 5
4689#         5 - 20
4690#       6,8 - 4
4691#         7 - 7
4692#        20 - 6,8
4693#
4694adm12|lsi adm12,
4695	OTbs, OTpt, am, mir,
4696	OTug#1, cols#80, it#8, lines#24,
4697	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4698	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4699	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
4700	is2=\E0        \E1        \E1        \E1        \E1        \E1        \E1        \E1        \E1,
4701	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
4702	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
4703	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, smir=\Eq, tbc=\E0,
4704	use=adm+sgr,
4705# (adm20: removed obsolete ":kn#7:" -- esr)
4706adm20|lear siegler adm20,
4707	OTbs, am,
4708	cols#80, it#8, lines#24,
4709	bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cuf1=^L,
4710	cup=\E=%i%p2%{31}%+%c%p1%{31}%+%c, cuu1=^K, dch1=\EW,
4711	dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, ich1=\EQ, il1=\EE,
4712	kf1=^A, kf2=^B, kf3=^W, kf4=^D, kf5=^E, kf6=^X, kf7=^Z, rmso=\E(,
4713	sgr0=\E(, smso=\E),
4714adm21|lear siegler adm21,
4715	xmc#1,
4716	bel=^G, cr=^M, cud1=^J, dch1=\EW, dl1=30*\ER, ed=\EY, el=\ET,
4717	ich1=\EQ, il1=30*\EE, ind=^J, invis@, kbs=^H, kcub1=^H,
4718	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, use=adm+sgr,
4719	use=adm3a,
4720# (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
4721# removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
4722# removed bogus-looking \200 from before <cup>. -- esr)
4723adm22|lsi adm22,
4724	OTbs, am,
4725	cols#80, lines#24,
4726	bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4727	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4728	dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE,
4729	is2=\E%\014\014\014\016\003\0\003\002\003\002\0\0\0\0\0\0\0\0\0\0\0,
4730	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
4731	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
4732	kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
4733	lf6=F6, lf7=F7, rmso=\E(, sgr0=\E(, smso=\E),
4734# ADM 31 DIP Switches
4735#
4736# This information comes from two versions of the manual for the
4737# Lear-Siegler ADM 31.
4738#
4739# Main board:
4740#                  rear of case
4741#   +-||||-------------------------------------+
4742#   + S1S2                              ||S    +
4743#   +                                   ||3    +
4744#   +                                          +
4745#   +                                ||S       +
4746#   +                                ||4       +
4747#   +                                          +
4748#   +                                          +
4749#   +                                          +
4750#   +                                          +
4751#   +                                          +
4752# +-+                                          +-+
4753# +                                              +
4754# +                               S5 S6 S7       +
4755# +                               == == ==       +
4756# +----------------------------------------------+
4757#            front of case (keyboard)
4758#
4759#  S1 - Data Rate - Modem
4760#  S2 - Data Rate - Printer
4761# ------------------------
4762# Data Rate   Setting
4763# -------------------
4764# 50          0 0 0 0
4765# 75          1 0 0 0
4766# 110         0 1 0 0
4767# 134.5       1 1 0 0
4768# 150         0 0 1 0
4769# 300         1 0 1 0
4770# 600         0 1 1 0
4771# 1200        1 1 1 0
4772# 1800        0 0 0 1
4773# 2000        1 0 0 1
4774# 2400        0 1 0 1
4775# 3600        1 1 0 1
4776# 4800        0 0 1 1
4777# 7200        1 0 1 1
4778# 9600        0 1 1 1
4779# x           1 1 1 1
4780#
4781# S3 - Interface/Printer/Attributes
4782# ---------------------------------
4783# Printer Busy Control
4784# sw1   sw2   sw3
4785# ---------------
4786# off   off   off   Busy not active, CD disabled
4787# off   off   on    Busy not active, CD enabled
4788# off   on    off   Busy active on J5-20, CD disabled
4789# on    off   off   Busy active on J5-19, CD disabled - Factory Set.
4790# on    off   on    Busy active on J5-19, CD enabled
4791#
4792# sw4   Used in conjuction with S4 for comm interface control - Fact 0
4793#
4794# sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
4795#
4796# sw6   ON enables printer BUSY active LOW - Factory Setting
4797#       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
4798#
4799# sw7   ON - steady cursor - Factory Setting
4800#       OFF - blinking cursor
4801#
4802# sw8   ON causes selected attribute character to be displayed
4803#       OFF causes SPACE to be displayed instead - Factory Setting
4804#
4805# S4 - Interface
4806# --------------
4807# Modem Interface
4808# S3    S4    S4    S4    S4
4809# sw4   sw1   sw2   sw3   sw4
4810# ---------------------------
4811# OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
4812#                               Current Loop disabled - Factory Setting
4813# ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
4814#                               disabled
4815# OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
4816#                               Current Loop Disabled
4817#
4818# sw5   ON disables dot stretching mode - Factory Setting
4819#       OFF enables dot stretching mode
4820# sw6   ON enables blanking function
4821#       OFF enables underline function - Factory Setting
4822# sw7   ON causes NULLS to be displayed as NULLS
4823#       OFF causes NULLS to be displayed as SPACES - Factory Setting
4824#
4825# S5 - Word Structure
4826# -------------------
4827# sw1   ON enables BREAK key - Factory Setting
4828#       OFF disables BREAK key
4829# sw2   ON selects 50Hz monitor refresh rate
4830#       OFF selects 60Hz monitor refresh rate - Factory Setting
4831#
4832# Modem Port Selection
4833# sw3   sw4   sw5
4834# ---------------
4835# ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
4836# OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
4837# ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
4838# OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
4839# ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
4840# OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
4841# ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
4842# OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
4843#
4844# sw6   ON  sends bit 8 a 1 (mark)
4845#       OFF sends bit 8 as 0 (space) - Factory Setting
4846# sw7   ON  selects Block Mode
4847#       OFF selects Conversation Mode - Factory Setting
4848# sw8   ON  selects Full Duplex operation
4849#       OFF selects Half Duplex operation - Factory Setting
4850#
4851# S6 - Printer
4852# ------------
4853# sw1, sw2, sw6, sw7   Reserved - Factory 0
4854#
4855# Printer Port Selection
4856# same as Modem above, bit 8 (when 8 DATA bits) is always = 0
4857#
4858# sw8   ON   enables Printer Port
4859#       OFF disables Printer Port - Factory Setting
4860#
4861# S7 - Polling Address
4862# --------------------
4863# sw1-7 Establish ASCII character which designates terminal polling address
4864#       ON  = logic 0
4865#       OFF = logic 1 - Factory Setting
4866# sw8   ON   enables Polling Option
4867#       OFF disables Polling Option - Factory Setting
4868#
4869#
4870# On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
4871#
4872# This adm31 entry uses underline as the standout mode.
4873# If the adm31 gives you trouble with standout mode, check the DIP switch in
4874# position 6, bank @c11, 25% from back end of the circuit board.  Should be
4875# OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
4876# (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
4877adm31|lsi adm31 with sw6 set for underline mode,
4878	OTbs, am, mir,
4879	cols#80, lines#24,
4880	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4881	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4882	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, ind=^J, is2=\Eu\E0,
4883	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
4884	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
4885	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, rmso=\EG0,
4886	rmul=\EG0, sgr0=\EG0, smir=\Eq, smso=\EG1, smul=\EG1,
4887adm31-old|o31|old adm31,
4888	rmul@, smso=\EG4, smul@, use=adm31,
4889# LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
4890adm36|LSI ADM36,
4891	OTbs, OTpt,
4892	OTkn#4,
4893	if=/usr/lib/tabset/vt100,
4894	is2=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l,
4895	use=vt100,
4896# (adm42: removed obsolete ":ma=^K^P:" -- esr)
4897adm42|lsi adm42,
4898	OTbs, am,
4899	cols#80, lines#24,
4900	bel=^G, cbt=\EI, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4901	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
4902	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ht=^I,
4903	il1=\EE$<270>, ind=^J, invis@, ip=$<6*>, kcub1=^H, kcud1=^J,
4904	kcuf1=^L, kcuu1=^K, khome=^^, pad=\177, rmir=\Er, rmul@,
4905	smir=\Eq, smul@, use=adm+sgr,
4906# The following termcap for the Lear Siegler ADM-42 leaves the
4907# "system line" at the bottom of the screen blank (for those who
4908# find it distracting otherwise)
4909adm42-ns|lsi adm-42 with no system line,
4910	cbt=\EI\EF \011, clear=\E;\EF \011,
4911	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<6>\EF \011,
4912	dch1=\EW\EF \011, dl1=\ER\EF \011, ed=\EY\EF \011,
4913	el=\ET\EF \011, il1=\EE\EF \011, rmir=\Er\EF \011,
4914	smir=\Eq\EF \011, use=adm42,
4915# ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
4916# The insert mode of this terminal is commented out because it's broken for our
4917# purposes in that it will shift the position of every character on the page,
4918# not just the cursor line!
4919# From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
4920adm1178|1178|lsi adm1178,
4921	am,
4922	cols#80, lines#24, xmc#1,
4923	bel=^G, bold=\E(, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J,
4924	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
4925	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET,
4926	home=^^, ht=^I, il1=\EE, ind=^J, ip=$<6*/>, kbs=^H, kcub1=^H,
4927	kcud1=^J, nel=^M^J, pad=\177, rev=\EG4, rmso=\EG0, rmul=\EG0,
4928	sgr0=\E), smso=\EG4, smul=\EG1,
4929
4930#### Prime
4931#
4932# Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
4933# <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
4934# Prime merged with ComputerVision in the late 1980s; you can reach them at:
4935#
4936#	ComputerVision Services
4937#	500 Old Connecticut Path
4938#	Framingham, Mass.
4939#
4940
4941# Standout mode is dim reverse-video.
4942pt100|pt200|wren|fenix|prime pt100/pt200,
4943	am, bw, mir, msgr,
4944	cols#80, it#8, lines#24,
4945	cbt=\E[Z, clear=\E?, cr=^M, cub=\E[%p1%dD, cub1=^H,
4946	cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
4947	cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu=\E[%p1%dA,
4948	cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl1=\E[M,
4949	ed=\E[J\E[r, el=\E[K\E[t, flash=\E$$<200/>\E$P,
4950	home=\E$B, ht=^I, il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D,
4951	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J,
4952	rmcup=, rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m,
4953	sgr0=\E[m,
4954	smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q,
4955	smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m,
4956pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode,
4957	cols#132,
4958	cup=\E[%i%p1%d;%p2%dH, use=pt100,
4959pt250|Prime PT250,
4960	rmso@, smso@, use=pt100,
4961pt250w|Prime PT250 in 132-column mode,
4962	rmso@, smso@, use=pt100w,
4963
4964#### Qume (qvt)
4965#
4966#	Qume, Inc.
4967#	3475-A North 1st Street
4968#	San Jose CA 95134
4969#	Vox: (800)-457-4447
4970#	Fax: (408)-473-1510
4971#	Net: josed@techsupp.wyse.com (Jose D'Oliveira)
4972#
4973# Qume was bought by Wyse, but still (as of early 1995) has its own support
4974# group and production division.
4975#
4976# Discontinued Qume models:
4977#
4978# The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
4979# built to replace them, and a qvt119+ which was a 101+ with available wide
4980# mode (132 columns).  There was a qvt103 which added vt100/vt131 emulations
4981# and an ANSI-compatible qvt203 that replaced it.  Qume started producing
4982# ANSI-compatible terminals with the qvt323 and qvt61.
4983#
4984# Current Qume models (as of February 1995):
4985#
4986# All current Qume terminals have ANSI-compatible operation modes.
4987# Qume is still producing the qvt62, which features emulations for other
4988# popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
4989# designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
4990# with many emulations including Wyse370, Wyse 325, etc.  Their newest
4991# model is the qvt520, which is vt420-compatible.
4992#
4993# There are some ancient printing Qume terminals under `Daisy Wheel Printers'
4994#
4995# If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
4996# setup mode.  Shift-s should be a configuration save to NVRAM.
4997
4998qvt101|qvt108|qume qvt 101 and QVT 108,
4999	xmc#1, use=qvt101+,
5000
5001# This used to have <cvvis=\E.2> but no <cnorm> or <civis>.  The BSD termcap
5002# file had <cvvis=\EM4 \200\200\200>.  I've done the safe thing and yanked
5003# both. The <rev> is from BSD, which also claimed bold=\E( and dim=\E).
5004# What seems to be going on here is that this entry was designed so that
5005# the normal highlight is bold and standout is dim plus something else
5006# (reverse-video maybe?  But then, are there two <rev> sequences?)
5007qvt101+|qvt101p|qume qvt 101 PLUS product,
5008	am, bw, hs, ul,
5009	cols#80, lines#24, xmc#0,
5010	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^J,
5011	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
5012	dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
5013	flash=\Eb$<200>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
5014	ich1=\EQ, il1=\EE, ind=^J, invis@, kbs=^H, kcbt=\EI, kcub1=^H,
5015	kcud1=^J, kcuf1=^L, kcuu1=^K, kdl1=\ER, ked=\EY, kel=\ET,
5016	kf1=^A@\r, kf10=^AI\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
5017	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
5018	khome=^^, kich1=\EQ, kil1=\EE, mc4=\EA, mc5=\E@, rmso=\E(,
5019	smso=\E0P\E), tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
5020qvt102|qume qvt 102,
5021	cnorm=\E., use=qvt101,
5022# (qvt103: added <rmam>/<smam> based on init string -- esr)
5023qvt103|qume qvt 103,
5024	am, xenl, xon,
5025	cols#80, it#8, lines#24, vt#3,
5026	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
5027	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
5028	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
5029	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
5030	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
5031	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
5032	hts=\EH, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
5033	kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8,
5034	rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E[?1l\E>,
5035	rmso=\E[m$<2>, rmul=\E[m$<2>,
5036	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
5037	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
5038	sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=,
5039	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
5040qvt103-w|qume qvt103 132 cols,
5041	cols#132, lines#24,
5042	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103,
5043qvt119+|qvt119p|qvt119|qume qvt 119 and 119PLUS terminals,
5044	am, hs, mir, msgr,
5045	cols#80, lines#24, xmc#0,
5046	bel=^G, cbt=\EI, clear=\E*1, cnorm=\E.4, cr=^M, cub1=^H,
5047	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
5048	cuu1=^K, cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey,
5049	el=\Et, flash=\En0$<200>\En1, fsl=^M, home=^^, ht=^I,
5050	hts=\E1, il1=\EE, ind=^J, is2=\EDF\EC\EG0\Er\E(\E%EX,
5051	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r,
5052	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
5053	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5054	mc4=\EA, mc5=\E@, ri=\EJ, rmir=\Er, smir=\Eq, smul=\EG8,
5055	tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
5056qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines,
5057	lines#25, use=qvt119+,
5058qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode,
5059	cols#132,
5060	is2=\EDF\EC\EG0\Er\E(\E%\EX\En4, use=qvt119+,
5061qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25,
5062	lines#25, use=qvt119+,
5063qvt203|qvt203+|qume qvt 203 Plus,
5064	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
5065	ip=$<7>, kf0=\E[29~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
5066	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
5067	kf9=\E[28~, rmir=\E[4l, smir=\E[4h, use=qvt103,
5068qvt203-w|qvt203-w-am|qume qvt 203 PLUS in 132 cols (w/advanced video),
5069	cols#132, lines#24,
5070	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt203,
5071#
5072#	Since a command is present for enabling 25 data lines,
5073#	a specific terminfo entry may be generated for the 203.
5074#	If one is desired for the QVT 119 PLUS then 25 lines must
5075#	be selected in the status line (setup line 9).
5076#
5077qvt203-25|QVT 203 PLUS with 25 by 80 column mode,
5078	cols#80, lines#25,
5079	is2=\E[=40h\E[?3l, use=qvt203,
5080qvt203-25-w|QVT 203 PLUS with 25 by 132 columns,
5081	cols#132, lines#25,
5082	rs2=\E[?3h\E[=40h, use=qvt203,
5083
5084#### Televideo (tvi)
5085#
5086#	TeleVideo
5087#	550 East Brokaw Road
5088#	PO Box 49048    95161
5089#	San Jose CA 95112
5090#	Vox: (408)-954-8333
5091#	Fax: (408)-954-0623
5092#
5093#
5094# There are some tvi terminals that require incredible amounts of padding and
5095# some that don't.  I'm assuming tvi912 and tvi920 are the old slow ones, and
5096# tvi912b, tvi912c, tvi920b, tvi920c are the new ones that don't need padding.
5097#
5098# All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
5099# Televideo terminals are ANSI and PC-ANSI compatible.
5100
5101tvi803|televideo 803,
5102	clear=\E*$<10>, use=tvi950,
5103
5104# Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
5105# Switch settings are:
5106#
5107# S1  1 2 3 4
5108#     D D D D  9600
5109#     D D D U    50
5110#     D D U D    75
5111#     D D U U   110
5112#     D U D D   135
5113#     D U D U   150
5114#     D U U D   300
5115#     D U U U   600
5116#     U D D D  1200
5117#     U D D U  1800
5118#     U D U D  2400
5119#     U D U U  3600
5120#     U U D D  4800
5121#     U U D U  7200
5122#     U U U D  9600
5123#     U U U U 19200
5124#
5125# S1  5 6 7 8
5126#     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
5127#     U D X U  7N2
5128#     U U D D  7O1
5129#     U U D U  7O2
5130#     U U U D  7E1
5131#     U U U U  7E2
5132#     D D X D  8N1
5133#     D D X U  8N2
5134#     D U D D  8O1
5135#     D U U U  8E2
5136#
5137# S1  9  Autowrap
5138#     U  on
5139#     D  off
5140#
5141# S1 10  CR/LF
5142#     U  do CR/LF when CR received
5143#     D  do CR when CR received
5144#
5145# S2  1  Mode
5146#     U  block
5147#     D  conversational
5148#
5149# S2  2  Duplex
5150#     U  half
5151#     D  full
5152#
5153# S2  3  Hertz
5154#     U  50
5155#     D  60
5156#
5157# S2  4  Edit mode
5158#     U  local
5159#     D  duplex
5160#
5161# S2  5  Cursor type
5162#     U  underline
5163#     D  block
5164#
5165# S2  6  Cursor down key
5166#     U  send ^J
5167#     D  send ^V
5168#
5169# S2  7  Screen colour
5170#     U  green on black
5171#     D  black on green
5172#
5173# S2  8  DSR status (pin 6)
5174#     U  disconnected
5175#     D  connected
5176#
5177# S2  9  DCD status (pin 8)
5178#     U  disconnected
5179#     D  duplex
5180#
5181# S2 10  DTR status (pin 20)
5182#     U  disconnected
5183#     D  duplex
5184# (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added <khome>, <cub1>, <cud1>,
5185# <ind>, <hpa>, <vpa>, <am>, <msgr> from SCO entry -- esr)
5186tvi910|televideo model 910,
5187	OTbs, am, msgr,
5188	cols#80, it#8, lines#24, xmc#1,
5189	bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5190	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
5191	home=\E=\001\001, hpa=\E]%p1%{32}%+%c, ht=^I,
5192	if=/usr/share/tabset/stdcrt, ind=^J, invis@, kbs=^H,
5193	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r, kf1=^A@\r,
5194	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5195	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5196	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
5197# From: Alan R. Rogers <rogers%albany@csnet-relay>
5198# as subsequently hacked over by someone at SCO
5199# (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
5200#
5201# Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
5202#
5203# S1  1 2 3 4:
5204#     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
5205#     D U D D   135     D U D U   150     D U U D   300     D U U U   600
5206#     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
5207#     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
5208#
5209# S1  5 6 7 8:
5210#     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
5211#     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
5212#     D U D D  8O1     D U U U  8E2
5213#
5214# S1  9  Autowrap            (U = on, D = off)
5215# S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
5216# S2  1  Mode                (U = block, D = conversational)
5217# S2  2  Duplex              (U =  half, D = full)
5218# S2  3  Hertz               (U = 50, D = 60)
5219# S2  4  Edit mode           (U = local, D = duplex)
5220# S2  5  Cursor type         (U = underline, D = block)
5221# S2  6  Cursor down key     (U = send ^J, D = send ^V)
5222# S2  7  Screen colour       (U = green on black, D = black on green)
5223# S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
5224# S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
5225# S2 10  DTR status (pin 20) (U = disconnected, D = connected)
5226#
5227tvi910+|televideo 910+,
5228	dch1=\EW, dl1=\ER$<33*>, home=^^, ich1=\EQ, il1=\EE$<33*>,
5229	kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r,
5230	kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r,
5231	ll=\E=7\s, use=tvi910,
5232
5233# (tvi912: removed obsolete ":ma=^K^P^L :", added  <flash> and
5234# <khome> from BRL entry -- esr)
5235tvi912|tvi914|tvi920|old televideo 912/914/920,
5236	OTbs, OTpt, am, msgr,
5237	cols#80, it#8, lines#24, xmc#1,
5238	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5239	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
5240	dl1=\ER$<33*>, ed=\Ey, el=\ET, flash=\Eb$<50/>\Ed, home=^^,
5241	ht=^I, hts=\E1, ich1=\EQ, if=/usr/share/tabset/stdcrt,
5242	il1=\EE$<33*>, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
5243	kcuu1=^K, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
5244	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
5245	kf9=^AH\r, khome=^^, rmso=\Ek, rmul=\Em, smso=\Ej, smul=\El,
5246	tbc=\E3,
5247# the 912 has a <funct> key that's like shift: <funct>8 xmits "^A8\r".
5248# The 920 has this plus real function keys that xmit different things.
5249# Terminfo makes you use the funct key on the 912 but the real keys on the 920.
5250tvi912c|tvi912b|new televideo 912,
5251	dl1=\ER$<5*>, il1=\EE$<5*>, use=tvi912,
5252# set to page 1 when entering curses application (\E-17 )
5253# reset to page 0 when exiting curses application (\E-07 )
5254tvi912-2p|tvi920-2p|tvi-2p|televideo w/2 pages,
5255	rmcup=\E-07\s, smcup=\E-17\s, use=tvi912,
5256# We got some new tvi912c terminals that act really weird on the regular
5257# termcap, so one of our gurus worked this up. Seems that cursor
5258# addressing is broken.
5259tvi912cc|tvi912 at cowell college,
5260	cup@, use=tvi912c,
5261
5262# Here are the switch settings for the tvi920c:
5263#
5264# S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
5265# 2: 9600	3: 4800		4: 2400		5: 1200
5266# 6:  600	7:  300		8:  150		9:   75
5267# 10: 110
5268#
5269# S2 UART/Terminal options:
5270# 		Up			Down
5271# 1:		Not used		Not allowed
5272# 2:	Alternate character set	  Standard character set
5273# 3:	    Full duplex		    Half duplex
5274# 4:	    50 Hz refresh	    60 Hz refresh
5275# 5:	      No parity		     Send parity
5276# 6:	     2 stop bits	     1 stop bit
5277# 7:	     8 data bits	     7 data bits
5278# 8:		Not used		Not allowed on Rev E or lower
5279# 9:	     Even parity	     Odd parity
5280# 10:	    Steady cursor	    Blinking cursor
5281# 	(On Rev E or lower, use W25 instead of switch 10.)
5282#
5283# S5 UART/Terminal options:
5284# 		Open			Closed
5285# 1:	P3-6 Not connected	DSR received on P3-6
5286# 2:	P3-8 Not connected	DCD received on P3-8
5287#
5288# 3 Open, 4 Open:		P3-20 Not connected
5289# 3 Open, 4 Closed:	DTR on when terminal is on
5290# 3 Closed, 4 Open:	DTR is connected to RTS
5291# 3 Closed, 4 Closed:	Not allowed
5292#
5293# 5 Closed:	HDX printer (hardware control) Rev. K with extension port off,
5294# 		all data transmitted out of the modem port (P3) will also be
5295# 		transmitted out of the printer port (P4).
5296#
5297# 6 Open, 7 Open:		Not allowed
5298# 6 Open, 7 Closed:	20ma current loop input
5299# 6 Closed, 7 Open:	RS232 input
5300# 6 Closed, 7 Closed:	Not allowed
5301#
5302# Jumper options:
5303# If the jumper is installed, the effect will occur (the next time the terminal
5304# is switched on).
5305#
5306# S4/W31:	Enables automatic LF upon receipt of CR from
5307# 		remote or keyboard.
5308# S4/W32:	Enables transmission of EOT at the end of Send.  If not
5309# 		installed, a carriage return is sent.
5310# S4/W33:	Disables automatic carriage return in column 80.
5311# S4/W34:	Selects Page Print Mode as initial condition.  If not
5312# 		installed, Extension Mode is selected.
5313#
5314tvi920b|tvi920c|new televideo 920,
5315	dl1=\ER$<5*>, il1=\EE$<5*>, kf0=^AI\r, kf1=^A@\r,
5316	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5317	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, use=tvi912,
5318
5319# Televideo 921 and variants
5320# From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
5321# (tvi921: removed :ko=bt: before translation, I see no backtab cap;
5322# also added empty <acsc> to suppress tic warning -- esr)
5323tvi921|televideo model 921 with sysline same as page & real vi function,
5324	OTbs, OTpt, am, hs, xenl, xhp,
5325	cols#80, lines#24, xmc#0,
5326	acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
5327	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
5328	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
5329	el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
5330	if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, invis@,
5331	is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, kcub1=^H,
5332	kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER$<1*/>,
5333	ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, nel=^M^J, rmacs=\E%%,
5334	rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, use=adm+sgr,
5335# without the beeper
5336# (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
5337# also added empty <acsc> to suppress tic warning -- esr)
5338tvi92B|televideo model 921 with sysline same as page & real vi function & no beeper,
5339	am, hs, xenl, xhp,
5340	cols#80, lines#24, xmc#0,
5341	acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
5342	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
5343	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
5344	el=\ET, flash=\Eb$<200/>\Ed, fsl=\Eg, home=^^, ht=^I,
5345	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
5346	invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z,
5347	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
5348	kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE,
5349	nel=^M^J, rmacs=\E%%, smacs=\E$, tsl=\Ef\EG0, use=adm+sgr,
5350# (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
5351tvi92D|tvi92B with DTR instead of XON/XOFF & better padding,
5352	dl1=\ER$<2*/>, il1=\EE$<2*/>,
5353	is2=\El\E"\EF1\E.3\016\EA\E<, kdl1=\ER$<2*/>,
5354	kil1=\EE$<2*/>, use=tvi92B,
5355
5356# (tvi924: This used to have <dsl=\Es0>, <fsl=\031>.  I put the new strings
5357# in from a BSD termcap file because it looks like they do something the
5358# old ones skip -- esr)
5359tvi924|televideo tvi924,
5360	am, bw, hs, in, mir, msgr, xenl, xon,
5361	cols#80, it#8, lines#24, wsl#80, xmc#0,
5362	bel=^G, blink=\EG2, cbt=\EI, civis=\E.0, clear=\E*0,
5363	cnorm=\E.3, cr=^M, csr=\E_%p1%{32}%+%c%p2%{32}%+%c,
5364	cub1=^H, cud1=^V, cuf1=^L,
5365	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\E.1,
5366	dch1=\EW, dl1=\ER, dsl=\Es0\Ef\031, ed=\Ey, el=\Et,
5367	flash=\Eb$<200>\Ed, fsl=\031\Es1, home=^^, ht=^I, hts=\E1,
5368	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
5369	invis@, is1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0,
5370	kbs=^H, kclr=\E*0, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
5371	kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A@\r, kf1=^AA\r,
5372	kf10=^AJ\r, kf11=^AK\r, kf12=^AL\r, kf13=^AM\r, kf14=^AN\r,
5373	kf15=^AO\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, kf5=^AE\r,
5374	kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^,
5375	kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4,
5376	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10,
5377	pfkey=\E|%p1%{49}%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef,
5378	use=adm+sgr,
5379
5380# TVI925 DIP switches.  In each of these, D = Down and U = Up,
5381#
5382# Here are the settings for the external (baud) switches (S1):
5383#
5384#             Position		Baud
5385# 7	8	9	10		[Printer]
5386# 1	2	3	4		[Main RS232]
5387# -----------------------------------------------------
5388# D	D	D	D	9600
5389# D	D	D	U	  50
5390# D	D	U	D	  75
5391# D	D	U	U	 110
5392# D	U	D	D	 135
5393# D	U	D	U	 150
5394# D	U	U	D	 300
5395# D	U	U	U	 600
5396# U	D	D	D	1200
5397# U	D	D	U	1800
5398# U	D	U	D	2400
5399# U	D	U	U	3600
5400# U	U	D	D	4800
5401# U	U	D	U	7200
5402# U	U	U	D	9600
5403# U	U	U	U	19200
5404#
5405#
5406# Settings for word length and stop-bits (S1)
5407#
5408#  Position	Description
5409# 5	6
5410# ---------------------------
5411# U	-	7-bit word
5412# D	-	8-bit word
5413# -	U	2 stop bits
5414# -	D	1 stop bit
5415#
5416#
5417# S2 (external) settings
5418#
5419# Position	Up	Dn	Description
5420# --------------------------------------------
5421# 1		X		Local edit
5422# 			X	Duplex edit (transmit editing keys)
5423# --------------------------------------------
5424# 2		X		912/920 emulation
5425# 			X	925
5426# --------------------------------------------
5427# 3			X
5428# 4			X	No parity
5429# 5			X
5430# --------------------------------------------
5431# 3			X
5432# 4			X	Odd parity
5433# 5		X
5434# --------------------------------------------
5435# 3			X
5436# 4		X		Even parity
5437# 5		X
5438# --------------------------------------------
5439# 3		X
5440# 4			X	Mark parity
5441# 5		X
5442# --------------------------------------------
5443# 3		X
5444# 4		X		Space parity
5445# 5		X
5446# --------------------------------------------
5447# 6		X		White on black display
5448# 			X	Black on white display
5449# --------------------------------------------
5450# 7			X	Half Duplex
5451# 8			X
5452# --------------------------------------------
5453# 7		X		Full Duplex
5454# 8			X
5455# --------------------------------------------
5456# 7			X	Block mode
5457# 8		X
5458# --------------------------------------------
5459# 9			X	50 Hz
5460# 		X		60 Hz
5461# --------------------------------------------
5462# 10		X		CR/LF (Auto LF)
5463# 			X	CR only
5464#
5465# S3 (internal switch) settings:
5466#
5467# Position	Up	Dn	Description
5468# --------------------------------------------
5469# 1		X		Keyclick off
5470# 			X	Keyclick on
5471# --------------------------------------------
5472# 2			X	English
5473# 3			X
5474# --------------------------------------------
5475# 2			X	German
5476# 3		X
5477# --------------------------------------------
5478# 2		X		French
5479# 3			X
5480# --------------------------------------------
5481# 2		X		Spanish
5482# 3		X
5483# --------------------------------------------
5484# 4			X	Blinking block cursor
5485# 5			X
5486# --------------------------------------------
5487# 4			X	Blinking underline cursor
5488# 5		X
5489# --------------------------------------------
5490# 4		X		Steady block cursor
5491# 5			X
5492# --------------------------------------------
5493# 4		X		Steady underline cursor
5494# 5		X
5495# --------------------------------------------
5496# 6		X		Screen blanking timer (ON)
5497# 			X	Screen blanking timer (OFF)
5498# --------------------------------------------
5499# 7		X		Page attributes
5500# 			X	Line attributes
5501# --------------------------------------------
5502# 8		X		DCD disconnected
5503# 			X	DCD connected
5504# --------------------------------------------
5505# 9		X		DSR disconnected
5506# 			X	DSR connected
5507# --------------------------------------------
5508# 10		X		DTR Disconnected
5509# 			X	DTR connected
5510# --------------------------------------------
5511#
5512# (tvi925: BSD has <clear=\E*>.  I got <is2> and <ri> from there -- esr)
5513tvi925|televideo 925,
5514	OTbs, am, bw, hs, ul,
5515	cols#80, lines#24, xmc#1,
5516	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^V,
5517	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
5518	cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
5519	flash=\Eb$<200>\Ed, fsl=^M\Eg, home=^^, ht=^I, hts=\E1,
5520	ich1=\EQ, il1=\EE, ind=^J, invis@, is2=\El\E", kbs=^H, kclr=^Z,
5521	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
5522	ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
5523	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
5524	kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, ri=\Ej, tbc=\E3,
5525	tsl=\Eh\Ef, use=adm+sgr,
5526# TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
5527# to avoid "magic cookie" standout glitch:
5528tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
5529	xmc@,
5530	kbs=^H, kcub1=^H, kcud1=^J, rmso=\E(, smso=\E), use=tvi925,
5531
5532# From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
5533# Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
5534# for additional capabilities,
5535# The following tvi descriptions from B:pjphar and virus!mike
5536# is for all 950s.  It sets the following attributes:
5537# full duplex (\EDF)		write protect off (\E()
5538# conversation mode (\EC)	graphics mode off (\E%)
5539# white on black (\Ed)		auto page flip off (\Ew)
5540# turn off status line (\Eg)	clear status line (\Ef\r)
5541# normal video (\E0)		monitor mode off (\EX or \Eu)
5542# edit mode (\Er)		load blank char to space (\Ee\040)
5543# line edit mode (\EO)		enable buffer control (^O)
5544# protect mode off (\E\047)	duplex edit keys (\El)
5545# program unshifted send key to send line all (\E016)
5546# program shifted send key to send line unprotected (\E004)
5547# set the following to nulls:
5548#	field delimiter (\Ex0\200\200)
5549#	line delimiter (\Ex1\200\200)
5550#	start-protected field delimiter (\Ex2\200\200)
5551#	end-protected field delimiter (\Ex3\200\200)
5552# set end of text delimiter to carriage return/null (\Ex4\r\200)
5553#
5554#                     TVI 950 Switch Setting Reference Charts
5555#
5556#                                     TABLE 1:
5557#
5558#      S1     1     2     3     4     5     6     7     8     9    10
5559#          +-----------------------+-----+-----+-----------------------+
5560#          | Computer Baud Rate    |Data |Stop | Printer Baud Rate     |
5561#          |                       |Bits |Bits |                       |
5562#   +------+-----------------------+-----+-----+-----------------------+
5563#   |  Up  |        See            |  7  |  2  |        See            |
5564#   +------+-----------------------+-----+-----+-----------------------+
5565#   | Down |      TABLE 2          |  8  |  1  |      TABLE 2          |
5566#   +------+-----------------------+-----+-----+-----------------------+
5567#
5568#
5569#      S2     1     2     3     4     5     6     7     8     9    10
5570#          +-----+-----+-----------------+-----+-----------+-----+-----+
5571#          |Edit |Cursr|    Parity       |Video|Transmiss'n| Hz  |Click|
5572#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5573#   |  Up  | Dplx|Blink|      See        |GonBk|   See     | 60  | Off |
5574#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5575#   | Down |Local|St'dy|    TABLE 3      |BkonG|  CHART    | 50  | On  |
5576#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5577#
5578#                                    TABLE 2:
5579#
5580#             +-----------+-----+-----+-----+-----+-----------+
5581#             | Display   |  1  |  2  |  3  |  4  |   Baud    |
5582#             +-----------+-----+-----+-----+-----+           |
5583#             | Printer   |  7  |  8  |  9  | 10  |   Rate    |
5584#             +-----------+-----+-----+-----+-----+-----------+
5585#                         |  D  |  D  |  D  |  D  |   9600    |
5586#                         |  U  |  D  |  D  |  D  |     50    |
5587#                         |  D  |  U  |  D  |  D  |     75    |
5588#                         |  U  |  U  |  D  |  D  |    110    |
5589#                         |  D  |  D  |  U  |  D  |    135    |
5590#                         |  U  |  D  |  U  |  D  |    150    |
5591#                         |  D  |  U  |  U  |  D  |    300    |
5592#                         |  U  |  U  |  U  |  D  |    600    |
5593#                         |  D  |  D  |  D  |  U  |   1200    |
5594#                         |  U  |  D  |  D  |  U  |   1800    |
5595#                         |  D  |  U  |  D  |  U  |   2400    |
5596#                         |  U  |  U  |  D  |  U  |   3600    |
5597#                         |  D  |  D  |  U  |  U  |   4800    |
5598#                         |  U  |  D  |  U  |  U  |   7200    |
5599#                         |  D  |  U  |  U  |  U  |   9600    |
5600#                         |  U  |  U  |  U  |  U  |  19200    |
5601#                         +-----+-----+-----+-----+-----------+
5602#
5603#                                    TABLE 3:
5604#                         +-----+-----+-----+-----------+
5605#                         |  3  |  4  |  5  |   Parity  |
5606#                         +-----+-----+-----+-----------+
5607#                         |  X  |  X  |  D  |    None   |
5608#                         |  D  |  D  |  U  |     Odd   |
5609#                         |  D  |  U  |  U  |    Even   |
5610#                         |  U  |  D  |  U  |    Mark   |
5611#                         |  U  |  U  |  U  |   Space   |
5612#                         +-----+-----+-----+-----------+
5613#                                 X = don't care
5614#
5615#                                     CHART:
5616#                         +-----+-----+-----------------+
5617#                         |  7  |  8  | Communication   |
5618#                         +-----+-----+-----------------+
5619#                         |  D  |  D  |  Half Duplex    |
5620#                         |  D  |  U  |  Full Duplex    |
5621#                         |  U  |  D  |     Block       |
5622#                         |  U  |  U  |     Local       |
5623#                         +-----+-----+-----------------+
5624#
5625# (tvi950: early versions had obsolete ":ma=^Vj^Kk^Hh^Ll^^H:".
5626# I also inserted <ich1> and <kich1>; the :ko: string indicated that <ich>
5627# should be present and all tvi native modes use the same string for this.
5628# Finally, note that BSD has cud1=^V. -- esr)
5629tvi950|televideo 950,
5630	OTbs, am, hs, mir, msgr, xenl, xon,
5631	cols#80, it#8, lines#24, xmc#1,
5632	acsc=b\011c\014d\re\ni\013, bel=^G, cbt=\EI, clear=\E*,
5633	cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5634	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
5635	dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, el=\Et, flash=\Eb$<200/>\Ed,
5636	fsl=^M, home=^^, ht=^I, hts=\E1, ich1=\EQ, il1=\EE, ind=^J,
5637	invis@,
5638	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\Ef\r,
5639	kbs=^H, kcbt=\EI, kclr=\E*, kcub1=^H, kcud1=^V, kcuf1=^L,
5640	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A0\r,
5641	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
5642	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5643	kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`, ri=\Ej, rmacs=^X,
5644	rmir=\Er, smacs=^U, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
5645	use=adm+sgr,
5646#
5647# is for 950 with two pages adds the following:
5648#	set 48 line page (\E\\2)
5649#	place cursor at page 0, line 24, column 1 (\E-07 )
5650#	set local (no send) edit keys (\Ek)
5651#
5652# two page 950 adds the following:
5653#	when entering ex, set 24 line page (\E\\1)
5654#	when exiting ex, reset 48 line page (\E\\2)
5655#			 place cursor at 0,24,1 (\E-07 )
5656#	set duplex (send) edit keys (\El) when entering vi
5657#	set local (no send) edit keys (\Ek) when exiting vi
5658#
5659tvi950-2p|televideo950 w/2 pages,
5660	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07 \011,
5661	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5662	smkx=\El, use=tvi950,
5663#
5664# is for 950 with four pages adds the following:
5665#	set 96 line page (\E\\3)
5666#	place cursor at page 0, line 24, column 1 (\E-07 )
5667#
5668# four page 950 adds the following:
5669#	when entering ex, set 24 line page (\E\\1)
5670#	when exiting ex, reset 96 line page (\E\\3)
5671#			 place cursor at 0,24,1 (\E-07 )
5672#
5673tvi950-4p|televideo950 w/4 pages,
5674	is2=\EDF\EC\Ed\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07 \011,
5675	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5676	smkx=\El, use=tvi950,
5677#
5678# <is2> for reverse video 950 changes the following:
5679#	set reverse video (\Ed)
5680#
5681# set vb accordingly (\Ed ...delay... \Eb)
5682#
5683tvi950-rv|televideo950 rev video,
5684	flash=\Ed$<200/>\Eb,
5685	is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\El\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0,
5686	use=tvi950,
5687
5688# tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
5689tvi950-rv-2p|televideo950 rev video w/2 pages,
5690	flash=\Ed$<200/>\Eb,
5691	is2=\EDF\EC\Eb\EG0\Eg\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\2\E-07\s,
5692	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5693	smkx=\El, use=tvi950,
5694
5695# tvi950-rv uses the appropriate entries from 950-4p and 950-rv
5696tvi950-rv-4p|televideo950 rev video w/4 pages,
5697	flash=\Ed$<200/>\Eb,
5698	is2=\EDF\EC\Eb\EG0\Er\EO\E'\E(\E%\Ew\EX\Ee \017\011\Ek\E016\E004\Ex0\0\0\Ex1\0\0\Ex2\0\0\011\Ex3\0\0\Ex4\r\0\E\\3\E-07\s,
5699	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5700	smkx=\El, use=tvi950,
5701# From: Andreas Stolcke <stolcke@icsi.berkeley.edu>
5702# (tvi955: removed obsolete ":ma:=^Vj^Kk^Hh^Ll^^H";
5703# removed incorrect (and overridden) ":do=^J:"; fixed broken continuations in
5704# the :rs: string, inserted the <ich> implied by the termcap :ko: string.  Note
5705# the :ko: string had :cl: in it, which means that one of the original
5706# <clear=\E*>, <kclr=\EY> had to be wrong; set <kclr=\E*> because that's what
5707# the 950 has.   Finally, corrected the <kel> string to match the 950 and what
5708# ko implies -- esr)
5709# If the BSD termcap file was right, <cup=\E=%p1%{32}%+%c%p2%{32}%+%c> would
5710# also work.
5711tvi955|televideo 955,
5712	OTbs, mc5i, msgr@,
5713	it#8, xmc@,
5714	acsc=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ, blink=\EG2,
5715	civis=\E.0, cnorm=\E.2, cud1=^V, cup=\E[%i%p1%d;%p2%dH,
5716	cvvis=\E.1, dim=\E[=5h, ind@, invis=\EG1,
5717	is2=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El, kctab=\E2, khts=\E1,
5718	knp=\EK, kpp=\EJ, krmir=\EQ, ktbc=\E3, mc0=\EP, rmacs=\E%%,
5719	rmam=\E[=7l, rmxon=^N,
5720	rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\0\E0p\E4\0\Ef\r,
5721	sgr0=\EG0\E[=5l, smacs=\E$, smam=\E[=7h, smxon=^O,
5722	use=tvi950,
5723tvi955-w|955-w|televideo955 w/132 cols,
5724	cols#132,
5725	is2=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El, use=tvi955,
5726# use half-intensity as normal mode, full intensity as <bold>
5727tvi955-hb|955-hb|televideo955 half-bright,
5728	bold=\E[=5l, dim@, is2=\E[=3l\EF1\Ed\EG0\E[=5h\E%\El,
5729	sgr0=\EG0\E[=5h, use=tvi955,
5730# From: Humberto Appleton <beto@cs.utexas.edu>, 880521 UT Austin
5731# (tvi970: removed ":sg#0:"; removed <rmso>=\E[m, <rmul>=\E[m;
5732# added <am>/<csr>/<home>/<hpa>/<vpa>/<smcup>/<rmcup> from BRL.
5733# According to BRL we could have <rmkx>=\E>, <smkx>=\E= but I'm not sure what
5734# it does to the function keys.  I deduced <rmam>/<smam>.
5735# also added empty <acsc> to suppress tic warning,  -- esr)
5736tvi970|televideo 970,
5737	OTbs, OTpt, am, da, db, mir, msgr,
5738	cols#80, it#8, lines#24,
5739	acsc=, cbt=\E[Z, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
5740	cub1=^H, cud1=\ED, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
5741	cuu1=\EM, cvvis=\E[1Q, dch1=\E[P, dl1=\E[M, dsl=\Eg\Ef\r,
5742	ed=\E[J, el=\E[K, flash=\E[5m$<200/>\E[m, home=\E[H,
5743	hpa=\E[%i%p1%dG, ht=^I, il1=\E[L,
5744	is2=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J,
5745	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5746	kf1=\E?a, kf2=\E?b, kf3=\E?c, kf4=\E?d, kf5=\E?e, kf6=\E?f,
5747	kf7=\E?g, kf8=\E?h, kf9=\E?i, khome=\E[H, ri=\EM, rmacs=\E(B,
5748	rmam=\E[?7h, rmcup=, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
5749	sgr0=\E[m, smacs=\E(B, smam=\E[?7l,
5750	smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h, smso=\E[7m,
5751	smul=\E[4m, vpa=\E[%i%p1%dd,
5752tvi970-vb|televideo 970 with visual bell,
5753	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
5754	use=tvi970,
5755tvi970-2p|televideo 970 with using 2 pages of memory,
5756	rmcup=\E[H\E[J\E[V, smcup=\E[U\E[?20l\E[?7h\E[1Q,
5757	use=tvi970,
5758# Works with vi and rogue.  NOTE: Esc v sets autowrap on, Esc u sets 80 chars
5759# per line (rather than 40), Esc K chooses the normal character set.  Not sure
5760# padding is needed, but adapted from the tvi920c termcap.  The <smso> and
5761# <smul> strings are klutzy, but at least use no screen space.
5762# (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
5763# its absence means <smam>=\Ev isn't safe to use. -- esr)
5764# From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84.
5765# The <ed>/<kf0>/<kf1>/<khome>/<mc4>, and <mc5> caps are from BRL, which says:
5766# F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
5767tvipt|televideo personal terminal,
5768	OTbs, am,
5769	cols#80, lines#24,
5770	cbt=\EI, clear=^Z, cub1=^H, cuf1=^L,
5771	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER$<5*>,
5772	ed=\EY, el=\ET, home=^^, if=/usr/share/tabset/stdcrt,
5773	il1=\EE$<5*>, is2=\Ev\Eu\EK, kbs=^H, kcub1=^H, kcud1=^J,
5774	kcuf1=^L, kcuu1=^K, kf0=^A, kf1=^B, khome=^^, mc4=^T, mc5=^R,
5775	rmso=\EF, rmul=\EF, smso=\EG1@A\EH, smul=\EG1B@\EH,
5776# From: Nathan Peterson <nathan@sco.com>, 03 Sep 1996
5777tvi9065|televideo 9065,
5778	am, bw, chts, hs, mc5i, mir, msgr, xenl, xon,
5779	cols#80, it#8, lh#1, lines#25, lm#0, lw#9, ma#4, nlab#8, vt#0,
5780	wnum#0, wsl#30,
5781	acsc='r0_jhkglfmeniopqksqtmulvownxj, bel=^G,
5782	blink=\EG2, bold=\EG\,, cbt=\EI, civis=\E.0, clear=^Z,
5783	cnorm=\E.3, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD,
5784	cub1=^H, cud=\E[%p1%dB, cud1=^V, cuf=\E[%p1%dC, cuf1=^L,
5785	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu=\E[%p1%dA,
5786	cuu1=^K, cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp,
5787	dl=\E[%p1%dM, dl1=\ER, dsl=\E_30\r, ech=\E[%p1%d@, ed=\EY,
5788	el=\ET, flash=\Eb$<15>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
5789	ich=\E[%p1%d@, if=/usr/share/tabset/stdcrt,
5790	il=\E[%p1%dL, il1=\EE, ind=^J, indn=\E[%p1%dS, invis=\EG1,
5791	ip=$<3>,
5792	is1=\E"\E%\E'\E(\EG@\EO\EX\E[=5l\E[=6l\E[=7h\Ed\Er,
5793	is2=\EF2\EG0\E\\L, is3=\E<\E[=4l\E[=8h, kHOM=\E\s\s\s,
5794	kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
5795	kdch1=\EW, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r,
5796	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5797	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, ll=\E[25;1H,
5798	mc0=\E[0;0i, mc4=\Ea, mc5=\E`, nel=^M^J,
5799	pfkey=\E|%p1%{48}%+%c3%p2%s\031,
5800	pfloc=\E|%p1%{48}%+%c2%p2%s\031,
5801	pfx=\E|%p1%{48}%+%c1%p2%s\031,
5802	pln=\E_%p1%{63}%+%c%p2%s\r, prot=\E&,
5803	rep=\E[%p2%db%p1%c, rev=\EG4,
5804	rf=/usr/share/tabset/stdcrt, ri=\Ej, rin=\E[%p1%dT,
5805	rmacs=\E%%, rmam=\E[=7l, rmcup=\E.3\Er\E[1;25r\E[25;0H,
5806	rmdc=\0, rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0,
5807	rmxon=^N, rs1=\EC\EDF\E[0;0v\E[8;1v\E[=65l,
5808	rs2=\E.b\E[10;20v\E[14;1v\E[3;0v\E[7;0v\E[=11.h\E[=12.h\E[=13.h\E[=14.h\E[=15l\E[=20h\E[=60l\E[=61h\E[=9l\E[=10l\E[=21l\E[=23l\E[=3l\E_40\E_50\En\Ew\Ee \Ex0\0\0\Ex1\0\0\Ex2\0\0\Ex3\0\0\Ex4\0\0\E1,
5809	rs3=\E[=19h\E.3\E9\E0O\0\0\0\0\0\E0o\0\0\0\0\0\E0J\177\0\0\0\0,
5810	sgr=\EG0%?%p1%t\EGt%;%?%p2%t\EG8%;%?%p3%t\EG4%;%?%p4%t\EG2%;%?%p5%t\EGp%;%?%p6%t\EG\,%;%?%p7%t\EG1%;%?%p9%t\E$%e\E%%%;,
5811	sgr0=\EG0, smacs=\E$, smam=\E=7h, smcup=\E.2, smdc=\Er,
5812	smir=\Eq, smln=\E[4;2v, smso=\EGt, smul=\EG8, smxon=^O,
5813	tbc=\E3, tsl=\E[4;1v\E_30, uc=\EG8\EG0,
5814
5815#### Visual (vi)
5816#
5817# In September 1993, Visual Technology of Westboro, Massachusetts,
5818# merged with White Pine Software of Nashua, New Hampshire.
5819#
5820# White Pine Software may be contacted at +1 603/886-9050.
5821# Or visit White Pine on the World Wide Web at URL http://www.wpine.com.
5822#
5823
5824# Visual 50 from Beau Shekita, BTL-Whippany <whuxlb!ejs>
5825# Recently I hacked together the following termcap for Visual
5826# Technology's Visual 50 terminal. It's a slight modification of
5827# the vt52 termcap.
5828# It's intended to run when the Visual 50 is in vt52 emulation mode
5829# (I know what you're thinking; if it's emulating a vt52, then why
5830# another termcap? Well, it turns out that the Visual 50 can handle
5831# <dl1> and db(?) among other things, which the vt52 can't)
5832# The termcap works OK for the most part. The only problem is on
5833# character inserts. The whole line gets painfully redrawn for each
5834# character typed. Any suggestions?
5835# Beau's entry is combined with the vi50 entry from University of Wisconsin.
5836# Note especially the <il1> function.  <kf4>-<kf6> are really l4-l6 in
5837# disguise; <kf7>-<kf9> are really l1-l3.
5838vi50|visual 50,
5839	OTbs, OTpt, am, da, db, msgr,
5840	cols#80, it#8, lines#24,
5841	OTnl=^J, bel=^G, cbt=\Ez$<4/>, clear=\EH\EJ, cr=^M, cub1=^H,
5842	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5843	cuu1=\EA, dl1=\EM$<3*/>, ed=\EJ, el=\EK$<16/>, home=\EH,
5844	ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
5845	kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
5846	kf5=\EE, kf6=\E], kf7=\EL, kf8=\Ev, kf9=\EM, khome=\EH,
5847	nel=^M^J, ri=\EI, rmso=\ET, rmul=\EW, smso=\EU, smul=\ES,
5848# this one was BSD & SCO's vi50
5849vi50adm|visual 50 in adm3a mode,
5850	am, msgr,
5851	cols#80, it#8, lines#24,
5852	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5853	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\EM,
5854	ed=\Ek, el=\EK, home=\EH, ht=^I, il1=\EL, ind=^J, kbs=^H,
5855	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH,
5856	rmso=\ET, smso=\EU,
5857# From: Jeff Siegal <jbs@quiotix.com>
5858vi55|Visual 55,
5859	OTbs, am, mir, msgr,
5860	cols#80, it#8, lines#24,
5861	clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H,
5862	cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5863	cuu1=\EA, dch1=\Ew, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I,
5864	il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, kcub1=\ED,
5865	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EI, rmir=\Eb, rmso=\ET,
5866	smir=\Ea, smso=\EU,
5867
5868# Visual 200 from BRL
5869# The following switch settings are assumed for normal operation:
5870#	FULL_DUPLEX		SCROLL			CR
5871#	AUTO_NEW_LINE_ON	VISUAL_200_EMULATION_MODE
5872# Other switches may be set for operator convenience or communication
5873# requirements.
5874# Character insertion is kludged in order to get around the "beep" misfeature.
5875# (This cap is commented out because <smir>/<rmir> is more efficient -- esr)
5876# Supposedly "4*" delays should be used for <il1>, <ed>, <clear>, <dch1>,
5877# and <dl1> strings, but we seem to get along fine without them.
5878vi200|visual 200,
5879	OTbs, OTpt, am, mir, msgr,
5880	OTkn#10, cols#80, it#8, lines#24,
5881	acsc=, bel=^G, cbt=\Ez, clear=\Ev, cnorm=\Ec, cr=^M, cub1=^H,
5882	cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5883	cuu1=\EA, cvvis=\Ed, dch1=\EO, dim=\E4, dl1=\EM, ed=\Ey,
5884	el=\Ex, home=\EH, ht=^I, hts=\E1, il1=\EL, ind=^J, invis=\Ea,
5885	kbs=^H, kclr=\Ev, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
5886	kcuu1=\EA, kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p,
5887	kf1=\E?q, kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v,
5888	kf7=\E?w, kf8=\E?x, kf9=\E?y, khome=\EH, khts=\E1, kich1=\Ei,
5889	kil1=\EL, krmir=\Ej, mc0=\EH\E], mc4=\EX, mc5=\EW, ri=\EI,
5890	rmacs=\EG, rmkx=\E>, rmso=\E3,
5891	rs1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX, sgr0=\E3\Eb, smacs=\EF,
5892	smkx=\E=, smso=\E4, tbc=\Eg,
5893# The older Visuals didn't come with function keys. This entry uses
5894# <smkx> and <rmkx> so that the keypad keys can be used as function keys.
5895# If your version of vi doesn't support function keys you may want
5896# to use vi200-f.
5897vi200-f|visual 200 no function keys,
5898	is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, kf0=\E?p, kf1=\E?q,
5899	kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v, kf7=\E?w,
5900	kf8=\E?x, kf9=\E?y, rmkx=\E>, rmso@, smkx=\E=, smso@,
5901	use=vi200,
5902vi200-rv|visual 200 reverse video,
5903	cnorm@, cvvis@, ri@, rmso=\E3, smso=\E4, use=vi200,
5904
5905# the function keys are programmable but we don't reprogram them to their
5906# default values with <is2> because programming them is very verbose. maybe
5907# an initialization file should be made for the 300 and they could be stuck
5908# in it.
5909# (vi300: added <rmam>/<smam> based on init string -- esr)
5910vi300|visual 300 ansi x3.64,
5911	am, bw, mir, xenl,
5912	cols#80, lines#24,
5913	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
5914	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
5915	dch1=\E[P$<40>, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
5916	il1=\E[L, ind=^J,
5917	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[1Q\E[0;1(D\E[8s,
5918	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5919	kf1=\E_A\E\\, kf2=\E_B\E\\, kf3=\E_C\E\\, kf4=\E_D\E\\,
5920	kf5=\E_E\E\\, kf6=\E_F\E\\, kf7=\E_G\E\\, kf8=\E_H\E\\,
5921	kf9=\E_I\E\\, khome=\E[H, ri=\EM, rmam=\E[?7l, rmir=\E[4l,
5922	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
5923	smso=\E[1m, smul=\E[4m,
5924# some of the vi300s have older firmware that has the command
5925# sequence for setting editing extent reversed.
5926vi300-old|visual 300 with old firmware (set edit extent reversed),
5927	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[2Q\E[0;1(D\E[8s,
5928	use=vi300,
5929
5930# Visual 500 prototype entry from University of Wisconsin.
5931# The best place to look for the escape sequences is page A1-1 of the
5932# Visual 500 manual.  The initialization sequence given here may be
5933# overkill, but it does leave out some of the initializations which can
5934# be done with the menus in set-up mode.
5935# The :xp: line below is so that emacs can understand the padding requirements
5936# of this slow terminal.  :xp: is 10 time the padding factor.
5937# (vi500: removed unknown :xp#4: termcap;
5938# also added empty <acsc> to suppress tic warning -- esr)
5939vi500|visual 500,
5940	am, mir, msgr,
5941	cols#80, it#8, lines#33,
5942	acsc=, cbt=\Ez$<4/>, clear=\Ev$<6*/>, cr=^M,
5943	csr=\E(%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\EB,
5944	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
5945	dch1=\EO$<3*/>, dl1=\EM$<3*/>, ed=\Ey$<3*/>,
5946	el=\Ex$<16/>, home=\EH, ht=\011$<8/>, il1=\EL\Ex$<3*/>,
5947	ind=^J,
5948	is2=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\,
5949	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
5950	khome=\EH, nel=^M^J, rmacs=^O, rmir=\Ej, rmso=\E^G,
5951	rmul=\E^C, smacs=^N, smir=\Ei, smso=\E^H, smul=\E^D,
5952
5953# The visual 550 is a visual 300 with tektronix graphics,
5954# and with 33 lines. clear screen is modified here to
5955# also clear the graphics.
5956vi550|visual 550 ansi x3.64,
5957	lines#33,
5958	clear=\030\E[H\E[2J, use=vi300,
5959
5960vi603|visual603|visual 603,
5961	hs, mir,
5962	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
5963	csr=\E[%i%p1%d;%p2%dr, cuf1=\E[C,
5964	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
5965	dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, il1=\E[L,
5966	ind=\ED, is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r,
5967	rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
5968	sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=\EP2~,
5969	use=vt100,
5970
5971#### Wyse (wy)
5972#
5973#	Wyse Technology
5974#	3471 North First Street
5975#	San Jose, CA 95134
5976#	Vox: (408)-473-1200
5977#	Fax: (408) 473-1222
5978#	Web: http://www.wyse.com
5979#
5980# Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
5981# (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
5982# obvious address, <http://www.wyse.com>.  They keep terminfo entries at
5983# <http://www.wyse.co.uk/support/appnotes/idxappnt.htm>.
5984#
5985# Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
5986# They now own the Qume and Amdek brands, too.  So these are the people to
5987# talk with about all Link, Qume, and Amdek terminals.
5988#
5989# These entries include a few small fixes.
5990# I canceled the bel capacities in the vb entries.
5991# I made two trivial syntax fixes in the wyse30 entry.
5992# I made some entries relative to adm+sgr.
5993#
5994#
5995# Note: The wyse75, wyse85, and wyse99 have been discontinued.
5996
5997#	   Although the Wyse 30 can support more than one attribute
5998#	it requires magic cookies to do so.  Many applications do not
5999#	function well with magic cookies.  The following terminfo uses
6000#	the protect mode to support one attribute (dim) without cookies.
6001#	If more than one attribute is needed then the wy30-mc terminfo
6002#	should be used.
6003#
6004wy30|wyse30|Wyse 30,
6005	am, bw, hs, mc5i, mir, msgr, xon,
6006	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
6007	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
6008	civis=\E`0, clear=\E+$<80>, cnorm=\E`1, cr=^M, cub1=^H,
6009	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
6010	cuu1=^K, dch1=\EW$<10>, dim=\E`7\E), dl1=\ER$<1>,
6011	dsl=\EF\r, ed=\EY$<80>, el=\ET, flash=\E`8$<100/>\E`9,
6012	fsl=^M, home=^^, ht=\011$<1>, hts=\E1, il1=\EE$<2>,
6013	ind=\n$<2>, ip=$<2>, is2=\E'\E(\E\^3\E`9\016\024,
6014	kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
6015	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kent=\E7,
6016	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6017	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=^^, kich1=\EQ,
6018	kil1=\EE, knp=\EK, kpp=\EJ, krpl=\Er, ll=^^^K, mc0=\EP, mc4=^T,
6019	mc5=^X, nel=^M^J, pfx=\Ez%p1%{63}%+%c%p2%s\177,
6020	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>,
6021	rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
6022	sgr=%?%p1%p5%p8%|%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6023	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
6024	smso=\E`7\E), tbc=\E0, tsl=\EF,
6025#
6026#	This terminal description uses the non-hidden attribute mode
6027#	(with magic cookie).
6028#
6029# (wy30-mc: added <smcup> to suppress tic warning --esr)
6030wy30-mc|wyse30-mc|wyse 30 with magic cookies,
6031	msgr@,
6032	ma@, xmc#1,
6033	blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003,
6034	rmcup=\EG0, rmso=\EG0,
6035	sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6036	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
6037	smso=\EG4, use=wy30, use=adm+sgr,
6038#	The mandatory pause used by <flash> does not work with
6039#	older versions of terminfo.  If you see this effect then
6040#	unset xon and delete the / from the delay.
6041#	i.e. change $<100/> to $<100>
6042wy30-vb|wyse30-vb|wyse 30 visible bell,
6043	bel@, use=wy30,
6044#
6045#	   The Wyse 50 can support one attribute (e.g. Dim, Inverse,
6046#	Normal) without magic cookies by using the protect mode.
6047#	The following description uses this feature, but when more
6048#	than one attribute is put on the screen at once, all attributes
6049#	will be changed to be the same as the last attribute given.
6050#	   The Wyse 50 can support more attributes when used with magic
6051#	cookies.  The wy50-mc terminal description uses magic cookies
6052#	to correctly handle multiple attributes on a screen.
6053#
6054wy50|wyse50|Wyse 50,
6055	am, bw, hs, mc5i, mir, msgr, xon,
6056	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
6057	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
6058	civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M, cub1=^H,
6059	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
6060	cuu1=^K, dch1=\EW$<1>, dim=\E`7\E), dl1=\ER, dsl=\EF\r,
6061	ed=\EY$<20>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
6062	home=^^, ht=^I, hts=\E1, il1=\EE, ind=\n$<2>, ip=$<1>,
6063	is1=\E`\:\E`9$<30>, is2=\016\024\E'\E(, kHOM=\E{, kbs=^H,
6064	kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW,
6065	kdl1=\ER, ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
6066	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
6067	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6068	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
6069	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
6070	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J,
6071	pfx=\Ez%p1%{63}%+%c%p2%s\177,
6072	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E),
6073	ri=\Ej, rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
6074	sgr=%?%p1%p3%|%t\E`6\E)%e%p5%p8%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6075	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
6076	smso=\E`6\E), tbc=\E0, tsl=\EF,
6077#
6078#	This terminal description uses the non-hidden attribute mode
6079#	(with magic cookie).
6080#
6081#	The mandatory pause used by flash does not work with some
6082#	older versions of terminfo.  If you see this effect then
6083#	unset <xon> and delete the / from the delay.
6084#	i.e. change $<100/> to $<100>
6085# (wy50-mc: added <smcup> to suppress tic warning --esr)
6086wy50-mc|wyse50-mc|wyse 50 with magic cookies,
6087	msgr@,
6088	ma@, xmc#1,
6089	blink=\EG2, dim=\EGp, prot=\EG0\E), rev=\EG4,
6090	rmacs=\EG0\EH\003, rmcup=\EG0, rmso=\EG0,
6091	sgr=\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6092	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
6093	smso=\EGt, use=wy50, use=adm+sgr,
6094wy50-vb|wyse50-vb|wyse 50 visible bell,
6095	bel@, use=wy50,
6096wy50-w|wyse50-w|wyse 50 132-column,
6097	cols#132, lw#7, nlab#16, wsl#97,
6098	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
6099	use=wy50,
6100wy50-wvb|wyse50-wvb|wyse 50 132-column visible bell,
6101	bel@, use=wy50-w,
6102
6103#
6104#	The Wyse 350 is a Wyse 50 with color.
6105#	Unfortunately this means that it has magic cookies.
6106#	The color attributes are designed to overlap the reverse, dim and
6107#	underline attributes.  This is nice for monochrome applications
6108#	because you can make underline stuff green (or any other color)
6109#	but for true color applications it's not so hot because you cannot
6110#	mix color with reverse, dim or underline.
6111#	    To further complicate things one of the attributes must be
6112#	black (either the foreground or the background).  In reverse video
6113#	the background changes color with black letters.  In normal video
6114#	the foreground changes colors on a black background.
6115#	    This terminfo uses some of the more advanced features of curses
6116#	to display both color and blink.  In the final analysis I am not
6117#	sure that the wy350 runs better with this terminfo than it does
6118#	with the wy50 terminfo (with user adjusted colors).
6119#
6120#	The mandatory pause used by flash does not work with
6121#	older versions of terminfo.  If you see this effect then
6122#	unset xon and delete the / from the delay.
6123#	i.e. change $<100/> to $<100>
6124#
6125# Bug: The <op> capability resets attributes.
6126wy350|wyse350|Wyse 350,
6127	am, bw, hs, mc5i, mir, xon,
6128	colors#8, cols#80, lh#1, lines#24, lw#8, ncv#55, nlab#8, pairs#8,
6129	wsl#45, xmc#1,
6130	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
6131	cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
6132	cub1=^H, cud1=^J, cuf1=^L,
6133	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<1>,
6134	dim=\EGp, dl1=\ER, dsl=\EF\r, ed=\EY$<20>, el=\ET,
6135	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
6136	il1=\EE, ind=\n$<2>, ip=$<1>, is1=\E`\:\E`9$<30>,
6137	is2=\016\024\E'\E(, is3=\E%?, kHOM=\E{, kbs=^H, kcbt=\EI,
6138	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
6139	ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
6140	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
6141	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6142	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
6143	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
6144	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J, oc=\E%?, op=\EG0,
6145	pfx=\Ez%p1%{63}%+%c%p2%s\177,
6146	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\EG0\E), ri=\Ej,
6147	rmacs=\EG0\EH\003, rmir=\Er, rmln=\EA11, setb=,
6148	setf=%?%p1%{0}%=%t%{76}%e%p1%{1}%=%t%{64}%e%p1%{2}%=%t%{8}%e%p1%{3}%=%t%{72}%e%p1%{4}%=%t%{4}%e%p1%{5}%=%t%{68}%e%p1%{6}%=%t%{12}%e%p1%{7}%=%t%{0}%;%PC\EG%gC%gA%+%{48}%+%c,
6149	sgr=%{0}%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;%PA\EG%?%gC%t%gC%e%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p5%t%{64}%|%;%;%gA%+%{48}%+%c%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6150	sgr0=\EG0\E(\EH\003%{0}%PA%{0}%PC, smacs=\EG0\EH\002,
6151	smir=\Eq, smln=\EA10, tbc=\E0, tsl=\EF, use=adm+sgr,
6152wy350-vb|wyse350-vb|wyse 350 visible bell,
6153	bel@, use=wy350,
6154wy350-w|wyse350-w|wyse 350 132-column,
6155	cols#132, lw#7, nlab#16, wsl#97,
6156	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
6157	use=wy350,
6158wy350-wvb|wyse350-wvb|wyse 350 132-column visible bell,
6159	bel@, use=wy350-w,
6160#
6161#	This terminfo description is untested.
6162#	The wyse100 emulates an adm31, so the adm31 entry should work.
6163#
6164wy100|wyse 100,
6165	hs, mir,
6166	cols#80, lines#24, xmc#1,
6167	bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6168	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
6169	dl1=\ER, dsl=\EA31, ed=\EY, el=\ET, fsl=^M, il1=\EE, ind=^J,
6170	invis@, is2=\Eu\E0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
6171	kcuu1=^K, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
6172	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=\E{,
6173	rmir=\Er, smir=\Eq, tsl=\EF, use=adm+sgr,
6174#
6175#	The Wyse 120/150 has most of the features of the Wyse 60.
6176#	This terminal does not need padding up to 9600 baud!
6177#	<msgr> should be set but the clear screen fails when in
6178#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
6179#	then set <msgr>.
6180#
6181wy120|wyse120|wy150|wyse150|Wyse 120/150,
6182	am, bw, hs, km, mc5i, mir, msgr, xon,
6183	cols#80, it#8, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
6184	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6185	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
6186	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6187	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
6188	dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
6189	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=\011$<1>,
6190	hts=\E1, il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
6191	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6192	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6193	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6194	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6195	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6196	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6197	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6198	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
6199	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
6200	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6201	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6202	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
6203	rmacs=\EcD, rmam=\Ed., rmcup=\Ew1, rmir=\Er, rmln=\EA11,
6204	rmxon=\Ec20, rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
6205	rs3=\EwG\Ee($<100>,
6206	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
6207	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6208	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6209	tbc=\E0, tsl=\EF, use=adm+sgr,
6210#
6211wy120-w|wyse120-w|wy150-w|wyse150-w|wyse 120/150 132-column,
6212	cols#132, lw#7, nlab#16, wsl#97,
6213	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
6214	rs2=\E`;$<70>, use=wy120,
6215#
6216wy120-25|wyse120-25|wy150-25|wyse150-25|wyse 120/150 80-column 25-lines,
6217	lh@, lines#25, lw@, nlab@,
6218	pln@, rs3=\EwG\Ee)$<100>, use=wy120,
6219#
6220wy120-25-w|wyse120-25-w|wy150-25-w|wyse150-25-w|wyse 120/150 132-column 25-lines,
6221	lh@, lines#25, lw@, nlab@,
6222	pln@, rs3=\EwG\Ee)$<100>, use=wy120-w,
6223#
6224wy120-vb|wyse120-vb|wy150-vb|wyse150-vb|Wyse 120/150 visible bell,
6225	bel@, use=wy120,
6226#
6227wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column visible bell,
6228	bel@, use=wy120-w,
6229#
6230#	The Wyse 60 is like the Wyse 50 but with more padding.
6231#	The reset strings are slow and the pad times very depending
6232#	on other parameters such as font loading.  I have tried
6233#	to follow the following outline:
6234#
6235#		<rs1> -> set personality
6236#		<rs2> -> set number of columns
6237#		<rs3> -> set number of lines
6238#		<is1> -> select the proper font
6239#		<is2> -> do the initialization
6240#		<is3> -> set up display memory (2 pages)
6241#
6242#	The Wyse 60's that have vt100 emulation are slower than the
6243#	older Wyse 60's.  This change happened mid-1987.
6244#	The capabilities effected are <dch1> <dl1> <il1> <ind> <ri>
6245#
6246#	The meta key is only half right.  This terminal will return the
6247#	high order bit set when you hit CTRL-function_key
6248#
6249#	It may be useful to assign two function keys with the
6250#	values  \E=(\s  look at old data in page 1
6251#	        \E=W,   look at bottom of page 1
6252#	where \s is a space ( ).
6253#
6254#	Note:
6255#	   The Wyse 60 runs faster when the XON/XOFF
6256#	   handshake is turned off.
6257#
6258# (wy60: we use \E{ rather than ^^ for home (both are documented) to avoid
6259# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
6260wy60|wyse60|Wyse 60,
6261	am, bw, hs, km, mc5i, mir, msgr,
6262	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#45,
6263	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6264	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<100>,
6265	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6266	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
6267	dch1=\EW$<11>, dclk=\E`b, dim=\EGp, dl1=\ER$<5>, dsl=\EF\r,
6268	ed=\EY$<100>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
6269	home=\E{, ht=\011$<1>, hts=\E1, il1=\EE$<4>, ind=\n$<5>,
6270	ip=$<3>, is1=\EcB0\EcC1,
6271	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6272	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6273	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6274	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6275	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6276	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6277	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6278	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
6279	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
6280	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6281	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6282	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
6283	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew1, rmir=\Er,
6284	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<150>,
6285	rs2=\EeG$<150>, rs3=\EwG\Ee($<200>,
6286	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
6287	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6288	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6289	tbc=\E0, tsl=\EF, use=adm+sgr,
6290#
6291wy60-w|wyse60-w|wyse 60 132-column,
6292	cols#132, lw#7, nlab#16, wsl#97,
6293	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<16>, ip=$<5>,
6294	rs2=\EeF$<150>\E`;$<150>, use=wy60,
6295#
6296wy60-25|wyse60-25|wyse 60 80-column 25-lines,
6297	lh@, lines#25, lw@, nlab@,
6298	pln@, rs3=\EwG\Ee)$<200>, use=wy60,
6299wy60-25-w|wyse60-25-w|wyse 60 132-column 25-lines,
6300	lh@, lines#25, lw@, nlab@,
6301	pln@, rs3=\EwG\Ee)$<200>, use=wy60-w,
6302#
6303wy60-42|wyse60-42|wyse 60 80-column 42-lines,
6304	lines#42,
6305	clear=\E+$<260>, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<2>,
6306	dch1=\EW$<16>, dl1=\ER$<11>, ed=\Ey$<260>, il1=\EE$<11>,
6307	ind=\n$<9>, ip=$<5>, is1=\EcB2\EcC3, nel=\r\n$<6>,
6308	ri=\Ej$<10>, rs3=\Ee*$<150>, use=wy60,
6309wy60-42-w|wyse60-42-w|wyse 60 132-column 42-lines,
6310	cols#132, lw#7, nlab#16, wsl#97,
6311	clear=\E+$<260>, cup=\Ea%i%p1%dR%p2%dC$<2>,
6312	dch1=\EW$<19>, ed=\Ey$<260>, home=\036$<2>, ip=$<6>,
6313	nel=\r\n$<11>, rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
6314#
6315wy60-43|wyse60-43|wyse 60 80-column 43-lines,
6316	lh@, lines#43, lw@, nlab@,
6317	pln@, rs3=\Ee+$<150>, use=wy60-42,
6318wy60-43-w|wyse60-43-w|wyse 60 132-column 43-lines,
6319	lh@, lines#43, lw@, nlab@,
6320	pln@, rs3=\Ee+$<150>, use=wy60-42-w,
6321#
6322wy60-vb|wyse60-vb|Wyse 60 visible bell,
6323	bel@, use=wy60,
6324wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell,
6325	bel@, use=wy60-w,
6326
6327#	The Wyse-99GT looks at lot like the Wyse 60 except that it
6328#	does not have the 42/43 line mode.  In the Wyse-60 the "lines"
6329#	setup parameter controls the number of lines on the screen.
6330#	For the Wyse 99GT the "lines" setup parameter controls the
6331#	number of lines in a page.  The screen can display 25 lines max.
6332#	    The Wyse-99GT also has personalities for the VT220 and
6333#	Tektronix 4014.  But this has no bearing on the native mode.
6334#
6335#	(msgr) should be set but the clear screen fails when in
6336#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
6337#	then set msgr, else use msgr@.
6338#
6339#	u0 -> enter Tektronix mode
6340#	u1 -> exit Tektronix mode
6341#
6342wy99gt|wyse99gt|Wyse 99gt,
6343	msgr@,
6344	clear=\E+$<130>, dch1=\EW$<7>, dl1=\ER$<4>, ed=\Ey$<130>,
6345	el=\Et$<5>, flash=\E`8$<100/>\E`9, ht=\011$<1>,
6346	il1=\EE$<4>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
6347	ri=\Ej$<3>, rmcup=\Ew0, rs2=\E`\:$<150>, smcup=\Ew1,
6348	u0=\E~>\E8, u1=\E[42h, use=wy60,
6349#
6350wy99gt-w|wyse99gt-w|wyse 99gt 132-column,
6351	cols#132, lw#7, nlab#16, wsl#97,
6352	clear=\E+$<160>, cup=\Ea%i%p1%dR%p2%dC$<2>,
6353	dch1=\EW$<9>, ed=\Ey$<160>, ip=$<4>, rs2=\E`;$<150>,
6354	use=wy99gt,
6355#
6356wy99gt-25|wyse99gt-25|wyse 99gt 80-column 25-lines,
6357	lh@, lines#25, lw@, nlab@,
6358	pln@, rs2=\E`\:$<150>, rs3=\EwG\Ee)$<200>, use=wy99gt,
6359#
6360wy99gt-25-w|wyse99gt-25-w|wyse 99gt 132-column 25-lines,
6361	lh@, lines#25, lw@, nlab@,
6362	pln@, rs2=\E`;$<150>, use=wy99gt-w,
6363#
6364wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell,
6365	bel@, use=wy99gt,
6366#
6367wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell,
6368	bel@, use=wy99gt-w,
6369
6370# Can't set tabs! Other bugs (ANSI mode only):
6371# - can't redefine function keys (anyway, key redefinition in ANSI mode
6372#   is too much complex to be described);
6373# - meta key can't be described (the terminal forgets it when reset);
6374# The xon-xoff handshaking can't be disabled while in ansi personality, so
6375# emacs can't work at speed greater than 9600 baud.  No padding is needed at
6376# this speed.
6377#   dch1 has been commented out because it causes annoying glittering when
6378# vi deletes one character at the beginning of a line with tabs in it.
6379#   dch makes sysgen(1M) have a horrible behaviour when deleting
6380# a screen and makes screen(1) behave badly, so it is disabled too. The nice
6381# thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
6382# not, so smir and rmir are commented out as well.
6383# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6384wy99-ansi|Wyse WY-99GT in ansi mode (int'l PC keyboard),
6385	am, km, mc5i, mir, msgr, xenl,
6386	cols#80, it#8, lines#25, vt#3,
6387	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~,
6388	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6389	clear=\E[H\E[J$<200>, cnorm=\E[34h\E[?25h, cr=^M,
6390	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<1>,
6391	cub1=\010$<1>, cud=\E[%p1%dB, cud1=\ED,
6392	cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
6393	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
6394	cvvis=\E[34l\E[?25h, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
6395	ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>,
6396	enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, home=\E[H,
6397	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
6398	il1=\E[L, ind=\n$<1>, invis=\E[8m,
6399	is2=\E7\E[1r\E8\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[4i,
6400	kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
6401	kcuu1=\EOA, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
6402	kf12=\E[24~, kf17=\E[K, kf18=\E[31~, kf19=\E[32~, kf2=\EOQ,
6403	kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~,
6404	kf24=\E[2~, kf3=\EOR, kf4=\EOS, kf5=\E[M, kf6=\E[17~,
6405	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, ll=\E[24E, mc0=\E[?19h,
6406	mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rc=\E8,
6407	rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
6408	rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m,
6409	rs2=\E[61"p\E[40h\E[?6l\E[1r\E[2;3;4;13;20;34;39;36l\E[12;16;34h\E[?1;3;4;5;10;18l\E[?7;8;25h\E>\E[?5W\E(B\017\E[24E\E[4i,
6410	sc=\E7,
6411	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%O%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m\E[%?%p8%t1%;"q%?%p9%t\016%e\017%;,
6412	sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h,
6413	smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
6414
6415#   This is the american terminal. Here tabs work fine.
6416# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6417wy99a-ansi|Wyse WY-99GT in ansi mode (US PC keyboard),
6418	hts=\EH, is3=\E[?5l, rs3=\E[?5l, tbc=\E[3g, use=wy99-ansi,
6419
6420# This terminal (firmware version 02) has a lot of bugs:
6421# - can't set tabs;
6422# - other bugs in ANSI modes (see above).
6423# This description disables handshaking when using cup. This is because
6424# GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
6425# cannot be used at speeds greater than 9600 baud, because at greater
6426# speeds handshaking is needed even for character sending. If you use
6427# DTR handshaking, you can use even greater speeds.
6428# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6429wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard),
6430	am, bw, hs, km, mc5i, mir, msgr, xon,
6431	cols#80, it#8, lines#25, wsl#46,
6432	acsc='x+y.wI~_vj(k'l&m%n)o9q*s8t-u.v\,w+x=, bel=^G,
6433	blink=\EG2, cbt=\EI, civis=\E`0, clear=\E'\E(\032,
6434	cnorm=\E`4\E`1, cr=^M, cub1=^H, cud1=\Ej, cuf1=^L,
6435	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
6436	cvvis=\E`2\E`1, dch1=\EW, dim=\EGp, dl1=\ER, dsl=\EF\r,
6437	ed=\EY$<8*>, el=\ET$<8>, enacs=\Ec@1J$<2000>,
6438	flash=\E\^1$<30/>\E\^0, fsl=^M, home=^^, ht=^I, il1=\EE,
6439	ind=^J, invis=\EG3,
6440	is2=\Eu\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\EcD\024,
6441	ka1=^^, ka3=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H,
6442	kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r,
6443	kf11=^AJ\r, kf12=^AK\r, kf13=^A`\r, kf14=^Aa\r, kf15=^Ab\r,
6444	kf16=^Ac\r, kf17=^Ad\r, kf18=^Ae\r, kf19=^Af\r, kf2=^AA\r,
6445	kf20=^Ag\r, kf21=^Ah\r, kf22=^Ai\r, kf23=^Aj\r, kf24=^Ak\r,
6446	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
6447	kf8=^AG\r, kf9=^AH\r, kprt=\EP, mc0=\EP, mc4=^T, mc5=\Ed#,
6448	nel=^_, prot=\E), rev=\EG4, ri=\Ej, rmacs=\EcD, rmam=\Ed.,
6449	rmcup=\Ec21\Ec31, rmir=\Er, rmso=\EG0, rmxon=\Ec20\Ec30,
6450	rs2=\Eu\E~4\Ee6\EC\EDF\Ec21\Ec31\Ec62\Ec72\Ee;\016\E'\EeL\E`9\E\^0\E`1\E`4\Ee.\E`\:\Ee)\Ew\EwG\Ew0\Ee1\EG0\E(\Ed/\Ee4\Ed*\EO\E`I\Er\Ee"\Ec@0B\EcD\024,
6451	sgr=\E(\EG%{48}%?%p1%p3%O%t%{4}%+%;%?%p2%t%{8}%+%;%?%p4%t%{2}%+%;%?%p5%t%{64}%+%;%?%p7%t%{1}%+%;%c%?%p8%t\E)%;%?%p9%t\EcE%e\EcD%;,
6452	sgr0=\E(\EG0, smacs=\EcE, smam=\Ed/, smcup=\Ec20\Ec30,
6453	smir=\Eq, smso=\EG4, smxon=\Ec21\Ec31, tsl=\EF,
6454
6455# This is the american terminal. Here tabs work.
6456# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6457wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard),
6458	hts=\E1, tbc=\E0, use=wy99f,
6459
6460#
6461#	The Wyse 160 is combination of the WY-60 and the WY-99gt.
6462#	The reset strings are slow and the pad times very depending
6463#	on other parameters such as font loading.  I have tried
6464#	to follow the following outline:
6465#
6466#		<rs1> -> set personality
6467#		<rs2> -> set number of columns
6468#		<rs3> -> set number of lines
6469#		<is1> -> select the proper font
6470#		<is2> -> do the initialization
6471#		<is3> -> set up display memory (2 pages)
6472#
6473#	The display memory may be used for either text or graphics.
6474#	When "Display Memory = Shared" the terminal will have more pages
6475#	but garbage may be left on the screen when you switch from
6476#	graphics to text.  If "Display Memory = Unshared" then the
6477#	text area will be only one page long.
6478#
6479# (wy160: we use \E{ rather than ^^ for home (both are documented) to avoid
6480# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
6481wy160|wyse160|Wyse 160,
6482	am, bw, hs, km, mc5i, mir, msgr,
6483	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#38,
6484	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6485	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<30>,
6486	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6487	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<5>,
6488	dclk=\E`b, dim=\EGp, dl1=\ER$<1>, dsl=\EF\r, ed=\EY$<30>,
6489	el=\ET$<5>, flash=\E`8$<100/>\E`9, fsl=^M, home=\E{, ht=^I,
6490	hts=\E1, il1=\EE$<1>, ind=\n$<1>, ip=$<2>, is1=\EcB0\EcC1,
6491	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6492	is3=\Ew0$<100>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6493	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6494	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6495	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6496	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6497	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6498	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
6499	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<1>,
6500	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6501	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6502	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<1>,
6503	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew0, rmir=\Er,
6504	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<70>,
6505	rs2=\E`\:$<100>, rs3=\EwG\Ee($<140>,
6506	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
6507	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6508	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6509	tbc=\E0, tsl=\EF, use=adm+sgr,
6510#
6511wy160-w|wyse160-w|wyse 160 132-column,
6512	cols#132, lw#7, nlab#16, wsl#90,
6513	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<9>,
6514	rs2=\EeF$<150>\E`;$<150>, use=wy160,
6515#
6516wy160-25|wyse160-25|wyse 160 80-column 25-lines,
6517	lh@, lines#25, lw@, nlab@,
6518	pln@, rs3=\EwG\Ee)$<200>, use=wy160,
6519wy160-25-w|wyse160-25-w|wyse 160 132-column 25-lines,
6520	lh@, lines#25, lw@, nlab@,
6521	pln@, rs3=\EwG\Ee)$<200>, use=wy160-w,
6522#
6523wy160-42|wyse160-42|wyse 160 80-column 42-lines,
6524	lines#42,
6525	clear=\E+$<50>, dl1=\ER$<2>, ed=\Ey$<50>, il1=\EE$<2>,
6526	ind=\n$<2>, is1=\EcB2\EcC3, nel=\r\n$<2>, ri=\Ej$<2>,
6527	rs3=\Ee*$<150>, use=wy160,
6528wy160-42-w|wyse160-42-w|wyse 160 132-column 42-lines,
6529	cols#132, lw#7, nlab#16, wsl#90,
6530	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<8>, ip=$<3>,
6531	rs2=\EeF$<150>\E`;$<150>, use=wy160-42,
6532#
6533wy160-43|wyse160-43|wyse 160 80-column 43-lines,
6534	lh@, lines#43, lw@, nlab@,
6535	pln@, rs3=\Ee+$<150>, use=wy160-42,
6536wy160-43-w|wyse160-43-w|wyse 160 132-column 43-lines,
6537	lh@, lines#43, lw@, nlab@,
6538	pln@, rs3=\Ee+$<150>, use=wy160-42-w,
6539#
6540wy160-vb|wyse160-vb|Wyse 160 visible bell,
6541	bel@, use=wy160,
6542wy160-w-vb|wy160-wvb|wyse160-wvb|Wyse 160 132-column visible bell,
6543	bel@, use=wy160-w,
6544#
6545#	The Wyse 75 is a vt100 lookalike without advanced video.
6546#
6547#	   The Wyse 75 can support one attribute (e.g. Dim, Inverse,
6548#	Underline) without magic cookies.  The following description
6549#	uses this capability, but when more than one attribute is
6550#	put on the screen at once, all attributes will be changed
6551#	to be the same as the last attribute given.
6552#	   The Wyse 75 can support more attributes when used with magic
6553#	cookies.  The wy75-mc terminal description uses magic cookies
6554#	to correctly handle multiple attributes on a screen.
6555#
6556wy75|wyse75|wyse 75,
6557	am, hs, mc5i, mir, msgr, xenl, xon,
6558	cols#80, lines#24, ma#1, pb#1201, wsl#78,
6559	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6560	bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[J$<30>,
6561	cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr$<2>,
6562	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
6563	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
6564	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>,
6565	dch1=\E[P$<3>, dim=\E[0t\E[2m, dl=\E[%p1%dM$<1*>,
6566	dl1=\E[M, dsl=\E[>\,\001\001\E[>-\001\001,
6567	ech=\E[%p1%dX, ed=\E[J$<30>, el=\E[K$<3>, el1=\E[1K$<3>,
6568	enacs=\E)0, flash=\E[30h\E\,\E[30l$<250>, fsl=^A,
6569	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
6570	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
6571	ind=\n$<2>, ip=$<1>,
6572	is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
6573	is2=\E>\E(B\E)0\017, is3=\E[m, ka1=\EOw, ka3=\EOy,
6574	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
6575	kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K, kent=\EOM,
6576	kf1=\E[?5i, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
6577	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
6578	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[?3i,
6579	kf20=\E[34~, kf21=\E[35~, kf3=\E[2i, kf4=\E[@, kf5=\E[M,
6580	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
6581	khlp=\E[28~, khome=\E[H, kich1=\E[@, kil1=\E[L, knp=\E[6~,
6582	kpp=\E[5~, kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i, mc4=\E[4i,
6583	mc5=\E[5i, rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O,
6584	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
6585	rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<80>, rs3=\E[?5l,
6586	sc=\E7,
6587	sgr=%?%p5%t\E[0t%;%?%p3%p1%|%t\E[1t%;%?%p2%t\E[2t%;%?%p4%t\E[3t%;%?%p1%p2%p3%p4%p5%|%|%|%|%t\E[7m%e\E[m%;%?%p9%t\016%e\017%;,
6588	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6589	smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
6590	tbc=\E[3g, tsl=\E[>\,\001,
6591#
6592#	This terminal description uses the non-hidden attribute mode
6593#	(with magic cookie).
6594#
6595wy75-mc|wyse75-mc|wyse 75 with magic cookies,
6596	msgr@,
6597	ma@, xmc#1,
6598	blink=\E[2p, dim=\E[1p, invis=\E[4p, is3=\E[m\E[p,
6599	rev=\E[16p, rmacs=\E[0p\017, rmso=\E[0p, rmul=\E[0p,
6600	sgr=\E[%{0}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{16}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{1}%|%;%?%p7%t%{4}%|%;%dp%?%p9%t\016%e\017%;,
6601	sgr0=\E[0p\017, smacs=\E[0p\016, smso=\E[17p, smul=\E[8p,
6602	use=wy75,
6603wy75-vb|wyse75-vb|wyse 75 with visible bell,
6604	pb@,
6605	bel@, use=wy75,
6606wy75-w|wyse75-w|wyse 75 in 132 column mode,
6607	cols#132, wsl#130,
6608	rs2=\E[35h\E[?3h$<80>, use=wy75,
6609wy75-wvb|wyse75-wvb|wyse 75 with visible bell 132 columns,
6610	pb@,
6611	bel@, use=wy75-w,
6612#
6613#	Wyse 85 emulating a vt220 7 bit mode.
6614#		24 line screen with status line.
6615#
6616#	The vt220 mode permits more function keys but it wipes out
6617#	the escape key.  I strongly recommend that <f11> be set to
6618#	escape (esc).
6619#	The terminal may have to be set for 8 data bits and 2 stop
6620#	bits for the arrow keys to work.
6621#	The Wyse 85 runs faster with XON/XOFF enabled.  Also the
6622#	<dch> and <ich> work best when XON/XOFF is set.  <ich> and
6623#	<dch> leave trash on the screen when used without XON/XOFF.
6624#
6625wy85|wyse85|wyse 85,
6626	am, hs, mc5i, mir, msgr, xenl, xon,
6627	cols#80, it#8, lines#24, wsl#80,
6628	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6629	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6630	clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
6631	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
6632	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6633	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
6634	dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
6635	dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
6636	ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
6637	enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
6638	fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
6639	ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
6640	ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
6641	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
6642	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6643	kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
6644	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM, kf1=\EOP,
6645	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
6646	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
6647	kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
6648	kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
6649	kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, kich1=\E[2~,
6650	knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3,
6651	lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
6652	ri=\EM$<3>, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
6653	rmso=\E[m, rmul=\E[m, rs1=\E[13l\E[3l\E!p,
6654	rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l, sc=\E7,
6655	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
6656	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6657	smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
6658	tsl=\E[40h\E7\E[25;%i%p1%dH,
6659#
6660#	Wyse 85 with visual bell.
6661wy85-vb|wyse85-vb|wyse 85 with visible bell,
6662	bel@, flash=\E[30h\E\,\E[30l$<300>, use=wy85,
6663#
6664#	Wyse 85 in 132-column mode.
6665wy85-w|wyse85-w|wyse 85 in 132-column mode,
6666	cols#132, wsl#132,
6667	rs2=\E[35h\E[?3h$<70>, use=wy85,
6668#
6669#	Wyse 85 in 132-column mode with visual bell.
6670wy85-wvb|wyse85-wvb|wyse 85 with visible bell 132-columns,
6671	bel@, use=wy85-w,
6672
6673# From: Kevin Turner <kevint@aracnet.com>, 12 Jul 1998
6674# This copes with an apparent firmware bug in the wy85.  He writes:
6675# "What I did was change leave the terminal cursor keys set to Normal
6676# (instead of application), and change \E[ to \233 for all the keys in
6677# terminfo. At one point, I found some reference indicating that this
6678# terminal bug (not sending \E[) was acknowledged by Wyse (so it's not just
6679# me), but I can't find that and the server under my bookmark to "Wyse
6680# Technical" isn't responding.  So there's the question of wether the wy85
6681# terminfo should reflect the manufactuer's intended behaviour of the terminal
6682# or the actual."
6683wy85-8bit|wyse85-8bit|wyse 85 in 8-bit mode,
6684	am, hs, mc5i, mir, msgr, xenl, xon,
6685	cols#80, it#8, lines#24, wsl#80,
6686	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6687	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6688	clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
6689	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
6690	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6691	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
6692	dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
6693	dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
6694	ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
6695	enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
6696	fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
6697	ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
6698	ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
6699	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
6700	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6701	kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\233D, kcud1=\233B,
6702	kcuf1=\233C, kcuu1=\233A, kdch1=\2333~, kent=\EOM,
6703	kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
6704	kf13=\23325~, kf14=\23326~, kf15=\23328~, kf16=\23329~,
6705	kf17=\23331~, kf18=\23332~, kf19=\23333~, kf2=\EOQ,
6706	kf20=\23334~, kf3=\EOR, kf4=\EOS, kf6=\23317~, kf7=\23318~,
6707	kf8=\23319~, kf9=\23320~, kfnd=\2331~, khlp=\23328~,
6708	khome=\23326~, kich1=\2332~, knp=\2336~, kpp=\2335~,
6709	kslt=\2334~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
6710	mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
6711	rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
6712	rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
6713	rs3=\E[?5l, sc=\E7,
6714	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;+m%?%p9%t\016%e\017%;,
6715	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6716	smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
6717	tsl=\E[40h\E7\E[25;%i%p1%dH,
6718#
6719#	Wyse 185 emulating a vt320 7 bit mode.
6720#
6721#	This terminal always displays 25 lines.  These lines may be used
6722#	as 24 data lines and a terminal status line (top or bottom) or
6723#	25 data lines.  The 48 and 50 line modes change the page size
6724#	and not the number of lines on the screen.
6725#
6726#	The Compose Character key can be used as a meta key if changed
6727#	by set-up.
6728#
6729wy185|wyse185|wyse 185,
6730	am, hs, km, mc5i, mir, msgr, xenl, xon,
6731	cols#80, it#8, lines#24, wsl#80,
6732	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6733	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6734	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
6735	csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
6736	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6737	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
6738	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<3>,
6739	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
6740	dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>,
6741	el=\E[K, el1=\E[1K, enacs=\E)0,
6742	flash=\E[30h\E\,\E[30l$<100>, fsl=\E[1;24r\E8,
6743	home=\E[H, hpa=\E[%i%p1%d`, ht=^I, hts=\EH,
6744	ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
6745	ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
6746	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
6747	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6748	kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
6749	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM,
6750	kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
6751	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
6752	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
6753	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
6754	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
6755	khome=\E[26~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
6756	kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
6757	mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<2>,
6758	rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l, rmkx=\E>,
6759	rmso=\E[27m, rmul=\E[24m,
6760	rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
6761	rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
6762	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
6763	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
6764	smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
6765	tbc=\E[3g, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
6766#
6767#	Wyse 185 with 24 data lines and top status (terminal status)
6768wy185-24|wyse185-24|wyse 185 with 24 data lines,
6769	hs@,
6770	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
6771	use=wy185,
6772#
6773#	Wyse 185 with visual bell.
6774wy185-vb|wyse185-vb|wyse 185+flash,
6775	bel@, use=wy185,
6776#
6777#	Wyse 185 in 132-column mode.
6778wy185-w|wyse185-w|wyse 185 in 132-column mode,
6779	cols#132, wsl#132,
6780	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
6781	ip=$<7>, rs2=\E[35h\E[?3h, use=wy185,
6782#
6783#	Wyse 185 in 132-column mode with visual bell.
6784wy185-wvb|wyse185-wvb|wyse 185+flash+132 cols,
6785	bel@, use=wy185-w,
6786
6787# wy325 terminfo entries
6788# Done by Joe H. Davis        3-9-92
6789
6790# lines 25  columns 80
6791#
6792wy325|wyse325|Wyse epc,
6793	am, bw, hs, mc5i, mir,
6794	cols#80, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
6795	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6796	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
6797	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6798	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
6799	dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
6800	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
6801	il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
6802	is2=\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6803	is3=\Ew0$<16>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6804	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6805	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6806	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6807	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6808	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq,
6809	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
6810	mc0=\EP, mc4=^T, mc5=\Ed#,
6811	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6812	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6813	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
6814	rmacs=\EcD, rmam=\Ed., rmcup=\Ew0, rmir=\Er, rmln=\EA11,
6815	rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
6816	rs3=\EwG\Ee($<100>,
6817	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EcE%e\EcD%;\EG%{48}%?%p2%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
6818	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6819	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, tbc=\E0,
6820	tsl=\EF, use=adm+sgr,
6821
6822#
6823# lines 24  columns 80  vb
6824#
6825wy325-vb|wyse325-vb|wyse-325 with visual bell,
6826	bel@, use=wy325,
6827
6828#
6829# lines 24  columns 132
6830#
6831wy325-w|wyse325-w|wy325w-24|wyse-325 in wide mode,
6832	cols#132, lw#7, nlab#16, wsl#97,
6833	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
6834	rs2=\E`;$<70>, use=wy325,
6835#
6836# lines 25  columns 80
6837#
6838wy325-25|wyse325-25|wy325-80|wyse-325|wyse-325 25 lines,
6839	lh@, lines#25, lw@, nlab@,
6840	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
6841#
6842# lines 25  columns 132
6843#
6844wy325-25w|wyse325-25w|wy325 132 columns,
6845	lh@, lines#25, lw@, nlab@,
6846	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6847#
6848# lines 25  columns 132  vb
6849#
6850wy325-w-vb|wy325-wvb|wyse325-wvb|wyse-325 wide mode reverse video,
6851	bel@, use=wy325-w,
6852
6853#
6854# lines 42  columns 80
6855#
6856wy325-42|wyse325-42|wyse-325 42 lines,
6857	lh@, lines#42, lw@, nlab@,
6858	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
6859#
6860# lines 42  columns 132
6861#
6862wy325-42w|wyse325-42w|wyse-325 42 lines wide mode,
6863	lh@, lines#42, lw@, nlab@,
6864	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6865#
6866# lines 42  columns 132  vb
6867#
6868wy325-42w-vb|wy325-42wvb|wyse-325 42 lines wide mode visual bell,
6869	bel@, use=wy325-w,
6870#
6871# lines 43  columns 80
6872#
6873wy325-43|wyse325-43|wyse-325 43 lines,
6874	lh@, lines#43, lw@, nlab@,
6875	pln@, use=wy325,
6876#
6877# lines 43  columns 132
6878#
6879wy325-43w|wyse325-43w|wyse-325 43 lines wide mode,
6880	lh@, lines#43, lw@, nlab@,
6881	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6882#
6883# lines 43  columns 132  vb
6884#
6885wy325-43w-vb|wy325-43wvb|wyse-325 43 lines wide mode visual bell,
6886	bel@, use=wy325-w,
6887
6888#	Wyse 370 -- 24 line screen with status line.
6889#
6890#	The terminal may have to be set for 8 data bits and 2 stop
6891#	bits for the arrow keys to work.
6892#
6893#	If you change keyboards the terminal will send different
6894#	escape sequences.
6895#	The following definition is for the basic terminal without
6896#	function keys.
6897#
6898#	<u0> -> enter Tektronix 4010/4014 mode
6899#	<u1> -> exit  Tektronix 4010/4014 mode
6900#	<u2> -> enter ASCII mode (from any ANSI mode)
6901#	<u3> -> exit  ASCII mode (goto native ANSI mode)
6902#	<u4> -> enter Tek 4207 ANSI mode (from any ANSI mode)
6903#	<u5> -> exit  Tek 4207 mode (goto native ANSI mode)
6904#
6905# Bug: The <op> capability resets attributes.
6906wy370-nk|wyse 370 without function keys,
6907	am, ccc, hs, mc5i, mir, msgr, xenl, xon,
6908	colors#64, cols#80, it#8, lines#24, ncv#48, pairs#64, wsl#80,
6909	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6910	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6911	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
6912	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
6913	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6914	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
6915	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>,
6916	dclk=\E[31h, dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
6917	dsl=\E[40l, ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>,
6918	el=\E[K$<10>, el1=\E[1K$<12>, enacs=\E)0,
6919	flash=\E[30h\E\,\E[30l$<300>, fsl=\E[1;24r\E8,
6920	home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>, hts=\EH,
6921	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
6922	ind=\n$<2>,
6923	initc=\E[66;%p1%d;%?%p2%{250}%<%t%{0}%e%p2%{500}%<%t%{16}%e%p2%{750}%<%t%{32}%e%{48}%;%?%p3%{250}%<%t%{0}%e%p3%{500}%<%t%{4}%e%p3%{750}%<%t%{8}%e%{12}%;%?%p4%{250}%<%t%{0}%e%p4%{500}%<%t%{1}%e%p4%{750}%<%t%{2}%e%{3}%;%{1}%+%+%+%dw,
6924	invis=\E[8m, ip=$<1>, is1=\E[90;1"p\E[?5W$<6>,
6925	is2=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h,
6926	is3=\E>\017\E)0\E(B\E[63;0w\E[m, mc0=\E[0i, mc4=\E[4i,
6927	mc5=\E[5i,
6928	oc=\E[60w\E[63;0w\E[66;1;4w\E[66;2;13w\E[66;3;16w\E[66;4;49w\E[66;5;51w\E[66;6;61w\E[66;7;64w,
6929	op=\E[m, rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O,
6930	rmam=\E[?7l, rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l,
6931	rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
6932	rs1=\E[13l\E[3l\E!p\E[?4i, rs2=\E[35h\E[?3l$<8>,
6933	rs3=\E[?5l, sc=\E7, setb=\E[62;%p1%dw, setf=\E[61;%p1%dw,
6934	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
6935	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
6936	smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
6937	tbc=\E[3g, tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH,
6938	u0=\E[?38h\E8, u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B,
6939	u4=\E[92;76"p, u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd,
6940#
6941#	Function key set for the ASCII (wy-50 compatible) keyboard
6942#	This is the default 370.
6943#
6944wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
6945	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
6946	kcuu1=\E[A, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
6947	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
6948	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf2=\E[?3i,
6949	kf3=\E[2i, kf4=\E[@, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
6950	kf8=\E[19~, kf9=\E[20~, khome=\E[H, kich1=\EOP, kil1=\EOP,
6951	knp=\E[U, kpp=\E[V, use=wy370-nk,
6952#
6953#	Function key set for the VT-320 (and wy85) compatible keyboard
6954#
6955wy370-105k|Wyse 370 with 105 key keyboard,
6956	ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs,
6957	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
6958	kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
6959	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
6960	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
6961	kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
6962	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
6963	khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
6964	kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
6965	use=wy370-nk,
6966#
6967#	Function key set for the PC compatible keyboard
6968#
6969wy370-EPC|Wyse 370 with 102 key keyboard,
6970	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
6971	kcuu1=\E[A, kend=\E[1~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
6972	kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
6973	kf5=\E[M, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
6974	khome=\E[H, kich1=\E[2~, knp=\E[U, kpp=\E[V, use=wy370-nk,
6975#
6976#	Wyse 370 with visual bell.
6977wy370-vb|Wyse 370 with visible bell,
6978	bel@, use=wy370,
6979#
6980#	Wyse 370 in 132-column mode.
6981wy370-w|Wyse 370 in 132-column mode,
6982	cols#132, wsl#132,
6983	rs2=\E[35h\E[?3h$<70>, use=wy370,
6984#
6985#	Wyse 370 in 132-column mode with visual bell.
6986wy370-wvb|Wyse 370 with visible bell 132-columns,
6987	flash=\E[30h\E\,\E[30l$<300>, use=wy370-w,
6988wy370-rv|Wyse 370 reverse video,
6989	rs3=\E[32h\E[?5h, use=wy370,
6990#
6991#	Wyse 99gt Tektronix 4010/4014 emulator,
6992#
6993wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
6994	am, os,
6995	cols#74, lines#35,
6996	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
6997	cup=\035%{3040}%{89}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037,
6998	cuu1=^K, ff=^L,
6999	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
7000	home=^]7`x @\037,
7001	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
7002	is2=\E8, nel=^M^J, u0=\E~>\E8, u1=\E[42h,
7003#
7004#	Wyse 160 Tektronix 4010/4014 emulator,
7005#
7006wy160-tek|Wyse 160 Tektronix 4010/4014 emulator,
7007	cup=\035%{3103}%{91}%p1%*%-%Py%p2%{55}%*%Px%gy%{128}%/%{31}%&%{32}%+%c%gy%{3}%&%{4}%*%gx%{3}%&%+%{96}%+%c%gy%{004}%/%{31}%&%{96}%+%c%gx%{128}%/%{31}%&%{32}%+%c%gx%{004}%/%{31}%&%{64}%+%c\037,
7008	home=^]8`g @\037, use=wy99gt-tek,
7009#
7010#	Wyse 370 Tektronix 4010/4014 emulator,
7011#
7012wy370-tek|Wyse 370 Tektronix 4010/4014 emulator,
7013	am, os,
7014	cols#80, lines#36,
7015	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
7016	cup=\035%{775}%{108}%p1%*%{5}%/%-%Py%p2%{64}%*%{4}%+%{5}%/%Px%gy%{32}%/%{31}%&%{32}%+%c%gy%{31}%&%{96}%+%c%gx%{32}%/%{31}%&%{32}%+%c%gx%{31}%&%{64}%+%c\037,
7017	cuu1=^K, ff=^L,
7018	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
7019	home=^]8g @\037,
7020	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
7021	is2=\E8, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^I, kcuu1=^K,
7022	nel=^M^J, u0=\E[?38h\E8, u1=\E[?38l\E)0,
7023
7024# Vendor-supplied Wyse entries end here.
7025
7026#
7027#TITLE:  TERMINFO ENTRY WY520
7028#DATE:   8/5/93
7029# The WY520 terminfo is based on the WY285 entry published on the WYSE
7030# BBS with the addition of more function keys and special keys.
7031#
7032#               rs1 -> set personality
7033#               rs2 -> set number of columns
7034#               rs3 -> set number of lines
7035#               is1 -> select the proper font
7036#               is2 -> do the initialization
7037#               is3 -> If this string is empty then rs3 gets sent.
7038#
7039#       Wyse 520 emulating a vt420 7 bit mode with default ANSI keyboard
7040#       - The BS key is programmed to generate BS in smcup since
7041#         is2 doesn't seem to work.
7042#       - Remove and shift/Remove: delete a character
7043#       - Insert : enter insert mode
7044#       - Find   : delete to end of file
7045#       - Select : clear a line
7046#       - F11, F12, F13: send default sequences (not ESC, BS, LF)
7047#       - F14 : Home key
7048#       - Bottom status line (host writable line) is used.
7049#       - smkx,rmkx are removed because this would put the numeric
7050#         keypad in Dec application mode which doesn't seem to work
7051#         with SCO applications.
7052#
7053wy520|wyse520|wyse 520,
7054	am, hs, km, mc5i, mir, xenl, xon,
7055	cols#80, it#8, lines#24, wsl#80,
7056	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7057	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
7058	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
7059	csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
7060	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7061	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7062	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<30>,
7063	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
7064	ech=\E[%p1%dX, ed=\E[J$<40>, el=\E[K, el1=\E[1K,
7065	enacs=\E)0, fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%d`, ht=^I,
7066	hts=\EH, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
7067	il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
7068	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
7069	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOu, kb2=\EOy,
7070	kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
7071	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, ked=\E[1~,
7072	kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
7073	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
7074	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
7075	kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7076	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
7077	khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
7078	kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
7079	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
7080	ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
7081	rmso=\E[m, rmul=\E[24m,
7082	rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
7083	rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
7084	sgr=\E[0%?%p2%t;4%;%?%p3%p1%|%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7085	sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
7086	smcup=\E[ Q\E[?67;8h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
7087	tbc=\E[3g, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
7088	vpa=\E[%i%p1%dd,
7089#
7090#       Wyse 520 with 24 data lines and status (terminal status)
7091wy520-24|wyse520-24|wyse 520 with 24 data lines,
7092	hs@,
7093	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
7094	use=wy520,
7095#
7096#       Wyse 520 with visual bell.
7097wy520-vb|wyse520-vb|wyse 520 with visible bell,
7098	flash=\E[30h\E\,\E[30l$<100>, use=wy520,
7099#
7100#       Wyse 520 in 132-column mode.
7101wy520-w|wyse520-w|wyse 520 in 132-column mode,
7102	cols#132, wsl#132,
7103	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
7104	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520,
7105#
7106#       Wyse 520 in 132-column mode with visual bell.
7107wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns,
7108	flash=\E[30h\E\,\E[30l$<100>, use=wy520-w,
7109#
7110#
7111#       Wyse 520 emulating a vt420 7 bit mode.
7112#       The DEL key is programmed to generate BS in is2.
7113#       With EPC keyboard.
7114#       - 'End' key will clear till end of line on EPC keyboard
7115#       - Shift/End : ignored.
7116#       - Insert : enter insert mode.
7117#       - Delete : delete a character (have to change interrupt character
7118#                  to CTRL-C: stty intr '^c') for it to work since the
7119#                  Delete key sends 7FH.
7120wy520-epc|wyse520-epc|wyse 520 with EPC keyboard,
7121	kdch1=\177, kel=\E[4~, kend=\E[4~, kf0=\E[21~, kf1=\E[11~,
7122	kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, khome=\E[H,
7123	use=wy520,
7124#
7125#       Wyse 520 with 24 data lines and status (terminal status)
7126#       with EPC keyboard.
7127wy520-epc-24|wyse520-pc-24|wyse 520 with 24 data lines and EPC keyboard,
7128	hs@,
7129	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
7130	use=wy520-epc,
7131#
7132#       Wyse 520 with visual bell.
7133wy520-epc-vb|wyse520-pc-vb|wyse 520 with visible bell and EPC keyboard,
7134	flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc,
7135#
7136#       Wyse 520 in 132-column mode.
7137wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode with EPC keyboard,
7138	cols#132, wsl#132,
7139	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
7140	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520-epc,
7141#
7142#       Wyse 520 in 132-column mode with visual bell.
7143wy520-epc-wvb|wyse520-p-wvb|wyse 520 with visible bell 132-columns and EPC keyboard,
7144	flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc-w,
7145#
7146#       Wyse 520 in 80-column, 36 lines
7147wy520-36|wyse520-36|wyse 520 with 36 data lines,
7148	hs@,
7149	lines#36,
7150	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
7151	use=wy520,
7152#
7153#       Wyse 520 in 80-column, 48 lines
7154wy520-48|wyse520-48|wyse 520 with 48 data lines,
7155	hs@,
7156	lines#48,
7157	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
7158	use=wy520,
7159#
7160#       Wyse 520 in 132-column, 36 lines
7161wy520-36w|wyse520-36w|wyse 520 with 132 columns and 36 data lines,
7162	cols#132, wsl#132,
7163	rs2=\E[?3h,
7164	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
7165	use=wy520-36,
7166#
7167#       Wyse 520 in 132-column, 48 lines
7168wy520-48w|wyse520-48w|wyse 520 with 48 data lines,
7169	cols#132, wsl#132,
7170	rs2=\E[?3h,
7171	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
7172	use=wy520-48,
7173#
7174#
7175#       Wyse 520 in 80-column, 36 lines with EPC keyboard
7176wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines and EPC keyboard,
7177	hs@,
7178	lines#36,
7179	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
7180	use=wy520-epc,
7181#
7182#       Wyse 520 in 80-column, 48 lines with EPC keyboard
7183wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines and EPC keyboard,
7184	hs@,
7185	lines#48,
7186	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
7187	use=wy520-epc,
7188#
7189#       Wyse 520 in 132-column, 36 lines with EPC keyboard
7190wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines and EPC keyboard,
7191	cols#132, wsl#132,
7192	rs2=\E[?3h,
7193	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
7194	use=wy520-36pc,
7195#
7196#       Wyse 520 in 132-column, 48 lines with EPC keyboard
7197wy520-48wpc|wyse520-48wpc|wyse 520 with 48 data lines and EPC keyboard,
7198	cols#132, wsl#132,
7199	rs2=\E[?3h,
7200	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
7201	use=wy520-48pc,
7202
7203# From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
7204# (wyse-vp: removed <if=/usr/share/tabset/wyse-adds>, there's no such
7205# file and we don't know what <hts> is -- esr)
7206wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on,
7207	OTbs, am,
7208	cols#80, it#8, lines#24,
7209	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
7210	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EW,
7211	dl1=\El, ed=\Ek, el=\EK, home=^A, ht=^I, il1=\EM, ind=^J,
7212	is2=\E`\:\E`9\017\Er, kbs=^H, kcub1=^U, kcud1=^J, kcuf1=^F,
7213	kcuu1=^Z, khome=^A, ll=^A^Z, nel=^M^J, rmir=\Er, rmso=^O,
7214	rmul=^O, rs1=\E`\:\E`9\017\Er, sgr0=^O, smir=\Eq, smso=^N,
7215	smul=^N,
7216
7217wy75ap|wyse75ap|wy-75ap|wyse-75ap|Wyse WY-75 Applications and Cursor keypad,
7218	is2=\E[1;24r\E[?10;3l\E[?1;25h\E[4l\E[m\E(B\E=,
7219	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
7220	khome=\EOH, rmkx=\E[?1l\E>$<10/>, smkx=\E[?1h\E=$<10/>,
7221	use=wy75,
7222
7223# From: Eric Freudenthal <freudent@eric.ultra.nyu.edu>
7224wy100q|Wyse 100 for Quotron,
7225	OTbs,
7226	cols#80, lines#24, xmc#1,
7227	cbt=\EI, clear=^Z, cub1=^H, cud1=^J, cuf1=^L,
7228	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7229	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, invis@,
7230	is2=\E`\:\0\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=^J,
7231	kcuf1=^L, kcuu1=^K, ri=\Ej, rmir=\Er, smir=\Eq, use=adm+sgr,
7232
7233#### Kermit terminal emulations
7234#
7235# Obsolete Kermit versions may be listed in the section describing obsolete
7236# non-ANSI terminal emulators later in the file.
7237#
7238
7239# KERMIT standard all versions.
7240# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
7241# (kermit: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
7242# From: greg small <gts@populi.berkeley.edu> 9-25-84
7243kermit|standard kermit,
7244	OTbs,
7245	cols#80, lines#24,
7246	clear=\EE, cub1=^H, cuf1=\EC,
7247	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
7248	el=\EK, home=\EH, is2=K0 Standard Kermit  9-25-84\n,
7249	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
7250kermit-am|standard kermit plus auto-margin,
7251	am,
7252	is2=K1 Standard Kermit plus Automatic Margins\n,
7253	use=kermit,
7254# IBMPC Kermit 1.2.
7255# Bugs: <ed>, <el>: do not work except at beginning of line!  <clear> does
7256# not work, but fake with :cl=\EH\EJ (since :cd=\EJ: works at beginning of
7257# line).
7258# From: greg small <gts@populi.berkeley.edu> 8-30-84
7259pckermit|pckermit12|UCB IBMPC Kermit 1.2,
7260	am,
7261	lines#25,
7262	clear=\EH\EJ, ed@, el@,
7263	is2=K2 UCB IBMPC Kermit 1.2  8-30-84\n, use=kermit,
7264# IBMPC Kermit 1.20
7265# Cannot use line 25, now acts funny like ansi special scrolling region.
7266# Initialization must escape from that region by cursor position to line 24.
7267# Cannot use character insert because 1.20 goes crazy if insert at col 80.
7268# Does not use :am: because autowrap is lost when kermit dropped and restarted.
7269# From: greg small <gts@populi.berkeley.edu> 12-19-84
7270pckermit120|UCB IBMPC Kermit 1.20,
7271	it#8, lines#24,
7272	cud1=\EB, cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I,
7273	il1=\EL,
7274	is2=\EO\Eq\EJ\EY7 K3 UCB IBMPC Kermit 1.20  12-19-84\n,
7275	rmir@, rmso=\Eq, smir@, smso=\Ep, use=kermit,
7276# MS-DOS Kermit 2.27 for the IBMPC
7277# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
7278# Cannot use line 25, now acts funny like ansi special scrolling region.
7279# Initialization must escape from that region by cursor position to line 24.
7280# Does not use am: because autowrap is lost when kermit dropped and restarted.
7281# Reverse video for standout like H19.
7282# (msk227: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
7283# From: greg small <gts@populi.berkeley.edu> 3-17-85
7284msk227|mskermit227|MS-DOS Kermit 2.27 for the IBMPC,
7285	OTbs, am@,
7286	cols#80, it#8, lines#24,
7287	clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
7288	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
7289	cvvis=\EO\Eq\EG\EwK4, dch1=\EN, dl1=\EM, ed=\EJ, el=\EK,
7290	home=\EH, ht=^I, il1=\EL,
7291	is2=\EO\Eq\EG\Ew\EJ\EY7 K4 MS Kermit 2.27 for the IBMPC 3-17-85\n,
7292	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rc=\Ek,
7293	rmir=\EO, rmso=\Eq, sc=\Ej, smir=\E@, smso=\Ep,
7294# MS-DOS Kermit 2.27 with automatic margins
7295# From:	greg small <gts@populi.berkeley.edu> 3-17-85
7296msk227am|mskermit227am|UCB MS-DOS Kermit 2.27 with automatic margins,
7297	am,
7298	cvvis=\EO\Eq\EG\EvK5,
7299	is2=\EO\Eq\EG\Ev\EJ\EY7 K5 MS Kermit 2.27 +automatic margins 3-17-85\n,
7300	use=msk227,
7301# MS-DOS Kermit 2.27 UCB 227.14 for the IBM PC
7302# Automatic margins now default.  Use ansi <sgr> for highlights.
7303# Define function keys.
7304# (msk22714: removed obsolete ":kn#10:" -- esr)
7305# From: greg small <gts@populi.berkeley.edu> 3-17-85
7306msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC,
7307	am,
7308	bold=\E[1m, cvvis=\EO\Eq\EG\EvK6,
7309	is2=\EO\Eq\EG\Ev\EJ\EY7 K6 MS Kermit 2.27 UCB 227.14 IBM PC 3-17-85\n,
7310	kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6,
7311	kf7=\E7, kf8=\E8, kf9=\E9, rev=\E[7m, rmso=\E[m, rmul=\E[m,
7312	sgr0=\E[m, smso=\E[1m, smul=\E[4m, use=mskermit227,
7313# This was designed for a VT320 emulator, but it is probably a good start
7314# at support for the VT320 itself.
7315# Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
7316# (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
7317vt320-k3|MS-Kermit 3.00's vt320 emulation,
7318	am, eslok, hs, km, mir, msgr, xenl,
7319	cols#80, it#8, lines#49, pb#9600, vt#3,
7320	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7321	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
7322	clear=\E[H\E[J, cmdch=\E, cnorm=\E[?25h, cr=^M,
7323	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7324	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7325	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7326	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
7327	dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
7328	flash=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l,
7329	fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
7330	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
7331	is2=\E>\E F\E[?1l\E[?7h\E[r\E[2$~, kbs=^H, kcub1=\EOD,
7332	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~, kf0=\E[21~,
7333	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7334	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~,
7335	kpp=\E[5~, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, nel=^M^J, rc=\E8,
7336	rev=\E[7m, ri=\EM, rin=\E[%p1%dL, rmacs=\E(B, rmam=\E[?7l,
7337	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
7338	rs1=\E(B\E)B\E>\E F\E[4;20l\E[12h\E[?1;5;6;38;42l\E[?7;25h\E[4i\E[?4i\E[m\E[r\E[2$~,
7339	sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
7340	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
7341	tsl=\E[1$}\r\E[K, vpa=\E[%i%p1%dd,
7342# From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
7343# ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
7344# (I removed a bogus boolean :mo: and added <msgr>, <smam>, <rmam> -- esr)
7345vt320-k311|dec vt320 series as defined by kermit 3.11,
7346	am, eslok, hs, mir, msgr, xenl, xon,
7347	cols#80, it#8, lines#24, vt#3,
7348	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7349	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
7350	clear=\E[;H\E[2J, cnorm=\E[?25h, cr=^M,
7351	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7352	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7353	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7354	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
7355	dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
7356	flash=\E[?5h\E[?5l, fsl=\E[$}, home=\E[H, ht=^I, hts=\EH,
7357	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L$<3/>, ind=\ED,
7358	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
7359	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
7360	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7361	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
7362	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
7363	rf=/usr/share/tabset/vt100, ri=\EM, rmacs=^O,
7364	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
7365	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
7366	smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
7367	smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
7368
7369######## NON-ANSI TERMINAL EMULATIONS
7370#
7371
7372#### Avatar
7373#
7374# These entries attempt to describe Avatar, a terminal emulation used with
7375# MS-DOS bulletin-board systems.  It was designed to give ANSI-like
7376# capabilities, but with cheaper (shorter) control sequences.  Messy design,
7377# excessively dependent on PC idiosyncracies, but apparently rather popular
7378# in the BBS world.
7379#
7380# No color support.  Avatar doesn't fit either of the Tektronix or HP color
7381# models that terminfo knows about.  An Avatar color attribute is the
7382# low 7 bits of the IBM-PC display-memory attribute.  Bletch.
7383#
7384# I wrote these entries while looking at the Avatar spec.  I don't have
7385# the facilities to test them.  Let me know if they work, or don't.
7386#
7387# Avatar escapes not used by these entries (because maybe you're smarter
7388# and more motivated than I am and can figure out how to wrap terminfo
7389# around some of them, and because they are weird enough to be funny):
7390#				level 0:
7391# ^L		-- clear window/reset current attribute to default
7392# ^V^A%p1%c	-- set current color attribute, parameter decodes as follows:
7393#
7394#      bit:         6   5   4   3   2   1   0
7395#                   |       |   |   |       |
7396#                   +---+---+   |   +---+---+
7397#                       |       |       |
7398#                       |       |  foreground color
7399#                       |  foreground intensity
7400#                  background color
7401#				level 0+:
7402# ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) up by p1 lines
7403# ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) down by p1 lines
7404# ^V^L%p1%c%p2%c%p3%c		-- clear p2 lines and p3 cols w/attr %p1
7405# ^V^M%p1%c%p2%c%p3%c%p4%c	-- fill p3 lines & p4 cols w/char p2+attr %p1
7406# (^V^L and ^V^M set the current attribute as a side-effect.)
7407# ^V ^Y <a> [...] <c>	-- repeat pattern. <a> specifies the number of bytes
7408#			   in the pattern, <c> the number of times the pattern
7409#		  	   should be repeated. If either value is 0, no-op.
7410#			   The pattern can contain Avatar console codes,
7411#			   including other ^V ^Y patterns.
7412#				level 1:
7413# ^V^O		-- clockwise mode on; turn print direction right each time you
7414#		   hit a window edge (yes, really).  Turned off by CR
7415# ^V^P		-- no-op
7416# ^V^Q%c	-- query the driver
7417# ^V^R		-- driver reset
7418# ^V^S		-- Sound tone (PC-specific)
7419# ^V^T			-- change highlight at current cursor poition to %c
7420# ^V^U%p1%c%p2%c	-- highlight window <a> with attribute <b>
7421# ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
7422#			-- define window
7423#
7424# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7425# (The <blink>/<bold>/<rev>/<smacs>/<smul>/<smso> capabilities exist only to
7426# tell ncurses that the corresponding highlights exist; it should use <sgr>,
7427# which is the only method that will actually work for multiple highlights.)
7428avatar0|avatar terminal emulator level 0,
7429	am, bce, msgr,
7430	cols#80, it#8, lines#25,
7431	blink=^A^V\177, bold=^V^A^P, cr=^M, cub1=^V^E, cud1=^V^D,
7432	cuf1=^V^F, cup=\026\010%p1%c%p2%c, cuu1=^V^C, el=^V^G,
7433	ind=^J, invis=^V^A\0, rep=\031%p1%c%p2%d, rev=^A^Vp,
7434	rs2=^L,
7435	sgr=\026\001%{0}%?%p1%t%{112}%|%;%?%p2%t%{1}%|%;%?%p3%t%{112}%|%;%?%p4%t{128}%|%;%?%p6%t%{16}%|%;,
7436	sgr0=^V^A^G, smacs=, smso=^A^Vp, smul=^V^A, use=klone+acs,
7437# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7438avatar0+|avatar terminal emulator level 0+,
7439	dch1=^V^N, rmir=\026\n\0\0\0\0, smir=^V^I, use=avatar0,
7440# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7441avatar|avatar1|avatar terminal emulator level 1,
7442	civis=^V'^B, cnorm=^V'^A, cvvis=^V^C, dl1=^V-, il1=^V+,
7443	rmam=^V", rmir=^V^P, smam=^V$, use=avatar0+,
7444
7445#### RBcomm
7446#
7447# RBComm is a lean and mean terminal emulator written by the Interrupt List
7448# maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
7449# '90s), especially in the BBS world, and still has some loyal users due to
7450# its very small memory footprint and to a cute macro language.
7451rbcomm|IBM PC with RBcomm and EMACS keybindings,
7452	am, bw, mir, msgr, xenl,
7453	cols#80, it#8, lines#25,
7454	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
7455	clear=^L, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
7456	cub1=^H, cud1=^C, cuf1=^B,
7457	cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^,
7458	cvvis=\E[?25h, dch1=^W, dl=\E[%p1%dM, dl1=^Z,
7459	ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I, il=\E[%p1%dL, il1=^K,
7460	ind=\ED, invis=\E[8m,
7461	is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H,
7462	kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=^M\ED,
7463	rc=\E8, rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=,
7464	rmir=^], rmkx=\E>, rmso=^U, rmul=^U,
7465	rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sc=\E7, sgr0=\E[m,
7466	smcup=, smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T,
7467rbcomm-nam|IBM PC with RBcomm without autowrap,
7468	am@,
7469	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
7470	is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kbs=^H,
7471	kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
7472rbcomm-w|IBM PC with RBcomm in 132 column mode,
7473	cols#132,
7474	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
7475	is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kbs=^H,
7476	kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
7477
7478######## LCD DISPLAYS
7479#
7480
7481#### Matrix Orbital
7482# from: Eric Z. Ayers  (eric@ale.org)
7483#
7484# Matrix Orbital 20x4 LCD display
7485# Command Character is 0xFE (decimal 254, octal 376)
7486#
7487# On this device, cursor addressability isn't possible.  The LCD expects:
7488#      0xfe G <col> <row>
7489#      for cup: %p1 == row and %p2 is column
7490#
7491# This line:
7492#	cup=\376G%p2%c%p1%c
7493# LOOKS like it will work, but sometimes only one of the two numbers is sent.
7494# See the terminfo (5) manpage commented regarding 'Terminals which use "%c"'.
7495#
7496# Alas, there is no cursor upline capability on this display.
7497#
7498# These entries add some 'sanity stuff' to the clear function.  That is, it
7499# does a 'clear' and also turns OFF auto scroll, turns ON Auto Line Wrapping,
7500# and turns off the cursor blinking and stuff like that.
7501#
7502# NOTE: calling 'beep' turns on the backlight (bell)
7503# NOTE: calling 'flash' turns it on and back off (visual bell)
7504#
7505MtxOrb| Generic Matrix Orbital LCD display,
7506	bel=\376B^A, clear=\376X\376C\376R\376K\376T,
7507	cnorm=\376K\376T, cub1=\376L, cuf1=\376M,
7508	flash=\376B\001$<200>\376F, home=\376H,
7509MtxOrb204| 20x4 Matrix Orbital LCD display,
7510	cols#20, lines#4, use=MtxOrb,
7511MtxOrb162| 16x2 Matrix Orbital LCD display,
7512	cols#16, lines#2, use=MtxOrb,
7513# The end
7514
7515######## OLDER TERMINAL TYPES
7516#
7517# This section is devoted to older commercial terminal brands that are now
7518# discontinued, but known to be still in use or represented by emulations.
7519#
7520
7521#### AT&T (att, tty)
7522#
7523# This section also includes Teletype-branded VDTs.
7524#
7525# The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
7526# Boundless Technologies); for details, see the header comment on the ADDS
7527# section.
7528#
7529# These are AT&T's official terminfo entries.  All-caps aliases have been
7530# removed.
7531#
7532att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode,
7533	am, eo, mir, msgr, xon,
7534	cols#80, it#8, lines#24,
7535	bel=^G, clear=\E[H\E[J, cr=^M, cub=\E[%p1%dD, cub1=^H,
7536	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7537	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7538	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
7539	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
7540	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcbt=\E[Z, kclr=\E[J,
7541	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
7542	kdl1=\E[M, kf1=\E[1r, kf10=\E[10r, kf11=\E[11r,
7543	kf12=\E[12r, kf13=\E[13r, kf14=\E[14r, kf15=\E[15r,
7544	kf16=\E[16r, kf2=\E[2r, kf3=\E[3r, kf4=\E[4r, kf5=\E[5r,
7545	kf6=\E[6r, kf7=\E[7r, kf8=\E[8r, kf9=\E[9r, khome=\E[H,
7546	kich1=\E[@, kil1=\E[L, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
7547	rev=\E[7m, rmir=\E[4l, rmso=\E[m, sgr0=\E[m, smir=\E[4h,
7548	smso=\E[7m,
7549att2350|AT&T 2350 Video Information Terminal 80 column mode,
7550	mc0@, mc4@, mc5@, use=att2300,
7551
7552# Must setup RETURN KEY - CR, REC'VD LF - INDEX.
7553# Seems upward compatible with vt100, plus ins/del line/char.
7554# On sgr, the protection parameter is ignored.
7555# No check is made to make sure that only 3 parameters are output.
7556# 	standout= reverse + half-intensity = 3 | 5.
7557# 	bold= reverse + underline = 2 | 3.
7558# note that half-bright blinking doesn't look different from normal blinking.
7559# NOTE:you must program the function keys first, label second!
7560# (att4410: a BSD entry has been seen with the following capabilities:
7561# <is2=\E[?6l>, <kf1=\EOc>, <kf2=\EOd>, <kf3=\EOe>, <kf4=\EOg>,
7562# <kf6=\EOh>, <kf7=\EOi>, <kf8=\EOj>, -- esr)
7563att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
7564	am, hs, mir, msgr, xon,
7565	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
7566	acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7567	bel=^G, blink=\E[5m, bold=\E[2;7m, clear=\E[H\E[J, cr=^M,
7568	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
7569	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dim=\E[2m,
7570	dl1=\E[M, ed=\E[J, el=\E[K, fsl=\E8, home=\E[H, ht=^I,
7571	ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, is1=\E[?3l\E)0,
7572	is3=\E[1;03q   f1           \EOP\E[2;03q   f2           \EOQ\E[3;03q   f3           \EOR\E[4;03q   f4           \EOS\E[5;03q   f5           \EOT\E[6;03q   f6           \EOU\E[7;03q   f7           \EOV\E[8;03q   f8           \EOW,
7573	kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7574	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
7575	kf6=\EOU, kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H,
7576	ll=\E[24H, nel=^M^J,
7577	pfx=\E[%p1%1d;%p2%l%2.2dq   f%p1%1d           %p2%s,
7578	pln=\E[%p1%d;00q%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
7579	rmacs=^O, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
7580	sc=\E7,
7581	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7582	sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
7583	tsl=\E7\E[25;%p1%{1}%+%dH,
7584
7585att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1,
7586	cols#132, wsl#132,
7587	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att5410v1,
7588
7589att4410|att5410|tty5410|AT&T 4410/5410 80 columns - version 2,
7590	OTbs,
7591	pfx=\E[%p1%d;%p2%l%02dq   f%p1%d           %p2%s,
7592	use=att5410v1,
7593
7594att5410-w|att4410-w|4410-w|tty5410-w|5410-w|AT&T 4410/5410 in 132 column mode,
7595	cols#132, wsl#132,
7596	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att4410,
7597
7598# 5410 in terms of a vt100
7599# (v5410: added <rmam>/<smam> based on init string -- esr)
7600v5410|att5410 in terms of a vt100,
7601	am, mir, msgr, xon,
7602	cols#80, it#8, lines#24, vt#3,
7603	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7604	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
7605	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
7606	cub1=^H, cud1=^J, cuf1=\E[C$<2>,
7607	cup=\E[%i%p1%d;%p2%dH$<5>, cuu1=\E[A$<2>, dch1=\E[P,
7608	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
7609	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ich1=\E[@,
7610	il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
7611	kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
7612	kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
7613	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
7614	kf8=\EOl, kf9=\EOw, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
7615	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
7616	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
7617	sc=\E7,
7618	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
7619	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
7620	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
7621
7622#
7623# Teletype Model 5420 -- A souped up 5410, with multiple windows,
7624# even! the 5420 has three modes: scroll, window or page mode
7625# this terminfo should work in scroll or window mode, but doesn't
7626# take advantage of any of the differences between them.
7627#
7628# Has memory below (2 lines!)
7629# 3 pages of memory (plus some spare)
7630# The 5410 sequences for <cup>, <cvvis>, <dch>, <dl>, <ech>, <flash>, <home>,
7631# <hpa>, <hts> would work for these, but these work in both scroll and window
7632# mode... Unset insert character so insert mode works
7633# <is1> sets 80 column mode,
7634# <is2> escape sequence:
7635# 1) turn off all fonts
7636# 2) function keys off, keyboard lock off, control display off,
7637#    insert mode off, erasure mode off,
7638# 3) full duplex, monitor mode off, send graphics off, nl on lf off
7639# 4) reset origin mode
7640# 5) set line wraparound
7641# 6) exit erasure mode, positional attribute mode, and erasure extent mode
7642# 7) clear margins
7643# 8) program ENTER to transmit ^J,
7644# We use \212 to program the ^J because a bare ^J will get translated by
7645# UNIX into a CR/LF. The enter key is needed for AT&T uOMS.
7646#     1      2            3              4     5     6    7  8
7647# <is3> set screen color to black,
7648# No representation in terminfo for the delete word key: kdw1=\Ed
7649# Key capabilities assume the power-up send sequence...
7650# This <rmcup> is not strictly necessary, but it helps maximize
7651# memory usefulness: <rmcup=\Ez>,
7652# Alternate sgr0:	<sgr0=\E[m\EW^O>,
7653# 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%;>,
7654# smkx programs the SYS PF keys to send a set sequence.
7655# It also sets up labels f1, f2, ..., f8, and sends edit keys.
7656# This string causes them to send the strings <kf1>-<kf8>
7657# when pressed in SYS PF mode.
7658# (att4415: I added <rmam>/<smam> based on the init string -- esr)
7659att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
7660	OTbs, db, mir, xon,
7661	lh#2, lm#78, lw#8, nlab#8, wsl#55,
7662	cbt=\E[Z, clear=\E[x\E[J, cnorm=\E[11;0j, cub=\E[%p1%dD,
7663	cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dx,
7664	cuu=\E[%p1%dA, cvvis=\E[11;1j, dch=\E[%p1%dP,
7665	dl=\E[%p1%dM, ech=\E[%p1%ds\E[%p1%dD,
7666	flash=\E[?5h$<200>\E[?5l, home=\E[x,
7667	hpa=\E[%p1%{1}%+%dG, hts=\EH, ich=\E[%p1%d@, ich1@,
7668	il=\E[%p1%dL, indn=\E[%p1%dE, is1=\E[?3l$<100>,
7669	is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h\E[4i\Ex\E[21;1j\212,
7670	is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
7671	kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc, kf2=\EOd,
7672	kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
7673	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
7674	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
7675	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?2i, mc4=\E[?9i,
7676	mc5=\E[?4i, mrcup=\E[%i%p1%d;%p2%dt,
7677	pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s,
7678	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV,
7679	rin=\E[%p1%dF, rmam=\E[?7l, rmir=\E[4l,
7680	rmkx=\E[19;0j\E[21;1j\212, rmln=\E|,
7681	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7682	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h,
7683	smkx=\E[19;1j\E[21;4j\Eent, smln=\E~, tbc=\E[3g,
7684	tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
7685	use=att4410,
7686
7687att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols,
7688	cols#132, lm#54, wsl#97,
7689	is1=\E[?3h$<100>, use=att4415,
7690
7691att4415-rv|tty5420-rv|att5420-rv|AT&T 4415/5420 80 cols/rv,
7692	flash=\E[?5l$<200>\E[?5h, is3=\E[?5h, use=att4415,
7693
7694att4415-w-rv|tty5420-w-rv|att5420-w-rv|AT&T 4415/5420 132 cols/rv,
7695	cols#132, lm#54, wsl#97,
7696	flash=\E[?5l$<200>\E[?5h, is1=\E[?3h$<100>, is3=\E[?5h,
7697	use=att4415,
7698
7699# Note that this mode permits programming USER PF KEYS and labels
7700# However, when you program user pf labels you have to reselect
7701# user pf keys to make them appear!
7702att4415+nl|tty5420+nl|att5420+nl|generic AT&T 4415/5420 changes for not changing labels,
7703	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
7704	pfx=\E[%p1%d;%p2%l%02d;0;1q   F%p1%d           %p2%s,
7705	pln=\E[%p1%d;0;0;1q%p2%:-16.16s,
7706
7707att4415-nl|tty5420-nl|att5420-nl|AT&T 4415/5420 without changing labels,
7708	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7709	use=att4415,
7710
7711att4415-rv-nl|tty5420-rv-nl|att5420-rv-nl|AT&T 4415/5420 reverse video without changing labels,
7712	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7713	use=att4415-rv,
7714
7715att4415-w-nl|tty5420-w-nl|att5420-w-nl|AT&T 4415/5420 132 cols without changing labels,
7716	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7717	use=att4415-w,
7718
7719att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse without changing labels,
7720	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7721	use=att4415-w-rv,
7722
7723att5420_2|AT&T 5420 model 2 80 cols,
7724	am, db, hs, mir, msgr, xon,
7725	cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
7726	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7727	blink=\E[5m, cbt=\E[1Z, clear=\EH\EJ, cnorm=\E[11;0j,
7728	cr=\EG, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7729	cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
7730	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cvvis=\E[11;1j,
7731	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
7732	dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[0J, el=\E[0K,
7733	el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
7734	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
7735	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dE,
7736	invis=\E[8m,
7737	is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;0j\E[6;0j\E[7;0j\E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j\E[29;0j\E[1;24r,
7738	kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D,
7739	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
7740	kel=\E[2K, kend=\Ez, kent=^J, kf1=\EOc, kf2=\EOd, kf3=\EOe,
7741	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, khome=\E[H,
7742	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
7743	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
7744	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?;2i, mc4=\E[4i,
7745	mc5=\E[5i, mrcup=\E[%i%p1%d;%p2%dt, nel=^M^J,
7746	pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s\E~,
7747	pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV, rc=\E8,
7748	rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmkx=\E[19;0j,
7749	rmln=\E|, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
7750	sc=\E7,
7751	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7752	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1j, smln=\E~,
7753	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
7754	tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
7755att5420_2-w|AT&T 5420 model 2 in 132 column mode,
7756	cols#132,
7757	is1=\E[0;23r\Ex\Ey\E[2;0j\E[3;3j\E[4;0j\E[5;1j\E[6;0j\E[7;0j\E[8;0j\E[9;1j\E[10;0j\E[15;0j\E[16;1j\E[19;0j\E[20;1j\E[29;0j\E[1;24r,
7758	use=att5420_2,
7759
7760att4418|att5418|AT&T 5418 80 cols,
7761	am, xon,
7762	cols#80, lines#24,
7763	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7764	bel=^G, blink=\E[5m, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD,
7765	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
7766	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
7767	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m,
7768	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H,
7769	ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=^J,
7770	is1=\E[?3l, is2=\E)0\E?6l\E?5l, kclr=\E[%%, kcub1=\E@,
7771	kcud1=\EU, kcuf1=\EA, kcuu1=\ES, kent=\E[, kf1=\E[h,
7772	kf10=\E[m, kf11=\E[n, kf12=\E[o, kf13=\E[H, kf14=\E[I,
7773	kf15=\E[J, kf18=\E[K, kf19=\E[L, kf2=\E[i, kf20=\E[E,
7774	kf21=\E[_, kf22=\E[M, kf23=\E[N, kf24=\E[O, kf3=\E[j,
7775	kf6=\E[k, kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec, rc=\E8,
7776	rev=\E[7m, rmacs=^O, rmso=\E[m, rmul=\E[m, sc=\E7,
7777	sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
7778att4418-w|att5418-w|AT&T 5418 132 cols,
7779	cols#132,
7780	is1=\E[?3h, use=att5418,
7781
7782att4420|tty4420|teletype 4420,
7783	OTbs, da, db, eo, msgr, ul, xon,
7784	cols#80, lines#24, lm#72,
7785	bel=^G, clear=\EH\EJ, cr=\EG, cub1=\ED, cud1=\EB, cuf1=\EC,
7786	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
7787	dl1=\EM, ed=\EJ, el=\Ez, home=\EH, il1=\EL, ind=\EH\EM\EY7\s,
7788	kcbt=\EO, kclr=\EJ, kcub1=^H, kcud1=\EB, kcuf1=\EC,
7789	kcuu1=\EA, kdch1=\EP, kdl1=\EM, kf0=\EU, kf3=\E@, khome=\EH,
7790	kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
7791	lf0=segment advance, lf3=cursor tab, rmdc@, rmso=\E~,
7792	rmul=\EZ, smdc@, smso=\E}, smul=\E\\,
7793
7794#  The following is a terminfo entry for the Teletype 4424
7795#  asynchronous keyboard-display terminal.  It supports
7796#  the vi editor.  The terminal must be set up as follows,
7797#
7798# 	HIGHLIGHT DEFINITION	3-TONE
7799# 	DISPLAY FUNCTION	GROUP III
7800#
7801#  The second entry below provides limited (a la adm3a)
7802#  operation under GROUP II.
7803#
7804#  This must be used with DISPLAY FUNCTION GROUP I or III
7805# 	and HIGHLIGHT DEFINITION 3-TONE
7806# The terminal has either bold or blink, depending on options
7807#
7808# (att4424: commented out <smcup>=\E[1m, we don't need bright locked on -- esr)
7809att4424|tty4424|teletype 4424,
7810	OTbs, am, xon,
7811	cols#80, lines#24,
7812	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7813	bel=^G, blink=\E3, bold=\E3, cbt=\EO, clear=\E[H\E[2J, cr=^M,
7814	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7815	cud=\E[%p1%dB, cud1=\EB, cuf=\E[%p1%dC, cuf1=\EC,
7816	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EA,
7817	dch=\E[%p1%dP, dch1=\EP, dim=\EW, dl=\E[%p1%dM, dl1=\EM,
7818	ed=\EJ, el=\Ez, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
7819	ich1=\E\^, il=\E[%p1%dL, il1=\EL, ind=^J, is2=\E[20l\E[?7h,
7820	kbs=^H, kclr=\EJ, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7821	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
7822	khome=\E[H, nel=\EE, rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~,
7823	rmul=\EZ,
7824	sgr=\E[%?%p1%t7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p6%p4%|%t;5%;%?%p5%t;0%;m,
7825	sgr0=\EX\E~\EZ\E4\E(B, smacs=\E(0, smso=\E}, smul=\E\\,
7826	tbc=\EF,
7827
7828att4424-1|tty4424-1|teletype 4424 in display function group I,
7829	kclr@, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome@,
7830	use=att4424,
7831
7832# This entry is not one of AT&T's official ones, it was translated from the
7833# 4.4BSD termcap file.  The highlight strings are different from att4424.
7834# I have no idea why this is -- older firmware version, maybe?
7835# The following two lines are the comment originally attached to the entry:
7836# This entry appears to avoid the top line - I have no idea why.
7837# From: jwb Wed Mar 31 13:25:09 1982 remote from ihuxp
7838att4424m|tty4424m|teletype 4424M,
7839	am, da, db, mir,
7840	cols#80, it#8, lines#23,
7841	bel=^G, clear=\E[2;H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
7842	cup=\E[%i%p1%2d;%p2%2dH\E[B, cuu1=\E[A, dch1=\EP,
7843	dl1=\EM, el=\E[K, ht=^I, ich1=\E\^, il1=\EL, ind=^J, ip=$<2/>,
7844	is2=\E[m\E[2;24r, kbs=^H, kcub1=\E[D, kcud1=\E[B,
7845	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
7846	kf4=\EOS, khome=\E[H, nel=^M^J, ri=\ET, rmso=\E[m, rmul=\E[m,
7847	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
7848
7849# The Teletype 5425 is really version 2 of the Teletype 5420. It
7850# is quite similar, except for some minor differences. No page
7851# mode, for example, so all of the <cup> sequences used above have
7852# to change back to what's being used for the 5410. Many of the
7853# option settings have changed their numbering as well.
7854#
7855# This has been tested on a preliminary model.
7856#
7857# (att5425: added <rmam>/<smam> based on the init string -- esr)
7858att5425|tty5425|att4425|AT&T 4425/5425,
7859	am, da, db, hs, mir, msgr, xenl, xon,
7860	cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
7861	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7862	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
7863	clear=\E[H\E[J, cnorm=\E[12;0j, cr=^M,
7864	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7865	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7866	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7867	cvvis=\E[12;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
7868	dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[J,
7869	el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
7870	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
7871	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
7872	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dE,
7873	invis=\E[8m, is1=\E<\E[?3l$<100>,
7874	is2=\E[m\017\E[1;2;3;4;6l\E[12;13;14;20l\E[?6;97;99l\E[?7h\E[4i\Ex\E[25;1j\212,
7875	is3=\E[?5l, kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[J,
7876	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
7877	kdl1=\E[M, kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc,
7878	kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi,
7879	kf8=\EOj, khome=\E[H, kich1=\E[4h, kil1=\E[L, kind=\E[T,
7880	kri=\E[S, ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i,
7881	nel=^M^J,
7882	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
7883	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, rc=\E8,
7884	rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmam=\E[?7l,
7885	rmir=\E[4l, rmkx=\E[21;0j\E[25;1j\212, rmln=\E|,
7886	rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7,
7887	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7888	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
7889	smkx=\E[21;1j\E[25;4j\Eent\E~, smln=\E~, smso=\E[7m,
7890	smul=\E[4m, tbc=\E[3g, tsl=\E7\E[25;%p1%{8}%+%dH,
7891	vpa=\E[%p1%{1}%+%dd,
7892
7893att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels,
7894	smkx=\E[21;1j\E[25;4j\Eent, use=att4425,
7895
7896att5425-w|att4425-w|tty5425-w|teletype 4425/5425 in 132 column mode,
7897	cols#132, lm#54, wsl#97,
7898	is1=\E[?3h$<100>, use=tty5425,
7899
7900# (att4426: his had bogus capabilities: :ri=\EM:, :ri=\E[1U:.
7901# I also added <rmam>/<smam> -- esr)
7902att4426|tty4426|teletype 4426S,
7903	am, da, db, xon,
7904	cols#80, lines#24, lm#48,
7905	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7906	bel=^G, bold=\E[5m, clear=\E[H\E[2J\E[1U\E[H\E[2J\E[1V,
7907	cr=^M, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
7908	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
7909	cuu=\E[%p1%dA, cuu1=\EA, dch=\E[%p1%dP, dch1=\EP,
7910	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[0K, home=\E[H,
7911	hpa=\E[%p1%dG, ht=^I, hts=\E1, ich=\E[%p1%d@, ich1=\E\^,
7912	il=\E[%p1%dL, il1=\EL, ind=^J, indn=\E[%p1%dS,
7913	is1=\Ec\E[?7h, is2=\E[m\E[1;24r, kbs=^H, kcbt=\EO,
7914	kclr=\E[2J, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
7915	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
7916	kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H, ll=\E[24H,
7917	nel=^M^J, rc=\E8, rev=\E[7m, ri=\ET, rin=\E[%p1%dT,
7918	rmacs=\E(B, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
7919	rs2=\Ec\E[?3l\E[2;0y, sc=\E7, sgr0=\E[m\E(B, smacs=\E(0,
7920	smam=\E[?7h, smso=\E[5m, smul=\E[4m, tbc=\E[3g,
7921	vpa=\E[%p1%dd,
7922
7923# Terminfo entry for the AT&T 510 A Personal Terminal
7924# Function keys 9 - 16 are available only after the
7925# screen labeled (soft keys/action blocks) are labeled.  Function key
7926# 9 corresponds to the leftmost touch target on the screen,
7927# function key 16 corresponds to the rightmost.
7928#
7929# This entry is based on one done by Ernie Rice at Summit, NJ and
7930# changed by Anne Gallup, Skokie, IL, ttrdc!anne
7931att510a|bct510a|AT&T 510A Personal Terminal,
7932	am, mir, msgr, xenl, xon,
7933	cols#80, lh#2, lines#24, lw#7, nlab#8,
7934	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
7935	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
7936	civis=\E[11;0|, clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M,
7937	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[1B,
7938	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
7939	cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP,
7940	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J,
7941	el=\E[0K, el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H, ht=^I,
7942	hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E(B\E)1\E[2l,
7943	is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
7944	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
7945	kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
7946	kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
7947	kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
7948	mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, nel=\EE,
7949	pln=\E[%p1%dp%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
7950	rmacs=^O, rmkx=\E[19;0|, rmso=\E[m, rmul=\E[m, sc=\E7,
7951	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;m%?%p9%t\016%e\017%;,
7952	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1|, smso=\E[7m,
7953	smul=\E[4m, tbc=\E[3g,
7954
7955# Terminfo entry for the AT&T 510 D Personal Terminal
7956# Function keys 9 through 16 are accessed by bringing up the
7957# system blocks.
7958# Function key 9 corresponds to the leftmost touch target on the screen,
7959# function key 16 corresponds to the rightmost.
7960#
7961# There are problems with soft key labeling.  These are due to
7962# strangenesses in the native terminal that are impossible to
7963# describe in a terminfo.
7964att510d|bct510d|AT&T 510D Personal Terminal,
7965	am, da, db, mir, msgr, xenl, xon,
7966	cols#80, lh#2, lines#24, lm#48, lw#7, nlab#8,
7967	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
7968	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
7969	clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M, cub=\E[%p1%dD,
7970	cub1=^H, cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC,
7971	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
7972	cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P,
7973	dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K,
7974	el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H,
7975	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
7976	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
7977	invis=\E[8m, is1=\E(B\E)1\E[5;0|, is3=\E[21;1|\212,
7978	kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
7979	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd,
7980	kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi,
7981	kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf,
7982	kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, ll=\E#2,
7983	mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, mgc=\E\:, nel=\EE,
7984	pln=\E[%p1%dp%p2%:-16s, rc=\E8,
7985	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
7986	rin=\E[%p1%dT, rmacs=^O, rmir=\E[4l, rmkx=\E[19;0|,
7987	rmln=\E<, rmso=\E[m, rmul=\E[m, rmxon=\E[29;1|,
7988	rs2=\E[5;0|, sc=\E7,
7989	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
7990	sgr0=\E[m\017, smacs=^N, smgl=\E4, smgr=\E5, smir=\E[4h,
7991	smkx=\E[19;1|, smln=\E?, smso=\E[7m, smul=\E[4m,
7992	smxon=\E[29;0|, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
7993
7994# (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
7995att500|att513|AT&T 513 using page mode,
7996	am, chts, mir, msgr, xenl, xon,
7997	cols#80, lh#2, lines#24, lw#8, nlab#8,
7998	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
7999	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
8000	clear=\E[H\E[J, cnorm=\E[11;0|, cr=^M,
8001	csr=%i\E[%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8002	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
8003	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8004	cvvis=\E[11;1|, dch=\E[%p1%dP, dch1=\E[P$<1>, dim=\E[2m,
8005	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8006	enacs=\E(B\E)1, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
8007	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
8008	indn=\E[%p1%dE, invis=\E[8m,
8009	is1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l,
8010	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8011	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8012	kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK,
8013	kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ,
8014	kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY,
8015	kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kbs=^H, kcan=\EOw,
8016	kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd,
8017	kcrt=\EOn, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8018	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\Eent,
8019	kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
8020	kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm,
8021	khome=\E[H, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
8022	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
8023	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
8024	kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB,
8025	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, ll=\E#2,
8026	mc0=\E[?98l\E[0i, mc4=\E[?98l\E[?8i, mc5=\E[?98l\E[?4i,
8027	nel=\EE,
8028	pfkey=\E[%p1%d;%p2%l%d;3;0p   F%p1%d           %p2%s,
8029	pfloc=\E[%p1%d;%p2%l%d;2;0p   F%p1%d           %p2%s,
8030	pfx=\E[%p1%d;%p2%l%d;1;0p   F%p1%d           %p2%s,
8031	pln=\E[%p1%dp%p2%:-16s, rc=\E8,
8032	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
8033	rin=\E[%p1%dF, rmacs=^O, rmir=\E[4l,
8034	rmkx=\E[19;0|\E[21;1|\212, rmln=\E<, rmso=\E[m,
8035	rmul=\E[m,
8036	rs1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l\E[2;0|\E[6;1|\E[8;0|\E[19;0|\E[1{\E[?99l,
8037	rs2=\E[5;0|, sc=\E7,
8038	sgr=\E[0%?%p1%p5%|%t;2%;%?%p2%p6%|%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8039	sgr0=\E[m\017, smacs=^N, smir=\E[4h,
8040	smkx=\E[19;1|\E[21;4|\Eent, smln=\E?, smso=\E[7m,
8041	smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
8042
8043# 01-07-88
8044# printer must be set to EMUL ANSI to accept ESC codes
8045# <cuu1> stops at top margin
8046# <is1> sets cpi 10,lpi 6,form 66,left 1,right 132,top 1,bottom 66,font
8047#	and alt font ascii,wrap on,tabs cleared
8048# <is2> disables newline on LF,Emphasized off
8049# The <u0> capability sets form length
8050att5310|att5320|AT&T Model 53210 or 5320 matrix printer,
8051	xhpa, xvpa,
8052	bufsz#8192, cols#132, cps#120, it#8, lines#66, orc#10,
8053	orhi#100, orl#12, orvi#72,
8054	cpi=%?%p1%{10}%=%t\E[w%e%p1%{12}%=%t\E[2w%e%p1%{5}%=%t\E[5w%e%p1%{13}%=%p1%{14}%=%O%t\E[3w%e%p1%{16}%=%p1%{17}%=%O%t\E[4w%e%p1%{6}%=%t\E[6w%e%p1%{7}%=%t\E[7w%e%p1%{8}%=%t\E[8w%;,
8055	cr=^M,
8056	csnm=%?%p1%{0}%=%tusascii%e%p1%{1}%=%tenglish%e%p1%{2}%=%tfinnish%e%p1%{3}%=%tjapanese%e%p1%{4}%=%tnorwegian%e%p1%{5}%=%tswedish%e%p1%{6}%=%tgermanic%e%p1%{7}%=%tfrench%e%p1%{8}%=%tcanadian_french%e%p1%{9}%=%titalian%e%p1%{10}%=%tspanish%e%p1%{11}%=%tline%e%p1%{12}%=%tsecurity%e%p1%{13}%=%tebcdic%e%p1%{14}%=%tapl%e%p1%{15}%=%tmosaic%;,
8057	cud=\E[%p1%de, cud1=^J, cuf=\E[%p1%da, cuf1=\s, cuu1=\EM,
8058	ff=^L, hpa=\E[%p1%d`, ht=^I, is1=\Ec, is2=\E[20l\r,
8059	lpi=%?%p1%{2}%=%t\E[4z%e%p1%{3}%=%t\E[5z%e%p1%{4}%=%t\E[6z%e%p1%{6}%=%t\E[z%e%p1%{8}%=%t\E[2z%e%p1%{12}%=%t\E[3z%;,
8060	rshm=\E[m,
8061	scs=%?%p1%{0}%=%t\E(B%e%p1%{1}%=%t\E(A%e%p1%{2}%=%t\E(C%e%p1%{3}%=%t\E(D%e%p1%{4}%=%t\E(E%e%p1%{5}%=%t\E(H%e%p1%{6}%=%t\E(K%e%p1%{7}%=%t\E(R%e%p1%{8}%=%t\E(Q%e%p1%{9}%=%t\E(Y%e%p1%{10}%=%t\E(Z%e%p1%{11}%=%t\E(0%e%p1%{12}%=%t\E(1%e%p1%{13}%=%t\E(3%e%p1%{14}%=%t\E(8%e%p1%{15}%=%t\E(}%;,
8062	smgbp=\E[;%p1%dr, smglp=\E[%{1}%p1%+%ds,
8063	smgrp=\E[;%{1}%p1%+%ds, smgtp=\E[%p1%dr, sshm=\E[5m,
8064	u0=\E[%p1%dt, vpa=\E[%p1%dd,
8065
8066# Teletype 5620, firmware version 1.1 (8;7;3) or earlier from BRL
8067# The following SET-UP modes are assumed for normal operation:
8068#	CR_DEF=CR	NL_DEF=INDEX	DUPLEX=FULL
8069# Other SET-UP modes may be set for operator convenience or communication
8070# requirements.  This termcap description is for the Resident Terminal Mode.
8071# No delays specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8072# The BRL entry also said: UNSAFE :ll=\E[70H:
8073att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
8074	am, xon,
8075	cols#88, it#8, lines#70, vt#3,
8076	bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
8077	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
8078	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
8079	home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
8080	il1=\E[L, ind=^J, indn=\E[%p1%dS, kbs=^H, kclr=\E[2J,
8081	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
8082	kll=\E[70;1H, nel=^M^J, rc=\E8, ri=\E[T, rin=\E[%p1%dT,
8083	rs1=\Ec, sc=\E7,
8084
8085# 5620 terminfo  (2.0 or later ROMS with char attributes)
8086# The following SET-UP modes are assumed for normal operation:
8087#	DUPLEX=FULL	GEN_FLOW=ON	NEWLINE=INDEX	RETURN=CR
8088# Other SET-UP modes may be set for operator convenience or communication
8089# requirements.  This termcap description is for Resident Terminal Mode.  No
8090# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8091# assumptions: <ind> (scroll forward one line) is only done at screen bottom
8092# Be aware that older versions of the dmd have a firmware bug that affects
8093# parameter defaulting; for this terminal, the 0 in \E[0m is not optional.
8094# <msgr> is from an otherwise inferior BRL for this terminal.  That entry
8095# also has <ll>=\E[70H commented out and marked unsafe.
8096# For more, see the 5620 FAQ maintained by David Breneman <daveb@dgtl.com>.
8097att5620|dmd|tty5620|ttydmd|5620|5620 terminal 88 columns,
8098	OTbs, am, msgr, npc, xon,
8099	cols#88, it#8, lines#70,
8100	bel=^G, bold=\E[2m, clear=\E[H\E[J, cr=^M, cub1=^H,
8101	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
8102	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
8103	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich=\E[%p1%d@,
8104	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
8105	indn=\E[%p1%dS, kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
8106	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kll=\E[70;1H, nel=^J,
8107	pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\E[T,
8108	rin=\E[%p1%dT, rmso=\E[0m, rmul=\E[0m, rs1=\Ec, sc=\E7,
8109	sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
8110att5620-24|tty5620-24|dmd-24|teletype dmd 5620 in a 24x80 layer,
8111	lines#24, use=att5620,
8112att5620-34|tty5620-34|dmd-34|teletype dmd 5620 in a 34x80 layer,
8113	lines#34, use=att5620,
8114# 5620 layer running the "S" system's downloaded graphics handler:
8115att5620-s|tty5620-s|layer|vitty|5620 S layer,
8116	OTbs, OTpt, am,
8117	cols#80, it#8, lines#72,
8118	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
8119	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=^K, dl1=\ED,
8120	el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=^J, kbs=^H, kclr=\E[2J,
8121	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
8122	kll=\E[70;1H,
8123
8124# Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
8125#
8126# Entries for <kf29> thru <kf46> refer to the alternate keypad mode
8127# keys:  = * / + 7 8 9 - 4 5 6 , 1 2 3 0 . ENTER
8128att605|AT&T 605 80 column 102key keyboard,
8129	am, eo, xon,
8130	cols#80, lines#24, lw#8, nlab#8, wsl#80,
8131	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8132	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
8133	cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
8134	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
8135	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
8136	el=\E[K, el1=\E[1K, fsl=\E8, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
8137	il1=\E[L, ind=^J, invis=\E[8m,
8138	is1=\E[8;0|\E[?\E[13;20l\E[?\E[12h, is2=\E[m\017,
8139	kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z, kclr=\E[2J,
8140	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
8141	kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, kf11=\ENq,
8142	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
8143	kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
8144	kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
8145	kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
8146	kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
8147	kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
8148	kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
8149	kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
8150	kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H, kich1=\E[@,
8151	kil1=\E[L, kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H,
8152	mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8153	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8154	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8155	rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
8156	rs2=\Ec\E[?3l, sc=\E7, sgr0=\E[m\017, smacs=\E)0\016,
8157	smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
8158	tsl=\E7\E[25;%i%p1%dx,
8159att605-pc|ATT 605 in pc term mode,
8160	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
8161	cbt=\E[Z, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
8162	dch1=\E[P, dl1=\E[M, ich1=\E[@, il1=\E[L, kcbt=\E[Z,
8163	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
8164	kdl1=\E[M, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
8165	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
8166	kf9=\E[U, khome=\E[H, kich1=\E[@, knp=\E[G, kpp=\E[I,
8167	rmsc=400\E[50;0|, smsc=250\E[?11l\E[50;1|, xoffc=g,
8168	xonc=e, use=att605,
8169att605-w|AT&T 605-w 132 column 102 key keyboard,
8170	cols#132, wsl#132,
8171	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0,
8172	use=att605,
8173# (att610: I added <rmam>/<smam> based on the init string.  I also
8174# added <indn> and <rin> because the BSD file says the att615s have them,
8175# and the 615 is like a 610 with a big keyboard, and most of their other
8176# smart terminals support the same sequence -- esr)
8177att610|AT&T 610; 80 column; 98key keyboard,
8178	am, eslok, hs, mir, msgr, xenl, xon,
8179	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8180	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8181	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8182	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8183	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8184	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8185	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8186	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8187	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8188	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
8189	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
8190	indn=\E[%p1%dS, invis=\E[8m,
8191	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0,
8192	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
8193	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8194	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8195	kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
8196	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8197	kind=\E[S, kri=\E[T, ll=\E[24H, mc4=\E[?4i, mc5=\E[?5i,
8198	nel=\EE,
8199	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8200	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8201	ri=\EM, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
8202	rmln=\E[2p, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l, sc=\E7,
8203	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8204	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
8205	smln=\E[p, smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
8206att610-w|AT&T 610; 132 column; 98key keyboard,
8207	cols#132, wsl#132,
8208	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8209	use=att610,
8210
8211att610-103k|AT&T 610; 80 column; 103key keyboard,
8212	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8213	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8214	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
8215	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
8216	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
8217	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
8218	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
8219	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf9@, kfnd=\EOx,
8220	khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi, kmsg=\EOl,
8221	knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V,
8222	kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, kres=\EOq,
8223	krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB, ksav=\EOo,
8224	kslt=\ENI, kspd=\EOp, kund=\EOs, use=att610,
8225att610-103k-w|AT&T 610; 132 column; 103key keyboard,
8226	cols#132, wsl#132,
8227	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8228	use=att610-103k,
8229att615|AT&T 615; 80 column; 98key keyboard,
8230	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8231	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
8232	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
8233	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
8234	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
8235	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8236	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610,
8237att615-w|AT&T 615; 132 column; 98key keyboard,
8238	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8239	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
8240	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
8241	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
8242	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
8243	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8244	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610-w,
8245att615-103k|AT&T 615; 80 column; 103key keyboard,
8246	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k,
8247att615-103k-w|AT&T 615; 132 column; 103key keyboard,
8248	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k-w,
8249# (att620: I added <rmam>/<smam> based on the init string and
8250# <rin>/<indn> from a BSD termcap -- esr)
8251att620|AT&T 620; 80 column; 98key keyboard,
8252	am, eslok, hs, mir, msgr, xenl, xon,
8253	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8254	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8255	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8256	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8257	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8258	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8259	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8260	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8261	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8262	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
8263	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
8264	indn=\E[%p1%dS, invis=\E[8m,
8265	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h,
8266	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H,
8267	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8268	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8269	kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8270	kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH, kf21=\EOI,
8271	kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR,
8272	kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe, kf30=\EOQ,
8273	kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx, kf35=\EOy,
8274	kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv, kf4=\EOf,
8275	kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs, kf44=\EOp,
8276	kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
8277	kf9=\ENo, khome=\E[H, kind=\E[S, kri=\E[T, ll=\E[24H,
8278	mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8279	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8280	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8281	ri=\EM, rin=\E[%p1%dT, rmacs=\E(B\017, rmam=\E[?7l,
8282	rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
8283	rs2=\Ec\E[?3l, sc=\E7,
8284	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8285	sgr0=\E[m\E(B\017, smacs=\E)0\016, smam=\E[?7h,
8286	smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
8287	tsl=\E7\E[25;%i%p1%dx,
8288att620-w|AT&T 620; 132 column; 98key keyboard,
8289	cols#132, wsl#132,
8290	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8291	use=att620,
8292att620-103k|AT&T 620; 80 column; 103key keyboard,
8293	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8294	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8295	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
8296	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
8297	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
8298	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
8299	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
8300	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@,
8301	kf18@, kf19@, kf20@, kf21@, kf22@, kf23@, kf24@, kf25@, kf26@, kf27@,
8302	kf28@, kf29@, kf30@, kf31@, kf32@, kf33@, kf34@, kf35@, kf36@, kf37@,
8303	kf38@, kf39@, kf40@, kf41@, kf42@, kf43@, kf44@, kf45@, kf46@, kf9@,
8304	kfnd=\EOx, khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi,
8305	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
8306	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
8307	kres=\EOq, krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB,
8308	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, use=att620,
8309
8310att620-103k-w|AT&T 620; 132 column; 103key keyboard,
8311	cols#132, wsl#132,
8312	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8313	use=att620-103k,
8314
8315# AT&T (formerly Teletype) 630 Multi-Tasking Graphics terminal
8316# The following SETUP modes are assumed for normal operation:
8317#	Local_Echo=Off	Gen_Flow=On	Return=CR	Received_Newline=LF
8318#	Font_Size=Large		Non-Layers_Window_Cols=80
8319#				Non-Layers_Window_Rows=60
8320# Other SETUP modes may be set for operator convenience or communication
8321# requirements.  Some capabilities assume a printer attached to the Aux EIA
8322# port.  This termcap description is for the Fixed Non-Layers Window.  No
8323# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8324# (att630: added <ich1>, <blink> and <dim> from a BSD termcap file -- esr)
8325att630|AT&T 630 windowing terminal,
8326	OTbs, am, da, db, mir, msgr, npc, xon,
8327	cols#80, it#8, lines#60, lm#0,
8328	bel=^G, blink=\E[5m, cbt=\E[Z, clear=\E[H\E[J, cr=^M,
8329	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
8330	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
8331	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
8332	dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
8333	el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
8334	il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS, is2=\E[m,
8335	kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
8336	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kent=^M,
8337	kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
8338	kf15=\ENu, kf16=\ENv, kf17=\ENw, kf18=\ENx, kf19=\ENy,
8339	kf20=\ENz, kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~,
8340	kf9=\ENo, khome=\E[H, kich1=\E[@, kil1=\E[L, mc4=\E[?4i,
8341	mc5=\E[?5i, nel=^M^J, pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8,
8342	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmir=\E[4l, rmso=\E[m,
8343	rmul=\E[m, rs2=\Ec, sc=\E7,
8344	sgr=\E[0%?%p2%t;4%;%?%p1%p3%|%p4%|%p5%|%t;7%;m,
8345	sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
8346att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
8347	lines#24, use=att630,
8348
8349# This is the att700 entry for 700 native emulation of the AT&T 700
8350# terminal.  Comments are relative to changes from the 605V2 entry and
8351# att730 on which the entry is based.  Comments show the terminfo
8352# capability name, termcap name, and description.
8353#
8354# Here is what's going onm in the init string:
8355#	ESC [ 50;4|	set 700 native mode (really is 605)
8356# x	ESC [ 56;ps| 	set lines to 24: ps=0; 40: ps=1 (plus status line)
8357#	ESC [ 53;0|	set GenFlow to Xon/Xoff
8358#	ESC [ 8 ;0|	set CR on NL
8359# x	ESC [ ? 3 l/h	set workspace: 80 col(l); 132 col(h)
8360#	ESC [ ? 4 l	jump scroll
8361#	ESC [ ? 5 l/h	video: normal (l); reverse (h)
8362#	ESC [ ?13 l	Labels on
8363#	ESC [ ?15 l	parity check = no
8364#	ESC [ 13 l	monitor mode off
8365#	ESC [ 20 l	LF on NL (not CRLF on NL)
8366#	ESC [ ? 7 h	autowrap on
8367#	ESC [ 12 h	local echo off
8368#	ESC ( B		GO = ASCII
8369#	ESC ) 0		G1 = Special Char & Line Drawing
8370#	ESC [ ? 31 l	Set 7 bit controls
8371#
8372# Note: Most terminals, especially the 600 family use Reverse Video for
8373# standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
8374# Assume we should stay with reverse video for 70..  However, the 605V2 exits
8375# standout mode with \E[m (all normal attributes).  The 730 entry simply
8376# exits reverse video which would leave other current attributes intact.  It
8377# was assumed the 730 entry to be more correct so rmso has changed.  The
8378# 605V2 has no sequences to turn individual attributes off, thus its setting
8379# and the rmso/smso settings from the 730.
8380#
8381# Note: For the same reason as above in rmso I changed exit under-score mode
8382# to specifically turn off underscore, rather than return to all normal
8383# attributes
8384#
8385# Note: The following pkey_xmit is taken from the 605V2 which contained the
8386# capability as pfxl.  It was changed here to pfx since pfxl
8387# will only compile successfully with Unix 4.0 tic.  Also note that pfx only
8388# allows strings to be parameters and label values must be programmed as
8389# constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
8390# and strings to be parameters.  The 605V2 pfx entry should be examined later
8391# in this regard. For reference the 730 pfxl entry is shown here for comparison
8392# 730 pfx entry:
8393#     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
8394# SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
8395#
8396# (for 4.0 tic)
8397#     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8398#
8399# (for <4.0 tic)
8400#     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8401#
8402# From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
8403#
8404# Port1 Interface
8405#
8406# modular 10 pin Connector
8407# Left side       Right side
8408# Pin 1 2 3 4 5 6 7 8 9 10
8409#
8410#        Key (notch) at bottom
8411#
8412# Pin    1 DSR
8413#        3 DCD
8414#        4 DTR
8415#        5 Sig Ground
8416#        6 RD
8417#        7 SD
8418#        8 CTS
8419#        9 RTS
8420#        10 Frame Ground
8421#
8422# The manual is 189 pages and is loaded with details about the escape codes,
8423# etc..... Available from AT&T CIC 800-432-6600...
8424# ask for Document number 999-300-660..
8425#
8426att700|AT&T 700 24x80 column display w/102key keyboard,
8427	am, eslok, hs, mir, msgr, xenl, xon,
8428	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8429	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8430	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8431	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8432	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8433	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8434	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8435	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8436	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8437	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fln=4\,4,
8438	fsl=\E8, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
8439	il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m,
8440	is2=\E[50;4|\E[53;0|\E[8;0|\E[?4;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0\E[?31l\E[0m\017,
8441	is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z,
8442	kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8443	kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp,
8444	kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC,
8445	kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd,
8446	kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP,
8447	kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOq,
8448	kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt, kf33=\EOu,
8449	kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy, kf38=\EOu,
8450	kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8451	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg,
8452	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8453	kich1=\E[@, kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H,
8454	mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8455	pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8456	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
8457	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
8458	rmir=\E[4l, rmln=\E[2p, rmso=\E[27m, rmul=\E[24m,
8459	rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|, sc=\E7,
8460	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8461	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p, smso=\E[7m,
8462	smul=\E[4m, smxon=\E[53;0|, tbc=\E[3g,
8463	tsl=\E7\E[99;%i%p1%dx,
8464
8465# This entry was modified 3/13/90 by JWE.
8466# fixes include additions of <enacs>, correcting <rep>, and modification
8467# of <kHOM>.  (See comments below)
8468# att730 has status line of 80 chars
8469# These were commented out: <indn=\E[%p1%dS>, <rin=\E[%p1%dT>,
8470# the <kf25> and up keys are used for shifted system Fkeys
8471# NOTE: JWE 3/13/90 The 98 key keyboard translation for shift/HOME is
8472# currently the same as <khome> (unshifted HOME or \E[H).  On the 102, 102+1
8473# and 122 key keyboards, the 730's translation is \E[2J.  For consistency
8474# <kHOM> has been commented out.  The user can uncomment <kHOM> if using the
8475# 102, 102+1, or 122 key keyboards
8476#       kHOM=\E[2J,
8477# (att730: I added <rmam>/<smam> based on the init string -- esr)
8478att730|AT&T 730 windowing terminal,
8479	am, da, db, eslok, hs, mir, msgr, npc, xenl, xon,
8480	cols#80, it#8, lh#2, lines#60, lm#0, lw#8, nlab#24, wsl#80,
8481	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8482	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8483	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8484	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8485	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8486	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8487	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8488	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8489	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
8490	home=\E[H, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
8491	ind=\ED, invis=\E[8m,
8492	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B,
8493	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
8494	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8495	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8496	kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv, kf17=\ENw,
8497	kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz, kf21=\EN{,
8498	kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC, kf26=\EOD,
8499	kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe, kf30=\EOH,
8500	kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP, kf35=\ENQ,
8501	kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU, kf4=\EOf,
8502	kf40=\EOV, kf41=\EOW, kf42=\EOX, kf43=\EOY, kf44=\EOZ,
8503	kf45=\EO[, kf46=\EO\s, kf47=\EO], kf48=\EO\^, kf5=\EOg,
8504	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8505	kich1=\E[@, kil1=\E[L, kind=\E[S, kri=\E[T,
8506	mc0=\E[?19h\E[0i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8507	pfx=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq   SYS     F%p1%:-2d  %e;0;3q%;%p2%s,
8508	pfxl=\E[%p1%d;%p2%l%02d;0;0q%p3%:-16.16s%p2%s,
8509	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
8510	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
8511	rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h, rmso=\E[27m,
8512	rmul=\E[24m, rmxon=\E[?21l, rs2=\Ec\E[?3l, sc=\E7,
8513	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
8514	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
8515	smln=\E[?13l, smso=\E[7m, smul=\E[4m, smxon=\E[?21h,
8516	swidm=\E#6, tsl=\E7\E[;%i%p1%dx,
8517att730-41|730MTG-41|AT&T 730-41 windowing terminal Version,
8518	lines#41, use=att730,
8519att730-24|730MTG-24|AT&T 730-24 windowing terminal Version,
8520	lines#24, use=att730,
8521att730r|730MTGr|AT&T 730 rev video windowing terminal Version,
8522	flash=\E[?5l$<200>\E[?5h,
8523	is1=\E[8;0|\E[?3;4;13;15l\E[?5h\E[13;20l\E[?7h\E[12h\E(B\E)B,
8524	use=att730,
8525att730r-41|730MTG-41r|AT&T 730r-41 rev video windowing terminal Version,
8526	lines#41, use=att730r,
8527att730r-24|730MTGr-24|AT&T 730r-24 rev video windowing terminal Version,
8528	lines#24, use=att730r,
8529
8530# The following represents the screen layout along with the associated
8531# bezel buttons for the 5430/pt505 terminal. The "kf" designations do
8532# not appear on the screen but are shown to reference the bezel buttons.
8533# The "CMD", "MAIL", and "REDRAW" buttons are shown in their approximate
8534# position relative to the screen.
8535#
8536#
8537#
8538#      +----------------------------------------------------------------+
8539#      |                                                                |
8540# XXXX | kf0                                                       kf24 | XXXX
8541#      |                                                                |
8542#      |                                                                |
8543# XXXX | kf1                                                       kf23 | XXXX
8544#      |                                                                |
8545#      |                                                                |
8546# XXXX | kf2                                                       kf22 | XXXX
8547#      |                                                                |
8548#      |                                                                |
8549# XXXX | kf3                                                       kf21 | XXXX
8550#      |                                                                |
8551#      |                                                                |
8552# XXXX | kf4                                                       kf20 | XXXX
8553#      |                                                                |
8554#      |                                                                |
8555# XXXX | kf5                                                       kf19 | XXXX
8556#      |                                                                |
8557#      |                                                                |
8558# XXXX | kf6                                                       kf18 | XXXX
8559#      |                                                                |
8560#      |                                                                |
8561# XXXX |                                                                | XXXX
8562#      |                                                                |
8563#      |                                                                |
8564#      +----------------------------------------------------------------+
8565#
8566#          XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX
8567#
8568# Note: XXXX represents the screen buttons
8569#                                                          CMD   REDRAW
8570#
8571#                                                          MAIL
8572#
8573# version 1 note:
8574#	The character string sent by key 'kf26' may be user programmable
8575#       to send either \E[16s, or \E[26s.
8576#       The character string sent by key 'krfr' may be user programmable
8577#       to send either \E[17s, or \E[27s.
8578#
8579# Depression of the "CMD" key sends    \E!    (kcmd)
8580# Depression of the "MAIL" key sends   \E[26s (kf26)
8581# "REDRAW" same as "REFRESH" (krfr)
8582#
8583# "kf" functions adds carriage return to output string if terminal is in
8584# 'new line' mode.
8585#
8586# The following are functions not covered in the table above:
8587#
8588#       Set keyboard character (SKC): \EPn1;Pn2w
8589#                       Pn1= 0 Back Space key
8590#                       Pn1= 1 Break key
8591#                       Pn2=   Program char (hex)
8592#
8593#       Screen Definition (SDF): \E[Pn1;Pn2;Pn3;Pn4;Pn5t
8594#                       Pn1=     Window number (1-39)
8595#                       Pn2-Pn5= Y;X;Y;X coordinates
8596#
8597#       Screen Selection (SSL): \E[Pnu
8598#                       Pn= Window number
8599#
8600#       Set Terminal Modes (SM): \E[Pnh
8601#                       Pn= 3 Graphics mode
8602#                       Pn= > Cursor blink
8603#                       Pn= < Enter new line mode
8604#                       Pn= = Enter reverse insert/replace mode
8605#                       Pn= ? Enter no scroll mode
8606#
8607#       Reset Terminal Mode (RM): \E[Pnl
8608#                       Pn= 3 Exit graphics mode
8609#                       Pn= > Exit cursor blink
8610#                       Pn= < Exit new line mode
8611#                       Pn= = Exit reverse insert/replace mode
8612#                       Pn= ? Exit no scroll mode
8613#
8614#       Screen Status Report (SSR): \E[Pnp
8615#                       Pn= 0 Request current window number
8616#                       Pn= 1 Request current window dimensions
8617#
8618#       Device Status Report (DSR): \E[6n    Request cursor position
8619#
8620#       Call Status Report (CSR): \E[Pnv
8621#                       Pn= 0 Call failed
8622#                       Pn= 1 Call successful
8623#
8624#       Transparent Button String (TBS): \E[Pn1;Pn2;Pn3;{string
8625#                       Pn1= Button number to be loaded
8626#                       Pn2= Character count of "string"
8627#                       Pn3= Key mode being loaded:
8628#                               0= Unshifted
8629#                               1= Shifted
8630#                               2= Control
8631#                       String= Text string (15 chars max)
8632#
8633#       Screen Number Report (SNR): \E[Pnp
8634#                       Pn= Screen number
8635#
8636#       Screen Dimension Report (SDR): \E[Pn1;Pn2r
8637#                       Pn1= Number of rows available in window
8638#                       Pn2= Number of columns available in window
8639#
8640#       Cursor Position Report (CPR): \E[Pn1;Pn2R
8641#                       Pn1= "Y" Position of cursor
8642#                       Pn2= "X" Position of cursor
8643#
8644#       Request Answer Back (RAB): \E[c
8645#
8646#       Answer Back Response (ABR): \E[?;*;30;VSV
8647#                       *=  0 No printer available
8648#                       *=  2 Printer available
8649#                       V=  Software version number
8650#                       SV= Software sub version number
8651#	(printer-available field not documented in v1)
8652#
8653#       Screen Alignment Aid: \En
8654#
8655#       Bell (lower pitch): \E[x
8656#
8657#       Dial Phone Number: \EPdstring\
8658#                       string= Phone number to be dialed
8659#
8660#       Set Phone Labels: \EPpstring\
8661#                       string= Label for phone buttons
8662#
8663#       Set Clock: \EPchour;minute;second\
8664#
8665#       Position Clock: \EPsY;X\
8666#                       Y= "Y" coordinate
8667#                       X= "X" coordinate
8668#
8669#       Delete Clock: \Epr\
8670#
8671#       Programming The Function Buttons: \EPfPn;string\
8672#                       Pn= Button number (00-06, 18-24)
8673#                                         (kf00-kf06, kf18-kf24)
8674#                       string= Text to sent on button depression
8675#
8676# The following in version 2 only:
8677#
8678#       Request For Local Directory Data: \EPp12;\
8679#
8680#       Local Directory Data to host: \EPp11;LOCAL...DIRECTORY...DATA\
8681#
8682#	Request for Local Directory Data in print format: \EPp13;\
8683#
8684#	Enable 'Prt on Line' mode: \022 (DC2)
8685#
8686#	Disable 'Prt on Line' mode: \024 (DC4)
8687#
8688
8689# 05-Aug-86:
8690# The following Terminfo entry describes functions which are supported by
8691# the AT&T 5430/pt505 terminal software version 2 and later.
8692att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
8693	am, xon,
8694	cols#80, it#8, lines#24,
8695	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8696	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
8697	cnorm=\E[>l, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
8698	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8699	cup=\E[%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8700	cvvis=\E[>h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
8701	dl1=\E[M, ed=\E[0J, el=\E[0K, el1=\E[2K, home=\E[H, ht=^I,
8702	il=\E[%p1%dL, il1=\E[L, ind=^J,
8703	is1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l,
8704	kbs=^H, kcmd=\E!, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8705	kcuu1=\E[A, kf0=\E[00s, kf1=\E[01s, kf18=\E[18s,
8706	kf19=\E[19s, kf2=\E[02s, kf20=\E[20s, kf21=\E[21s,
8707	kf22=\E[22s, kf23=\E[23s, kf24=\E[24s, kf26=\E[26s,
8708	kf3=\E[03s, kf4=\E[04s, kf5=\E[05s, kf6=\E[06s,
8709	krfr=\E[27s, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
8710	rmacs=\E[10m, rmam=\E[11;1j, rmir=\E[4l, rmso=\E[m,
8711	rmul=\E[m, rs1=\Ec, sc=\E7, sgr0=\E[m, smacs=\E[11m,
8712	smam=\E[11;0j, smir=\E[4h, smso=\E[1m, smul=\E[4m,
8713
8714# The following Terminfo entry describes functions which are supported by
8715# the AT&T 5430/pt505 terminal software version 1.
8716att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines,
8717	lines#24,
8718	mc4@, mc5@, rc@, rmam@, sc@, smam@, use=att505,
8719tt505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines,
8720	lines#22, use=att505,
8721#
8722#### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
8723# This cut mark helps make life less painful for people running ncurses tic
8724# on machines with relatively little RAM.  The file can be broken in half here
8725# cleanly and compiled in sections -- no `use' references cross this cut
8726# going forward.
8727#
8728
8729#### Ampex (Dialogue)
8730#
8731# Yes, these are the same people who are better-known for making audio- and
8732# videotape.  I'm told they are located in Redwood City, CA.
8733#
8734
8735# From: <cbosg!ucbvax!SRC:george> Fri Sep 11 22:38:32 1981
8736# (ampex80: some capabilities merged in from SCO's entry -- esr)
8737ampex80|a80|d80|dialogue|dialogue80|ampex dialogue 80,
8738	OTbs, am, bw, ul,
8739	cols#80, it#8, lines#24,
8740	bel=^G, cbt=\EI, clear=\E*$<75>, cr=^M, cub1=^H, cud1=^J,
8741	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8742	dch1=\EW, dl1=\ER$<5*>, ed=\Ey, el=\Et, ht=^I, hts=\E1,
8743	ich1=\EQ, il1=\EE$<5*>, ind=^J, is2=\EA, rmso=\Ek, rmul=\Em,
8744	smso=\Ej, smul=\El, tbc=\E3,
8745# This entry was from somebody anonymous, Tue Aug  9 20:11:37 1983, who wrote:
8746ampex175|ampex d175,
8747	am,
8748	cols#80, lines#24,
8749	bel=^G, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8750	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8751	dl1=\ER, ed=\Ey, el=\Et, home=^^, ich1=\EQ, il1=\EE, ind=^J,
8752	is2=\EX\EA\EF, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
8753	kdch1=\EW, kdl1=\ER, khome=^^, kich1=\EQ, kil1=\EE, ll=^^^K,
8754	rmcup=\EF, rmso=\Ek, rmul=\Em, smcup=\EN, smso=\Ej, smul=\El,
8755# No backspace key in the main QWERTY cluster. Fortunately, it has a
8756# NEWLINE/PAGE key just above RETURN that sends a strange single-character
8757# code.  Given a suitable Unix (one that lets you set an echo-erase-as-BS-SP-BS
8758# mode), this key can be used as the erase key; I find I like this. Because
8759# some people and some systems may not, there is another termcap ("ampex175")
8760# that suppresses this little eccentricity by omitting the relevant capability.
8761ampex175-b|ampex d175 using left arrow for erase,
8762	kbs=^_, use=ampex175,
8763# From: Richard Bascove <atd!dsd!rcb@ucbvax.berkeley.edu>
8764# (ampex210: removed obsolete ":kn#10:" -- esr)
8765ampex210|a210|ampex a210,
8766	OTbs, am, hs, xenl,
8767	cols#80, it#8, lines#24, xmc#1,
8768	cbt=\EI, clear=\E*, cub1=^H, cuf1=^L,
8769	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8770	dl1=\ER, ed=\Ey, el=\Et, flash=\EU\EX\EU\EX\EU\EX\EU\EX,
8771	fsl=\E.2, home=^^, ht=^I, ich1=\EQ,
8772	if=/usr/share/tabset/std, il1=\EE, invis@,
8773	is2=\EC\Eu\E'\E(\El\EA\E%\E{\E.2\EG0\Ed\En, kcub1=^H,
8774	kcud1=^V, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
8775	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
8776	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, khome=^^,
8777	tsl=\E.0\Eg\E}\Ef, use=adm+sgr,
8778# (ampex219: I added <rmam>/<smam> based on the init string, added <cvvis>
8779# from ampex219w, added <cnorm>=\E[?3l, irresistibly suggested by <cvvis>,
8780# and moved the padding to be *after* the caps -- esr)
8781ampex219|ampex-219|amp219|Ampex with Automargins,
8782	hs, xenl,
8783	cols#80, it#8, lines#24,
8784	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, cbt=\E[Z,
8785	clear=\E[H\E[2J$<50>, cnorm=\E[?3l, cr=^M,
8786	csr=%i\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B,
8787	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
8788	cuu1=\E[A$<2>, cvvis=\E[?3h, dim=\E[1m, ed=\E[J$<50>,
8789	el=\E[K$<3>, home=\E[H, ht=^I, ind=^J,
8790	is2=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
8791	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[21~,
8792	kf1=\E[7~, kf2=\E[8~, kf3=\E[9~, kf4=\E[10~, kf5=\E[11~,
8793	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
8794	rev=\E[7m, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E>,
8795	rmso=\E[m$<2>, rmul=\E[m$<2>, sgr0=\E[m$<2>, smam=\E[?7h,
8796	smkx=\E=, smso=\E[7m$<2>, smul=\E[4m$<2>,
8797ampex219w|ampex-219w|amp219w|Ampex 132 cols,
8798	cols#132, lines#24,
8799	bel=^G, cr=^M, cud1=^J, ind=^J,
8800	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, use=ampex219,
8801# (ampex232: removed <if=/usr/share/tabset/ampex>, no file and no <hts> --esr)
8802ampex232|ampex-232|Ampex Model 232,
8803	am,
8804	cols#80, lines#24, xmc#1,
8805	cbt=\EI, civis=\E.0, clear=\E+, cnorm=\E.4, cub1=^H, cud1=^V,
8806	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8807	dch1=\EW, dl1=\ER$<5*/>, ed=\EY, el=\ET,
8808	flash=\Eb$<200/>\Ed, ht=^I, ich1=\EQ, il1=\EE$<5*/>,
8809	invis@, is2=\Eg\El, kbs=^H, kcub1=^H, kcud1=^V, kcuf1=^L,
8810	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
8811	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
8812	kf9=^AI\r, khome=^^, use=adm+sgr,
8813# (ampex: removed <if=/usr/share/tabset/amp-132>, no file and no <hts> -- esr)
8814ampex232w|Ampex Model 232 / 132 columns,
8815	cols#132, lines#24,
8816	is2=\E\034Eg\El, use=ampex232,
8817
8818#### Ann Arbor (aa)
8819#
8820# Ann Arbor made dream terminals for hackers -- large screen sizes and huge
8821# numbers of function keys.  At least some used monitors in portrait mode,
8822# allowing up to 76-character screen heights!  They were reachable at:
8823#
8824#	Ann Arbor Terminals
8825#	6175 Jackson Road
8826#	Ann Arbor, MI 48103
8827#	(313)-663-8000
8828#
8829# But in 1996 the phone number reaches some kitschy retail shop, and Ann Arbor
8830# can't be found on the Web; I fear they're long dead.  R.I.P.
8831#
8832
8833
8834# Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
8835# Highly modified 6/22 by Mike O'Brien.
8836# split out into several for the various screen sizes by dave-yost@rand
8837# Modifications made 3/82 by Mark Horton
8838# Modified by Tom Quarles at UCB for greater efficiency and more diversity
8839# status line moved to top of screen, <flash> removed 5/82
8840# Some unknown person at SCO then hacked the init strings to make them more
8841# efficient.
8842#
8843# assumes the following setup:
8844#   A menu: 0000 1010  0001 0000
8845#   B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
8846#   C menu: 56   66   0    0    9600  0110 1100
8847#   D menu: 0110 1001   1   0
8848#
8849#	Briefly, the settings are for the following modes:
8850#	   (values are for bit set/clear with * indicating our preference
8851#	    and the value used to test these termcaps)
8852#	Note that many of these settings are irrelevent to the terminfo
8853#	and are just set to the default mode of the terminal as shipped
8854#	by the factory.
8855#
8856# A menu: 0000 1010  0001 0000
8857#	Block/underline cursor*
8858#	blinking/nonblinking cursor*
8859#	key click/no key click*
8860#	bell/no bell at column 72*
8861#
8862#	key pad is cursor control*/key pad is numeric
8863#	return and line feed/return for <cr> key *
8864#	repeat after .5 sec*/no repeat
8865#	repeat at 25/15 chars per sec. *
8866#
8867#	hold data until pause pressed/process data unless pause pressed*
8868#	slow scroll/no slow scroll*
8869#	Hold in area/don't hold in area*
8870#	functions keys have default*/function keys disabled on powerup
8871#
8872#	show/don't show position of cursor during page transmit*
8873#	unused
8874#	unused
8875#	unused
8876#
8877# B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
8878#	Baud rate (9600*)
8879#
8880#	2 bits of parity - 00=odd,01=even*,10=space,11=mark
8881#	1 stop bit*/2 stop bits
8882#	parity error detection off*/on
8883#
8884#	keyboard local/on line*
8885#	half/full duplex*
8886#	disable/do not disable keyboard after data transmission*
8887#
8888#	transmit entire page/stop transmission at cursor*
8889#	transfer/do not transfer protected characters*
8890#	transmit all characters/transmit only selected characters*
8891#	transmit all selected areas/transmit only 1 selected area*
8892#
8893#	transmit/do not transmit line separators to host*
8894#	transmit/do not transmit page tab stops tabs to host*
8895#	transmit/do not transmit column tab stop tabs to host*
8896#	transmit/do not transmit graphics control (underline,inverse..)*
8897#
8898#	enable*/disable auto XON/XOFF control
8899#	require/do not require receipt of a DC1 from host after each LF*
8900#	pause key acts as a meta key/pause key is pause*
8901#	unused
8902#
8903#	unused
8904#	unused
8905#	unused
8906#	unused
8907#
8908#	XON character (17*)
8909#	XOFF character (19*)
8910#
8911# C menu: 56   66   0    0    9600  0110 1100
8912#	number of lines to print data on (printer) (56*)
8913#
8914#	number of lines on a sheet of paper (printer) (66*)
8915#
8916#	left margin (printer) (0*)
8917#
8918#	number of pad chars on new line to printer (0*)
8919#
8920#	printer baud rate (9600*)
8921#
8922#	printer parity: 00=odd,01=even*,10=space,11=mark
8923#	printer stop bits: 2*/1
8924#	print/do not print guarded areas*
8925#
8926#	new line is: 01=LF,10=CR,11=CRLF*
8927#	unused
8928#	unused
8929#
8930# D menu: 0110 1001   1   0
8931#	LF is newline/LF is down one line, same column*
8932#	wrap to preceding line if move left from col 1*/don't wrap
8933#	wrap to next line if move right from col 80*/don't wrap
8934#	backspace is/is not destructive*
8935#
8936#	display*/ignore DEL character
8937#	display will not/will scroll*
8938#	page/column tab stops*
8939#	erase everything*/erase unprotected only
8940#
8941#	editing extent: 0=display,1=line*,2=field,3=area
8942#
8943#	unused
8944#
8945
8946annarbor4080|aa4080|ann arbor 4080,
8947	OTbs, am,
8948	cols#80, lines#40,
8949	bel=^G, clear=\014$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=^_,
8950	cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t%{12}%+%;%{64}%+%c,
8951	cuu1=^N, home=^K, ht=^I, hts=^]^P1, ind=^J, kbs=^^, kcub1=^H,
8952	kcud1=^J, kcuf1=^_, kcuu1=^N, khome=^K, tbc=^\^P^P,
8953
8954# Strange Ann Arbor terminal from BRL
8955aas1901|Ann Arbor K4080 w/S1901 mod,
8956	am,
8957	cols#80, lines#40,
8958	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^N,
8959	home=^K, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, ll=^O\0c,
8960	nel=^M^J,
8961
8962# If you're using the GNU termcap library, add
8963#	:cS=\E[%p1%d;%p2%d;%p3%d;%p4%dp:
8964# to these capabilities.  This is the nonstandard GNU termcap scrolling
8965# capability, arguments are:
8966#   1. Total number of lines on the screen.
8967#   2. Number of lines above desired scroll region.
8968#   3. Number of lines below (outside of) desired scroll region.
8969#   4. Total number of lines on the screen, the same as the first parameter.
8970# The generic Ann Arbor entry is the only one that uses this.
8971aaa+unk|aaa-unk|ann arbor ambassador (internal - don't use this directly),
8972	OTbs, am, km, mc5i, mir, xon,
8973	cols#80, it#8,
8974	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
8975	clear=\E[H\E[J$<156>, cr=^M, cub=\E[%p1%dD, cub1=^H,
8976	cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
8977	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8978	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
8979	el=\E[K$<5>, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
8980	hts=\EH, ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il=\E[%p1%dL,
8981	il1=\E[L$<3>, ind=^K, invis=\E[8m, is1=\E[m\E7\E[H\E9\E8,
8982	is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kbs=^H, kcbt=\E[Z,
8983	kclr=\E[J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8984	kdch1=\E[P, kdl1=\E[M, kf1=\EOA, kf10=\EOJ, kf11=\EOK,
8985	kf12=\EOL, kf13=\EOM, kf14=\EON, kf15=\EOO, kf16=\EOP,
8986	kf17=\EOQ, kf18=\EOR, kf19=\EOS, kf2=\EOB, kf20=\EOT,
8987	kf21=\EOU, kf22=\EOV, kf23=\EOW, kf24=\EOX, kf3=\EOC,
8988	kf4=\EOD, kf5=\EOE, kf6=\EOF, kf7=\EOG, kf8=\EOH, kf9=\EOI,
8989	khome=\E[H, kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i,
8990	mc4=^C, mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8,
8991	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
8992	rmkx=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E\\,
8993	rmm=\E[>52l, rmso=\E[m, rmul=\E[m, sc=\E7,
8994	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
8995	sgr0=\E[m,
8996	smkx=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E\\,
8997	smm=\E[>52h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
8998	vpa=\E[%p1%{1}%+%dd,
8999
9000aaa+rv|ann arbor ambassador in reverse video,
9001	blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
9002	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
9003	rs1=\E[H\E[7m\E[J$<156>,
9004	sgr=\E[%?%p1%p3%|%!%t7;%;%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
9005	sgr0=\E[7m\016, smso=\E[m, smul=\E[4;7m,
9006# Ambassador with the DEC option, for partial vt100 compatibility.
9007aaa+dec|ann arbor ambassador in dec vt100 mode,
9008	acsc=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}},
9009	csr=\E[%i%p1%d;%p2%dr, enacs=\E(0, rmacs=^N,
9010	sgr=\E[%?%p1%p3%|%!%t7;%;%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m%?%p9%t\017%e\016%;,
9011	smacs=^O,
9012aaa-18|ann arbor ambassador/18 lines,
9013	lines#18,
9014	is2=\E7\E[60;0;0;18p\E8,
9015	rmcup=\E[60;0;0;18p\E[60;1H\E[K, smcup=\E[18;0;0;18p,
9016	use=aaa+unk,
9017aaa-18-rv|ann arbor ambassador/18 lines+reverse video,
9018	use=aaa+rv, use=aaa-18,
9019aaa-20|ann arbor ambassador/20 lines,
9020	lines#20,
9021	is2=\E7\E[60;0;0;20p\E8,
9022	rmcup=\E[60;0;0;20p\E[60;1H\E[K, smcup=\E[20;0;0;20p,
9023	use=aaa+unk,
9024aaa-22|ann arbor ambassador/22 lines,
9025	lines#22,
9026	is2=\E7\E[60;0;0;22p\E8,
9027	rmcup=\E[60;0;0;22p\E[60;1H\E[K, smcup=\E[22;0;0;22p,
9028	use=aaa+unk,
9029aaa-24|ann arbor ambassador/24 lines,
9030	lines#24,
9031	is2=\E7\E[60;0;0;24p\E8,
9032	rmcup=\E[60;0;0;24p\E[60;1H\E[K, smcup=\E[24;0;0;24p,
9033	use=aaa+unk,
9034aaa-24-rv|ann arbor ambassador/24 lines+reverse video,
9035	use=aaa+rv, use=aaa-24,
9036aaa-26|ann arbor ambassador/26 lines,
9037	lines#26,
9038	is2=\E7\E[60;0;0;26p\E8,
9039	rmcup=\E[60;0;0;26p\E[26;1H\E[K,
9040	smcup=\E[H\E[J$<156>\E[26;0;0;26p, use=aaa+unk,
9041aaa-28|ann arbor ambassador/28 lines,
9042	lines#28,
9043	is2=\E7\E[60;0;0;28p\E8,
9044	rmcup=\E[60;0;0;28p\E[28;1H\E[K,
9045	smcup=\E[H\E[J$<156>\E[28;0;0;28p, use=aaa+unk,
9046aaa-30-s|aaa-s|ann arbor ambassador/30 lines w/status,
9047	eslok, hs,
9048	lines#29,
9049	dsl=\E7\E[60;0;0;30p\E[1;1H\E[K\E[H\E8\r\n\E[K,
9050	fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;30p\E8,
9051	rmcup=\E[60;1;0;30p\E[29;1H\E[K,
9052	smcup=\E[H\E[J$<156>\E[30;1;0;30p\E[30;1H\E[K,
9053	tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
9054aaa-30-s-rv|aaa-s-rv|ann arbor ambassador/30 lines+status+reverse video,
9055	use=aaa+rv, use=aaa-30-s,
9056aaa-s-ctxt|aaa-30-s-ctxt|ann arbor ambassador/30 lines+status+save context,
9057	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
9058	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s,
9059aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context+reverse video,
9060	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
9061	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s-rv,
9062aaa|aaa-30|ambas|ambassador|ann arbor ambassador/30 lines,
9063	lines#30,
9064	is2=\E7\E[60;0;0;30p\E8,
9065	rmcup=\E[60;0;0;30p\E[30;1H\E[K,
9066	smcup=\E[H\E[J$<156>\E[30;0;0;30p, use=aaa+unk,
9067aaa-30-rv|aaa-rv|ann arbor ambassador/30 lines in reverse video,
9068	use=aaa+rv, use=aaa-30,
9069aaa-30-ctxt|aaa-ctxt|ann arbor ambassador/30 lines; saving context,
9070	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
9071	use=aaa-30,
9072aaa-30-rv-ctxt|aaa-rv-ctxt|ann arbor ambassador/30 lines reverse video; saving context,
9073	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
9074	use=aaa+rv, use=aaa-30,
9075aaa-36|ann arbor ambassador/36 lines,
9076	lines#36,
9077	is2=\E7\E[60;0;0;36p\E8,
9078	rmcup=\E[60;0;0;36p\E[36;1H\E[K,
9079	smcup=\E[H\E[J$<156>\E[36;0;0;36p, use=aaa+unk,
9080aaa-36-rv|ann arbor ambassador/36 lines+reverse video,
9081	use=aaa+rv, use=aaa-36,
9082aaa-40|ann arbor ambassador/40 lines,
9083	lines#40,
9084	is2=\E7\E[60;0;0;40p\E8,
9085	rmcup=\E[60;0;0;40p\E[40;1H\E[K,
9086	smcup=\E[H\E[J$<156>\E[40;0;0;40p, use=aaa+unk,
9087aaa-40-rv|ann arbor ambassador/40 lines+reverse video,
9088	use=aaa+rv, use=aaa-40,
9089aaa-48|ann arbor ambassador/48 lines,
9090	lines#48,
9091	is2=\E7\E[60;0;0;48p\E8,
9092	rmcup=\E[60;0;0;48p\E[48;1H\E[K,
9093	smcup=\E[H\E[J$<156>\E[48;0;0;48p, use=aaa+unk,
9094aaa-48-rv|ann arbor ambassador/48 lines+reverse video,
9095	use=aaa+rv, use=aaa-48,
9096aaa-60-s|ann arbor ambassador/59 lines+status,
9097	eslok, hs,
9098	lines#59,
9099	dsl=\E7\E[60;0;0;60p\E[1;1H\E[K\E[H\E8\r\n\E[K,
9100	fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;60p\E8,
9101	tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
9102aaa-60-s-rv|ann arbor ambassador/59 lines+status+reverse video,
9103	use=aaa+rv, use=aaa-60-s,
9104aaa-60-dec-rv|ann arbor ambassador/dec mode+59 lines+status+rev video,
9105	use=aaa+dec, use=aaa+rv, use=aaa-60-s,
9106aaa-60|ann arbor ambassador/60 lines,
9107	lines#60,
9108	is2=\E7\E[60;0;0;60p\E[1Q\E[m\E[>20;30l\E8,
9109	use=aaa+unk,
9110aaa-60-rv|ann arbor ambassador/60 lines+reverse video,
9111	use=aaa+rv, use=aaa-60,
9112aaa-db|ann arbor ambassador 30/destructive backspace,
9113	OTbs@,
9114	cub1=\E[D, is3=\E[1Q\E[m\E[>20l\E[>30h, use=aaa-30,
9115
9116guru|guru-33|guru+unk|ann arbor guru/33 lines 80 cols,
9117	lines#33,
9118	flash=\E[>59h$<100>\E[>59l,
9119	is2=\E7\E[255;0;0;33;80;80p\E8\E[J, is3=\E[>59l,
9120	rmcup=\E[255p\E[255;1H\E[K, smcup=\E[33p, use=aaa+unk,
9121guru+rv|guru changes for reverse video,
9122	flash=\E[>59l$<100>\E[>59h, is3=\E[>59h,
9123guru-rv|guru-33-rv|ann arbor guru/33 lines+reverse video,
9124	use=guru+rv, use=guru-33,
9125guru+s|guru status line,
9126	eslok, hs,
9127	dsl=\E7\E[;0p\E[1;1H\E[K\E[H\E8\r\n\E[K, fsl=\E[>51l,
9128	rmcup=\E[255;1p\E[255;1H\E[K, smcup=,
9129	tsl=\E[>51h\E[1;%p1%dH\E[2K,
9130guru-nctxt|guru with no saved context,
9131	smcup=\E[H\E[J$<156>\E[33p\E[255;1H\E[K, use=guru,
9132guru-s|guru-33-s|ann arbor guru/33 lines+status,
9133	lines#32,
9134	is2=\r\n\E[A\E7\E[255;1;0;33;80;80p\E8\E[J,
9135	smcup=\E[33;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9136guru-24|ann arbor guru 24 lines,
9137	cols#80, lines#24,
9138	is2=\E7\E[255;0;0;24;80;80p\E8\E[J, smcup=\E[24p,
9139	use=guru+unk,
9140guru-44|ann arbor guru 44 lines,
9141	cols#97, lines#44,
9142	is2=\E7\E[255;0;0;44;97;100p\E8\E[J, smcup=\E[44p,
9143	use=guru+unk,
9144guru-44-s|ann arbor guru/44 lines+status,
9145	lines#43,
9146	is2=\r\n\E[A\E7\E[255;1;0;44;80;80p\E8\E[J,
9147	smcup=\E[44;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9148guru-76|guru with 76 lines by 89 cols,
9149	cols#89, lines#76,
9150	is2=\E7\E[255;0;0;76;89;100p\E8\E[J, smcup=\E[76p,
9151	use=guru+unk,
9152guru-76-s|ann arbor guru/76 lines+status,
9153	cols#89, lines#75,
9154	is2=\r\n\E[A\E7\E[255;1;0;76;89;100p\E8\E[J,
9155	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9156guru-76-lp|guru-lp|guru with page bigger than line printer,
9157	cols#134, lines#76,
9158	is2=\E7\E[255;0;0;76;134;134p\E8\E[J, smcup=\E[76p,
9159	use=guru+unk,
9160guru-76-w|guru 76 lines by 178 cols,
9161	cols#178, lines#76,
9162	is2=\E7\E[255;0;0;76;178;178p\E8\E[J, smcup=\E[76p,
9163	use=guru+unk,
9164guru-76-w-s|ann arbor guru/76 lines+status+wide,
9165	cols#178, lines#75,
9166	is2=\r\n\E[A\E7\E[255;1;0;76;178;178p\E8\E[J,
9167	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9168guru-76-wm|guru 76 lines by 178 cols with 255 cols memory,
9169	cols#178, lines#76,
9170	is2=\E7\E[255;0;0;76;178;255p\E8\E[J, smcup=\E[76p,
9171	use=guru+unk,
9172aaa-rv-unk|ann arbor unknown type,
9173	lh#0, lw#0, nlab#0,
9174	blink=\E[5;7m, bold=\E[1;7m, home=\E[H, invis=\E[7;8m,
9175	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
9176	rs1=\E[H\E[7m\E[J,
9177	sgr=\E[%?%p1%!%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
9178	sgr0=\E[7m, smso=\E[m, smul=\E[4;7m,
9179
9180#### Applied Digital Data Systems (adds)
9181#
9182# ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
9183# ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
9184# terminals was merged again.  Then AT&T sold the terminal business to
9185# SunRiver, which later changed its  name to Boundless Technologies.  The
9186# engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
9187# as of early 1995) are at:
9188#
9189#	Boundless Technologies
9190#	100 Marcus Boulevard
9191#	Hauppauge, NY 11788-3762
9192#	Vox: (800)-231-5445
9193#	Fax: (516)-342-7378
9194#	Web: http://boundless.com
9195#
9196# Their voice mail used to describe the place as "SunRiver (formerly ADDS)".
9197# In 1995 Boundless acquired DEC's terminals business.
9198#
9199
9200# Regent: lowest common denominator, works on all regents.
9201# (regent: renamed ":bc:" to ":le:" -- esr)
9202regent|Adds Regent Series,
9203	OTbs, am,
9204	cols#80, lines#24,
9205	bel=^G, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F, cuu1=^Z,
9206	home=\EY\s\s, ind=^J, ll=^A,
9207# Regent 100 has a bug where if computer sends escape when user is holding
9208# down shift key it gets confused, so we avoid escape.
9209regent100|Adds Regent 100,
9210	xmc#1,
9211	bel=^G,
9212	cup=\013%p1%' '%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
9213	kf0=^B1\r, kf1=^B2\r, kf2=^B3\r, kf3=^B4\r, kf4=^B5\r,
9214	kf5=^B6\r, kf6=^B7\r, kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3,
9215	lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@,
9216	sgr0=\E0@, smso=\E0P, smul=\E0`, use=regent,
9217regent20|Adds Regent 20,
9218	bel=^G, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, ed=\Ek, el=\EK,
9219	use=regent,
9220regent25|Adds Regent 25,
9221	bel=^G, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z, khome=^A,
9222	use=regent20,
9223regent40|Adds Regent 40,
9224	xmc#1,
9225	bel=^G, dl1=\El$<2*>, il1=\EM$<2*>, kf0=^B1\r, kf1=^B2\r,
9226	kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
9227	kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6,
9228	lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@, sgr0=\E0@, smso=\E0P,
9229	smul=\E0`, use=regent25,
9230regent40+|Adds Regent 40+,
9231	is2=\EB, use=regent40,
9232regent60|regent200|Adds Regent 60,
9233	dch1=\EE, is2=\EV\EB, kdch1=\EE, kich1=\EF, krmir=\EF,
9234	rmir=\EF, rmso=\ER\E0@\EV, smir=\EF, smso=\ER\E0P\EV,
9235	use=regent40+,
9236# From: <edward@onyx.berkeley.edu> Thu Jul  9 09:27:33 1981
9237# (viewpoint: added <kcuf1>, function key, and <dl1> capabilities -- esr)
9238viewpoint|addsviewpoint|adds viewpoint,
9239	OTbs, am,
9240	cols#80, lines#24,
9241	bel=^G, clear=^L, cnorm=\017\E0`, cr=^M, cub1=^H, cud1=^J,
9242	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
9243	cvvis=\017\E0P, dl1=\El, ed=\Ek$<16.1*>, el=\EK$<16>,
9244	ind=^J, is2=\017\E0`, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
9245	kf0=^B1, kf2=^B2, kf3=^B!, kf4=^B", kf5=^B#, khome=^A, ll=^A,
9246	rmso=^O, rmul=^O, sgr0=^O, smso=^N, smul=^N,
9247# Some viewpoints have bad ROMs that foo up on ^O
9248screwpoint|adds viewpoint with ^O bug,
9249	cvvis@, rmso@, rmul@, smso@, smul@, use=viewpoint,
9250
9251# From: Jay S. Rouman <jsr@dexter.mi.org> 5 Jul 92
9252# The <civis>/<cnorm>/<sgr>/<sgr0> strings were added by ESR from specs.
9253# Theory; the vp3a+ wants \E0%c to set highlights, where normal=01000000,
9254# underline=01100000, rev=01010000, blink=01000010,dim=01000001,
9255# invis=01000100 and %c is the logical or of desired attributes.
9256# There is also a `tag bit' enabling attributes, set by \E) and unset by \E(.
9257vp3a+|viewpoint3a+|adds viewpoint 3a+,
9258	am, bw,
9259	cols#80, it#8, lines#24,
9260	civis=^W, clear=\E*$<80>, cnorm=^X, cr=^M, cub1=^H, cud1=^J,
9261	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
9262	ed=\EY$<80>, el=\ET, home=^^, ht=^I, ind=^J, kbs=^H, kcub1=^H,
9263	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, nel=^M^J, rmso=\E(,
9264	sgr=\E0%{64}%?%p1%tQ%|%;%?%p2%t%{96}%|%;%?%p3%tP%|%;%?%p4%t%{2}%|%;%?%p5%t%{1}%|%;%?%p7%tD%|%;%c\E),
9265	sgr0=\E(, smso=\E0Q\E),
9266vp60|viewpoint60|addsvp60|adds viewpoint60,
9267	use=regent40,
9268#
9269# adds viewpoint 90 - from cornell
9270# Note:  emacs sends ei occasionally to insure the terminal is out of
9271#        insert mode. This unfortunately puts the viewpoint90 IN insert
9272#        mode.  A hack to get around this is <ich1=\EF\s\EF^U>.  (Also,
9273#   -    :ei=:im=: must be present in the termcap translation.)
9274#   -    <xhp> indicates glitch that attributes stick to location
9275#   -    <msgr> means it's safe to move in standout mode
9276#   -    <clear=\EG\Ek>: clears screen and visual attributes without affecting
9277#               the status line
9278# Function key and label capabilities merged in from SCO.
9279vp90|viewpoint90|adds viewpoint 90,
9280	OTbs, bw, msgr, xhp,
9281	cols#80, lines#24,
9282	clear=\EG\Ek, cub1=^H, cud1=^J, cuf1=^F,
9283	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EE,
9284	dl1=\El, ed=\Ek, el=\EK, home=\EY\s\s, ht=^I,
9285	ich1=\EF \EF\025, ind=^J, kbs=^H, kcub1=^U, kcud1=^J,
9286	kcuf1=^F, kcuu1=^Z, kf0=^B1\r, kf1=^B2\r, kf10=^B;\r,
9287	kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
9288	kf7=^B8\r, kf8=^B9\r, kf9=^B\:\r, khome=^A, lf0=F1, lf1=F2,
9289	lf10=F11, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9,
9290	lf9=F10, ll=^A, rmso=\ER\E0@\EV, rmul=\ER\E0@\EV,
9291	sgr0=\ER\E0@\EV, smso=\ER\E0Q\EV, smul=\ER\E0`\EV,
9292# Note: if return acts weird on a980, check internal switch #2
9293# on the top chip on the CONTROL pc board.
9294adds980|a980|adds consul 980,
9295	OTbs, am,
9296	cols#80, lines#24,
9297	bel=^G, clear=\014$<1>\013@, cr=^M, cub1=^H, cud1=^J,
9298	cuf1=\E^E01, cup=\013%p1%{64}%+%c\E\005%p2%2d,
9299	dl1=\E\017$<13>, il1=\E\016$<13>, ind=^J, kf0=\E0, kf1=\E1,
9300	kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
9301	kf9=\E9, rmso=^O, sgr0=^O, smso=^Y^^^N,
9302
9303#### C. Itoh Electronics
9304#
9305# As of 1995 these people no longer make terminals (they're still in the
9306# printer business).  Their terminals were all clones of the DEC VT series.
9307# They're located in Orange County, CA.
9308#
9309
9310# CIT 80  - vt-52 emulator, the termcap has been modified to remove
9311#           the delay times and do an auto tab set rather than the indirect
9312#           file used in vt100.
9313cit80|cit-80|citoh 80,
9314	OTbs, am,
9315	cols#80, lines#24,
9316	clear=\E[H\EJ, cr=^M, cub1=^H, cuf1=\E[C,
9317	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\EJ, el=\EK, ff=^L,
9318	ind=^J, is2=\E>, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
9319	kcuu1=\EOA, rmkx=\E[?1l\E>, smkx=\E[?1h\E=,
9320# From: Tim Wood <mtxinu!sybase!tim> Fri Sep 27 09:39:12 PDT 1985
9321# (cit101: added <rmam>/<smam> based on init string, merged this with c101 -- esr)
9322cit101|citc|C.itoh fast vt100,
9323	OTbs, am, xenl,
9324	cols#80, lines#24,
9325	bel=^G, clear=\E[H\E[2J, cnorm=\E[V\E8, cub1=^H, cuf1=\E[C,
9326	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E7\E[U,
9327	dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K,
9328	flash=\E[?5h$<200/>\E[?5l, ich1=\E[@, il1=\E[L,
9329	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[3g\E[>5g,
9330	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
9331	rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
9332	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
9333	smul=\E[4m,
9334# CIE Terminals CIT-101e from Geoff Kuenning <callan!geoff> via BRL
9335# The following termcap entry was created from the Callan cd100 entry.  The
9336# last two lines (with the capabilities in caps) are used by RM-cobol to allow
9337# full selection of combinations of reverse video, underline, and blink.
9338# (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
9339# f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
9340# :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
9341cit101e|C. Itoh CIT-101e,
9342	OTbs, OTpt, am, mir, msgr,
9343	cols#80, it#8, lines#24,
9344	acsc=, clear=\E[H\E[J, cnorm=, csr=\E[%i%p1%2d;%p2%2dr,
9345	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
9346	cvvis=\E[?1l\E[?4l\E[?7h, dch1=\E[P, dl1=\E[M, ed=\E[J,
9347	el=\E[K, if=/usr/share/tabset/vt100, il1=\E[L,
9348	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT,
9349	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOm, kf6=\EOl,
9350	kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l,
9351	rmkx=\E>, rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h,
9352	smkx=\E=, smso=\E[7m, smul=\E[4m,
9353# From: David S. Lawyer, June 1997:
9354# The CIT 101-e was made in Japan in 1983-4 and imported by CIE
9355# Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
9356# late 1980's CIT Terminals went out of business.
9357# There is no need to use the initialization string is=... (by invoking
9358# tset or setterm etc.) provided that the terminal has been manually set
9359# up (and the setup saved with ^S) to be compatible with this termcap.  To be
9360# compatible it should be in ANSI mode (not VT52).   A set-up that
9361# works is to set all the manually setable stuff to factory defaults
9362# by pressing ^D in set-up mode.  Then increse the brighness with the
9363# up-arrow key since the factory default will likely be dim on an old
9364# terminal.  Then change any options you want (provided that they are
9365# compatible with the termcap).  For my terminal I set: Screen
9366# Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
9367# on.  I also set up mine for parity (but you may not need it).  Then
9368# save the setup with ^S.
9369# (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
9370cit101e-rv|Citoh CIT-101e (sets reverse video),
9371	am, eo, mir, msgr, xenl, xon,
9372	cols#80, it#8, lines#24,
9373	OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
9374	civis=\E[1v, clear=\E[H\E[J, cnorm=\E[0;3;4v, cr=^M,
9375	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
9376	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
9377	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9378	cvvis=\E[3;5v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
9379	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l\E[?5h$<200/>,
9380	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
9381	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
9382	is2=\E<\E>\E[?1l\E[?3l\E[?4l\E[?5h\E[?7h\E[?8h\E[3g\E[>5g\E(B\E[m\E[20l\E[1;24r\E[24;1H,
9383	kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9384	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8,
9385	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=, rmir=\E[4l,
9386	rmso=\E[m, rmul=\E[m, rs1=\Ec\E[?7h\E[>5g, sc=\E7,
9387	sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h, smir=\E[4h,
9388	smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR,
9389	u7=\E[6n, u8=\E[?6c, u9=\E[c,
9390cit101e-n|CIT-101e w/o am,
9391	am@,
9392	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
9393	use=cit101e,
9394cit101e-132|CIT-101e with 132 cols,
9395	cols#132,
9396	kbs=^H, kcub1=^H, kcud1=^J, use=cit101e,
9397cit101e-n132|CIT-101e with 132 cols w/o am,
9398	am@,
9399	cols#132,
9400	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
9401	use=cit101e,
9402# CIE Terminals CIT-500 from BRL
9403# The following SET-UP modes are assumed for normal operation:
9404#	GENERATE_XON/XOFF:YES	DUPLEX:FULL		NEWLINE:OFF
9405#	AUTOWRAP:ON		MODE:ANSI		SCREEN_LENGTH:64_LINES
9406#	DSPLY_CNTRL_CODES?NO	PAGE_WIDTH:80		EDIT_MODE:OFF
9407# Other SET-UP modes may be set for operator convenience or communication
9408# requirements.
9409# Hardware tabs are assumed to be set every 8 columns; they can be set up
9410# by the "reset", "tset", or "tabs" utilities.  No delays are specified; use
9411# "stty ixon -ixany" to enable DC3/DC1 flow control!
9412# (cit500: I added <rmam>/<smam> based on the init string -- esr)
9413cit500|CIE Terminals CIT-500,
9414	OTbs, OTpt, mir, msgr, xon,
9415	OTkn#10, cols#80, it#8, lines#64, vt#3,
9416	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
9417	clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
9418	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
9419	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
9420	cuu=\E[%p1%dA, cuu1=\EM, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
9421	ed=\EJ, el=\EK, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
9422	il1=\E[L, ind=^J, is2=\E<\E)0, kbs=^H, kcbt=\E[Z, kcub1=\EOD,
9423	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[P, kdl1=\E[M,
9424	ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
9425	kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY, kf9=\EOZ,
9426	khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l, lf0=PF1,
9427	lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17, lf7=F18,
9428	lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rc=\E8, rev=\E[7m,
9429	ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
9430	rmso=\E[m, rmul=\E[m,
9431	rs1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>,
9432	sc=\E7, sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
9433	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
9434
9435# C. Itoh printers begin here
9436citoh|ci8510|8510|c.itoh 8510a,
9437	cols#80, it#8,
9438	bold=\E!, cub1@,
9439	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073.,
9440	rep=\ER%p2%03d%p1%c, ri=\Er, rmul=\EY, sgr0=\E"\EY,
9441	smul=\EX, use=lpr,
9442citoh-pica|citoh in pica,
9443	is1=\EN, use=citoh,
9444citoh-elite|citoh in elite,
9445	cols#96,
9446	is1=\EE,
9447	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089.,
9448	use=citoh,
9449citoh-comp|citoh in compressed,
9450	cols#136,
9451	is1=\EQ,
9452	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089\,097\,105\,113\,121\,129.,
9453	use=citoh,
9454# citoh has infinite cols because we don't want lp ever inserting \n\t**.
9455citoh-prop|citoh-ps|ips|citoh in proportional spacing mode,
9456	cols#32767,
9457	is1=\EP, use=citoh,
9458citoh-6lpi|citoh in 6 lines per inch mode,
9459	is3=\EA, use=citoh,
9460citoh-8lpi|citoh in 8 lines per inch mode,
9461	lines#88,
9462	is3=\EB, use=citoh,
9463
9464#### Control Data (cdc)
9465#
9466
9467cdc456|cdc 456 terminal,
9468	OTbs, am,
9469	cols#80, lines#24,
9470	bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
9471	cup=\E1%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dl1=\EJ, ed=^X,
9472	el=^V, home=^Y, il1=\EL, ind=^J,
9473
9474# Assorted CDC terminals from BRL (improvements by DAG & Ferd Brundick)
9475cdc721|CDC Viking,
9476	OTbs, am,
9477	cols#80, lines#24,
9478	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
9479	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
9480	kcuu1=^W, khome=^Y,
9481cdc721ll|CDC Vikingll,
9482	OTbs, am,
9483	cols#132, lines#24,
9484	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
9485	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
9486	kcuu1=^W, khome=^Y,
9487# (cdc752: the BRL entry had :ll=\E1  ^Z: commented out
9488cdc752|CDC 752,
9489	OTbs, am, bw, xhp,
9490	cols#80, lines#24,
9491	bel=^G, clear=\030\E1\s\s, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
9492	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z, el=^V,
9493	home=\E1\s\s, ind=^J, ll=^Y, rs1=\E1  \030\002\003\017,
9494# CDC 756
9495# The following switch/key settings are assumed for normal operation:
9496#	96 chars	SCROLL		FULL duplex	not BLOCK
9497# Other switches may be set according to communication requirements.
9498# Insert/delete-character cannot be used, as the whole display is affected.
9499# "so" & "se" are commented out until jove handles "sg" correctly.
9500cdc756|CDC 756,
9501	OTbs, am, bw,
9502	OTkn#10, cols#80, lines#24,
9503	bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
9504	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z,
9505	dl1=\EJ$<6*/>, ed=^X, el=^V, home=^Y, il1=\EL$<6*/>, ind=^J,
9506	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z, kdch1=\EI,
9507	kdl1=\EL, ked=^X, kel=^V, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED,
9508	kf4=\EE, kf5=\EF, kf6=\EG, kf7=\EH, kf8=\Ea, kf9=\Eb, khome=^Y,
9509	khts=^O, kich1=\EK, kil1=\EL, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
9510	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, ll=^Y^Z,
9511	rs1=\031\030\002\003\017,
9512#
9513# CDC 721 from Robert Viduya, Ga. Tech. <ihnp4!gatech!gitpyr!robert> via BRL.
9514#
9515# Part of the long initialization string defines the "DOWN" key to the left
9516# of the tab key to send an ESC.  The real ESC key is positioned way out
9517# in right field.
9518#
9519# The termcap won't work in 132 column mode due to the way it it moves the
9520# cursor.  Termcap doesn't have the capability (as far as I could tell) to
9521# handle the 721 in 132 column mode.
9522#
9523# (cdc721: changed :ri: to :sr: -- esr)
9524cdc721-esc|Control Data 721,
9525	OTbs, OTpt, am, bw, msgr, xon,
9526	OTkn#10, cols#80, it#8, lines#30,
9527	bel=^G, blink=^N, cbt=^^^K, clear=^L, cub1=^H, cud1=^Z,
9528	cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c, cuu1=^W,
9529	dch1=^^N, dim=^\, dl1=^^Q, ed=^^P, el=^K, home=^Y, hts=^^^RW,
9530	ich1=^^O, il1=^^R, ind=\036W =\036U, invis=^^^R[,
9531	is2=\036\022B\003\036\035\017\022\025\035\036E\036\022H\036\022J\036\022L\036\022N\036\022P\036\022Q\036\022\036\022\^\036\022b\036\022i\036W =\036\022Z\036\011C1-` `!k/o,
9532	kbs=^H, kcub1=^H, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^q,
9533	kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, kf7=^^x,
9534	kf8=^^y, kf9=^^z, khome=^Y, ll=^B =, rev=^^D,
9535	ri=\036W =\036V, rmir=, rmkx=^^^Rl, rmso=^^E, rmul=^],
9536	sgr0=\017\025\035\036E\036\022\\, smir=, smkx=^^^Rk,
9537	smso=^^D, smul=^\, tbc=^^^RY,
9538
9539#### Getronics
9540#
9541# Getronics is a Dutch electronics company that at one time was called
9542# `Geveke' and made async terminals; but (according to the company itself!)
9543# they've lost all their documentation on the command set.  The hardware
9544# documentation suggests the terminals were actually manufactured by a
9545# Taiwanese electronics company named Cal-Comp.  There are known
9546# to have been at least two models, the 33 and the 50.
9547#
9548
9549# The 50 seems to be a top end vt220 clone, with the addition of a higher
9550# screen resolution, a larger screen, at least 1 page of memory above and
9551# below the screen, apparently pages of memory right and left of the screen
9552# which can be panned, and about 75 function keys (15 function keys x normal,
9553# shift, control, func A, func B). It also has more setup possibilities than
9554# the vt220. The monitor case is dated November 1978 and the keyboard case is
9555# May 1982.
9556#
9557# The vt100 emulation works as is.  The entry below describes the rather
9558# non-conformant (but more featureful) ANSI mode.
9559#
9560# From: Stephen Peterson <stv@utrecht.ow.nl>, 27 May 1995
9561visa50|geveke visa 50 terminal in ansi 80 character mode,
9562	bw, mir, msgr,
9563	cols#80, lines#25,
9564	acsc=0_aaffggh jjkkllmmnnooqqssttuuvvwwxx, bel=^G,
9565	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=^M,
9566	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
9567	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
9568	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9569	dch=\E[%p1%dX, dch1=\E[X, dim=\E[2m, dl=\E[%p1%dM,
9570	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, home=\E[H,
9571	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
9572	il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m,
9573	is2=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h,
9574	ka1=\E[f, ka3=\EOQ, kb2=\EOP, kbs=^H, kc1=\EOR, kc3=\EOS,
9575	kcub1=\E[D, kcud1=\E[A, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
9576	kdl1=\EOS, kf0=\E010, kf1=\E001, kf10=\E011, kf2=\E002,
9577	kf3=\E003, kf4=\E004, kf5=\E005, kf6=\E006, kf7=\E007,
9578	kf8=\E008, kf9=\E009, khome=\E[f, lf2=A delete char,
9579	lf3=A insert line, lf4=A delete line, lf5=A clear,
9580	lf6=A ce of/cf gn, lf7=A print, lf8=A on-line,
9581	lf9=A funcl0=A send, nel=^M^J, rev=\E[7m, rmacs=\E[3l,
9582	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[0;2m,
9583	rmul=\E[0m, sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h,
9584	smir=\E[4h, smkx=\E=, smso=\E[2;7m, smul=\E[4m, tbc=\E[3g,
9585	vpa=\E[%i%p1%dd,
9586
9587#### Human Designed Systems (Concept)
9588#
9589#	Human Designed Systems
9590#	400 Fehley Drive
9591#	King of Prussia, PA 19406
9592#	Vox: (610)-277-8300
9593#	Fax: (610)-275-5739
9594#	Net: support@hds.com
9595#
9596# John Martin <john@hds.com> is their termcap expert.  They're mostly out of
9597# the character-terminal business now (1995) and making X terminals.  In
9598# particular, the whole `Concept' line described here was discontinued long
9599# ago.
9600#
9601
9602# From: <vax135!hpk>  Sat Jun 27 07:41:20 1981
9603# Extensive changes to c108 by arpavax:eric Feb 1982
9604# Some unknown person at SCO then translated it to terminfo.
9605#
9606# There seem to be a number of different versions of the C108 PROMS
9607# (with bug fixes in its Z-80 program).
9608#
9609# The first one that we had would lock out the keyboard of you
9610# sent lots of short lines (like /usr/dict/words) at 9600 baud.
9611# Try that on your C108 and see if it sends a ^S when you type it.
9612# If so, you have an old version of the PROMs.
9613#
9614# You should configure the C108 to send ^S/^Q before running this.
9615# It is much faster (at 9600 baud) than the c100 because the delays
9616# are not fixed.
9617# new status line display entries for c108-8p:
9618# <is3> - init str #3 - setup term for status display -
9619# set programmer mode, select window 2, define window at last
9620# line of memory, set bkgnd stat mesg there, select window 0.
9621#
9622# <tsl> - to status line - select window 2, home cursor, erase to
9623# end-of-window, 1/2 bright on, goto(line#0, col#?)
9624#
9625# <fsl> - from status line - 1/2 bright off, select window 0
9626#
9627# <dsl> - disable status display - set bkgnd status mesg with
9628# illegal window #
9629#
9630# There are probably more function keys that should be added but
9631# I don't know what they are.
9632#
9633# No delays needed on c108 because of ^S/^Q handshaking
9634#
9635c108|concept108|c108-8p|concept108-8p|concept 108 w/8 pages,
9636	is3=\EU\E z"\Ev\001\177 !p\E ;"\E z \Ev  \001\177p\Ep\n,
9637	rmcup=\Ev  \001\177p\Ep\r\n, use=c108-4p,
9638c108-4p|concept108-4p|concept 108 w/4 pages,
9639	OTbs, eslok, hs, xon,
9640	pb@,
9641	acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=^M,
9642	cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}%>%t\001%{96}%-%;%{32}%+%c,
9643	cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s,
9644	ind=^J, is1=\EK\E!\E F,
9645	is3=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n,
9646	rmacs=\Ej\s, rmcup=\Ev  \001 p\Ep\r\n, smacs=\Ej!,
9647	smcup=\EU\Ev  8p\Ep\r\E\025,
9648	tsl=\E z"\E?\E\005\EE\Ea %+\s, use=c100,
9649c108-rv|c108-rv-8p|concept 108 w/8 pages in reverse video,
9650	rmcup=\Ev  \002 p\Ep\r\n, smcup=\EU\Ev  8p\Ep\r,
9651	use=c108-rv-4p,
9652c108-rv-4p|concept108rv4p|concept 108 w/4 pages in reverse video,
9653	flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee, smso=\EE,
9654	use=c108-4p,
9655c108-w|c108-w-8p|concept108-w-8|concept108-w8p|concept 108 w/8 pages in wide mode,
9656	cols#132,
9657	is1=\E F\E", rmcup=\Ev  ^A0\001D\Ep\r\n,
9658	smcup=\EU\Ev  8\001D\Ep\r, use=c108-8p,
9659
9660# Concept 100:
9661# These have only window relative cursor addressing, not screen
9662# relative. To get it to work right here, smcup/rmcup (which
9663# were invented for the concept) lock you into a one page
9664# window for screen style programs.
9665#
9666# To get out of the one page window, we use a clever trick:
9667# we set the window size to zero ("\Ev    " in rmcup) which the
9668# terminal recognizes as an error and resets the window to all
9669# of memory.
9670#
9671# This trick works on c100 but does not on c108, sigh.
9672#
9673# Some tty drivers use cr3 for concept, others use nl3, hence
9674# the delays on cr and ind below. This padding is only needed at
9675# 9600 baud and up.  One or the other is commented out depending on
9676# local conventions.
9677#
9678# 2 ms padding on <rmcup> isn't always enough. 6 works fine. Maybe
9679# less than 6 but more than 2 will work.
9680#
9681# Note: can't use function keys f7-f10 because they are
9682# indistinguishable from arrow keys (!), also, del char and
9683# clear eol use xon/xoff so they probably won't work very well.
9684#
9685# Also note that we don't define insrt/del char/delline/eop/send
9686# because they don't transmit unless we reset them - I figured
9687# it was a bad idea to clobber their definitions.
9688#
9689# The <mc5> sequence changes the escape character to ^^ so that
9690# escapes will be passed through to the printer. Only trouble
9691# is that ^^ won't be - ^^ was chosen to be unlikely.
9692# Unfortunately, if you're sending raster bits through to be
9693# plotted, any character you choose will be likely, so we lose.
9694#
9695# \EQ"\EY(^W (send anything from printer to host, for xon/xoff)
9696# cannot be # in is2 because it will hang a c100 with no printer
9697# if sent twice.
9698c100|concept100|concept|c104|c100-4p|hds concept 100,
9699	OTbs, am, eo, mir, ul, xenl,
9700	cols#80, lines#24, pb#9600, vt#8,
9701	bel=^G, blink=\EC, clear=\E?\E\005$<2*>, cr=$<9>\r,
9702	cub1=^H, cud1=^J, cuf1=\E=,
9703	cup=\Ea%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E;,
9704	dch1=\E\021$<16*>, dim=\EE, dl1=\E\002$<3*>,
9705	ed=\E\005$<16*>, el=\E\025$<16>, flash=\Ek$<200>\EK,
9706	ht=\011$<8>, il1=\E\022$<3*>, ind=^J, invis=\EH, ip=$<16*>,
9707	is1=\EK,
9708	is2=\EU\Ef\E7\E5\E8\El\ENH\E\0\Eo&\0\Eo'\E\Eo!\0\E\007!\E\010A@ \E4#\:"\E\:a\E4#;"\E\:b\E4#<"\E\:c,
9709	is3=\Ev    $<6>\Ep\n, kbs=^H, kcbt=\E', kctab=\E_,
9710	kcub1=\E>, kcud1=\E<, kcuf1=\E=, kcuu1=\E;, kdch1=\E^Q,
9711	kdl1=\E^B, ked=\E^C, kel=\E^S, kf1=\E5, kf2=\E6, kf3=\E7,
9712	kf4=\E8, kf5=\E9, kf6=\E\:a, kf7=\E\:b, kf8=\E\:c, khome=\E?,
9713	khts=\E], kich1=\E^P, kil1=\E^R, kind=\E[, knp=\E-, kpp=\E.,
9714	kri=\E\\, krmir=\E\0, mc4=\036o \E\EQ!\EYP\027,
9715	mc5=\EQ"\EY(\027\EYD\Eo \036, prot=\EI,
9716	rep=\Er%p1%c%p2%{32}%+%c$<.2*>, rev=\ED,
9717	rmcup=\Ev    $<6>\Ep\r\n, rmir=\E\s\s, rmkx=\Ex,
9718	rmso=\Ed, rmul=\Eg, sgr0=\EN@,
9719	smcup=\EU\Ev  8p\Ep\r\E\025$<16>, smir=\E^P, smkx=\EX,
9720	smso=\ED, smul=\EG,
9721c100-rv|c100-rv-4p|concept100-rv|c100 rev video,
9722	cnorm@, cvvis@, flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee,
9723	smso=\EE, use=c100,
9724oc100|oconcept|c100-1p|old 1 page concept 100,
9725	in,
9726	is3@, use=c100,
9727
9728# From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
9729# Lots of notes, originally inline, but ncurses doesn't grok that.
9730#
9731# am: 	not available in power on mode, but turned on with \E[=107;207h in
9732#	is2=.  Also, \E=124l in is2= could have been used to prevent needing
9733#	to specify xenl:, but that would have rendered the last space on the
9734#	last line useless.
9735# bw:	Not available in power on mode, but turned on with \E[=107;207h in
9736#	is2=.
9737# clear: Could be done with \E[2J alone, except that vi (and probably most
9738#	other programs) assume that this also homes the cursor.
9739# dsl:	Go to window 2, go to the beginning of the line, use a line feed to
9740#	scroll the window, and go back to window 1.
9741# is2:	the string may cause a warning to be issued by tic that it
9742#	found a very long line and that it suspects that a comma is missing
9743#	somewhere.  This warning can be ignored (unless it comes up more than
9744#	once).  The initialization string contains the following commands:
9745#
9746#	 [Setup mode items changed from factory defaults:]
9747#		\E)0			set alternate character set to
9748#						graphics
9749#		^O			set character set to default
9750#	 [In case it wasn't]
9751#		\E[m			turn off all attributes
9752#	 [In case they weren't off]
9753#		\E[=107;		cursor wrap and
9754#			207h			character wrap on
9755#		\E[90;3u		set Fkey definitions to "transmit"
9756#						defaults
9757#		\E[92;3u		set cursor key definitions to
9758#						"transmit" defaults
9759#		\E[43;1u		set shift F13 to transmit...
9760#		\177\E$P\177
9761#		\E[44;1u		set shift F14 to transmit...
9762#			\177\E$Q\177
9763#		\E[45;1u		set shift F15 to transmit...
9764#			\177\E$R\177
9765#		\E[46;1u		set shift F16 to transmit...
9766#			\177\E$S\177
9767#		\E[200;1u		set shift up to transmit...
9768#			\177\E$A\177
9769#		\E[201;1u		set shift down to transmit...
9770#			\177\E$B\177
9771#		\E[202;1u		set shift right to transmit...
9772#			\177\E$C\177
9773#		\E[203;1u		set shift left to transmit...
9774#			\177\E$D\177
9775#		\E[204;1u		set shift home to transmit...
9776#			\177\E$H\177
9777#		\E[212;1u		set backtab to transmit...
9778#			\177\E$I\177
9779#		\E[213;1u		set shift backspace to transmit...
9780#			\177\E$^H\177
9781#		\E[214;1u		set shift del to transmit...
9782#			"\E$\177"
9783#	 [Necessary items not mentioned in setup mode:]
9784#		\E[2!w			move to window 2
9785#		\E[25;25w		define window as line 25 of memory
9786#		\E[!w			move to window 1
9787#		\E[2*w			show current line of window 2 as
9788#						status line
9789#		\E[2+x			set meta key to use high bit
9790#		\E[;3+}			move underline to bottom of character
9791#
9792#	All Fkeys are set to their default transmit definitions with \E[90;3u
9793#	in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
9794#	setting MUST be redefined or deactivated, because the default is
9795#	contained in almost all of this terminal's Fkey strings!  If for some
9796#	reason "quit" cannot be altered, the Fkeys can, but it would be
9797#	necessary to change ^| to ^] in all of these definitions, and add
9798#	\E[2;029!t to is2.
9799# lines: is set to 24 because this terminal refuses to treat the 25th
9800#	line normally.
9801# ll:	Not available in power on mode, but turned on with \E[=107;207h in
9802#	is2=.
9803# lm:	Pointless, given that this definition locks a single screen of
9804#	memory into view, but what the hey...
9805# rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
9806#	other attributes alone), but some programs expect this to turn off
9807#	everything.
9808# rmul: Could use \E[4!{ to turn off only underline (leaving any other
9809#	attributes alone), but some programs expect this to turn off
9810#	everything.
9811# sgr:	Attributes are set on this terminal with the string \E[ followed by
9812#	a list of attribute code numbers (in decimal, separated by
9813#	semicolons), followed by the character m.  The attribute code
9814#	numbers are:
9815#		  1 for bold;
9816#		  2 for dim (which is ignored in power on mode);
9817#		  4 for underline;
9818#		  5 for blinking;
9819#		  7 for inverse;
9820#		  8 for not displayable; and
9821#		=99 for protected (except that there are strange side
9822#		effects to protected characters which make them inadvisable).
9823#	 The mapping of terminfo parameters to attributes is as follows:
9824#		%p1 (standout) = bold and inverse together;
9825#		%p2 (underline) = underline;
9826#		%p3 (reverse) = inverse;
9827#		%p4 (blink) = blinking;
9828#		%p5 (dim) is ignored;
9829#		%p6 (bold) = bold;
9830#		%p7 (invisible) = not displayable;
9831#		%p8 (protected) is ignored; and
9832#		%p9 (alt char set) = alt char set.
9833#	 The code to do this is:
9834#		\E[0		OUTPUT	\E[0
9835#		%?%p1%p6%O	IF	(standout; bold) OR
9836#		%t;1		THEN	OUTPUT	;1
9837#		%;		ENDIF
9838#		%?%p2		IF	underline
9839#		%t;4		THEN	OUTPUT	;4
9840#		%;		ENDIF
9841#		%?%p4		IF	blink
9842#		%t;5		THEN	OUTPUT	;5
9843#		%;		ENDIF
9844#		%?%p1%p3%O	IF	(standout; reverse) OR
9845#		%t;7		THEN	OUTPUT	;7
9846#		%;		ENDIF
9847#		%?%p7		IF	invisible
9848#		%t;8		THEN	OUTPUT	;8
9849#		%;		ENDIF
9850#		m		OUTPUT	m
9851#		%?%p9		IF	altcharset
9852#		%t^N		THEN	OUTPUT	^N
9853#		%e^O		ELSE	OUTPUT	^O
9854#		%;		ENDIF
9855# sgr0: Everything is turned off (including alternate character set), since
9856#	there is no way of knowing what it is that the program wants turned
9857#	off.
9858# smul: The "underline" attribute is reconfigurable to an overline or
9859#	strikethru, or (as done with \E[;3+} in is2=), to a line at the true
9860#	bottom of the character cell.  This was done to allow for more readable
9861#	underlined characters, and to be able to distinguish between an
9862#	underlined space, an underscore, and an underlined underscore.
9863# xenl: Terminal can be configured to not need this, but this "glitch"
9864#	behavior is actually preferable with autowrap terminals.
9865#
9866# Parameters kf31= thru kf53= actually contain the strings sent by the shifted
9867# Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
9868# string modifies the 'O' in kf43 to kf46 to a '$'.
9869#
9870# kcbt was originally ^I but redefined in is2=.
9871# kHOM was \E[H originally but redefined in is2=, as were a number of
9872# other keys.
9873# kDC was originally \177 but redefined in is2=.
9874#
9875# kbs:	Shift was also ^H originally but redefined as \E$^H in is2=.
9876# tsl:	Go to window 2, then do an hpa=.
9877#
9878#------- flash=\E[8;3!}^G\E[3;3!}
9879#------- flash=\E[?5h$<100>\E[?5l
9880# There are two ways to flash the screen, both of which have their drawbacks.
9881# The first is to set the bell mode to video, transmit a bell character, and
9882# set the bell mode back - but to what?  There is no way of knowing what the
9883# user's old bell setting was before we messed with it.  Worse, the command to
9884# set the bell mode also sets the key click volume, and there is no way to say
9885# "leave that alone", or to know what it's set to, either.
9886# The second way to do a flash is to set the screen to inverse video, pad for a
9887# tenth of a second, and set it back - but like before, there's no way to know
9888# that the screen wasn't ALREADY in inverse video, or that the user may prefer
9889# it that way.  The point is moot anyway, since vi (and probably other
9890# programs) assume that by defining flash=, you want the computer to use it
9891# INSTEAD of bel=, rather than as a secondary type of signal.
9892#
9893#------- cvvis=\E[+{
9894# The is the power on setting, which is also as visible as the cursor
9895# gets.
9896#-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
9897# Windowing is possible, but not defined here because it is also used to
9898# emulate status line functions.  Allowing a program to set a window could
9899# clobber the status line or render it unusable.  There is additional memory,
9900# but screen scroll functions are destructive and do not make use of it.
9901#
9902#-------   dim=			Not available in power on mode.
9903# You have a choice of defining low intensity characters as "half bright" and
9904# high intensity as "normal", or defining low as "normal" and high as "bold".
9905# No matter which you choose, only one of either "half bright" or "bold" is
9906# available at any time, so taking the time to override the default is
9907# pointless.
9908#
9909#-------  prot=\E[=0;99m
9910# Not defined, because it appears to have some strange side effects.
9911#------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
9912#------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
9913#-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
9914#	 Available, but making them available to programs is inadvisable.
9915#	 The code to do this is:
9916#		%?%p1%{24}%<	IF	((key; 24) <;
9917#		%p1%{30}%>		 ((key; 30) >;
9918#		%p1%{54}%<		  (key; 54) <
9919#		%A			 ) AND
9920#		%O		  	) OR
9921#	 [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
9922#		%t\E[		THEN	OUTPUT	\E[
9923#		%p1%d			OUTPUT	(key) as decimal
9924#	 [next line applies to pfx only]
9925#		;1			OUTPUT	;1
9926#		u			OUTPUT	u
9927#		\177			OUTPUT	\177
9928#		%p2%s			OUTPUT	(string) as string
9929#		\177			OUTPUT	\177
9930#	 [DEL chosen as delimiter, but could be any character]
9931#	 [implied:		ELSE	do nothing]
9932#		%;		ENDIF
9933#
9934#-------   rs2=
9935# Not defined since anything it might do could be done faster and easier with
9936# either Meta-Shift-Reset or the main power switch.
9937#
9938#-------  smkx=\E[1!z
9939#-------  rmkx=\E[!z
9940# These sequences apply to the cursor and setup keys only, not to the
9941# numeric keypad.  But it doesn't matter anyway, since making these
9942# available to programs is inadvisable.
9943# For the key definitions below, all sequences beginning with \E$ are
9944# custom and programmed into the terminal via is2.  \E$ also has no
9945# meaning to any other terminal.
9946#
9947#------- cmdch=\E[;%p1%d!t
9948# Available, but making it available to programs is inadvisable.
9949#------- smxon=\E[1*q
9950# Available, but making it available to programs is inadvisable.
9951# Terminal will send XON/XOFF on buffer overflow.
9952#------- rmxon=\E[*q
9953# Available, but making it available to programs is inadvisable.
9954# Terminal will not notify on buffer overflow.
9955#-------   smm=\E[2+x
9956#-------   rmm=\E[+x
9957# Available, but making them available to programs is inadvisable.
9958#
9959# Printing:
9960#	 It's not made clear in the manuals, but based on other ansi/vt type
9961#	 terminals, it's a good guess that this terminal is capable of both
9962#	 "transparent print" (which doesn't copy data to the screen, and
9963#	 therefore needs mc5i: specified to say so) and "auxilliary print"
9964#	 (which does duplicate printed data on the screen, in which case mc4=
9965#	 and mc5= should use the \E[?4i and \E[?5i strings instead).
9966
9967hds200|Human Designed Systems HDS200,
9968	am, bw, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
9969	cols#80, it#8, lines#24, lm#0,
9970	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
9971	blink=\E[0;5m, bold=\E[0;1m, cbt=\E[Z, civis=\E[6+{,
9972	clear=\E[H\E[J, cnorm=\E[+{, cr=^M,
9973	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
9974	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
9975	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9976	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
9977	dsl=\E[2!w\r\n\E[!w, ed=\E[J, el=\E[K, el1=\E[1K,
9978	fsl=\E[!w, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
9979	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
9980	invis=\E[0;8m,
9981	is2=\E)0\017\E[m\E[=107;207h\E[90;3u\E[92;3u\E[43;1u\177\E$P\177\E[44;1u\177\E$Q\177\E[45;1u\177\E$R\177\E[46;1u\177\E$S\177\E[200;1u\177\E$A\177\E[201;1u\177\E$B\177\E[202;1u\177\E$C\177\E[203;1u\177\E$D\177\E[204;1u\177\E$H\177\E[212;1u\177\E$I\177\E[213;1u\177\E$\010\177\E[214;1u"\E$\177"\E[2!w\E[25;25w\E[!w\E[2*w\E[2+x\E[;3+},
9982	kDC=\E$\177, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kbs=^H,
9983	kcbt=\E$I, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9984	kdch1=\177, kent=^M, kf1=^\001\r, kf10=^\010\r,
9985	kf11=^\011\r, kf12=^\012\r, kf13=\EOP, kf14=\EOQ,
9986	kf15=\EOR, kf16=\EOS, kf17=^\017\r, kf18=^\018\r,
9987	kf19=^\019\r, kf2=^\002\r, kf20=^\020\r, kf21=^\021\r,
9988	kf22=^\022\r, kf23=^\023\r, kf3=^\003\r, kf31=^\031\r,
9989	kf32=^\032\r, kf33=^\033\r, kf34=^\034\r, kf35=^\035\r,
9990	kf36=^\036\r, kf37=^\037\r, kf38=^\038\r, kf39=^\039\r,
9991	kf4=^\004\r, kf40=^\040\r, kf41=^\041\r, kf42=^\042\r,
9992	kf43=\E$P, kf44=\E$Q, kf45=\E$R, kf46=\E$S, kf47=^\047\r,
9993	kf48=^\048\r, kf49=^\049\r, kf5=^\005\r, kf50=^\050\r,
9994	kf51=^\051\r, kf52=^\052\r, kf53=^\053\r, kf6=^\006\r,
9995	kf7=^\007\r, kf8=^\008\r, kf9=^\009\r, khome=\E[H,
9996	kind=\E[T, knp=\E[U, kpp=\E[V, kri=\E[S, ll=\E[H\E[A,
9997	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\E[E, rc=\E8,
9998	rev=\E[0;7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmso=\E[m\017,
9999	rmul=\E[m\017, sc=\E7,
10000	sgr=\E[0%?%p1%p6%O%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%O%t;7%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
10001	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m,
10002	smul=\E[0;4m, tbc=\E[3g, tsl=\E[2!w\E[%i%p1%dG,
10003	vpa=\E[%i%p1%dd,
10004
10005# <ht> through <el> included to specify padding needed in raw mode.
10006# (avt-ns: added empty <acsc> to suppress a tic warning --esr)
10007avt-ns|concept avt no status line,
10008	OTbs, am, eo, mir, ul, xenl, xon,
10009	cols#80, it#8, lines#24, lm#192,
10010	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
10011	clear=\E[H\E[J$<38>, cnorm=\E[=119l, cr=^M,
10012	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10013	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10014	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10015	cvvis=\E[=119h, dch1=\E[P, dim=\E[1!{, dl=\E[%p1%dM$<4*>,
10016	dl1=\E[M$<4>, ed=\E[J$<96>, el=\E[K$<6>, home=\E[H,
10017	hpa=\E[%p1%{1}%+%dG, ht=\011$<4>, hts=\EH, ich=\E[%p1%d@,
10018	ich1=\E[@, il=\E[%p1%dL$<4*>, il1=\E[L$<4>, ind=\n$<8>,
10019	invis=\E[8m, ip=$<4>, is1=\E[=103l\E[=205l,
10020	is2=\E[1*q\E[2!t\E[7!t\E[=4;101;119;122l\E[=107;118;207h\E)1\E[1Q\EW\E[!y\E[!z\E>\E[0\:0\:32!r\E[0*w\E[w\E2\r\n\E[2;27!t,
10021	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10022	kdch1=\E^B\r, ked=\E^D\r, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
10023	kf4=\EOS, khome=\E[H, kich1=\E^A\r, kil1=\E^C\r, ll=\E[24H,
10024	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
10025	pfloc=\E[%p1%d;0u#%p2%s#, pfx=\E[%p1%d;1u#%p2%s#,
10026	prot=\E[99m, rc=\E8, rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
10027	ri=\EM$<4>, rmacs=\016$<1>, rmcup=\E[w\E2\r\n,
10028	rmir=\E[4l, rmkx=\E[!z\E[0;2u, rmso=\E[7!{, rmul=\E[4!{,
10029	sc=\E7,
10030	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
10031	sgr0=\E[m, smacs=\017$<1>, smcup=\E[=4l\E[1;24w\E2\r,
10032	smir=\E[4h, smkx=\E[1!z\E[0;3u, smso=\E[7m, smul=\E[4m,
10033	tbc=\E[2g, vpa=\E[%p1%{1}%+%dd,
10034avt-rv-ns|concept avt in reverse video mode/no status line,
10035	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
10036	use=avt-ns,
10037avt-w-ns|concept avt in 132 column mode/no status line,
10038	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
10039	use=avt-ns,
10040avt-w-rv-ns|concept avt in 132 column mode/no status line/reverse video,
10041	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
10042	smcup=\E[H\E[1;24;1;132w, use=avt-ns,
10043
10044# Concept AVT with status line. We get the status line using the
10045# "Background status line" feature of the terminal. We swipe the
10046# first line of memory in window 2 for the status line, keeping
10047# 191 lines of memory and 24 screen lines for regular use.
10048# The first line is used instead of the last so that this works
10049# on both 4 and 8 page AVTs. (Note the lm#191 or 192 - this
10050# assumes an 8 page AVT but lm isn't currently used anywhere.)
10051#
10052avt+s|concept avt status line changes,
10053	eslok, hs,
10054	lm#191,
10055	dsl=\E[0*w, fsl=\E[1;1!w,
10056	is3=\E[2w\E[2!w\E[1;1;1;80w\E[H\E[2*w\E[1!w\E2\r\n,
10057	rmcup=\E[2w\E2\r\n, smcup=\E[2;25w\E2\r,
10058	tsl=\E[2;1!w\E[;%p1%dH\E[2K,
10059avt|avt-s|concept-avt|avt w/80 columns,
10060	use=avt+s, use=avt-ns,
10061avt-rv|avt-rv-s|avt reverse video w/sl,
10062	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
10063	use=avt+s, use=avt-ns,
10064avt-w|avt-w-s|concept avt 132 cols+status,
10065	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
10066	use=avt+s, use=avt-ns,
10067avt-w-rv|avt-w-rv-s|avt wide+status+rv,
10068	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
10069	smcup=\E[H\E[1;24;1;132w, use=avt+s, use=avt-ns,
10070
10071#### Contel Business Systems.
10072#
10073
10074# Contel c300 and c320 terminals.
10075contel300|contel320|c300|Contel Business Systems C-300 or C-320,
10076	am, in, xon,
10077	cols#80, lines#24, xmc#1,
10078	bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
10079	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
10080	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
10081	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
10082	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
10083	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
10084	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
10085	rmso=\E!\0, sgr0=\E!\0, smso=\E!\r, tbc=\E3,
10086# Contel c301 and c321 terminals.
10087contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321,
10088	flash@, ich1@, ip@, rmso=\E!\0$<20>, smso=\E!\r$<20>,
10089	use=contel300,
10090
10091#### Data General (dg)
10092#
10093# According to James Carlson <carlson@xylogics.com> writing in January 1995,
10094# the terminals group at Data General was shut down in 1991; all these
10095# terminals have thus been discontinued.
10096#
10097# DG terminals have function keys that respond to the SHIFT and CTRL keys,
10098# e.g., SHIFT-F1 generates a different code from F1.  To number the keys
10099# sequentially, first the unmodified key codes are listed as F1 through F15.
10100# Then their SHIFT versions are listed as F16 through F30, their CTRL versions
10101# are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
10102# F46 through F60.  This is done in the private "includes" below whose names
10103# start with "dgkeys+".
10104#
10105# DG terminals generally support 8 bit characters.  For each of these terminals
10106# two descriptions are supplied:
10107#	1) A default description for 8 bits/character communications, which
10108#	   uses the default DG international character set and keyboard codes.
10109#	2) A description with suffix "-7b" for 7 bits/character communications.
10110#	   This description must use the NON-DEFAULT native keyboard language.
10111
10112# Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
10113# Ctrl/Shift fdkeys (kf34-kf44).
10114
10115dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys,
10116	ka1=\233020z, ka3=\233021z, kc1=\233022z, kc3=\233023z,
10117	kclr=\2332J, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
10118	kcuu1=\233A, kel=\233K, kf1=\233001z, kf10=\233010z,
10119	kf11=\233011z, kf12=\233012z, kf13=\233013z,
10120	kf14=\233014z, kf15=\233000z, kf16=\233101z,
10121	kf17=\233102z, kf18=\233103z, kf19=\233104z,
10122	kf2=\233002z, kf20=\233105z, kf21=\233106z,
10123	kf22=\233107z, kf23=\233108z, kf24=\233109z,
10124	kf25=\233110z, kf26=\233111z, kf27=\233112z,
10125	kf28=\233113z, kf29=\233114z, kf3=\233003z,
10126	kf30=\233100z, kf31=\233201z, kf32=\233202z,
10127	kf33=\233203z, kf34=\233204z, kf35=\233205z,
10128	kf36=\233206z, kf37=\233207z, kf38=\233208z,
10129	kf39=\233209z, kf4=\233004z, kf40=\233210z,
10130	kf41=\233211z, kf42=\233212z, kf43=\233213z,
10131	kf44=\233214z, kf45=\233200z, kf46=\233301z,
10132	kf47=\233302z, kf48=\233303z, kf49=\233304z,
10133	kf5=\233005z, kf50=\233305z, kf51=\233306z,
10134	kf52=\233307z, kf53=\233308z, kf54=\233309z,
10135	kf55=\233310z, kf56=\233311z, kf57=\233312z,
10136	kf58=\233313z, kf59=\233314z, kf6=\233006z,
10137	kf60=\233300z, kf7=\233007z, kf8=\233008z, kf9=\233009z,
10138	khome=\233H, kprt=\233i,
10139
10140dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys,
10141	ka1=\E[020z, ka3=\E[021z, kc1=\E[022z, kc3=\E[023z,
10142	kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10143	kel=\E[K, kf1=\E[001z, kf10=\E[010z, kf11=\E[011z,
10144	kf12=\E[012z, kf13=\E[013z, kf14=\E[014z, kf15=\E[000z,
10145	kf16=\E[101z, kf17=\E[102z, kf18=\E[103z, kf19=\E[104z,
10146	kf2=\E[002z, kf20=\E[105z, kf21=\E[106z, kf22=\E[107z,
10147	kf23=\E[108z, kf24=\E[109z, kf25=\E[110z, kf26=\E[111z,
10148	kf27=\E[112z, kf28=\E[113z, kf29=\E[114z, kf3=\E[003z,
10149	kf30=\E[100z, kf31=\E[201z, kf32=\E[202z, kf33=\E[203z,
10150	kf34=\E[204z, kf35=\E[205z, kf36=\E[206z, kf37=\E[207z,
10151	kf38=\E[208z, kf39=\E[209z, kf4=\E[004z, kf40=\E[210z,
10152	kf41=\E[211z, kf42=\E[212z, kf43=\E[213z, kf44=\E[214z,
10153	kf45=\E[200z, kf46=\E[301z, kf47=\E[302z, kf48=\E[303z,
10154	kf49=\E[304z, kf5=\E[005z, kf50=\E[305z, kf51=\E[306z,
10155	kf52=\E[307z, kf53=\E[308z, kf54=\E[309z, kf55=\E[310z,
10156	kf56=\E[311z, kf57=\E[312z, kf58=\E[313z, kf59=\E[314z,
10157	kf6=\E[006z, kf60=\E[300z, kf7=\E[007z, kf8=\E[008z,
10158	kf9=\E[009z, khome=\E[H, kprt=\E[i,
10159
10160dgkeys+11|Private entry describing 11 minimal-subset DG mode special keys,
10161	kclr=^L, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kel=^K,
10162	kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^a, kf13=^^b, kf14=^^c,
10163	kf15=^^d, kf16=^^e, kf17=^^f, kf18=^^g, kf19=^^h, kf2=^^r,
10164	kf20=^^i, kf21=^^j, kf22=^^k, kf23=^^1, kf24=^^2, kf25=^^3,
10165	kf26=^^4, kf27=^^5, kf28=^^6, kf29=^^7, kf3=^^s, kf30=^^8,
10166	kf31=^^9, kf32=^^\:, kf33=^^;, kf34=^^!, kf35=^^", kf36=^^#,
10167	kf37=^^$, kf38=^^%%, kf39=^^&, kf4=^^t, kf40=^^', kf41=^^(,
10168	kf42=^^), kf43=^^*, kf44=^^+, kf5=^^u, kf6=^^v, kf7=^^w,
10169	kf8=^^x, kf9=^^y, khome=^H,
10170
10171dgkeys+15|Private entry describing 15 DG mode special keys,
10172	kHOM=^^^H, kLFT=^^^Y, kRIT=^^^X, ka1=^^\\, ka3=^^], kc1=^^\^,
10173	kc3=^^_, kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^|, kf13=^^},
10174	kf14=^^~, kf15=^^p, kf16=^^a, kf17=^^b, kf18=^^c, kf19=^^d,
10175	kf2=^^r, kf20=^^e, kf21=^^f, kf22=^^g, kf23=^^h, kf24=^^i,
10176	kf25=^^j, kf26=^^k, kf27=^^l, kf28=^^m, kf29=^^n, kf3=^^s,
10177	kf30=^^`, kf31=^^1, kf32=^^2, kf33=^^3, kf34=^^4, kf35=^^5,
10178	kf36=^^6, kf37=^^7, kf38=^^8, kf39=^^9, kf4=^^t, kf40=^^\:,
10179	kf41=^^;, kf42=^^<, kf43=^^=, kf44=^^>, kf45=^^0, kf46=^^!,
10180	kf47=^^", kf48=^^#, kf49=^^$, kf5=^^u, kf50=^^%%, kf51=^^&,
10181	kf52=^^', kf53=^^(, kf54=^^), kf55=^^*, kf56=^^+, kf57=^^\,,
10182	kf58=^^-, kf59=^^., kf6=^^v, kf60=^^\s, kf7=^^w, kf8=^^x,
10183	kf9=^^y,
10184
10185# Data General color terminals use the "Tektronix" color model.  The total
10186# number of colors varies with the terminal model, as does support for
10187# attributes used in conjunction with color.
10188
10189# Removed u7, u8 definitions since they conflict with tack:
10190#		Preserve user-defined colors in at least some cases.
10191#	u7=^^Fh,
10192#		Default is ACM mode.
10193#	u8=^^F}20^^Fi^^F}21,
10194#
10195dgunix+fixed|Fixed color info for DG D430C terminals in DG-UNIX mode,
10196	bce,
10197	colors#16, ncv#53, pairs#256,
10198	op=\036Ad\036Bd,
10199	setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10200	setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10201	setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
10202
10203dg+fixed|Fixed color info for DG D430C terminals in DG mode,
10204	use=dgunix+fixed,
10205
10206# Video attributes are coordinated using static variables set by "sgr", then
10207# checked by "op", "seta[bf]", and "set[bf]" to refresh the attribute settings.
10208# (D=dim, U=underline, B=blink, R=reverse.)
10209dg+color8|Color info for Data General D220 and D230C terminals in ANSI mode,
10210	bce,
10211	colors#8, ncv#16, pairs#64,
10212	op=\E[%?%gD%t2;%;%?%gU%t4;%;%?%gB%t5;%;%?%gR%t7;%;m,
10213	setab=\E[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10214	setaf=\E[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10215	setb=\E[4%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10216	setf=\E[3%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10217
10218dg+color|Color info for Data General D470C terminals in ANSI mode,
10219	colors#16, ncv#53, pairs#256,
10220	setab=\E[%?%p1%{8}%<%t4%p1%e=%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10221	setaf=\E[%?%p1%{8}%<%t3%p1%e<%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10222	setb=\E[%?%p1%{8}%<%t4%e=%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10223	setf=\E[%?%p1%{8}%<%t3%e<%;%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10224	use=dg+color8,
10225
10226dgmode+color8|Color info for Data General D220/D230C terminals in DG mode,
10227	bce,
10228	colors#8, ncv#16, pairs#64,
10229	op=\036Ad\036Bd,
10230	setab=\036B%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
10231	setaf=\036A%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
10232	setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
10233
10234dgmode+color|Color info for Data General D470C terminals in DG mode,
10235	colors#16, pairs#256,
10236	setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10237	setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10238	use=dgmode+color8,
10239
10240dgunix+ccc|Configurable color info for DG D430C terminals in DG-UNIX mode,
10241	bce, ccc,
10242	colors#52, ncv#53, pairs#26,
10243	initp=\036RG0%p1%02X%p2%{256}%*%{1001}%/%02X%p3%{256}%*%{1001}%/%02X%p4%{256}%*%{1001}%/%02X%p5%{256}%*%{1001}%/%02X%p6%{256}%*%{1001}%/%02X%p7%{256}%*%{1001}%/%02X,
10244	oc=\036RG01A00FF00000000\036RG01B00000000FF00\036RG01C007F00000000\036RG01D000000007F00,
10245	op=\036RF4831A\036RF2E31B\036RF1D31C\036RF3F31D,
10246	scp=\036RG2%p1%02X,
10247
10248# Colors are in the order:  normal, reverse, dim, dim + reverse.
10249dg+ccc|Configurable color info for DG D430C terminals in DG mode,
10250	bce, ccc,
10251	colors#52, ncv#53, pairs#26,
10252	initp=\036RG0%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c%p2%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p3%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p4%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p5%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p6%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c%p7%{256}%*%{1001}%/%Pa%ga%{16}%/%{48}%+%c%ga%{16}%m%{48}%+%c,
10253	oc=\036RG01\:00??00000000\036RG01;00000000??00\036RG01<007?00000000\036RG01=000000007?00,
10254	op=\036RF4831\:\036RF2>31;\036RF1=31<\036RF3?31=,
10255	scp=\036RG2%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c,
10256
10257# The generic DG terminal type (an 8-bit-clean subset of the 6053)
10258# Initialization string 1 sets:
10259#	^R		- vertical scrolling enabled
10260#	^C		- blinking enabled
10261dg-generic|Generic Data General terminal in DG mode,
10262	am, bw, msgr, xon,
10263	cols#80, lines#24,
10264	bel=^G, blink=^N, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
10265	cup=\020%p2%c%p1%c, cuu1=^W, dim=^\, el=^K, ind=^J, is1=^R^C,
10266	mc0=^Q, nel=^J, rmso=^], rmul=^U, sgr0=^O^U^], smso=^\,
10267	smul=^T, use=dgkeys+11,
10268
10269# According to the 4.4BSD termcap file, the dg200 <cup> should be the
10270# termcap equivalent of \020%p2%{128}%+%c%p1%{128}%+%c (in termcap
10271# notation that's "^P%r%+\200%+\200").  Those \200s are suspicious,
10272# maybe they were originally nuls (which would fit).
10273
10274dg200|data general dasher 200,
10275	OTbs, am, bw,
10276	cols#80, lines#24,
10277	bel=^G, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
10278	cup=\020%p2%c%p1%c, cuu1=^W, el=^K, home=^H, ind=^J,
10279	kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^z, kf1=^^q,
10280	kf2=^^r, kf3=^^s, kf4=^^t, kf5=^^u, kf6=^^v, kf7=^^w, kf8=^^x,
10281	kf9=^^y, khome=^H, lf0=f10, nel=^J, rmso=^^E, rmul=^U,
10282	smso=^^D, smul=^T,
10283
10284# Data General 210/211 (and 410?)	from Lee Pearson (umich!lp) via BRL
10285dg210|dg-ansi|Data General 210/211,
10286	am,
10287	cols#80, lines#24,
10288	OTnl=\E[B, clear=\E[2J, cud1=\E[B, cup=\E[%i%p1%d;%p2%dH,
10289	cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, kcub1=\E[D,
10290	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
10291	nel=\r\E[H\E[A\n, rmso=\E[0;m, rmul=\E[0;m, smso=\E[7;m,
10292	smul=\E[4;m,
10293# From: Peter N. Wan <ihnp4!gatech!gacsr!wan>
10294# courtesy of Carlos Rucalde of Vantage Software, Inc.
10295# (dg211: this had <cup=\020%r%.%>., which was an ancient termcap hangover.
10296# I suspect the d200 function keys actually work on the dg211, check it out.)
10297dg211|Data General d211,
10298	cnorm=^L, cvvis=^L^R, ht=^I, ind@, kbs=^Y, kf0@, kf1@, kf2@, kf3@,
10299	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, lf0@, nel=^M^Z, rmcup=^L,
10300	rmso=\036E$<\0/>, smcup=^L^R, smso=\036D$<5/>, use=dg200,
10301
10302# dg450 from Cornell (not official)
10303dg450|dg6134|data general 6134,
10304	cub1@, cuf1=^X, use=dg200,
10305
10306# Not official...
10307# Note: lesser Dasher terminals will not work with vi because vi insists upon
10308# having a command to move straight down from any position on the bottom line
10309# and scroll the screen up, or a direct vertical scroll command.  The 460 and
10310# above have both, the D210/211, for instance, has neither.  We must use ANSI
10311# mode rather than DG mode because standard UNIX tty drivers assume that ^H is
10312# backspace on all terminals.  This is not so in DG mode.
10313# (dg460-ansi: removed obsolete ":kn#6:"; also removed ":mu=\EW:", on the
10314# grounds that there is no matching ":ml:"
10315# fixed garbled ":k9=\E[00\:z:" capability -- esr)
10316dg460-ansi|Data General Dasher 460 in ANSI-mode,
10317	OTbs, am, msgr, ul,
10318	cols#80, it#8, lines#24,
10319	OTnl=\ED, blink=\E[5m, clear=\E[2J, cub1=^H, cud1=\E[B,
10320	cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P,
10321	dim=\E[2m, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
10322	ich1=\E[@, il1=\E[L, ind=\E[S, is2=^^F@, kbs=\E[D,
10323	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10324	kf0=\E[001z, kf1=\E[002z, kf2=\E[003z, kf3=\E[004z,
10325	kf4=\E[005z, kf5=\E[006z, kf6=\E[007z, kf7=\E[008z,
10326	kf8=\E[009z, kf9=\E[010z, khome=\E[H, lf0=f1, lf1=f2, lf2=f3,
10327	lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10, rev=\E[7m,
10328	ri=\E[T, rmso=\E[m, rmul=\E[05, sgr0=\E[m, smso=\E[7m,
10329	smul=\E[4m,
10330# From: Wayne Throop <mcnc!rti-sel!rtp47!throopw> (not official)
10331# Data General 605x
10332# Ought to work for a Model 6242, Type D210 as well as a 605x.
10333# Note that the cursor-down key transmits ^Z.  Job control users, beware!
10334# This also matches a posted description of something called a `Dasher 100'
10335# so there's a dg100 alias here.
10336# (dg6053: the 4.4BSD file had <cub1=^H>, <cud1=^J>, <cuf1=^S>. -- esr)
10337dg6053-old|dg100|data general 6053,
10338	OTbs, am, bw, ul,
10339	cols#80, lines#24,
10340	OTbc=^Y, bel=^G, clear=^L, cnorm=^L, cr=^M, cub1=^Y, cud1=^Z,
10341	cuf1=^X, cup=\020%p2%c%p1%c, cuu1=^W, cvvis=^L^R, el=^K,
10342	home=^H, ht=^I, is2=^R, kbs=^Y, kcub1=^Y, kcud1=^Z, kcuf1=^X,
10343	kcuu1=^W, kf0=^^q, kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v,
10344	kf6=^^w, kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L,
10345	rmso=\0^^E, rmul=^U, smcup=^L^R, smso=\0\0\0\0\0\036D,
10346	smul=^T,
10347
10348# (Some performance can be gained over the generic DG terminal type)
10349dg6053|6053|6053-dg|dg605x|605x|605x-dg|d2|d2-dg|Data General DASHER 6053,
10350	xon@,
10351	home=^P\0\0, ll=^P\0^W, use=dg-generic,
10352
10353# Like 6053, but adds reverse video and more keypad and function keys.
10354d200|d200-dg|Data General DASHER D200,
10355	bold=^^D^T, home@, ll@, rev=^^D, rmso=^^E^],
10356	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;,
10357	sgr0=\017\025\035\036E, smso=^^D^\, use=dgkeys+15,
10358	use=dg6053,
10359
10360# DASHER D210 series terminals in ANSI mode.
10361#	Reverse video, no insert/delete character/line, 7 bits/character only.
10362#
10363# Initialization string 1 sets:
10364#	<0		- scrolling enabled
10365#	<1		- blink enabled
10366#	<4		- print characters regardless of attributes
10367d210|d214|Data General DASHER D210 series,
10368	am, bw, msgr, xon,
10369	cols#80, lines#24,
10370	bel=^G, blink=\E[5m, bold=\E[4;7m, clear=\E[2J, cr=^M,
10371	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
10372	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
10373	cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, ed=\E[J, el=\E[K,
10374	el1=\E[1K, home=\E[H, ind=^J, is1=\E[<0;<1;<4l,
10375	ll=\E[H\E[A, nel=^J, rev=\E[7m, rmso=\E[m, rmul=\E[m,
10376	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m,
10377	sgr0=\E[m, smso=\E[2;7m, smul=\E[4m, use=dgkeys+7b,
10378
10379# DASHER D210 series terminals in DG mode.
10380# Like D200, but adds clear to end-of-screen and needs XON/XOFF.
10381d210-dg|d214-dg|Data General DASHER D210 series in DG mode,
10382	xon,
10383	ed=^^FF, use=d200-dg,
10384
10385# DASHER D211 series terminals in ANSI mode.
10386# Like the D210, but with 8-bit characters and local printer support.
10387#
10388# Initialization string 2 sets:
10389#	\E[2;1;1;1v
10390#		2;1	- 8 bit operations
10391#		1;1	- 8 bit (international) keyboard language
10392#	\E(B		- default primary character set (U.S. ASCII)
10393#	\E)4		- default secondary character set (international)
10394#	^O		- primary character set
10395#
10396d211|d215|Data General DASHER D211 series,
10397	km,
10398	is2=\E[2;1;1;1v\E(B\E)4\017, mc0=\E[i, use=dgkeys+8b,
10399	use=d210,
10400
10401# Initialization string 2 sets:
10402#	\E[2;0;1;0v
10403#		2;0	- 7 bit operations
10404#		1;0	- 7 bit (native) keyboard language
10405#	\E(0		- default character set (the keyboard native language)
10406#	^O		- primary character set
10407d211-7b|d215-7b|Data General DASHER D211 series in 7 bit mode,
10408	km@,
10409	is2=\E[2;0;1;0v\E(0\017, use=dgkeys+7b, use=d211,
10410
10411# Like the D210 series, but adds support for 8-bit characters.
10412#
10413# Reset string 2 sets:
10414#	^^N	- secondary character set
10415#	^^FS0>	- 8 bit international character set
10416#	^^O	- primary character set
10417#	^^FS00	- default character set (matching the native keyboard language)
10418#
10419d211-dg|d215-dg|Data General DASHER D211 series in DG mode,
10420	km,
10421	rs2=\036N\036FS0>\036O\036FS00, use=d210-dg,
10422
10423d216-dg|d216e-dg|d216+dg|d216e+dg|d217-dg|Data General DASHER D216 series in DG mode,
10424	use=d211-dg,
10425
10426# Enhanced DG mode with changes to be more UNIX compatible.
10427d216-unix|d216e-unix|d216+|d216e+|Data General DASHER D216+ in DG-UNIX mode,
10428	mc5i,
10429	it#8,
10430	acsc=a\177j$k"l!m#n)q+t'u&v(w%x*, blink=^^PI,
10431	clear=^^PH, cub1=^^PD, cud1=^^PB, cuf1=^^PC, cuu1=^^PA,
10432	el=^^PE, home=^^PF, hpa=\020%p1%c\177, ht=^I, ind=^J,
10433	is1=\022\003\036P@1, is3=\036Fz0, kHOM=^^Pf, kLFT=^^Pd,
10434	kPRT=^^P1, kRIT=^^Pc, kclr=^^PH, kcub1=^^PD, kcud1=^^PB,
10435	kcuf1=^^PC, kcuu1=^^PA, kel=^^PE, khome=^^PF, kprt=^^P0,
10436	mc0=\036F?9, mc4=^^Fa, mc5=^^F`, rmacs=\036FS00,
10437	rs2=\036N\036FS0E\036O\036FS00,
10438	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;\036P%?%p4%tI%eJ%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;,
10439	sgr0=\036PJ\025\035\036E\036FS00, smacs=\036FS11,
10440	vpa=\020\177%p1%c, use=dgkeys+15, use=d216-dg,
10441d216-unix-25|d216+25|Data General DASHER D216+ in DG-UNIX mode with 25 lines,
10442	lines#25,
10443	is3=\036Fz2, use=d216+,
10444
10445d217-unix|Data General DASHER D217 in DG-UNIX mode,
10446	use=d216-unix,
10447d217-unix-25|Data General DASHER D217 in DG-UNIX mode with 25 lines,
10448	use=d216-unix-25,
10449
10450# DASHER D220 color terminal in ANSI mode.
10451# Like the D470C but with fewer colors and screen editing features.
10452#
10453# Initialization string 1 sets:
10454#	\E[<0;<1;<4l
10455#		<0	- scrolling enabled
10456#		<1	- blink enabled
10457#		<4	- print characters regardless of attributes
10458#	\E[m		- all attributes off
10459# Reset string 1 sets:
10460#	\Ec		- initial mode defaults (RIS)
10461#
10462d220|Data General DASHER D220,
10463	mc5i@,
10464	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
10465	use=dg+color8, use=d470c,
10466
10467d220-7b|Data General DASHER D220 in 7 bit mode,
10468	mc5i@,
10469	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
10470	use=dg+color8, use=d470c-7b,
10471
10472# Initialization string 3 sets:
10473#	- default cursor (solid rectangle)
10474# Reset string 2 sets:
10475#	^^N     - secondary character set
10476#	^^FS0>  - 8 bit international character set
10477#	^^O     - primary character set
10478#       ^^FS00  - default character set (matching the native keyboard language)
10479#
10480d220-dg|Data General DASHER D220 color terminal in DG mode,
10481	mc5i@,
10482	dl1@, home@, il1@, is2@, is3=\036FQ2, ll@, mc4@, mc5@, rs1@,
10483	rs2=\036N\036FS0>\036O\036FS00, use=dgmode+color8,
10484	use=d470c-dg,
10485
10486# DASHER D230C color terminal in ANSI mode.
10487# Like the D220 but with minor ANSI compatibility improvements.
10488#
10489d230c|d230|Data General DASHER D230C,
10490	blink=\E[5;50m, bold=\E[4;7;50m, dim=\E[2;50m, nel=^M^J,
10491	rev=\E[7;50m, rmkx=\E[2;1v, rmso=\E[50m, rmul=\E[50m,
10492	sgr=\E[50%?%p1%p3%|%p6%|%t;7%{1}%e%{0}%;%PR%?%p4%t;5%{1}%e%{0}%;%PB%?%p2%p6%|%t;4%{1}%e%{0}%;%PU%?%p1%p5%|%t;2%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;,
10493	sgr0=\E[50m\E)4\017, smkx=\E[2;0v, smso=\E[2;7;50m,
10494	smul=\E[4;50m, use=dgkeys+7b, use=d220,
10495
10496d230c-dg|d230-dg|Data General DASHER D230C in DG mode,
10497	use=d220-dg,
10498
10499# DASHER D400/D450 series terminals.
10500# These add intelligent features like insert/delete to the D200 series.
10501#
10502# Initialization string 2 sets:
10503#	^^FQ2		- default cursor (solid rectangle)
10504#	^^FW		- character protection disabled
10505#	^^FJ		- normal (80 column) mode
10506#	^^F\^		- horizontal scrolling enabled (for alignment)
10507#	^^FX004?	- margins at columns 0 and 79
10508#	^^F]		- horizontal scrolling disabled
10509#	^^O		- primary character set
10510#	^^FS00		- default character set (the keyboard native language)
10511#	- (should reset scrolling regions, but that glitches the screen)
10512# Reset string 1 sets:
10513#	^^FA		- all terminal defaults except scroll rate
10514# Reset string 2 sets:
10515#	^^F]		- horizontal scrolling disabled
10516#	^^FT0		- jump scrolling
10517#
10518d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series,
10519	mc5i,
10520	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\036FQ0,
10521	cnorm=\036FQ2, dch1=^^K, dl1=^^FI,
10522	enacs=\036N\036FS11\036O, home=^^FG, hpa=\020%p1%c\177,
10523	ich1=^^J, il1=^^FH,
10524	is2=\036FQ2\036FW\036FJ\036F\^\036FX004?\036F]\036O\036FS00,
10525	ll=\036FG\027, mc4=^^Fa, mc5=^^F`, ri=^^I, rmacs=^^O,
10526	rs1=^^FA, rs2=\036F]\036FT0,
10527	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036%?%p9%tN%eO%;,
10528	sgr0=\017\025\035\036E\036O, smacs=^^N,
10529	vpa=\020\177%p1%c, use=d210-dg,
10530
10531# DASHER D410/D460 series terminals in ANSI mode.
10532# These add a large number of intelligent terminal features.
10533#
10534# Initialization string 1 sets:
10535#	\E[<0;<1;<2;<4l
10536#		<0	- scrolling enabled
10537#		<1	- blink enabled
10538#		<2	- horizontal scrolling enabled (for alignment)
10539#		<4	- print characters regardless of attributes
10540#	\E[5;0v		- normal (80 column) mode
10541#	\E[1;1;80w	- margins at columns 1 and 80
10542#	\E[1;6;<2h
10543#		1	- print all characters even if protected
10544#		6	- character protection disabled
10545#		<2	- horizontal scrolling disabled
10546#	- (should reset scrolling regions, but that glitches the screen)
10547#
10548# Initialization string 2 sets:
10549#	\E[3;2;2;1;1;1v
10550#		3;2	- default cursor (solid rectangle)
10551#		2;1	- 8 bit operations
10552#		1;1	- international keyboard language
10553#	\E(B		- default primary character set (U.S. ASCII)
10554#	\E)4		- default secondary character set (international)
10555#	^O		- primary character set
10556#
10557#	Reset string 1 sets:
10558#	\Ec		- initial mode defaults (RIS)
10559#	\E[<2h		- horizontal scrolling disabled
10560#
10561# Reset string 2 sets:
10562#	\E[4;0;2;1;1;1v
10563#		4;0	- jump scrolling
10564#		2;1	- 8 bit operations
10565#		1;1	- 8 bit (international) keyboard language
10566#	\E(B		- default primary character set (U.S. ASCII)
10567#	\E)4		- default secondary character set (international)
10568#
10569d410|d411|d460|d461|Data General DASHER D410/D460 series,
10570	mc5i,
10571	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v,
10572	cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
10573	dl1=\E[M, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
10574	is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h,
10575	is2=\E[3;2;2;1;1;1v\E(B\E)4\017, mc4=\E[4i, mc5=\E[5i,
10576	ri=\EM, rmacs=\E)4\017, rs1=\Ec\E[<2h,
10577	rs2=\E[4;0;2;1;1;1v\E(B\E)4,
10578	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m\E)%?%p9%t6\016%e4\017%;,
10579	sgr0=\E[m\E)4\017, smacs=\E)6\016, use=d211,
10580
10581# Initialization string 2 sets:
10582#	\E[3;2;2;0;1;0v
10583#		3;2	- default cursor (solid rectangle)
10584#		2;0	- 7 bit operations
10585#		1;0	- 7 bit (native) keyboard language
10586#	\E(0		- default character set (the keyboard native language)
10587#	^O		- primary character set
10588#
10589# Reset string 2 sets:
10590#	\E[4;0;2;0;1;0v
10591#		4;0	- jump scrolling
10592#		2;0	- 7 bit operations
10593#		1;0	- 7 bit (native) keyboard language
10594#	\E(0		- default character set (the keyboard native language)
10595#
10596d410-7b|d411-7b|d460-7b|d461-7b|Data General DASHER D410/D460 series in 7 bit mode,
10597	km@,
10598	enacs=\E)6, is2=\E[3;2;2;0;1;0v\E(0\017, rmacs=^O,
10599	rs2=\E[4;0;2;0;1;0v\E(0,
10600	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m%?%p9%t\016%e\017%;,
10601	sgr0=\E[m\017, smacs=^N, use=dgkeys+7b, use=d410,
10602
10603d410-dg|d460-dg|d411-dg|d461-dg|Data General DASHER D410/D460 series in DG mode,
10604	km,
10605	enacs@, rmacs=\036FS00,
10606	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;\036FS%?%p9%t11%e00%;,
10607	sgr0=\017\025\035\036E\036FS00, smacs=\036FS11,
10608	use=d400-dg,
10609
10610# DASHER D410/D460 series terminals in wide (126 columns) ANSI mode.
10611#
10612# Initialization string 1 sets:
10613#	\E[<0;<1;<2;<4l
10614#		<0	- scrolling enabled
10615#		<1	- blink enabled
10616#		<2	- horizontal scrolling enabled (for alignment)
10617#		<4	- print characters regardless of attributes
10618#	\E[5;1v		- compressed (135 column) mode
10619#	\E[1;1;126	- margins at columns 1 and 126
10620#	\E[1;6;<2h
10621#		1	- print all characters even if protected
10622#		6	- character protection disabled
10623#		<2	- horizontal scrolling disabled
10624#	- (should reset scrolling regions, but that glitches the screen)
10625#
10626# Reset string 1 sets:
10627#	\Ec		- initial mode defaults (RIS)
10628#	\E[5;1v		- compressed (135 column) mode
10629#	\E[1;1;126w	- margins at columns 1 and 126
10630#	\E[<2h		- horizontal scrolling disabled
10631#
10632d410-w|d411-w|d460-w|d461-w|Data General DASHER D410/D460 series in wide mode,
10633	cols#126,
10634	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
10635	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410,
10636
10637d410-7b-w|d411-7b-w|d460-7b-w|d461-7b-w|Data General DASHER D410/D460 series in wide 7 bit mode,
10638	cols#126,
10639	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
10640	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410-7b,
10641
10642d412-dg|d462-dg|d462e-dg|d412+dg|d462+dg|d413-dg|d463-dg|Data General DASHER D412/D462 series in DG mode,
10643	use=d410-dg,
10644
10645# These add intelligent features like scrolling regions.
10646d412-unix|d462-unix|d412+|d462+|Data General DASHER D412+/D462+ series in Unix mode,
10647	civis=\036FQ0, clear=^^FE, cnorm=\036FQ5,
10648	cup=\036FP%p2%2.2X%p1%2.2X, dch1=^^K, dl1=^^FI,
10649	home=^^FG, hpa=\036FP%p1%2.2XFF, ich1=^^J, il1=^^FH,
10650	is2=\036FQ5\036FW\036FJ\036F\^\036FX004F\036O\036FS00,
10651	ll=\036FG\036PA, mc0=^A, rc=\036F}11, ri=^^I,
10652	rs1=\036FA\036FT0, rs2=\036P@1, sc=\036F}10,
10653	vpa=\036FPFF%p1%2.2X,
10654	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
10655	use=d216+,
10656d412-unix-w|d462-unix-w|d412+w|d462+w|Data General DASHER D412+/D462+ series in wide Unix mode,
10657	cols#132,
10658	is2=\036FQ5\036FW\036FK\036F\^\036FX0083\036O\036FS00,
10659	rs2=\036P@1\036FK\036FX0083,
10660	wind=\036FB%?%p1%t%p1%2.2X1%;%p2%p1%-%{1}%+%2.2X1%?%{23}%p2%>%t001%;\036FX%p3%2.2X%p4%2.2X,
10661	use=d412-unix,
10662d412-unix-25|d462-unix-25|d412+25|d462+25|Data General DASHER D412+/D462+ series in Unix mode with 25 lines,
10663	lines#25,
10664	is3=\036Fz2,
10665	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{24}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
10666	use=d462+,
10667d412-unix-s|d462-unix-s|d412+s|d462+s|Data General DASHER D412+/D462+ in Unix mode with status line,
10668	eslok, hs,
10669	clear=\036FG\036PH, fsl=\036F}01\022,
10670	is3=\036Fz2\036F}00\036FB180000\036F}01, ll@,
10671	tsl=\036F}00\036FP%p1%2.2X18\036PG,
10672	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t%{23}%p2%-%2.2X0%;000\036FX%p3%2.2X%p4%2.2X,
10673	use=d462+,
10674
10675#	Relative cursor motions are confined to the current window,
10676#	which is not what the scrolling region specification expects.
10677#	Thus, relative vertical cursor positioning must be deleted.
10678d412-unix-sr|d462-unix-sr|d412+sr|d462+sr|Data General DASHER D412+/D462+ in Unix mode with scrolling region,
10679	csr=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;,
10680	cud1@, cuu1@, ll@, use=d462+,
10681
10682d413-unix|d463-unix|Data General DASHER D413/D463 series in DG-UNIX mode,
10683	use=d412-unix,
10684d413-unix-w|d463-unix-w|Data General DASHER D413/D463 series in wide DG-UNIX mode,
10685	use=d412-unix-w,
10686d413-unix-25|d463-unix-25|Data General DASHER D413/D463 series in DG-UNIX mode with 25 lines,
10687	use=d412-unix-25,
10688d413-unix-s|d463-unix-s|Data General DASHER D413/D463 in DG-UNIX mode with status line,
10689	use=d412-unix-s,
10690d413-unix-sr|d463-unix-sr|Data General DASHER D413/D463 in DG-UNIX mode with scrolling region,
10691	use=d412-unix-sr,
10692
10693d414-unix|d464-unix|Data General D414/D464 in DG-UNIX mode,
10694	use=d413-unix,
10695d414-unix-w|d464-unix-w|Data General D414/D464 in wide DG-UNIX mode,
10696	use=d413-unix-w,
10697d414-unix-25|d464-unix-25|Data General D414/D464 in DG-UNIX mode with 25 lines,
10698	use=d413-unix-25,
10699d414-unix-s|d464-unix-s|Data General D414/D464 in DG-UNIX mode with status line,
10700	use=d413-unix-s,
10701d414-unix-sr|d464-unix-sr|Data General D414/D464 in DG-UNIX mode with scrolling region,
10702	use=d413-unix-sr,
10703
10704d430c-dg|d430-dg|Data General D430C in DG mode,
10705	use=d413-dg, use=dg+fixed,
10706d430c-dg-ccc|d430-dg-ccc|Data General D430C in DG mode with configurable colors,
10707	use=d413-dg, use=dg+ccc,
10708
10709d430c-unix|d430-unix|Data General D430C in DG-UNIX mode,
10710	use=d413-unix, use=dgunix+fixed,
10711d430c-unix-w|d430-unix-w|Data General D430C in wide DG-UNIX mode,
10712	use=d413-unix-w, use=dgunix+fixed,
10713d430c-unix-25|d430-unix-25|Data General D430C in DG-UNIX mode with 25 lines,
10714	use=d413-unix-25, use=dgunix+fixed,
10715d430c-unix-s|d430-unix-s|Data General D430C in DG-UNIX mode with status line,
10716	use=d413-unix-s, use=dgunix+fixed,
10717d430c-unix-sr|d430-unix-sr|Data General D430C in DG-UNIX mode with scrolling region,
10718	use=d413-unix-sr, use=dgunix+fixed,
10719d430c-unix-ccc|d430-unix-ccc|Data General D430C in DG-UNIX mode with configurable colors,
10720	use=d413-unix, use=dgunix+ccc,
10721d430c-unix-w-ccc|d430-unix-w-ccc|Data General D430C in wide DG-UNIX mode with configurable colors,
10722	use=d413-unix-w, use=dgunix+ccc,
10723d430c-unix-25-ccc|d430-unix-25-ccc|Data General D430C in DG-UNIX mode with 25 lines and configurable colors,
10724	use=d413-unix-25, use=dgunix+ccc,
10725d430c-unix-s-ccc|d430-unix-s-ccc|Data General D430C in DG-UNIX mode with status line and configurable colors,
10726	use=d413-unix-s, use=dgunix+ccc,
10727d430c-unix-sr-ccc|d430-unix-sr-ccc|Data General D430C in DG-UNIX mode with scrolling region and configurable colors,
10728	use=d413-unix-sr, use=dgunix+ccc,
10729
10730# DASHER D470C color terminal in ANSI mode.
10731# Like the D460 but with 16 colors and without a compressed mode.
10732#
10733# Initialization string 1 sets:
10734#	\E[<0;<1;<2;<4l
10735#		<0	- scrolling enabled
10736#		<1	- blink enabled
10737#		<2	- horizontal scrolling enabled (for alignment)
10738#		<4	- print characters regardless of attributes
10739#	\E[1;1;80w	- margins at columns 1 and 80
10740#	\E[1;6;<2h
10741#		1	- print all characters even if protected
10742#		6	- character protection disabled
10743#		<2	- horizontal scrolling disabled
10744#	- (should reset scrolling regions, but that glitches the screen)
10745#
10746d470c|d470|Data General DASHER D470C,
10747	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
10748	sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm\E)%?%p9%t6\016%e4\017%;,
10749	use=dg+color, use=d460,
10750
10751d470c-7b|d470-7b|Data General DASHER D470C in 7 bit mode,
10752	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
10753	sgr=\E[%?%p1%p3%|%p6%|%t7;%{1}%e%{0}%;%PR%?%p4%t5;%{1}%e%{0}%;%PB%?%p2%p6%|%t4;%{1}%e%{0}%;%PU%?%p1%p5%|%t2;%{1}%e%{0}%;%PDm%?%p9%t\016%e\017%;,
10754	use=dg+color, use=d460-7b,
10755
10756# Initialization string 2 sets:
10757#	^^FQ2		- default cursor (solid rectangle)
10758#	^^FW		- character protection disabled
10759#	^^F\^		- horizontal scrolling enabled (for alignment)
10760#	^^FX004?	- margins at columns 0 and 79
10761#	^^F]		- horizontal scrolling disabled
10762#	^^O		- primary character set
10763#	^^FS00		- default character set (the keyboard native language)
10764#	- (should reset scrolling regions, but that glitches the screen)
10765#
10766d470c-dg|d470-dg|Data General DASHER D470C in DG mode,
10767	is2=\036FQ2\036FW\036F\^\036FX004?\036F]\036O\036FS00,
10768	use=dgmode+color, use=d460-dg,
10769
10770# DASHER D555 terminal in ANSI mode.
10771# Like a D411, but has an integrated phone.
10772d555|Data General DASHER D555,
10773	use=d411,
10774d555-7b|Data General DASHER D555 in 7-bit mode,
10775	use=d411-7b,
10776d555-w|Data General DASHER D555 in wide mode,
10777	use=d411-w,
10778d555-7b-w|Data General DASHER D555 in wide 7-bit mode,
10779	use=d411-7b-w,
10780d555-dg|Data General DASHER D555 series in DG mode,
10781	use=d411-dg,
10782
10783# DASHER D577 terminal in ANSI mode.
10784# Like a D411, but acts as a keyboard for serial printers ("KSR" modes).
10785d577|Data General DASHER D577,
10786	use=d411,
10787d577-7b|Data General DASHER D577 in 7-bit mode,
10788	use=d411-7b,
10789d577-w|Data General DASHER D577 in wide mode,
10790	use=d411-w,
10791d577-7b-w|Data General DASHER D577 in wide 7-bit mode,
10792	use=d411-7b-w,
10793
10794d577-dg|d578-dg|Data General DASHER D577/D578 series in DG mode,
10795	use=d411-dg,
10796
10797# DASHER D578 terminal.
10798# Like a D577, but without compressed mode; like a D470C in this respect.
10799#
10800# Initialization string 1 sets:
10801#	\E[<0;<1;<2;<4l
10802#		<0	- scrolling enabled
10803#		<1	- blink enabled
10804#		<2	- horizontal scrolling enabled (for alignment)
10805#		<4	- print characters regardless of attributes
10806#	\E[1;1;80w	- margins at columns 1 and 80
10807#	\E[1;6;<2h
10808#		1	- print all characters even if protected
10809#		6	- character protection disabled
10810#		<2	- horizontal scrolling disabled
10811#	- (should reset scrolling regions, but that glitches the screen)
10812#
10813d578|Data General DASHER D578,
10814	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577,
10815d578-7b|Data General DASHER D578 in 7-bit mode,
10816	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577-7b,
10817
10818#### Datamedia (dm)
10819#
10820# Datamedia was headquartered in Nashua, New Hampshire until it went
10821# out of business in 1993, but the ID plates on the terminals referred
10822# to the factory in Pennsauken, NJ.  The factory was sold to a PCB board
10823# manufacturer which threw out all information about the terminals.
10824#
10825
10826cs10|colorscan|Datamedia Color Scan 10,
10827	msgr,
10828	cols#80, lines#24,
10829	bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
10830	cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ed=\E[J, el=\E[K,
10831	ind=^J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10832	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmso=\E[m, rmul=\E[m,
10833	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
10834cs10-w|Datamedia Color Scan 10 with 132 columns,
10835	cols#132,
10836	cup=\E[%i%p1%02d;%p2%03dH, use=cs10,
10837
10838# (dm1520: removed obsolete ":ma=^\ ^_^P^YH:" -- esr)
10839dm1520|dm1521|datamedia 1520,
10840	OTbs, am, xenl,
10841	cols#80, it#8, lines#24,
10842	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
10843	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
10844	home=^Y, ht=^I, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
10845	khome=^Y,
10846# dm2500: this terminal has both <ich> and <smir>. Applications using
10847# termcap/terminfo directly (rather than through ncurses) might be confused.
10848dm2500|datamedia2500|datamedia 2500,
10849	OTbs, OTnc,
10850	cols#80, lines#24,
10851	bel=^G, clear=^^^^\177, cub1=^H, cud1=^J, cuf1=^\,
10852	cup=\014%p2%{96}%^%c%p1%{96}%^%c, cuu1=^Z,
10853	dch1=\020\010\030\035$<10*>,
10854	dl1=\020\032\030\035$<10*>, el=^W, home=^B,
10855	ich1=\020\034\030\035$<10*>,
10856	il1=\020\n\030\035\030\035$<15>, ind=^J, pad=\377,
10857	rmdc=^X^], rmir=\377\377\030\035$<10>, rmso=^X^],
10858	smdc=^P, smir=^P, smso=^N,
10859# dmchat is like DM2500, but DOES need "all that padding" (jcm 1/31/82)
10860# also, has a meta-key.
10861# From: <goldberger@su-csli.arpa>
10862# (dmchat: ":MT:" changed to ":km:" -- esr)
10863dmchat|dmchat version of datamedia 2500,
10864	km,
10865	dl1=\020\032\030\035$<2/>,
10866	il1=\020\n\030\035\030\035$<1*/>, use=dm2500,
10867# (dm3025: ":MT:" changed to ":km:" -- esr)
10868dm3025|datamedia 3025a,
10869	OTbs, km,
10870	cols#80, it#8, lines#24,
10871	bel=^G, clear=\EM$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
10872	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
10873	dch1=\010$<6>, dl1=\EP\EA\EQ$<130>, ed=\EJ$<2>, el=\EK,
10874	home=\EH, ht=^I, il1=\EP\n\EQ$<130>, ind=^J, ip=$<6>,
10875	is2=\EQ\EU\EV, rmdc=\EQ, rmir=\EQ, rmso=\EO0, smdc=\EP,
10876	smir=\EP, smso=\EO1,
10877dm3045|datamedia 3045a,
10878	OTbs, am, eo, km@, ul, xenl,
10879	dch1=\EB$<6>, dl1@, il1@, is2=\EU\EV, kcuf1=\EC, kcuu1=\EA,
10880	kf0=\Ey\r, kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r,
10881	kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r, kf9=\Ex\r,
10882	khome=\EH, pad=\177, rmdc@, rmir=\EP, rmso@, smdc@, smso@,
10883	use=dm3025,
10884# Datamedia DT80 soft switches:
10885# 1	0=Jump  1=Smooth
10886# 	Autorepeat 	0=off  1=on
10887# 	Screen		0=Dark 1=light
10888# 	Cursor		0=u/l  1=block
10889#
10890# 2	Margin Bell	0=off  1=on
10891# 	Keyclick	0=off  1=on
10892# 	Ansi/VT52	0=VT52 1=Ansi
10893# 	Xon/Xoff	0=Off  1=On
10894#
10895# 3	Shift3		0=Hash 1=UK Pound
10896# 	Wrap		0=Off  1=On
10897# 	Newline		0=Off  1=On
10898# 	Interlace	0=Off  1=On
10899#
10900# 4	Parity		0=Odd  1=Even
10901# 	Parity		0=Off  1=On
10902# 	Bits/Char	0=7    1=8
10903# 	Power		0=60Hz 1=50Hz
10904#
10905# 5	Line Interface  0=EIA  1=Loop
10906# 	Aux Interface   0=EIA  1=Loop
10907# 	Local Copy    	0=Off  1=On
10908# 	Spare
10909#
10910# 6	Aux Parity	0=Odd  1=Even
10911# 	Aux Parity	0=Off  1=On
10912# 	Aux Bits/Char   0=7    1=8
10913# 	CRT Saver	0=Off  1=On
10914# dm80/1 is a vt100 lookalike, but it doesn't seem to need any padding.
10915dm80|dmdt80|dt80|datamedia dt80/1,
10916	clear=\E[2J\E[H, cud1=^J, cuf1=\E[C,
10917	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
10918	home=\E[H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, ri=\EM,
10919	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
10920	use=vt100,
10921# except in 132 column mode, where it needs a little padding.
10922# This is still less padding than the vt100, and you can always turn on
10923# the ^S/^Q handshaking, so you can use vt100 flavors for things like
10924# reverse video.
10925dm80w|dmdt80w|dt80w|datamedia dt80/1 in 132 char mode,
10926	cols#132,
10927	clear=\E[H\E[2J$<50/>, cud1=^J,
10928	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<5/>,
10929	ed=\E[0J$<20/>, el=\E[0K$<20/>, use=dm80,
10930# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
10931dt80-sas|Datamedia DT803/DTX for SAS usage,
10932	am, bw,
10933	cols#80, lines#24,
10934	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
10935	bel=^G, clear=^L, cr=^M,
10936	csr=\E=%p1%{32}%+%c%{32}%c\E#1\E=%p2%{32}%+%c%{32}%c\E#2,
10937	cub1=^H, cud1=\EB, cuf1=^\,
10938	cup=\E=%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, dl1=\EM, ed=^K,
10939	el=^], ff=^L, home=^Y, ht=^I, hts=\E'1, il1=\EL, ind=\EB,
10940	is2=\E)0\E<\EP\E'0\E$2, kclr=^L, kcub1=^H, kcud1=^J,
10941	kcuf1=^\, kcuu1=^_, ked=^K, kel=^], khome=^Y, mc4=^O, mc5=^N,
10942	rev=\E$2\004, ri=\EI, rmacs=\EG, rmso=^X, sgr0=^X, smacs=\EF,
10943	smso=\E$2\004, tbc=\E'0,
10944
10945# Datamedia Excel 62, 64 from Gould/SEL UTX/32 via BRL
10946# These aren't end-all Excel termcaps; but do insert/delete char/line
10947# and name some of the extra function keys.  (Mike Feldman ccvaxa!feldman)
10948# The naming convention has been bent somewhat, with the use of E? (where
10949# E is for 'Excel') as # a name.  This was done to distinguish the entries
10950# from the other Datamedias in use here, and yet to associate a model of
10951# the Excel terminals with the regular datamedia terminals that share
10952# major characteristics.
10953excel62|excel64|datamedia Excel 62,
10954	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
10955	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
10956	use=dt80,
10957excel62-w|excel64-w|datamedia Excel 62 in 132 char mode,
10958	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
10959	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
10960	use=dt80w,
10961excel62-rv|excel64-rv|datamedia Excel 62 in reverse video mode,
10962	dch1=\E[P, flash=\E[?5l\E[?5h, kbs=^H, kcub1=^H, kcud1=^J,
10963	kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l,
10964	smir=\E[4h, use=dt80,
10965
10966#### Falco
10967#
10968#	Falco Data Products
10969#	440 Potrero Avenue
10970#	Sunnyvale, CA 940864-196
10971#	Vox: (800)-325-2648
10972#	Fax: (408)-745-7860
10973#	Net: techsup@charm.sys.falco.com
10974#
10975# Current Falco models as of 1995 are generally ANSI-compatible and support
10976# emulations of DEC VT-series, Wyse, and Televideo types.
10977#
10978
10979# Test version for Falco ts-1. See <arpavax.hickman@ucb> for info
10980# This terminal was released around 1983 and was discontinued long ago.
10981# The standout and underline highlights are the same.
10982falco|ts1|ts-1|falco ts-1,
10983	OTbs, am,
10984	cols#80, it#8, lines#24,
10985	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
10986	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
10987	dl1=\ER, ed=\EY, el=\ET\EG0\010, home=^^, ht=^I, il1=\EE,
10988	ind=^J, is2=\Eu\E3, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
10989	kf0=^A0\r, rmir=\Er, rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0,
10990	smir=\Eq, smso=\Eg1, smul=\Eg1,
10991falco-p|ts1p|ts-1p|falco ts-1 with paging option,
10992	OTbs, am, da, db, mir, msgr, ul,
10993	cols#80, it#8, lines#24,
10994	bel=^G, cbt=\EI, clear=\E*, cr=^M, cub1=^H, cud1=\E[B,
10995	cuf1=\E[C, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E[A,
10996	dch1=\EW, dl1=\ER, ed=\EY, el=\ET\EG0\010\Eg0, ht=^I,
10997	il1=\EE, ind=^J, is2=\EZ\E3\E_c, kcub1=\E[D, kcud1=\E[B,
10998	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, rmcup=\E_b, rmir=\Er,
10999	rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0, smcup=\E_d, smir=\Eq,
11000	smso=\Eg4, smul=\Eg1,
11001# (ts100: I added <rmam>/<smam> based on the init string -- esr)
11002ts100|ts100-sp|falco ts100-sp,
11003	am, mir, msgr, xenl, xon,
11004	cols#80, it#8, lines#24, vt#3,
11005	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
11006	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
11007	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
11008	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11009	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
11010	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
11011	cuu1=\E[A$<2>, dch1=\E~W, dl1=\E~R, ed=\E[J$<50>,
11012	el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
11013	ht=^I, hts=\EH, ich1=\E~Q, il1=\E~E, ind=^J, is1=\E~)\E~ea,
11014	ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn,
11015	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM,
11016	kf0=\EOy, kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
11017	kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
11018	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
11019	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
11020	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
11021	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
11022	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
11023	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
11024ts100-ctxt|falco ts-100 saving context,
11025	rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
11026
11027#### Florida Computer Graphics
11028#
11029
11030# Florida Computer Graphics Beacon System, using terminal emulator program
11031# "host.com", as provided by FCG.  This description is for an early release
11032# of the "host" program.  Known bug: <ed> clears the whole screen, so it's
11033# commented out.
11034
11035# From: David Bryant <cbosg!djb> 1/7/83
11036beacon|FCG Beacon System,
11037	am, da, db,
11038	cols#80, lines#32,
11039	bel=\ESTART\r\E37\r\EEND\r$<1>,
11040	blink=\ESTART\r\E61\,1\r\EEND\r, clear=\EZ$<10>, cr=^M,
11041	cub1=^H, cud1=^J, cuf1=\EV,
11042	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=\EU,
11043	dch1=\EW, dl1=\ER, el=\ET, home=\EH$<10>, ich1=\EQ, il1=\EE,
11044	ind=^J, rev=\ESTART\r\E59\,1\r\EEND\r, rmcup=,
11045	rmso=\ESTART\r\E70\,0\r\EEND\r$<20>,
11046	rmul=\ESTART\r\E60\,0\r\EEND\r,
11047	sgr0=\ESTART\r\E78\r\E70\,0\r\EEND\r$<20>,
11048	smcup=\ESTART\r\E2\,0\r\E12\r\EEND\r$<10>,
11049	smso=\ESTART\r\E70\,6\r\EEND\r$<20>,
11050	smul=\ESTART\r\E60\,1\r\EEND\r,
11051
11052#### Fluke
11053#
11054
11055# The f1720a differences from ANSI: no auto margin, destructive
11056# tabs, # of lines, funny highlighting and underlining
11057f1720|f1720a|fluke 1720A,
11058	xt,
11059	cols#80, lines#16, xmc#1,
11060	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
11061	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J,
11062	el=\E[K, ind=\ED, is2=\E[H\E[2J, kcub1=^_, kcud1=^],
11063	kcuf1=^^, kcuu1=^\, ri=\EM, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
11064	smso=\E[7m, smul=\E[4m,
11065
11066#### Liberty Electronics (Freedom)
11067#
11068#	Liberty Electronics
11069#	48089 Fremont Blvd
11070#	Fremont CA 94538
11071#	Vox: (510)-623-6000
11072#	Fax: (510)-623-7021
11073
11074# From: <faletti@berkeley.edu>
11075# (f100: added empty <acsc> to suppress a tic warning;
11076# made this relative to adm+sgr -- note that <invis> isn't
11077# known to work for f100 but does on the f110. --esr)
11078f100|freedom|freedom100|freedom model 100,
11079	OTbs, am, bw, hs, mir, msgr, xon,
11080	cols#80, lines#24,
11081	acsc=, bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J,
11082	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11083	dch1=\EW, dl1=\ER$<11.5*>, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
11084	flash=\Eb$<200>\Ed, fsl=^M, home=^^, hpa=\E]%p1%{32}%+%c,
11085	ht=^I, hts=\E1, il1=\EE$<8.5*>, ind=^J, ip=$<6>,
11086	is2=\Eg\Ef\r\Ed, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V,
11087	kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r, kf2=^AA\r,
11088	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
11089	kf8=^AG\r, kf9=^AH\r, khome=^^, ri=\Ej, rmacs=\E$, rmir=\Er,
11090	smacs=\E%%, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
11091	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
11092f100-rv|freedom-rv|freedom 100 in reverse video,
11093	flash=\Ed$<200>\Eb, is2=\Eg\Ef\r\Eb, use=f100,
11094# The f110 and f200 have problems with vi(1).  They use the ^V
11095# code for the down cursor key. When kcud1 is defined in terminfo
11096# as ^V, the Control Character Quoting capability (^V in insert mode)
11097# is lost! It cannot be remapped in vi because it is necessary to enter
11098# a ^V to to quote the ^V that is being remapped!!!
11099#
11100# f110/f200 users will have to decide whether
11101# to lose the down cursor key or the quoting capability. We will opt
11102# initially for leaving the quoting capability out, since use of VI
11103# is not generally applicable to most interactive applications
11104# (f110: added <ht>, <khome> & <kcbt> from f100 -- esr)
11105f110|freedom110|Liberty Freedom 110,
11106	bw@, eslok,
11107	it#8, wsl#80,
11108	blink=\EG2, bold=\EG0, civis=\E.1, cnorm=\E.2, cud1=^V,
11109	cvvis=\E.2, dim=\EG@, dl1=\ER, dsl=\Ef\r,
11110	flash=\Eb$<200/>\Ed, il1=\EE, ip@, is2@, kclr=^^, kdch1=\EW,
11111	kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf10@, kich1=\EQ,
11112	kil1=\EE, mc4=\Ea, mc5=\E`, ri=\EJ, rmacs=\E%%, rmir=\Er\EO,
11113	smacs=\E$, smir=\EO\Eq, smso=\EG<, tsl=\Ef, use=f100,
11114f110-14|Liberty Freedom 110 14inch,
11115	dch1@, use=f110,
11116f110-w|Liberty Freedom 110 - 132 cols,
11117	cols#132, use=f110,
11118f110-14w|Liberty Freedom 110 14in/132 cols,
11119	cols#132,
11120	dch1@, use=f110,
11121# (f200: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
11122f200|freedom200|Liberty Freedom 200,
11123	OTbs, am, eslok, hs, mir, msgr, xon,
11124	cols#80, it#8, lines#24, wsl#80,
11125	acsc=, bel=^G, blink=\EG2, bold=\EG0, cbt=\EI, civis=\E.0,
11126	clear=^Z, cnorm=\E.1, cr=^M,
11127	csr=\Em0%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^V,
11128	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11129	cvvis=\E.1, dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY,
11130	el=\ET, flash=\Eo$<200/>\En, fsl=^M, home=^^,
11131	hpa=\E]%p1%{32}%+%c, hts=\E1, il1=\EE, ind=^J, kbs=^H,
11132	kclr=^^, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
11133	kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
11134	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
11135	kf8=^AG\r, kf9=^AH\r, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
11136	ri=\EJ, rmacs=\E%%, rmir=\Er, smacs=\E$, smir=\Eq, smso=\EG<,
11137	tbc=\E3, tsl=\Ef, vpa=\E[%p1%{32}%+%c, use=adm+sgr,
11138f200-w|Liberty Freedom 200 - 132 cols,
11139	cols#132, use=f200,
11140# The f200 has the ability to reprogram the down cursor key. The key is
11141# reprogrammed to ^J (linefeed). This value is remembered in non-volatile RAM,
11142# so powering the terminal off and on will not cause the change to be lost.
11143f200vi|Liberty Freedom 200 for vi,
11144	flash=\Eb$<200/>\Ed, kcud1=^J, use=f200,
11145f200vi-w|Liberty Freedom 200 - 132 cols for vi,
11146	cols#132, use=f200vi,
11147
11148#### GraphOn (go)
11149#
11150#	Graphon Corporation
11151#	544 Division Street
11152#	Campbell, CA 95008
11153#	Vox: (408)-370-4080
11154#	Fax: (408)-370-5047
11155#	Net: troy@graphon.com (Troy Morrison)
11156#
11157#
11158# The go140 and go225 have been discontinued.  GraphOn now makes X terminals,
11159# including one odd hybrid that starts out life on power-up as a character
11160# terminal, than can be switched to X graphics mode (driven over the serial
11161# line) by an escape sequence.  No info on this beast yet.
11162# (go140: I added <rmam>/<smam> based on the init string -- esr)
11163go140|graphon go-140,
11164	OTbs,
11165	cols#80, it#8, lines#24,
11166	clear=\E[H\E[2J$<10/>, cub1=^H, cuf1=\E[C,
11167	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
11168	ed=\E[J$<10/>, el=\E[K, ht=^I,
11169	if=/usr/share/tabset/vt100, il1=\E[L,
11170	is2=\E<\E=\E[?3l\E[?7l\E(B\E[J\E7\E[;r\E8\E[m\E[q,
11171	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
11172	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
11173	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
11174	rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
11175	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
11176go140w|graphon go-140 in 132 column mode,
11177	am,
11178	cols#132,
11179	is2=\E<\E=\E[?3h\E[?7h\E(B\E[J\E7\E[;r\E8\E[m\E[q,
11180	use=go140,
11181# Hacked up vt200 termcap to handle GO-225/VT220
11182# From: <edm@nwnexus.WA.COM>
11183# (go225: I added <rmam>/<smam> based on the init string -- esr)
11184go225|go-225|Graphon 225,
11185	OTbs, am, mir, xenl,
11186	cols#80, it#8, lines#25, vt#3,
11187	blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
11188	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
11189	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
11190	ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L, ind=\ED,
11191	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^H,
11192	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
11193	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, rc=\E8, rev=\E[7m,
11194	rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
11195	rmcup=\E[!p\E[?7h\E[2;1;1#w, rmir=\E[4l, rmkx=\E>,
11196	rmso=\E[27m, rmul=\E[24m, rs1=\E[!p\E[?7h\E[2;1;1#w,
11197	sc=\E7, sgr0=\E[m, smam=\E[?7h, smcup=\E[2;0#w\E[1;25r,
11198	smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
11199
11200#### Harris (Beehive)
11201#
11202# Bletch.  These guys shared the Terminal Brain Damage laurels with Hazeltine.
11203# Their terminal group is ancient history now (1995) though the parent
11204# company is still in business.
11205#
11206
11207# Beehive documentation is undated and marked Preliminary and has no figures
11208# so we must have early Superbee2 (Model 600, according to phone conversation
11209# with mfr.). It has proved reliable except for some missing padding
11210# (notably after \EK and <nl> at bottom of screen).
11211#
11212# The key idea is that AEP mode is poison for <cup> & that US's in
11213# the local memory should be avoided like the plague. That means
11214# that the 2048 character local buffer is used as 25 lines of 80
11215# characters, period. No scrolling local memory, folks. It also
11216# appears that we cannot use naked INS LINE feature since it uses
11217# US. The sbi fakes <il1> with an 80-space insert that may be too
11218# slow at low speeds; also spaces get converted to \040 which is
11219# too long for some programs (not vi).  DEL LINE is ok but slow.
11220#
11221# The <nl> string is designed for last line of screen ONLY; cup to
11222# 25th line corrects the motion inherent in scrolling to Page 1.
11223#
11224# There is one understood bug. It is that the screen appears to
11225# pop to a new (blank) page after a <nel>, or leave a half-line
11226# ellipsis to a quad that is the extra 48 memory locations. The
11227# data received is dumped into memory but not displayed.  Not to
11228# worry if <cup> is being used; the lines not displayed will be,
11229# whenever the cursor is moved up there. Since <cup> is addressed
11230# relative to MEMORY of window, nothing is lost; but beware of
11231# relative cursor motion (<cuu1>,<cud1>,<cuf1>,<cub1>). Recommended,
11232# therefore, is setenv MORE -c .
11233#
11234# WARNING: Not all features tested.
11235#
11236# Timings are assembled from 3 sources. Some timings may reflect
11237# SB2/Model 300 that were used if more conservative.
11238# Tested on a Model 600 at 1200 and 9600 bd.
11239#
11240# The BACKSPACEkb option is cute. The NEWLINE key, so cleverly
11241# placed on the keyboard and useless because of AEP, is made
11242# into a backspace key. In use ESC must be pressed twice (to send)
11243# and sending ^C must be prefixed by ESC to avoid that weird
11244# transmit mode associated with ENTER key.
11245#
11246# IF TERMINAL EVER GOES CATATONIC with the cursor buzzing across
11247# the screen, then it has dropped into ENTER mode; hit
11248# RESET--ONLINE--!tset.
11249#
11250# As delivered this machine has a FATAL feature that will throw
11251# it into that strange transmit state (SPOW) if the space bar is
11252# hit after a CR is received, but before receiving a LF (or a
11253# few others).
11254#
11255# The circuits MUST be modified to eliminate the SPOW latch.
11256# This is done by strapping on chip A46 of the I/O board; cut
11257# the p.c. connection to Pin 5 and strap Pin 5 to Pin 8 of that
11258# chip. This mod has been checked out on a Mod 600 of Superbee II.
11259# With this modification absurdly high timings on cr are
11260# unnecessary.
11261#
11262# NOTE WELL that the rear panel switch should be set to CR/LF,
11263# not AEP!
11264#
11265sb1|beehive superbee,
11266	OTbs, am, bw, da, db, mir, ul, xsb,
11267	cols#80, lines#25, xmc#1,
11268	bel=^G, cbt=\E`$<650>, clear=\EH$<1>\EJ$<3>, cr=$<1>\r,
11269	cub1=^H, cud1=^J, cuf1=\EC$<3>, cup=\EF%p2%03d%p1%03d,
11270	cuu1=\EA$<3>, dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>,
11271	el=\EK$<3>, home=\EH$<1>, ht=^I, hts=\E1,
11272	il1=\EN\EL$<3>\EQ                                                                                \EP$<3> \EO\ER\EA$<3>,
11273	ind=^J, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kcub1=\ED,
11274	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdl1=\EM, ked=\EJ, kel=\EK,
11275	kf0=\E2, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu,
11276	kf7=\Ev, kf8=\Ew, kf9=\E1, khome=\EH, kich1=\EQ\EO,
11277	krmir=\ER, lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER,
11278	rmso=\E_3, rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO,
11279	smso=\E_1, smul=\E_0, tbc=\E3,
11280sbi|superbee|beehive superbee at Indiana U.,
11281	xsb,
11282	cr=\r$<1>, il1=1\EN\EL$<9>\EQ \EP$<9> \EO\ER\EA,
11283	use=sb1,
11284# Alternate (older) description of Superbee - f1=escape, f2=^C.
11285# Note: there are at least 3 kinds of superbees in the world.  The sb1
11286# holds onto escapes and botches ^C's.  The sb2 is the best of the 3.
11287# The sb3 puts garbage on the bottom of the screen when you scroll with
11288# the switch in the back set to CRLF instead of AEP.  This description
11289# is tested on the sb2 but should work on all with either switch setting.
11290# The f1/f2 business is for the sb1 and the <xsb> can be taken out for
11291# the other two if you want to try to hit that tiny escape key.
11292# This description is tricky: being able to use cup depends on there being
11293# 2048 bytes of memory and the hairy <nl> string.
11294superbee-xsb|beehive super bee,
11295	am, da, db, xsb,
11296	cols#80, it#8, lines#25,
11297	clear=\EH\EJ$<3>, cnorm=^J, cr=\r$<1000>, cub1=^H, cud1=^J,
11298	cuf1=\EC, cup=\EF%p2%3d%p1%3d, cuu1=\EA$<3>,
11299	dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>,
11300	home=\EH, ht=^I, hts=\E1,
11301	ind=\n\0\0\0\n\0\0\0\EA\EK\0\0\0\ET\ET, is2=\EH\EJ,
11302	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ep, kf2=\Eq,
11303	kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
11304	khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3,
11305# This loses on lines > 80 chars long, use at your own risk
11306superbeeic|super bee with insert char,
11307	ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb,
11308sb2|sb3|fixed superbee,
11309	xsb@, use=superbee,
11310
11311####  Beehive Medical Electronics
11312#
11313# Steve Seymour <srseymour@mindspring.com> writes (Wed, 03 Feb 1999):
11314# Regarding your question though; Beehive terminals weren't made by Harris.
11315# They were made by Beehive Medical Electronics in Utah. They went out of
11316# business in the early '80s.
11317#
11318# (OK, then, I don't know why a couple of these say "harris beehive".)
11319#
11320
11321# Reports are that most of these Beehive entries (except superbee) have not
11322# been tested and do not work right.  <rmso> is a trouble spot.  Be warned.
11323
11324# (bee: <ich1> was empty, which is obviously bogus -- esr)
11325beehive|bee|harris beehive,
11326	OTbs, am, mir,
11327	cols#80, lines#24,
11328	cbt=\E>, clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
11329	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
11330	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, kbs=^H, kcbt=\E>,
11331	kclr=\EE, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
11332	kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ, kil1=\EL,
11333	krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@, sgr0=\Ed@,
11334	smir=\EQ, smso=\EdP, smul=\Ed`,
11335# set tab is ^F, clear (one) tab is ^V, no way to clear all tabs.
11336# good grief - does this entry make :sg:/:ug: when it doesn't have to?
11337# look at those spaces in <rmso>/<smso>.  Seems strange to me...
11338# (beehive: <if=/usr/share/tabset/beehive> removed, no such file.  If you
11339# really care, cook up one using ^F -- esr)
11340beehive3|bh3m|beehiveIIIm|harris beehive 3m,
11341	OTbs, am,
11342	cols#80, it#8, lines#20,
11343	bel=^G, clear=^E^R, cr=^M, cub1=^H, cud1=^J, cuf1=^L, cuu1=^K,
11344	dl1=\021$<350>, ed=^R, el=^P, home=^E, ht=^I, hts=^F,
11345	il1=\023$<160>, ind=^J, ll=^E^K, rmso=\s^_, smso=^]\s,
11346beehive4|bh4|beehive 4,
11347	am,
11348	cols#80, lines#24,
11349	bel=^G, clear=\EE, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
11350	cuu1=\EA, ed=\EJ, el=\EK, home=\EH, ind=^J,
11351# There was an early Australian kit-built computer called a "Microbee".
11352# It's not clear whether this is for one of those or for a relative
11353# of the Beehive.
11354microb|microbee|micro bee series,
11355	OTbs, am,
11356	cols#80, it#8, lines#24,
11357	bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11358	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
11359	el=\EK, ht=^I, ind=^J, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
11360	kcuu1=\EA, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
11361	kf6=\Eu, kf7=\Ev, kf8=\Ew, kf9=\Ex, khome=\EH, rmso=\Ed@,
11362	rmul=\Ed@, sgr0=\Ed@, smso=\s\EdP, smul=\Ed`,
11363
11364# 8675, 8686, and bee from Cyrus Rahman
11365# (8675: changed k10, k11...k16 to k;, F1...F6 -- esr)
11366ha8675|harris 8675,
11367	is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU, kf1=^F,
11368	kf10=\Ed, kf11=^W, kf12=\ER, kf13=\EE, kf14=\EI, kf15=\Ei,
11369	kf16=\Eg, kf2=^P, kf3=^N, kf4=^V, kf5=^J, kf6=^T, kf7=^H,
11370	kf8=\177, kf9=\Ee, use=bee,
11371# (8686: changed k10, k11...k16 to k;, F1...F6; fixed broken continuation
11372# in :is: -- esr)
11373ha8686|harris 8686,
11374	is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU\E"*Z01\E"8F35021B7C83#\E"8F45021B7D83#\E"8F55021B7E83#\E"8F65021B7F83#\E"8F75021B7383#\E"8F851BD7#\E"8F95021B7083#\E"8FA5021B7183#\E"8FB5021B7283#,
11375	kf1=\002\Ep\003, kf10=\Ej, kf11=\EW, kf12=\002\E{\003,
11376	kf13=\002\E|\003, kf14=\002\E}\003, kf15=\002\E~\003,
11377	kf16=\002\E\177\003, kf2=\002\Eq\003, kf3=\002\Er\003,
11378	kf4=\002\Es\003, kf5=\E3, kf6=\EI, kf7=\ER, kf8=\EJ, kf9=\E(,
11379	use=bee,
11380
11381#### Hazeltine
11382#
11383# Hazeltine appears to be out of the terminal business as of 1995.  These
11384# guys were co-owners of the Terminal Brain Damage Hall Of Fame along with
11385# Harris. They have a hazeltine.com domain (but no web page there ) and can
11386# be reached at:
11387#
11388#	Hazeltine
11389#	450 East Pulaski Road
11390#	Greenlawn, New York 11740
11391#
11392# As late as 1993, manuals for the terminal product line could still be
11393# purchased from:
11394#
11395#	TRW Customer Service Division
11396#	15 Law Drive
11397#	P.O. Box 2076
11398#	Fairfield, NJ 07007-2078
11399#
11400# They're now (1998) a subsidiary of General Electric, operating under the
11401# marque "GEC-Marconi Hazeltine" and doing military avionics.  Web page
11402# at <http://www.gec.com/cpd/1ncpd.htm#1.55>.
11403#
11404
11405# Since <cuf1> is blank, when you want to erase something you
11406# are out of luck.  You will have to do ^L's a lot to
11407# redraw the screen.  h1000 is untested.  It doesn't work in
11408# vi - this terminal is too dumb for even vi.  (The code is
11409# there but it isn't debugged for this case.)
11410hz1000|hazeltine 1000,
11411	OTbs,
11412	cols#80, lines#12,
11413	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s, home=^K,
11414	ind=^J,
11415# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
11416hz1420|hazeltine 1420,
11417	OTbs, am,
11418	cols#80, lines#24,
11419	bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=^J, cuf1=^P,
11420	cup=\E\021%p2%c%p1%{32}%+%c, cuu1=\E^L, dl1=\E^S,
11421	ed=\E^X, el=\E^O, ht=^N, il1=\E^Z, ind=^J, rmso=\E^Y,
11422	smso=\E^_,
11423# New "safe" cursor movement (11/87) from <cgs@umd5.umd.edu>.  Prevents
11424# freakout with out-of-range args and tn3270.  No hz since it needs to
11425# receive tildes.
11426hz1500|hazeltine 1500,
11427	OTbs, am, hz,
11428	cols#80, lines#24,
11429	bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11430	cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%{96}%+%c%p1%{96}%+%c,
11431	cuu1=~^L, dl1=~\023$<40>, ed=~\030$<10>, el=~^O, home=~^R,
11432	il1=~\032$<40>, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^P,
11433	kcuu1=~^L, khome=~^R, rmso=~^Y, smso=~^_,
11434# h1510 assumed to be in sane escape mode.  Else use h1500.
11435# (h1510: early versions of this entry apparently had "<rmso=\E^_>,
11436# <smso=\E^Y>, but these caps were commented out in 8.3; also,
11437# removed incorrect and overridden ":do=^J:" -- esr)
11438hz1510|hazeltine 1510,
11439	OTbs, am,
11440	cols#80, lines#24,
11441	bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K, cuf1=^P,
11442	cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S, ed=\E^X,
11443	el=\E^O, il1=\E^Z, ind=^J,
11444# Hazeltine 1520
11445# The following switch settings are assumed for normal operation:
11446#	FULL		CR		U/L_CASE	ESCAPE
11447#	FORMAT_OFF	EOM_A_OFF	EOM_B_OFF	WRAPAROUND_ON
11448# Other switches may be set for operator convenience or communication
11449# requirements.
11450hz1520|Hazeltine 1520,
11451	OTbs, am, bw, msgr,
11452	cols#80, lines#24,
11453	bel=^G, bold=\E^_, clear=\E^\, cr=^M, cub1=^H, cud1=^J,
11454	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
11455	ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, kbs=^H,
11456	kclr=\E^\, kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L,
11457	kdl1=\E^S, ked=\E^X, kel=\E^O, khome=\E^R, kil1=\E^Z,
11458	rmso=\E^Y, rs1=\E$\E\005\E?\E\031, sgr0=\E^Y, smso=\E^_,
11459# This version works with the escape switch off
11460# (h1520: removed incorrect and overridden ":do=^J:" -- esr)
11461hz1520-noesc|hazeltine 1520,
11462	am, hz,
11463	cols#80, lines#24,
11464	bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11465	cup=~\021%p2%c%p1%c$<1>, cuu1=~^L, dl1=~^S, ed=~^X, el=~^O,
11466	home=~^R, il1=~^Z, ind=^J, rmso=~^Y, smso=~^_,
11467# Note: the h1552 appears to be the first Hazeltine terminal which
11468# is not braindamaged.  It has tildes and backprimes and everything!
11469# Be sure the auto lf/cr switch is set to cr.
11470hz1552|hazeltine 1552,
11471	OTbs,
11472	cud1=^J, dl1=\EO, il1=\EE, kf1=\EP, kf2=\EQ, kf3=\ER, lf1=blue,
11473	lf2=red, lf3=green, use=vt52,
11474hz1552-rv|hazeltine 1552 reverse video,
11475	cud1=^J, rmso=\ET, smso=\ES, use=hz1552,
11476# Note: h2000 won't work well because of a clash between upper case and ~'s.
11477hz2000|hazeltine 2000,
11478	OTbs, OTnc, am,
11479	cols#74, lines#27,
11480	bel=^G, clear=~\034$<6>, cub1=^H, cud1=^J,
11481	cup=~\021%p2%c%p1%c, dl1=~\023$<6>, home=~^R,
11482	il1=~\032$<6>, ind=^J, pad=\177,
11483# Date: Fri Jul 23 10:27:53 1982.  Some unknown person wrote:
11484# I tested this termcap entry for the Hazeltine Esprit with vi. It seems
11485# to work ok. There is one problem though if one types a lot of garbage
11486# characters very fast vi seems not able to keep up and hangs while trying
11487# to insert. That's in insert mode while trying to insert in the middle of
11488# a line. It might be because the Esprit doesn't have insert char and delete
11489# char as a built in function. Vi has to delete to end of line and then
11490# redraw the rest of the line.
11491esprit|Hazeltine Esprit I,
11492	OTbs, am, bw,
11493	cols#80, lines#24,
11494	bel=^G, cbt=\E^T, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K,
11495	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
11496	ed=\E^W, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, is2=\E?, kbs=^H,
11497	kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L, kf0=^B0^J,
11498	kf1=^B1^J, kf2=^B2^J, kf3=^B3^J, kf4=^B4^J, kf5=^B5^J,
11499	kf6=^B6^J, kf7=^B7^J, kf8=^B8^J, kf9=^B9^J, khome=\E^R,
11500	lf0=0, lf1=1, lf2=2, lf3=3, lf4=4, lf5=5, lf6=6, lf7=7, lf8=8, lf9=9,
11501	rmkx=\E>, rmso=\E^Y, smkx=\E<, smso=\E^_,
11502esprit-am|hazeltine esprit auto-margin,
11503	am, use=esprit,
11504# Hazeltine Modular-1 from Cliff Shackelton <ittvax!ittral!shackelt> via BRL
11505# Vi it seems always wants to send a control J for "do" and it turned out
11506# that the terminal would work somewhat if the auto LF/CR was turned off.
11507# (hmod1: removed :dn=~^K: -- esr)
11508hmod1|Hazeltine Modular 1,
11509	OTbs, am, hz,
11510	cols#80, lines#24,
11511	bel=^G, cbt=~^T, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11512	cup=~\021%p2%c%p1%c, cuu1=~^L, dl1=~^S, home=~^R, il1=~^Z,
11513	ind=^J, kcub1=^H, kcud1=~^K, kcuf1=^P, kcuu1=~^L, khome=~^R,
11514	rc=~^Q, rmso=~^Y, sc=~^E, sgr0=~^Y, smso=~^_,
11515#
11516# Hazeltine Executive 80 Model 30 (1554?)
11517#	from  Will Martin <control@ALMSA-1.ARPA> via BRL
11518# Like VT100, except for different "am" behavior.
11519hazel|exec80|h80|he80|Hazeltine Executive 80,
11520	OTbs, OTpt, am,
11521	cols#80, it#8, lines#24, vt#3,
11522	OTnl=^J, bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
11523	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
11524	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
11525	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
11526	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
11527	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
11528	kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
11529	kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
11530	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
11531	rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
11532	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
11533	sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
11534	smul=\E[4m$<2/>,
11535
11536#### IBM
11537#
11538
11539ibm327x|line mode IBM 3270 style,
11540	gn,
11541	clear=^M^J, el=^M, home=^M,
11542
11543ibm3101|i3101|IBM 3101-10,
11544	OTbs, am, xon,
11545	cols#80, lines#24,
11546	bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11547	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
11548	el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB,
11549	kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH,
11550ibm3151|IBM 3151 display,
11551	is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B,
11552	sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E>B%;,
11553	sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162,
11554# From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992
11555# removed kend, knp, kpp -TD
11556ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
11557	OTbs, am, mir, msgr,
11558	cols#80, it#8, lines#24,
11559	acsc=j\352k\353l\354m\355n\356q\361t\364u\365v\366w\367x\370,
11560	bel=^G, blink=\E4D, bold=\E4H, clear=\EH\EJ, cr=^M, cub1=\ED,
11561	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
11562	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH, ind=^J,
11563	invis=\E4P, kbs=^H, kcbt=\E2, kclr=\EL\r, kctab=\E1,
11564	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EQ,
11565	kdl1=\EO, ked=\EJ, kel=\EI, kf1=\Ea\r, kf10=\Ej\r,
11566	kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r, kf14=\E!b\r,
11567	kf15=\E!c\r, kf16=\E!d\r, kf17=\E!e\r, kf18=\E!f\r,
11568	kf19=\E!g\r, kf2=\Eb\r, kf20=\E!h\r, kf21=\E!i\r,
11569	kf22=\E!j\r, kf23=\E!k\r, kf24=\E!l\r, kf3=\Ec\r,
11570	kf4=\Ed\r, kf5=\Ee\r, kf6=\Ef\r, kf7=\Eg\r, kf8=\Eh\r,
11571	kf9=\Ei\r, khome=\EH, khts=\E0, kich1=\EP \010, kil1=\EN,
11572	ktbc=\E 1, mc4=^P^T, mc5=^P^R, rev=\E4A, rmcup=\E>A,
11573	rmso=\E4@, rmul=\E4@,
11574	sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E<@%;,
11575	sgr0=\E4@\E<@, smcup=\E>A, smso=\E4A, smul=\E4B,
11576
11577ibm3161-C|IBM 3161-C NLS terminal using cartridge,
11578	rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, use=ibm3161,
11579ibm3162|IBM 3162 display,
11580	blink=\E4$a, bold=\E4(a, il1=\EN, invis=\E40a, rev=\E4!a,
11581	rmso=\E4>b, rmul=\E4=b, sgr0=\E4@, smso=\E4!a, smul=\E4"a,
11582	use=ibm3161-C,
11583
11584# This really should not use setab/setaf, but it is clear that the
11585# original terminfo does not toggle red/blue colors as in setb/setf.
11586ibm3164|i3164|IBM 3164,
11587	msgr,
11588	colors#8, pairs#64,
11589	op=\E4 "@, rmcup=\E!9(N\E>B, s0ds=\E>B, s1ds=\E>A,
11590	setab=\E4  %p1%{64}%+%c,
11591	setaf=\E4%?%p1%t %p1%{32}%+%c%e!'%;@,
11592	smcup=\E!9/N\E>B, use=ibm3161,
11593
11594ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display,
11595	am, bw, msgr, xon,
11596	cols#80, it#8, lines#25,
11597	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
11598	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
11599	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11600	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11601	cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
11602	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H,
11603	hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
11604	indn=\E[%p1%dS, invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z,
11605	kclr=\E[144q, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
11606	kcuu1=\E[A, kdch1=\E[P, ked=\E[148q, kel=\E[142q,
11607	kend=\E[146q, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
11608	kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, kf15=\E[015q,
11609	kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, kf19=\E[019q,
11610	kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, kf22=\E[022q,
11611	kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, kf26=\E[026q,
11612	kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, kf3=\E[003q,
11613	kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, kf33=\E[033q,
11614	kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, kf4=\E[004q,
11615	kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
11616	kf9=\E[009q, khome=\E[H, kich1=\E[139q, kil1=\E[140q,
11617	kind=\E[151q, knp=\E[154q, kpp=\E[150q, kri=\E[155q,
11618	krmir=\E[4l, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmir=\E[4l,
11619	rmso=\E[m, rmul=\E[m, rs2=\Ec,
11620	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m,
11621	sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11622
11623ibmaed|IBM Experimental display,
11624	OTbs, am, eo, msgr,
11625	cols#80, it#8, lines#52,
11626	clear=\EH\EK, cub1=^H, cud1=\EB, cuf1=\EC,
11627	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
11628	dl1=\EO, ed=\EJ, el=\EI, flash=\EG, home=\EH, ht=^I, ich1=\EP,
11629	il1=\EN, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
11630	rmso=\E0, sgr0=\E0, smso=\E0,
11631ibm-apl|apl|IBM apl terminal simulator,
11632	lines#25, use=dm1520,
11633# (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.
11634# Also it had ":I0=f10:" which pretty obviously should be "l0=f10" -- esr)
11635ibmmono|IBM workstation monochrome,
11636	eslok, hs,
11637	bold=\EZ, dl1=\EM, dsl=\Ej\EY8 \EI\Ek, fsl=\Ek, il1=\EL,
11638	invis=\EF\Ef0;\Eb0;, kbs=^H, kf0=\E<, kf1=\ES, kf2=\ET,
11639	kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EY,
11640	khome=\EH, kich1=\0, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG,
11641	lf0=f10, rev=\Ep, ri=\EA, rmso=\Ez, rmul=\Ew,
11642	sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo,
11643	use=ibm3101,
11644ibmega|IBM Enhanced Color Display,
11645	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11646	nel=^M^J, use=ibmmono,
11647# This color scheme is assumed in some recent IBM terminal descriptions
11648# (green on black, emulated on a 16-color terminal).
11649ibm+color|IBM color definitions,
11650	colors#8, ncv#3, pairs#64,
11651	op=\E[32m\E[40m,
11652	setb=\E[%?%p1%{0}%=%t40m%e%p1%{1}%=%t41m%e%p1%{2}%=%t42m%e%p1%{3}%=%t43m%e%p1%{4}%=%t44m%e%p1%{5}%=%t45m%e%p1%{6}%=%t46m%e%p1%{7}%=%t107m%;,
11653	setf=\E[%?%p1%{0}%=%t30m%e%p1%{1}%=%t31m%e%p1%{2}%=%t32m%e%p1%{3}%=%t33m%e%p1%{4}%=%t34m%e%p1%{5}%=%t35m%e%p1%{6}%=%t36m%e%p1%{7}%=%t97m%;,
11654ibm5154|IBM 5154 Color display,
11655	colors#8, ncv@, pairs#64,
11656	bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
11657	use=ibm+color,
11658ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline,
11659	rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;,
11660	use=ibmmono,
11661ibmvga-c|IBM VGA display color termcap,
11662	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11663	nel=^M^J, use=ibmega-c,
11664ibmvga|IBM VGA display,
11665	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11666	nel=^M^J, use=ibmega,
11667# ibmapa* and ibmmono entries come from ACIS 4.3 distribution
11668rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display,
11669	lines#32,
11670	dsl=\Ej\EY@ \EI\Ek, tsl=\Ej\EY@%+ \Eo, use=ibmmono,
11671ibm6155|IBM 6155 Black & White display,
11672	blink@, bold@, use=ibm5151,
11673# Advanced Monochrome (6153) and Color (6154) Graphics Display:
11674ibmapa8c|ibmapa8|IBM 6154 Advanced Graphics Display,
11675	lines#31,
11676	dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmmono,
11677ibmapa8c-c|ibm6154-c|IBM 6154 Advanced Color Graphics Display,
11678	lines#31,
11679	dim=\EF\Ef7;, dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo,
11680	use=ibmega-c,
11681ibm6154|IBM 6154 Color displays,
11682	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
11683	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
11684	sgr0=\E[0;10m, use=ibm5154,
11685ibm6153|IBM 6153 Black & White display,
11686	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
11687	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
11688	sgr0=\E[0;10m, use=ibm5151,
11689ibm6153-90|IBM 6153 Black & White display,
11690	cols#90, lines#36,
11691	blink@, bold@, use=ibm5151,
11692ibm6153-40|IBM 6153 Black & White display,
11693	cols#40, lines#12, use=ibm6153-90,
11694ibm8512|ibm8513|IBM color VGA Terminal,
11695	am, mir, msgr,
11696	cols#80, it#8, lines#25,
11697	acsc=jjkkllmmnnqqttuuvvwwxx, blink=\E[5m, bold=\E[1m,
11698	clear=\E[H\E[J, cub1=\E[D, cud1=^J, cuf1=\E[C,
11699	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
11700	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, il=\E[%p1%dL,
11701	il1=\E[L, is2=\Eb\E[m\017\E[?7h, kcud1=\E[B, kcuu1=\E[A,
11702	kf0=\E[010q, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
11703	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
11704	kf8=\E[008q, kf9=\E[009q, khome=\E[H, rc=\E[u, rev=\E[7m,
11705	rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l,
11706	rmir=\E[4l, rmso=\E[m, rmul=\E[m,
11707	rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m,
11708	smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb,
11709	smdc=\E[4h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11710	use=ibm8503,
11711hft-c|HFT with Color,
11712	colors#8, pairs#64,
11713	acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0,
11714	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B,
11715	use=ibm5151, use=ibm+color,
11716hft-c-old|HFT with Color PC850,
11717	colors#8, pairs#64,
11718	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
11719	use=ibm+color,
11720hft-old|AIWS High Function Terminal,
11721	am, xon,
11722	cols#80, lines#25,
11723	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
11724	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11725	cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
11726	ht=^I, ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, kbs=^H,
11727	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
11728	kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q,
11729	kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
11730	kf9=\E[009q, khome=\E[H, knp=\E[153q, kpp=\E[159q,
11731	ktbc=\E[010q, rev=\E[7m, rmir=\E6, rmso=\E[m, rmul=\E[m,
11732	sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m, use=ibm+color,
11733ibm-system1|system1|ibm system/1 computer,
11734	am, xt,
11735	cols#80, lines#24,
11736	bel=^G, clear=^Z, cub1=^H, cuf1=^\,
11737	cup=\005%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, home=^K,
11738	ind=^J,
11739#       lft-pc850 : IBM Low Function Terminal Device
11740#    lft "supports" underline, bold, and blink in the sense that the lft code
11741#    sets all the right bits.  HOWEVER, depending upon the adapter, these
11742#    attributes may or may not be supported by the device driver.
11743lft|lft-pc850|LFT-PC850|IBM LFT PC850 Device,
11744	am, bw, msgr, xon,
11745	cols#80, it#8, lines#25,
11746	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
11747	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
11748	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11749	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11750	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
11751	dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[2J, el=\E[0K,
11752	home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, il=\E[%p1%dL,
11753	il1=\E[L, ind=\ED, indn=\E[%p1%dS, invis=\E[8m, is2=\Ec,
11754	kbs=^H, kcbt=\E[Z, kclr=\E[144q, kcub1=\E[D, kcud1=\E[B,
11755	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, ked=\E[148q,
11756	kel=\E[142q, kend=\E[146q, kf1=\E[001q, kf10=\E[010q,
11757	kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q,
11758	kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q,
11759	kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q,
11760	kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q,
11761	kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q,
11762	kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q,
11763	kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q,
11764	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
11765	kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
11766	kil1=\E[140q, kind=\E[151q, knp=\E[154q, kpp=\E[150q,
11767	kri=\E[155q, krmir=\E[4l, rev=\E[7m, ri=\EL, rin=\E[%p1%dT,
11768	rmacs=\E(B, rmir=\E[4l, rmso=\E[0m, rmul=\E[0m, rs2=\Ec,
11769	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
11770	sgr0=\E[0m, smacs=\E(0, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11771	tbc=\E[3g,
11772ibm5081|hft|IBM Megapel Color display,
11773	acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
11774	s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
11775ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
11776	eslok, hs,
11777	lines#33,
11778	dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo,
11779	use=ibmega-c,
11780ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display,
11781	use=hft-c,
11782ibm8514|IBM 8514/a color VGA display,
11783	eslok, hs,
11784	dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft,
11785ibm8514-c|IBM 8514 color display with standout and underline,
11786	eslok, hs,
11787	lines#41,
11788	cr=^M, cud1=^J, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=^J,
11789	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, tsl=\Ej\EYI%+ \Eo,
11790	use=ibmega-c,
11791
11792#
11793# AIX entries.  IBM ships these with AIX 3.2.5.
11794# -- added rc, sc based on manpage -TD
11795aixterm|IBM Aixterm Terminal Emulator,
11796	eslok, hs,
11797	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
11798	fsl=\E[?F, rc=\E8, ri@, s0ds=\E(B, s1ds=\E(0, sc=\E7,
11799	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
11800	sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6154,
11801aixterm-m|IBM AIXterm Monochrome Terminal Emulator,
11802	eslok, hs,
11803	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
11804	fsl=\E[?F, ri@, s0ds=\E(B, s1ds=\E(0,
11805	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
11806	sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6153,
11807aixterm-m-old|old IBM AIXterm Monochrome Terminal Emulator,
11808	eslok, hs,
11809	bold=\E[1m, dsl=\E[?E, fsl=\E[?F, ri@,
11810	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
11811	tsl=\E[?%p1%dT, use=ibm6153,
11812jaixterm|IBM Kanji Aixterm Terminal Eemulator,
11813	acsc@, use=aixterm,
11814jaixterm-m|IBM Kanji AIXterm Monochrome Terminal Emulator,
11815	acsc@, use=aixterm-m,
11816
11817#### Infoton/General Terminal Corp.
11818#
11819
11820# gt100 sounds like something DEC would come out with.  Let's hope they don't.
11821i100|gt100|gt100a|General Terminal 100A (formerly Infoton 100),
11822	OTbs, am,
11823	cols#80, lines#24,
11824	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11825	cup=\Ef%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dl1=\EM,
11826	ed=\EJ, el=\EK, flash=\Eb$<200/>\Ea, home=\EH, il1=\EL,
11827	ind=^J, rmso=\Ea, smso=\Eb,
11828i400|infoton 400,
11829	OTbs, am,
11830	cols#80, lines#25,
11831	bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
11832	cup=%i\E[%p1%3d;%p2%3dH, cuu1=\E[A,
11833	dch1=\E[4h\E[2Q\E[P\E[4l\E[0Q, dl1=\E[M, el=\E[N,
11834	il1=\E[L, ind=^J, rmir=\E[4l\E[0Q, smir=\E[4h\E[2Q,
11835# (addrinfo: removed obsolete ":bc=^Z:" -- esr)
11836addrinfo,
11837	am,
11838	cols#80, lines#24,
11839	bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y,
11840	cup=\037%p1%{1}%-%c%p2%{1}%-%c, cuu1=^\, ed=^K, home=^H,
11841	ind=^J, ll=^H^\,
11842# (infoton: used to have the no-ops <lh#0>, <lw#0>, <nlab#0> -- esr)
11843infoton,
11844	am,
11845	cols#80, lines#24,
11846	bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y, cuu1=^\,
11847	ed=^K, ind=^J, ll=^H^\,
11848
11849# The ICL6402 was actually the Kokusai Display System 6402.
11850# The 6404 was the KDS7372 (color version of the 6402).
11851#
11852# ICL6404 control codes follow:
11853#
11854#code            function
11855#~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11856#ctrl-A          set SOM position at cursor position
11857#ctrl-G          Bell
11858#ctrl-H          Backspace
11859#ctrl-I          Horiz tab
11860#ctrl-J          Linefeed
11861#ctrl-K          Cursor up
11862#ctrl-L          Cursor right
11863#ctrl-M          Carriage return
11864#ctrl-N          Disable xon/xoff to host
11865#ctrl-O          Enable xon/xoff to host
11866#ctrl-R          Enable bidirectional mode
11867#ctrl-T          Disable bidirectional mode
11868#ctrl-V          Cursor down
11869#ctrl-Z          Clear unprotected data to insert char
11870#ctrl-^          Cursor home
11871#ctrl-_          Newline
11872#
11873#ESC             lead-in char for multiple character command
11874#
11875#ESC space R     execute power on sequence
11876#ESC ! p1 p2     define scroll region:
11877#                p1 = scroll top    line:  20h - 37h
11878#                p1 = scroll bottom line:  20h - 37h
11879#ESC "           unlock keyboard
11880#ESC #           lock keyboard
11881#ESC $           Semi-graphics mode on
11882#ESC %           Semi-graphics mode off
11883#ESC &           protect mode on
11884#ESC '           protect mode off
11885#ESC (           write protect mode off (full intensity)
11886#ESC )           write protect mode on (half intensity)
11887#
11888#ESC *           clear screen
11889#ESC +           clear unprotected data to insert char
11890#ESC ,           clear unprotected data to half intensity spaces
11891#ESC - p1 p2 p3 p4     address cursor to page, row, column:
11892#                      p1 = page number  0 - 3
11893#                      p2 = row          20h - 7fh
11894#                      p3 = column (lo)  20h - 7fh
11895#                      p4 = column (hi)  20h - 21h (only 132 col)
11896#ESC . p1        set cursor style:
11897#                p1 = 0  invisible cursor
11898#                p1 = 1  block blinking cursor
11899#                p1 = 2  block steady cursor
11900#                p1 = 3  underline blinking cursor
11901#                p1 = 4  underline steady cursor
11902#ESC /           transmit cursor location (page, row, column)
11903#ESC 0 p1 p2 p3 p4     program edit key:
11904#                      p1 = edit key code: '@'-'S', '`'-'s'
11905#                      p2 p3 p4 = program data (3 bytes)
11906#
11907#ESC 1           set tab
11908#ESC 2           clear tab at cursor
11909#ESC 3           clear all tabs
11910#ESC 4           send unprotect line to cursor
11911#ESC 5           send unprotect page to cursor
11912#ESC 6           send line to cursor
11913#ESC 7           send page to cursor
11914#ESC 8 n         set scroll mode:
11915#                n = 0   set jump scroll
11916#                n = 1   set smooth scroll
11917#ESC 9 n         control display:
11918#                n = 0   display off
11919#                n = 1   display on
11920#ESC :           clear unprotected data to null
11921#ESC ;           clear unprotected data to insert char
11922#
11923#ESC <           keyclick on
11924#ESC = p1 p2     address cursor to row, column
11925#                p1 = row          20h - 7fh
11926#                p2 = column (lo)  20h - 7fh
11927#                p3 = column (hi)  20h - 21h (only 132 col)
11928#ESC >           keyclick off
11929#ESC ?           transmit cursor location (row, column)
11930#
11931#ESC @           copy print mode on
11932#ESC A           copy print mode off
11933#ESC B           block mode on
11934#ESC C           block mode off (conversation mode)
11935#ESC D F         set full duplex
11936#ESC D H         set half duplex
11937#ESC E           line insert
11938#ESC F p1 p2     set page colour (p1 = f/grnd, p2 = b/grnd)
11939#                0 = black, 1 = red,     2 = green, 3 = yellow
11940#                4 = blue,  5 = magenta, 6 = cyan,  7 = white
11941#ESC G n         set serial field attribute (n = 30h - 3Fh)
11942#ESC H n         full graphics mode:
11943#                n = 0  exit full graphics mode
11944#                n = 1  enter full graphics mode
11945#ESC I           back tab
11946#ESC J           back page
11947#ESC K           forward page
11948#
11949#ESC L           unformatted page print
11950#ESC M L         move window left  (132 col mode only)
11951#ESC M R         move window right (132 col mode only)
11952#ESC N           set page edit (clear line edit)
11953#ESC O           set line edit (clear page edit)
11954#ESC P           formatted page print
11955#ESC Q           character insert
11956#ESC R           line delete
11957#ESC S           send message unprotected only
11958#ESC T           erase line to insert char
11959#ESC U           set monitor mode   (see ESC X, ESC u)
11960#
11961#ESC V n         select video attribute mode:
11962#                n = 0   serial field attribute mode
11963#                n = 1   parallel character attribute mode
11964#ESC V 2 n       define line attribute:
11965#                n = 0   single width single height
11966#                n = 1   single width double height
11967#                n = 2   double width single height
11968#                n = 3   double width double height
11969#ESC V 3 n       select character font:
11970#                n = 0   system font
11971#                n = 1   user defined font
11972#ESC V 4 n       select screen mode:
11973#                n = 0   page screen mode
11974#                n = 1   virtual screen mode
11975#ESC V 5 n       control mouse mode:
11976#                n = 0   disable mouse
11977#                n = 1   enable sample mode
11978#                n = 2   send mouse information
11979#                n = 3   enable request mode
11980#ESC W           character delete
11981#ESC X           clear monitor mode (see ESC U, ESC u)
11982#ESC Y           erase page to insert char
11983#
11984#ESC Z n         send user/status line:
11985#                n = 0   send user line
11986#                n = 1   send status line
11987#                n = 2   send terminal ID
11988#ESC [ p1 p2 p3  set character attribute (parallel char mode):
11989#                p1: 0 = normal
11990#                    1 = blank
11991#                    2 = blink
11992#                    3 = blink blank (= blank)
11993#                    4 = reverse
11994#                    5 = reverse blank
11995#                    6 = reverse blink
11996#                    7 = reverse blink blank (= reverse blank)
11997#                    8 = underline
11998#                    9 = underline blank
11999#                    : = underline blink
12000#                    ; = underline blink blank
12001#                    < = reverse underline
12002#                    = = reverse underline blank
12003#                    > = reverse underline blink
12004#                    ? = reverse underline blink blank
12005#                p2, p3: f/grnd, b/grnd colour
12006#                (see ESC F for colours)
12007#                use ZZ for mono, eg.
12008#                    ESC [ 0 Z Z for normal
12009#                    ESC [ 4 Z Z for inverse etc.
12010#
12011#ESC \ n         set page size:
12012#                n = 1   24 lines/page
12013#                n = 2   48 lines/page
12014#                n = 3   72 lines/page
12015#                n = 4   96 lines/page
12016#ESC ] n         set Wordstar mode:
12017#                n = 0   normal (KDS7372) mode
12018#                n = 1   Wordstar mode
12019#
12020#ESC b           set foreground colour screen
12021#
12022#ESC c n         enter self-test mode:
12023#                n = 0   exit self test mode
12024#                n = 1   ROM test
12025#                n = 2   RAM test
12026#                n = 3   NVRAM test
12027#                n = 4   screen display test
12028#                n = 5   main/printer port test
12029#                n = 6   mouse port test
12030#                n = 7   graphics board test
12031#                n = 8   graphics memory test
12032#                n = 9   display all 'E'
12033#                n = :   display all 'H'
12034#ESC d           set background colour screen
12035#
12036#ESC e n         program insert char (n = insert char)
12037#ESC f text CR   load user status line with 'text'
12038#
12039#ESC g           display user status line on 25th line
12040#ESC h           display system status line on 25th line
12041#ESC i           tab
12042#ESC j           reverse linefeed
12043#ESC k n         duplex/local edit mode:
12044#                n = 0   duplex edit mode
12045#                n = 1   local edit mode
12046#ESC l n         select virtual screen:
12047#                n = 0   screen 1
12048#                n = 1   screen 2
12049#ESC m           save current config to NVRAM
12050#ESC n p1        select display screen:
12051#                p1 = 0  screen 1
12052#                p1 = 1  screen 2
12053#                p1 = 2  screen 3
12054#                p1 = 3  screen 4
12055#ESC o p1 p2     set characters/line and attribute:
12056#                p1 = 0  80 chars/line
12057#
12058#ESC o p1 p2     set characters/line and attribute:
12059#                p1 = 0  80 chars/line
12060#                p1 = 1  132 chars/line
12061#                p2 = 0  single width single height
12062#                p2 = 1  single width double height
12063#                p2 = 2  double width single height
12064#                p2 = 3  double width double height
12065#
12066#ESC q           insert mode on
12067#ESC r           edit mode on
12068#ESC s           send message all
12069#ESC t           erase line to null
12070#ESC u           clear monitor mode (see ESC U, ESC X)
12071#ESC v           autopage mode on
12072#ESC w           autopage mode off
12073#ESC x p1 p2 p3  define delimiter code...
12074#ESC y           erase page to null
12075#
12076#ESC z 2 p1 p2 p3 p4   draw quadrangle:
12077#                      p1 = starting row
12078#                      p2 = starting column
12079#                      p3 = end row
12080#                      p4 = end column
12081#
12082#ESC { p1 p2 p3 p4     configure main port
12083#                      (baud, stop bits, parity, word length)
12084#
12085#ESC | p1 p2 text Ctrl-Y    program function key with 'text':
12086#                        p1 = function key code:
12087#                             '1' - ';'  normal f1- f11
12088#                             '<' - 'F'  shifted f1 - f11
12089#                        p2 = program mode:
12090#                             1 = FDX
12091#                             2 = LOC
12092#                             3 = HDX
12093#                        Ctrl-Y = terminator
12094#                        (use Ctrl-P to escape ^P, ^Y )
12095#
12096#ESC } p1 p2 p3 p4     configure printer port
12097#                      (baud, stop bits, parity, word length)
12098#ESC ~           send system status
12099#
12100# Codes and info from Peter Disdale <pete@pdlmail.demon.co.uk> 12 May 1997
12101#
12102# Entry is by esr going solely on above information and is UNTESTED.
12103# This actually looks a lot like a Televideo 9xx.
12104# This entry uses page 0 and is monochrome; I'm not brave enough to try
12105# to make color work without a test terminal.  The <am> capability is a guess.
12106# The initialization string sets conversation mode, blinking underline cursor,
12107# full duplex, parallel attribute mode, display user status line, white
12108# foreground, black background, normal highlight.
12109#
12110icl6404|kds7372|icl6402|kds6402|ICL 6404 aka Kokusai Display Systems 7372,
12111	OTbs, am, hs,
12112	cols#80, lines#24,
12113	bel=^G, blink=\E[2ZZ, cbt=\EI, civis=\E.0, clear=\E*,
12114	cnorm=\E.3, cr=^M,
12115	csr=\E!%+%p1%{32}%+%p2%{32} cud1=\026, cuf1=^L,
12116	cup=\E=%p1%{32}%+%c%p2%{80}%m%{32}%+%c%p2%{80}%>%{32}%+%c,
12117	cuu1=^K, cvvis=\E.1, dch1=\EW, dl1=\ER, home=^^, ht=^I,
12118	hts=\E1, il1=\EE, invis=\E[1ZZ,
12119	is1=\EC\E.3\EDF\EV1\Eg\E[0ZZ, nel=^_, rev=\E[4ZZ,
12120	rmir=\Er, rmso=\E[%gh%{4}%^%Ph%gh%dZZ,
12121	rmul=\E[%gh%{8}%^%Ph%gh%dZZ, rs2=\Eo1,
12122	sgr=\E[%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;ZZ,
12123	sgr0=\E[0ZZ, smir=\Eq, smso=\E[8ZZ, smul=\E[8ZZ, tbc=\E3,
12124icl6404-w|kds7372-w|ICL 6404 aka Kokusai Display Systems 7372 132 cols,
12125	rs2=\Eo1, use=icl6404,
12126
12127#### Interactive Systems Corp
12128#
12129# ISC used to sell OEMed and customized hardware to support ISC UNIX.
12130# ISC UNIX still exists in 1995, but ISC itself is no more; they got
12131# bought out by Sun.
12132#
12133
12134# From: <cithep!eric>  Wed Sep 16 08:06:44 1981
12135# (intext: removed obsolete ":ma=^K^P^R^L^L ::bc=^_:", also the
12136# ":le=^_:" later overridden -- esr)
12137intext|Interactive Systems Corporation modified owl 1200,
12138	OTbs, am,
12139	cols#80, it#8, lines#24, xmc#1,
12140	bel=^G, cbt=^Y, clear=\014$<132>, cr=^M, cub1=^H, cud1=^J,
12141	cuf1=^^, cup=\017%p1%{32}%+%c%p2%{32}%+%c, cuu1=^\,
12142	dch1=\022$<5.5*>, dl1=\021$<5.5*>, ed=\026J$<5.5*>,
12143	el=^Kp^R, ht=^I, il1=\020$<5.5*>, ind=^J, ip=$<5.5*>, kbs=^H,
12144	kcub1=^_, kcud1=^J, kcuf1=^^, kcuu1=^\, kf0=^VJ\r, kf1=^VA\r,
12145	kf2=^VB\r, kf3=^VC\r, kf4=^VD\r, kf5=^VE\r, kf6=^VF\r,
12146	kf7=^VG\r, kf8=^VH\r, kf9=^VI\r, khome=^Z, rmir=^V<,
12147	rmkx=^V9, rmso=^V#\s, smir=^V;, smkx=\036\:\264\026%%,
12148	smso=^V$\,,
12149intext2|intextii|INTERACTIVE modified owl 1251,
12150	am, bw, ul,
12151	cols#80, lines#24, xmc#0,
12152	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cud1=\E[B,
12153	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
12154	dl1=\E[M, ed=\E[J, el=\E[K,
12155	flash=\E[;;;;;;;;;2;;u$<200/>\E[;;;;;;;;;1;;u,
12156	hpa=\E[%p1%{1}%+%dG, ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S,
12157	kbs=^H, kcub1=\ED\r, kcud1=\EB\r, kcuf1=\EC\r, kcuu1=\EA\r,
12158	kf0=\E@\r, kf1=\EP\r, kf2=\EQ\r, kf3=\ES\r, kf4=\ET\r,
12159	kf5=\EU\r, kf6=\EV\r, kf7=\EW\r, kf8=\EX\r, kf9=\EY\r,
12160	khome=\ER\r, lf0=REFRSH, lf1=DEL CH, lf2=TABSET, lf3=GOTO,
12161	lf4=+PAGE, lf5=+SRCH, lf6=-PAGE, lf7=-SRCH, lf8=LEFT,
12162	lf9=RIGHT, ri=\E[T, rmso=\E[2 D, rmul=\E[2 D, smso=\E[6 D,
12163	smul=\E[18 D,
12164
12165#### Kimtron (abm, kt)
12166#
12167# Kimtron seems to be history, but as March 1998 these people are still
12168# offering repair services for Kimtron equipment:
12169#
12170#    Com/Pair Monitor Service
12171#    1105 N. Cliff Ave.
12172#    Sioux Falls, South Dakota 57103
12173#
12174#    WATS voice:  1-800/398-4946
12175#    POTS   fax: +1 605/338-8709
12176#    POTS voice: +1 605/338-9650
12177#         Email: <compair@sd.cybernex.net>
12178#  Internet/Web: <http://www.com-pair.com>
12179#
12180# Kimtron entries include (undocumented) codes for: enter dim mode,
12181# enter bold mode, enter reverse mode, turn off all attributes.
12182#
12183
12184# Kimtron ABM 85 added by Dual Systems
12185# (abm85: removed duplicated ":kd=^J:" -- esr)
12186abm85|Kimtron ABM 85,
12187	OTbs, am, bw, msgr,
12188	cols#80, it#8, lines#24, xmc#1,
12189	cbt=\EI, clear=\E*, cub1=^H, cud1=^J, cuf1=^L,
12190	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12191	dl1=\ER, ed=\Ey, el=\Et, ht=^I,
12192	if=/usr/share/tabset/stdcrt, il1=\EE,
12193	is2=\EC\EX\Eg\En\E%\Er\E(\Ek\Em\Eq, kbs=^H, kcub1=^H,
12194	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rmir=\Er, rmso=\Ek,
12195	rmul=\Em, smir=\EQ, smso=\Ej, smul=\El,
12196# Kimtron ABM 85H added by Dual Systems.
12197# Some notes about the abm85h entries:
12198# 1) there are several firmware revs of 85H in the world. Use abm85h-old for
12199#    firmware revs prior to SP51
12200# 2) Make sure to use abm85h entry if the terminal is in 85h mode and the
12201#    abm85e entry if it is in tvi920 emulation mode. They are incompatible
12202#    in some places and NOT software settable i.e., <is2> can't fix it)
12203# 3) In 85h mode, the arrow keys and special functions transmit when
12204#    the terminal is in dup-edit, and work only locally in local-edit.
12205#    Vi won't swallow `del char' for instance, but <smcup> turns on
12206#    dup-edit anyway so that the arrow keys will work right. If the
12207#    arrow keys don't work the way you like, change <smcup>, <rmcup>, and
12208#    <is2>.  Note that 920E mode does not have software commands to toggle
12209#    between dup and local edit, so you get whatever was set last on the
12210#    terminal.
12211# 4) <flash> attribute is nice, but seems too slow to work correctly
12212#    (\Eb<pad>\Ed)
12213# 5) Make sure `hidden' attributes are selected. If `embedded' attributes
12214#    are selected, the <xmc@> entry should be removed.
12215# 6) auto new-line should be on (selectable from setup mode only)
12216#
12217# From: Erik Fair <fair@ucbarpa>  Sun Oct 27 07:21:05 1985
12218abm85h|Kimtron ABM 85H native mode,
12219	hs,
12220	xmc@,
12221	bel=^G, cnorm=\E.4, cvvis=\E.2, dim=\E), dsl=\Ee, flash@,
12222	fsl=^M, invis@,
12223	is2=\EC\EN\EX\024\016\EA\Ea\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\EG0\Ed\E.4\El,
12224	kcud1=^V, sgr0=\E(\EG0, smir=\EZ, tsl=\Eg\Ef, use=adm+sgr,
12225	use=abm85,
12226abm85e|Kimtron ABM 85H in 920E mode,
12227	xmc@,
12228	bel=^G, dim=\E), flash@,
12229	is2=\EC\EX\EA\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\Ek\Eq\Em,
12230	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
12231abm85h-old|oabm85h|o85h|Kimtron ABM 85H with old firmware rev.,
12232	xmc@,
12233	bel=^G, dim=\E),
12234	is2=\E}\EC\EX\Ee\En\E%\Er\E(\Ek\Em\Eq\Ed\ET\EC\E9\EF,
12235	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
12236# From: <malman@bbn-vax.arpa>
12237# (kt7: removed obsolete :ma=^V^J^L :" -- esr)
12238kt7|kimtron model kt-7,
12239	OTbs, am,
12240	cols#80, it#8, lines#24,
12241	cbt=\EI, clear=^Z, cub1=^H, cud1=^V, cuf1=^L,
12242	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12243	dl1=\ER, ed=\EY, el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
12244	if=/usr/share/tabset/stdcrt, il1=\EE, invis@, is2=\El\E",
12245	kbs=^H, kcbt=\EI, kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L,
12246	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r,
12247	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
12248	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
12249	kich1=\EQ, kil1=\EE, tsl=\Ef, use=adm+sgr,
12250# Renamed TB=^I to :ta:, BE=^G to :bl:, BS=^H to :kb:, N to :kS: (based on the
12251# other kt7 entry and the adjacent key capabilities).  Removed EE which is
12252# identical to :mh:.  Removed :ES=\EGD: which is some kind of highlight
12253# but we can't figure out what.
12254kt7ix|kimtron model kt-7 or 70 in IX mode,
12255	am, bw,
12256	cols#80, it#8, lines#25,
12257	acsc=jYk?lZm@nEqDt4uCvAwBx3, bel=^G, blink=\EG2, cbt=\EI,
12258	civis=\E.0, clear=\E*, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V,
12259	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12260	dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=^M,
12261	home=^^, ht=^I, ich1=\EQ, il1=\EE, ind=^J,
12262	is2=\EG0\E s\017\E~, kbs=^H, kcbt=\EI, kclr=\E*,
12263	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\ER,
12264	ked=\EY, kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
12265	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
12266	kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, knp=\EJ,
12267	nel=^M^J, pulse=\EK, rmacs=\E%%, rmir=, rmso=\EG0, rmul=\EG0,
12268	sgr0=\EG0, smacs=\E$, smir=, smso=\EG4, smul=\EG8, tsl=\Ef,
12269
12270#### Microdata/MDIS
12271#
12272# This was a line of terminals made by McDonnell-Douglas Information Systems.
12273# These entries come direct from MDIS documentation.  I have edited them only
12274# to move primary names of the form p[0-9] * to aliases, and to comment out
12275# <rmacs>/<smacs> in a couple of entries without <acsc> strings.  I have
12276# also removed the change history; the last version indicates this is
12277# version 4.3 by A.Barkus, September 1990 (earliest entry is October 1989).
12278#
12279
12280# McDonnell Information Systems Terminal Family History
12281# =========================================
12282#
12283# Prism-1, Prism-2 and P99:
12284#       Ancient Microdata and CMC terminals, vaguely like Adds Regent 25.
12285#
12286# Prism-4 and Prism-5:
12287#       Slightly less ancient range of Microdata terminals. Follow-on from
12288#       Prism-2, but with many enhancements. P5 has eight display pages.
12289#
12290# Prism-6:
12291#       A special terminal for use with library systems, primarily in Germany.
12292#       Limited numbers. Similar functionality to P5 (except attributes?).
12293#
12294# Prism-7, Prism-8 and Prism-9:
12295#       More recent range of MDIS terminals, in which P7 and P8
12296#       replace the P4 & P5, with added functionality, and P9 is the flagship.
12297#       The P9 has two emulation modes - P8 and ANSI - and includes a
12298#       large number of the DEC VT220 control sequences. Both
12299#       P8 and P9 support 80c/24ln/8pg and 132cl/24li/4pg formats.
12300#
12301# Prism-12 and Prism-14:
12302#       Latest range, functionally very similar to the P9.  The P14 has a
12303#       black-on-white overscanning screen.
12304#
12305# The terminfo definitions given here are:
12306#
12307# p2      - Prism-2 (or Prism-1 or P99).
12308#
12309# p4      - Prism-4 (and older P7s & P8s).
12310# p5      - Prism-5 (or Prism-6).
12311#
12312# p7      - Prism-7.
12313# p8      - Prism-8 (in national or multinational mode).
12314# p8-w    - 132 column version of p8.
12315# p9      - Prism-9 in ANSI mode.
12316# p9-w    - 132 column version of p9.
12317# p9-8    - Prism-9 in Prism-8 emulation mode.
12318# p9-8-w  - As p9-8, but with 132 columns.
12319#
12320# p12     - Prism-12 in ANSI mode.
12321# p12-w   - 132 column version of p12.
12322# p12-m   - Prism-12 in MDC emulation mode.
12323# p12-m-w - As p12-m, but with 132 columns.
12324# p14     - Prism-14 in ANSI mode.
12325# p14-w   - 132 column version of p14.
12326# p14-m   - Prism-14 in MDC emulation mode.
12327# p14-m-w - As p14-m, but with 132 columns.
12328#
12329# p2: Prism-2
12330# -----------
12331#
12332# Includes Prism-1 and basic P99 without SP or MP loaded.
12333# The simplest form of Prism-type terminal.
12334# Basic cursor movement and clearing operations only.
12335# No video attributes.
12336# Notes:
12337#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
12338#  value up, followed by backspace.
12339#
12340prism2|MDC Prism-2,
12341	am, bw, msgr,
12342	cols#80, lines#24,
12343	bel=^G, clear=\014$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
12344	cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12345	cuu1=^Z, ed=\EJ, el=\EK, home=^A,
12346	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12347	ind=^J, kbs=^H, khome=^A, vpa=\013%p1%{32}%+%c,
12348
12349# p4: Prism-4
12350# -----------
12351#
12352# Includes early versions of P7 & P8.
12353# Basic family definition for most Prisms (except P2 and P9 ANSI).
12354# Notes:
12355#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
12356#  value up, followed by backspace.
12357#  Cursor key definitions removed because they interfere with vi and csh keys.
12358#
12359prism4|p4|P4|MDC Prism-4,
12360	am, bw, hs, mc5i, msgr,
12361	cols#80, lines#24, wsl#72, xmc#1,
12362	bel=^G, blink=^CB, civis=^]\344, clear=\014$<20>,
12363	cnorm=^]\342, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
12364	cup=\013%p1%{32}%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12365	cuu1=^Z, dim=^CA, dsl=\035\343\035\345, ed=\EJ, el=\EK,
12366	fsl=^]\345, home=^A,
12367	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12368	ind=^J, invis=^CH, kbs=^H, khome=^A, mc0=\EU, mc4=\ET, mc5=\ER,
12369	rev=^CD, rmso=^C\s, rmul=^C\s,
12370	sgr=\003%{64}%?%p1%p3%|%t%{4}%+%;%?%p2%t%{16}%+%;%?%p4%t%{2}%+%;%?%p5%t%{1}%+%;%?%p7%t%{8}%+%;%c%?%p9%t\016%e\017%;,
12371	sgr0=^C\s, smso=^CD, smul=^CP, tsl=^]\343,
12372	vpa=\013%p1%{32}%+%c,
12373
12374# p5: Prism-5
12375# -----------
12376#
12377# Same definition as p4. Includes Prism-6 (not tested!).
12378# Does not use any multi-page features.
12379#
12380prism5|p5|P5|MDC Prism-5,
12381	use=p4,
12382
12383# p7: Prism-7
12384# -----------
12385#
12386# Similar definition to p4. Uses ANSI cursor motion to avoid network problems.
12387# Notes:
12388#  Use p4 for very early models of P7.
12389#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12390#
12391prism7|p7|P7|MDC Prism-7,
12392	cup=\E[%i%p1%d;%p2%dH, hpa@, vpa@, use=p4,
12393
12394# p8: Prism-8
12395# -----------
12396#
12397# Similar definition to p7. Uses ANSI cursor motion to avoid network problems.
12398# Supports national and multinational character sets.
12399# Notes:
12400#  Alternate char set operations only work in multinational mode.
12401#  Use p4 for very early models of P8.
12402#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12403# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
12404#
12405prism8|p8|P8|MDC Prism-8,
12406	cup=\E[%i%p1%d;%p2%dH, hpa=\E[%i%p1%d`, is2=\E[<12h,
12407	vpa=\E[%i%p1%dd, use=p4,
12408
12409# p8-w: Prism-8 in 132 column mode
12410# --------------------------------
12411#
12412# 'Wide' version of p8.
12413# Notes:
12414#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12415#
12416prism8-w|p8-w|P8-W|MDC Prism-8 in 132 column mode,
12417	cols#132,
12418	is2=\E[<12h\E[<14h, use=p8,
12419
12420# p9: Prism-9 in ANSI mode
12421# -------------------------
12422#
12423# The "flagship" model of this generation of terminals.
12424# ANSI X3.64 (ISO 6429) standard sequences, plus many DEC VT220 ones.
12425# Notes:
12426#  Tabs only reset by "reset". Otherwise assumes default (8 cols).
12427#  Fixes to deal with terminal firmware bugs:
12428#  . 'ri' uses insert-line since rev index doesn't always
12429#  . 'sgr0' has extra '0' since esc[m fails
12430#  . 'fsl' & 'dsl' use illegal char since cr is actioned wrong on line 25
12431#  Not covered in the current definition:
12432#  . Labels
12433#  . Programming Fn keys
12434#  . Graphic characters (defaults correctly to vt100)
12435#  . Padding values (sets xon)
12436# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
12437#
12438prism9|p9|P9|MDC Prism-9 in ANSII mode,
12439	am, bw, hs, mc5i, msgr, xenl, xon,
12440	cols#80, it#8, lines#24, vt#3, wsl#72,
12441	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[<4l,
12442	clear=^L, cnorm=\E[<4h, cr=^M, csr=\E[%i%p1%d;%p2%d%%v,
12443	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
12444	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
12445	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
12446	dl=\E[%p1%dM, dl1=\E[M, dsl=\E[%}\024, ech=\E[%p1%dX,
12447	ed=\E[J$<10>, el=\E[K, fsl=^T, home=\E[H, hpa=\E[%i%p1%d`,
12448	ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J,
12449	is2=\E[&p\E[<12l\E F, kbs=^H, kclr=^L, kcub1=\E[D,
12450	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
12451	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
12452	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
12453	kf18=\E[32~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
12454	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
12455	khome=\E[H, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=^M^J,
12456	prot=\E[32%{, rc=\E[%z, rep=\E[%p2%db%p1%c, rev=\E[7m,
12457	ri=\E[L, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
12458	rs2=\E[&p\E[<12l\E F\E[3g\E[9;17;25;33;41;49;57;65;73 N,
12459	sc=\E[%y,
12460	sgr=\E[%{0}%?%p1%p3%|%t%{4}%+%;%?%p2%t%{2}%+%;%?%p4%t%{1}%+%;%?%p6%t%{8}%+%;%?%p8%t%{32}%+%;%d%%{%?%p9%t\016%e\017%;,
12461	sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
12462	tsl=\E[%i%p1%d%%}, vpa=\E[%i%p1%dd,
12463
12464# p9-w: Prism-9 in 132 column mode
12465# --------------------------------
12466#
12467# 'Wide' version of p9.
12468#
12469prism9-w|p9-w|P9-W|MDC Prism-9 in 132 column mode,
12470	cols#132,
12471	is2=\E[&p\E[<12l\E F\E[<14h,
12472	rs2=\E[&p\E[<12l\E F\E[<14h, use=p9,
12473
12474# p9-8: Prism-9 in P8 mode
12475# ------------------------
12476#
12477# P9 terminal in P8 emulation mode.
12478# Similar to p8 definition.
12479# Insertion and deletion operations possible.
12480#
12481prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
12482	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12483	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8,
12484
12485# p9-8-w: Prism-9 in P8 and 132 column modes
12486# ------------------------------------------
12487#
12488# P9 terminal in P8 emulation mode and 132 column mode.
12489#
12490prism9-8-w|p9-8-w|P9-8-W|MDC Prism-9 in Prism 8 emulation and 132 column mode,
12491	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12492	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8-w,
12493
12494# p12: Prism-12 in ANSI mode
12495# ---------------------------
12496#
12497# See p9 definition.
12498#
12499prism12|p12|P12|MDC Prism-12 in ANSI mode,
12500	use=p9,
12501
12502# p12-w: Prism-12 in 132 column mode
12503# ----------------------------------
12504#
12505# 'Wide' version of p12.
12506#
12507prism12-w|p12-w|P12-W|MDC Prism-12 in 132 column mode,
12508	use=p9-w,
12509
12510# p12-m: Prism-12 in MDC emulation mode
12511# -------------------------------------
12512#
12513# P12 terminal in MDC emulation mode.
12514# Similar to p8 definition.
12515# Insertion and deletion operations possible.
12516#
12517prism12-m|p12-m|P12-M|MDC Prism-12 in MDC emulation mode,
12518	use=p9-8,
12519
12520# p12-m-w: Prism-12 in MDC emulation and 132 column modes
12521# -------------------------------------------------------
12522#
12523# P12 terminal in MDC emulation mode and 132 column mode.
12524#
12525prism12-m-w|p12-m-w|P12-M-W|MDC Prism-12 in MDC emulation and 132 column mode,
12526	use=p9-8-w,
12527
12528# p14: Prism-14 in ANSII mode
12529# ---------------------------
12530#
12531# See p9 definition.
12532#
12533prism14|p14|P14|MDC Prism-14 in ANSII mode,
12534	use=p9,
12535
12536# p14-w: Prism-14 in 132 column mode
12537# ----------------------------------
12538#
12539# 'Wide' version of p14.
12540#
12541prism14-w|p14-w|P14-W|MDC Prism-14 in 132 column mode,
12542	use=p9-w,
12543
12544# p14-m: Prism-14 in MDC emulation mode
12545# -------------------------------------
12546#
12547# P14 terminal in MDC emulation mode.
12548# Similar to p8 definition.
12549# Insertion and deletion operations possible.
12550#
12551prism14-m|p14-m|P14-M|MDC Prism-14 in MDC emulation mode,
12552	use=p9-8,
12553
12554# p14-m-w: Prism-14 in MDC emulation and 132 column modes
12555# -------------------------------------------------------
12556#
12557# P14 terminal in MDC emulation mode and 132 column mode.
12558#
12559prism14-m-w|p14-m-w|P14-M-W|MDC Prism-14 in MDC emulation and 132 column mode,
12560	use=p9-8-w,
12561
12562# End of McDonnell Information Systems Prism definitions
12563
12564# These things were popular in the Pick database community at one time
12565# From: George Land <georgeland@aol.com> 24 Sep 1996
12566p8gl|prism8gl|McDonnell-Douglas Prism-8 alternate definition,
12567	am, bw, hs, mir,
12568	cols#80, lines#24, ma#1, wsl#78, xmc#1,
12569	bel=^G, blink=^CB, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F,
12570	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, dch1=\s^H, dim=^CA, dl1=^P,
12571	ed=\EJ, el=\EK, home=^A, ind=^J, invis=^CH, kbs=^H, kcub1=^U,
12572	kcud1=^J, kcuf1=^F, kcuu1=^Z, kdch1=\s^H, kdl1=^P, ked=\EJ,
12573	kel=\EK, kf1=^A@\r, kf10=^AI\r, kf12=^AJ\r, kf13=^AK\r,
12574	kf14=^AL\r, kf15=^AM\r, kf16=^AN\r, kf17=^AO\r, kf2=^AA\r,
12575	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
12576	kf8=^AG\r, kf9=^AH\r, khome=^A, lf1=F1, lf10=F10, lf2=F2,
12577	lf3=F3, lf4=F4, lf5=F5, lf6=F6, lf7=F7, lf8=F8, lf9=F9, nel=^J^M,
12578	pad=\0, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE,
12579	smul=^C0,
12580
12581#### Microterm (act, mime)
12582#
12583# The mime1 entries refer to the Microterm Mime I or Mime II.
12584# The default mime is assumed to be in enhanced act iv mode.
12585#
12586
12587# New "safe" cursor movement (5/87) from <reuss@umd5.umd.edu>.  Prevents
12588# freakout with out-of-range args on Sytek multiplexors.  No <smso=^N> and
12589# <rmso=^N> since  it gets confused and it's too dim anyway.  No <ich1>
12590# since Sytek insists ^S means xoff.
12591# (act4: found ":ic=2^S:ei=:im=:ip=.1*^V:" commented out in 8.3 -- esr)
12592act4|microterm|microterm act iv,
12593	OTbs, am,
12594	cols#80, lines#24,
12595	bel=^G, clear=\014$<12/>, cr=^M, cub1=^H, cud1=^K, cuf1=^X,
12596	cup=\024%p1%{24}%+%c%p2%p2%?%{47}%>%t%{48}%+%;%{80}%+%c,
12597	cuu1=^Z, dch1=\004$<.1*/>, dl1=\027$<2.3*/>,
12598	ed=\037$<2.2*/>, el=\036$<.1*/>, home=^],
12599	il1=\001<2.3*/>, ind=^J, kcub1=^H, kcud1=^K, kcuf1=^X,
12600	kcuu1=^Z,
12601# The padding on :sr: and :ta: for act5 and mime is a guess and not final.
12602# The act 5 has hardware tabs, but they are in columns 8, 16, 24, 32, 41 (!)...
12603# (microterm5: removed obsolete ":ma==^Z^P^Xl^Kj:" -- esr)
12604act5|microterm5|microterm act v,
12605	kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, ri=\EH$<3>, uc=^H\EA,
12606	use=act4,
12607# Mimes using brightness for standout.  Half bright is really dim unless
12608# you turn up the brightness so far that lines show up on the screen.
12609mime-fb|full bright mime1,
12610	is2=^S\E, rmso=^S, smso=^Y, use=mime,
12611mime-hb|half bright mime1,
12612	is2=^Y\E, rmso=^Y, smso=^S, use=mime,
12613# (mime: removed obsolete ":ma=^X ^K^J^Z^P:"; removed ":do=^K:" that overrode
12614# the more plausible ":do=^J:" -- esr)
12615# uc was at one time disabled to get around a curses bug, be wary of it
12616mime|mime1|mime2|mimei|mimeii|microterm mime1,
12617	OTbs, am,
12618	cols#80, it#8, lines#24, vt#9,
12619	bel=^G, clear=^]^C, cr=^M, cub1=^H, cud1=^J, cuf1=^X,
12620	cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%{48}%+%;%{80}%+%c,
12621	cuu1=^Z, dl1=\027$<80>, ed=^_, el=^^, home=^], ht=\011$<2>,
12622	il1=\001$<80>, ind=^J, is2=^S\E^Q, kcub1=^H, kcud1=^K,
12623	kcuf1=^X, kcuu1=^Z, ri=\022$<3>, uc=^U,
12624# These termcaps (for mime2a) put the terminal in low intensity mode
12625# since high intensity mode is so obnoxious.
12626mime2a-s|microterm mime2a (emulating an enhanced soroc iq120),
12627	OTbs, am,
12628	cols#80, lines#24,
12629	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
12630	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EI, dch1=\ED,
12631	dl1=\027$<20*>, ed=\EJ$<20*>, el=\EK, home=^^,
12632	il1=\001$<20*>, ind=^J, ip=$<2>, is2=\E), kcub1=^H, kcud1=^J,
12633	kcuf1=^L, kcuu1=^K, ri=\EI, rmir=^Z, rmso=\E;, rmul=\E7,
12634	smir=\EE, smso=\E\:, smul=\E6,
12635# This is the preferred mode (but ^X can't be used as a kill character)
12636mime2a|mime2a-v|microterm mime2a (emulating an enhanced vt52),
12637	OTbs,
12638	cols#80, it#8, lines#24,
12639	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
12640	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=^N,
12641	dl1=\027$<20*>, ed=\EQ$<20*>, el=\EP, home=\EH, ht=^I,
12642	il1=\001$<20*>, ind=^J, ip=$<2>, is2=^Y, kcub1=\ED,
12643	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EA, rmir=^Z, rmso=\E9,
12644	rmul=\E5, smir=^O, smso=\E8, smul=\E4,
12645# (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
12646mime3a|mime1 emulating 3a,
12647	am@,
12648	kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
12649mime3ax|mime-3ax|mime1 emulating enhanced 3a,
12650	it#8,
12651	dl1=\027$<80>, ed=^_, el=^X, ht=\011$<3>, il1=\001$<80>,
12652	use=mime3a,
12653# Wed Mar  9 18:53:21 1983
12654# We run our terminals at 2400 baud, so there might be some timing problems at
12655# higher speeds. The major improvements in this model are the terminal now
12656# scrolls down and insert mode works without redrawing the rest of the line
12657# to the right of the cursor. This is done with a bit of a kludge using the
12658# exit graphics mode to get out of insert, but it does not appear to hurt
12659# anything when using vi at least. If you have some users using act4s with
12660# programs that use curses and graphics mode this could be a problem.
12661mime314|mm314|mime 314,
12662	am,
12663	cols#80, lines#24,
12664	clear=^L, cub1=^H, cuf1=^X, cup=\024%p1%c%p2%c, cuu1=^Z,
12665	dch1=^D, dl1=^W, ed=^_, el=^^, home=^], ht=^I, il1=^A, kcub1=^H,
12666	kcud1=^K, kcuf1=^X, kcuu1=^Z, rmir=^V, smir=^S,
12667# Microterm mime 340 from University of Wisconsin
12668mm340|mime340|mime 340,
12669	cols#80, lines#24,
12670	clear=\032$<12/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
12671	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12672	dch1=\E#$<2.1*/>, dl1=\EV$<49.6/>, ed=\037$<2*/>,
12673	el=\EL$<2.1/>, ht=^I, il1=\EU$<46/>, ind=^J, is2=\E\,,
12674	kbs=^H, kcub1=^H, kcud1=^J, kcuu1=^K, nel=^M^J,
12675# This came from University of Wisconsin marked "astro termcap for jooss".
12676# (mt4520-rv: removed obsolete ":kn#4:" and incorrect ":ri=\E[C:";
12677# also added <rmam>/<smam> based  on the init string -- esr)
12678mt4520-rv|micro-term 4520 reverse video,
12679	am, hs, msgr, xenl, xon,
12680	cols#80, it#8, lines#24, wsl#80,
12681	bel=^G, clear=\E[H\E[J, cnorm=\E[0V\E8, cr=^M,
12682	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
12683	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
12684	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12685	cvvis=\E7\E[0U, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
12686	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l$<200/>\E[?5h,
12687	fsl=\E[?5l\E[?5h, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
12688	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
12689	is2=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[1;24r\E[24;1H\E[H\E[J,
12690	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12691	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
12692	ll=\E[24;1H, nel=\EE, rc=\E8, rf=/usr/share/tabset/vt100,
12693	ri=\EM, rmam=\E[?7l, rmso=\E[0m, rmul=\E[24m,
12694	rs1=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[H\E[J,
12695	sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
12696	tbc=\E[g, tsl=\E[25;1H,
12697
12698# Fri Aug  5 08:11:57 1983
12699# This entry works for the ergo 4000 with the following setups:
12700# ansi,wraparound,newline disabled, xon/xoff disabled in both
12701# setup a & c.
12702#
12703# WARNING!!! There are multiple versions of ERGO 4000 microcode
12704# Be advised that very early versions DO NOT WORK RIGHT !!
12705# Microterm does have a ROM exchange program- use it or lose big
12706# (ergo400: added <rmam>/<smam> based on the init string -- esr)
12707ergo4000|microterm ergo 4000,
12708	da, db, msgr,
12709	cols#80, lines#66,
12710	bel=^G, clear=\E[H\E[2J$<80>, cr=^M, cub1=^H, cud1=\E[B,
12711	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
12712	dch1=\E[1P$<80>, dl1=\E[1M$<5*>, ed=\E[0J$<15>,
12713	el=\E[0K$<13>, ht=^I, il1=\E[1L$<5*>, ind=\ED$<20*>,
12714	is2=\E<\E=\E[?1l\E[?4l\E[?5l\E[?7h\E[?8h$<300>,
12715	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
12716	kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=pf1, lf2=pf2, lf3=pf3,
12717	lf4=pf4, ri=\EM$<20*>, rmam=\E[?7l, rmir=\E[4l,
12718	rmkx=\E=$<4>, rmso=\E[m$<20>, sgr0=\E[m$<20>,
12719	smam=\E[?7m, smir=\E[4h$<6>, smkx=\E=$<4>,
12720	smso=\E[7m$<20>,
12721
12722#### NCR
12723#
12724# NCR's terminal group was merged with AT&T's when AT&T bought the company.
12725# For what happened to that group, see the ADDS section.
12726#
12727# There is an NCR4103 terminal that's just a re-badged Wyse-50.
12728#
12729
12730# The following vendor-supplied termcaps were captured from the Boundless
12731# Technologies site, 8 March 1998.  I removed all-upper-case names that were
12732# identical, except for case, to lower-case ones.  I also uncommented the acsc
12733# capabilities.X
12734#
12735# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12736# DEC vt200/300 with color capabilities added.
12737ncr260intan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
12738	colors#8, pairs#64,
12739	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12740	use=ncr260vt300an,
12741# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12742# DEC vt200/300 with color capabilities added.
12743ncr260intwan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
12744	colors#8, pairs#64,
12745	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12746	use=ncr260vt300wan,
12747# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12748# DEC vt200/300 with color capabilities added.
12749ncr260intpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard,
12750	colors#8, pairs#64,
12751	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12752	use=ncr260vt300pp,
12753# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
12754# DEC vt200/300 with color capabilities added.
12755ncr260intwpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard in 132 column mode,
12756	colors#8, pairs#64,
12757	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12758	use=ncr260vt300wpp,
12759# This definition for ViewPoint supports several attributes.  This means
12760# that it has magic cookies (extra spaces where the attributes begin).
12761# Some applications do not function well with magic cookies.  The System
12762# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
12763# If supporting various attributes is not vital, 'xmc#1' and the extra
12764# attributes can be removed.
12765# Mapping to ASCII character set ('acsc' capability) can also be
12766# restored if needed.
12767ncr260vppp|NCR 2900_260 viewpoint,
12768	am, bw, hs, km, mc5i, mir, msgr, xon,
12769	cols#80, lines#24, nlab#32, xmc#1,
12770	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
12771	cbt=\EI, civis=\E`0, clear=\014$<40>, cnorm=\E`5,
12772	cr=\r$<2>, cub1=\010$<2>, cud1=\n$<2>, cuf1=\006$<2>,
12773	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5>, cuu1=\032$<2>,
12774	cvvis=\E`5, dch1=\EW$<2>, dim=\EGp, dl1=\El$<2>, dsl=\E`c,
12775	ed=\Ek$<2>, el=\EK$<2>, fsl=^M, home=\036$<2>, ht=^I,
12776	hts=\E1, il1=\EM$<2>, ind=\n$<2>, invis=\EG1,
12777	is2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12778	kDC=\El, kEND=\Ek, kHOM=^A, kPRT=\E7, kRIT=^F, ka1=^A, ka3=\EJ,
12779	kbs=^H, kc1=\ET, kc3=\EJ, kcub1=^U, kcud1=^J, kcuf1=^F,
12780	kcuu1=^Z, kdch1=\EW, kend=\EK, kf1=^B1\r, kf10=^B\:\r,
12781	kf11=^B;\r, kf12=^B<\r, kf13=^B=\r, kf14=^B>\r, kf15=^B?\r,
12782	kf16=^B@\r, kf17=^B!\r, kf18=^B"\r, kf19=^B#\r, kf2=^B2\r,
12783	kf20=^B$\r, kf21=\002%^M, kf22=^B&\r, kf23=^B'\r,
12784	kf24=^B(\r, kf25=^B)\r, kf26=^B*\r, kf27=^B+\r,
12785	kf28=^B\,\r, kf29=^B-\r, kf3=^B3\r, kf30=^B.\r, kf31=^B/\r,
12786	kf32=^B0\r, kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r,
12787	kf8=^B8\r, kf9=^B9\r, khome=^A, kich1=\Eq, knp=\EJ, kpp=\EJ,
12788	kprt=\EP, ll=\001$<5>, mc0=\EP$<100>, mc4=^T, mc5=^R,
12789	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<5>,
12790	nel=\037$<2>, rev=\EG4, ri=\Ej$<2>, rmacs=\EcB0\EH\003,
12791	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
12792	rs2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12793	sgr0=\EG0\EH\003, smacs=\EcB1\EH\002, smir=\Eq,
12794	smso=\EG4, smul=\EG8, smxon=\Ec21, tsl=\EF,
12795ncr260vpwpp|NCR 2900_260 viewpoint wide mode,
12796	cols#132,
12797	cup=\Ea%i%p1%dR%p2%dC$<30>,
12798	is2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12799	rs2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12800	use=ncr260vppp,
12801ncr260vt100an|NCR 2900_260 vt100 with ansi kybd,
12802	am, hs, mir, msgr, xenl, xon,
12803	cols#80, lines#24, nlab#32,
12804	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12805	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
12806	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
12807	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<5>,
12808	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
12809	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
12810	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
12811	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
12812	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
12813	ech=\E[%p1%dX, ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>,
12814	fsl=\E[0$}, home=\E[H$<1>, hpa=\E[%p1%dG$<40>, ht=^I,
12815	hts=\EH, ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>,
12816	il1=\E[L$<5>, ind=\ED$<5>, indn=\E[%p1%dE$<5>,
12817	invis=\E[8m,
12818	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12819	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
12820	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12821	kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
12822	kf4=\EOS, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~,
12823	kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>, rc=\E8,
12824	rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
12825	rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m,
12826	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12827	sc=\E7,
12828	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
12829	sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
12830	smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
12831	tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
12832ncr260vt100wan|NCR 2900_260 vt100 wide mode ansi kybd,
12833	cols#132,
12834	cup=\E[%i%p1%d;%p2%dH$<30>,
12835	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12836	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12837	use=ncr260vt100an,
12838ncr260vt100pp|NCR 2900_260 vt100 with PC+ kybd,
12839	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12840	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
12841	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
12842	kend=\E[5~, khome=\E[2~, kich1=\E[1~, knp=\E[6~, kpp=\E[3~,
12843	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>,
12844	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12845	smkx=\E=, use=ncr260vt100an,
12846ncr260vt100wpp|NCR 2900_260 vt100 wide mode pc+  kybd,
12847	cols#132,
12848	cup=\E[%i%p1%d;%p2%dH$<30>,
12849	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12850	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12851	use=ncr260vt100pp,
12852ncr260vt200an|NCR 2900_260 vt200 with ansi kybd,
12853	am, hs, mir, msgr, xenl, xon,
12854	cols#80, lines#24, nlab#32,
12855	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12856	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
12857	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
12858	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
12859	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
12860	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
12861	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
12862	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
12863	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
12864	ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
12865	fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
12866	ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
12867	ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
12868	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12869	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
12870	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12871	kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
12872	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
12873	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
12874	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
12875	kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
12876	kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
12877	kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
12878	kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
12879	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
12880	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
12881	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
12882	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
12883	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
12884	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12885	sc=\E7,
12886	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
12887	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
12888	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
12889	tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
12890ncr260vt200wan|NCR 2900_260 vt200 wide mode ansi kybd,
12891	cols#132,
12892	cup=\E[%i%p1%d;%p2%dH$<30>,
12893	is2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
12894	rs2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
12895	use=ncr260vt200an,
12896ncr260vt200pp|NCR 2900_260 vt200 with pc+ kybd,
12897	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
12898	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
12899	kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
12900	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
12901	use=ncr260vt200an,
12902ncr260vt200wpp|NCR 2900_260 vt200 wide mode pc+  kybd,
12903	cols#132,
12904	cup=\E[%i%p1%d;%p2%dH$<30>,
12905	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12906	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12907	use=ncr260vt200pp,
12908ncr260vt300an|NCR 2900_260 vt300 with ansi kybd,
12909	am, hs, mir, msgr, xenl, xon,
12910	cols#80, lines#24, nlab#32,
12911	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12912	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
12913	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
12914	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
12915	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
12916	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
12917	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
12918	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
12919	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
12920	ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
12921	fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
12922	ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
12923	ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
12924	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12925	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
12926	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12927	kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
12928	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
12929	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
12930	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
12931	kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
12932	kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
12933	kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
12934	kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
12935	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
12936	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
12937	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
12938	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
12939	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
12940	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12941	sc=\E7,
12942	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
12943	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
12944	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
12945	tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
12946ncr260vt300wan|NCR 2900_260 vt300 wide mode ansi kybd,
12947	cols#132,
12948	cup=\E[%i%p1%d;%p2%dH$<30>,
12949	is2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>,
12950	rs2=\E[!p\E[?3;7;19;67h\E[?4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H$<200>,
12951	use=ncr260vt300an,
12952ncr260vt300pp|NCR 2900_260 vt300 with pc+ kybd,
12953	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
12954	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
12955	kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
12956	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
12957	use=ncr260vt300an,
12958NCR260VT300WPP|ncr260vt300wpp|NCR 2900_260 vt300 wide mode pc+  kybd,
12959	cols#132,
12960	cup=\E[%i%p1%d;%p2%dH$<30>,
12961	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12962	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E[1;0%w\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12963	use=ncr260vt300pp,
12964# This terminfo file contains color capabilities for the Wyse325 emulation of
12965# the NCR 2900/260C color terminal.  Because of the structure of the command
12966# (escape sequence) used to set color attributes, one of the fore/background
12967# colors must be preset to a given value. I have set the background color to
12968# black.  The user can change this setup by altering the last section of the
12969# 'setf' definition.  The escape sequence to set color attributes is
12970#		ESC d y <foreground_color> <background_color> 1
12971# In addition, the background color can be changed through the desk accessories.
12972# The capablitiy 'op' sets colors to green on black (default combination).
12973#
12974# NOTE:  The NCR Unix System Administrator's Shell will not function properly
12975# 	    if the 'pairs' capability is defined. Un-Comment the 'pairs'
12976#	    capability and recompile if you wish to have it included.
12977#
12978ncr260wy325pp|NCR 2900_260 wyse 325,
12979	am, bw, hs, km, mc5i, mir, msgr, xon,
12980	colors#16, cols#80, lines#24, ncv#33, nlab#32,
12981	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
12982	cbt=\EI, civis=\E`0, clear=\E*$<10>, cnorm=\E`1, cr=^M,
12983	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
12984	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
12985	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
12986	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<5>, ht=^I,
12987	hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
12988	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
12989	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
12990	kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI,
12991	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kend=\ET,
12992	kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r,
12993	kf14=^AM\r, kf15=^AN\r, kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r,
12994	kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r,
12995	kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r,
12996	kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r, kf30=^Am\r, kf31=^An\r,
12997	kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
12998	kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ,
12999	kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
13000	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
13001	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
13002	rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13003	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13004	setb=\s,
13005	setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{64}%e%p1%{8}%=%t%{57}%e%p1%{9}%=%t%{58}%e%p1%{10}%=%t%{59}%e%p1%{11}%=%t%{60}%e%p1%{12}%=%t%{61}%e%p1%{13}%=%t%{62}%e%p1%{14}%=%t%{63}%e%p1%{15}%=%t%{56}%;\Edy%c11$<100>,
13006	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH\002\EcB1, smam=\Ed/,
13007	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
13008	tsl=\EF,
13009ncr260wy325wpp|NCR 2900_260 wyse 325 wide mode,
13010	cols#132,
13011	cup=\Ea%i%p1%dR%p2%dC$<30>,
13012	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13013	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13014	use=ncr260wy325pp,
13015# This definition for Wyse 350 supports several attributes.  This means
13016# that it has magic cookies (extra spaces where the attributes begin).
13017# Some applications do not function well with magic cookies.  The System
13018# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
13019# If supporting various attributes is not vital, 'xmc#1' and the extra
13020# attributes can be removed.
13021# Mapping to ASCII character set ('acsc' capability) can also be
13022# restored if needed.
13023# In addition, color capabilities have been added to this file.  The drawback,
13024# however, is that the background color has to be black.  The foreground colors
13025# are numbered 0 through 15.
13026#
13027# NOTE:  The NCR Unix System Administrator's Shell does not function properly
13028# 	    with the 'pairs' capability defined as below.  If you wish to
13029#	    have it included, Un-comment it and recompile (using 'tic').
13030#
13031ncr260wy350pp|NCR 2900_260 wyse 350,
13032	am, bw, hs, km, mc5i, mir, msgr, xon,
13033	colors#16, cols#80, lines#24, ncv#33, nlab#32, xmc#1,
13034	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
13035	cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
13036	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13037	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, cuu1=\013$<5>,
13038	cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
13039	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<10>, ht=^I,
13040	hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
13041	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13042	kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
13043	kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
13044	kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
13045	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
13046	kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
13047	kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
13048	kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
13049	kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
13050	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
13051	khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
13052	mc0=\EP$<10>, mc4=^T, mc5=^R,
13053	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<20>,
13054	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
13055	rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13056	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13057	setb=\s,
13058	setf=%?%p1%{0}%=%t%{49}%e%p1%{1}%=%t%{50}%e%p1%{2}%=%t%{51}%e%p1%{3}%=%t%{52}%e%p1%{4}%=%t%{53}%e%p1%{5}%=%t%{54}%e%p1%{6}%=%t%{55}%e%p1%{7}%=%t%{102}%e%p1%{8}%=%t%{97}%e%p1%{9}%=%t%{98}%e%p1%{10}%=%t%{99}%e%p1%{11}%=%t%{101}%e%p1%{12}%=%t%{106}%e%p1%{13}%=%t%{110}%e%p1%{14}%=%t%{111}%e%p1%{15}%=%t%{56}%;\Em0%c$<100>,
13059	sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, smam=\Ed/,
13060	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
13061	tsl=\EF,
13062ncr260wy350wpp|NCR 2900_260 wyse 350 wide mode,
13063	cols#132,
13064	cup=\Ea%i%p1%dR%p2%dC$<30>,
13065	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13066	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13067	use=ncr260wy350pp,
13068# This definition for Wyse 50+ supports several attributes.  This means
13069# that it has magic cookies (extra spaces where the attributes begin).
13070# Some applications do not function well with magic cookies.  The System
13071# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
13072# If supporting various attributes is not vital, 'xmc#1' and the extra
13073# attributes can be removed.
13074# Mapping to ASCII character set ('acsc' capability) can also be
13075# restored if needed.
13076# (ncr260wy50+pp: originally contained commented-out
13077# <acsc=j5k3l2m1n8q:t4u9v=w0x6>, as well as the commented-out one there -- esr)
13078ncr260wy50+pp|NCR 2900_260 wyse 50+,
13079	am, bw, hs, km, mc5i, mir, msgr, xon,
13080	cols#80, lines#24, nlab#32, xmc#1,
13081	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
13082	cbt=\EI$<5>, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
13083	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13084	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<30>, cuu1=\013$<5>,
13085	cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
13086	ed=\EY$<5>, el=\ET$<5>, fsl=^M, home=\036$<10>,
13087	ht=\011$<5>, hts=\E1$<5>, il1=\EE$<5>, ind=\n$<5>,
13088	invis=\EG1,
13089	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13090	kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
13091	kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
13092	kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
13093	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
13094	kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
13095	kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
13096	kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
13097	kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
13098	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
13099	khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
13100	mc0=\EP$<10>, mc4=^T, mc5=^R,
13101	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
13102	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
13103	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13104	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13105	sgr0=\EG0\EH\003$<15>, smacs=\EH^B, smam=\Ed/, smir=\Eq,
13106	smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<5>, tsl=\EF,
13107ncr260wy50+wpp|NCR 2900_260 wyse 50+ wide mode,
13108	cols#132,
13109	cup=\Ea%i%p1%dR%p2%dC$<30>,
13110	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13111	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13112	use=ncr260wy50+pp,
13113ncr260wy60pp|NCR 2900_260 wyse 60,
13114	am, bw, hs, km, mc5i, mir, msgr, xon,
13115	cols#80, lines#24, nlab#32,
13116	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
13117	cbt=\EI$<15>, civis=\E`0, clear=\E*$<100>, cnorm=\E`1,
13118	cr=^M, cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13119	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
13120	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
13121	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<25>,
13122	ht=\011$<15>, hts=\E1$<15>, il1=\EE$<5>, ind=\n$<5>,
13123	invis=\EG1,
13124	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13125	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
13126	kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK,
13127	kcbt=\EI$<15>, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
13128	kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
13129	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
13130	kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r,
13131	kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r,
13132	kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r,
13133	kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r,
13134	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
13135	kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
13136	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<30>,
13137	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
13138	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13139	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13140	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH^B, smam=\Ed/,
13141	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<15>,
13142	tsl=\EF,
13143ncr260wy60wpp|NCR 2900_260 wyse 60 wide mode,
13144	cols#132,
13145	cup=\Ea%i%p1%dR%p2%dC$<30>,
13146	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13147	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13148	use=ncr260wy60pp,
13149ncr160vppp|NCR 2900_160 viewpoint,
13150	use=ncr260vppp,
13151ncr160vpwpp|NCR 2900_160 viewpoint wide mode,
13152	use=ncr260vpwpp,
13153ncr160vt100an|NCR 2900_160 vt100 with ansi kybd,
13154	use=ncr260vt100an,
13155ncr160vt100pp|NCR 2900_160 vt100 with PC+ kybd,
13156	use=ncr260vt100pp,
13157ncr160vt100wan|NCR 2900_160 vt100 wide mode ansi kybd,
13158	use=ncr260vt100wan,
13159ncr160vt100wpp|NCR 2900_160 vt100 wide mode pc+  kybd,
13160	use=ncr260vt100wpp,
13161ncr160vt200an|NCR 2900_160 vt200 with ansi kybd,
13162	use=ncr260vt200an,
13163ncr160vt200pp|NCR 2900_160 vt200 with pc+ kybd,
13164	use=ncr260vt200pp,
13165ncr160vt200wan|NCR 2900_160 vt200 wide mode ansi kybd,
13166	use=ncr260vt200wan,
13167ncr160vt200wpp|NCR 2900_160 vt200 wide mode pc+  kybd,
13168	use=ncr260vt200wpp,
13169ncr160vt300an|NCR 2900_160 vt300 with ansi kybd,
13170	use=ncr260vt300an,
13171ncr160vt300pp|NCR 2900_160 vt300 with pc+ kybd,
13172	use=ncr260vt300pp,
13173ncr160vt300wan|NCR 2900_160 vt300 wide mode ansi kybd,
13174	use=ncr260vt300wan,
13175ncr160vt300wpp|NCR 2900_160 vt300 wide mode pc+  kybd,
13176	use=ncr260vt300wpp,
13177ncr160wy50+pp|NCR 2900_160 wyse 50+,
13178	use=ncr260wy50+pp,
13179ncr160wy50+wpp|NCR 2900_160 wyse 50+ wide mode,
13180	use=ncr260wy50+wpp,
13181ncr160wy60pp|NCR 2900_160 wyse 60,
13182	use=ncr260wy60pp,
13183ncr160wy60wpp|NCR 2900_160 wyse 60 wide mode,
13184	use=ncr260wy60wpp,
13185ncrvt100an|ncrvt100pp|NCR vt100 for the 2900 terminal,
13186	am, hs, mc5i, mir, msgr, xon,
13187	cols#80, it#8, lines#24, nlab#32,
13188	acsc=``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~,
13189	bel=^G, blink=\E[5m$<30>, bold=\E[1m$<30>,
13190	clear=\E[2J\E[1;1H$<300>, cr=^M,
13191	csr=\E[%i%p1%d;%p2%dr$<100>, cub=\E[%p1%dD$<30>,
13192	cub1=\E[D$<2>, cud=\E[%p1%dB$<30>, cud1=\E[B$<2>,
13193	cuf=\E[%p1%dC$<30>, cuf1=\E[C$<2>,
13194	cup=\E[%i%p1%d;%p2%dH$<100>, cuu=\E[%p1%dA$<30>,
13195	cuu1=\E[A$<2>, dch=\E[%p1%dP$<40>, dch1=\E[1P$<10>,
13196	dl=\E[%p1%dM$<70>, dl1=\E[M$<40>, dsl=\E[31l$<25>,
13197	ed=\E[0J$<300>, el=\E[0K$<30>, el1=\E[1K$<30>,
13198	enacs=\E(B\E)0$<40>, fsl=1$<10>, home=\E[H$<2>$<80>,
13199	ht=^I, hts=\EH, il=\E[%p1%dL$<80>, il1=\E[B\E[L$<80>,
13200	ind=\ED,
13201	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3l\E(B\E)0$<200>,
13202	kLFT=\E[D, kRIT=\E[C, ka1=\E[H, kbs=^H, kcub1=\E[D,
13203	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kent=^M, kf1=\EOP,
13204	kf2=\EOQ, kf3=\EOR, kf4=\EOS, mc0=\E[i$<100>, nel=\EE,
13205	rc=\E8, rev=\E[7m$<30>, ri=\EM$<50>, rmacs=\017$<90>,
13206	rmir=\E[4l$<80>, rmso=\E[0m$<30>, rmul=\E[0m$<30>,
13207	rs2=\Ec\E[12;31h\E[?3;4;5;10l\E[?6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>,
13208	sc=\E7,
13209	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<100>,
13210	sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>,
13211	smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>,
13212	tsl=\E[>+1$<70>,
13213ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal,
13214	cols#132,
13215	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>,
13216	rs2=\Ec\E[12;31h\E[?4;5;10l\E?3;6;7;19;25h\E[33;34l\E[0m\E(B\E)0\E%/0n\E[P\031$<200>,
13217	use=ncrvt100an,
13218#
13219# Vendor-supplied NCR termcaps end here
13220
13221# NCR7900 DIP switches:
13222#
13223# Switch A:
13224# 1-4 - Baud Rate
13225# 5   - Parity (Odd/Even)
13226# 6   - Don't Send or Do Send Spaces
13227# 7   - Parity Enable
13228# 8   - Stop Bits (One/Two)
13229#
13230# Switch B:
13231# 1   - Upper/Lower Shift
13232# 2   - Typewriter Shift
13233# 3   - Half Duplex / Full Duplex
13234# 4   - Light/Dark Background
13235# 5-6 - Carriage Return Without / With Line Feed
13236# 7   - Extended Mode
13237# 8   - Suppress Keyboard Display
13238#
13239# Switch C:
13240# 1   - End of line entry disabled/enabled
13241# 2   - Conversational mode / (Local?) Mode
13242# 3   - Control characters displayed / not displayed
13243# 4   - (2-wire?) / 4-wire communications
13244# 5   - RTS on and off for each character
13245# 6   - (50Hz?) / 60 Hz
13246# 7   - Exit after level zero diagnostics
13247# 8   - RS-232 interface
13248#
13249# Switch D:
13250# 1   - Reverse Channel (yes / no)
13251# 2   - Manual answer (no / yes)
13252# 3-4 - Cursor appearance
13253# 5   - Communication Rate
13254# 6   - Enable / Disable EXT turnoff
13255# 7   - Enable / Disable CR turnoff
13256# 8   - Enable / Disable backspace
13257#
13258# Since each attribute parameter is 0 or 1, we shift each attribute (standout,
13259# reverse, blink, dim, and underline) the appropriate number of bits (by
13260# multiplying the 0 or 1 by a correct factor to shift) so the bias character,
13261# '@' is (effectively) "or"ed with each attribute to generate the proper third
13262# character in the <ESC>0 sequence.  The <sgr> string implements the following
13263# equation:
13264#
13265# ((((('@' + P5) | (P4 << 1)) | (P3 << 3)) | (P2 << 4)) | (p1 * 17))    =>
13266# ((((('@' + P5) + (P4 << 1)) + (P3 << 3)) + (P2 << 4)) + (p1 * 17))
13267#
13268#	Where:  P1 <==> Standout attribute parameter
13269#		P2 <==> Underline attribute parameter
13270#		P3 <==> Reverse attribute parameter
13271#		P4 <==> Blink attribute parameter
13272#		P5 <==> Dim attribute parameter
13273# From <root@goliath.un.atlantaga.NCR.COM>, init string hacked by SCO.
13274ncr7900i|ncr7900|ncr 7900 model 1,
13275	am, bw, ul,
13276	cols#80, lines#24, xmc#1,
13277	bel=^G, blink=\E0B, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
13278	cup=\E1%p2%c%p1%c, cuu1=^Z, dim=\E0A, ed=\Ek, el=\EK, ind=^J,
13279	is2=\E0@\010\E3\E4\E7, kcub1=^U, kcud1=^J, kcuf1=^F,
13280	kcuu1=^Z, khome=^A, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=\E0@,
13281	rmul=\E0@,
13282	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c,
13283	sgr0=\E0@, smso=\E0Q, smul=\E0`,
13284ncr7900iv|ncr 7900 model 4,
13285	am, bw, eslok, hs,
13286	cols#80, lines#24,
13287	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
13288	cup=\013%p1%{64}%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1,
13289	fsl=\Ek\Ey5, home=\013@\E^E00, il1=\E^N, ind=^J, kbs=^H,
13290	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET,
13291	kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
13292	khome=\EH, lf6=blue, lf7=red, lf8=white, nel=^M^J,
13293	tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo,
13294# Warning: This terminal will lock out the keyboard when it receives a CTRL-D.
13295#	   The user can enter a CTRL-B to get out of this locked state.
13296# In <hpa>, we want to output the character given by the formula:
13297#		((col / 10) * 16) + (col % 10)		where "col" is "p1"
13298ncr7901|ncr 7901 model,
13299	am, bw, ul,
13300	cols#80, lines#24,
13301	bel=^G, blink=\E0B, civis=^W, clear=^L, cnorm=^X, cr=^M,
13302	cub1=^H, cud1=^J, cuf1=^F,
13303	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dim=\E0A,
13304	ed=\Ek, el=\EK,
13305	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c, ind=^J,
13306	is2=\E4^O, kclr=^L, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
13307	khome=^H, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=^O, rmul=^O,
13308	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c\016,
13309	sgr0=^O, smso=\E0Q\016, smul=\E0`\016,
13310	vpa=\013%p1%{64}%+%c,
13311
13312#### Perkin-Elmer (Owl)
13313#
13314# These are official terminfo entries from within Perkin-Elmer.
13315#
13316
13317bantam|pe550|pe6100|perkin elmer 550,
13318	OTbs,
13319	cols#80, lines#24,
13320	bel=^G, clear=\EK$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
13321	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13322	el=\EI$<20>, home=\EH, ind=^J, ll=\EH\EA,
13323fox|pe1100|perkin elmer 1100,
13324	OTbs, am,
13325	cols#80, lines#24,
13326	bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
13327	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13328	ed=\EJ$<5.5*>, el=\EI, flash=\020\002$<200/>\020\003,
13329	home=\EH, hts=\E1, ind=^J, ll=\EH\EA, tbc=\E3,
13330owl|pe1200|perkin elmer 1200,
13331	OTbs, am, in,
13332	cols#80, lines#24,
13333	bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
13334	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13335	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
13336	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
13337	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
13338	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
13339	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
13340	rmso=\E!\0, sgr0=\E!\0, smso=\E!^H, tbc=\E3,
13341pe1251|pe6300|pe6312|perkin elmer 1251,
13342	am,
13343	cols#80, it#8, lines#24, pb#300, vt#8, xmc#1,
13344	bel=^G, clear=\EK$<332>, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
13345	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13346	ed=\EJ$<20*>, el=\EI$<10*>, home=\EH, hts=\E1, ind=^J,
13347	kf0=\ERA, kf1=\ERB, kf10=\ERK, kf2=\ERC, kf3=\ERD, kf4=\ERE,
13348	kf5=\ERF, kf6=\ERG, kf7=\ERH, kf8=\ERI, kf9=\ERJ, tbc=\E3,
13349# (pe7000m: this had
13350# 	rmul=\E!\0, smul=\E!\040,
13351# which is probably wrong, it collides with kf0
13352pe7000m|perkin elmer 7000 series monochrome monitor,
13353	am,
13354	cols#80, lines#24,
13355	bel=^G, cbt=\E!Y, clear=\EK, cr=^M, cub1=\ED, cud1=\EB,
13356	cuf1=\EC, cup=\ES%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
13357	ed=\EJ, el=\EI, home=\EH, ind=^J,
13358	is1=\E!\0\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V,
13359	kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\0, kf1=\E!^A,
13360	kf10=\E!^J, kf2=\E!^B, kf3=\E!^C, kf4=\E!^D, kf5=\E!^E,
13361	kf6=\E!^F, kf7=\E!^G, kf8=\E!^H, kf9=\E!^I, khome=\E!S,
13362	ll=\ES7\s, ri=\ER,
13363pe7000c|perkin elmer 7000 series colour monitor,
13364	is1=\E!\0\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0,
13365	rmul=\E!\0, smso=\Eb2, smul=\E!\s, use=pe7000m,
13366
13367#### Sperry Univac
13368#
13369# Sperry Univac has merged with Burroughs to form Unisys.
13370#
13371
13372# This entry is for the Sperry UTS30 terminal running the TTY
13373# utility under control of CP/M Plus 1R1. The functionality
13374# provided is comparable to the DEC vt100.
13375# (uts30: I added <rmam>/<smam> based on the init string -- esr)
13376uts30|sperry uts30 with cp/m@1R1,
13377	am, bw, hs,
13378	cols#80, lines#24, wsl#40,
13379	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13380	bel=^G, blink=\E[5m, bold=\E[1m, civis=\ER, clear=^L,
13381	cnorm=\ES, cr=^M, csr=\EU%p1%{32}%+%c%p2%{32}%+%c,
13382	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\EB,
13383	cuf=\E[%p1%dC, cuf1=\EC, cup=\E[%i%p1%d;%p2%dH,
13384	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EM,
13385	dl=\E[%p1%dM, dl1=\EL, ed=\E[J, el=\E[K, fsl=^M, home=\E[H,
13386	ht=^I, ich=\E[%p1%d@, ich1=\EO, il=\E[%p1%dL, il1=\EN,
13387	ind=^J, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H, kbs=^H,
13388	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
13389	rc=\EX, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EI,
13390	rin=\E[%p1%dA, rmacs=\Ed, rmam=\E[?7l, rmso=\E[m,
13391	rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
13392	sc=\EW, sgr0=\E[m, smacs=\EF, smam=\E[?7m, smso=\E[7m,
13393	smul=\E[4m, tsl=\E], uc=\EPB,
13394
13395#### Tandem
13396#
13397# Tandem builds these things for use with its line of fault-tolerant
13398# transaction-processing computers.  They aren't generally available
13399# on the merchant market, and so are fairly uncommon.
13400#
13401
13402tandem6510|adm3a repackaged by Tandem,
13403	use=adm3a,
13404
13405# A funny series of terminal that TANDEM uses.  The actual model numbers
13406# have a fourth digit after 653 that designates minor variants.  These are
13407# natively block-mode and rather ugly, but they have a character mode which
13408# this doubtless(?) exploits.  There is a 6520 that is slightly dumber.
13409# (tandem653: had ":sb=\ES:", probably someone's mistake for sf; also,
13410# removed <if=/usr/share/tabset/tandem653>, no such file -- esr)
13411tandem653|t653x|Tandem 653x multipage terminal,
13412	OTbs, am, da, db, hs,
13413	cols#80, lines#24, wsl#64, xmc#1,
13414	clear=\EI, cub1=^H, cud1=^J, cuf1=\EC,
13415	cup=\023%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dsl=\Eo\r,
13416	ed=\EJ, el=\EK, fsl=^M, home=\EH, ind=\ES, ri=\ET, rmso=\E6\s,
13417	rmul=\E6\s, sgr0=\E6\s, smso=\E6$, smul=\E60, tsl=\Eo,
13418
13419#### Tandy/Radio Shack
13420#
13421# Tandy has a line of VDTs distinct from its microcomputers.
13422#
13423
13424dmterm|deskmate terminal,
13425	am, bw,
13426	cols#80, lines#24,
13427	bel=^G, civis=\EG5, clear=\Ej, cnorm=\EG6, cr=^M, cub1=^H,
13428	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
13429	cuu1=\EA, dch1=\ES, dl1=\ER, ed=\EJ, el=\EK, home=\EH, ht=^I,
13430	ich1=\EQ, il1=\EP, ind=\EX, invis@, kcub1=\ED, kcud1=\EB,
13431	kcuf1=\EC, kcuu1=\EA, kf0=\E1, kf1=\E2, kf2=\E3, kf3=\E4,
13432	kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
13433	khome=\EH, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6,
13434	lf6=f7, lf7=f8, lf8=f9, lf9=f10, ll=\EE, rmul@, smul@,
13435	use=adm+sgr,
13436dt100|dt-100|Tandy DT-100 terminal,
13437	xon,
13438	cols#80, lines#24, xmc#1,
13439	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
13440	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
13441	csr=\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
13442	cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
13443	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
13444	il1=\E[L, ind=^J, is2=\E[?3l\E)0\E(B, kcub1=\E[D,
13445	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[?3i,
13446	kf10=\E[?5i, kf2=\E[2i, kf3=\E[@, kf4=\E[M, kf5=\E[17~,
13447	kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, khome=\E[H,
13448	knp=\E[29~, kpp=\E[28~, lf1=f1, lf2=f2, lf3=f3, lf4=f4, lf5=f5,
13449	lf6=f6, lf7=f7, lf8=f8, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m,
13450	sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
13451dt100w|dt-100w|Tandy DT-100 terminal (wide mode),
13452	cols#132, use=dt100,
13453dt110|Tandy DT-110 emulating ansi,
13454	xon,
13455	cols#80, lines#24,
13456	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
13457	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
13458	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[0B, cuf1=\E[C,
13459	cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[0A, dch1=\E[0P,
13460	dl1=\E[0M, ed=\E[0J, el=\E[0K, enacs=\E(B\E)0, home=\E[H,
13461	ht=^I, ich1=\E[0@, il1=\E[0L, ind=^J, is2=\E[?3l\E)0\E(B,
13462	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[K,
13463	kf1=\E[1~, kf10=\E[10~, kf2=\E[2~, kf3=\E[3~, kf4=\E[4~,
13464	kf5=\E[5~, kf6=\E[6~, kf7=\E[7~, kf8=\E[8~, kf9=\E[9~,
13465	khome=\E[G, kich1=\E[@, knp=\E[26~, kpp=\E[25~, lf0=f1,
13466	lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf8=f9,
13467	lf9=f10, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
13468	smacs=^N, smso=\E[7m, smul=\E[4m,
13469pt210|TRS-80 PT-210 printing terminal,
13470	hc, os,
13471	cols#80,
13472	bel=^G, cr=^M, cud1=^J, ind=^J,
13473
13474#### Tektronix (tek)
13475#
13476# Tektronix tubes are graphics terminals.  Most of them use modified
13477# oscilloscope technology incorporating a long-persistence green phosphor,
13478# and support vector graphics on a main screen with an attached "dialogue
13479# area" for interactive text.
13480#
13481
13482tek|tek4012|tektronix 4012,
13483	OTbs, os,
13484	cols#75, lines#35,
13485	bel=^G, clear=\E\014$<1000>, cr=^M, cub1=^H, cud1=^J,
13486	ff=\014$<1000>, is2=\E^O,
13487# (tek4013: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13488tek4013|tektronix 4013,
13489	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4012,
13490tek4014|tektronix 4014,
13491	cols#81, lines#38,
13492	is2=\E\017\E9, use=tek4012,
13493# (tek4015: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13494tek4015|tektronix 4015,
13495	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014,
13496tek4014-sm|tektronix 4014 in small font,
13497	cols#121, lines#58,
13498	is2=\E\017\E\:, use=tek4014,
13499# (tek4015-sm: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13500tek4015-sm|tektronix 4015 in small font,
13501	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014-sm,
13502# Tektronix 4023 from Andrew Klossner <orca!andrew.tektronix@csnet-relay>
13503#
13504# You need to have "stty nl2" in effect.  Some versions of tset(1) know
13505# how to set it for you.
13506#
13507# It's got the Magic Cookie problem around stand-out mode.  If you can't
13508# live with Magic Cookie, remove the :so: and :se: fields and do without
13509# reverse video.  If you like reverse video stand-out mode but don't want
13510# it to flash, change the letter 'H' to 'P' in the :so: field.
13511tek4023|tektronix 4023,
13512	OTbs, am,
13513	OTdN#4, cols#80, lines#24, vt#4, xmc#1,
13514	OTnl=^J, bel=^G, clear=\E\014$<4/>, cr=^M, cub1=^H, cud1=^J,
13515	cuf1=^I, cup=\034%p2%{32}%+%c%p1%{32}%+%c, kbs=^H,
13516	rmso=^_@, smso=^_P,
13517# It is recommended that you run the 4025 at 4800 baud or less;
13518# various bugs in the terminal appear at 9600.  It wedges at the
13519# bottom of memory (try "cat /usr/dict/words"); ^S and ^Q typed
13520# on keyboard don't work.  You have to hit BREAK twice to get
13521# one break at any speed - this is a documented feature.
13522# Can't use cursor motion because it's memory relative, and
13523# because it only works in the workspace, not the monitor.
13524# Same for home. Likewise, standout only works in the workspace.
13525#
13526# <el> was commented out since vi and rogue seem to work better
13527# simulating it with lots of spaces!
13528#
13529# <il1> and <il> had 145ms of padding, but that slowed down vi's ^U
13530# and didn't seem necessary.
13531#
13532tek4024|tek4025|tek4027|tektronix 4024/4025/4027,
13533	OTbs, am, da, db,
13534	cols#80, it#8, lines#34, lm#0,
13535	bel=^G, clear=\037era\r\n\n, cmdch=^_, cr=^M,
13536	cub=\037lef %p1%d\r, cub1=^H, cud=\037dow %p1%d\r,
13537	cud1=^F^J, cuf=\037rig %p1%d\r, cuf1=\037rig\r,
13538	cuu=\037up %p1%d\r, cuu1=^K, dch1=\037dch\r,
13539	dl=\037dli %p1%d\r\006, dl1=\037dli\r\006,
13540	ed=\037dli 50\r, ht=^I, ich1=\037ich\r \010,
13541	il=\037up\r\037ili %p1%d\r, il1=\037up\r\037ili\r,
13542	ind=^F^J,
13543	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
13544	rmkx=\037lea p2\r\037lea p4\r\037lea p6\r\037lea p8\r\037lea f5\r,
13545	smkx=\037lea p4 /h/\r\037lea p8 /k/\r\037lea p6 / /\r\037lea p2 /j/\r\037lea f5 /H/\r,
13546tek4025-17|tek 4025 17 line window,
13547	lines#17, use=tek4025,
13548tek4025-17-ws|tek 4025 17 line window in workspace,
13549	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r\037wor 17\r\037mon 17\r,
13550	rmcup=\037mon h\r, rmso=\037att s\r, smcup=\037wor h\r,
13551	smso=\037att e\r, use=tek4025-17,
13552tek4025-ex|tek4027-ex|tek 4025/4027 w/!,
13553	is2=\037com 33\r\n!sto 9 17 25 33 41 49 57 65 73\r,
13554	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
13555# Tektronix 4025a
13556# From: Doug Gwyn <gwyn@brl-smoke.ARPA>
13557# The following status modes are assumed for normal operation (replace the
13558# initial "!" by whatever the current command character is):
13559#	!COM 29			# NOTE: changes command character to GS (^])
13560#	^]DUP
13561#	^]ECH R
13562#	^]EOL
13563#	^]RSS T
13564#	^]SNO N
13565#	^]STO 9 17 25 33 41 49 57 65 73
13566# Other modes may be set according to communication requirements.
13567# If the command character is inadvertently changed, termcap can't restore it.
13568# Insert-character cannot be made to work on both top and bottom rows.
13569# Clear-to-end-of-display emulation via !DLI 988 is too grotty to use, alas.
13570# There also seems to be a problem with vertical motion, perhaps involving
13571# delete/insert-line, following a typed carriage return.  This terminal sucks.
13572# Delays not specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13573# (tek4025a: removed obsolete ":xx:". This may mean the tek4025a entry won't
13574# work any more. -- esr)
13575tek4025a|Tektronix 4025A,
13576	OTbs, OTpt, am, bw, da, db, xon,
13577	cols#80, it#8, lines#34,
13578	bel=^G, cbt=\035bac;, clear=\035era;\n\035rup;, cmdch=^],
13579	cr=^M, cub=\035lef %p1%d;, cub1=^H, cud=\035dow %p1%d;,
13580	cud1=^J, cuf=\035rig %p1%d;, cuf1=\035rig;,
13581	cuu=\035up %p1%d;, cuu1=^K, dch=\035dch %p1%d;,
13582	dch1=\035dch;, dl=\035dli %p1%d;, dl1=\035dli;,
13583	el=\035dch 80;, hpa=\r\035rig %p1%d;, ht=^I,
13584	il1=\013\035ili;, ind=^J, indn=\035dow %p1%d;,
13585	rs2=!com 29\035del 0\035rss t\035buf\035buf n\035cle\035dis\035dup\035ech r\035eol\035era g\035for n\035pad 203\035pad 209\035sno n\035sto 9 17 25 33 41 49 57 65 73\035wor 0;,
13586	tbc=\035sto;,
13587# From: cbosg!teklabs!davem Wed Sep 16 21:11:41 1981
13588# Here's the command file that I use to get rogue to work on the 4025.
13589# It should work with any program using the old curses (e.g. it better
13590# not try to scroll, or cursor addressing won't work.  Also, you can't
13591# see the cursor.)
13592# (This "learns" the arrow keys for rogue. I have adapted it for termcap - mrh)
13593tek4025-cr|tek 4025 for curses and rogue,
13594	OTbs, am,
13595	cols#80, it#8, lines#33,
13596	clear=\037era;, cub1=^H, cud1=^F^J, cuf1=\037rig;,
13597	cup=\037jum%i%p1%d\,%p2%d;, cuu1=^K, ht=^I, ind=^F^J,
13598	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
13599	rmcup=\037wor 0, smcup=\037wor 33h,
13600# next two lines commented out since curses only allows 128 chars, sigh.
13601#	: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:\
13602#	: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:
13603tek4025ex|4025ex|4027ex|tek 4025 w/!,
13604	is2=\037com 33\r\n!sto 9\,17\,25\,33\,41\,49\,57\,65\,73\r,
13605	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
13606tek4105|tektronix 4105,
13607	OTbs, am, mir, msgr, ul, xenl, xt,
13608	cols#79, it#8, lines#29,
13609	acsc=, bel=^G, blink=\E[=3;<7m, bold=\E[=7;<4m, cbt=\E[Z,
13610	clear=\E[2J\E[H, cr=^M, cud1=\E[1B, cuf1=\E[1C,
13611	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[1A, dch1=\E[1P,
13612	dim=\E[=1;<6m, dl1=\E[1M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
13613	il1=\E[1L, ind=\E[S, invis=\E[=6;<5, is1=\E%!1\E[m,
13614	is2=\E%!1\E[?6141\E[m, kbs=^H, kcub1=\E[1D, kcud1=\E[1B,
13615	kcuf1=\E[1C, kcuu1=\E[1A, rev=\E[=1;<3m, ri=\E[T,
13616	rmacs=\E[m, rmcup=, rmir=\E[4l, rmso=\E[=0;<1m,
13617	rmul=\E[=0;<1m, sgr0=\E[=0;<1m, smacs=\E[1m,
13618	smcup=\E%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
13619	smul=\E[=5;<2m, tbc=\E[1g,
13620
13621# (tek4105-30: I added <rmam>/<smam> based on the init string -- esr)
13622tek4105-30|4015 emulating 30 line vt100,
13623	am, mir, msgr, xenl, xon,
13624	cols#80, it#8, lines#30, vt#3,
13625	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13626	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
13627	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13628	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13629	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
13630	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
13631	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
13632	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
13633	ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
13634	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
13635	kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
13636	kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
13637	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
13638	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
13639	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
13640	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
13641	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
13642	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
13643
13644# Tektronix 4105 from BRL
13645# The following setup modes are assumed for normal operation:
13646#	CODE ansi		CRLF no			DABUFFER 141
13647#	DAENABLE yes		DALINES 30		DAMODE replace
13648#	DAVISIBILITY yes	ECHO no			EDITMARGINS 1 30
13649#	FLAGGING input		INSERTREPLACE replace	LFCR no
13650#	ORIGINMODE relative	PROMPTMODE no		SELECTCHARSET G0 B
13651#	SELECTCHARSET G1 0	TABS -2
13652# Other setup modes may be set for operator convenience or communication
13653# requirements; I recommend
13654#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
13655#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
13656#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
13657#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 10 1
13658#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
13659#	PROMPTSTRING ''		QUEUESIZE 2460		WINDOW 0 0 4095 3132
13660#	XMTDELAY 0
13661# and factory color maps.  After setting these modes, save them with NVSAVE. No
13662# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13663# "IC" cannot be used in combination with "im" & "ei".
13664# "tek4105a" is just a guess:
13665tek4105a|Tektronix 4105,
13666	OTbs, OTpt, msgr, xon,
13667	OTkn#8, cols#80, it#8, lines#30, vt#3,
13668	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
13669	civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
13670	cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13671	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13672	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13673	cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
13674	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
13675	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
13676	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
13677	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13678	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
13679	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
13680	lf5=F6, lf6=F8, ll=\E[30;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
13681	rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
13682	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
13683	rs2=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40\ELI100\ELLA>\ELM0\EKE0\ENF1\EKS0\END0\E%!1\Ec\E[?3;5l\E[?7;8h\E[r\E[m\E>,
13684	sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
13685	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
13686
13687#
13688# Tektronix 4106/4107/4109 from BRL
13689# The following setup modes are assumed for normal operation:
13690#	CODE ansi		COLUMNMODE 80		CRLF no
13691#	DABUFFER 141		DAENABLE yes		DALINES 32
13692#	DAMODE replace		DAVISIBILITY yes	ECHO no
13693#	EDITMARGINS 1 32	FLAGGING input		INSERTREPLACE replace
13694#	LFCR no			LOCKKEYBOARD no		ORIGINMODE relative
13695#	PROMPTMODE no		SELECTCHARSET G0 B	SELECTCHARSET G1 0
13696#	TABS -2
13697# Other setup modes may be set for operator convenience or communication
13698# requirements; I recommend
13699#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
13700#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
13701#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
13702#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 9 3
13703#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
13704#	PROMPTSTRING ''		QUEUESIZE 2620		WINDOW 0 0 4095 3132
13705#	XMTDELAY 0
13706# and factory color maps.  After setting these modes, save them with NVSAVE.  No
13707# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13708# "IC" cannot be used in combination with "im" & "ei".
13709tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109,
13710	msgr, xon,
13711	cols#80, it#8, lines#32, vt#3,
13712	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
13713	civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
13714	cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13715	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13716	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13717	cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
13718	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
13719	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
13720	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
13721	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13722	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
13723	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
13724	lf5=F6, lf6=F8, ll=\E[32;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
13725	rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
13726	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
13727	rs1=\030\E%!0\EKC\E\014\EKR0\EKF0\ENM0\ELBH=\ETF8000010F40\ELI100\ELLB0\ELM0\EKE0\ENF1\EKS0\END0\ERE0\E%!1\Ec\E[?3;5l\E[?7;8h\E[r\E[m\E>,
13728	sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
13729	smkx=\E[?1h\E=, smso=\E[7;42m, smul=\E[4m, tbc=\E[3g,
13730
13731tek4107|tek4109|tektronix terminals 4107 4109,
13732	OTbs, am, mir, msgr, ul, xenl, xt,
13733	cols#79, it#8, lines#29,
13734	bel=^G, blink=\E%!1\E[5m$<2>\E%!0,
13735	bold=\E%!1\E[1m$<2>\E%!0, clear=\ELZ, cnorm=\E%!0, cr=^M,
13736	cub1=^H, cud1=^J, cuf1=\EC,
13737	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E%!3,
13738	dim=\E%!1\E[<0m$<2>\E%!0, ed=\EJ, el=\EK, ht=^I, ind=^J,
13739	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
13740	rev=\E%!1\E[7m$<2>\E%0, ri=\EI,
13741	rmso=\E%!1\E[m$<2>\E%!0, rmul=\E%!1\E[m$<2>\E%!0,
13742	sgr=\E%%!1\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m\E%%!0,
13743	sgr0=\E%!1\E[m$<2>\E%!0, smso=\E%!1\E[7;5m$<2>\E%!0,
13744	smul=\E%!1\E[4m$<2>\E%!0,
13745# Tektronix 4207 with sysline.  In the ancestral termcap file this was 4107-s;
13746# see the note attached to tek4207.
13747tek4207-s|Tektronix 4207 with sysline but no memory,
13748	eslok, hs,
13749	dsl=\E7\E[?6l\E[2K\E[?6h\E8, fsl=\E[?6h\E8,
13750	is1=\E%!1\E[2;32r\E[132D\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
13751	is2=\E7\E[?6l\E[2K\E[?6h\E8,
13752	tsl=\E7\E[?6l\E[2K\E[;%i%df, use=tek4107,
13753
13754# The 4110 series may be a wonderful graphics series, but they make the 4025
13755# look good for screen editing.  In the dialog area, you can't move the cursor
13756# off the bottom line.  Out of the dialog area, ^K moves it up, but there
13757# is no way to scroll.
13758#
13759# Note that there is a floppy for free from Tek that makes the
13760# 4112 emulate the vt52 (use the vt52 termcap). There is also
13761# an expected enhancement that will use ANSI standard sequences.
13762#
13763# 4112 in non-dialog area pretending to scroll. It really wraps
13764# but vi is said to work (more or less) in this mode.
13765#
13766# 'vi' works reasonably well with this entry.
13767#
13768otek4112|o4112-nd|otek4113|otek4114|old tektronix 4110 series,
13769	am,
13770	cols#80, lines#34,
13771	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuu1=^K, ind=^J,
13772	rmcup=\EKA1\ELV1, smcup=\EKA0\ELV0\EMG0,
13773# The 4112 with the ANSI compatibility enhancement
13774tek4112|tek4114|tektronix 4110 series,
13775	OTbs, am, db,
13776	cols#80, lines#34,
13777	cbt=\E[Z, clear=\E[2J\E[0;0H, cub1=^H, cuf1=\E[C,
13778	cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch1=\E[P, dl1=\E[M,
13779	ed=\E[0J, el=\E[0K, ich1=\E[@, il1=\E[L,
13780	ind=\E7\E[0;0H\E[M\E8, is2=\E3!1, ri=\E7\E[0;0H\E[L\E8,
13781	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
13782tek4112-nd|4112 not in dialog area,
13783	OTns,
13784	cuu1=^K, use=tek4112,
13785tek4112-5|4112 in 5 line dialog area,
13786	lines#5, use=tek4112,
13787# (tek4113: this used to have "<cuf1=\LM1\s\LM0>", someone's mistake;
13788# removed "<smacs=\E^N>, <rmacs=\E^O>", which had been commented out in 8.3.
13789# Note, the !0 and !1 sequences in <rmcup>/<smcup>/<cnorm>/<civis> were
13790# previously \0410 and \0411 sequences...I don't *think* they were supposed
13791# to be 4-digit octal -- esr)
13792tek4113|tektronix 4113 color graphics with 5 line dialog area,
13793	OTbs, am, da, eo,
13794	cols#80, lines#5,
13795	clear=\ELZ, cub1=^H, cud1=^J, cuf1=\ELM1 \ELM0,
13796	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
13797	is2=\EKA1\ELL5\ELV0\ELV1, uc=\010\ELM1_\ELM0,
13798tek4113-34|tektronix 4113 color graphics with 34 line dialog area,
13799	lines#34,
13800	is2=\EKA1\ELLB2\ELV0\ELV1, use=tek4113,
13801# :ns: left off to allow vi visual mode. APL font (:as=\E^N:/:ae=\E^O:) not
13802# supported here. :uc: is slow, but looks nice. Suggest setenv MORE -up .
13803# :vb: needs enough delay to let you see the background color being toggled.
13804tek4113-nd|tektronix 4113 color graphics with no dialog area,
13805	OTbs, am, eo,
13806	cols#80, it#8, lines#34,
13807	clear=\E^L, cub1=^H, cud1=^J, cuf1=^I, cuu1=^K,
13808	cvvis=\ELZ\EKA0,
13809	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
13810	home=\ELF7l\177 @, ht=^I, is2=\ELZ\EKA0\ELF7l\177 @,
13811	ll=\ELF hl @, rmso=\EMT1, smso=\EMT2, uc=\010\EMG1_\EMG0,
13812# This entry is from Tek. Inc.  (Brian Biehl)
13813# (tek4115: :bc: renamed to :le:, <rmam>/<smam> added based on init string -- esr)
13814otek4115|Tektronix 4115,
13815	OTbs, am, da, db, eo,
13816	cols#80, it#8, lines#34,
13817	cbt=\E[Z, clear=\E[H\E[2J,
13818	cnorm=\E%!0\ELBG8\E%!1\E[34;1H, cub1=\E[D, cud1=\E[B,
13819	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
13820	cvvis=\E%!0\ELBB2\E%!1, dch1=\E[P, dl1=\E[M, ed=\E[J,
13821	el=\E[K, home=\E[H, ht=^I, if=/usr/share/tabset/vt100,
13822	il1=\E[L,
13823	is2=\E%!0\E%\014\ELV0\EKA1\ELBB2\ENU@=\ELLB2\ELM0\ELV1\EKYA?\E%!1\E[<1l\E[?7h\E[?8h\E[34;1H\E[34B\E[m,
13824	kbs=^H, ri=\EM, rmam=\E[?7l,
13825	rmcup=\E%!0\ELBG8\E%!1\E[34;1H\E[J, rmir=\E[4l,
13826	rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
13827	smcup=\E%!0\ELBB2\E%!1, smir=\E[4h, smkx=\E=, smso=\E[7m,
13828	smul=\E[4m,
13829tek4115|newer tektronix 4115 entry with more ANSI capabilities,
13830	am, xon,
13831	cols#80, lines#34,
13832	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
13833	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13834	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13835	cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
13836	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%p1%{1}%+%dG,
13837	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
13838	il1=\E[L, ind=^J, invis=\E[8m, kbs=^H, kcub1=\E[D,
13839	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
13840	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, rmam=\E[?7l,
13841	rmso=\E[m, rmul=\E[m,
13842	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
13843	sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
13844	vpa=\E[%p1%{1}%+%dd,
13845# The tek4125 emulates a vt100 incorrectly - the scrolling region
13846# command is ignored.  The following entry replaces <csr> with the needed
13847# <il>, <il>, and <smir>; removes some cursor pad commands that the tek4125
13848# chokes on; and adds a lot of initialization for the tek dialog area.
13849# Note that this entry uses all 34 lines and sets the cursor color to green.
13850# Steve Jacobson 8/85
13851# (tek4125: there were two "\!"s in the is that I replaced with "\E!";
13852# commented out, <smir>=\E1 because there's no <rmir>  -- esr)
13853tek4125|tektronix 4125,
13854	lines#34,
13855	csr@, dl1=\E[1M, il1=\E[1L,
13856	is2=\E%\E!0\EQD1\EUX03\EKA\ELBB2\ELCE0\ELI100\ELJ2\ELLB2\ELM0\ELS1\ELX00\ELV1\E%\E!1\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
13857	rc@, sc@, smkx=\E=, use=vt100,
13858
13859# From: <jcoker@ucbic>
13860# (tek4207: This was the termcap file's entry for the 4107/4207, but SCO
13861# supplied another, less capable 4107 entry.  So we'll use that for 4107 and
13862# note that if jcoker wasn't confused you may be able to use this one.
13863# I merged in <msgr>,<ind>,<ri>,<invis>,<tbc> from a BRL entry -- esr)
13864tek4207|Tektronix 4207 graphics terminal with memory,
13865	am, bw, mir, msgr, ul, xenl,
13866	cols#80, it#8, lines#32,
13867	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J$<156/>,
13868	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13869	cuu1=\EM, dch1=\E[P$<4/>, dl1=\E[M$<3/>, ed=\E[J,
13870	el=\E[K$<5/>, home=\E[H, ht=^I, ich1=\E[@$<4/>,
13871	il1=\E[L$<3/>, ind=\E[S, invis=\E[=6;<5,
13872	is2=\E%!0\ELBP0\E%!1\E[H\E[2g\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[8C\EH\E[J,
13873	kcub1=\E[D, kcud1=\ED, kcuf1=\E[C, kcuu1=\EM, khome=\E[H,
13874	rev=\E[7m, ri=\E[T,
13875	rmcup=\E[?6h\E%!0\ELBP0\E%!1\E[32;1f, rmso=\E[m,
13876	rmul=\E[m, sgr0=\E[m, smcup=\E[?6l\E[H\E[J, smso=\E[7m,
13877	smul=\E[4m, tbc=\E[1g,
13878
13879# From: <carolyn@dali.berkeley.edu>  Thu Oct 31 12:54:27 1985
13880# (tek4404: There was a "\!" in <smcup> that I replaced with "\E!".
13881# Tab had been given as \E2I,that must be the tab-set capability -- esr)
13882tek4404|tektronix 4404,
13883	OTbs,
13884	cols#80, it#8, lines#32,
13885	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
13886	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
13887	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[1M,
13888	ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\E[2I, il1=\E[1L,
13889	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rc=\E8,
13890	rmcup=\E[1;1H\E[0J\E[?6h\E[?1l, rmir=\E[4l,
13891	rmkx=\E[?1h, rmso=\E[27m, rmul=\E[m, sc=\E7, sgr0=\E[m,
13892	smcup=\E%\E!1\E[1;32r\E[?6l\E>, smir=\E[4h,
13893	smkx=\E[?1l, smso=\E[7m, smul=\E[4m,
13894# Some unknown person wrote:
13895# I added the is string - straight Unix has ESC ; in the login
13896# string which sets a ct8500 into monitor mode (aka 4025 snoopy
13897# mode). The is string here cleans up a few things (but not
13898# everything).
13899ct8500|tektronix ct8500,
13900	am, bw, da, db,
13901	cols#80, lines#25,
13902	bel=^G, cbt=\E^I, clear=\E^E, cr=^M, cub1=^H, cud1=^J,
13903	cuf1=\ES, cup=\E|%p1%{32}%+%c%p2%{32}%+%c, cuu1=\ER,
13904	dch1=\E^], dl1=\E^M, ed=\E^U, el=\E^T, ht=^I, ich1=\E^\,
13905	il1=\E^L, ind=^J, is2=\037\EZ\Ek, ri=\E^A, rmso=\E\s,
13906	rmul=\E\s, sgr0=\E\s, smso=\E$, smul=\E!,
13907
13908# Tektronix 4205 terminal.
13909#
13910# am is not defined because the wrap around occurs not when the char.
13911# is placed in the 80'th column, but when we are attempting to type
13912# the 81'st character on the line.  (esr: hmm, this is like the vt100
13913# version of xenl, perhaps am + xenl would work!)
13914#
13915# Bold, dim, and standout are simulated by colors and thus not allowed
13916# with colors.  The tektronix color table is mapped into the RGB color
13917# table by setf/setb. All colors are reset to factory specifications by oc.
13918# The <initc> cap uses RGB notation to define colors.  for arguments 1-3 the
13919# interval (0-1000) is broken into 8 smaller sub-intervals (125).  Each sub-
13920# interval then maps into pre-defined value.
13921tek4205|tektronix 4205,
13922	ccc, mir, msgr,
13923	colors#8, cols#80, it#8, lines#30, ncv#49, pairs#63,
13924	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13925	bel=^G, blink=\E[5m, bold=\E[=7;<4m, cbt=\E[Z,
13926	clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
13927	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
13928	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
13929	dch1=\E[1P, dim=\E[=1;<6m, dl1=\E[1M, ech=\E%p1%dX,
13930	ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I,
13931	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
13932	initc=\E%%!0\ETF4%?%p1%{0}%=%t0%e%p1%{1}%=%t4%e%p1%{2}%=%t3%e%p1%{3}%=%t5%e%p1%{4}%=%t2%e%p1%{5}%=%t6%e%p1%{6}%=%t7%e1%;%?%p2%{125}%<%t0%e%p2%{250}%<%tA2%e%p2%{375}%<%tA?%e%p2%{500}%<%tC8%e%p2%{625}%<%tD4%e%p2%{750}%<%tE1%e%p2%{875}%<%tE\:%eF4%;%?%p3%{125}%<%t0%e%p3%{250}%<%tA2%e%p3%{375}%<%tA?%e%p3%{500}%<%tC8%e%p3%{625}%<%tD4%e%p3%{750}%<%tE1%e%p3%{875}%<%tE\:%eF4%;%?%p4%{125}%<%t0%e%p4%{250}%<%tA2%e%p4%{375}%<%tA?%e%p4%{500}%<%tC8%e%p4%{625}%<%tD4%e%p4%{750}%<%tE1%e%p4%{875}%<%tE\:%eF4%;\E%%!1,
13933	invis=\E[=6;<5, is1=\E%!0\ETM1\E%!1\E[m, kbs=^H,
13934	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOA,
13935	kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EP, kf5=\EQ, kf6=\ER,
13936	kf7=\ES,
13937	oc=\E%!0\ETFB000001F4F4F42F40030F404A4C<F450F4F46F40F47F4F40\E%!1,
13938	op=\E[39;40m, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=,
13939	rmir=\E[4l, rmso=\E[=0;<1m, rmul=\E[24m,
13940	setb=\E[=%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;,
13941	setf=\E[<%?%p1%{0}%=%t0m%e%p1%{1}%=%t4m%e%p1%{2}%=%t3m%e%p1%{3}%=%t5m%e%p1%{4}%=%t2m%e%p1%{5}%=%t6m%e%p1%{6}%=%t7m%e1m%;,
13942	sgr0=\E[=0;<1m\E[24;25;27m\017, smacs=^N,
13943	smcup=\E%%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
13944	smul=\E[4m, tbc=\E[1g,
13945
13946#### Teletype (tty)
13947#
13948# These are the hardcopy Teletypes from before AT&T bought the company,
13949# clattering electromechanical dinosaurs in Bakelite cases that printed on
13950# pulpy yellow roll paper.  If you remember these you go back a ways.
13951# Teletype-branded VDTs are listed in the AT&T section.
13952#
13953# The earliest UNIXes were designed to use these clunkers; nroff and a few
13954# other programs still default to emitting codes for the Model 37.
13955#
13956
13957tty33|tty35|model 33 or 35 teletype,
13958	hc, os, xon,
13959	cols#72,
13960	bel=^G, cr=^M, cud1=^J, ind=^J,
13961tty37|model 37 teletype,
13962	OTbs, hc, os, xon,
13963	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
13964	ind=^J,
13965
13966# There are known to be at least three flavors of the tty40, all seem more
13967# like IBM half duplex forms fillers than ASCII terminals.  They have lots of
13968# awful braindamage, such as printing a visible newline indicator after each
13969# newline.  The 40-1 is a half duplex terminal and is hopeless.  The 40-2 is
13970# braindamaged but has hope and is described here.  The 40-4 is a 3270
13971# lookalike and beyond hope.  The terminal has visible bell but I don't know
13972# it - it's null here to prevent it from showing the BL character.
13973# There is an \EG in <nl> because of a bug in old vi (if stty says you have
13974# a "newline" style terminal (-crmode) vi figures all it needs is nl
13975# to get crlf, even if <cr> is not ^M.)
13976# (tty40: removed obsolete ":nl=\EG\EB:", it's just do+cr -- esr)
13977tty40|ds40|ds40-2|dataspeed40|teletype dataspeed 40/2,
13978	OTbs, xon,
13979	cols#80, lines#24,
13980	clear=\EH$<20>\EJ$<80>, cr=\EG, cub1=^H, cud1=\EB,
13981	cuf1=\EC, cuu1=\E7, dch1=\EP$<50>, dl1=\EM$<50>,
13982	ed=\EJ$<75>, home=\EH$<10>, ht=\E@$<10>, hts=\E1,
13983	ich1=\E\^$<50>, il1=\EL$<50>, ind=\ES$<20>, kbs=^],
13984	kcub1=^H, mc4=^T, mc5=\022$<2000>, ri=\ET$<10>, rmso=\E4,
13985	rs2=\023\ER$<60>, smso=\E3, tbc=\EH\E2$<80>,
13986tty43|model 43 teletype,
13987	OTbs, am, hc, os, xon,
13988	cols#132,
13989	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
13990
13991#### Tymshare
13992#
13993
13994# You can add <is2=\E<> to put this 40-column mode, though I can't
13995# for the life of me think why anyone would want to.
13996scanset|sc410|sc415|Tymshare Scan Set,
13997	am, bw, msgr,
13998	cols#80, lines#24,
13999	acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=^M, cub1=^H,
14000	cud1=^J, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14001	cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=^J, kcub1=\ED,
14002	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, mc0=\E;3, mc4=\E;0,
14003	mc5=\E;0, rc=^C, rmacs=^O, rs1=\E>, sc=^B, smacs=^N,
14004
14005#### Volker-Craig (vc)
14006#
14007# If you saw a Byte Magazine cover with a terminal on it during the early
14008# 1980s, it was probably one of these.  Carl Helmers liked them because
14009# they could crank 19.2 and were cheap (that is, he liked them until he tried
14010# to program one...)
14011#
14012
14013# Missing in vc303a and vc303 descriptions:  they scroll 2 lines at a time
14014# every other linefeed.
14015vc303|vc103|vc203|volker-craig 303,
14016	OTbs, OTns, am,
14017	cols#80, lines#24,
14018	bel=^G, clear=\014$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
14019	cuu1=^N, home=\013$<40>, kcub1=^H, kcud1=^J, kcuf1=^I,
14020	kcuu1=^N, ll=\017$<1>W,
14021vc303a|vc403a|volker-craig 303a,
14022	clear=\030$<40>, cuf1=^U, cuu1=^Z, el=\026$<20>,
14023	home=\031$<40>, kcuf1=^U, kcuu1=^Z, ll=^P, use=vc303,
14024# (vc404: removed obsolete ":ma=^Z^P^U :" -- esr)
14025vc404|volker-craig 404,
14026	OTbs, am,
14027	cols#80, lines#24,
14028	bel=^G, clear=\030$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
14029	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
14030	ed=\027$<40>, el=\026$<20>, home=\031$<40>, ind=^J,
14031	kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z,
14032vc404-s|volker-craig 404 w/standout mode,
14033	cud1=^J, rmso=^O, smso=^N, use=vc404,
14034# From: <wolfgang@cs.sfu.ca>
14035# (vc414: merged in cup/dl1/home from an old vc414h-noxon)
14036vc414|vc414h|Volker-Craig 414H in sane escape mode.,
14037	OTbs, am,
14038	cols#80, lines#24,
14039	clear=\E\034$<40>, cud1=\E^K, cuf1=^P,
14040	cup=\E\021%p2%c%p1%c$<40>, cuu1=\E^L, dch1=\E3,
14041	dl1=\E\023$<40>, ed=\E^X, el=\E\017$<10/>, home=\E^R,
14042	ich1=\E\:, il1=\E\032$<40>, kcub1=^H, kcud1=\E^K, kcuf1=^P,
14043	kcuu1=\E^L, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED, kf4=\EE,
14044	kf5=\EF, kf6=\EG, kf7=\EH, khome=\E^R, lf0=PF1, lf1=PF2,
14045	lf2=PF3, lf3=PF4, lf4=PF5, lf5=PF6, lf6=PF7, lf7=PF8,
14046	rmso=\E^_, smso=\E^Y,
14047vc415|volker-craig 415,
14048	clear=^L, use=vc404,
14049
14050######## OBSOLETE PERSONAL-MICRO CONSOLES AND EMULATIONS
14051#
14052
14053#### IBM PC and clones
14054#
14055
14056# The pcplot IBM-PC terminal emulation program is really messed up. It is
14057# supposed to emulate a vt-100, but emulates the wraparound bug incorrectly,
14058# doesn't support scrolling regions, ignores add line commands, and ignores
14059# delete line commands. Consequently, the resulting behavior looks like a
14060# crude adm3a-type terminal.
14061# Steve Jacobson 8/85
14062pcplot|pc-plot terminal emulation program,
14063	xenl@,
14064	csr@, dl@, dl1@, il@, il1@, rc@, sc@, use=vt100,
14065# KayPro II from Richard G Turner <rturner at Darcom-Hq.ARPA>
14066# I've found that my KayPro II, running MDM730, continues to emulate an
14067# ADM-3A terminal, just like I was running TERM.COM. On our 4.2 UNIX
14068# system the following termcap entry works well:
14069# I have noticed a couple of minor glitches, but nothing I can't work
14070# around. (I added two capabilities from the BRL entry -- esr)
14071kaypro|kaypro2|kaypro II,
14072	OTbs, am,
14073	cols#80, lines#24,
14074	bel=^G, clear=\032$<1/>, cr=^M, cud1=^J, cuf1=^L,
14075	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER, ed=^W,
14076	el=^X, home=^^, il1=\EE, ind=^J, kcud1=^J, kcuf1=^L, kcuu1=^K,
14077
14078# From IBM, Thu May  5 19:35:27 1983
14079# (ibmpc: commented out <smir>=\200R because we don't know <rmir> -- esr)
14080ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS),
14081	OTbs, am,
14082	cols#80, lines#24,
14083	bel=^G, clear=^L^K, cr=^M^^, cub1=^], cud1=^J, cuf1=^\,
14084	cuu1=^^, home=^K, ind=\n$<10>, kcud1=^_,
14085
14086ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX,
14087	OTbs, am, bw, eo, hs, km, msgr, ul,
14088	cols#80, it#8, lines#24,
14089	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
14090	bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M,
14091	cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
14092	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14093	cuu=\E[%p1%dA, cuu1=\E[A, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
14094	home=\E[H, hpa=\E[%i%p1%dG, ind=\E[S\E[B,
14095	indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kbs=^H,
14096	kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
14097	kdch1=\177, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241,
14098	kf3=\242, kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247,
14099	kf9=\250, khome=\E[H, kich1=\E[^H, knp=\E[U, kpp=\E[V,
14100	ll=\E[24;1H, nel=^M, rev=\E[7m, ri=\E[T\E[A,
14101	rin=\E[%p1%dT\E[%p1%dA, rmso=\E[m, rmul=\E[m,
14102	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
14103	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
14104
14105#### Apple II
14106#
14107# Apple II firmware console first, then various 80-column cards and
14108# terminal emulators.  For two cents I'd toss all these in the UFO file
14109# along with the 40-column apple entries.
14110#
14111
14112# From: brsmith@umn-cs.cs.umn.edu (Brian R. Smith) via BRL
14113#	'it#8' tells UNIX that you have tabs every 8 columns.  This is a
14114#		function of TIC, not the firmware.
14115#	The clear key on a IIgs will do something like clear-screen,
14116#		depending on what you're in.
14117appleIIgs|appleIIe|appleIIc|Apple 80 column firmware interface,
14118	OTbs, am, bw, eo, msgr,
14119	cols#80, it#8, lines#24,
14120	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
14121	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14122	home=^Y, ht=^I, ind=^W, kbs=^H, kclr=^X, kcub1=^H, kcud1=^J,
14123	kcuf1=^U, kcuu1=^K, kdch1=\177, nel=^M^W, ri=^V, rmso=^N,
14124	smso=^O,
14125# Apple //e with 80-column card, entry from BRL
14126# The modem interface is permitted to discard LF (maybe DC1), otherwise
14127# passing characters to the 80-column firmware via COUT (PR#3 assumed).
14128# Auto-wrap does not work right due to newline scrolling delay, which also
14129# requires that you set "stty cr2".
14130# Note: Cursor addressing is only available via the Pascal V1.1 entry,
14131# not via the BASIC PR#3 hook.  All this nonsense can be avoided only by
14132# using a terminal emulation program instead of the built-in firmware.
14133apple2e|Apple //e,
14134	bw, msgr,
14135	cols#80, lines#24,
14136	bel=^G, clear=\014$<100/>, cub1=^H, cud1=^J, cuu1=^_,
14137	ed=\013$<4*/>, el=\035$<4/>, home=^Y, ht=^I, ind=^W,
14138	is2=^R^N, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^K,
14139	nel=\r$<100/>, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
14140	smso=^O,
14141# mcvax!vu44!vu45!wilcke uses the "ap" entry together with Ascii Express Pro
14142# 4.20, with incoming and outgoing terminals both on 0, emulation On.
14143apple2e-p|Apple //e via Pascal,
14144	cup=\036%p2%{32}%+%c%p1%{32}%+%c, kbs=^H, kcub1=^H,
14145	kcud1=^J, use=apple2e,
14146# (ASCII Express) MouseTalk "Standard Apple //" emulation from BRL
14147# Enable DC3/DC1 flow control with "stty ixon -ixany".
14148apple-ae|ASCII Express,
14149	OTbs, am, bw, msgr, nxon, xon,
14150	cols#80, it#8, lines#24,
14151	bel=\007$<500/>, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
14152	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14153	home=^Y, ind=^W, is2=^R^N, kclr=^X, kcub1=^H, kcud1=^J,
14154	kcuf1=^U, kcuu1=^K, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
14155	smso=^O,
14156appleII|apple ii plus,
14157	OTbs, am,
14158	cols#80, it#8, lines#24,
14159	clear=^L, cnorm=^TC2, cub1=^H, cud1=^J, cuf1=^\,
14160	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, cvvis=^TC6,
14161	ed=^K, el=^], flash=\024G1$<200/>\024T1, home=\E^Y, ht=^I,
14162	is2=\024T1\016, kcud1=^J, kcuf1=^U, rmso=^N, sgr0=^N,
14163	smso=^O,
14164# Originally by Gary Ford 21NOV83
14165# From: <ee178aci%sdcc7@SDCSVAX.ARPA>  Fri Oct 11 21:27:00 1985
14166apple-80|apple II with smarterm 80 col,
14167	OTbs, am, bw,
14168	cols#80, lines#24,
14169	cbt=^R, clear=\014$<10*/>, cr=\r$<10*/>, cub1=^H, cud1=^J,
14170	cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_,
14171	ed=\013$<10*/>, el=\035$<10/>, home=^Y,
14172apple-soroc|apple emulating soroc 120,
14173	am,
14174	cols#80, lines#24,
14175	bel=^G, clear=\E*$<300>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14176	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
14177	home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
14178# From Peter Harrison, Computer Graphics Lab, San Francisco
14179#   ucbvax!ucsfmis!harrison  .....uucp
14180#   ucbvax!ucsfmis!harrison@BERKELEY   .......ARPA
14181# "These two work.  If you don't have the inverse video chip for the
14182# Apple with videx then remove the :so: and :se: fields."
14183# (apple-videx: this used to be called DaleApple -- esr)
14184apple-videx|Apple with videx videoterm 80 column board with inverse video,
14185	OTbs, am, xenl,
14186	cols#80, it#8, lines#24,
14187	clear=\014$<300/>, cub1=^H, cud1=^J, cuf1=^\,
14188	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14189	home=^Y, ht=^I, kcub1=^H, kcud1=^J, kcuf1=^U, khome=^Y,
14190	rmso=^Z2, sgr0=^Z2, smso=^Z3,
14191# My system [for reference] : Apple ][+, 64K, Ultraterm display card,
14192#			      Apple Cat ][ 212 modem, + more all
14193#			      controlled by ASCII Express: Pro.
14194# From Dave Shaver <isucs1!shaver>
14195apple-uterm-vb|Videx Ultraterm for Apple micros with Visible Bell,
14196	OTbs, am, eo, xt,
14197	cols#80, lines#24,
14198	acsc=, clear=^L, cuf1=^\,
14199	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14200	flash=^W35^W06, home=^Y,
14201	is2=^V4^W06\017\rVisible Bell Installed.\016\r\n,
14202	rmso=^N, smso=^O,
14203apple-uterm|Ultraterm for Apple micros,
14204	OTbs, am, eo, xt,
14205	cols#80, lines#24,
14206	acsc=, clear=^L, cuf1=^\,
14207	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14208	home=^Y, is2=^V4^W06\016, rmso=^N, smso=^O,
14209# from trwrba!bwong (Bradley W. Wong):
14210#
14211# This entry assumes that you are using an apple with the UCSD Pascal
14212# language card.  SYSTEM.MISCINFO is assumed to be the same as that
14213# supplied with the standard apple except that screenwidth should be set
14214# using SETUP to 80 columns.  Note that the right arrow in not mapped in
14215# this termcap entry.  This is because that key, on the Apple, transmits
14216# a ^U and would thus preempt the more useful "up" function of vi.
14217#
14218# HMH 2/23/81
14219apple80p|80-column apple with Pascal card,
14220	am, bw,
14221	cols#80, lines#24,
14222	clear=^Y^L, cuf1=^\\:,
14223	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14224	home=^Y, kcub1=^H,
14225#
14226# Apple II+ equipped with Videx 80 column card
14227#
14228# Terminfo from ihnp4!ihu1g!djc1 (Dave Christensen) via BRL;
14229# manually converted by D A Gwyn
14230#
14231# DO NOT use any terminal emulation with this data base, it works directly
14232# with the Videx card.  This has been tested with vi 1200 baud and works fine.
14233#
14234# This works great for vi, except I've noticed in pre-R2, ^U will scroll back
14235# 1 screen, while in R2 ^U doesn't.
14236# For inverse alternate character set add:
14237#	<smacs>=^O:<rmacs>=^N:
14238# (apple-v: added it#8 -- esr)
14239apple-videx2|Apple II+ w/ Videx card (similar to Datamedia h1520),
14240	am, xenl,
14241	cols#80, it#8, lines#24,
14242	bel=\007$<100/>, clear=\014$<16*/>, cr=^M, cub1=^H,
14243	cud1=^J, cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c,
14244	cuu1=^_, ed=\013$<16*/>, el=^], home=^Y, ht=\011$<8/>,
14245	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
14246	khome=^Y, rmso=^Z2, smso=^Z3,
14247apple-videx3|vapple|Apple II with 80 col card,
14248	OTbs, am,
14249	cols#80, lines#24,
14250	clear=\Ev, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14251	cuu1=\EA, el=\Ex, home=\EH, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
14252	kcuu1=\EA, kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!,
14253	kf5=\E", kf6=\E#, kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
14254#From: decvax!cbosgd!cbdkc1!mww Mike Warren via BRL
14255aepro|Apple II+ running ASCII Express Pro--vt52,
14256	OTbs,
14257	cols#80, lines#24,
14258	clear=\014$<300/>, cuf1=\EC,
14259	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
14260	el=\EK, home=\EH,
14261# UCSD addition: Yet another termcap from Brian Kantor's Micro Munger Factory
14262apple-vm80|ap-vm80|apple with viewmax-80,
14263	OTbs,
14264	cols#80, lines#24,
14265	clear=\014$<300/>, cuf1=^\\:,
14266	cup=\036%p1%{32}%+%c%p2%{32}%+%c$<100/>, cuu1=^_,
14267	ed=\013$<300/>, el=^], home=\031$<200/>,
14268
14269#### Apple Lisa & Macintosh
14270#
14271
14272# (lisa: changed <cvvis> to <cnorm> -- esr)
14273lisa|apple lisa console display (black on white),
14274	OTbs, am, eo, msgr,
14275	cols#88, it#8, lines#32,
14276	acsc=jdkclfmenbqattuvvuwsx`, civis=\E[5h, clear=^L,
14277	cnorm=\E[5l, cub1=^H, cud1=\E[B, cuf1=\E[C,
14278	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
14279	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
14280	is2=\E>\E[m\014, kbs=^H, kcub1=\E[D, kcud1=\E[B,
14281	kcuf1=\E[C, kcuu1=\E[A, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
14282	sgr0=\E[m, smacs=\E[11m, smso=\E[7m, smul=\E[4m,
14283liswb|apple lisa console display (white on black),
14284	is2=\E>\E[0;7m\014, rmso=\E[0;7m, rmul=\E[0;7m,
14285	smso=\E[m, smul=\E[4m, use=lisa,
14286
14287# lisaterm from ulysses!gamma!epsilon!mb2c!jed (John E. Duncan III) via BRL;
14288# <is2> revised by Ferd Brundick <fsbrn@BRL.ARPA>
14289#
14290# These entries assume that the 'Auto Wraparound' is enabled.
14291# Xon-Xoff flow control should also be enabled.
14292#
14293# The vt100 uses :rs2: and :rf: rather than :is2:/:tbc:/:hts: because the tab
14294# settings are in non-volatile memory and don't need to be reset upon login.
14295# Also setting the number of columns glitches the screen annoyingly.
14296# You can type "reset" to get them set.
14297#
14298lisaterm|Apple Lisa or Lisa/2 running LisaTerm vt100 emulation,
14299	OTbs, OTpt, am, xenl, xon,
14300	OTkn#4, cols#80, it#8, lines#24, vt#3,
14301	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
14302	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
14303	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
14304	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
14305	el=\E[K, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H, kcub1=\EOD,
14306	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP, kf1=\EOQ,
14307	kf2=\EOR, kf3=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, rc=\E8,
14308	rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
14309	rs1=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r,
14310	sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
14311	tbc=\E[3g,
14312# Lisaterm in 132 column ("wide") mode.
14313lisaterm-w|Apple Lisa with Lisaterm in 132 column mode,
14314	cols#132,
14315	kbs=^H, kcub1=^H, kcud1=^J, use=lisaterm,
14316# Although MacTerminal has insert/delete line, it is commented out here
14317# since it is much faster and cleaner to use the "lock scrolling region"
14318# method of inserting and deleting lines due to the MacTerminal implementation.
14319# Also, the "Insert/delete ch" strings have an extra character appended to them
14320# due to a bug in MacTerminal V1.1.  Blink is disabled since it is not
14321# supported by MacTerminal.
14322mac|macintosh|Macintosh with MacTerminal,
14323	xenl,
14324	OTdN#30,
14325	blink@, dch1=\E[P$<7/>, ich1=\E[@$<9/>, ip=$<7/>, use=lisa,
14326# Lisaterm in 132 column ("wide") mode.
14327mac-w|macterminal-w|Apple Macintosh with Macterminal in 132 column mode,
14328	cols#132, use=mac,
14329
14330#### Radio Shack/Tandy
14331#
14332
14333# (coco3: This had "ta" used incorrectly as a boolean and bl given as "bl#7".
14334# I read these as mistakes for ":it#8:" and ":bl=\007:" respectively -- esr)
14335# From: <{pbrown,ctl}@ocf.berkeley.edu> 12 Mar 90
14336coco3|os9LII|Tandy CoCo3 24*80 OS9 Level II,
14337	OTbs, am,
14338	cols#80, it#8, lines#24,
14339	bel=^G, blink=^_", bold=\E\:^A, civis=^E\s,
14340	clear=\014$<5*/>, cnorm=^E!, cub1=^H, cud1=^J, cuf1=^F,
14341	cup=\002%p2%{32}%+%c%p1%{32}%+%c$<2/>, cuu1=^I,
14342	dl1=^_1, ed=^K, el=^D, home=^A, il1=^_0, kcub1=^H, kcud1=^J,
14343	kcuf1=^I, kcuu1=^L, rev=^_\s, rmso=^_!, rmul=^_#,
14344	sgr0=\037!\E\:\0, smso=^_\s, smul=^_",
14345# (trs2: removed obsolete ":nl=^_:" -- esr)
14346trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M,
14347	OTbs, am, msgr,
14348	cols#80, it#8, lines#24,
14349	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^_, cuf1=^],
14350	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, dl1=^K, ed=^B,
14351	el=^A, home=^F, ht=^I, il1=^D, ind=^J, kbs=^H, kcub1=^\,
14352	kcud1=^_, kcuf1=^], kcuu1=^^, rmso=^O, sgr0=^O, smso=^N,
14353# From: Kevin Braunsdorf <ksb@mentor.cc.purdue.edu>
14354# (This had extension capabilities
14355#	:BN=\E[?33h:BF=\E[?33l:UC=\E[_ q:BC=\E[\177 q:\
14356#	:CN=\ERC:CF=\ERc:NR=\ERD:NM=\ER@:
14357# I also deleted the unnecessary ":kn#2:", ":sg#0:" -- esr)
14358trs16|trs-80 model 16 console,
14359	OTbs, am,
14360	cols#80, it#8, lines#24,
14361	acsc=jak`l_mbquvewcxs, bel=^G, civis=\ERc, clear=^L,
14362	cnorm=\ERC, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
14363	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
14364	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
14365	ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
14366	kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P, kf6=^N, kf7=^S,
14367	khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7,
14368	lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg, rmso=\ER@, sgr0=\ER@,
14369	smacs=\ERG, smso=\ERD,
14370
14371#### Atari ST
14372#
14373
14374# From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
14375atari|atari st,
14376	OTbs, am,
14377	cols#80, it#8, lines#25,
14378	clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
14379	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
14380	ed=\EJ, el=\EK, ht=^I, il1=\EL, kcub1=\ED, kcud1=\EB,
14381	kcuf1=\EC, kcuu1=\EA, ri=\EI, rmso=\Eq, sgr0=\Eq, smso=\Ep,
14382# UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
14383# From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
14384uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
14385	lines#49,
14386	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H,
14387	use=vt220,
14388# MiNT VT52 emulation. 80 columns, 25 rows.
14389# MiNT is Now TOS, the operating system which comes with all Ataris now
14390# (mainly Atari Falcon). This termcap is for the VT52 emulation you get
14391# under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
14392# From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
14393st52|Atari ST with VT52 emulation,
14394	am, km,
14395	cols#80, lines#25,
14396	bel=^G, civis=\Ef, clear=\EH\EJ, cnorm=\Ee, cr=^M, cub1=\ED,
14397	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14398	cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
14399	ind=^J, ka1=\E#7, ka3=\E#5, kb2=\E#9, kbs=^H, kc1=\E#1,
14400	kc3=\E#3, kclr=\E#7, kcub1=\E#K, kcud1=\E#P, kcuf1=\E#M,
14401	kcuu1=\E#H, kf0=\E#D, kf1=\E#;, kf2=\E#<, kf3=\E#=, kf4=\E#>,
14402	kf5=\E#?, kf6=\E#@, kf7=\E#A, kf8=\E#B, kf9=\E#C, khome=\E#G,
14403	kil1=\E#R, kind=\E#2, kri=\E#8, lf0=f10, nel=^M^J, rc=\Ek,
14404	ri=\EI, rmcup=, rmso=\Eq, rs1=\Ez_\Eb@\EcA, sc=\Ej, sgr0=\Eq,
14405	smcup=\Ee, smso=\Ep,
14406
14407#### Commodore Business Machines
14408#
14409# Formerly located in West Chester, PA; went spectacularly bust in 1994
14410# after years of shaky engineering and egregious mismanagement.  Made one
14411# really nice machine (the Amiga) and boatloads of nasty ones (PET, C-64,
14412# C-128, VIC-20).  The C-64 is said to have been the most popular machine
14413# ever (most units sold); they can still be found gathering dust in closets
14414# everywhere.
14415#
14416
14417# From: Kent Polk <kent@swrinde.nde.swri.edu>, 30 May 90
14418# Added a few more entries, converted caret-type control sequence (^x) entries
14419# to '\0xx' entries since a couple of people mentioned losing '^x' sequences.
14420# Corrections by Ty Sarna <tsarna@endicor.com>, Sat Feb 28 18:55:15 1998
14421#
14422# :as:, :ae:			Support for alternate character sets.
14423# :ve=\E[\040p:vi=\E[\060\040p:	cursor visible/invisible.
14424# :xn:  vt100 kludginess at column 80/NEWLINE ignore after 80 cols(Concept)
14425#     This one appears to fix a problem I always had with a line ending
14426#     at 'width+1' (I think) followed by a blank line in vi. The blank
14427#     line tended to disappear and reappear depending on how the screen
14428#     was refreshed. Note that this is probably needed only if you use
14429#     something like a Dnet Fterm with the window sized to some peculiar
14430#     dimension larger than 80 columns.
14431# :k0=\E9~:	map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
14432# (amiga: removed obsolete :kn#10:,
14433# also added empty <acsc> to suppress a warning --esr)
14434amiga|Amiga ANSI,
14435	OTbs, am, bw, xenl,
14436	cols#80, lines#24,
14437	acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z,
14438	civis=\E[0 p, clear=\E[H\E[J, cnorm=\E[ p, cub=\E[%p1%dD,
14439	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
14440	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
14441	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
14442	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
14443	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
14444	indn=\E[%p1%dS, invis=\E[8m, is2=\E[20l, kbs=^H,
14445	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[9~,
14446	kf1=\E[0~, kf2=\E[1~, kf3=\E[2~, kf4=\E[3~, kf5=\E[4~,
14447	kf6=\E[5~, kf7=\E[6~, kf8=\E[7~, kf9=\E[8~, rev=\E[7m,
14448	ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmso=\E[m, rmul=\E[m,
14449	rs1=\Ec, sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
14450
14451# From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
14452# (amiga: added empty <acsc> to suppress a warning.
14453# I'm told this entry screws up badly with AS225, the Amiga
14454# TCP/IP package once from Commodore, and now sold by InterWorks.--esr)
14455amiga-h|Hans Verkuil's Amiga ANSI,
14456	OTbs, bw, msgr,
14457	cols#80, lines#24,
14458	acsc=, bel=^G, blink=\2337;2m, bold=\2331m, cbt=\233Z,
14459	civis=\2330 p, clear=\233H\233J, cnorm=\233 p, cr=^M,
14460	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
14461	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
14462	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
14463	dim=\2332m, ech=\233%p1%dP, ed=\233J, el=\233K, flash=^G,
14464	home=\233H, ht=^I, ich=\233%p1%d@, ich1=\233@, ind=\233S,
14465	indn=\233%p1%dS, invis=\2338m, is2=\23320l, kbs=^H,
14466	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
14467	kdch1=\177, kf0=\2339~, kf1=\2330~, kf2=\2331~, kf3=\2332~,
14468	kf4=\2333~, kf5=\2334~, kf6=\2335~, kf7=\2336~, kf8=\2337~,
14469	kf9=\2338~, nel=\233B\r, rev=\2337m, ri=\233T,
14470	rin=\233%p1%dT, rmacs=^O, rmcup=\233?7h, rmso=\2330m,
14471	rmul=\2330m, rs1=\Ec, sgr0=\2330m, smacs=^N, smcup=\233?7l,
14472	smso=\2337m, smul=\2334m,
14473
14474# From: Henning 'Faroul' Peters <Faroul@beyond.kn-bremen.de>, 25 Sep 1999
14475amiga-8bit|Amiga ANSI using 8-bit controls,
14476	acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
14477	ind=\204, indn@, ri=\215, rin@, use=amiga-h,
14478
14479# From: Ruediger Kuhlmann <terminfo@ruediger-kuhlmann.de>, 18 Jul 2000
14480# requires use of appropriate preferences settings.
14481amiga-vnc|Amiga using VNC console (black on light gray),
14482	am, da, db, msgr, ndscr,
14483	btns#1, colors#16, cols#80, lines#24, lm#0, ncv#0, pairs#256,
14484	bel=^G, blink=\E[7;2m, bold=\E[1m, civis=\E[0p,
14485	clear=\E[H\E[J, cnorm=\E[p\E[>?6l, cr=^M,
14486	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
14487	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
14488	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
14489	cvvis=\E[>?6h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
14490	dl=\E[%p1%dM, dl1=\E[1M, ed=\E[J, el=\E[K, flash=^G,
14491	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
14492	indn=\E[%p1%dS, invis=\E8m,
14493	is2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
14494	kbs=^H, kcbt=\233Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14495	kcuu1=\E[A, kdch1=\177, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
14496	kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
14497	kf8=\E[7~, kf9=\E[8~, khlp=\E[?~, khome=\E[44~, kll=\E[45~,
14498	kmous=\E[M, knp=\E[42~, kpp=\E[41~, nel=\EE, oc=\E[0m,
14499	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=\E[?7h\E[r\E[J,
14500	rmkx=\E[?1l, rmso=\E[21m, rmul=\E[24m, rs1=\Ec,
14501	rs2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
14502	setab=\E[%?%p1%{8}%>%t%'F'%p1%+%d%e4%p1%d%;m,
14503	setaf=\E[%?%p1%{8}%>%t%'2'%p1%+%d%e3%p1%d%;m,
14504	sgr0=\E[0m\017\E[30;85;>15m, smcup=\E[?7h, smkx=\E[?1h,
14505	smso=\E[1m, smul=\E[4m,
14506
14507# Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
14508# 	I'm trying to write a termcap for a commodore b-128, and I'm
14509# having a little trouble. I've had to map most of my control characters
14510# to something that unix will accept (my delete-char is a ctrl-t, etc),
14511# and create some functions (like cm), but thats life.
14512# 	The problem is with the arrow keys - right, and up work fine, but
14513# left deletes the previous character and down I just can't figure out.
14514# Jove knows what I want, but I don't know what it's sending to me (it
14515# isn't thats bound to next-line in jove).
14516# 	Anybody got any ideas? Here's my termcap.
14517# DAG -- I changed his "^n" entries to "\n"; see if that works.
14518#
14519commodore|b-128|Commodore B-128 micro,
14520	am, bw,
14521	OTdN#20, cols#80, lines#24, pb#150,
14522	OTbc=^H, OTnl=^M, clear=\E\006$<10/>, cr=^M, cud1=^J,
14523	cuf1=^F, cup=\E\013%p1%2d\,%p2%2d\,$<20/>, cuu1=^P,
14524	dch1=\177$<10*/>, dl1=\Ed$<10*/>, el=\Eq$<10/>,
14525	home=\E^E, ht=\011$<5/>, ich1=\E\n$<5/>, il1=\Ei$<10/>,
14526	kcub1=^B, kcud1=^J, kcuf1=^F, kcuu1=^P, khome=\E^E, rmir=,
14527	smir=,
14528
14529#### North Star
14530#
14531# North Star Advantage from Lt. Fickie <brl-ibd!fickie> via BRL
14532northstar|North Star Advantage,
14533	OTbs,
14534	cols#80, lines#24,
14535	clear=\004$<200/>,
14536	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1/>, ed=\017$<200/>,
14537	el=\016$<200/>, home=\034\032$<200/>,
14538
14539#### Osborne
14540#
14541# Thu Jul  7 03:55:16 1983
14542#
14543# As an aside, be careful; it may sound like an anomaly on the
14544# Osborne, but with the 80-column upgrade, it's too easy to
14545# enter lines >80 columns!
14546#
14547# I've already had several comments...
14548# The Osborne-1 with the 80-col option is capable of being
14549# 52, 80, or 104 characters wide; default to 80 for compatibility
14550# with most systems.
14551#
14552# The tab is destructive on the Ozzie; make sure to 'stty -tabs'.
14553osborne-w|osborne1-w|osborne I in 104-column mode,
14554	msgr, ul, xt,
14555	cols#104, lines#24,
14556	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14557	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
14558	dl1=\ER, el=\ET, ich1=\EQ, il1=\EE, ind=^J, kcub1=^H, kcud1=^J,
14559	kcuf1=^L, kcuu1=^K, rmso=\E(, rmul=\Em, smso=\E), smul=\El,
14560# Osborne I	from ptsfa!rhc (Robert Cohen) via BRL
14561osborne|osborne1|osborne I in 80-column mode,
14562	OTbs, am, mir, msgr, ul, xhp,
14563	OTdB#4, cols#80, lines#24,
14564	clear=^Z, cub1=\010$<4>, cud1=^J, cuf1=^L,
14565	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
14566	dch1=\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H,
14567	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmir=, rmso=\E),
14568	rmul=\Em, smir=\EQ, smso=\E(, smul=\El,
14569#
14570# Osborne Executive definition from BRL
14571# Similar to tvi920
14572# Added by David Milligan and Tom Smith (SMU)
14573osexec|Osborne executive,
14574	OTbs, am,
14575	OTug#1, cols#80, lines#24, xmc#1,
14576	OTnl=^J, bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14577	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
14578	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
14579	is2=\Eq\Ek\Em\EA\Ex0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
14580	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
14581	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
14582	kf9=^AI\r, rmir=, rmso=\Ek, rmul=\Em, smir=, smso=\Ej,
14583	smul=\El, tbc=\E3,
14584
14585#### Console types for obsolete UNIX clones
14586#
14587# Coherent, Minix, Venix, and several lesser-known kin were OSs for 8088
14588# machines that tried to emulate the UNIX look'n'feel.  Coherent and Venix
14589# were commercial, Minix an educational tool sold in conjunction with a book.
14590# Memory-segmentation limits and a strong tendency to look like V7 long after
14591# it was obsolete made all three pretty lame.  Venix croaked early.  Coherent
14592# and Minix were ported to 32-bit Intel boxes, only to be run over by a
14593# steamroller named `Linux' (which, to be fair, traces some lineage to Minix).
14594# Coherent's vendor, the Mark Williams Company, went belly-up in 1994.  There
14595# are also, I'm told, Minix ports that ran on Amiga and Atari machines and
14596# even as single processes under SunOS and the Macintosh OS.
14597#
14598
14599# This is the entry provided with minix 1.7.4, with bogus :ri: removed.
14600minix|minix console (v1.7),
14601	am, xenl,
14602	cols#80, it#8, lines#25,
14603	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
14604	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
14605	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14606	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14607	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
14608	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
14609	is2=\E[0m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14610	kcuu1=\E[A, kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S,
14611	kf5=\E[G, khome=\E[H, lf0=End, lf1=PgUp, lf2=PgDn, lf3=Num +,
14612	lf4=Num -, lf5=Num 5, nel=^M^J, rev=\E[7m, ri=\EM,
14613	rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
14614# Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
14615minix-old|minix console (v1.5),
14616	xon,
14617	cols#80, it#8, lines#25,
14618	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
14619	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
14620	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14621	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14622	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
14623	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
14624	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
14625	kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G,
14626	khome=\E[H, nel=^M^J, rev=\E[7m, ri=\EM, rmso=\E[0m,
14627	rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
14628# The linewrap option can be specified by editing /usr/include/minix/config.h
14629# before recompiling the minix 1.5 kernel.
14630minix-old-am|minix console with linewrap,
14631	am, use=minix-old,
14632
14633pc-minix|minix console on an Intel box,
14634	use=klone+acs, use=minix,
14635
14636# According to the Coherent 2.3 manual, the PC console is similar
14637# to a z19. The differences seem to be (1) 25 lines, (2) no status
14638# line, (3) standout is broken, (4) ins/del line is broken, (5)
14639# has blinking and bold.
14640pc-coherent|pcz19|coherent|IBM PC console running Coherent,
14641	am, mir,
14642	cols#80, it#8, lines#25,
14643	bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
14644	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EN,
14645	ed=\EJ, el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED,
14646	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, ri=\EI, rmir=\EO,
14647	rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
14648
14649# According to the Venix 1.1 manual, the PC console is similar
14650# to a DEC vt52.  Differences seem to be (1) arrow keys send
14651# different strings, (2) enhanced standout, (3) added insert/delete line.
14652# Note in particular that it doesn't have automatic margins.
14653# There are other keys (f1-f10, kpp, knp, kcbt, kich1, kdch1) but they
14654# not described here because this derives from an old termcap entry.
14655pc-venix|venix|IBM PC console running Venix,
14656	cols#80, it#8, lines#25,
14657	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
14658	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
14659	ed=\EJ, el=\EK, ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\EK,
14660	kcud1=\EP, kcuf1=\EM, kcuu1=\EH, khome=\EG, ri=\EI,
14661
14662#### Miscellaneous microcomputer consoles
14663#
14664# If you know anything more about any of these, please tell me.
14665#
14666
14667# The MAI Basic Four computer was obsolete at the end of the 1980s.
14668# It may be used as a terminal by putting it in "line" mode as seen on
14669# one of the status lines.
14670# Initialization is similar to CIT80. <is2> will set ANSI mode for you.
14671# Hardware tabs set by <if> at 8-spacing.  Auto line wrap causes glitches so
14672# wrap mode is reset by <cvvis>.  Using <ind>=\E[S caused errors so I
14673# used \ED instead.
14674# From: bf347@lafn.org (David Lawyer), 28 Jun 1997
14675mai|basic4|MAI Basic Four in ansi mode,
14676	am, da, db, mir, msgr,
14677	cols#82, it#8, lines#25,
14678	bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h,
14679	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=^X,
14680	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P,
14681	dl1=\E[M, ed=^_, el=^^, home=^], ht=^I,
14682	if=/usr/lib/tabset/vt100, il1=\E[L, ind=\ED,
14683	is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H,
14684	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
14685	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
14686	kf7=\EOV, kf8=\EOW, nel=^M\ED, rc=\E8, rev=\E[7m, ri=\E[T,
14687	rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m,
14688	smir=\E[4h, smso=\E[7m, smul=\E[4m,
14689# basis from Peter Harrison, Computer Graphics Lab, San Francisco
14690#   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
14691#
14692# On Sat, 7 Aug 1999, Torsten Jerzembeck <toje@nightingale.ms.sub.org> wrote:
14693# The Basis 108 was a Apple II clone, manufactured by the "Basis
14694# Mikrocomputer GmbH" in Munster, Germany (the company still exists today,
14695# about 1,5 km from where I live, but doesn't build own computers any
14696# more). A Basis 108 featured a really heavy (cast aluminium?) case, was
14697# equipped with one or two 5.25" disk drives, had a monochrome and colour
14698# video output for a TV set or a dedicated monitor and several slots for
14699# Apple II cards. Basis 108 were quite popular at german schools before
14700# the advent of the IBM PC. They run, for example, the UCSD Pascal
14701# development system (which I used even in 1993 to program the steering
14702# and data recording for our school's experimental solar panel :), Apple DOS
14703# or CP/M.
14704# (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
14705basis|BASIS108 computer with terminal translation table active,
14706	clear=\E*$<300/>, cud1=\n$<5000/>, ed=\EY, el=\ET, kbs=^H,
14707	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmso=\E), sgr0=\E),
14708	smso=\E(, use=adm3a,
14709# luna's BMC terminal emulator
14710luna|luna68k|LUNA68K Bitmap console,
14711	cols#88, lines#46, use=ansi-mini,
14712megatek|pegasus workstation terminal emulator,
14713	am, os,
14714	cols#83, lines#60,
14715# The Xerox 820 was a Z80 micro with a snazzy XEROX PARC-derived
14716# interface (pre-Macintosh by several years) that went nowhere.
14717xerox820|x820|Xerox 820,
14718	am,
14719	cols#80, lines#24,
14720	bel=^G, clear=1^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14721	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^Q, el=^X,
14722	home=^^, ind=^J,
14723
14724#### Videotex and teletext
14725#
14726
14727# \E\:1}	switch to te'le'informatique mode (ascii terminal/ISO 6429)
14728# \E[?3l	80 columns
14729# \E[?4l	scrolling on
14730# \E[12h	local echo off
14731# \Ec		reset: G0 U.S. charset (to get #,@,{,},...), 80 cols, clear screen
14732# \E)0		G1 DEC set (line graphics)
14733#
14734# From: Igor Tamitegama <igor@ppp1493-ft.teaser.fr>, 18 Jan 1997
14735m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'informatique,
14736	OTbs, eslok, hs, xenl,
14737	cols#80, it#8, lines#24, wsl#72, xmc#0,
14738	acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G,
14739	blink=\E[5m, bold=\E[1m, civis=\E[<1h, clear=\E[H\E[J,
14740	cnorm=\E[<1l, cr=^M, csr=\E[%i%p1%d;%p2%dr,
14741	cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
14742	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14743	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14744	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, flash=^G, fsl=^J,
14745	home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J, ip=$<7/>,
14746	is1=\E\:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0,
14747	is3=\E[?3l kbs=\010, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
14748	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
14749	kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu,
14750	kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khome=\E[H,
14751	kich1=\E[4h, kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H,
14752	mc0=\E[i, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
14753	rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
14754	rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sc=\E7, sgr0=\E[m,
14755	smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=^_@A,
14756	u6=\E[%i%d;%dR, u7=\E[6n,
14757
14758# From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998
14759#
14760minitel1|minitel 1,
14761	am, bw, eslok, hs, hz, msgr,
14762	colors#8, cols#40, lines#24, pairs#8,
14763	acsc=+.\,\,./f0g1, bel=^G, blink=\EH, civis=^T, clear=^L,
14764	cnorm=^Q, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
14765	cup=\037%p1%{65}%+%c%p2%{65}%+%c, cuu1=^K, el=^X,
14766	enacs=^Y, fsl=^J, home=^^, ind=^J,
14767	is2=\E;`ZQ\E\:iC\E\:iE\021, nel=^M^J, op=\EG,
14768	rep=%p1%c\022%p2%{63}%+%c, rev=\E], ri=^K, rmso=\E\\,
14769	setf=\E%?%p1%{1}%=%tD%e%p1%{3}%=%tF%e%p1%{4}%=%tA%e%p1%{6}%=%tC%e%p1%{64}%+%c%;,
14770	sgr=%?%p1%t\E]%;%?%p3%t\E]%;%?%p4%t\EH%;,
14771	sgr0=\EI\E\\, smso=\E], tsl=\037@%p1%{65}%+%c,
14772# is2=Fnct TE, Fnct MR, Fnct CM et pour finir: curseur ON.
14773minitel1b|minitel 1-bistandard (in 40cols mode),
14774	mir,
14775	cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
14776	cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
14777	dl1=\E[M, ed=\E[J, el1=\E[1K, il=\E[%p1%dL, il1=\E[L,
14778	is1=\E;iYA\E;jYC, kclr=\E[2J, kctab=^I, kcub1=\E[D,
14779	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
14780	kel=^X, khome=\E[H, kich1=\E[4h, kil1=\E[L, rmir=\E[4l,
14781	smir=\E[4h, smkx=\E;iYA\E;jYC, use=minitel1,
14782# <rmkx> posait des problemes (logout en sortant de vi).
14783minitel1b-80|minitel 1-bistandard (standard teleinformatique),
14784	am@, bw@, hz@,
14785	colors@, cols#80, it#8, pairs@,
14786	blink=\E[5m, bold=\E[1m, civis=\037@A\024\n,
14787	clear=\E[H\E[2J, cnorm=\037@A\021\n, cuf1=\E[C,
14788	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
14789	ht=^I, ind=\ED, is1@, is2@, kent=\EOM, kf0=\EOp, kf1=\EOq,
14790	kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu, kf6=\EOv, kf7=\EOw,
14791	kf8=\EOx, kf9=\EOy, nel=\EE, op@, rc=\E8, rep@, rev=\E[7m,
14792	ri=\EM, rmkx@, rmso=\E[27m, rmul=\E[24m, sc=\E7, setf@,
14793	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
14794	sgr0=\E[m, smkx@, smso=\E[7m, smul=\E[4m, use=minitel1b,
14795
14796######## OBSOLETE VDT TYPES
14797#
14798# These terminals are *long* dead -- these entries are retained for
14799# historical interest only.
14800
14801#### Amtek Business Machines
14802#
14803
14804# (abm80: early versions of this entry apparently had ":se=\E^_:so=\E^Y",
14805# but these caps were commented out in 8.3; also, removed overridden
14806# ":do=^J:" -- esr)
14807abm80|amtek business machines 80,
14808	OTbs, am, bw,
14809	cols#80, lines#24,
14810	cbt=^T, clear=\E^\, cub1=^H, cud1=\E^K, cuf1=^P,
14811	cup=\E\021%p2%{32}%+%c%p1%{32}%+%c, cuu1=\E^L,
14812	dl1=\E^S, ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z,
14813
14814#### Bell Labs blit terminals
14815#
14816# These were AT&T's official entries.  The 5620 FAQ maintained by
14817# David Breneman <daveb@dgtl.com> has this to say:
14818#
14819#  Actually, in the beginning was the Jerq, and the Jerq was white with a
14820#  green face, and Locanthi and Pike looked upon the Jerq and said the Jerq
14821#  was good.  But lo, upon the horizon loomed a mighty management-type person
14822#  (known now only by the initials VP) who said, the mighty Jerq must stay
14823#  alone, and could not go forth into the world. So Locanthi and Pike put the
14824#  Jerq to sleep, cloned its parts, and the Blit was brought forth unto the
14825#  world. And the Jerq lived the rest of its days in research, but never
14826#  strayed from those paths.
14827#
14828#  In all seriousness, the Blit was originally known as the Jerq, but when
14829#  it started to be shown outside of the halls of the Bell Labs Research
14830#  organization, the management powers that be decided that the name could
14831#  not remain. So it was renamed to be Blit. This was in late 1981.
14832#
14833# (The AT&T 5620 was the commercialized Blit.  Its successors were the 630,
14834# 730, and 730+.)
14835#
14836
14837blit|jerq|blit running teletype rom,
14838	am, eo, ul, xon,
14839	cols#87, it#8, lines#72,
14840	bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
14841	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
14842	dch=\Ee%p1%{32}%+%c, dch1=\Ee!, dl=\EE%p1%{32}%+%c,
14843	dl1=\EE!, el=\EK, ht=^I, ich=\Ef%p1%{32}%+%c, ich1=\Ef!,
14844	il=\EF%p1%{32}%+%c, il1=\EF!, ind=^J, kbs=^H, kcub1=\ED,
14845	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ex, kf2=\Ey, kf3=\Ez,
14846
14847# (cbblit: here's a BSD termcap that says <cud1=\EG> -- esr)
14848cbblit|fixterm|blit running columbus code,
14849	cols#88,
14850	ed=\EJ, flash=\E^G, ich1@, mc4=^T, mc5=^R, mc5p=\EP%p1%03d,
14851	rmir=\ER, rmso=\EV!, rmul=\EV", smir=\EQ, smso=\EU!,
14852	smul=\EU", use=blit,
14853
14854oblit|ojerq|first version of blit rom,
14855	am, da, db, eo, mir, ul, xon,
14856	cols#88, it#8, lines#72,
14857	bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
14858	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\EO,
14859	dl=\Ee%p1%{32}%+%c, dl1=\EE, ed=\EJ, el=\EK, flash=\E^G,
14860	ht=^I, il=\Ef%p1%{32}%+%c, il1=\EF, ind=^J, kbs=^H, rmir=\ER,
14861	smir=\EQ,
14862
14863#### Bolt, Beranek & Newman (bbn)
14864#
14865# The BitGraph was a product of the now-defunct BBN Computer Corporation.
14866# The parent company, best known as the architects of the Internet, is
14867# still around.
14868#
14869# Jeff DelPapa <dp@world.std.com> writes:
14870# The bitgraph was a large white box that contained a monochrome bitmap
14871# display, and a 68000 to run it.  You could download code and run it on
14872# the cpu, it had 128kb (I think) of memory.  I used one in the late
14873# 70's, sure beat a vt100.  It had one strange feature tho -- it used
14874# the cpu to bitblt pixels to scroll, it took longer than the refresh
14875# rate, and looked like a rubber sheet stretching, then snapping
14876# upwards.  It had everything the early mac had, except a floppy drive a
14877# small screen (it had a 17" crisp beauty) and a real OS. They (Bolt
14878# Beranek and Neuman) sold at most a few hundred of them to the real
14879# world.  DOD may have bought more...
14880#
14881
14882# Entries for the BitGraph terminals.  The problem
14883# with scrolling in vi can only be fixed by getting BBN to put
14884# smarter scroll logic in the terminal or changing vi or padding
14885# scrolls with about 500 ms delay.
14886#
14887# I always thought the problem was related to the terminal
14888# counting newlines in its input buffer before scrolling and
14889# then moving the screen that much. Then vi comes along and
14890# paints lines in on the bottom line of the screen, so you get
14891# this big white gap.
14892
14893bitgraph|bg2.0nv|bg3.10nv|bbn bitgraph 2.0 or later (normal video),
14894	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
14895	use=bg2.0,
14896bg2.0rv|bg3.10rv|bbn bitgraph 2.0 (reverse video),
14897	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
14898	use=bg2.0,
14899bg2.0|bg3.10|bbn bitgraph 2.0 or later (no init),
14900	OTbs, xenl,
14901	cols#85, lines#64,
14902	bel=^G, clear=\E[H\E[J$<150>, cr=^M,
14903	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
14904	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, dl1=\E[M$<2*>,
14905	ed=\E[J$<150>, el=\E[K$<2>, ht=^I, il1=\E[L$<2*>,
14906	ind=\n$<280>, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14907	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=PF1,
14908	lf2=PF2, lf3=PF3, lf4=PF4, rc=\E8, rmkx=\E>, rmso=\E[m, sc=\E7,
14909	sgr0=\E[m, smkx=\E=, smso=\E[7m,
14910
14911bg1.25rv|bbn bitgraph 1.25 (reverse video),
14912	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
14913	use=bg1.25,
14914bg1.25nv|bbn bitgraph 1.25 (normal video),
14915	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
14916	use=bg1.25,
14917# (bg1.25: I added <rmam>/<smam> based on the init string -- esr)
14918bg1.25|bbn bitgraph 1.25,
14919	cols#85, lines#64,
14920	bel=^G, clear=\E[H\E[J$<150>, cr=^M, cub1=^H, cud1=\E[B,
14921	cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A,
14922	dl1=\E[M$<2*>, ed=\E[J$<150>, el=\E[K$<2>, ht=^I,
14923	il1=\E[L$<2*>, ind=\n$<280>, kcub1=\ED, kcud1=\EB,
14924	kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\ES,
14925	lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, ll=\E[64;1H, rmam=\E[?7l,
14926	rmkx=\E>, rmso=\E[m, sgr0=\E[m, smam=\E[?7h, smkx=\E=,
14927	smso=\E[7m,
14928
14929#### Bull (bq, dku, vip)
14930#
14931# (Adapted for terminfo; AIX extension capabilities translated -- esr)
14932
14933#============================================#
14934# BULL QUESTAR 210 `SDP' terminals emulation #
14935#============================================#
14936#
14937# Description written by R.K.Saunders (Bull Transac)
14938#
14939# Modifications written by F. Girard (Bull MTS)
14940#		19-05-87 V02.00.01
14941#		17-12-87 V02.00.02
14942#		15-09-89 V02.00.05
14943#
14944#	Typical technical selections F1 (modes SDP/ROLL):
14945# -------------------------------------------------------
14946# |   01   02   03   04   05   06   07   08   09   10   |
14947# |  1010 0011 1010 0110 0110 0001 0100 0000 0000 0000  |
14948# |                                                     |
14949# |   11   12   13   14   15   16   17   18   19   20   |
14950# |  0000 0110 100? 0000 0000 0000 0001 0000 0000 0001  |
14951# |                                                     |
14952# |   21   22   23   24   25   26   27   28   29   30   |
14953# |  0011 0000 0001 1000 0000 0000 0000 0000 0000 0000  |
14954# |                                                     |
14955# |   31   32   33   34   35   36   37   38   39   40   |
14956# |  1010 0011 0000 0000 0000 0000 0000 0000 0000 0000  |
14957# -------------------------------------------------------
14958#	Typical firmware identification F5 "etat 6":
14959#  P287.02.04b	(AZERTY)
14960#  P297.11.04	(24-pin: 2732)	or P798.11.04	(28-pin: 2764)
14961#  P298.03.03	(monochrome)	or P374.03.02	(colour)
14962#
14963#	SM SDP mode (VIP command):	^[[?=h
14964#	RIS (erases screen):		^[c
14965#	DMI disable keyboard:		^[`
14966#	SM double rendition mode:	^[[?>h
14967#	RM solicited status mode:	^[[5l
14968#	RM character mode:		^[[>l
14969#	RM echoplex mode:		^[[12l
14970#	RM column tab mode:		^[[18l
14971#	RM forbid SS2 keyboard mode:	^[[?<l
14972#	SM scroll mode:			^[[=h
14973#	FCF enable XON/XOFF:		^[P1s^[\
14974#	MTL select end msg character:	^[[^Wp
14975#	EMI enable keyboard:		^[b
14976#	RIS retour etat initial:	^[c
14977#	enable FC keypad:		^[[?<h,
14978#	MPW map status line window:	^[PY99:98^[\
14979#	SCP select status line:		^[[0;98v
14980#	ED erase entire partition:	^[[2J
14981#	SCP select main partition:	^[[v
14982#	SM character insertion mode:	^[[4h
14983#	RM character replacement mode:	^[[4l
14984#	COO cursor on:			^[[r
14985#	COO cursor off:			^[[1r
14986#	SGR dim (turquoise) rev attr:	^[[2;7m
14987#	SGR Data normal attr:		^[[m
14988#	SO Line-graphic mode ON:	^N
14989#	SI Line-graphic mode OFF:	^O
14990#	MC start routing to printer:	^[[5i
14991#	MC stop routing to printer:	^M^[[4i
14992#
14993
14994# This entry covers the following terminals:
14995# dku7102, tws2102, and tws models 2105 to 2112
14996tws-generic|dku7102|Bull Questar tws terminals,
14997	am, eslok, hs, mir, msgr, xenl, xhp@, xon,
14998	cols#80, it#8, lines#24, wsl#80,
14999	acsc=``aaffggj)k\,l&m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~,
15000	bel=^G, blink=\E[0;5m, cbt=\E[Z, civis=\E[1r, clear=\E[2J,
15001	cnorm=\E[r, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
15002	cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
15003	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
15004	dim=\E[0;2m, dl=\E[%p1%dM, dl1=\E[M,
15005	dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[v, ed=\E[J, el=\E[K,
15006	fsl=\E[v, home=\E[H, ht=\E[I, hts=\EH, il=\E[%p1%dL,
15007	il1=\E[L, ind=^J, invis=\E[0;8m,
15008	is1=\E[?=h\Ec\E`\E[?>h\EPY99\:98\E\\,
15009	is2=\E[5;>;12;18;?<l\E[=h\EP1s\E\\\E[\027p,
15010	is3=\Eb\E[?<h, kbs=^H, kcbt=\E[Z, kctab=\E[g, kcub1=\E[D,
15011	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
15012	ked=\E[J, kel=\E[K, kf1=\E[1u\027, kf2=\E[2u\027,
15013	kf3=\E[3u\027, kf4=\E[4u\027, kf5=\E[5u\027,
15014	kf6=\E[6u\027, kf7=\E[7u\027, kf8=\E[8u\027, khome=\E[H,
15015	khts=\EH, kil1=\E[L, krmir=\E[4l, ll=\E[H\E[A, mc0=\E[0i,
15016	mc4=\r\E[4i, mc5=\E[5i, rev=\E[0;7m, rmacs=^O,
15017	rmcup=\E[0;98v\E[2J\E[v, rmir=\E[4l, rmso=\E[m,
15018	rmul=\E[m, rs2=\E[?=h\Ec, s0ds=^O, s1ds=^N,
15019	sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
15020	sgr0=\E[m\017, smacs=^N, smcup=\E[?>h\EPY99\:98\E\\,
15021	smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m, tbc=\E[2g,
15022	tsl=\EPY99\:98\E\\\E[0;98v\E[2;7m,
15023tws2102-sna|dku7102-sna|BULL Questar tws2102 for SNA,
15024	dsl=\E[0;98v\E[2J\E[v, fsl=\E[v, is3=\Eb, tsl=\E[0;98v,
15025	use=tws-generic,
15026tws2103|xdku|BULL Questar tws2103,
15027	ht=^I, use=tws-generic,
15028tws2103-sna|dku7103-sna|BULL Questar tws2103 for SNA,
15029	ht=^I, use=tws2102-sna,
15030dku7102-old|BULL Questar 200 DKU7102 (microcode version < 6),
15031	clear=\E[2J\E[H, cup@, dl@, dl1@,
15032	dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[H\E[v, el=\E[K\E[m,
15033	il@, il1@, tsl=\EPY99\:98\E\\\E[0;98v\E[H\E[2;7m,
15034	use=tws-generic,
15035dku7202|BULL Questar 200 DKU7202 (colour/character attributes),
15036	blink=\E[0;2;4m, dim=\E[0;5m, ht=^I, is3=\E[?3h\Eb,
15037	smso=\E[0;4;5;7m, smul=\E[0;2m, use=tws-generic,
15038
15039#=========================================================#
15040# BULL QUESTAR 303 & 310 `DEC VT 320' terminals emulation #
15041#=========================================================#
15042#
15043# Description written by J. Staerck (BULL SA)
15044#       Copyright (c) 1989 BULL SA
15045#---------------------------------------------------------------------------
15046#  This entry is used for terminals with vt320 emulation mode
15047#  and following set-up :
15048#    8 bit ISO Latin Character Set (ISO 8859-1),
15049#    7 bit Control Characters,
15050#    80 columns screen.
15051#  Hereafter are some DEC vt terminals' commands. (valid on vt200 and 300)
15052#  They are used in string capabilities with vt220-320 emulation mode.
15053#  In the following DEC definitions, two kinds of terminfo databases are
15054#    provided :
15055#    1. the first with Command Sequence Introducer starting with escape
15056#       sequence in 7 bits characters ex. ESC [ : 2 chars. in 7-bit mode.
15057#    2. the second with Command Sequence Introducer starting with escape
15058#       sequence in 8 bits characters ex. ESC [ : 1 char. 'CSI' =x9B.
15059#	Soft Terminal Reset		esc [ ! p
15060#	RIS (erases screen):		esc c
15061#	DECKPNM numeric keypad mode:	esc >
15062#	DECKPAM applic. keypad mode:	esc =
15063#	DECSTBM Scrolling region:	esc [ r
15064#	SCS select G0 = US:		esc ( B
15065#	SCS select G1 = line-graphic:	esc ) 0
15066#	Select 7-bit C1 controls:	esc sp F
15067#	Select 8-bit C1 controls:	esc sp G
15068#	Select cursor home:		esc [  H
15069#	Select erase screen:		esc [  J
15070#	SM KAM lock keyboard:		esc [ 2 h
15071#	RM KAM unlock keyboard:		esc [ 2 l
15072#	SM SRM local echo off:		esc [ 1 2 h
15073#	RM SRM local echo on:		esc [ 1 2 l
15074#	SM LNM New line :		esc [ 2 0 h
15075#	RM LNM return = CR only:	esc [ 2 0 l
15076#	SM DECCKM cursor keys mode:	esc [ ? 1 h
15077#	RM DECCKM appli. keys mode:	esc [ ? 1 l
15078#	SM DECANM ANSI mode on:		esc [ ? 2 h
15079#	RM DECANM ANSI mode off:	esc [ ? 2 l
15080#	SM DECCOLM 132-column screen:	esc [ ? 3 h
15081#	RM DECCOLM 80-column screen:	esc [ ? 3 l
15082#	SM DECSCLM Smooth scroll:	esc [ ? 4 h
15083#	RM DECSCLM Jump scroll:		esc [ ? 4 l
15084#	SM DECSCNM screen light backgr.	esc [ ? 5 h
15085#	RM DECSCNM screen dark backgr.	esc [ ? 5 l
15086#	SM DECOM move within margins:	esc [ ? 6 h
15087#	RM DECOM move outside margins:	esc [ ? 6 l
15088#	SM DECAWM auto right margin:	esc [ ? 7 h
15089#	RM DECAWM auto right margin:	esc [ ? 7 l
15090#	SM DECARM auto repeat:		esc [ ? 8 h
15091#	RM DECARM auto repeat:		esc [ ? 8 l
15092#	DECSASD Select active main:	esc [ 0 $ }
15093#	DECSASD Select active status:	esc [ 1 $ }
15094#	DECSSDT Select status none:	esc [ 0 $ ~
15095#	DECSSDT Select status indic.:	esc [ 1 $ ~
15096#	DECSSDT Select status host-wr:	esc [ 2 $ ~
15097#	SM DECTCEM Visible cursor:	esc [ ? 2 5 h
15098#	RM DECTCEM Invisible cursor:	esc [ ? 2 5 l
15099#	SM DECNCRM 7 bits NCR set:	esc [ ? 4 2 h
15100#	RM DECNCRM Multi or ISO latin:	esc [ ? 4 2 l
15101#	SM DECNKM numeric keypad mode:	esc [ ? 6 6 h
15102#	RM DECNKM numeric keypad appl.:	esc [ ? 6 6 l
15103#	SM DECKBUM clavier informatique	esc [ ? 6 8 h
15104#	RM DECKBUM clavier bureautique:	esc [ ? 6 8 l
15105#	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 " p
15106# or	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 ; 0 " p
15107# or	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 ; 2 " p
15108#	DECSCL vt300 mode 7-bit ctrl:	esc [ 6 3 ; 1 " p
15109#	Char. and Line attributes:	esc [ Ps ... Ps m
15110# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
15111# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
15112#
15113
15114# This entry covers BQ303, BQ306, BQ310, Q303, Q306, Q310
15115bq300|Bull vt320 ISO Latin 1 80 columns terminal,
15116	am, eo, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
15117	cols#80, it#8, lines#24, vt#3, wsl#80,
15118	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15119	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
15120	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
15121	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
15122	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
15123	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
15124	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
15125	dl1=\E[M, dsl=\E[1$}\E[2$~\n\E[0$}, ech=\E[%p1%dX,
15126	ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
15127	flash=\E[?5h$<50>\E[?5l, fsl=\E[0$}, home=\E[H, ht=^I,
15128	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
15129	is1=\E[63;1"p\E[2h,
15130	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15131	is3=\E[0$}\E[?25h\E[2l\E[H\E[J, ka1=\EOw, ka3=\EOy,
15132	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
15133	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~,
15134	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
15135	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
15136	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
15137	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
15138	khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15139	krdo=\E[29~, kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
15140	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
15141	ri=\EM, rmacs=^O, rmam=\E[?7l, rmcup=\E[?7h, rmir=\E[4l,
15142	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\E[!p,
15143	rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0, sc=\E7,
15144	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\E(0%e\E(B%;,
15145	sgr0=\E[0m\E(B, smacs=^N, smam=\E[?7h,
15146	smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smso=\E[7m,
15147	smul=\E[4m, tbc=\E[3g, tsl=\E[1$}\E[2$~,
15148bq300-rv|Bull vt320 reverse 80 columns,
15149	flash=\E[?5l$<50>\E[?5h,
15150	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15151	use=bq300,
15152bq300-w|Bull vt320 132 columns,
15153	cols#132, wsl#132,
15154	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15155	rs2=\E[?3h, use=bq300,
15156bq300-w-rv|Bull vt320 reverse mode 132 columns,
15157	cols#132, wsl#132,
15158	flash=\E[?5l$<50>\E[?5h,
15159	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15160	rs2=\E[?3h, use=bq300,
15161
15162#  This entry is used for terminals with vt320 emulation mode
15163#  and following set-up :
15164#    8 bit ISO Latin Character Set (ISO 8859-1),
15165#    8 bit Control Characters, (CSI coded as x9B for ESC [)
15166#    80 columns screen.
15167#	Soft Terminal Reset		csi ! p
15168#	RIS (erases screen):		esc c
15169#	DECKPNM numeric keypad mode:	esc >
15170#	DECKPAM applic. keypad mode:	esc =
15171#	DECSTBM Scrolling region:	esc [ r
15172#	SCS select G0 = US:		esc ( B
15173#	SCS select G1 = line-graphic:	esc ) 0
15174#	Select 7-bit C1 controls:	esc sp F
15175#	Select 8-bit C1 controls:	esc sp G
15176#	Select cursor home:		csi H
15177#	Select erase screen:		csi J
15178#	SM KAM lock keyboard:		csi 2 h
15179#	RM KAM unlock keyboard:		csi 2 l
15180#	SM SRM local echo off:		csi 1 2 h
15181#	RM SRM local echo on:		csi 1 2 l
15182#	SM LNM New line :		csi 2 0 h
15183#	RM LNM return = CR only:	csi 2 0 l
15184#	SM DECCKM cursor keys mode:	csi ? 1 h
15185#	RM DECCKM appli. keys mode:	csi ? 1 l
15186#	SM DECANM ANSI mode on:		csi ? 2 h
15187#	RM DECANM ANSI mode off:	csi ? 2 l
15188#	SM DECCOLM 132-column screen:	csi ? 3 h
15189#	RM DECCOLM 80-column screen:	csi ? 3 l
15190#	SM DECSCLM Smooth scroll:	csi ? 4 h
15191#	RM DECSCLM Jump scroll:		csi ? 4 l
15192#	SM DECSCNM screen light backgr.	csi ? 5 h
15193#	RM DECSCNM screen dark backgr.	csi ? 5 l
15194#	SM DECOM move within margins:	csi ? 6 h
15195#	RM DECOM move outside margins:	csi ? 6 l
15196#	SM DECAWM auto right margin:	csi ? 7 h
15197#	RM DECAWM auto right margin:	csi ? 7 l
15198#	SM DECARM auto repeat:		csi ? 8 h
15199#	RM DECARM auto repeat:		csi ? 8 l
15200#	DECSASD Select active main:	csi 0 $ }
15201#	DECSASD Select active status:	csi 1 $ }
15202#	DECSSDT Select status none:	csi 0 $ ~
15203#	DECSSDT Select status indic.:	csi 1 $ ~
15204#	DECSSDT Select status host-wr:	csi 2 $ ~
15205#	SM DECTCEM Visible cursor:	csi ? 2 5 h
15206#	RM DECTCEM Invisible cursor:	csi ? 2 5 l
15207#	SM DECNCRM 7 bits NCR set:	csi ? 4 2 h
15208#	RM DECNCRM Multi or ISO latin:	csi ? 4 2 l
15209#	DECSCL vt300 mode 8-bit ctrl:	csi 6 3 " p
15210# or	DECSCL vt300 mode 8-bit ctrl:	csi 6 3 ; 0 " p
15211#	DECSCL vt300 mode 7-bit ctrl:	csi 6 3 ; 1 " p
15212#	Char. and Line attributes:	csi Ps ... Ps m
15213# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
15214# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
15215# (bq300-8: <cub1>,<cuf1>,<cuu1>,<cud1>,<dl1>,<il1> to get under 1024 --esr)
15216bq300-8|Bull vt320 full 8 bits 80 columns,
15217	am, eo, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
15218	cols#80, it#8, lines#24, vt#3, wsl#80,
15219	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15220	bel=^G, blink=\2335m, bold=\2331m, civis=\233?25l,
15221	clear=\233H\233J, cnorm=\233?25h, cr=^M,
15222	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cud=\233%p1%dB,
15223	cuf=\233%p1%dC, cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA,
15224	cvvis=\233?25h, dch=\233%p1%dP, dch1=\233P,
15225	dl=\233%p1%dM, dsl=\2331$}\2332$~\n\2330$},
15226	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
15227	enacs=\E(B\E)0, flash=\233?5h$<50>\233?5l, fsl=\2330$},
15228	home=\233H, ht=^I, hts=\EH, ich=\233%p1%d@, il=\233%p1%dL,
15229	ind=\ED, is1=\E[63;2"p\E[2h,
15230	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15231	is3=\2330$}\233?25h\2332l\233H\233J, ka1=\217w,
15232	ka3=\217y, kb2=\217u, kbs=^H, kc1=\217q, kc3=\217s,
15233	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
15234	kdch1=\2333~, kf1=\217P, kf10=\23321~, kf11=\23323~,
15235	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
15236	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
15237	kf2=\217Q, kf20=\23334~, kf3=\217R, kf4=\217S, kf6=\23317~,
15238	kf7=\23318~, kf8=\23319~, kf9=\23320~, kfnd=\2331~,
15239	khlp=\23328~, kich1=\2332~, knp=\2336~, kpp=\2335~,
15240	krdo=\23329~, kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3,
15241	lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8,
15242	rev=\2337m, ri=\EM, rmacs=^O, rmam=\233?7l, rmcup=\233?7h,
15243	rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
15244	rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0, sc=\E7,
15245	sgr=\233%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\E(0%e\E(B%;,
15246	sgr0=\2330m\E(B, smacs=^N, smam=\233?7h,
15247	smcup=\233?7l\233?1l\E(B, smir=\2334h, smso=\2337m,
15248	smul=\2334m, tbc=\2333g, tsl=\2331$}\2332$~,
15249bq300-8rv|Bull vt320 8-bit reverse mode 80 columns,
15250	flash=\233?5l$<50>\233?5h,
15251	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15252	use=bq300-8,
15253bq300-8w|Bull vt320 8-bit 132 columns,
15254	cols#132, wsl#132,
15255	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15256	rs2=\233?3h, use=bq300-8,
15257bq300-w-8rv|Bull vt320 8-bit reverse mode 132 columns,
15258	cols#132, wsl#132,
15259	flash=\233?5l$<50>\233?5h,
15260	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15261	rs2=\233?3h, use=bq300-8,
15262
15263#  This entry is used for terminals with vt320 emulation mode
15264#  a 102 keys keyboard (PC scancode !) and following set-up :
15265#    8 bit ISO Latin Character Set (ISO 8859-1),
15266#    7 bit Control Characters,
15267#    80 columns screen.
15268bq300-pc|Questar 303 with PC keyboard ISO Latin 1 80 columns,
15269	kbs=^H, kdch1=\E[3~, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
15270	kf11=\E[29~, kf12=\E[31~, kf13@, kf14@, kf15@, kf16@, kf17@,
15271	kf18@, kf19@, kf2=\E[18~, kf20@, kf3=\E[19~, kf4=\E[20~,
15272	kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
15273	kfnd@, khlp@, khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15274	krdo@, kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300,
15275bq300-pc-rv|Questar 303 with PC keyboard reverse mode 80 columns,
15276	flash=\E[?5l$<50>\E[?5h,
15277	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15278	use=bq300-pc,
15279bq300-pc-w|Questar 303 with PC keyboard 132 columns terminal,
15280	cols#132, wsl#132,
15281	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15282	rs2=\E[?3h, use=bq300-pc,
15283bq300-pc-w-rv|Questar 303 with PC keyboard reverse mode 132 columns,
15284	cols#132, wsl#132,
15285	flash=\E[?5l$<50>\E[?5h,
15286	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15287	rs2=\E[?3h, use=bq300-pc,
15288#    8 bit ISO Latin Character Set (ISO 8859-1),
15289#    8 bit Control Characters,
15290#    80 columns screen.
15291bq300-8-pc|Q306-8-pc|Questar 303 with PC keyboard in full 8 bits 80 columns,
15292	kbs=^H, kdch1=\2333~, kend=\2334~, kf1=\23317~,
15293	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13@, kf14@,
15294	kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\23318~, kf20@,
15295	kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
15296	kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@, khlp@,
15297	khome=\2331~, kich1=\2332~, knp=\2336~, kpp=\2335~, krdo@,
15298	kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300-8,
15299bq300-8-pc-rv|Questar 303 with PC keyboard full 8 bits reverse mode 80 columns,
15300	flash=\E[?5l$<50>\E[?5h,
15301	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15302	use=bq300-8-pc,
15303bq300-8-pc-w|Questar 303 with PC keyboard full 8 bits 132 columns,
15304	cols#132, wsl#132,
15305	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15306	rs2=\E[?3h, use=bq300-8-pc,
15307bq300-8-pc-w-rv|Questar 303 with PC keyboard full 8 bits reverse 132 columns,
15308	cols#132, wsl#132,
15309	flash=\E[?5l$<50>\E[?5h,
15310	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15311	rs2=\E[?3h, use=bq300-8-pc,
15312
15313#======================================================#
15314# BULL QUESTAR 310 `VIP 7800/8800' terminals emulation #
15315#======================================================#
15316
15317# normal mode, 8 bits, 80 columns terminal.
15318#	RES reset :			^[e
15319#	RIS reset initial state:	^[c
15320#	BLE bell enable			^[h
15321#	BLD bell disable		^[g
15322#	CAMS char. attr. mode set	^[[D
15323#	CAMR char. attr. mode reset	^[[G
15324#	CLR clear			^[`
15325#	KBU keyboard unlock (set)	^[[W
15326#	KBL keyboard lock (reset)	^[[X
15327#	CM  character mode (async.) 	^[k
15328#	NEP non echoplex mode (by host)	^[l
15329#	EP  echoplex mode (by host) 	^[m
15330#	IM  insert mode set		^[[I
15331#	IM  insert mode reset 		^[[J
15332#	RMS roll mode set 		^[r
15333#	RMR roll mode reset 		^[q
15334#	SM78 set mode vip7800	 	^[[1q
15335#	SD  scroll up  	(72 lines) 	^[[0s
15336#	SD  scroll down	(72 lines) 	^[[1s
15337#	RBM block mode reset		^[[E
15338#	SLS status line set 		^[w
15339#	SLR status line reset 		^[v
15340#	SLL status line lock 		^[O
15341#	LGS Line-graphic mode set 	^[G
15342#	LGR Line-graphic mode reset 	^[F
15343#	TBC tab clear (at cursor pos.)	^[[g
15344#	TBI tab initialize 		^[[N
15345#	TBS tab set (at cursor pos.)	^[p
15346#	PDS  print data space		^[[0p
15347#	PHD  print host data 		^[[3p
15348#	PDT  print data terminator	^[[<p
15349#	PRES print adapter reset	^[[2p
15350#	SSPR multi-part. reset		^[[<>u
15351#	SSP0 partition 0 set		^[[00u
15352#	SSP1 partition n format 1 	^[[PnPnSTRINGu
15353#	SSP2 partition n format 2 	^[[PnPnSTRINGu
15354#	SSP3 partition n format 3 	^[[PnPnu
15355#	ATR attribute (visual)
15356#	    blink :			^[sB
15357#	    dim :			^[sL
15358#	    hide (blank) :		^[sH
15359#	    restore :			^[sR
15360#	    inverse video :		^[sI
15361#	    prot. :			^[sP
15362#	    underline :			^[s_
15363#	    reset :			^{
15364#
15365# This covers the vip7800 and BQ3155-vip7800
15366vip|Bull Questar 3155-7800,
15367	am, eslok, hs, km, mc5i, msgr, xenl, xon,
15368	cols#80, it#8, lines#24, vt#3, wsl#80,
15369	acsc=0pjdkblamcnkqitgufvhwexj, bel=^G, blink=\EsB,
15370	cbt=\E[Z, clear=\E`, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15371	cup=\E[%i%p1%03d%p2%03df, cuu1=\EA, dch1=\E[P, dim=\EsL,
15372	dl1=\E[M, dsl=\Ev, ed=\EJ, el=\EK,
15373	flash=\007$<80>\007$<80>\007, fsl=\EO, home=\EH, ht=^I,
15374	hts=\Ep, ich1=\E[I, ind=^J, invis=\EsH,
15375	is2=\E[00u\E[<>001001024080024080u\E[01u,
15376	is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kbs=^H,
15377	kcbt=\E[Z, kclr=\E`, kctab=\E[g, kcub1=\ED, kcud1=\EB,
15378	kcuf1=\EC, kcuu1=\EA, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
15379	kel=\EK, kf1=\E0, kf10=\ET, kf11=\E\\, kf12=\E\^, kf13@, kf14@,
15380	kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E2, kf20@, kf21=\E1,
15381	kf22=\E5, kf23=\E7, kf24=\E9, kf25=\E;, kf26=\E=, kf27=\E?,
15382	kf28=\EQ, kf29=\ES, kf3=\E6, kf30=\EV, kf31=\E], kf32=\E_,
15383	kf4=\E8, kf5=\E\:, kf6=\E<, kf7=\E>, kf8=\EP, kf9=\ER,
15384	khome=\EH, khts=\Ep, kich1=\E[I, kil1=\E[L, kind=\E[0s,
15385	kll=\EH\EA, kri=\E[1s, krmir=\E[J, ktbc=\E[N, lf1=pf1,
15386	lf2=pf2, lf3=pf3, lf4=pf4, ll=\EH\EA, mc0=\E[0p, mc4=\E[<p,
15387	mc5=\E[3p, nel=^M, prot=\EsP, rev=\EsI,
15388	ri=\EA\EJ\EH\E[L$<10>, rmacs=\EF, rmir=\E[J, rmso=\EsR,
15389	rmul=\EsR, rs1=\Ec, rs2=\E[G, s0ds=\EF, s1ds=\EG,
15390	sgr0=\EsR\EsU\EF, smacs=\EG, smir=\E[I, smso=\EsI,
15391	smul=\Es_, tbc=\E[N, tsl=\Ew,
15392# normal screen, 8 bits, 132 columns terminal.
15393vip-w|vip7800-w|Q310-vip-w|Q310-vip-w-am|Questar 3155-vip7800 wide,
15394	cols#132, wsl#132,
15395	is2=\E[00u\E[<>001001024132024132u\E[01u, use=vip,
15396vip-H|vip7800-H|Q310-vip-H|Q310-vip-H-am|Questar 3155-vip7800 72 lines,
15397	lines#72,
15398	is2=\E[00u\E[<>001001024080072080u\E[01u, use=vip,
15399vip-Hw|vip7800-Hw|Q310-vip-Hw|Questar 3155-vip7800 wide 72 lines,
15400	cols#132, lines#72, wsl#132,
15401	is2=\E[00u\E[<>001001024132072132u\E[01u, use=vip,
15402
15403#### Chromatics
15404#
15405
15406# I have put the long strings in <smcup>/<rmcup>. Ti sets up a window
15407# that is smaller than the screen, and puts up a warning message
15408# outside the window. Te erases the warning message, puts the
15409# window back to be the whole screen, and puts the cursor at just
15410# below the small window. I defined <cnorm> and <civis> to really turn
15411# the cursor on and off, but I have taken this out since I don't
15412# like the cursor being turned off when vi exits.
15413cg7900|chromatics|chromatics 7900,
15414	am,
15415	cols#80, lines#40,
15416	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^],
15417	cup=\001M%p2%d\,%p1%d\,, cuu1=^K, dch1=^A<1, dl1=^A<2,
15418	ed=^Al, el=^A`, home=^\, ich1=^A>1, il1=^A>2, ind=^J, ll=^A|,
15419	rmcup=\001W0\,40\,85\,48\,\014\001W0\,0\,85\,48\,\001M0\,40\,,
15420	rmso=\001C1\,\001c2\,,
15421	smcup=\001P0\001O1\001R1\001C4\,\001c0\,\014\001M0\,42\,WARNING DOUBLE ENTER ESCAPE and \025\001C1\,\001c2\,\001W0\,0\,79\,39\,,
15422	smso=\001C4\,\001c7\,, uc=\001\001_\001\0,
15423
15424#### Computer Automation
15425#
15426
15427ca22851|computer automation 22851,
15428	am,
15429	cols#80, lines#24,
15430	bel=^G, clear=\014$<8>, cr=^M, cub1=^U, cud1=^J, cuf1=^I,
15431	cup=\002%i%p1%c%p2%c, cuu1=^V, ed=^\, el=^], home=^^, ind=^J,
15432	kcub1=^U, kcud1=^W, kcuu1=^V, khome=^^,
15433
15434#### Cybernex
15435#
15436
15437# This entry has correct padding and the undocumented "ri" capability
15438cyb83|xl83|cybernex xl-83,
15439	OTbs, am,
15440	cols#80, lines#24,
15441	bel=^G, clear=\014$<62>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
15442	cup=\027%p1%{32}%+%c%p2%{32}%+%c, cuu1=^N,
15443	ed=\020$<62>, el=\017$<3>, home=^K, ind=^J, kcub1=^H,
15444	kcud1=^J, kcuf1=^I, kcuu1=^N, ri=^N,
15445# (mdl110: removed obsolete ":ma=^Z^P:" and overridden ":cd=145^NA^W:" -- esr)
15446cyb110|mdl110|cybernex mdl-110,
15447	OTbs, am,
15448	cols#80, lines#24,
15449	bel=^G, clear=\030$<70>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
15450	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
15451	dch1=\016A\036$<3.5>, dl1=\016A\016\036$<40>,
15452	ed=\016@\026$<6>, el=\016@\026$<145>, home=^Y,
15453	ht=\011$<43>, ich1=\016A\035$<3.5>,
15454	il1=\016A\016\035$<65>, ind=^J, rmso=^NG, smso=^NF,
15455
15456#### Datapoint
15457#
15458# Datapoint is gone.  They used to be headquartered in Texas.
15459# They created ARCnet, an Ethernet competitor that flourished for a while
15460# in the early 1980s before 3COM got wise and cut its prices.  The service
15461# side of Datapoint still lives (1995) in the form of Intelogic Trace.
15462#
15463
15464dp3360|datapoint|datapoint 3360,
15465	OTbs, am,
15466	cols#82, lines#25,
15467	bel=^G, clear=^]^_, cr=^M, cub1=^H, cud1=^J, cuf1=^X, cuu1=^Z,
15468	ed=^_, el=^^, home=^], ind=^J,
15469
15470# From: Jan Willem Stumpel <jw.stumpel@inter.nl.net>, 11 May 1997
15471# The Datapoint 8242 Workstation was sold at least between 1985
15472# and 1989. To make the terminal work with this entry, press
15473# CONTROL-INT-INT to take the terminal off-line, and type (opt).
15474# Set the options AUTO ROLL, ROLL DN, and ESC KBD on, and AUTO
15475# CR/LF off. Use control-shift-[] as escape key, control-I as tab,
15476# shift-F1 to shift-F5 as F6 to F10 (unshifted F1 to F5 are in
15477# fact unusable because the strings sent by the terminal conflict
15478# with other keys).
15479# The terminal is capable of displaying "box draw" characters.
15480# For each graphic character you must send 2 ESC's (\E\E) followed
15481# by a control character as follows:
15482#         character        meaning
15483#         =========        =======
15484#         ctrl-E           top tee
15485#         ctrl-F           right tee
15486#         ctrl-G           bottom tee
15487#         ctrl-H           left tee
15488#         ctrl-I           cross
15489#         ctrl-J           top left corner
15490#         ctrl-K           top right corner
15491#         ctrl-L           bottom left corner
15492#         ctrl-M           bottom right corner
15493#         ctrl-N           horizontal line
15494#         ctrl-O           vertical line
15495# Unfortunately this cannot be fitted into the termcap/terminfo
15496# description scheme.
15497dp8242|datapoint 8242,
15498	msgr,
15499	cols#80, lines#25,
15500	bel=^G, civis=^Y, clear=\025\E\004\027\030, cnorm=^X,
15501	cr=^M, cub1=^H, cud1=^J,
15502	cup=\011%p2%'\0'%+%c%p1%'\0'%+%c, dl1=\E^Z, ed=^W, el=^V,
15503	home=^U, ht=^I, il1=\E^T, ind=^C,
15504	is1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
15505	kbs=^H, kcub1=^D, kcud1=^B, kcuf1=^F, kcuu1=^E, kf1=^G\Ee,
15506	kf10=\EK\Ea, kf2=^I\Ed, kf3=^J\Ec, kf4=^J\Eb, kf5=^S\Ea,
15507	kf6=\EO\Ee, kf7=\EN\Ed, kf8=\EM\Ec, kf9=\EL\Eb, nel=^M^J,
15508	rep=\E\023%p1%c%p2%c, ri=^K, rmso=\E^D, rmul=\E^D,
15509	rs1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
15510	smso=\E^E, smul=\E^F,
15511	wind=\E\014\E\016%p1%'\0'%+%c%p2%'\0'%+%c%p3%'\0'%+%c%p4%'\0'%+%c\025,
15512
15513#### DEC terminals (Obsolete types: DECwriter and vt40/42/50)
15514#
15515# These entries are DEC's official terminfos for its older terminals.
15516# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
15517# Engineering for more information.  Updated terminfos and termcaps
15518# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
15519#
15520
15521gt40|dec gt40,
15522	OTbs, os,
15523	cols#72, lines#30,
15524	bel=^G, cr=^M, cub1=^H, cud1=^J,
15525gt42|dec gt42,
15526	OTbs, os,
15527	cols#72, lines#40,
15528	bel=^G, cr=^M, cub1=^H, cud1=^J,
15529vt50|dec vt50,
15530	OTbs,
15531	cols#80, lines#12,
15532	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15533	cuu1=\EA, ed=\EJ, el=\EK, ht=^I, ind=^J,
15534vt50h|dec vt50h,
15535	OTbs,
15536	cols#80, lines#12,
15537	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15538	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
15539	el=\EK, ht=^I, ind=^J, ri=\EI,
15540# (vt61: there's a BSD termcap that claims <dl1=\EPd>, <il1=\EPf.> <kbs=^H>)
15541vt61|vt-61|vt61.5|dec vt61,
15542	cols#80, lines#24,
15543	bel=^G, clear=\EH\EJ$<120>, cr=\r$<20>, cub1=^H, cud1=^J,
15544	cuf1=\EC$<20>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>,
15545	cuu1=\EA$<20>, ed=\EJ$<120>, el=\EK$<70>, ht=^I,
15546	ind=\n$<20>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
15547	ri=\E$<20>I,
15548
15549# The gigi does standout with red!
15550# (gigi: I added <rmam>/<smam> based on the init string, corrected cub1 -- esr)
15551gigi|vk100|dec gigi graphics terminal,
15552	OTbs, am, xenl,
15553	cols#84, lines#24,
15554	bel=^G, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD, cub1=^H,
15555	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
15556	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
15557	el=\E[K, ht=^I, ind=^J,
15558	is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h,
15559	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
15560	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
15561	rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
15562	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7;31m,
15563	smul=\E[4m,
15564
15565# DEC PRO-350 console (VT220-style).  The 350 was DEC's attempt to produce
15566# a PC differentiated from the IBM clones.  It was a total, ludicrous,
15567# grossly-overpriced failure (among other things, DEC's OS didn't include
15568# a format program, so you had to buy pre-formatted floppies from DEC at
15569# a hefty premium!).
15570pro350|decpro|dec pro console,
15571	OTbs,
15572	cols#80, it#8, lines#24,
15573	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15574	clear=\EH\EJ, cub1=^H, cud1=\EB, cuf1=\EC,
15575	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
15576	el=\EK, home=\EH, ht=^I, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
15577	kcuu1=\EA, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH, kf4=\EI,
15578	kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI, rmacs=\EG,
15579	rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H, smul=\E^D,
15580
15581dw1|decwriter I,
15582	OTbs, hc, os,
15583	cols#72,
15584	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J,
15585dw2|decwriter|dw|decwriter II,
15586	OTbs, hc, os,
15587	cols#132,
15588	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
15589# \E(B		Use U.S. character set (otherwise # => british pound !)
15590# \E[20l	Disable "linefeed newline" mode (else puts \r after \n,\f,\v)
15591# \E[w   	10 char/in pitch
15592# \E[1;132	full width horizontal margins
15593# \E[2g		clear all tab stops
15594# \E[z		6 lines/in
15595# \E[66t	66 lines/page (for \f)
15596# \E[1;66r	full vertical page can be printed
15597# \E[4g		clear vertical tab stops
15598# \E>		disable alternate keypad mode (so it transmits numbers!)
15599# \E[%i%p1%du	set tab stop at column %d (origin == 1)
15600#		(Full syntax is \E[n;n;n;n;n;...;nu where each 'n' is
15601#		a tab stop)
15602#
15603#       The dw3 does standout with wide characters.
15604#
15605dw3|la120|decwriter III,
15606	OTbs, hc, os,
15607	cols#132,
15608	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J,
15609	is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
15610	is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u\r,
15611	kbs=^H, rmso=\E[w, sgr0=\E[w, smso=\E[6w,
15612dw4|decwriter IV,
15613	OTbs, am, hc, os,
15614	cols#132,
15615	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J, is2=\Ec, kbs=^H,
15616	kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
15617
15618# These aren't official
15619ln03|dec ln03 laser printer,
15620	hc,
15621	cols#80, lines#66,
15622	bel=^G, cr=^M, cud1=^J, hd=\EK, ht=^I, hu=\EL, ind=^J, nel=^M^J,
15623	rmso=\E[22m, rmul=\E[24m, sgr0=\E[m, smso=\E[1m,
15624	smul=\E[4m,
15625ln03-w|dec ln03 laser printer 132 cols,
15626	cols#132,
15627	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H,
15628	kcud1=^J, nel=^M^J, use=ln03,
15629
15630#### Delta Data (dd)
15631#
15632
15633# Untested. The cup sequence is hairy enough that it probably needs work.
15634# The idea is ctrl(O), dd(row), dd(col), where dd(x) is x - 2*(x%16) + '9'.
15635# There are BSD-derived termcap entries floating around for this puppy
15636# that are *certainly* wrong.
15637delta|dd5000|delta data 5000,
15638	OTbs, am,
15639	cols#80, lines#27,
15640	bel=^G, clear=^NR, cub1=^H, cud1=^J, cuf1=^Y,
15641	cup=\017%p1%p1%{16}%m%{2}%*%-%{57}%+%c%p2%p2%{16}%m%{2}%*%-%{57}%+%c,
15642	cuu1=^Z, dch1=^NV, el=^NU, home=^NQ, ind=^J,
15643
15644#### Digital Data Research (ddr)
15645#
15646
15647# (ddr: I added <rmam>/<smam> based on the init string -- esr)
15648ddr|rebus3180|ddr3180|Rebus/DDR 3180 vt100 emulator,
15649	OTbs, am, xenl,
15650	cols#80, it#8, lines#24, vt#3,
15651	blink=\E[5m$<2/>, bold=\E[1m$<2/>,
15652	clear=\E[H\E[2J$<50/>, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
15653	cud1=^J, cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
15654	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
15655	ht=^I, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H,
15656	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
15657	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
15658	rf=/usr/share/tabset/vt100, ri=\EM$<5/>, rmam=\E[7l,
15659	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m$<2/>,
15660	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
15661	sgr0=\E[m$<2/>, smam=\E[7l, smkx=\E[?1h\E=, smso=\E[7m,
15662	smul=\E[4m$<2/>,
15663
15664#### Evans & Sutherland
15665#
15666
15667# Jon Leech <leech@cs.unc.edu> tells us:
15668# The ps300 was the Evans & Sutherland Picture System 300, a high
15669# performance 3D vector graphics system with a bunch of specialized hardware.
15670# Approximate date of release was 1982 (early 80s, anyway), and it had several
15671# evolutions including (limited) color versions such as the PS330C. PS300s
15672# were effectively obsolete by the late 80s, replaced by raster graphics
15673# systems, although specialized applications like molecular modelling
15674# hung onto them for a while longer.  AFAIK all E&S vector graphics systems
15675# are out of production, though of course E&S is very much alive (in 1996).
15676# (ps300: changed ":pt@:" to "it@" -- esr)
15677#
15678ps300|Picture System 300,
15679	xt,
15680	it@,
15681	rmso@, rmul@, smso@, smul@, use=vt100,
15682
15683#### General Electric (ge)
15684#
15685
15686terminet1200|terminet300|tn1200|tn300|terminet|GE terminet 1200,
15687	OTbs, hc, os,
15688	cols#120,
15689	bel=^G, cr=^M, cud1=^J, ind=^J,
15690
15691#### Heathkit/Zenith
15692#
15693
15694# Here is a description of the H19 DIP switches:
15695#
15696# S401
15697# 0-3 = baud rate as follows:
15698#
15699#         3       2       1       0
15700#	---	---	---	---
15701#         0       0       1       1       300 baud
15702#         0       1       0       1       1200 baud
15703#         1       0       0       0       2400 baud
15704#         1       0       1       0       4800 baud
15705#         1       1       0       0       9600 baud
15706#         1       1       0       1       19.2K baud
15707#
15708# 4 = parity (0 = no parity)
15709# 5 = even parity (0 = odd parity)
15710# 6 = stick parity (0 = normal parity)
15711# 7 = full duplex (0 = half duplex)
15712#
15713# S402
15714# 0 = block cursor (0 = underscore cursor)
15715# 1 = no key click (0 = keyclick)
15716# 2 = wrap at end of line (0 = no wrap)
15717# 3 = auto LF on CR (0 = no LF on CR)
15718# 4 = auto CR on LF (0 = no CR on LF)
15719# 5 = ANSI mode (0 = VT52 mode)
15720# 6 = keypad shifted (0 = keypad unshifted)
15721# 7 = 50Hz refresh (1 = 60Hz refresh)
15722#
15723# Factory Default settings are as follows:
15724#          7 6 5 4 3 2 1 0
15725# S401     1 0 0 0 1 1 0 0
15726# S402     0 0 0 0 0 0 0 0
15727# (h19: I added <rmam>/<smam> based on the init string;
15728# also added empty <acsc> to suppress a tic warning -- esr)
15729h19-a|h19a|heath-ansi|heathkit-a|heathkit h19 ansi mode,
15730	OTbs, am, mir, msgr,
15731	cols#80, it#8, lines#24,
15732	acsc=, bel=^G, clear=\E[2J, cnorm=\E[>4l, cr=^M, cub1=^H,
15733	cud1=\E[1B, cuf1=\E[1C, cup=\E[%i%p1%d;%p2%dH,
15734	cuu1=\E[1A, cvvis=\E[>4h, dch1=\E[1P, dl1=\E[1M$<1*>,
15735	ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[1L$<1*>, ind=^J,
15736	is2=\E<\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m\E[?7h,
15737	kbs=^H, kcub1=\E[1D, kcud1=\E[1B, kcuf1=\E[1C, kcuu1=\E[1A,
15738	kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
15739	kf7=\EOQ, kf8=\EOR, khome=\E[H, lf6=blue, lf7=red, lf8=white,
15740	ri=\EM, rmacs=\E[11m, rmam=\E[?7l, rmir=\E[4l, rmso=\E[m,
15741	smacs=\E[10m, smam=\E[?7h, smir=\E[4h, smso=\E[7m,
15742h19-bs|heathkit w/keypad shifted,
15743	rmkx=\Eu, smkx=\Et, use=h19-b,
15744h19-us|h19us|h19-smul|heathkit w/keypad shifted/underscore cursor,
15745	rmkx=\Eu, smkx=\Et, use=h19-u,
15746# (h19: merged in <ip> from BSDI hp19-e entry>;
15747# also added empty <acsc> to suppress a tic warning --esr)
15748# From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998
15749# Tim tells us that:
15750# I have an old Zenith-19 terminal at home that still gets a lot of use.
15751# This terminal suffers from the same famous insert-mode padding lossage
15752# that has been acknowledged for the Z29 terminal.  Emacs is nearly
15753# unusable on this box, since even a half-scroll up or down the window
15754# causes flaming terminal death.
15755#
15756# On the Z19, the only way I have found around this problem is to remove
15757# the :al: and :dl: entries entirely.  No amount of extra padding will
15758# help (I have tried up to 20000).  Removing <il1=\EL$> and <dl1=\EM$>
15759# makes Emacs a little slower, but it remains in the land of the living.
15760# Big win.
15761h19|heath|h19-b|heathkit|heath-19|z19|zenith|heathkit h19,
15762	OTbs, am, eslok, hs, mir, msgr,
15763	cols#80, it#8, lines#24,
15764	acsc=, bel=^G, clear=\EE, cnorm=\Ey4, cr=^M, cub1=^H, cud1=\EB,
15765	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
15766	cvvis=\Ex4, dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH,
15767	ht=^I, ind=^J, ip=<1.5/>, kbs=^H, kcub1=\ED, kcud1=\EB,
15768	kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
15769	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue,
15770	lf7=red, lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
15771	smacs=\EF, smir=\E@, smso=\Ep,
15772	tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo,
15773h19-u|heathkit with underscore cursor,
15774	cnorm@, cvvis@, use=h19-b,
15775h19-g|h19g|heathkit w/block cursor,
15776	cnorm=\Ex4, use=h19-b,
15777alto-h19|altoh19|altoheath|alto-heath|alto emulating heathkit h19,
15778	lines#60,
15779	dl1=\EM, il1=\EL, use=h19,
15780
15781# The major problem with the Z29 is that it requires more padding than the Z19.
15782#
15783# The problem with declaring an H19 to be synonymous with a Z29 is that
15784# it needs more padding. It especially loses if a program attempts
15785# to put the Z29 into insert mode and insert text at 9600 baud. It
15786# even loses worse if the program attempts to insert tabs at 9600
15787# baud. Adding padding to text that is inserted loses because in
15788# order to make the Z29 not die, one must add so much padding that
15789# whenever the program tries to use insert mode, the effective
15790# rate is about 110 baud.
15791#
15792# What program would want to put the terminal into insert mode
15793# and shove stuff at it at 9600 baud you ask?
15794#
15795# Emacs. Emacs seems to want to do the mathematically optimal
15796# thing in doing a redisplay rather than the practical thing.
15797# When it is about to output a line on top of a line that is
15798# already on the screen, instead of just killing to the end of
15799# the line and outputting the new line, it compares the old line
15800# and the new line and if there are any similarities, it
15801# constructs the new line by deleting the text on the old line
15802# on the terminal that is already there and then inserting new
15803# text into the line to transform it into the new line that is
15804# to be displayed. The Z29 does not react kindly to this.
15805#
15806# But don't cry for too long.... There is a solution. You can make
15807# a termcap entry for the Z29 that says the Z29 has no insert mode.
15808# Then Emacs cannot use it. "Oh, no, but now inserting into a
15809# line will be really slow", you say. Well there is a sort of a
15810# solution to that too. There is an insert character option on
15811# the Z29 that will insert one character. Unfortunately, it
15812# involves putting the terminal into ansi mode, inserting the
15813# character, and changing it back to H19 mode. All this takes 12
15814# characters. Pretty expensive to insert one character, but it
15815# works. Either Emacs doesn't try to use its inserting hack when
15816# it's only given an insert character ability or the Z29 doesn't
15817# require padding with this (the former is probably more likely,
15818# but I haven't checked it out).
15819# (z29: added empty <acsc> to suppress a tic warning, merged in
15820# status line capabilities from BRL entry --esr)
15821z29|zenith29|z29b|zenith z29b,
15822	OTbs, OTpt, am, eslok, hs, mir, msgr,
15823	OTkn#10, cols#80, lines#24,
15824	OTbc=\ED, acsc=, bel=^G, cbt=\E-, clear=\EE$<14>, cnorm=\Ey4,
15825	cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
15826	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E$<1>A,
15827	cvvis=\Ex4, dch1=\EN$<0.1*>, dl1=\EM$<1/>, dsl=\Ey1,
15828	ed=\EJ$<14>, el=\EK$<1>, fsl=\Ek\Ey5, home=\EH, ht=^I,
15829	ich1=\E<\E[1@\E[?2h$<1>, il1=\EL$<1/>, ind=\n$<2>,
15830	is2=\E<\E[?2h\Ev, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
15831	kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
15832	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
15833	lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO, rmso=\Eq,
15834	rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep, smul=\Es8,
15835	tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
15836# z29 in ansi mode. Assumes that the cursor is in the correct state, and that
15837# the world is stable. <rs1> causes the terminal to be reset to the state
15838# indicated by the name. kc -> key click, nkc -> no key click, uc -> underscore
15839# cursor, bc -> block cursor.
15840# From: Mike Meyers
15841# (z29a: replaced nonexistent <if=/usr/share/tabset/zenith29> befause <hts>
15842# looks vt100-compatible -- esr)
15843z29a|z29a-kc-bc|h29a-kc-bc|heath/zenith 29 in ansi mode,
15844	OTbs, OTpt, am, eslok, hs, mir, msgr,
15845	OTkn#10, cols#80, it#8, lines#24,
15846	OTbc=\ED, bel=^G, blink=\E[5m, bold=\E[2m, clear=\E[2J,
15847	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
15848	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
15849	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
15850	dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
15851	dsl=\E[>1l, ed=\E[J, el=\E[K, fsl=\E[u\E[>5l, home=\E[H,
15852	ht=^I, hts=\EH, if=/usr/share/tabset/vt100, il=\E[%p1%dL,
15853	ind=\ED, kbs=^H, kclr=\E[J, kcub1=\EOD, kcud1=\EOB,
15854	kcuf1=\EOC, kcuu1=\EOA, ked=\E[J, kf0=\E[~, kf1=\EOS,
15855	kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
15856	kf8=\EOR, kf9=\EOX, khome=\E[H, lf0=help, mc0=\E#7,
15857	nel=^M\ED, rc=\E[r, rev=\E[7m, ri=\EM, rmcup=\E[?7h,
15858	rmso=\E[m, rmul=\E[m,
15859	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>4h\E[>1;2;3;5;6;7;8;9l\E[m\E[11m,
15860	sc=\E[s, sgr0=\E[m, smcup=\E[?7l, smso=\E[7;2m, smul=\E[4m,
15861	tbc=\E[3g, tsl=\E[s\E[>5;1h\E[25;%i%dH\E[1K,
15862z29a-kc-uc|h29a-kc-uc|z29 ansi mode with keyckick and underscore cursor,
15863	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m,
15864	use=z29a,
15865z29a-nkc-bc|h29a-nkc-bc|z29 ansi mode with block cursor and no keyclick,
15866	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2;4h\E[>1;3;5;6;7;8;9l\E[m\E[11m,
15867	use=z29a,
15868z29a-nkc-uc|h29a-nkc-uc|z29 ansi mode with underscore cursor and no keyclick,
15869	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>2h\E[>1;3;4;5;6;7;8;9l\E[m\E[11m,
15870	use=z29a,
15871# From: Jeff Bartig <jeffb@dont.doit.wisc.edu> 31 Mar 1995
15872z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
15873	am, eslok, hs, mc5i, mir, msgr, xon,
15874	cols#80, lines#24,
15875	acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
15876	blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h,
15877	clear=\E[2J\E[H, cnorm=\E[>5l, cr=^M,
15878	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
15879	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
15880	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
15881	dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
15882	dl1=\E[1M, dsl=\E[>1l, ed=\E[0J, el=\E[0K, el1=\E[1K,
15883	fsl=\E[u, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[1L,
15884	ind=^J, is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J, ka1=\EOw,
15885	ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D,
15886	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ked=\E[J, kf1=\EOS,
15887	kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
15888	kf8=\EOR, kf9=\EOX, khlp=\E[~, khome=\E[H, ll=\E[24;1H,
15889	mc0=\E[?19h\E[i, mc4=\E[4i, mc5=\E[5i, rc=\E[u, rev=\E[7m,
15890	rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m,
15891	rmul=\E[0m, rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0,
15892	smir=\E[4h, smkx=\E[>7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
15893	tsl=\E[s\E[>1h\E[25;%i%p1%dH,
15894
15895# From: Brad Brahms <Brahms@USC-ECLC>
15896z100|h100|z110|z-100|h-100|heath/zenith z-100 pc with color monitor,
15897	cnorm=\Ey4\Em70, cvvis=\Ex4\Em71, use=z100bw,
15898# (z100bw: removed obsolete ":kn#10:", added empty <acsc> -- esr)
15899z100bw|h100bw|z110bw|z-100bw|h-100bw|heath/zenith z-100 pc,
15900	OTbs, OTpt, mir, msgr,
15901	OTkn#10, cols#80, it#8, lines#24,
15902	acsc=, clear=\EE$<5*/>, cnorm=\Ey4, cub1=^H, cud1=\EB,
15903	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<1*/>,
15904	cuu1=\EA, cvvis=\Ex4, dch1=\EN$<1*/>, dl1=\EM$<5*/>,
15905	ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H,
15906	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\EJ, kf1=\ES,
15907	kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
15908	kf9=\EOI, khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
15909	smacs=\EF, smir=\E@, smso=\Ep,
15910p19|h19-b with il1/dl1,
15911	dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
15912# From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
15913# (ztx: removed duplicate :sr: -- esr)
15914ztx|ztx11|zt-1|htx11|ztx-1-a|ztx-10 or 11,
15915	OTbs, am, eslok, hs,
15916	cols#80, it#8, lines#24,
15917	clear=\EE, cub1=^H, cud1=^J, cuf1=\EC,
15918	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
15919	dsl=\Ey1, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I,
15920	il1=\EL, is2=\Ej\EH\Eq\Ek\Ev\Ey1\Ey5\EG\Ey8\Ey9\Ey>,
15921	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\ES,
15922	kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP, kf6=\EQ, kf7=\ER,
15923	ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5, smul=\Es2,
15924	tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
15925
15926#### IMS International (ims)
15927#
15928# There was a company called IMS International located in Carson City,
15929# Nevada, that flourished from the mid-70s to mid-80s.  They made S-100
15930# bus/Z80 hardware and a line of terminals called Ultimas.
15931#
15932
15933# From: Erik Fair <fair@ucbarpa.berkeley.edu>  Sun Oct 27 07:21:05 1985
15934ims950-b|bare ims950 no init string,
15935	is2@, use=ims950,
15936# (ims950: removed obsolete ":ko@:" -- esr)
15937ims950|ims televideo 950 emulation,
15938	xenl@,
15939	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
15940	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950,
15941# (ims950-rv: removed obsolete ":ko@:" -- esr)
15942ims950-rv|ims tvi950 rev video,
15943	xenl@,
15944	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
15945	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950-rv,
15946ims-ansi|ultima2|ultimaII|IMS Ultima II,
15947	OTbs, am,
15948	cols#80, it#8, lines#24,
15949	clear=\E[H\E[2J, cub1=^H, cud1=\ED,
15950	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\EM, ed=\E[0J, el=\E[0K,
15951	ht=^I, if=/usr/share/tabset/vt100,
15952	is2=\E[m\E[>14l\E[?1;?5;20l\E>\E[1m\r, kcub1=\E[D,
15953	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, ri=\EM,
15954	rmso=\E[m\E[1m, rmul=\E[m\E[1m, sgr0=\E[m, smso=\E[7m,
15955	smul=\E[4m,
15956
15957#### Intertec Data Systems
15958#
15959# I think this company is long dead as of 1995.  They made an early CP/M
15960# micro called the "Intertec Superbrain" that was moderately popular,
15961# then sank out of sight.
15962#
15963
15964superbrain|intertec superbrain,
15965	OTbs, am, bw,
15966	cols#80, lines#24,
15967	OTbc=^U, bel=^G, clear=\014$<5*>, cr=^M, cub1=^H, cud1=^J,
15968	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=^K,
15969	ed=\E~k<10*>, el=\E~K$<15>, ht=^I, ind=^J, kcub1=^U,
15970	kcud1=^J, kcuf1=^F, kcuu1=^K, rmcup=^L, smcup=^L,
15971# (intertube: a Gould entry via BRL asserted smul=\E0@$<200/>,
15972# rmul=\E0A$<200/>; my guess is the highlight letter is bit-coded like an ADM,
15973# and the reverse is actually true.  Try it. -- esr)
15974intertube|intertec|Intertec InterTube,
15975	OTbs, am,
15976	cols#80, lines#25,
15977	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
15978	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<50>, cuu1=^Z, home=^A,
15979	ind=^J, rmso=\E0@, smso=\E0P,
15980# The intertube 2 has the "full duplex" problem like the tek 4025: if you
15981# are typing and a command comes in, the keystrokes you type get interspersed
15982# with the command and it messes up
15983intertube2|intertec data systems intertube 2,
15984	OTbs,
15985	cup=\016%p1%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
15986	el=\EK, hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c,
15987	ll=^K^X\r, vpa=\013%p1%c, use=intertube,
15988
15989#### Ithaca Intersystems
15990#
15991# This company made S100-bus personal computers long ago in the pre-IBM-PC
15992# past.  They used to be reachable at:
15993#
15994#	Ithaca Intersystems
15995#	1650 Hanshaw Road
15996#	Ithaca, New York 14850
15997#
15998# However, the outfit went bankrupt years ago.
15999#
16000
16001# The Graphos III was a color graphics terminal from Ithaca Intersystems.
16002# These entries were written (originally in termcap syntax) by Brian Yandell
16003# <yandell@stat.wisc.edu> and Mike Meyer <mikem@stat.wisc.edu> at the
16004# University of Wisconsin.
16005
16006# (graphos: removed obsolete and syntactically incorrect :kn=4:,
16007# removed <if=/usr/share/tabset/init.graphos> and
16008# <rf=/usr/share/tabset/init.graphos> no such file & no <hts> -- esr)
16009graphos|graphos III,
16010	am, mir,
16011	cols#80, it#8, lines#24,
16012	clear=\E[H\E[2J, cnorm=\Ez56;2;0;0z\Ez73z\Ez4;1;1z,
16013	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
16014	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16015	cuu=\E[%p1%dA, cuu1=\E[A,
16016	cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P, dl=\E[%p1%dM,
16017	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
16018	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16019	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
16020	kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
16021	rmir=\E[4l, rmso=\E[m, sc=\E7, sgr0=\E[m, smdc=\E[4h,
16022	smir=\E[4h, smso=\E[7m,
16023graphos-30|graphos III with 30 lines,
16024	lines#30,
16025	cvvis=\Ez4;2;1z\Ez56;2;80;30z, use=graphos,
16026
16027#### Modgraph
16028#
16029# These people used to be reachable at:
16030#
16031#	Modgraph, Inc
16032#	1393 Main Street,
16033#	Waltham, MA 02154
16034#	Vox: (617)-890-5796.
16035#
16036# However, if you call that number today you'll get an insurance company.
16037# I have mail from "Michael Berman, V.P. Sales, Modgraph" dated
16038# 26 Feb 1997 that says:
16039#
16040# Modgraph GX-1000, replaced by GX-2000.  Both are out of production, have been
16041# for ~7 years.  Modgraph still in business.  Products are rugged laptop and
16042# portable PC's and specialized CRT and LCD monitors (rugged, rack-mount
16043# panel-mount etc).  I can be emailed at sonfour@aol.com
16044#
16045# Peter D. Smith <pdsmith@nbbn.com> notes that his modgraph manual was
16046# dated 1984.  According to the manual, it featured Tek 4010/4014
16047# graphics and DEC VT100/VT52 + ADM-3A emulation with a VT220-style keyboard.
16048#
16049
16050modgraph|mod24|modgraph terminal emulating vt100,
16051	xenl@,
16052	cols#80, lines#24,
16053	cvvis=\E\^9;0s\E\^7;1s,
16054	is2=\E\^9;0s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s\E\^11;81s\E\^11;89s,
16055	rf@, ri=\EM\E[K$<5/>, use=vt100,
16056# The GX-1000 manual is dated 1984.  This looks rather like a VT-52.
16057modgraph2|modgraph gx-1000 80x24 with keypad not enabled,
16058	am, da, db,
16059	cols#80, it#8, lines#24,
16060	clear=\EH\EJ$<50/>, cub1=^H, cuf1=\EC$<2/>,
16061	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5/>, cuu1=\EA$<2/>,
16062	ed=\EJ$<50/>, el=\EK$<3/>, ht=^I,
16063	is2=\E<\E\^5;2s\E\^7;1s\E[3g\E\^11;9s\E\^11;17s\E\^11;25s\E\^11;33s\E\^11;41s\E\^11;49s\E\^11;57s\E\^11;65s\E\^11;73s\E\^11;81s\E\^11;89s\E\^12;0s\E\^14;2s\E\^15;9s\E\^25;1s\E\^9;1s\E\^27;1,
16064	ri=\EI$<5/>,
16065#
16066# Modgraph from Nancy L. Cider <nancyc@brl-tbd>
16067# BUG NOTE from Barbara E. Ringers <barb@brl-tbd>:
16068# If we set TERM=vt100, and set the Modgraph screen to 24 lines, setting a
16069# mark and using delete-to-killbuffer work correctly.  However, we would
16070# like normal mode of operation to be using a Modgraph with 48 line setting.
16071# If we set TERM=mod (which is a valid entry in termcap with 48 lines)
16072# the setting mark and delete-to-killbuffer results in the deletion of only
16073# the line the mark is set on.
16074# We've discovered that the delete-to-killbuffer works correctly
16075# with TERM=mod and screen set to 80x48 but it's not obvious.  Only
16076# the first line disappears but a ctrl-l shows that it did work
16077# correctly.
16078modgraph48|mod|Modgraph w/48 lines,
16079	OTbs, OTpt, am, xenl,
16080	cols#80, it#8, lines#48, vt#3,
16081	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
16082	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
16083	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
16084	flash=\E[?5h\E[0q\E[1;2q\E[?5l\E[0q\E[4;3q,
16085	home=\E[H, ht=^I, is2=\E<\E[1;48r\E[0q\E[3;4q\E=\E[?1h,
16086	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
16087	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m,
16088	ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16089	rs1=\E=\E[0q\E>, sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=,
16090	smso=\E[7m, smul=\E[4m,
16091
16092#### Morrow Designs
16093#
16094# This was George Morrow's company.  They started in the late 1970s making
16095# S100-bus machines.  They used to be reachable at:
16096#
16097#        Morrow
16098#        600 McCormick St.
16099#        San Leandro, CA 94577
16100#
16101# but they're long gone now (1995).
16102#
16103
16104# The mt70 terminal was shipped with the Morrow MD-3 microcomputer.
16105# Jeff's specimen was dated June 1984.
16106# From: Jeff Wieland <wieland@acn.purdue.edu> 24 Feb 1995
16107mt70|mt-70|Morrow MD-70; native Morrow mode,
16108	am, mir, msgr, xon,
16109	cols#80, it#8, lines#24,
16110	acsc=+z\,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI, bel=^G,
16111	cbt=\EI, civis=\E"0, clear=^Z, cnorm=\E"2, cr=^M, cub1=^H,
16112	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1>,
16113	cuu1=^K, dch1=\EW, dim=\EG2, dl1=\ER, ed=\EY, el=\ET$<10>,
16114	flash=\EK1$<200>\EK0, home=^^, ht=^I, ich1=\EQ, il1=\EE,
16115	ind=^J, invis@, is1=\E"2\EG0\E], kbs=^H, kcbt=^A^Z\r,
16116	kclr=^An\r, kcub1=^AL\r, kcud1=^AK\r, kcuf1=^AM\r,
16117	kcuu1=^AJ\r, kdch1=\177, kf1=^A@\r, kf10=^AI\r, kf11=^A`\r,
16118	kf12=^Aa\r, kf13=^Ab\r, kf14=^Ac\r, kf15=^Ad\r, kf16=^Ae\r,
16119	kf17=^Af\r, kf18=^Ag\r, kf19=^Ah\r, kf2=^AA\r, kf20=^Ai\r,
16120	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
16121	kf8=^AG\r, kf9=^AH\r, khlp=^AO\r, khome=^AN\r, nel=^_,
16122	rmacs=\E%%, rmcup=, smacs=\E$, smcup=\E"2\EG0\E],
16123	smul=\EG1, tbc=\E0, use=adm+sgr,
16124
16125#### Motorola
16126#
16127
16128# Motorola EXORterm 155	from {decvax, ihnp4}!philabs!sbcs!megad!seth via BRL
16129# (Seth H Zirin)
16130ex155|Motorola Exorterm 155,
16131	OTbs, am, bw,
16132	OTkn#5, OTug#1, cols#80, lines#24,
16133	cbt=\E[, clear=\EX, cud1=\EB, cuf1=\ED,
16134	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, ed=\ET, el=\EU,
16135	home=\E@, ht=\EZ, kbs=^H, kcbt=\E[, kclr=\EX, kcub1=^H,
16136	kcud1=^J, kcuf1=^L, kcuu1=^K, ked=\ET, kel=\EU, khome=\E@,
16137	rmso=\Ec\ED, rmul=\Eg\ED, smso=\Eb\ED, smul=\Ef\ED,
16138
16139#### Omron
16140#
16141# This company is still around in 1995, manufacturing point-of-sale systems.
16142
16143omron|Omron 8025AG,
16144	OTbs, am, da, db,
16145	cols#80, lines#24,
16146	bel=^G, clear=\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, cuu1=\EA,
16147	cvvis=\EN, dch1=\EP, dl1=\EM, ed=\ER, el=\EK, home=\EH,
16148	il1=\EL, ind=\ES, ri=\ET, rmso=\E4, smso=\Ef,
16149
16150#### Ramtek
16151#
16152# Ramtek was a vendor of high-end graphics terminals around 1979-1983; they
16153# were competition for things like the Tektronics 4025.
16154#
16155
16156# Ramtek 6221 from BRL, probably by Doug Gwyn
16157# The following SET-UP modes are assumed for normal operation:
16158#	UNDERLINE_CURSOR	ANSI_MODE	AUTO_XON/XOFF_ON
16159#	NEWLINE_OFF		80_COLUMNS
16160# Other SET-UP modes may be set for operator convenience or communication
16161# requirements; I recommend
16162#	SMOOTH_SCROLL	AUTO_REPEAT_ON	3_#_SHIFTED	WRAP_AROUND_ON
16163# Hardware tabs are assumed to be every 8 columns; they can be set up by the
16164# "reset", "tset", or "tabs" utilities (use rt6221-w, 160 columns, for this).
16165# Note that the Control-E key is useless on this brain-damaged terminal.  No
16166# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
16167rt6221|Ramtek 6221 80x24,
16168	OTbs, OTpt, msgr, xon,
16169	OTkn#4, cols#80, it#8, lines#24, vt#3,
16170	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l,
16171	clear=\E[1;1H\E[J, cnorm=\E[>5h\E[>9h, cr=^M,
16172	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
16173	cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
16174	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
16175	cvvis=\E[>7h\E[>9l, ed=\E[J, el=\E[K, home=\E[1;1H, ht=^I,
16176	hts=\EH, ind=^J, is2=\E)0, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16177	kcuf1=\E[C, kcuu1=\E[A, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
16178	kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[24;1H,
16179	nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E>,
16180	rmso=\E[m, rmul=\E[m,
16181	rs1=\E[1w\E[>37m\E[>39m\E[1v\E[20l\E[?3l\E[?6l\E[>5h\E[>6h\E[>7h\E[>8l\E[>9h\E[>10l\E[1;24r\E[m\E[q\E(B\017\E)0\E#5\E>,
16182	sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m,
16183	smul=\E[4m, tbc=\E[3g,
16184# [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
16185rt6221-w|Ramtek 6221 160x48,
16186	cols#160, lines#48,
16187	ll=\E[48;1H, use=rt6221,
16188
16189#### RCA
16190#
16191
16192# RCA VP3301 or VP3501
16193rca|rca vp3301/vp3501,
16194	OTbs,
16195	cols#40, lines#24,
16196	clear=^L, cuf1=^U, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16197	cuu1=^K, home=^Z, rmso=\E\ES0, smso=\E\ES1,
16198
16199
16200#### Selanar
16201#
16202
16203# Selanar HiREZ-100 from BRL, probably by Doug Gwyn
16204# The following SET-UP modes are assumed for normal operation:
16205#	SET_DEFAULT_TABS	48_LINES		80_COLUMNS
16206#	ONLINE			ANSI			CURSOR_VISIBLE
16207#	VT102_AUTO_WRAP_ON	VT102_NEWLINE_OFF	VT102_MONITOR_MODE_OFF
16208#	LOCAL_ECHO_OFF		US_CHAR_SET		WPS_TERMINAL_DISABLED
16209#	CPU_AUTO_XON/XOFF_ENABLED			PRINT_FULL_SCREEN
16210# For use with graphics software, all graphics modes should be set to factory
16211# default.  Other SET-UP modes may be set for operator convenience or
16212# communication requirements.  No delays are specified; use "stty ixon -ixany"
16213# to enable DC3/DC1 flow control!
16214# I commented out the scrolling capabilities since they are too slow.
16215hirez100|Selanar HiREZ-100,
16216	OTbs, OTpt, mir, msgr, xon,
16217	OTkn#4, cols#80, it#8, lines#48, vt#3,
16218	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
16219	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16220	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16221	cuu=\E[%p1%dA, cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P,
16222	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
16223	hts=\EH, il=\E[%p1%dL, il1=\E[L, is2=\E<\E)0, kbs=^H,
16224	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP,
16225	kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3,
16226	lf3=PF4, ll=\E[48H, mc0=\E[i, mc4=\E[4i\E[?4i,
16227	mc5=\E[?5i\E[5i, nel=\EE, rc=\E8, rev=\E[7m, rmacs=^O,
16228	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16229	rs1=\030\E2\E<\E[4i\E[?4i\E[12h\E[2;4;20l\E[?0;7h\E[?1;3;6;19l\E[r\E[m\E(B\017\E)0\E>,
16230	sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E[?1h\E=, smso=\E[7m,
16231	smul=\E[4m, tbc=\E[3g,
16232hirez100-w|Selanar HiREZ-100 in 132-column mode,
16233	cols#132, use=hirez100,
16234
16235#### Signetics
16236#
16237
16238# From University of Wisconsin
16239vsc|Signetics Vsc Video driver by RMC,
16240	am, msgr,
16241	cols#80, it#8, lines#26,
16242	clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
16243	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
16244	ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rev=^_\s,
16245	rmso=^_!, rmul=^_#, sgr0=^_!, smso=^_\s, smul=^_",
16246
16247#### Soroc
16248#
16249# Alan Frisbie <frisbie@flying-disk.com> writes:
16250#
16251# As you may recall, the Soroc logo consisted of their name,
16252# with the letter "S" superimposed over an odd design.   This
16253# consisted of a circle with a slightly smaller 15 degree (approx.)
16254# wedge with rounded corners inside it.   The color was sort of
16255# a metallic gold/yellow.
16256#
16257# If I had been more of a beer drinker it might have been obvious
16258# to me, but it took a clue from their service department to make
16259# me exclaim, "Of course!"   The circular object was the top of
16260# a beer can (the old removable pop-top style) and "Soroc" was an
16261# anagram for "Coors".
16262#
16263# I can just imagine the founders of the company sitting around
16264# one evening, tossing back a few and trying to decide what to
16265# call their new company and what to use for a logo.
16266#
16267
16268# (soroc120: removed obsolete ":ma=^K^P^R^L^L :" -- esr)
16269soroc120|iq120|soroc|soroc iq120,
16270	clear=\E*$<2>, cud1=^J, ed=\EY, el=\ET, kcub1=^H, kcud1=^J,
16271	kcuf1=^L, kcuu1=^K, use=adm3a,
16272soroc140|iq140|soroc iq140,
16273	OTbs, am, mir,
16274	cols#80, lines#24,
16275	bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
16276	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\Ew,
16277	dl1=\Er$<.7*>, ed=\Ey, el=\Et, home=^^, il1=\Ee$<1*>, ind=^J,
16278	kbs=^H, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A@\r, kf2=^AA\r,
16279	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
16280	kf8=^AG\r, kf9=^AH\r, khome=^^, ll=^^^K, rmir=\E8,
16281	rmso=\E\177, rmul=\E^A, smir=\E9, smso=\E\177, smul=\E^A,
16282
16283#### Southwest Technical Products
16284#
16285# These guys made an early personal micro called the M6800.
16286# The ct82 was probably its console terminal.
16287#
16288
16289# (swtp: removed obsolete ":bc=^D:" -- esr)
16290swtp|ct82|southwest technical products ct82,
16291	am,
16292	cols#82, lines#20,
16293	bel=^G, clear=^L, cr=^M, cub1=^D, cud1=^J, cuf1=^S,
16294	cup=\013%p2%c%p1%c, cuu1=^A, dch1=^\^H, dl1=^Z, ed=^V, el=^F,
16295	home=^P, ich1=^\^X, il1=^\^Y, ind=^N,
16296	is2=\034\022\036\023\036\004\035\027\011\023\036\035\036\017\035\027\022\011,
16297	ll=^C, ri=^O, rmso=^^^F, smso=^^^V,
16298
16299#### Synertek
16300#
16301# Bob Manson <manson@pattyr.acs.ohio-state.edu> writes (28 Apr 1995):
16302#
16303# Synertek used to make ICs, various 6502-based single-board process
16304# control and hobbyist computers, and assorted peripherals including a
16305# series of small inexpensive terminals (I think they were one of the
16306# first to have a "terminal-on-a-keyboard", where the terminal itself
16307# was only slightly larger than the keyboard).
16308#
16309# They apparently had a KTM-1 model, which I've never seen. The KTM-2/40
16310# was a 40x24 terminal that could connect to a standard TV through a
16311# video modulator.  The KTM-2/80 was the 80-column version (the 2/40
16312# could be upgraded to the 2/80 by adding 2 2114 SRAMs and a new ROM).
16313# I have a KTM-2/80 still in working order.  The KTM-2s had fully
16314# socketed parts, used 2 6507s, a 6532 as keyboard scanner, a program
16315# ROM and 2 ROMs as character generators. They were incredibly simple,
16316# and I've never had any problems with mine (witness the fact that mine
16317# was made in 1981 and is still working great... I've blown the video
16318# output transistor a couple of times, but it's a 2N2222 :-)
16319#
16320# The KTM-3 (which is what is listed in the terminfo file) was their
16321# attempt at putting a KTM-2 in a box (and some models came with a
16322# CRT). It wasn't much different from the KTM-2 hardware-wise, but the
16323# control and escape sequences are very different. The KTM-3 was always
16324# real broken, at least according to the folks I've talked to about it.
16325#
16326# The padding in the entry is probably off--these terminals were very
16327# slow (it takes like 100ms for the KTM-2 to clear the screen...) And
16328# anyone with any sanity replaced the ROMs with something that provided
16329# a reasonable subset of VT100 functionality, since the usual ROMs were
16330# obviously very primitive... oh, you could get an upgraded ROM from
16331# Synertek for some incredible amount of money, but what hacker with an
16332# EPROM burner would do that? :)
16333#
16334# Sorry I don't have any contact info; I believe they were located in
16335# Sunnyvale, and I'm fairly sure they are still manufacturing ICs
16336# (they've gone to ASICs and FPGAs), but I doubt they're in the computer
16337# business these days.
16338#
16339
16340# Tested, seems to work fine with vi.
16341synertek|ktm|synertek380|synertek ktm 3/80 tubeless terminal,
16342	am,
16343	cols#80, lines#24,
16344	clear=^Z, cub1=^H, cuf1=^L,
16345	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
16346
16347#### Tab Office Products
16348#
16349#	TAB Products Co. - Palo Alto, California
16350#	Electronic Office Products,
16351#	1451 California Avenue 94304
16352#
16353# I think they're out of business.
16354#
16355
16356# The tab 132 uses xon/xoff, so no padding needed.
16357# <smkx>/<rmkx> have nothing to do with arrow keys.
16358# <is2> sets 80 col mode, normal video, autowrap on (for <am>).
16359# Seems to be no way to get rid of status line.
16360# The manual for this puppy was dated June 1981.  It claims to be VT52-
16361# compatible but looks more vt100-like.
16362tab132|tab|tab132-15|tab 132/15,
16363	da, db,
16364	OTdN@, cols#80, lines#24, lm#96,
16365	cud1=^J, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M,
16366	il1=\E[L, is2=\E[?7h\E[?3l\E[?5l, kcub1=\E[D, kcud1=\E[B,
16367	kcuu1=\E[A, rmir=\E[4l, rmkx@, smir=\E[4h, smkx@, use=vt100,
16368tab132-w|tab132 in wide mode,
16369	cols#132,
16370	is2=\E[?7h\E[?3h\E[?5l, use=tab132,
16371tab132-rv|tab132 in reverse-video mode,
16372	is2=\E[?7h\E[?3l\E[?5h, use=tab132,
16373tab132-w-rv|tab132 in reverse-video/wide mode,
16374	is2=\E[?7h\E[?3h\E[?5h, use=tab132-w,
16375
16376
16377#### Teleray
16378#
16379#	Research Incorporated
16380#	6425 Flying Cloud Drive
16381#	Eden Prairie, MN 55344
16382#	Vox: (612)-941-3300
16383#
16384# The Teleray terminals were all discontinued in 1992-93.  RI still services
16385# and repairs these beasts, but no longer manufactures them.  The Teleray
16386# people believe that all the types listed below are very rare now (1995).
16387# There was a newer line of Telerays (Model 7, Model 20, Model 30, and
16388# Model 100) that were ANSI-compatible.
16389#
16390# Note two things called "teleray".  Reorder should move the common one
16391# to the front if you have either.  A dumb teleray with the cursor stuck
16392# on the bottom and no obvious model number is probably a 3700.
16393#
16394
16395t3700|dumb teleray 3700,
16396	OTbs,
16397	cols#80, lines#24,
16398	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ind=^J,
16399t3800|teleray 3800 series,
16400	OTbs,
16401	cols#80, it#8, lines#24,
16402	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16403	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
16404	home=\EH, ht=^I, ind=^J, ll=\EY7\s,
16405t1061|teleray|teleray 1061,
16406	OTbs, am, km, xhp, xt,
16407	cols#80, it#8, lines#24, xmc#1,
16408	bel=^G, clear=\014$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16409	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
16410	dl1=\EM$<2*>, ed=\EJ$<1>, el=\EK, home=\EH, ht=^I, hts=\EF,
16411	ich1=\EP, il1=\EL$<2*>, ind=^J, ip=$<0.4*>,
16412	is2=\Ee\EU01^Z1\EV\EU02^Z2\EV\EU03^Z3\EV\EU04^Z4\EV\EU05^Z5\EV\EU06^Z6\EV\EU07^Z7\EV\EU08^Z8\EV\Ef,
16413	kf1=^Z1, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5, kf6=^Z6, kf7=^Z7,
16414	kf8=^Z8, rmso=\ER@, rmul=\ER@, smso=\s\ERD, smul=\ERH,
16415	tbc=\EG,
16416t1061f|teleray 1061 with fast PROMs,
16417	dl1=\EM, il1=\EL, ip@, use=t1061,
16418# "Teleray Arpa Special", officially designated as
16419# "Teleray Arpa network model 10" with "Special feature 720".
16420# This is the new (1981) fast microcode updating the older "arpa" proms
16421# (which gave meta-key and programmable-fxn keys).  720 is much much faster,
16422# converts the keypad to programmable function keys, and has other goodies.
16423# Standout mode is still broken (magic cookie, etc) so is suppressed as no
16424# programs handle such lossage properly.
16425# Note: this is NOT the old termcap's "t1061f with fast proms."
16426# From: J. Lepreau <lepreau@utah-cs> Tue Feb  1 06:39:37 1983, Univ of Utah
16427# (t10: removed overridden ":so@:se@:us@:ue@:" -- esr)
16428t10|teleray 10 special,
16429	OTbs, km, xhp, xt,
16430	cols#80, it#8, lines#24, xmc#2,
16431	clear=\Ej$<30/>, cub1=^H, cuf1=\EC,
16432	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
16433	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
16434	ind=\Eq, pad=\0, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD,
16435	smul=\ERH,
16436# teleray 16 - map the arrow keys for vi/rogue, shifted to up/down page, and
16437# back/forth words. Put the function keys (f1-f10) where they can be
16438# found, and turn off the other magic keys along the top row, except
16439# for line/local. Do the magic appropriate to make the page shifts work.
16440# Also toggle ^S/^Q for those of us who use Emacs.
16441t16|teleray 16,
16442	am, da, db, mir, xhp, xt,
16443	cols#80, lines#24,
16444	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
16445	cuf1=\E[C, cup=%i\E[%p1%d;%p2%df, cuu1=\E[A, dch1=\E[P,
16446	dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H, ht=^I, il1=\E[L,
16447	ind=^J, kf1=^Z1, kf10=^Z0, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5,
16448	kf6=^Z6, kf7=^Z7, kf8=^Z8, kf9=^Z9, ri=\E[T,
16449	rmcup=\E[V\E[24;1f\E[?38h, rmir=\E[4l, rmso=\E[m,
16450	rmul=\E[m, sgr0=\E[m, smcup=\E[U\E[?38l, smir=\E[4h,
16451	smso=\E[7m, smul=\E[4m,
16452
16453#### Texas Instruments (ti)
16454#
16455
16456# The Silent 700 was so called because it was built around a quiet thermal
16457# printer.  It was portable, equipped with an acoustic coupler, and pretty
16458# neat for its day.
16459ti700|ti733|ti735|ti745|ti800|ti silent 700/733/735/745 or omni 800,
16460	OTbs, hc, os,
16461	cols#80,
16462	bel=^G, cr=\r$<162>, cub1=^H, cud1=^J, ind=^J,
16463
16464#
16465# Texas Instruments 916 VDT 7 bit control mode
16466#
16467ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 vt220 mode 7 bit CTRL,
16468	da, db, in, msgr,
16469	cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J$<6>,
16470	cnorm=\E[?25h, cub=\E[%p1%dD, cud=\E[%p1%dB,
16471	cuf=\E[%p1%dC, cup=\E[%p1%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
16472	cvvis=\E[?25h, dch=\E[%p1%dP$<250>, dch1=\E[P,
16473	dl=\E[%p1%dM, ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K,
16474	el1=\E[1K, enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>,
16475	hpa=\E[%p1%{1}%+%dG, hts=\E[0W, ich=\E[%p1%d@$<250>,
16476	il=\E[%p1%dL$<36>, ip=$<10>, is2=\E[1;24r\E[24;1H,
16477	kcmd=\E[29~, kdch1=\E[P, kent=^J, kf1=\E[17~, kf10=\E[28~,
16478	kf11=\E[29~, kf12=\E[31~, kf2=\E[18~, kf3=\E[19~,
16479	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
16480	kf9=\E[26~, khome=\E[H, kich1=\E[@, knp=\E[S, kpp=\E[T,
16481	kprt=^X, prot=\E&, rmacs=\017$<2>, rs2=\E[!p,
16482	smacs=\016$<2>, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
16483	use=vt220,
16484#
16485# Texas Instruments 916 VDT 8 bit control mode
16486#
16487ti916-8|ti916-220-8|Texas Instruments 916 VDT 8859/1 8 vt220 mode bit CTRL,
16488	kcmd=\23329~, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
16489	kcuu1=\233A, kdch1=\233P, kent=^J, kf1=\23317~,
16490	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf2=\23318~,
16491	kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
16492	kf7=\23324~, kf8=\23325~, kf9=\23326~, khome=\233H,
16493	kich1=\233@, knp=\233S, kpp=\233T, kprt=^X, use=ti916,
16494#
16495# Texas Instruments 916 VDT 8859/1 7 bit control 132 column mode
16496#
16497ti916-132|Texas Instruments 916 VDT vt220 132 column,
16498	cols#132, use=ti916,
16499#
16500# Texas Instruments 916 VDT 8859/1 8 bit control 132 column mode
16501#
16502ti916-8-132|Texas Instruments 916 VDT 8-bit vt220 132 column,
16503	cols#132, use=ti916-8,
16504ti924|Texas Instruments 924 VDT 8859/1 7 bit CTRL,
16505	OTbs, am, xon,
16506	cols#80, it#8, lines#24,
16507	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
16508	clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
16509	csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
16510	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
16511	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16512	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16513	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kf1=\EOP, kf2=\EOQ,
16514	kf3=\EOR, kf4=\EOS, kf5=\E[16~, kf6=\E[17~, kf7=\E[18~,
16515	kf8=\E[19~, kf9=\E[20~, kich1=\E[@, rc=\E8, rev=\E[7m,
16516	ri=\EM, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
16517	smul=\E[4m, tbc=\E[3g,
16518ti924-8|Texas Instruments 924 VDT 8859/1 8 bit CTRL,
16519	am, xon,
16520	cols#80, it#8, lines#24,
16521	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
16522	clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
16523	csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
16524	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
16525	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16526	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16527	kcuf1=\E[C, kcuu1=\E[A, kdch1=P$<\233>, kf1=P$<\217>,
16528	kf2=Q$<\217>, kf3=R$<\217>, kf4=S$<\217>, kf5=~$<\23316>,
16529	kf6=~$<\23317>, kf7=~$<\23318>, kf8=~$<\23319>,
16530	kf9=~$<\23320>, kich1=@$<\233>, rc=\E8, rev=\E[7m, ri=\EM,
16531	rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
16532	smul=\E[4m, tbc=\E[3g,
16533ti924w|Texas Instruments 924 VDT 7 bit - 132 column mode,
16534	cols#132, use=ti924,
16535ti924-8w|Texas Instruments 924 VDT 8 bit - 132 column mode,
16536	cols#132, use=ti924-8,
16537ti931|Texas Instruments 931 VDT,
16538	OTbs, am, xon,
16539	cols#80, lines#24,
16540	bel=^G, blink=\E4P, clear=\EL, cnorm=\E4@, cr=^M, cub1=\ED,
16541	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16542	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
16543	ich1=\ER\EP\EM, il1=\EN, ind=\Ea, invis=\E4H,
16544	is2=\EGB\E(@B@@\E), kcub1=\ED, kcud1=\EB, kcuf1=\EC,
16545	kcuu1=\EA, kdch1=\EQ, kdl1=\EO, kf1=\Ei1, kf2=\Ei2, kf3=\Ei3,
16546	kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7, kf8=\Ei8, kf9=\Ei9,
16547	kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb, rmso=\E4@, rmul=\E4@,
16548	sgr0=\E4@, smso=\E4A, smul=\E4D,
16549ti926|Texas Instruments 926 VDT 8859/1 7 bit CTRL,
16550	csr@, ind=\E[1S, ri=\E[1T, use=ti924,
16551# (ti926-8: I corrected this from the broken SCO entry -- esr)
16552ti926-8|Texas Instruments 926 VDT 8859/1 8 bit CTRL,
16553	csr@, ind=\2331S, ri=\2331T, use=ti924-8,
16554ti_ansi|basic entry for ti928,
16555	am, bce, eo, xenl, xon,
16556	colors#8, cols#80, it#8, lines#25, pairs#64,
16557	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[2J\E[H,
16558	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B,
16559	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
16560	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
16561	il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16562	kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf0=\E[V, kf1=\E[M,
16563	kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
16564	kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I,
16565	op=\E[37;40m, ri=\E[T, rmso=\E[m, rmul=\E[m,
16566	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
16567	smso=\E[7m, smul=\E[4m,
16568#
16569#       928 VDT 7 bit control mode
16570#
16571ti928|Texas Instruments 928 VDT 8859/1 7 bit CTRL,
16572	kdch1=\E[P, kend=\E_1\E\\, kent=\E[8~, kf1=\E[17~,
16573	kf10=\E[28~, kf11=\E[29~, kf12=\E[31~, kf13=\E[32~,
16574	kf15=\E[34~, kf2=\E[18~, kf3=\E[19~, kf4=\E[20~,
16575	kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
16576	kich1=\E[@, knp=\E[S, kpp=\E[T, kprt=\E[35~, use=ti_ansi,
16577#
16578#       928 VDT 8 bit control mode
16579#
16580ti928-8|Texas Instruments 928 VDT 8859/1 8 bit CTRL,
16581	kdch1=\233P, kend=\2371\234, kent=\2338~, kf1=\23317~,
16582	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13=\23332~,
16583	kf15=\23334~, kf2=\23318~, kf3=\23319~, kf4=\23320~,
16584	kf5=\23321~, kf6=\23323~, kf7=\23324~, kf8=\23325~,
16585	kf9=\23326~, khome=\233H, kich1=\233@, knp=\233S,
16586	kpp=\233T, kprt=\23335~, use=ti_ansi,
16587
16588#### Zentec (zen)
16589#
16590
16591# (zen30: removed obsolete :ma=^L ^R^L^K^P:.  This entry originally
16592# had just <smso>=\EG6 which I think means standout was supposed to be
16593# dim-reverse using ADM12-style attributes. ADM12 <smul>/<rmul> and
16594# <invis> might work-- esr)
16595zen30|z30|zentec 30,
16596	OTbs, am, mir, ul,
16597	cols#80, lines#24,
16598	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
16599	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
16600	dim=\EG2, dl1=\ER$<1.5*>, ed=\EY, el=\ET$<1.0*>, home=^^,
16601	il1=\EE$<1.5*>, ind=^J, rmir=\Er, rmul@, smir=\Eq, smso=\EG6,
16602	smul@, use=adm+sgr,
16603# (zen50: this had extension capabilities
16604#	:BS=^U:CL=^V:CR=^B:
16605# UK/DK/RK/LK/HM were someone's aliases for ku/kd/kl/kr/kh,
16606# which were also in the original entry -- esr)
16607# (zen50: removed obsolete ":ma=^Hh^Ll^Jj^Kk:" -- esr)
16608zen50|z50|zentec zephyr,
16609	OTbs, am,
16610	cols#80, lines#24, xmc#1,
16611	clear=\E+, cub1=^H, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
16612	cuu1=^K, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ich1=\EQ, il1=\EE,
16613	invis@, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
16614	rmul@, smul@, use=adm+sgr,
16615
16616# CCI 4574 (Office Power) from Will Martin <wmartin@BRL.ARPA> via BRL
16617cci|cci1|z8001|zen8001|CCI Custom Zentec 8001,
16618	OTbs, am, bw,
16619	cols#80, lines#24,
16620	blink=\EM", clear=\EH\EJ, cnorm=\EP,
16621	csr=\ER%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^J,
16622	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
16623	cvvis=\EF\EQ\EM \ER 7, dim=\EM!, ed=\EJ, el=\EK, home=\EH,
16624	invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, kcub1=\ED,
16625	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, mc4=^T, mc5=^R,
16626	rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s, sgr0=\EM\s,
16627	smso=\EM$, smul=\EM0,
16628
16629######## OBSOLETE UNIX CONSOLES
16630#
16631
16632#### Apollo consoles
16633#
16634# Apollo got bought by Hewlett-Packard.  The Apollo workstations are
16635# labeled HP700s now.
16636#
16637
16638# From: Gary Darland <goodmanc@garnet.berkeley.edu>
16639apollo|apollo console,
16640	OTbs, am, mir,
16641	cols#88, lines#53,
16642	clear=^L, cub1=^H, cud1=\EB, cuf1=\EC,
16643	cup=\EM%p1%{32}%+%c%p2%d), cuu1=\EA, dch1=\EP, dl1=\EL,
16644	ed=\EJ, el=\EK, hpa=\EN%p1%d, il1=\EI, ind=\EE, ri=\ED,
16645	rmcup=\EX, rmir=\ER, rmso=\ET, rmul=\EV, smcup=\EW, smir=\EQ,
16646	smso=\ES, smul=\EU, vpa=\EO+\s,
16647
16648# We don't know whether or not the apollo guys replicated DEC's firmware bug
16649# in the VT132 that reversed <rmir>/<smir>.  To be on the safe side, disable
16650# both these capabilities.
16651apollo_15P|apollo 15 inch display,
16652	rmir@, smir@, use=vt132,
16653apollo_19L|apollo 19 inch display,
16654	rmir@, smir@, use=vt132,
16655apollo_color|apollo color display,
16656	rmir@, smir@, use=vt132,
16657
16658#### Convergent Technology
16659#
16660# Burroughs bought Convergent shortly before it merged with Univac.
16661# CTOS is (I believe) dead.  Probably the aws is too (this entry dates
16662# from 1991 or earlier).
16663#
16664
16665# Convergent AWS workstation from Gould/SEL UTX/32 via BRL
16666# (aws: removed unknown :dn=^K: -- esr)
16667aws|Convergent Technologies AWS workstation under UTX and Xenix,
16668	am,
16669	OTug#0, cols#80, lines#28, xmc#0,
16670	OTbc=^H, OTma=\016h\013j\001k\022l\002m, OTnl=^J, acsc=,
16671	clear=^L, cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A,
16672	dch1=\EDC, dl1=\EDL, ed=\EEF, el=\EEL, hpa=\EH%p1%c,
16673	ich1=\EIC, il1=\EIL, ind=\ESU, kbs=^H, kcub1=^N, kcud1=^K,
16674	kcuf1=^R, kcuu1=^A, ri=\ESD, rmacs=\EAAF, rmso=\EARF,
16675	rmul=\EAUF, smacs=\EAAN, smso=\EARN, smul=\EAUN,
16676	vpa=\EV%p1%c,
16677awsc|Convergent Technologies AWS workstation under CTOS,
16678	am,
16679	OTug#0, cols#80, lines#24, xmc#0,
16680	OTbc=^N, OTma=\016h\013j\001k\022l\002m, acsc=, clear=^L,
16681	cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A, ed=\EEF,
16682	el=\EEL, kbs=^H, kcub1=^N, kcud1=^K, kcuf1=^R, kcuu1=^A,
16683	rmacs=\EAAF, rmso=\EAA, rmul=\EAA, smacs=\EAAN, smso=\EAE,
16684	smul=\EAC,
16685
16686#### DEC consoles
16687#
16688
16689# The MicroVax console.  Tim Theisen <tim@cs.wisc.edu> writes:
16690# The digital uVax II's had a graphic display called a qdss.  It was
16691# supposed to be a high performance graphic accelerator, but it was
16692# late to market and barely appeared before faster dumb frame buffers
16693# appeared.  I have only used this display while running X11.  However,
16694# during bootup, it was in text mode, and probably had a terminal emulator
16695# within it.  And that is what your termcap entry is for.  In graphics
16696# mode the screen size is 1024x864 pixels.
16697qdss|qdcons|qdss glass tty,
16698	OTbs, am,
16699	cols#128, lines#57,
16700	clear=\032$<1/>, cub1=^H, cud1=^J, cuf1=^L,
16701	cup=\E=%p1%c%p2%c, cuu1=^K,
16702
16703#### Fortune Systems consoles
16704#
16705# Fortune made a line of 68K-based UNIX boxes that were pretty nifty
16706# in their day; I (esr) used one myself for a year or so around 1984.
16707# They had no graphics, though, and couldn't compete against Suns and
16708# the like.  R.I.P.
16709#
16710
16711# From: Robert Nathanson <c160-3bp@Coral> via tut   Wed Oct 5, 1983
16712# (This had extension capabilities
16713#	:rv=\EH:re=\EI:rg=0:GG=0:\
16714#	:CO=\E\\:WL=^Aa\r:WR=^Ab\r:CL=^Ac\r:CR=^Ad\r:DL=^Ae\r:RF=^Af\r:\
16715#	:RC=^Ag\r:CW=^Ah\r:NU=^Aj\r:EN=^Ak\r:HM=^Al:PL=^Am\r:\
16716#	:PU=^An\r:PD=^Ao\r:PR=^Ap\r:HP=^A@\r:RT=^Aq\r:TB=\r:CN=\177:MP=\E+F:
16717# It had both ":bs:" and ":bs=^H:"; I removed the latter.  Also, it had
16718# ":sg=0:" and ":ug=0:"; evidently the composer was trying (unnecessarily)
16719# to force both magic cookie glitches off.  Once upon a time, I
16720# used a Fortune myself, so I know the capabilities of the form ^A[a-z]\r are
16721# function keys; thus the "Al" value for HM was certainly an error.  I renamed
16722# EN/PD/PU/CO/CF/RT according to the XENIX/TC mappings, but not HM/DL/RF/RC.
16723# I think :rv: and :re: are start/end reverse video and :rg: is a nonexistent
16724# "reverse-video-glitch" capability; I have put :rv: and :re: in with standard
16725# names below.  I've removed obsolete ":nl=5^J:" as there is a :do: -- esr)
16726fos|fortune|Fortune system,
16727	OTbs, am, bw,
16728	cols#80, lines#25,
16729	acsc=j*k(l m"q&v%w#x-, bel=^G, blink=\EN, civis=\E],
16730	clear=\014$<20>, cnorm=\E\\, cr=^M, cub1=^H, cud1=\n$<3>,
16731	cup=\034C%p1%{32}%+%c%p2%{32}%+%c, cuu1=\013$<3>,
16732	cvvis=\E\:, dch1=\034W$<5>, dl1=\034R$<15>,
16733	ed=\034Y$<3*>, el=^\Z, home=\036$<10>, ht=^Z,
16734	ich1=\034Q$<5>, il1=\034E$<15>, ind=^J, is2=^_.., kbs=^H,
16735	kcub1=^Aw\r, kcud1=^Ay\r, kcuf1=^Az\r, kcuu1=^Ax\r,
16736	kend=^Ak\r, kent=^Aq, kf1=^Aa\r, kf2=^Ab\r, kf3=^Ac\r,
16737	kf4=^Ad\r, kf5=^Ae\r, kf6=^Af\r, kf7=^Ag\r, kf8=^Ah\r,
16738	khome=^A?\r, knp=^Ao\r, kpp=^An\r, nel=^M^J, rev=\EH,
16739	rmacs=^O, rmso=^\I`, rmul=^\IP, sgr0=\EI, smacs=\Eo,
16740	smso=^\H`, smul=^\HP,
16741
16742#### Masscomp consoles
16743#
16744# Masscomp has gone out of business.  Their product line was purchased by
16745# comany in Georgia (US) called "XS International", parts and service may
16746# still be available through them.
16747#
16748
16749# (masscomp: ":MT:" changed to ":km:";  -- esr)
16750masscomp|masscomp workstation console,
16751	OTbs, km, mir,
16752	cols#80, it#8, lines#24,
16753	clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
16754	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
16755	ed=\E[J, el=\E[K, ht=^I, il1=\E[L, is2=\EGc\EGb\EGw, kbs=^H,
16756	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmir=\E[4l,
16757	rmso=\E[m, rmul=\EGau, smir=\E[4h, smso=\E[7m, smul=\EGu,
16758masscomp1|masscomp large screen version 1,
16759	cols#104, lines#36, use=masscomp,
16760masscomp2|masscomp large screen version 2,
16761	cols#64, lines#21, use=masscomp,
16762
16763######## OTHER OBSOLETE TYPES
16764#
16765# These terminals are *long* dead -- these entries are retained for
16766# historical interest only.
16767#
16768
16769#### Obsolete non-ANSI software emulations
16770#
16771
16772# CTRM terminal emulator
16773# 1. underlining is not allowed with colors: first, is is simulated by
16774# black on white, second, it disables background color manipulations.
16775# 2. BLINKING, REVERSE and BOLD are allowed with colors,
16776# so we have to save their status in the static registers A, B and H
16777# respectively, to be able to restore them when color changes
16778# (because any color change turns off ALL attributes)
16779# 3. <bold> and <rev> sequences alternate modes,
16780# rather then simply  entering them.  Thus we have to check the
16781# static register B and H to determine the status, before sending the
16782# escape sequence.
16783# 4. <sgr0> now must set the status of all 3 register (A,B,H) to zero
16784# and then reset colors
16785# 5. implementation of the protect mode would badly penalize the performance.
16786# we would have to use \E&bn sequence to turn off colors (as well as all
16787# other attributes), and keep the status of protect mode in yet another
16788# static variable.  If someone really needs this mode, they would have to
16789# create another terminfo entry.
16790# 6. original color-pair is white on black.
16791# store the information about colors into static registers
16792# 7. set foreground color.  it performs the following steps.
16793#   1) turn off all attributes
16794#   2) turn on the background and video attributes that have been turned
16795#      on before (this information is stored in static registers X,Y,Z,A,B,H,D).
16796#   3) turn on foreground attributes
16797#   4) store information about foreground into U,V,W static registers
16798# 8. turn on background: similar to turn on foreground above
16799ctrm|C terminal emulator,
16800	am, bce, xon,
16801	colors#8, cols#80, lh#0, lines#24, lm#0, lw#0, ncv#2, nlab#0,
16802	pairs#63, pb#19200, vt#6,
16803	bel=^G, blink=\E&dA%{1}%PA,
16804	bold=%?%gH%{0}%=%t\E&dH%{1}%PH%;, cbt=\Ei,
16805	clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16806	cup=\E&a%p2%dc%p1%dY, cuu1=\EA, dch1=\EP$<2>, dl1=\EM,
16807	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=\011$<2>, hts=\E1,
16808	il1=\EL, ind=^J, ip=$<2>, is2=\E&jA\r, kbs=^H, kcub1=\Eu\r,
16809	kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1=\Ep\r,
16810	kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r,
16811	kf7=\Ev\r, kf8=\Ew\r, khome=\Ep\r,
16812	op=\E&bn\E&bB\E&bG\E&bR%{0}%PX%{0}%PY%{0}%PZ%{1}%PW%{1}%PV%{1}%PU,
16813	rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, rmir=\ER, rmkx=\E&jA,
16814	setb=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gU%t\E&bR%;%?%gV%t\E&bG%;%?%gW%t\E&bB%;%?%p1%{1}%&%t\E&bb%{1}%e%{0}%;%PZ%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY%?%p1%{4}%&%t\E&br%{1}%e%{0}%;%PX,
16815	setf=\E&bn%?%gA%t\E&dA%;%?%gB%t\E&dB%;%?%gH%t\E&dH%;%?%gX%t\E&br%;%?%gY%t\E&bg%;%?%gZ%t\E&bb%;%?%p1%{1}%&%t\E&bB%{1}%e%{0}%;%PW%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV%?%p1%{4}%&%t\E&bR%{1}%e%{0}%;%PU,
16816	sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH%?%p1%p3%p5%|%|%t\E&dB%{1}%PB%;%?%p4%t\E&dA%{1}%PA%;%?%p6%t\E&dH%{1}%PH%;%?%p2%t\E&dD%;,
16817	sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, smir=\EQ, smkx=\E&jB,
16818	smso=\E&dD, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
16819
16820# gs6300 - can't use blue foreground, it clashes with underline;
16821# it's simulated with cyan
16822# Bug: The <op> capability probably resets attributes.
16823# (gs6300: commented out <rmln> (no <smln>) --esr)
16824gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
16825	am, bce, msgr, xon,
16826	colors#8, cols#80, it#8, lines#24, pairs#63,
16827	acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16828	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
16829	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16830	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16831	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
16832	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
16833	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
16834	is2=\E[m, kbs=^H, kcbt=^R^I, kcub1=\E[D, kcud1=\E[B,
16835	kcuf1=\E[C, kcuu1=\E[A, kf1=\E[0s, kf2=\E[24s, kf3=\E[1s,
16836	kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, kf8=\E[21s,
16837	khome=\E[H, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m,
16838	ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm,
16839	setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m,
16840	sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m,
16841
16842# From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
16843# MS-Kermit with Heath-19 emulation mode enabled
16844# (h19k: changed ":pt@:" to ":it@"
16845h19k|h19kermit|heathkit emulation provided by Kermit (no auto margin),
16846	am@, da, db, xt,
16847	it@,
16848	ht@, use=h19-u,
16849
16850# Apple Macintosh with Versaterm, a terminal emulator distributed by Synergy
16851# Software (formerly Peripherals Computers & Supplies, Inc) of
16852# 2457 Perkiomen Ave., Reading, PA 19606, 1-800-876-8376.  They can
16853# also be reached at support@synergy.com.
16854versaterm|versaterm vt100 emulator for the macintosh,
16855	am, xenl,
16856	cols#80, it#8, lines#24,
16857	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
16858	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
16859	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
16860	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
16861	dch1=\E[1P$<7/>, dl1=\E[1M$<9/>, ed=\E[J$<50/>,
16862	el=\E[K$<3/>, home=\E[H, ht=^I, ich1=\E[1@$<7/>,
16863	il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
16864	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
16865	kf3=\EOR, kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>,
16866	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
16867	rmkx=\E>\E[?1l, rmso=\E[m$<2/>, rmul=\E[m$<2/>, rs1=\E>,
16868	sc=\E7, sgr0=\E[m$<2/>, smkx=\E=\E[?1h, smso=\E[7m$<2/>,
16869	smul=\E[4m$<2/>,
16870
16871# From: Rick Thomas <ihnp4!btlunix!rbt>
16872# (xtalk: I added <rmam>/<smam> based on the init string.
16873xtalk|IBM PC with xtalk communication program (versions up to 3.4),
16874	am, mir, msgr, xon,
16875	cols#80, it#8, lines#24, vt#3, xmc#1,
16876	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16877	bel=^G, clear=\E[H\E[J$<50>, cr=^M, cub=\E[%p1%dD, cub1=^H,
16878	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
16879	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
16880	cuu1=\E[A$<2>, dl1=\E[M$<99>, ed=\E[J$<50>, el=\E[K$<3>,
16881	el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
16882	il1=\E[L$<99>, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
16883	kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
16884	kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
16885	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
16886	kf8=\EOl, kf9=\EOw, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
16887	rmkx=\E[?1l\E>, rmso=\E[m\s,
16888	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
16889	smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
16890	tbc=\E[3g,
16891
16892# The official PC terminal emulator program of the AT&T Product Centers.
16893# Note - insert mode commented out - doesn't seem to work on AT&T PC.
16894simterm|attpc running simterm,
16895	am,
16896	cols#80, lines#24,
16897	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
16898	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\ER,
16899	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, ind=^J, rmcup=\EVE,
16900	rmso=\E&d@, sgr0=\E&d@, smcup=\EVS, smso=\E&dB,
16901
16902#### Daisy wheel printers
16903#
16904# This section collects Diablo, DTC, Xerox, Qume, and other daisy
16905# wheel terminals.  These are now largely obsolete.
16906#
16907
16908# (diablo1620: removed <if=/usr/share/tabset/xerox1720>, no such file -- esr)
16909diablo1620|diablo1720|diablo450|ipsi|diablo 1620,
16910	hc, os,
16911	cols#132, it#8,
16912	cub1=^H, cud1=^J, cuu1=\E^J, hd=\ED, hpa=\E\011%i%p1%c,
16913	ht=^I, hts=\E1, hu=\EU, kbs=^H, tbc=\E2,
16914diablo1620-m8|diablo1640-m8|diablo 1620 w/8 column left margin,
16915	cols#124,
16916	is2=\r        \E9, use=diablo1620,
16917# (diablo1640: removed <if=/usr/share/tabset/xerox1730>, no such file -- esr)
16918diablo1640|diablo1730|diablo1740|diablo630|x1700|diablo|xerox|diablo 1640,
16919	bel=^G, rmso=\E&, rmul=\ER, smso=\EW, smul=\EE,
16920	use=diablo1620,
16921# (diablo1640-lm: removed <if=/usr/share/tabset/xerox1730-lm>, no such
16922# file -- esr)
16923diablo1640-lm|diablo-lm|xerox-lm|diablo 1640 with indented left margin,
16924	cols#124,
16925	rmso=\E&, rmul=\ER, smso=\EW, smul=\EE, use=diablo1620,
16926diablo1740-lm|630-lm|1730-lm|x1700-lm|diablo 1740 printer,
16927	use=diablo1640-lm,
16928# DTC 382 with VDU.  Has no <ed> so we fake it with <el>.  Standout
16929# <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\0>.
16930# The terminal has tabs, but I'm getting tired of fighting the braindamage.
16931# If no tab is set or the terminal's in a bad mood, it glitches the screen
16932# around all of memory.  Note that return puts a blank ("a return character")
16933# in the space the cursor was at, so we use ^P return (and thus ^P newline for
16934# newline).  Note also that if you turn off :pt: and let Unix expand tabs,
16935# curses won't work (some old BSD versions) because it doesn't clear this bit,
16936# and cursor addressing sends a tab for row/column 9.  What a losing terminal!
16937# I have been unable to get tabs set in all 96 lines - it always leaves at
16938# least one line with no tabs in it, and once you tab through that line,
16939# it completely weirds out.
16940# (dtc382: change <rmcup> to <smcup> -- it  just does a clear --esr)
16941dtc382|DTC 382,
16942	am, da, db, xhp,
16943	cols#80, lines#24, lm#96,
16944	bel=^G, clear=\020\035$<20>, cnorm=^Pb, cr=^P^M, cub1=^H,
16945	cuf1=^PR, cup=\020\021%p2%c%p1%c, cuu1=^P^L, cvvis=^PB,
16946	dch1=^X, dl1=^P^S, ed=\020\025\020\023\020\023, el=^P^U,
16947	home=^P^R, il1=^P^Z, ind=^J, pad=\177, rmcup=, rmir=^Pi,
16948	rmul=^P \0, smcup=\020\035$<20>, smir=^PI, smul=^P ^P,
16949dtc300s|DTC 300s,
16950	hc, os,
16951	cols#132,
16952	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
16953	hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
16954gsi|mystery gsi terminal,
16955	hc, os,
16956	cols#132,
16957	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, hd=\Eh, ht=^I, hu=\EH,
16958	ind=^J,
16959aj830|aj832|aj|anderson jacobson,
16960	hc, os,
16961	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
16962	ind=^J,
16963# From: Chris Torek <chris@gyre.umd.edu> Thu, 7 Nov 85 18:21:58 EST
16964aj510|Anderson-Jacobson model 510,
16965	am, mir,
16966	cols#80, lines#24,
16967	clear=^L, cub1=^H, cuf1=\EX,
16968	cup=\E#%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EY,
16969	dch1=.1*\E'D, dl1=\E&D$<2*/>, ed=\E'P, el=\E'L, ich1=,
16970	il1=\E&I$<2*/>, ip=$<.1*/>, kcub1=\EW, kcud1=\EZ,
16971	kcuf1=\EX, kcuu1=\EY, pad=\177, rmcup=\E"N, rmir=\E'J,
16972	rmso=\E"I, rmul=\E"U, smcup=\E"N, smir=\E'I, smso=\E"I,
16973	smul=\E"U,
16974# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
16975# This is incomplete, but it's a start.
16976nec5520|nec|spinwriter|nec 5520,
16977	hc, os,
16978	cols#132, it#8,
16979	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E9, ff=^L,
16980	hd=\E]s\n\E]W, ht=^I, hts=\E1, hu=\E]s\E9\E]W, ind=^J,
16981	kbs=^H, tbc=\E3,
16982qume5|qume|Qume Sprint 5,
16983	hc, os,
16984	cols#80, it#8,
16985	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
16986	hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
16987# I suspect the xerox 1720 is the same as the diablo 1620.
16988xerox1720|x1720|x1750|xerox 1720,
16989	hc, os,
16990	cols#132, it#8,
16991	bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ht=^I, hts=\E1, ind=^J,
16992	tbc=\E2,
16993
16994#### Miscellaneous obsolete terminals, manufacturers unknown
16995#
16996# If you have any information about these (like, a manufacturer's name,
16997# and a date on the serial-number plate) please send it!
16998
16999cad68-3|cgc3|cad68 basic monitor transparent mode size 3 chars,
17000	OTbs, am,
17001	cols#73, lines#36,
17002	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^,
17003cad68-2|cgc2|cad68 basic monitor transparent mode size 2 chars,
17004	OTbs, am,
17005	cols#85, lines#39,
17006	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^, kcub1=\E3,
17007	kcud1=\E2, kcuf1=\E4, kcuu1=\E1, kf1=\E5, kf2=\E6, kf3=\E7,
17008	kf4=\E8, rmso=\Em^C, smso=\Em^L,
17009cops10|cops|cops-10|cops 10,
17010	am, bw,
17011	cols#80, lines#24,
17012	bel=^G, clear=\030$<30/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
17013	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^W, el=^V,
17014	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
17015	khome=^Y,
17016# (d132: removed duplicate :ic=\E5:,
17017# merged in capabilities from a BRL entry -- esr)
17018d132|datagraphix|datagraphix 132a,
17019	da, db, in,
17020	cols#80, lines#30,
17021	bel=^G, clear=^L, cnorm=\Em\En, cr=^M, cub1=^H, cud1=^J,
17022	cuf1=\EL, cup=\E8%i%p1%3d%p2%3d, cuu1=\EK, cvvis=\Ex,
17023	dch1=\E6, home=\ET, ht=^I, ich1=\E5, il1=\E3, ind=^J, kbs=^H,
17024	kcub1=^H, kcud1=^J, nel=^M^J, ri=\Ew,
17025# The d800 was an early portable terminal from c.1984-85 that looked a lot
17026# like the original Compaq `lunchbox' portable (but no handle).  It had a vt220
17027# mode (which is what this entry looks like) and several other lesser-known
17028# emulations.
17029d800|Direct 800/A,
17030	OTbs, am, da, db, msgr, xhp,
17031	cols#80, it#8, lines#24,
17032	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
17033	bel=^G, clear=\E[1;1H\E[2J, cnorm=\E[>12h, cr=^M, cub1=^H,
17034	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
17035	cvvis=\E[>12l, ed=\E[J, el=\E[K, ht=^I, ind=\ED, kcub1=\E[D,
17036	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
17037	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
17038	ri=\EM, rmacs=\E[m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
17039	smacs=\E[1m, smso=\E[7m, smul=\E[4m,
17040digilog|digilog 333,
17041	OTbs,
17042	cols#80, lines#16,
17043	bel=^G, cr=^M, cub1=^H, cud1=^J, cuf1=^I, cuu1=^O, el=^X,
17044	home=^N, ind=^J,
17045# The DWK was a terminal manufactured in the Soviet Union c.1986
17046dwk|dwk-vt|dwk terminal,
17047	am,
17048	cols#80, it#8, lines#24,
17049	acsc=+\^\,Q-S.M0\177`+a\:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~_,
17050	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
17051	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
17052	ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EQ, ind=^J, kbs=\177,
17053	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\Ee,
17054	kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5,
17055	kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed, knp=\Eh,
17056	kpp=\Eg, nel=^M^J, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
17057	sgr0=\EX, smacs=\EF, smso=\ET,
17058env230|envision230|envision 230 graphics terminal,
17059	xenl@,
17060	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
17061	sgr=\E[%?%p1%t;1%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
17062	use=vt100,
17063# These execuports were impact-printer ttys with a 30- or maybe 15-cps acoustic
17064# coupler attached, the whole rig fitting in a suitcase and more or less
17065# portable.  Hot stuff for c.1977 :-) -- esr
17066ep48|ep4080|execuport 4080,
17067	OTbs, am, os,
17068	cols#80,
17069	bel=^G, cr=^M, cub1=^H, cud1=^J, hd=^\, hu=^^, ind=^J,
17070ep40|ep4000|execuport 4000,
17071	cols#136, use=ep4080,
17072# Adam Thompson <athompso@pangea.ca> tells us:
17073# Informer series - these are all portable units, resembling older
17074# automatic bread-baking machines.  The terminal looks like a `clamshell'
17075# design, but isn't.  The structure is similar to the Direct terminals,
17076# but only half the width.  The entire unit is only about 10" wide.
17077# It features an 8" screen (6" or 7" if you have color!), and an 9"x6"
17078# keyboard.  All the keys are crammed together, much like some laptop
17079# PCs today, but perhaps less well organized...all these units have a
17080# bewildering array of plugs on the back, including a built-in modem.
17081# The 305 was a color version of the 304; the 306 and 307 were mono and
17082# color terminals built for IBM bisync protocols.
17083# From: Paul Leondis <unllab@amber.berkeley.edu>
17084ifmr|Informer D304,
17085	OTbs, am,
17086	cols#80, lines#24,
17087	clear=\EZ, cub1=^H, cud1=^J, cuf1=\EC,
17088	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\E\\,
17089	ed=\E/, el=\EQ, home=\EH, ich1=\E[, ri=\En, rmso=\EK, sgr0=\EK,
17090	smso=\EJ,
17091# Entry largely based on wy60 and has the features of wy60ak.
17092opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
17093	am, bw, hs, km, mir, msgr, ul, xon,
17094	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#80,
17095	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
17096	cbt=\EI, civis=\E`0, clear=\E*$<100>, cnorm=\E`1, cr=^M,
17097	cub1=^H, cud1=^J, cuf1=^L, cup=\Ea%i%p1%dR%p2%dC, cuu1=^K,
17098	dch1=\EW$<11>, dim=\EGp, dl1=\ER$<5>, dsl=\Ez(\r,
17099	ed=\EY$<100>, el=\ET, fsl=^M, home=\036$<2>, ht=\011$<5>,
17100	hts=\E1, if=/usr/share/tabset/std, il1=\EE$<4>, ind=^J,
17101	ip=$<3>,
17102	is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Ed/\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177\Ezz`\E[F\177\EA1*\EZH12,
17103	kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=\E[D, kcud1=\E[B,
17104	kcuf1=\E[C, kcuu1=\E[A, kdch1=\EW, kdl1=\ER, ked=\EY,
17105	kel=\ET, kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r,
17106	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
17107	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
17108	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
17109	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
17110	mc0=\EP, mc4=^T, mc5=^R, nel=\r\n$<3>,
17111	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
17112	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
17113	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
17114	rmacs=\EH^C, rmam=\Ed., rmcup=, rmir=\Er, rmln=\EA11,
17115	rmxon=\Ec20, rs1=\E~!\E~4$<150>, rs2=\EeF$<150>,
17116	rs3=\EwG\Ee($<150>,
17117	sgr=%?%p8%t\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;\EG%{48}%?%p2%p6%|%t%{8}%|%;%?%p1%p3%|%p6%|%t%{4}%|%;%?%p4%t%{2}%|%;%?%p1%p5%|%t%{64}%|%;%?%p7%t%{1}%|%;%c,
17118	sgr0=\E(\EH\003\EG0\EcD, smacs=\EH^B, smam=\Ed/,
17119	smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177,
17120	smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(,
17121	uc=\EG8\EG0, use=adm+sgr,
17122teletec|Teletec Datascreen,
17123	OTbs, am,
17124	cols#80, lines#24,
17125	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^K,
17126	home=^^, ind=^J,
17127# From: Mark Dornfeld <romwa@ucbvax.berkeley.edu>
17128# This description is for the LANPAR Technologies VISION 3220
17129# terminal from 1984/85.  The function key definitions k0-k5 represent the
17130# edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
17131# NEXT SCREEN. The key definitions k6-k9 represent the PF1 to PF4 keys.
17132#
17133# Kenneth Randell <kenr@datametrics.com> writes on 31 Dec 1998:
17134# I had a couple of scopes (3221) like this once where I used to work, around
17135# the 1987 time frame if memory serves me correctly.  These scopes were made
17136# by an outfit called LANPAR Technologies, and were meant to me DEC VT 220
17137# compatible.  The 3220 was a plain text terminal like the VT-220, the 3221
17138# was a like the VT-240 (monochrome with Regis + Sixel graphics), and the 3222
17139# was like the VT-241 (color with Regis + Sixel Graphics).  These terminals
17140# (3221) cost about $1500 each, and one was always broken -- had to be sent
17141# back to the shop for repairs.
17142# The only real advantage these scopes had over the VT-240's were:
17143# 1) They were faster in the Regis display, or at least the ones I did
17144# 2) They had a handy debugging feature where you could split-screen the
17145# scope, the graphics would appear on the top, and the REGIS commands would
17146# appear on the bottom.  I don't remember the VT-240s being able to do that.
17147# I would swear that LANPAR Technologies was in MA someplace, but since I
17148# don't work at the same place anymore, and those terminals and manuals were
17149# long since junked, I cannot be any more sure than that.
17150#
17151# (v3220: removed obsolete ":kn#10:",
17152# I added <rmam>/<smam> based on the init string -- esr)
17153v3220|LANPAR Vision II model 3220/3221/3222,
17154	OTbs, am, mir, xenl,
17155	cols#80, it#8, lines#24,
17156	clear=\E[H\E[J, cub1=^H, cuf1=\E[C,
17157	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
17158	ed=\E[J, el=\E[K, ht=^I, il1=\E[L,
17159	is2=\E>\E[?3l\E[?7h\E[?8h\E[p, kcub1=\E[D, kcud1=\E[B,
17160	kcuf1=\E[C, kcuu1=\E[A, kf0=\E[1~, kf1=\E[2~, kf2=\E[3~,
17161	kf3=\E[4~, kf4=\E[5~, kf5=\E[6~, kf6=\E[OP, kf7=\E[OQ,
17162	kf8=\E[OR, kf9=\E[OS, khome=\E[H, ri=\EM, rmam=\E[?7l,
17163	rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
17164	smam=\E[?7h, smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
17165######## ICH/ICH1 VERSUS RMIR/SMIR
17166#
17167# Some non-curses applications get confused if both ich/ich1 and rmir/smir
17168# are present; the symptom is doubled characters in an update using insert.
17169# These applications are technically correct; in both 4.3BSD termcap and
17170# terminfo, you're not actually supposed to specify both ich/ich1 and rmir/smir
17171# unless the terminal needs both.  To my knowledge, no terminal still in this
17172# file requires both other than the very obsolete dm2500.
17173#
17174# For ncurses-based applications this is not a problem, as ncurses uses
17175# one or the other as appropriate but never mixes the two.  Therefore we
17176# have not corrected entries like `linux' and `xterm' that specify both.
17177# If you see doubled characters from these, use the linux-nic and xterm-nic
17178# entries that suppress ich/ich1.  And upgrade to ncurses!
17179#
17180
17181######## VT100/ANSI/ISO 6429/ECMA-48/PC-TERM TERMINAL STANDARDS
17182#
17183# ANSI X3.64 has been withdrawn and replaced by ECMA-48.  The ISO 6429 and
17184# ECMA-48 standards are said to be almost identical, but are not the same
17185# as X3.64 (though for practical purposes they are close supersets of it).
17186#
17187# You can obtain ECMA-48 for free by sending email to helpdesk@ecma.ch
17188# requesting the standard(s) you want (i.e. ECMA-48, "Control Functions for
17189# Coded Character Sets"), include your snail-mail address, and you should
17190# receive the document in due course.  Don't expect an email acknowledgement.
17191#
17192# Related standards include "X3.4-1977: American National Standard Code for
17193# Information Interchange" (the ASCII standard) and "X3.41.1974:
17194# Code-Extension Techniques for Use with the 7-Bit Coded Character Set of
17195# American National Standard for Information Interchange."  I believe (but
17196# am not certain) that these are effectively identical to ECMA-6 and ECMA-35
17197# respectively.
17198#
17199
17200#### VT100/ANSI/ECMA-48
17201#
17202# ANSI Standard (X3.64) Control Sequences for Video Terminals and Peripherals
17203# and ECMA-48 Control Functions for Coded Character Sets.
17204#
17205# Much of the content of this comment is adapted from a table prepared by
17206# Richard Shuford, based on a 1984 Byte article.  Terminfo correspondences,
17207# discussion of some terminfo-related issues, and updates to capture ECMA-48
17208# have been added.  Control functions described in ECMA-48 only are tagged
17209# with * after their names.
17210#
17211# The table is a complete list of the defined ANSI X3.64/ECMA-48 control
17212# sequences.  In the main table, \E stands for an escape (\033) character,
17213# SPC for space.  Pn stands for a single numeric parameter to be inserted
17214# in decimal ASCII.  Ps stands for a list of such parameters separated by
17215# semicolons.  Parameter meanings for most parametrized sequences are
17216# decribed in the notes.
17217#
17218# Sequence     Sequence                             Parameter   or
17219# Mnemonic     Name              Sequence           Value      Mode   terminfo
17220# -----------------------------------------------------------------------------
17221# APC  Applicatn Program Command \E _                -         Delim  -
17222# BEL  Bell *                    ^G                  -         -      bel
17223# BPH  Break Permitted Here *    \E B                -         *      -
17224# BS   Backpace *                ^H                  -         EF     -
17225# CAN  Cancel *                  ^X                  -         -      -   (A)
17226# CBT  Cursor Backward Tab       \E [ Pn Z           1         eF     cbt
17227# CCH  Cancel Previous Character \E T                -         -      -
17228# CHA  Cursor Horizntal Absolute \E [ Pn G           1         eF     hpa (B)
17229# CHT  Cursor Horizontal Tab     \E [ Pn I           1         eF     tab (C)
17230# CMD  Coding Method Delimiter * \E
17231# CNL  Cursor Next Line          \E [ Pn E           1         eF     nel (D)
17232# CPL  Cursor Preceding Line     \E [ Pn F           1         eF     -
17233# CPR  Cursor Position Report    \E [ Pn ; Pn R      1, 1      -      -   (E)
17234# CSI  Control Sequence Intro    \E [                -         Intro  -
17235# CTC  Cursor Tabulation Control \E [ Ps W           0         eF     -   (F)
17236# CUB  Cursor Backward           \E [ Pn D           1         eF     cub
17237# CUD  Cursor Down               \E [ Pn B           1         eF     cud
17238# CUF  Cursor Forward            \E [ Pn C           1         eF     cuf
17239# CUP  Cursor Position           \E [ Pn ; Pn H      1, 1      eF     cup (G)
17240# CUU  Cursor Up                 \E [ Pn A           1         eF     cuu
17241# CVT  Cursor Vertical Tab       \E [ Pn Y           -         eF     -   (H)
17242# DA   Device Attributes         \E [ Pn c           0         -      -
17243# DAQ  Define Area Qualification \E [ Ps o           0         -      -
17244# DCH  Delete Character          \E [ Pn P           1         eF     dch
17245# DCS  Device Control String     \E P                -         Delim  -
17246# DL   Delete Line               \E [ Pn M           1         eF     dl
17247# DLE  Data Link Escape *        ^P                  -         -      -
17248# DMI  Disable Manual Input      \E \                -         Fs     -
17249# DSR  Device Status Report      \E [ Ps n           0         -      -   (I)
17250# DTA  Dimension Text Area *     \E [ Pn ; Pn SPC T  -         PC     -
17251# EA   Erase in Area             \E [ Ps O           0         eF     -   (J)
17252# ECH  Erase Character           \E [ Pn X           1         eF     ech
17253# ED   Erase in Display          \E [ Ps J           0         eF     ed  (J)
17254# EF   Erase in Field            \E [ Ps N           0         eF     -
17255# EL   Erase in Line             \E [ Ps K           0         eF     el  (J)
17256# EM   End of Medium *           ^Y                  -         -      -
17257# EMI  Enable Manual Input       \E b                          Fs     -
17258# ENQ  Enquire                   ^E                  -         -      -
17259# EOT  End Of Transmission       ^D                  -         *      -
17260# EPA  End of Protected Area     \E W                -         -      -   (K)
17261# ESA  End of Selected Area      \E G                -         -      -
17262# ESC  Escape                    ^[                  -         -      -
17263# ETB  End Transmission Block    ^W                  -         -      -
17264# ETX  End of Text               ^C                  -         -      -
17265# FF   Form Feed                 ^L                  -         -      -
17266# FNK  Function Key *            \E [ Pn SPC W       -         -      -
17267# GCC  Graphic Char Combination* \E [ Pn ; Pn SPC B  -         -      -
17268# FNT  Font Selection            \E [ Pn ; Pn SPC D  0, 0      FE     -
17269# GSM  Graphic Size Modify       \E [ Pn ; Pn SPC B  100, 100  FE     -   (L)
17270# GSS  Graphic Size Selection    \E [ Pn SPC C       none      FE     -
17271# HPA  Horz Position Absolute    \E [ Pn `           1         FE     -   (B)
17272# HPB  Char Position Backward    \E [ j              1         FE     -
17273# HPR  Horz Position Relative    \E [ Pn a           1         FE     -   (M)
17274# HT   Horizontal Tab *          ^I                  -         FE     -   (N)
17275# HTJ  Horz Tab w/Justification  \E I                -         FE     -
17276# HTS  Horizontal Tab Set        \E H                -         FE     hts
17277# HVP  Horz & Vertical Position  \E [ Pn ; Pn f      1, 1      FE     -   (G)
17278# ICH  Insert Character          \E [ Pn @           1         eF     ich
17279# IDCS ID Device Control String  \E [ SPC O          -         *      -
17280# IGS  ID Graphic Subrepertoire  \E [ SPC M          -         *      -
17281# IL   Insert Line               \E [ Pn L           1         eF     il
17282# IND  Index                     \E D                -         FE     -
17283# INT  Interrupt                 \E a                -         Fs     -
17284# JFY  Justify                   \E [ Ps SPC F       0         FE     -
17285# IS1  Info Separator #1 *       ^_                  -         *      -
17286# IS2  Info Separator #1 *       ^^                  -         *      -
17287# IS3  Info Separator #1 *       ^]                  -         *      -
17288# IS4  Info Separator #1 *       ^\                  -         *      -
17289# LF   Line Feed                 ^J                  -         -      -
17290# LS1R Locking Shift Right 1 *   \E ~                -         -      -
17291# LS2  Locking Shift 2 *         \E n                -         -      -
17292# LS2R Locking Shift Right 2 *   \E }                -         -      -
17293# LS3  Locking Shift 3 *         \E o                -         -      -
17294# LS3R Locking Shift Right 3 *   \E |                -         -      -
17295# MC   Media Copy                \E [ Ps i           0         -      -   (S)
17296# MW   Message Waiting           \E U                -         -      -
17297# NAK  Negative Acknowledge *    ^U                  -         *      -
17298# NBH  No Break Here *           \E C                -         -      -
17299# NEL  Next Line                 \E E                -         FE     nel (D)
17300# NP   Next Page                 \E [ Pn U           1         eF     -
17301# NUL  Null *                    ^@                  -         -      -
17302# OSC  Operating System Command  \E ]                -         Delim  -
17303# PEC  Pres. Expand/Contract *   \E Pn SPC Z         0         -      -
17304# PFS  Page Format Selection *   \E Pn SPC J         0         -      -
17305# PLD  Partial Line Down         \E K                -         FE     -   (T)
17306# PLU  Partial Line Up           \E L                -         FE     -   (U)
17307# PM   Privacy Message           \E ^                -         Delim  -
17308# PP   Preceding Page            \E [ Pn V           1         eF     -
17309# PPA  Page Position Absolute *  \E [ Pn SPC P       1         FE     -
17310# PPB  Page Position Backward *  \E [ Pn SPC R       1         FE     -
17311# PPR  Page Position Forward *   \E [ Pn SPC Q       1         FE     -
17312# PTX  Parallel Texts *          \E [ \              -         -      -
17313# PU1  Private Use 1             \E Q                -         -      -
17314# PU2  Private Use 2             \E R                -         -      -
17315# QUAD Typographic Quadding      \E [ Ps SPC H       0         FE     -
17316# REP  Repeat Char or Control    \E [ Pn b           1         -      rep
17317# RI   Reverse Index             \E M                -         FE     -   (V)
17318# RIS  Reset to Initial State    \E c                -         Fs     -
17319# RM   Reset Mode *              \E [ Ps l           -         -      -   (W)
17320# SACS Set Add. Char. Sep. *     \E [ Pn SPC /       0         -      -
17321# SAPV Sel. Alt. Present. Var. * \E [ Ps SPC ]       0         -      -   (X)
17322# SCI  Single-Char Introducer    \E Z                -         -      -
17323# SCO  Sel. Char. Orientation *  \E [ Pn ; Pn SPC k  -         -      -
17324# SCS  Set Char. Spacing *       \E [ Pn SPC g       -         -      -
17325# SD   Scroll Down               \E [ Pn T           1         eF     rin
17326# SDS  Start Directed String *   \E [ Pn ]           1         -      -
17327# SEE  Select Editing Extent     \E [ Ps Q           0         -      -   (Y)
17328# SEF  Sheet Eject & Feed *      \E [ Ps ; Ps SPC Y  0,0       -      -
17329# SGR  Select Graphic Rendition  \E [ Ps m           0         FE     sgr (O)
17330# SHS  Select Char. Spacing *    \E [ Ps SPC K       0         -      -
17331# SI   Shift In                  ^O                  -         -      -   (P)
17332# SIMD Sel. Imp. Move Direct. *  \E [ Ps ^           -         -      -
17333# SL   Scroll Left               \E [ Pn SPC @       1         eF     -
17334# SLH  Set Line Home *           \E [ Pn SPC U       -         -      -
17335# SLL  Set Line Limit *          \E [ Pn SPC V       -         -      -
17336# SLS  Set Line Spacing *        \E [ Pn SPC h       -         -      -
17337# SM   Select Mode               \E [ Ps h           none      -      -   (W)
17338# SO   Shift Out                 ^N                  -         -      -   (Q)
17339# SOH  Start Of Heading *        ^A                  -         -      -
17340# SOS  Start of String *         \E X                -         -      -
17341# SPA  Start of Protected Area   \E V                -         -      -   (Z)
17342# SPD  Select Pres. Direction *  \E [ Ps ; Ps SPC S  0,0       -      -
17343# SPH  Set Page Home *           \E [ Ps SPC G       -         -      -
17344# SPI  Spacing Increment         \E [ Pn ; Pn SPC G  none      FE     -
17345# SPL  Set Page Limit *          \E [ Ps SPC j       -         -      -
17346# SPQR Set Pr. Qual. & Rapid. *  \E [ Ps SPC X       0         -      -
17347# SR   Scroll Right              \E [ Pn SPC A       1         eF     -
17348# SRCS Set Reduced Char. Sep. *  \E [ Pn SPC f       0         -      -
17349# SRS  Start Reversed String *   \E [ Ps [           0         -      -
17350# SSA  Start of Selected Area    \E F                -         -      -
17351# SSU  Select Size Unit *        \E [ Pn SPC I       0         -      -
17352# SSW  Set Space Width *         \E [ Pn SPC [       none      -      -
17353# SS2  Single Shift 2 (G2 set)   \E N                -         Intro  -
17354# SS3  Single Shift 3 (G3 set)   \E O                -         Intro  -
17355# ST   String Terminator         \E \                -         Delim  -
17356# STAB Selective Tabulation *    \E [ Pn SPC ^       -         -      -
17357# STS  Set Transmit State        \E S                -         -      -
17358# STX  Start pf Text *           ^B                  -         -      -
17359# SU   Scroll Up                 \E [ Pn S           1         eF     indn
17360# SUB  Substitute *              ^Z                  -         -      -
17361# SVS  Select Line Spacing *     \E [ Pn SPC \       1         -      -
17362# SYN  Synchronous Idle *        ^F                  -         -      -
17363# TAC  Tabul. Aligned Centered * \E [ Pn SPC b       -         -      -
17364# TALE Tabul. Al. Leading Edge * \E [ Pn SPC a       -         -      -
17365# TATE Tabul. Al. Trailing Edge* \E [ Pn SPC `       -         -      -
17366# TBC  Tab Clear                 \E [ Ps g           0         FE     tbc
17367# TCC  Tabul. Centered on Char * \E [ Pn SPC c       -         -      -
17368# TSR  Tabulation Stop Remove  * \E [ Pn SPC d       -         FE     -
17369# TSS  Thin Space Specification  \E [ Pn SC E        none      FE     -
17370# VPA  Vert. Position Absolute   \E [ Pn d           1         FE     vpa
17371# VPB  Line Position Backward *  \E [ Pn k           1         FE     -
17372# VPR  Vert. Position Relative   \E [ Pn e           1         FE     -   (R)
17373# VT   Vertical Tabulation *     ^K                  -         FE     -
17374# VTS  Vertical Tabulation Set   \E J                -         FE     -
17375#
17376# ---------------------------------------------------------------------------
17377#
17378# Notes:
17379#
17380# Some control characters are listed in the ECMA-48 standard without
17381# being assigned functions relevant to terminal control there (they
17382# referred to other standards such as ISO 1745 or ECMA-35).  They are listed
17383# here anyway for completeness.
17384#
17385# (A) ECMA-48 calls this "CancelCharacter" but retains the CCH abbreviation.
17386#
17387# (B) There seems to be some confusion abroad between CHA and HPA.  Most
17388# `ANSI' terminals accept the CHA sequence, not the HPA. but terminfo calls
17389# the capability (hpa).  ECMA-48 calls this "Cursor Character Absolute" but
17390# preserved the CHA abbreviation.
17391#
17392# (C) CHT corresponds to terminfo (tab).  Usually it has the value ^I.
17393# Occasionally (as on, for example, certain HP terminals) this has the HTJ
17394# value.  ECMA-48 calls this "Cursor Forward Tabulation" but preserved the
17395# CHT abbreviation.
17396#
17397# (D) terminfo (nel) is usually \r\n rather than ANSI \EE.
17398#
17399# (E) ECMA-48 calls this "Active Position Report" but preserves the CPR
17400# abbreviation.
17401#
17402# (F) CTC parameter values: 0 = set char tab, 1 = set line tab, 2 = clear
17403# char tab, 3 = clear line tab, 4 = clear all char tabs on current line,
17404# 5 = clear all char tabs, 6 = clear all line tabs.
17405#
17406# (G) CUP and HVP are identical in effect.  Some ANSI.SYS versions accept
17407# HVP, but always allow CUP as an alternate.  ECMA-48 calls HVP "Character
17408# Position Absolute" but retains the HVP abbreviation.
17409#
17410# (H) ECMA calls this "Cursor Line Tabulation" but preserves the CVT
17411# abbreviation.
17412#
17413# (I) DSR parameter values: 0 = ready, 1 = busy, 2 = busy, will send DSR
17414# later, 3 = malfunction, 4 = malfunction, will send DSR later, 5 = request
17415# DSR, 6 = request CPR response.
17416#
17417# (J) ECMA calls ED "Erase In Page". EA/ED/EL parameters: 0 = clear to end,
17418# 1 = clear from beginning, 2 = clear.
17419#
17420# (K) ECMA calls this "End of Guarded Area" but preserves the EPA abbreviation.
17421#
17422# (L) The GSM parameters are vertical and horizontal parameters to scale by.
17423#
17424# (M) Some ANSI.SYS versions accept HPR, but more commonly `ANSI' terminals
17425# use CUF for this function and ignore HPR.  ECMA-48 calls this "Character
17426# Position Relative" but retains the HPR abbreviation.
17427#
17428# (N) ECMA-48 calls this "Character Tabulation" but retains the HT
17429# abbreviation.
17430#
17431# (O) SGR parameter values: 0 = default mode (attributes off), 1 = bold,
17432# 2 = dim, 3 = italicized, 4 = underlined, 5 = slow blink, 6 = fast blink,
17433# 7 = reverse video, 8 = invisible, 9 = crossed-out (marked for deletion),
17434# 10 = primary font, 10 + n (n in 1..9) = nth alternative font, 20 = Fraktur,
17435# 21 = double underline, 22 = turn off 2, 23 = turn off 3, 24 = turn off 4,
17436# 25 = turn off 5, 26 = proportional spacing, 27 = turn off 7, 28 = turn off
17437# 8, 29 = turn off 9, 30 = black fg, 31 = red fg, 32 = green fg, 33 = yellow
17438# fg, 34 = blue fg, 35 = magenta fg, 36 = cyan fg, 37 = white fg, 38 = set
17439# fg color as in CCIT T.416, 39 = set default fg color, 40 = black bg
17440# 41 = red bg, 42 = green bg, 43 = yellow bg, 44 = blue bg, 45 = magenta bg,
17441# 46 = cyan bg, 47 = white bg, 48 = set bg color as in CCIT T.416, 39 = set
17442# default bg color, 50 = turn off 26, 51 = framed, 52 = encircled, 53 =
17443# overlined, 54 = turn off 51 & 52, 55 = not overlined, 56-59 = reserved,
17444# 61-65 = variable highlights for ideograms.
17445#
17446# (P) SI is also called LSO, Locking Shift Zero.
17447#
17448# (Q) SI is also called LS1, Locking Shift One.
17449#
17450# (R) Some ANSI.SYS versions accept VPR, but more commonly `ANSI' terminals
17451# use CUD for this function and ignore VPR.  ECMA calls it `Line Position
17452# Absolute' but retains the VPA abbreviation.
17453#
17454# (S) MC parameters: 0 = start xfer to primary aux device, 1 = start xfer from
17455# primary aux device, 2 = start xfer to secondary aux device, 3 = start xfer
17456# from secondary aux device, 4 = stop relay to primary aux device, 5 =
17457# start relay to primary aux device, 6 = stop relay to secondary aux device,
17458# 7 = start relay to secondary aux device.
17459#
17460# (T) ECMA-48 calls this "Partial Line Forward" but retains the PLD
17461# abbreviation.
17462#
17463# (U) ECMA-48 calls this "Partial Line Backward" but retains the PLD
17464# abbreviation.
17465#
17466# (V) ECMA-48 calls this "Reverse Line Feed" but retains the RI abbreviation.
17467#
17468# (W) RM/SM modes are as follows: 1 = Guarder Area Transfer Mode (GATM),
17469# 2 = Keyboard Action Mode (KAM), 3 = Control Representation Mode (CRM),
17470# 4 = Insertion Replacement Mode, 5 = Status Report Transfer Mode (SRTM),
17471# 6 = Erasure Mode (ERM), 7 = Line Editing Mode (LEM), 8 = Bi-Directional
17472# Support Mode (BDSM), 9 = Device Component Select Mode (DCSM),
17473# 10 = Character Editing Mode (HEM), 11 = Positioning Unit Mode (PUM),
17474# 12 = Send/Receive Mode, 13 = Format Effector Action Mode (FEAM),
17475# 14 = Format Effector Transfer Mode (FETM), 15 = Multiple Area Transfer
17476# Mode (MATM), 16 = Transfer Termination Mode, 17 = Selected Area Transfer
17477# Mode, 18 = Tabulation Stop Mode, 19 = Editing Boundary Mode, 20 = Line Feed
17478# New Line Mode (LF/NL), Graphic Rendition Combination Mode (GRCM), 22 =
17479# Zero Default Mode (ZDM).  The EBM and LF/NL modes have actually been removed
17480# from ECMA-48's 5th edition but are listed here for reference.
17481#
17482# (X) Select Alternate Presentation Variants is used only for non-Latin
17483# alphabets.
17484#
17485# (Y) "Select Editing Extent" (SEE) was ANSI "Select Edit Extent Mode" (SEM).
17486#
17487# (Z) ECMA-48 calls this "Start of Guarded Area" but retains the SPA
17488# abbreviation.
17489#
17490# ---------------------------------------------------------------------------
17491#
17492# Abbreviations:
17493#
17494# Intro  an Introducer of some kind of defined sequence; the normal 7-bit
17495#        X3.64 Control Sequence Introducer is the two characters "Escape ["
17496#
17497# Delim  a Delimiter
17498#
17499# x/y    identifies a character by position in the ASCII table (column/row)
17500#
17501# eF     editor function (see explanation)
17502#
17503# FE     format effector (see explanation)
17504#
17505# F      is a Final character in
17506#             an Escape sequence (F from 3/0 to 7/14 in the ASCII table)
17507#             a control sequence (F from 4/0 to 7/14)
17508#
17509# Gs     is a graphic character appearing in strings (Gs ranges from
17510#        2/0 to 7/14) in the ASCII table
17511#
17512# Ce     is a control represented as a single bit combination in the C1 set
17513#        of controls in an 8-bit character set
17514#
17515# C0     the familiar set of 7-bit ASCII control characters
17516#
17517# C1     roughly, the set of control chars available only in 8-bit systems.
17518#        This is too complicated to explain fully here, so read Jim Fleming's
17519#        article in the February 1983 BYTE, especially pages 214 through 224.
17520#
17521# Fe     is a Final character of a 2-character Escape sequence that has an
17522#        equivalent representation in an 8-bit environment as a Ce-type
17523#        (Fe ranges from 4/0 to 5/15)
17524#
17525# Fs     is a Final character of a 2-character Escape sequence that is
17526#        standardized internationally with identical representation in 7-bit
17527#        and 8-bit environments and is independent of the currently
17528#        designated C0 and C1 control sets (Fs ranges from 6/0 to 7/14)
17529#
17530# I      is an Intermediate character from 2/0 to 2/15 (inclusive) in the
17531#        ASCII table
17532#
17533# P      is a parameter character from 3/0 to 3/15 (inclusive) in the ASCII
17534#        table
17535#
17536# Pn     is a numeric parameter in a control sequence, a string of zero or
17537#        more characters ranging from 3/0 to 3/9 in the ASCII table
17538#
17539# Ps     is a variable number of selective parameters in a control sequence
17540#        with each selective parameter separated from the other by the code
17541#        3/11 (which usually represents a semicolon); Ps ranges from
17542#        3/0 to 3/9 and includes 3/11
17543#
17544# *      Not relevant to terminal control, listed for completeness only.
17545#
17546# Format Effectors versus Editor Functions
17547#
17548# A format effector specifies how following output is to be displayed.
17549# An editor function allows you to modify the display.  Informally
17550# format effectors may be destructive; format effectors should not be.
17551#
17552# For instance, a format effector that moves the "active position" (the
17553# cursor or equivalent) one space to the left would be useful when you want to
17554# create an overstrike, a compound character made of two standard characters
17555# overlaid. Control-H, the Backspace character, is actually supposed to be a
17556# format effector, so you can do this. But many systems use it in a
17557# nonstandard fashion, as an editor function, deleting the character to the
17558# left of the cursor and moving the cursor left. When Control-H is assumed to
17559# be an editor function, you cannot predict whether its use will create an
17560# overstrike unless you also know whether the output device is in an "insert
17561# mode" or an "overwrite mode". When Control-H is used as a format effector,
17562# its effect can always be predicted. The familiar characters carriage
17563# return, linefeed, formfeed, etc., are defined as format effectors.
17564#
17565# NOTES ON THE DEC VT100 IMPLEMENTATION
17566#
17567# Control sequences implemented in the VT100 are as follows:
17568#
17569#      CPR, CUB, CUD, CUF, CUP, CUU, DA, DSR, ED, EL, HTS, HVP, IND,
17570#      LNM, NEL, RI, RIS, RM, SGR, SM, TBC
17571#
17572# plus several private DEC commands.
17573#
17574# Erasing parts of the display (EL and ED) in the VT100 is performed thus:
17575#
17576#      Erase from cursor to end of line           Esc [ 0 K    or Esc [ K
17577#      Erase from beginning of line to cursor     Esc [ 1 K
17578#      Erase line containing cursor               Esc [ 2 K
17579#      Erase from cursor to end of screen         Esc [ 0 J    or Esc [ J
17580#      Erase from beginning of screen to cursor   Esc [ 1 J
17581#      Erase entire screen                        Esc [ 2 J
17582#
17583# Some brain-damaged terminal/emulators respond to Esc [ J as if it were
17584# Esc [ 2 J, but this is wrong; the default is 0.
17585#
17586# The VT100 responds to receiving the DA (Device Attributes) control
17587#
17588#      Esc [ c    (or Esc [ 0 c)
17589#
17590# by transmitting the sequence
17591#
17592#      Esc [ ? l ; Ps c
17593#
17594# where Ps is a character that describes installed options.
17595#
17596# The VT100's cursor location can be read with the DSR (Device Status
17597# Report) control
17598#
17599#      Esc [ 6 n
17600#
17601# The VT100 reports by transmitting the CPR sequence
17602#
17603#      Esc [ Pl ; Pc R
17604#
17605# where Pl is the line number and Pc is the column number (in decimal).
17606#
17607# The specification for the DEC VT100 is document EK-VT100-UG-003.
17608
17609#### ANSI.SYS
17610#
17611# Here is a description of the color and attribute controls supported in the
17612# the ANSI.SYS driver under MS-DOS.  Most console drivers and ANSI
17613# terminal emulators for Intel boxes obey these.  They are a proper subset
17614# of the ECMA-48 escapes.
17615#
17616# 0	all attributes off
17617# 1	foreground bright
17618# 4	underscore on
17619# 5	blink on/background bright (not reliable with brown)
17620# 7	reverse-video
17621# 8	set blank (non-display)
17622# 10	set primary font
17623# 11	set first alternate font (on PCs, display ROM characters 1-31)
17624# 12	set second alternate font (on PCs, display IBM high-half chars)
17625#
17626#			Color attribute sets
17627# 3n	set foreground color       / 0=black, 1=red,     2=green, 3=brown,
17628# 4n	set background color       \ 4=blue,  5=magenta, 6=cyan,  7=white
17629# Bright black becomes gray.  Bright brown becomes yellow,
17630# These coincide with the prescriptions of the ISO 6429/ECMA-48 standard.
17631#
17632# * If the 5 attribute is on and you set a background color (40-47) it is
17633#   supposed to enable bright background.
17634#
17635# * Many VGA cards (such as the Paradise and compatibles) do the wrong thing
17636#   when you try to set a "bright brown" (yellow) background with attribute
17637#   5 (you get a blinking yellow foreground instead).  A few displays
17638#   (including the System V console) support an attribute 6 that undoes this
17639#   braindamage (this is required by iBCS2).
17640#
17641# * Some older versions of ANSI.SYS have a bug that causes thems to require
17642#   ESC [ Pn k as EL rather than the ANSI ESC [ Pn K.  (This is not ECMA-48
17643#   compatible.)
17644
17645#### Intel Binary Compatibility Standard
17646#
17647# For comparison, here are the capabilities implied by the Intel Binary
17648# Compatibility Standard for UNIX systems (Intel order number 468366-001).
17649# These recommendations are optional.  IBCS2 allows the leading escape to
17650# be either the 7-bit \E[ or 8-bit \0233 introducer, in accordance with
17651# the ANSI X.364/ISO 6429/ECMA-48 standard.  Here are the iBCS2 capabilities
17652# (as described in figure 9-3 of the standard).  Those expressed in the ibcs2
17653# terminfo entry are followed with the corresponding capability in parens:
17654#
17655#	CSI <n>k		disable (n=0) or enable (n=1) keyclick
17656#	CSI 2h   		lock keyboard
17657#	CSI 2i  		send screen as input
17658#	CSI 2l  		unlock keyboard
17659#	CSI 6m  		enable background color intensity
17660#	CSI <0-2>c		reserved
17661#	CSI <0-59>m		select graphic rendition
17662#	CSI <n>;<m>H	(cup)	cursor to line n and column m
17663#	CSI <n>;<m>f		cursor to line n and column m
17664#	CSI <n>@	(ich)	insert characters
17665#	CSI <n>A	(cuu)	cursor up n lines
17666#	CSI <n>B	(cud)	cursor down n lines
17667#	CSI <n>C	(cuu)	cursor right n characters
17668#	CSI <n>D	(cud)	cursor left n characters
17669#	CSI <n>E		cursor down n lines and in first column
17670#	CSI <n>F		cursor up n lines and in first column
17671#	CSI <n>G	(hpa)	position cursor at column n-1
17672#	CSI <n>J	(ed)	erase in display
17673#	CSI <n>K	(el)	erase in line
17674#	CSI <n>L	(il)	insert line(s)
17675#	CSI <n>P	(dch)	delete characters
17676#	CSI <n>S	(indn)	scroll up n lines
17677#	CSI <n>T	(rin)	scroll down n lines
17678#	CSI <n>X	(ech)	erase characters
17679#	CSI <n>Z	(cbt)	back up n tab stops
17680#	CSI <n>`		cursor to column n on line
17681#	CSI <n>a	(cuu)	cursor right n characters
17682#	CSI <n>d	(vpa)	cursor to line n
17683#	CSI <n>e		cursor down n lines and in first column
17684#	CSI <n>g	(cbt)	clear all tabs
17685#	CSI <n>z		make virtual terminal n active
17686#	CSI ?7h 	(smam)	turn automargin on
17687#	CSI ?7l 	(rmam)	turn automargin off
17688#	CSI s     		save cursor position
17689#	CSI u   		restore cursor position to saved value
17690#	CSI =<c>A		set overscan color
17691#	CSI =<c>F		set normal foreground color
17692#	CSI =<c>G		set normal background color
17693#	CSI =<c>H		set reverse foreground color
17694#	CSI =<c>I		set reverse foreground color
17695#	CSI =<c>J		set graphic foreground color
17696#	CSI =<c>K		set graphic foreground color
17697#	CSI =<n>g	(dispc) display n from alternate graphics character set
17698#	CSI =<p>;<d>B		set bell parameters
17699#	CSI =<s>;<e>C		set cursor parameters
17700#	CSI =<x>D		enable/disable intensity of background color
17701#	CSI =<x>E		set/clear blink vs. bold background
17702#	CSI 7     	(sc)	(sc) save cursor position
17703#	CSI 8   	(rc)	(rc) restore cursor position to saved value
17704#	CSI H		(hts)	(hts) set tab stop
17705#	CSI Q<n><string>	define function key string
17706#				(string must begin and end with delimiter char)
17707#	CSI c   	(clear) clear screen
17708#
17709# The lack of any specification for attributes in SGR (among other things)
17710# makes this a wretchedly weak standard. The table above is literally
17711# everything iBSC2 has to say about terminal escape sequences; there is
17712# no further discussion of their meaning or how to set the parameters
17713# in these sequences at all.
17714#
17715
17716######## NONSTANDARD CAPABILITY TRANSLATIONS USED IN THIS FILE
17717#
17718# The historical termcap file entries were written primarily in 4.4BSD termcap.
17719# The 4.4BSD termcap set was substantially larger than the original 4.1BSD set,
17720# with the extension names chosen for compatibility with the termcap names
17721# assigned in System V terminfo.  There are some variant extension sets out
17722# there.  We try to describe them here.
17723#
17724# XENIX extensions:
17725#
17726# The XENIX extensions include a set of function-key capabilities as follows:
17727#
17728#       code	XENIX variable name	terminfo name	name clashes?
17729#	----	-------------------	-------------	-----------------------
17730#	CL	key_char_left
17731#	CR	key_char_right
17732#	CW	key_change_window			create_window
17733#	EN	key_end          	kend
17734#	HM	key_home		khome
17735#	HP	??
17736#	LD	key_delete_line  	kdl1
17737#	LF	key_linefeed     			label_off
17738#	NU	key_next_unlocked_cell
17739#	PD	key_page_down   	knp
17740#	PL	??
17741#	PN	start_print		mc5
17742#	PR	??
17743#	PS	stop_print		mc4
17744#	PU	key_page_up     	kpp		pulse
17745#	RC	key_recalc				remove_clock
17746#	RF	key_toggle_ref				req_for_input
17747#	RT	key_return      	kent
17748#	UP	key_up_arrow           	kcuu1   	parm_up_cursor
17749#	WL	key_word_left
17750#	WR	key_word_right
17751#
17752# The XENIX extensions also include the following character-set and highlight
17753# capabilities:
17754#
17755#	XENIX	terminfo	function
17756#	-----	--------	------------------------------
17757#	GS	smacs		start alternate character set
17758#	GE	rmacs		end alternate character set
17759#	GG			:as:/:ae: glitch (analogous to :sg:/:ug:)
17760#	bo	blink		begin blink (not used in /etc/termcap)
17761#	be			end blink (not used in /etc/termcap)
17762#	bb			blink glitch  (not used in /etc/termcap)
17763#	it	dim		begin dim (not used in /etc/termcap)
17764#	ie			end dim (not used in /etc/termcap)
17765#	ig			dim glitch  (not used in /etc/termcap)
17766#
17767# Finally, XENIX also used the following forms-drawing capabilities:
17768#
17769#	single	double  type             ASCII approximation
17770#	------	------	-------------    -------------------
17771#	GV	Gv	vertical line             |
17772#	GH	Gv	horizontal line       -   _
17773#	G1	G5	top right corner       _   |
17774#	G2	G6	top left corner       |
17775#	G3	G7	bottom left corner         |_
17776#	G4	G8	bottom right corner   _|
17777#	GD	Gd	down-tick character        T
17778#	GL	Gl	left-tick character   -|
17779#	GR	Gr	right-tick character       |-
17780#	GC	Gc	middle intersection   -|-
17781#	GU	Gu	up-tick character          _|_
17782#
17783# These were invented to take advantage of the IBM PC ROM character set.  One
17784# can compose an acsc string from the single-width characters as follows
17785#	"j{G4}k{G1}l{G2}m{G3}q{GH}x{GV}t{GR}u{GL}v{GU}w{GD}n{GC}"
17786# When translating a termcap file, ncurses tic will do this automatically.
17787# The double forms characters don't fit the SVr4 terminfo model.
17788#
17789# AT&T Extensions:
17790#
17791# The old AT&T 5410, 5420, 5425, pc6300plus, 610, and s4 entries used a set of
17792# nonstandard capabilities.  Its signature is the KM capability, used to name
17793# some sort of keymap file.  EE, BO, CI, CV, XS, DS, FL and FE are in this
17794# set.  Comments in the original, and a little cross-checking with other AT&T
17795# documentation, seem to establish that BO=:mr: (start reverse video), DS=:mh:
17796# (start dim), XS=:mk: (secure/invisible mode), EE=:me: (end highlights),
17797# FL=:LO: (enable soft labels), FE=:LF: (disable soft labels), CI=:vi: (make
17798# cursor invisible), and CV=:ve: (make cursor normal).
17799#
17800# HP Extensions
17801#
17802# The HP library (as of mid-1995, their term.h file version 70.1) appears to
17803# have the System V capabilities up to SVr1 level.  After that, it supports
17804# two nonstandard caps meml and memu corresponding to the old termcap :ml:,
17805# :mu: capabilities.  After that, it supports caps plab_norm, label_on,
17806# label_off, and key_f11..key_f63 capabilities like SVr4's.  This makes the
17807# HP binary format incompatible with SVr4's.
17808#
17809# IBM Extensions
17810#
17811# There is a set of nonstandard terminfos used by IBM's AIX operating system.
17812# The AIX terminfo library diverged from SVr1 terminfo, and replaces all
17813# capabilities following prtr_non with the following special capabilties:
17814# box[12], batt[12], colb[0123456789], colf[0123456789], f[01234567], kbtab,
17815# kdo, kcmd, kcpn, kend, khlp, knl, knpn, kppn, kppn, kquit, ksel, kscl, kscr,
17816# ktab, kmpf[123456789], apstr, ksf1..ksf10, kf11...kf63, kact, topl, btml,
17817# rvert, lvert.   Some of these are identical to XPG4/SVr4 equivalents:
17818# kcmd, kend, khlp, and kf11...kf63.  Two others (kbtab and ksel) can be
17819# renamed (to kcbt and kslt).  The places in the box[12] capabilities
17820# correspond to acsc chars, here is the mapping:
17821#
17822#	box1[0]  = ACS_ULCORNER
17823#	box1[1]  = ACS_HLINE
17824#	box1[2]  = ACS_URCORNER
17825#	box1[3]  = ACS_VLINE
17826#	box1[4]  = ACS_LRCORNER
17827#	box1[5]  = ACS_LLCORNER
17828#	box1[6]  = ACS_TTEE
17829#	box1[7]  = ACS_RTEE
17830#	box1[8]  = ACS_BTEE
17831#	box1[9]  = ACS_LTEE
17832#	box1[10] = ACS_PLUS
17833#
17834# The box2 characters are the double-line versions of these forms graphics.
17835# The AIX binary terminfo format is incompatible with SVr4's.
17836#
17837# Iris console extensions:
17838#
17839# HS is half-intensity start; HE is half-intensity end
17840# CT is color terminal type (for Curses & rogue)
17841# CP is color change escape sequence
17842# CZ are color names (for Curses & rogue)
17843#
17844# The ncurses tic utility recognizes HS as an alias for mh <dim>.
17845#
17846# TC Extensions:
17847#
17848# There is a set of extended termcaps associated with something
17849# called the "Terminal Control" or TC package created by MainStream Systems,
17850# Winfield Kansas.  This one also uses GS/GE for as/ae, and also uses
17851# CF for civis and CO for cvvis.  Finally, they define a boolean :ct:
17852# that flags color terminals.
17853#
17854######## CHANGE HISTORY
17855#
17856# The last /etc/termcap version maintained by John Kunze was 8.3, dated 8/5/94.
17857# Releases 9 and up are maintained by Eric S. Raymond as part of the ncurses
17858# project.
17859#
17860# This file contains all the capability information present in John Kunze's
17861# last version of the termcap master file, except as noted in the change
17862# comments at end of file.  Some information about very ancient obsolete
17863# capabilities has been moved to comments.  Some all-numeric names of older
17864# terminals have been retired.
17865#
17866# I changed :MT: to :km: (the 4.4BSD name) everywhere.  I commented out some
17867# capabilities (EP, dF, dT, dV, kn, ma, ml, mu, xr, xx) that are no longer
17868# used by BSD curses.
17869#
17870# The 9.1.0 version of this file was translated from my lightly-edited copy of
17871# 8.3, then mechanically checked against 8.3 using Emacs Lisp code written for
17872# the purpose.  Unless the ncurses tic implementation and the Lisp code were
17873# making perfectly synchronized mistakes which I then failed to catch by
17874# eyeball, the translation was correct and perfectly information-preserving.
17875#
17876# Major version number bumps correspond to major version changes in ncurses.
17877#
17878# Here is a log of the changes since then:
17879#
17880# 9.1.0 (Wed Feb  1 04:50:32 EST 1995):
17881#	* First terminfo master translated from 8.3.
17882# 9.2.0 (Wed Feb  1 12:21:45 EST 1995):
17883#	* Replaced Wyse entries with updated entries supplied by vendor.
17884#
17885# 9.3.0 (Mon Feb  6 19:14:40 EST 1995):
17886#	* Added contact & status info from G. Clark Brown <clark@sssi.com>.
17887# 9.3.1 (Tue Feb  7 12:00:24 EST 1995):
17888#	* Better XENIX keycap translation.  Describe TC termcaps.
17889#	* Contact and history info supplied by Qume.
17890# 9.3.2 (Sat Feb 11 23:40:02 EST 1995):
17891#	* Raided the Shuford FTP site for recent termcaps/terminfos.
17892#	* Added information on X3.64 and VT100 standard escape sequences.
17893# 9.3.3 (Mon Feb 13 12:26:15 EST 1995):
17894#	* Added a correct X11R6 xterm entry.
17895#	* Fixed terminfo translations of padding.
17896# 9.3.4 (Wed Feb 22 19:27:34 EST 1995):
17897#	* Added correct acsc/smacs/rmacs strings for vt100 and xterm.
17898#	* Added u6/u7/u8/u9 capabilities.
17899#	* Added PCVT entry.
17900# 9.3.5 (Thu Feb 23 09:37:12 EST 1995):
17901#	* Emacs uses :so:, not :mr:, for its mode line.  Fix linux entry
17902#	  to use reverse-video standout so Emacs will look right.
17903#	* Added el1 capability to ansi.
17904#	* Added smacs/rmacs to ansi.sys.
17905#
17906# 9.4.0 (Sat Feb 25 16:43:25 EST 1995):
17907#	* New mt70 entry.
17908#	* Added COPYRIGHTS AND OTHER DELUSIONS.
17909#	* Added AT&T 23xx & 500/513, vt220 and vt420, opus3n1+, netronics
17910#	  smartvid & smarterm, ampex 175 & 219 & 232,
17911#	  env230, falco ts100, fluke, intertube, superbrain, ncr7901, vic20,
17912#	  ozzie, trs200, tr600, Tandy & Texas Instruments VDTs, intext2,
17913#	  screwpoint, fviewpoint, Contel Business Systems, Datamedia Colorscan,
17914#	  adm36, mime314, ergo4000, ca22851.  Replaced att7300, esprit, dd5500.
17915#	* Replaced the Perkin-Elmer entries with vendor's official ones.
17916#	* Restored the old minimal-ansi entry, luna needs it.
17917#	* Fixed some incorrect ip and proportional-padding translations.
17918# 9.4.1 (Mon Feb 27 14:18:33 EST 1995):
17919#	* Fix linux & AT386 sgr strings to do A_ALTCHARSET turnoff correctly.
17920#	* Make the xterm entry 65 lines again; create xterm25 and xterm24
17921#	  to force a particular height.
17922#	* Added beehive4 and reorganized other Harris entries.
17923# 9.4.2 (Thu Mar  9 01:45:44 EST 1995):
17924#	* Merged in DEC's official entries for its terminals.  The only old
17925#	  entry I kept was Doug Gwyn's alternate vt100 (as vt100-avo).
17926#	* Replaced the translated BBN Bitgraph entries with purpose-built
17927#	  ones from AT&T's SVr3.
17928#	* Replaced the AT&T entries with AT&T's official terminfos.
17929#	* Added teleray 16, vc415, cops10.
17930#	* Merged in many individual capabilities from SCO terminfo files.
17931# 9.4.3 (Mon Mar 13 02:37:53 EST 1995):
17932#	* Typo fixes.
17933#	* Change linux entry so A_PROTECT enables IBM-PC ROM characters.
17934# 9.4.4 (Mon Mar 27 12:32:35 EST 1995):
17935#	* Added tty35, Ann Arbor Guru series. vi300 and 550, cg7900, tvi803,
17936#	  pt210, ibm3164, IBM System 1, ctrm, Tymshare scanset, dt200, adm21,
17937#	  simterm, citoh and variants.
17938#	* Replaced sol entry with sol1 and sol2.
17939#	* Replaced Qume QVT and Freedom-series entries with purpose-built
17940#	  terminfo entries.
17941#	* Enhanced vt220, tvi910, tvi924, hpterm, hp2645, adm42, tek
17942#	  and dg200 entries using caps from from SCO.
17943#	* Added the usual set of function-key mappings to ANSI entry.
17944#	* Corrected xterm's function-key capabilities.
17945# 9.4.5 (Tue Mar 28 14:27:49 EST 1995):
17946#	* Fix in xterm entry, cub and cud are not reliable under X11R6.
17947# 9.4.6 (Thu Mar 30 14:52:15 EST 1995):
17948#	* Fix in xterm entry, get the arrow keys right.
17949#	* Change some \0 escapes to \200.
17950# 9.4.7 (Tue Apr  4 11:27:11 EDT 1995)
17951#	* Added apple (Videx card), adm1a, oadm31.
17952#	* Fixed malformed ampex csr.
17953#	* Fixed act4, cyb110; they had old-style prefix padding left in.
17954#	* Changed mandatory to advisory padding in many entries.
17955#	* Replaced HP entries up to hpsub with purpose-built ones.
17956#	* Blank rmir/smir/rmdc/smdc capabilities removed.
17957#	* Small fixes merged in from SCO entries for lpr, fos, tvi910+, tvi924.
17958# 9.4.8 (Fri Apr  7 09:36:34 EDT 199):
17959#	* Replaced the Ann Arbor entries with SCO's, the init strings are
17960#	  more efficient (but the entries otherwise identical).
17961#	* Added dg211 from Shuford archive.
17962#	* Added synertek, apple-soroc, ibmpc, pc-venix, pc-coherent, xtalk,
17963#	  adm42-nl, pc52, gs6300, xerox820, uts30.
17964#	* Pull SCO's padding into vi200 entry.
17965#	* Improved capabilities for tvi4107 and other Televideo and Viewpoint
17966#	  entries merged in from SCO's descriptions.
17967#	* Fixed old-style prefix padding on zen50, h1500.
17968#	* Moved old superbee entry to superbee-xsb, pulled in new superbee
17969#	  entry from SCO's description.
17970#	* Reorganized the special entries.
17971#	* Added lm#0 to cbunix and virtual entries.
17972#
17973# 9.5.0 (Mon Apr 10 11:30:00 EDT 1995):
17974#	* Restored cdc456tst.
17975#	* Fixed sb1 entry, SCO erroneously left out the xsb glitch.
17976#	* Added megatek, beacon, microkit.
17977#	* Freeze for ncurses-1.9 release.
17978# 9.5.1 (Fri Apr 21 12:46:42 EDT 1995):
17979#	* Added historical data for TAB.
17980#	* Comment fixes from David MacKenzie.
17981#	* Added the new BSDI pc3 entry.
17982# 9.5.2 (Tue Apr 25 17:27:52 EDT 1995)
17983#	* A change in the tic -C logic now ensures that all entries in
17984#	  the termcap translation will fit in < 1024 bytes.
17985#	* Added `bobcat' and `gator' HP consoles and the Nu machine entries
17986#	  from GNU termcap file.  This merges in all their local information.
17987# 9.5.3 (Tue Apr 25 22:28:13 EDT 1995)
17988#	* Changed tic -C logic to dump all capabilities used by GNU termcap.
17989#	* Added warnings about entries with long translations (restoring
17990#	  all the GNU termcaps pushes a few over the edge).
17991# 9.5.4 (Wed Apr 26 15:35:09 EDT 1995)
17992#	* Yet another tic change, and a couple of entry tweaks, to reduce the
17993#	  number of long (> 1024) termcap translations back to 0.
17994#
17995# 9.6.0 (Mon May  1 10:35:54 EDT 1995)
17996#	* Added kf13-kf20 to Linux entry.
17997#	* Regularize Prime terminal names.
17998#	* Historical data on Synertek.
17999#	* Freeze for ncurses-1.9.1.
18000# 9.6.1 (Sat May  6 02:00:52 EDT 1995):
18001#	* Added true xterm-color entry, renamed djm's pseudo-color entry.
18002#	* Eliminate whitespace in short name fields, this tanks some scripts.
18003#	* Name field changes to shorten some long entries.
18004#	* Termcap translation now automatically generates empty rmir/smir
18005#	  when ich1/ich is present (copes with an ancient vi bug).
18006#	* Added `screen' entries from FSF's screen-3.6.2.
18007#	* Added linux-nic and xterm-nic entries.
18008# 9.6.2 (Sat May  6 17:00:55 EDT 1995):
18009#	* Change linux entry to use smacs=\E[11m and have an explicit acsc,
18010#	  eliminating some special-case code in ncurses.
18011#
18012# 9.7.0 (Tue May  9 18:03:12 EDT 1995):
18013#	* Added vt320-k3, rsvidtx from the Emacs termcap.dat file.  I think
18014#	  that captures everything unique from it.
18015#	* Added reorder script generator.
18016#	* Freeze for ncurses 1.9.2 release.
18017# 9.7.1 (Thu Jun 29 09:35:22 EDT 1995):
18018#	* Added Sean Farley's kspd, flash, rs1 capabilities for linux.
18019#	* Added Olaf Siebert's corrections for adm12.
18020#	* ansi-pc-color now includes the colors and pairs caps, so that
18021#	  entries which use it will inherit them automatically.
18022#	* The linux entry can now recognize the center (keypad 5) key.
18023#	* Removed some junk that found its way into Linux acsc.
18024#
18025# 9.8.0 (Fri Jul  7 04:46:57 EDT 1995):
18026#	* Add 50% cut mark as a desperate hack to reduce tic's core usage.
18027#	* xterm doesn't try to use application keypad mode any more.
18028#	* Freeze for ncurses-1.9.3 release.
18029# 9.8.1 (Thu Jul 19 17:02:12 EDT 1995):
18030#	* Added corrected sun entry from vendor.
18031#	* Added csr capability to linux entry.
18032#	* Peter Wemm says the at386 hpa should be \E[%i%p1%dG, not \E[%p1%dG.
18033#	* Added vt102-nsgr to cope with stupid IBM PC `VT100' emulators.
18034#	* Some commented-out caps in long entries come back in, my code
18035#	  for computing string-table lengths had a bug in it.
18036#	* pcansi series modified to fit comm-program reality better.
18037# 9.8.2 (Sat Sep  9 23:35:00 EDT 1995):
18038#	* BSD/OS actually ships the ibmpc3 bold entry as its console.
18039#	* Correct some bad aliases in the pcansi series
18040#	* Added entry for QNX console.
18041#	* Clean up duplicate long names for use with 4.4 library.
18042#	* Change vt100 standout to be normal reverse vide, not bright reverse;
18043#	  this makes the Emacs status line look better.
18044# 9.8.3 (Sun Sep 10 13:07:34 EDT 1995):
18045#	* Added Adam Thompson's VT320 entries, also his dtx-sas and z340.
18046#	* Minor surgery, mostly on name strings, to shorten termcap version.
18047#
18048# 9.9.0 (Sat Sep 16 23:03:48 EDT 1995):
18049#	* Added dec-vt100 for use with the EWAN emulator.
18050#	* Added kmous to xterm for use with xterm's mouse-tracking facility.
18051#	* Freeze for 1.9.5 alpha release.
18052# 9.9.1 (Wed Sep 20 13:46:09 EDT 1995):
18053#	* Changed xterm lines to 24, the X11R6 default.
18054# 9.9.2 (Sat Sep 23 21:29:21 EDT 1995):
18055#	* Added 7 newly discovered, undocumented acsc characters to linux
18056#	  entry (the pryz{|} characters).
18057#	* ncurses no longer steals A_PROTECT.  Simplify linux sgr accordingly.
18058#	* Correct two typos in the xterm entries introduced in 9.9.1.
18059#	* I finally figured out how to translate ko capabilities.  Done.
18060#	* Added tvi921 entries from Tim Theisen.
18061#	* Cleanup: dgd211 -> dg211, adm42-nl -> adm42-nsl.
18062#	* Removed mystery tec entry, it was neither interesting nor useful.
18063#	* shortened altos3, qvt203, tvi910+, tvi92D, tvi921-g, tvi955, vi200-f,
18064#	  vi300-ss, att505-24, contel301, dm3045, f200vi, pe7000c, vc303a,
18065#	  trs200, wind26, wind40, wind50, cdc456tst, dku7003, f110, dg211,
18066#	  by making them relative to use capabilities
18067#	* Added cuf1=^L to tvi925 from deleted variant tvi925a.
18068#	* fixed cup in adm22 entry and parametrized strings in vt320-k3.
18069#	* added it#8 to entries that used to have :pt: -- tvi912, vi200,
18070#	  ampex80,
18071#	* Translate all home=\E[;H capabilities to home=\E[H, they're
18072#	  equivalent.
18073#	* Translate \E[0m -> \E[m in [rs]mso, [rs]mul, and init strings of
18074#	  vt100 and ANSI-like terminals.
18075# 9.9.3 (Tue Sep 26 20:11:15 EDT 1995):
18076#	* Added it#8 and ht=\t to *all* entries with :pt:; the ncurses tic
18077#	  does this now, too.
18078#	* fviewpoint is gone, it duplicated screwpoint.
18079#	* Added hp2627, graphos, graphos-30, hpex, ibmega, ibm8514, ibm8514-c,
18080#	  ibmvga, ibmvga-c, minix, mm340, mt4520-rv, screen2, screen3,
18081#	  versaterm, vi500, vsc, vt131, vt340, vt400 entries from UW.
18082#	  The UW vi50 replaces the old one, which becomes vi50adm,
18083#	* No more embedded commas in name fields.
18084#
18085# 9.10.0 (Wed Oct  4 15:39:37 EDT 1995):
18086#	* XENIX forms characters in fos, trs16, scoansi become acsc strings,
18087#	* Introduced klone+* entries for describing Intel-console behavior.
18088#	* Linux kbs is default-mapped to delete for some brain-dead reason.
18089#	* -nsl -> -ns.  The -pp syntax is obsolete.
18090#	* Eliminate [A-Z]* primaries in accordance with SVr4 terminfo docs.
18091#	* Make xterm entry do application-keypad mode again.  I got complaints
18092#	  that it was messing up someone's 3270 emulator.
18093#	* Added some longname fields in order to avoid warning messages from
18094#	  older tic implementations.
18095#	* According to ctlseqs.ms, xterm has a full vt100 graphics set.  Use
18096#	  it! (This gives us pi, greater than, less than, and a few more.)
18097#	* Freeze for ncurses-1.9.6 release.
18098# 9.10.1 (Sat Oct 21 22:18:09 EDT 1995):
18099#	* Add xon to a number of console entries, they're memory-mapped and
18100#	  don't need padding.
18101#	* Correct the use dependencies in the ansi series.
18102#	* Hand-translate more XENIX capabilities.
18103#	* Added hpterm entry for HP's X terminal emulator.
18104#	* Added aixterm entries.
18105#	* Shortened four names so everything fits in 14 chars.
18106#
18107# 9.11.0 (Thu Nov  2 17:29:35 EST 1995):
18108#	* Added ibcs2 entry and info on iBCS2 standard.
18109#	* Corrected hpa/vpa in linux entry.  They still fail the worm test.
18110#	* We can handle the HP meml/memu capability now.
18111#	* Added smacs to klone entries, just as documentation.
18112#	* Carrected ansi.sys and cit-500 entries.
18113#	* Added z39, vt320-k311, v220c, and avatar entries.
18114#	* Make pcansi use the ansi.sys invis capability.
18115#	* Added DIP switch descriptions for vt100, adm31, tvi910, tvi920c,
18116#	  tvi925, tvi950, dt80, ncr7900i, h19.
18117#	* X3.64 has been withdrawn, change some references.
18118#	* Removed function keys from ansi-m entry.
18119#	* Corrected ansi.sys entry.
18120#	* Freeze for ncurses-1.9.7 release.
18121# 9.11.1 (Tue Nov  6 18:18:38 EST 1995):
18122#	* Added rmam/smam capabilities to many entries based on init strings.
18123#	* Added correct hpa/vpa to linux.
18124#	* Reduced several entries relative to vt52.
18125# 9.11.2 (Tue Nov  7 00:21:06 EST 1995):
18126#	* Exiled some utterly unidentifiable custom and homebrew types to the
18127#	  UFO file; also, obsolete small-screen hardware; also, entries which
18128#	  look flat-out incorrect, garbled, or redundant.  These include the
18129#	  following entries: carlock, cdc456tst, microkit, qdss, ramtek, tec,
18130#	  tec400, tec500, ubell, wind, wind16, wind40, wind50, plasma, agile,
18131#	  apple, bch, daleblit, nucterm, ttywilliams, nuterminal, nu24, bnu,
18132#	  fnu, nunix-30, nunix-61, exidy, ex3000, sexidy, pc52, sanyo55,
18133#	  yterm10, yterm11, yterm10nat, aed, aed-ucb, compucolor, compucolor2,
18134#	  vic20, dg1, act5s, netx, smartvid, smarterm, sol, sol2, dt200,
18135#	  trs80, trs100, trs200, trs600, xitex, rsvidtx, vid, att2300-x40,
18136#	  att2350-x40, att4410-nfk, att5410-ns, otty5410, att5425-nl-w,
18137#	  tty5425-fk, tty5425-w-fk, cita, c108-na, c108-rv-na, c100-rv-na,
18138#	  c108-na-acs, c108-rv-na-acs, ims950-ns, infotonKAS, ncr7900i-na,
18139#	  regent60na, scanset-n, tvi921-g, tvi925n, tvi925vbn, tvi925vb,
18140#	  vc404-na, vc404-s-na, vt420nam, vt420f-nam, vt420pc-nam, vt510nam,
18141#	  vt510pc-nam, vt520nam, vt525nam, xterm25, xterm50, xterm65, xterms.
18142#	* Corrected pcvt25h as suggested by Brian C. Grayson
18143#	  <bgrayson@pine.ece.utexas.edu>.
18144# 9.11.3 (Thu Nov  9 12:14:40 EST 1995):
18145#	* Added kspd=\E[P, kcbt=\E[Z, to linux entry, changed kbs back to ^H.
18146#	* Added kent=\EOM to xterm entry.
18147#
18148# 9.11.4 (Fri Nov 10 08:31:35 EST 1995):
18149#	* Corrected gigi entry.
18150#	* Restored cuf/cud1 to xterm, their apparent bugginess was due to
18151#	  bad hpa/vpa capabilities.
18152#	* Corrected flash strings to have a uniform delay of .2 sec.  No
18153#	  more speed-dependent NUL-padding!
18154#	* terminfo capabilities in comments bracketed with <>.
18155# 9.11.5 (Fri Nov 10 15:35:02 EST 1995):
18156#	* Replaced pcvt with the 3.31 pcvt entries.
18157#	* Freeze for 1.9.7a.
18158# 9.11.6 (Mon Nov 13 10:20:24 EST 1995):
18159#	* Added emu entry from the X11R6 contrib tape sources.
18160#
18161# 9.12.0 (Wed Nov 29 04:22:25 EST 1995):
18162#	* Improved iris-ansi and sun entries.
18163#	* More flash string improvements.
18164#	* Corrected wy160 & wy160 as suggested by Robert Dunn
18165#	* Added dim to at386.
18166#	* Reconciled pc3 and ibmpc3 with the BSDI termcap file.  Keith says
18167#	  he's ready to start using the termcap generated from this one.
18168#	* Added vt102-w, vt220-w, xterm-bold, wyse-vp, wy75ap, att4424m,
18169#	  ln03, lno3-w, h19-g, z29a*, qdss.  Made vt200 an alias of vt220.
18170#	* Improved hpterm, apollo consoles, fos, qvt101, tvi924. tvi925,
18171#	  att610, att620, att630,
18172#	* Changed hazeltine name prefix from h to hz.
18173#	* Sent t500 to the UFI file.
18174#	* I think we've sucked all the juice out of BSDI's termcap file now.
18175#	* Freeze for ncurses 1.9.8 release
18176# 9.12.1 (Thu Nov 30 03:14:06 EST 1995)
18177#	* Unfreeze, linux kbs needed to be fixed.
18178#	* Tim Theisen pinned down a bug in the DMD firmware.
18179# 9.12.2 (Thu Nov 30 19:08:55 EST 1995):
18180#	* Fixes to ansi and klone capabilities (thank you, Aaron Ucko).
18181#	  (The broken ones had been shadowed by sgr.)
18182# 9.12.3 (Thu Dec  7 17:47:22 EST 1995):
18183#	* Added documentation on ECMA-48 standard.
18184#	* New Amiga entry.
18185# 9.12.4 (Thu Dec 14 04:16:39 EST 1995):
18186#	* More ECMA-48 stuff
18187#	* Corrected typo in minix entry, added pc-minix.
18188#	* Corrected khome/kend in xterm (thank you again, Aaron Ucko).
18189#	* Added rxvt entry.
18190#	* Added 1.3.x color-change capabilities to linux entry.
18191# 9.12.5 (Tue Dec 19 00:22:10 EST 1995):
18192#	* Corrected rxvt entry khome/kend.
18193#	* Corrected linux color change capabilities.
18194#	* NeXT entries from Dave Wetzel.
18195#	* Cleaned up if and rf file names (all in /usr/share now).
18196#	* Changed linux op capability to avoid screwing up a background color
18197#	  pair set by setterm.
18198# 9.12.6 (Wed Feb  7 16:14:35 EST 1996):
18199#	* Added xterm-sun.
18200# 9.12.7 (Fri Feb  9 13:27:35 EST 1996):
18201#	* Added visa50.
18202#
18203# 9.13.0 (Sun Mar 10 00:13:08 EST 1996):
18204#	* Another sweep through the Shuford archive looking for new info.
18205#	* Added dg100 alias to dg6053 based on a comp.terminals posting.
18206# 	* Added st52 from Per Persson.
18207#	* Added eterm from the GNU Emacs 19.30 distribution.
18208#	* Freeze for 1.9.9.
18209# 9.13.1 (Fri Mar 29 14:06:46 EST 1996):
18210#	* FreeBSD console entries from Andrew Chernov.
18211#	* Removed duplicate Atari st52 name.
18212# 9.13.2 (Tue May  7 16:10:06 EDT 1996)
18213#	* xterm doesn't actually have ACS_BLOCK.
18214#	* Change klone+color setf/setb to simpler forms that can be
18215#	  translated into termcap.
18216#	* Added xterm1.
18217#	* Removed mechanically-generated junk capabilities from cons* entries.
18218#	* Added color support to bsdos.
18219# 9.13.3 (Thu May  9 10:35:51 EDT 1996):
18220#	* Added Wyse 520 entries from Wm. Randolph Franklin <wrf@ecse.rpi.edu>.
18221#	* Created ecma+color, linux can use it.  Also added ech to linux.
18222#	* Teach xterm about more keys. Add Thomas Dickey's 3.1.2E updates.
18223#	* Add descriptions to FreeBSD console entries.  Also shorten
18224#	  some aliases to <= 14 chars for portability.
18225#	* Added x68k console
18226#	* Added OTbs to several VT-series entries.
18227# 9.13.4 (Wed May 22 10:54:09 EDT 1996):
18228#	* screen entry update for 3.7.1 from Michael Alan Dorfman.
18229# 9.13.5 (Wed Jun  5 11:22:41 EDT 1996):
18230#	* kterm correction due to Kenji Rikitake.
18231#	* ACS correction in vt320-kll due to Phillippe De Muyter.
18232# 9.13.6 (Sun Jun 16 15:01:07 EDT 1996):
18233#	* Sun console entry correction from J.T. Conklin.
18234#	* Changed all DEC VT300 and up terminals to use VT300 tab set
18235# 9.13.7 (Mon Jul  8 20:14:32 EDT 1996):
18236#	* Added smul to linux entry (we never noticed it was missing
18237#	  because of sgr!).
18238#	* Added rmln to hp+labels (deduced from other HP entries).
18239#	* Added vt100 acsc capability to vt220, vt340, vt400, d800, dt80-sas,
18240#	  pro350, att7300, 5420_2, att4418, att4424, att4426, att505, vt320-k3.
18241#	* Corrected vt220 acsc.
18242#	* The klone+sgr and klone+sgr-dumb entries now use klone+acs;
18243#	  this corresponds to reality and helps prevent some tic warnings.
18244#	* Added sgr0 to c101, pcix, vt100-nav, screen2, oldsun, next, altos2,
18245#	  hpgeneric, hpansi, hpsub, hp236, hp700-wy, bobcat, dku7003, adm11,
18246#	  adm12, adm20, adm21, adm22, adm31, adm36, adm42, pt100, pt200,
18247#	  qvt101, tvi910, tvi921, tvi92B, tvi925, tvi950, tvi970, wy30-mc,
18248#	  wy50-mc, wy100, wyse-vp, ampex232, regent100, viewpoint, vp90,
18249#	  adds980, cit101, cit500, contel300, cs10, dm80, falco, falco-p,
18250#	  f1720a, go140, sb1, superbeeic, microb, ibm8512, kt7, ergo4000,
18251#	  owl, uts30, dmterm, dt100, dt100, dt110, appleII, apple-videx,
18252#	  lisa, trsII, atari, st52, pc-coherent, basis, m2-man, bg2.0, bg1.25,
18253#	  dw3, ln03, ims-ansi, graphos, t16, zen30, xtalk, simterm, d800,
18254#	  ifmr, v3220, wy100q, tandem653, ibmaed.
18255#	* Added DWK terminal description.
18256# 9.13.8 (Wed Jul 10 11:45:21 EDT 1996):
18257#	* Many entries now have highlights inherited from adm+sgr.
18258#	* xterm entry now corresponds to XFree86 3.1.2E, with color.
18259#	* xtitle and xtitle-twm enable access to the X status line.
18260#	* Added linux-1.3.6 color palette caps in conventional format.
18261#	* Added adm1178 terminal.
18262#	* Move fos and apollo terminals to obsolete category.
18263#	* Aha! The BRL terminals file told us what the Iris extensions mean.
18264#	* Added, from the BRL termcap file: rt6221, rt6221-w, northstar,
18265#	  commodore, cdc721-esc, excel62, osexec.  Replaced from the BRL file:
18266#	  cit500, adm11.
18267# 9.13.9 (Mon Jul 15 00:32:51 EDT 1996):
18268#	* Added, from the BRL termcap file: cdc721, cdc721l, cdc752, cdc756,
18269#	  aws, awsc, zentec8001, modgraph48, rca vp3301/vp3501, ex155.
18270#	* Corrected, from BRL termcap file: vi50.
18271#	* Better rxvt entry & corrected xterm entries from Thomas Dickey.
18272# 9.13.10 (Mon Jul 15 12:20:13 EDT 1996):
18273#	* Added from BRL: cit101e & variants, hmod1, vi200, ansi77, att5620-1,
18274#	  att5620-s, att5620-s, dg210, aas1901, hz1520, hp9845, osborne
18275#	  (old osborne moved to osborne-w), tvi970-vb, tvi970-2p, tvi925-hi,
18276#	  tek4105brl, tek4106brl, tek4107brl,tek4109brl, hazel, aepro,
18277#	  apple40p, apple80p, appleIIgs, apple2e, apple2e-p, apple-ae.
18278#	* Paired-attribute fixes to various terminals.
18279#	* Sun entry corrections from A. Lukyanov & Gert-Jan Vons.
18280#	* xterm entry corrections from Thomas Dickey.
18281# 9.13.11 (Tue Jul 30 16:42:58 EDT 1996):
18282#	* Added t916 entry, translated from a termcap in SCO's support area.
18283#	* New qnx entry from Michael Hunter.
18284# 9.13.12 (Mon Aug  5 14:31:11 EDT 1996):
18285#	* Added hpex2 from Ville Sulko.
18286#	* Fixed a bug that ran the qnx and pcvtXX together.
18287# 9.13.13 (Fri Aug  9 01:16:17 EDT 1996):
18288#	* Added dtterm entry from Solaris CDE.
18289# 9.13.14 (Tue Sep 10 15:31:56 EDT 1996):
18290#	* corrected pairs#8 typo in dtterm entry.
18291#	* added tvi9065.
18292# 9.13.15 (Sun Sep 15 02:47:05 EDT 1996):
18293#	* updated xterm entry to cover 3.1.2E's new features.
18294# 9.13.16 (Tue Sep 24 12:47:43 EDT 1996):
18295#	* Added new minix entry
18296#	* Removed aliases of the form ^[0-9]* for obsolete terminals.
18297#	* Commented out linux-old, nobody's using pre-1.2 kernels now.
18298# 9.13.17 (Fri Sep 27 13:25:38 EDT 1996):
18299#	* Added Prism entries and kt7ix.
18300#	* Caution notes about EWAN and tabset files.
18301#	* Changed /usr/lib/tabset -> /usr/share/tabset.
18302#	* Added acsc/rmacs/smacs to vt52.
18303# 9.13.18 (Mon Oct 28 13:24:59 EST 1996):
18304#	* Merged in Thomas Dickey's reorganization of the xterm entries;
18305#	  added technical corrections to avoid warning messages.
18306# 9.13.19 (Sat Nov 16 16:05:49 EST 1996):
18307#	* Added rmso=\E[27m in Linux entry.
18308#	* Added koi8-r support for Linux console.
18309#	* Replace xterm entries with canonical ones from XFree86 3.2.
18310# 9.13.20 (Sun Nov 17 23:02:51 EST 1996):
18311#	* Added color_xterm from Jacob Mandelson
18312# 9.13.21 (Mon Nov 18 12:43:42 EST 1996):
18313#	* Back off the xterm entry to use r6 as a base.
18314# 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
18315#	* Added dec-vt220 at Adrian Garside's request.
18316# 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
18317#	* Replaced minitel-2 entry.
18318#	* Added MGR, ansi-nt.
18319#	* Minor corrections to xterm entries.
18320#	* Replaced EWAN telnet entry.
18321#	* Dropped the reorder script generator.  It was a fossil.
18322# 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
18323#	* Thorsten Lockert added termcap `bs' to a lot of types, working from
18324#	  the 4.4BSD Lite2 file.
18325# 9.13.25 (Fri Jun 20 12:33:36 EDT 1997):
18326#	* Added Datapoint 8242, pilot, ansi_psx, rbcomm, vt220js.
18327#	* Updated iris-ansi; corrected vt102-w.
18328#	* Switch base xterm entry to 3.3 level.
18329# 9.13.26 (Mon Jun 30 22:45:45 EDT 1997)
18330#	* Added basic4.
18331#	* Removed rmir/smir from tv92B.
18332#
18333# 10.2.0 (Sat Feb 28 12:47:36 EST 1998):
18334#	* add hds200 description (Walter Skorski)
18335#	* add beterm entry (Fred Fish)
18336#	* add Thomas Dickey's xterm-xf86-v40, xterm-8bit, xterm-16color,
18337#	  iris-color entries.
18338#	* add emx entries.
18339#	* Replaced unixpc entry with Benjamin Sittler's corrected version.
18340#	* Replaced xterm/rxvt/emu/syscons entries with Thomas Dickey's
18341#	  versions.
18342#	* remove sgr string from qnx based on report by Xiaodan Tang
18343#	* Added u8/u9, removed rmul/smul from sun-il.
18344#	* 4.2 tic displays \0 rather than \200.
18345#	* add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
18346#	  apparently based on cp-866).
18347#	* Merged in Pavel Roskin's acsc for linux-koi8
18348#	* Corrected some erroneous \\'s to \.
18349#	* 4.2 ncurses has been changed to use setaf/setab, consistent w/SysV.
18350#	* II -> ii in pcvtXX, screen, xterm.
18351#	* Removed \n chars following ANSI escapes in sgr & friends.
18352#	* Updated Wyse entries.
18353#	* h19 corrections from Tim Pierce.
18354#	* Noted that the dm2500 has both ich and smir.
18355#	* added pccons for the Alpha under OSF/1.
18356#	* Added Sony NEWS workstation entries and cit101e-rv.
18357#	* Reverted `amiga'; to Kent Polk's version, as I'm told
18358#	  the Verkuil entry messes up with Amiga Telnet.
18359# 10.2.1 (Sun Mar  8 18:32:04 EST 1998):
18360#	* Corrected attributions in 10.2.0 release notes.
18361#	* Scanned the Shuford archive for new terminfos and information.
18362#	* Removed sgr from qnx entry (Thomas Dickey).
18363#	* Added entries for ICL and Kokusai Data Systems terminals.
18364#	* Incorporated NCR terminfos from the Boundless Technology FTP site.
18365#	* Incorporated att700 from the Boundless Technology FTP site.
18366#	* Miscellaneous contact-address and Web-page updates.
18367#
18368# 1998/5/9
18369#	* add nxterm and xterm-color terminfo description (request by Cristian
18370#	  Gafton <gafton@redhat.com>).
18371#	* modify rxvt terminfo description to clear alternate screen before
18372#	  switching back to normal screen, for compatibility with applications
18373#	  which use xterm (reported by Manoj Kasichainula <manojk@io.com>).
18374#	* modify linux terminfo description to reset color palette (reported
18375#	  by Telford Tendys <telford@eng.uts.edu.au>).
18376#
18377# 1998/7/4
18378#	* merge changes from current XFree86 xterm terminfo descriptions.
18379#
18380# 1998/7/25
18381#	* Added minitel1 entries from Alexander Montaron.
18382#	* Added qnxt2 from Federico Bianchi.
18383#	* Added arm100 terminfo entries from Dave Millen.
18384#
18385# 1998/8/6
18386#	* Added ncsa telnet entries from Francesco Potorti
18387#
18388# 1998/8/15
18389#	* modify ncsa telnet entry to reflect color, other capabilities based on
18390#	  examination of the source code - T.Dickey.
18391#
18392# 1998/8/22
18393#	* Corrected some erroneous \\'s to \ (eterm, osborne) - TD.
18394#
18395# 1998/8/29
18396#	* Added Francesco Potorti's tuned Wyse 99 entries.
18397#	* dtterm enacs correction from Alexander V. Lukyanov.
18398#	* Add ncsa-ns, ncsa-m-ns and ncsa-m entries from esr version.
18399#	* correct a typo in icl6404 entry.
18400#	* add xtermm and xtermc
18401#
18402# 1998/9/26
18403#	* format most %'char' sequences to %{number}
18404#	* adapt IBM AIX 3.2.5 terminfo - T.Dickey
18405#	* merge Data General terminfo from Hasufin <hasufin@vidnet.net> - TD
18406#
18407# 1998/10/10
18408#	* update xterm-xfree86 to current (patch 84), for is2/rs2 changes - TD
18409#	* correct initialization string in xterm-r5, add misc other features
18410#	  to correspond with xterm patch 84 - TD
18411#
18412# 1998/12/19
18413#	* update xterm-xfree86 to current (patch 90), smcur/rmcur changes - TD
18414#	* add Mathew Vernon's mach console entries
18415#	* corrections for ncsa function-keys (report by Larry Virden)
18416#
18417# 1998/12/19
18418#	* change linux to use ncv#2, since underline does not work with color - TD
18419#
18420# 1999/1/9
18421#	* add kbt to iris-ansi, document other shift/control functionkeys - TD
18422#	* correct iris-ansi and iris-ansi-ap with respect to normal vs keypad
18423#	  application modes, change kent to use the correct keypad code - TD
18424#
18425# 1999/1/10
18426#	* add entry for Tera Term - TD
18427#
18428# 1999/1/23
18429#	* minor improvements for teraterm entry - TD
18430#	* rename several entries used by BSDI: bsdos to bsdos-pc-nobold,
18431#	  and bsdos-bold to bsdos-pc (Jeffrey C Honig)
18432#
18433# 1999/2/20
18434#	* resolve ambiguity of kend/kll/kslt and khome/kfnd/kich1 strings in
18435#	  xterm and ncsa entries by removing the unneeded ones.  Note that
18436#	  some entries will return kend & khome versus kslt and kfnd, for
18437#	  PC-style keyboards versus strict vt220 compatiblity - TD
18438#
18439# 1999/3/13
18440#	* adjust xterm-xfree86 khome/kend to match default PC-style keyboard
18441#	  tables - TD
18442#	* add 'crt' entry - TD
18443#	* correct typos in 'linux-c' entry - TD
18444#
18445# 1999/3/14
18446#	* update entries for BSD/OS console to use klone+sgr and klone+color
18447#	  (Jeffrey C Honig)
18448#
18449# 1999/3/27
18450#	* adjust xterm-xfree86 miscellaneous keypad keys, as per patch #94 - TD.
18451#
18452# 1999/4/10
18453#	* add linux-lat, from RedHat patches to ncurses 4.2
18454#
18455# 1999/4/17
18456#	* add complete set of default function-key definitions for scoansi - TD.
18457#
18458# 1999/7/3
18459#	* add cnorm, cvvis for Linux 2.2 kernels
18460#
18461# 1999/7/24
18462#	* add kmous to xterm-r5 -TD
18463#	* correct entries xterm+sl and xterm+sl-twm, which were missing the
18464#	  parent "use" clause -TD
18465#
18466# 1999/7/31
18467#	* corrected cnorm, added el1 in 'screen' description -TD
18468#
18469# 1999/8/14
18470#	* add ms-vt100 -TD
18471#
18472# 1999/8/21
18473#	* corrections to beterm entry -TD
18474#
18475# 1999/8/28
18476#	* add cygwin entry -TD
18477#
18478# 1999/9/4
18479#	* minor corrections for beterm entry -TD
18480#
18481# 1999/9/18
18482#	* add acsc string to HP 70092 terminfo entry -Joerg Wunsch
18483#
18484# 1999/9/25
18485#	* add amiga-8bit entry
18486#	* add console entries from NetBSD: ofcons, wsvt25, wsvt25m, rcons,
18487#	  rcons-color, based on
18488#	  ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/termcap/termcap.src
18489#	* add alias for iris-ansi-net
18490#
18491# 1999/10/2
18492#	* corrected scoansi entry's acsc, some function keys, add color -TD
18493#
18494# 1999/10/23
18495#	* add cnorm, cvvis to cons25w, and modify ncv to add 'dim' -TD
18496#	* reorder ncsa entries to make ncsa-vt220 use the alternate function
18497#	  key mapping, leaving Potorti's entries more like he named them -TD
18498#	* remove enter/exit am-mode from cygwin -TD
18499#
18500# 1999/10/30
18501#	* correct typos in several entries (missing '[' from CSI):
18502#	  mgr-sun, ncsa-m, vt320-k3, att505, avt-ns, as well as smir/rmir
18503#	  strings for avt-ns -TD
18504#	* add 'dim' to ncv mask for linux (report by Klaus Weide).
18505#
18506# 1999/11/27
18507#	* correct kf1-kf4 in xterm-r6 which were vt100-style PF1-PF4 -TD
18508#	* add hts to xterm-r6, and u6-u9 to xterm-r5 -TD
18509#	* add xterm-88color and xterm-256color -TD
18510#
18511# 1999/12/4
18512#	* add "obsolete" termcap strings -TD
18513#	* add kvt and gnome entries -TD
18514#
18515# 1999/12/11
18516#	* correct cup string for regent100 -TD
18517#
18518# 2000/1/1
18519#	* update mach, add mach-color based on Debian diffs for ncurses 5.0 -TD
18520#	* add entries for xterm-hp, xterm-vt220, xterm-vt52 and xterm-noapp -TD
18521#	* change OTrs capabilities to rs2 -TD
18522#	* add obsolete and extended capabilities to 'screen' -TD
18523#
18524# 2000/1/5
18525#	* remove kf0 from rxvt, vt520, vt525 and ibm5151 since it conflicts
18526#	  with kf10 -TD
18527#	* updated xterm-xf86-v40, making kdch1 correspond to vt220 'Remove',
18528#	  and adding kcbt -TD
18529#
18530# 2000/1/12
18531#	* remove incorrect khome/kend from xterm-xf86-v333, which was based on
18532#	  nonstandard resource settings -TD
18533#
18534# 2000/2/26
18535#	* minor fixes for xterm-*, based on Debian #58530 -TD
18536#
18537# 2000/3/4
18538#	* add several terminal types from esr's "11.0", as well as comments.
18539#	  bq300*, dku7102-old, dku7202, hft, lft, pcmw, pmcons, tws*, vip*,
18540#	  vt220-8bit, vt220-old, wy85-8bit
18541#
18542# 2000/3/18
18543#	* add several terminal types from esr's "11.0.1" (ansi-*).
18544#	* update OTxx capabilities for changes on 2000/3/4.
18545#	* revert part of vt220 change (request by Todd C Miller for OpenBSD)
18546#
18547# 2000/3/26
18548#	* move screen's AX extension to ecma+color, modify several entries to
18549#	  use that, adjusting ncv as needed -TD
18550#
18551# 2000/4/8
18552#	* add bsdos-pc-m, bsdos-pc-mono (Jeffrey C Honig)
18553#	* correct spelling error in entry name: bq300-rv was given as bg300-rv
18554#	  in esr's version.
18555#
18556# 2000/4/15
18557#	* add cud, ech, etc., to beterm based on feedback from Rico Tudor -TD
18558#	* correct color definition for ibm3164, make minor changes to other
18559#	  IBM terminal definitions based on recent terminfo descriptions -TD
18560#
18561# 2000/4/22
18562#	* add mgterm, from NetBSD -TD
18563#	* add alias sun-cgsix for sun-ss5 as per NetBSD
18564#	* change cons25w to use rs2 for reset rather than rs1 -TD
18565#	* add rc/sc to aixterm based on manpage -TD
18566#
18567# 2000/5/13
18568#	* remove ncv from xterm-16color, xterm-256 color
18569#
18570# 2000/6/10
18571#	* add kmous capability to linux to use Joerg Schoen's gpm patch.
18572#
18573# 2000/7/1
18574#	* add Eterm (Michael Jennings)
18575#
18576# 2000-07-18
18577#       * add amiga-vnc entry.
18578#
18579# 2000-08-12
18580#	* correct description of Top Gun Telnet.
18581#	* add kterm-color
18582#
18583# 2000-08-26
18584#	* add qansi* entries from QNX ftp site.
18585#
18586# 2000-09-16
18587#	* add Matrix Orbital entries by Eric Z. Ayers).
18588#	* add xterm-basic, xterm-sco entries, update related entries to XFree86
18589#	  4.0.1c -TD
18590#
18591# 2000-09-17
18592#	* add S0, E0 extensions to screen's entry -TD
18593#
18594# 2000-09-23
18595#	* several corrections based on tic's new parameter-checking code -TD
18596#	* modify xterm-r6 and similar rs2 sequences which had \E7...\E8
18597#	  bracketing sequences that reset video attributes (\E8 would restore
18598#	  them) -TD
18599#
18600# The following sets edit modes for GNU EMACS.
18601# Local Variables:
18602# fill-prefix:"\t"
18603# fill-column:75
18604# comment-column:0
18605# comment-start-skip:"^#+"
18606# comment-start:"# "
18607# compile-command:"tic -c terminfo.master"
18608# End:
18609######## SHANTIH!  SHANTIH!  SHANTIH!
18610