xref: /freebsd/contrib/ncurses/misc/terminfo.src (revision 5521ff5a4d1929056e7ffc982fac3341ca54df7c)
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: 2001/05/05 23:09:00 $
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;%;%?%p7%t8;%;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;%;%?%p7%t8;%;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
807#
808# hpa/vpa work in the console, but not in scoterm:
809#	hpa=\E[%p1%dG,
810#	vpa=\E[%p1%dd,
811#
812# SCO's terminfo uses
813#	kLFT=\E[d,
814#	kRIT=\E[c,
815# which do not work (console or scoterm).
816#
817# Console documents only 3 attributes can be set with SGR (so we don't use sgr).
818scoansi|SCO Extended ANSI standard crt,
819	OTbs, am, bce, eo, xon,
820	colors#8, cols#80, it#8, lines#25, pairs#64,
821	acsc=0[5566778899\:\:;;<<==>>FFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`ja0fxgqh2jYk?lZm@nEqDtCu4vAwBx3~y,
822	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
823	civis=\E[=14;12C, clear=\E[2J\E[H, cnorm=\E[=10;12C,
824	cub1=\E[D, cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
825	cuu1=\E[A, cvvis=\E[=0;12C, dch1=\E[P, dl=\E[%p1%dM,
826	dl1=\E[M, ed=\E[m\E[J, el=\E[m\E[K, home=\E[H, ht=^I,
827	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
828	indn=\E[%p1%dS, invis=\E[8m, kbeg=\E[E, kbs=^H, kcbt=\E[Z,
829	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^_,
830	kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X,
831	kf13=\E[Y, kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d,
832	kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h,
833	kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m,
834	kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q,
835	kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u, kf36=\E[v,
836	kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P, kf40=\E[z,
837	kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[], kf45=\E[\^,
838	kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q, kf6=\E[R,
839	kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L,
840	knp=\E[G, kpp=\E[I, op=\E[37;40m, rev=\E[7m, ri=\E[T,
841	rin=\E[%p1%dT, rmacs=\E[10m, rmam=\E[?7l, rmso=\E[m,
842	rmul=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
843	sgr0=\E[0;10m, smacs=\E[12m, smam=\E[?7h, smso=\E[7m,
844	smul=\E[4m,
845
846# This actually describes the generic SVr4 display driver for Intel boxes.
847# The <dim=\E[2m> isn't documented and therefore may not be reliable.
848# From: Eric Raymond <esr@snark.thyrsus.com> Mon Nov 27 19:00:53 EST 1995
849att6386|at386|386at|AT&T WGS 6386 console,
850	am, bw, eo, xon,
851	cols#80, it#8, lines#25,
852	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
853	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[=C,
854	clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub=\E[%p1%dD,
855	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
856	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
857	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
858	dl=\E[%p1%dM, dl1=\E[1M, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
859	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
860	ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S,
861	indn=\E[%p1%dS, invis=\E[9m, is2=\E[0;10;39m, kbs=^H,
862	kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
863	kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
864	kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
865	kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H, kich1=\E[@,
866	knp=\E[U, kpp=\E[V, krmir=\E0, nel=\r\E[S, rc=\E8, rev=\E[7m,
867	ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
868	sc=\E7,
869	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,
870	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
871	tbc=\E[2g, vpa=\E[%i%p1%dd, use=klone+color,
872# (pc6300plus: removed ":KM=/usr/lib/ua/kmap.s5:"; renamed BO/EE/CI/CV -- esr)
873pc6300plus|AT&T 6300 plus,
874	OTbs, am, xon,
875	cols#80, lines#24,
876	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[=C,
877	clear=\E[2J\E[H, cnorm=\E[=1C, cr=^M, cub1=^H, cud1=\E[B,
878	cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
879	dch1=\E[1P, dim=\E[2m, dl1=\E[1M, ed=\E[0J, el=\E[0K,
880	home=\E[H, hts=\EH, ich1=\E[1@, il1=\E[1L, ind=^J,
881	invis=\E[9m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
882	kcuu1=\E[A, kf1=\EOc, kf10=\EOu, kf2=\EOd, kf3=\EOe,
883	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\EOk,
884	nel=^M^J, rev=\E[7m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
885	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
886
887# From: Benjamin C. W. Sittler <bsittler@nmt.edu>
888#
889# I have a UNIX PC which I use as a terminal attached to my Linux PC.
890# Unfortunately, the UNIX PC terminfo entry that comes with ncurses
891# is broken. All the special key sequences are broken, making it unusable
892# with Emacs. The problem stems from the following:
893#
894# The UNIX PC has a plethora of keys (103 of them, and there's no numeric
895# keypad!), loadable fonts, and strange highlighting modes ("dithered"
896# half-intensity, "smeared" bold, and real strike-out, for example.) It also
897# uses resizable terminal windows, but the bundled terminal program always
898# uses an 80x24 window (and doesn't support seem to support a 132-column
899# mode.)
900#
901# HISTORY: The UNIX PC was one of the first machines with a GUI, and used a
902# library which was a superset of SVr3.5 curses (called tam, for "terminal
903# access method".) tam includes support for real, overlapping windows,
904# onscreen function key labels, and bitmap graphics. But since the primary
905# user interface on the UNIX PC was a GUI program (ua, for "user
906# assistant",) and remote administration was considered important for the
907# machine, tam also supported VT100-compatible terminals attached to the
908# serial port or used across the StarLan network. To simulate the extra keys
909# not present on a VT100, users could press ESC and a two-letter sequence,
910# such as u d (Undo) or U D (Shift-Undo.) These two-letter sequences,
911# however, were not the same as those sent by the actual Undo key. The
912# actual Undo key sends ESC 0 s unshifted, and ESC 0 S shifted, for example.
913# (If you're interested in adding some of the tam calls to ncurses, btw, I
914# have the full documentation and several programs which use tam. It also
915# used an extended terminfo format to describe key sequences, special
916# highlighting modes, etc.)
917#
918# KEYS: This means that ncurses would quite painful on the UNIX PC, since
919# there are two sequences for every key-modifier combination (local keyboard
920# sequence and remote "VT100" sequence.) But I doubt many people are trying
921# to use ncurses on the UNIX PC, since ncurses doesn't properly handle the
922# GUI. Unfortunately, the terminfo entry (and the termcap, too, I presume)
923# seem to have been built from the manual describing the VT100 sequences.
924# This means it doesn't work for a real live UNIX PC.
925#
926# FONTS: The UNIX PC also has a strange interpretation of "alternate
927# character set". Rather than the VT100 graphics you might expect, it allows
928# up to 8 custom fonts to be loaded at any given time. This means that
929# programs expecting VT100 graphics will usually be disappointed. For this
930# reason I have disabled the smacs/rmacs sequences, but they could easily be
931# re-enabled. Here are the relevant control sequences (from the ESCAPE(7)
932# manpage), should you wish to do so:
933#
934# SGR10 - Select font 0 - ESC [ 10 m or SO
935# SGR11 - Select font 1 - ESC [ 11 m or SI
936# SGR12 - Select font 2 - ESC [ 12 m
937# ... (etc.)
938# SGR17 - Select font 7 - ESC [ 17 m
939#
940# Graphics for line drawing are not reliably found at *any* character
941# location because the UNIX PC has dynamically reloadable fonts. I use font
942# 0 for regular text and font 1 for italics, but this is by no means
943# universal. So ASCII line drawing is in order if smacs/rmacs are enabled.
944#
945# MISC: The cursor visible/cursor invisible sequences were swapped in the
946# distributed terminfo.
947#
948# To ameliorate these problems (and fix a few highlighting bugs) I rewrote
949# the UNIX PC terminfo entry. The modified version works great with Lynx,
950# Emacs, and XEmacs running on my Linux PC and displaying on the UNIX PC
951# attached by serial cable. In Emacs, even the Undo key works, and many
952# applications can now use the F1-F8 keys.
953#
954# esr's notes:
955#	Terminfo entry for the AT&T Unix PC 7300
956#	from escape(7) in Unix PC 7300 Manual.
957#	Somewhat similar to a vt100-am (but different enough
958#	to redo this from scratch.)
959#
960#	/***************************************************************
961#	*
962#	*           FONT LOADING PROGRAM FOR THE UNIX PC
963#	*
964#	*     This routine loads a font defined in the file ALTFONT
965#	*     into font memory slot #1.  Once the font has been loaded,
966#	*     it can be used as an alternative character set.
967#	*
968#	*     The call to ioctl with the argument WIOCLFONT is the key
969#	*     to this routine.  For more information, see window(7) in
970#	*     the PC 7300 documentation.
971#	***************************************************************/
972#	#include <string.h>		/* needed for strcpy call */
973#	#include <sys/window.h>         /* needed for ioctl call */
974#	#define FNSIZE	60		/* font name size */
975#	#define ALTFONT  "/usr/lib/wfont/special.8.ft"  /* font file */
976#	/*
977#	*     The file /usr/lib/wfont/special.8.ft comes with the
978#	*     standard PC software.  It defines a graphics character set
979#	*     similar to that of the Teletype 5425 terminal.  To view
980#	*     this or other fonts in /usr/lib/wfont, use the command
981#	*     cfont <filename>.  For further information on fonts see
982#	*     cfont(1) in the PC 7300 documentation.
983#	*/
984#
985#	struct altfdata 	/* structure for alt font data */
986#	{
987#	short	altf_slot;		/* memory slot number */
988#	char	altf_name[FNSIZE];	/* font name (file name) */
989#	};
990#	ldfont()
991#	{
992#		int wd;		/* window in which altfont will be */
993#		struct altfdata altf;
994#		altf.altf_slot=1;
995#		strcpy(altf.altf_name,ALTFONT);
996#		for (wd =1; wd < 12; wd++) {
997#		     ioctl(wd, WIOCLFONT,&altf);
998#	        }
999#	}
1000#
1001# (att7300: added <civis>/<cnorm>/<ich1>/<invis> from the BSDI entry,
1002# they're confirmed by the man page for the System V display---esr)
1003#
1004att7300|unixpc|pc7300|3b1|s4|AT&T UNIX PC Model 7300,
1005	am, xon,
1006	cols#80, it#8, lines#24,
1007	bel=^G, blink=\E[9m, bold=\E[1m, cbt=\E^I, civis=\E[=1C,
1008	clear=\E[2J\E[H, cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD,
1009	cub1=^H, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
1010	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1011	cuu1=\E[A, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
1012	ed=\E[0J, el=\E[0K, home=\E[H, ich1=\E[@, il=\E[%p1%dL,
1013	il1=\E[L, ind=^J, invis=\E[9m, is1=\017\E[=1w, kBEG=\ENB,
1014	kCAN=\EOW, kCPY=\END, kCRT=\EON, kDC=\ENF, kDL=\ENE,
1015	kEND=\ENN, kEOL=\EOA, kFND=\EOX, kHLP=\EOM, kHOM=\ENM,
1016	kIC=\ENJ, kLFT=\ENK, kMOV=\ENC, kNXT=\ENH, kOPT=\EOR,
1017	kPRV=\ENG, kRDO=\EOT, kRIT=\ENL, kRPL=\EOY, kSAV=\EOO,
1018	kUND=\EOS, kbeg=\ENb, kbs=^H, kcan=\EOw, kcbt=\E[Z,
1019	kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
1020	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\ENf,
1021	ked=\E[J, kel=\EOa, kend=\E0, kext=\EOk, kf1=\EOc, kf2=\EOd,
1022	kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
1023	kfnd=\EOx, khlp=\EOm, khome=\E[H, kich1=\ENj, kind=\E[B,
1024	kmov=\ENc, kmrk=\ENi, knp=\E[U, knxt=\ENh, kopn=\EOv,
1025	kopt=\EOr, kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt,
1026	kref=\EOb, krfr=\ENa, kri=\E[A, krpl=\EOy, krst=\EOB,
1027	ksav=\EOo, kslt=\ENI, kund=\EOs, nel=\EE, rev=\E[7m, ri=\EM,
1028	rmso=\E[m, rmul=\E[m, sgr0=\E[0;10m, smso=\E[7m,
1029	smul=\E[4m,
1030
1031# Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1032# from SGI's terminfo database.  SGI's entry shows F9-F12 with the codes
1033# for the application keypad mode.  We have added iris-ansi-ap rather than
1034# change the original to keypad mode.
1035#
1036# (iris-ansi: added rmam/smam based on init string -- esr)
1037#
1038# This entry, and those derived from it, is used in xwsh (also known as
1039# winterm).  Some capabilities that do not fit into the terminfo model
1040# include the shift- and control-functionkeys:
1041#
1042# F1-F12 generate different codes when shift or control modifiers are used.
1043# For example:
1044#	F1      	\E[001q
1045#	shift F1	\E[013q
1046#	control-F1	\E[025q
1047#
1048# In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1049# \EOP to \EOS.  The shifted and control modifiers still do the same thing.
1050#
1051# The cursor keys also have different codes:
1052#	control-up	\E[162q
1053#	control-down	\E[165q
1054#	control-left	\E[159q
1055#	control-right	\E[168q
1056#
1057#	shift-up	\E[161q
1058#	shift-down	\E[164q
1059#	shift-left	\E[158q
1060#	shift-right	\E[167q
1061#
1062#	control-tab	\[072q
1063#
1064iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
1065	am,
1066	cols#80, it#8, lines#40,
1067	bel=^G, bold=\E[1m, clear=\E[H\E[2J,
1068	cnorm=\E[9/y\E[12/y\E[=6l, cr=^M, cub=\E[%p1%dD,
1069	cub1=\E[D, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC,
1070	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
1071	cuu1=\E[A, cvvis=\E[10/y\E[=1h\E[=2l\E[=6h,
1072	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
1073	home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=\ED,
1074	is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
1075	kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
1076	kRIT=\E[167q, kSPD=\E[218q, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1077	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
1078	kend=\E[146q, kent=^M, kf1=\E[001q, kf10=\E[010q,
1079	kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
1080	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
1081	kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
1082	knp=\E[154q, kpp=\E[150q, kprt=\E[209q, krmir=\E[146q,
1083	kspd=\E[217q, nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\,
1084	rc=\E8, rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
1085	sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m,
1086	tbc=\E[3g,
1087iris-ansi-ap|IRIS ANSI in application-keypad mode,
1088	is2=\E[?1l\E=\E[?7h, kent=\EOM, kf10=\E[010q,
1089	kf11=\E[011q, kf12=\E[012q, kf9=\E[009q, use=iris-ansi,
1090
1091# From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1092# (T.Dickey 98/1/24)
1093iris-color|xwsh|IRIX ANSI with color,
1094	ncv#33,
1095	csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
1096	ech=\E[%p1%dX, ich=\E[%p1%d@, rc=\E8, ritm=\E[23m,
1097	rmul=\E[24m, rs1=\Ec,
1098	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1099	sitm=\E[3m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
1100	use=klone+color, use=iris-ansi-ap,
1101
1102# The following is a version of the ibm-pc entry distributed with PC/IX,
1103# (Interactive Systems' System 3 for the Big Blue), modified by Richard
1104# McIntosh at UCB/CSM.  The :pt: and :uc: have been removed from the original,
1105# (the former is untrue, and the latter failed under UCB/man); standout and
1106# underline modes have been added.  Note: this entry describes the "native"
1107# capabilities of the PC monochrome display, without ANY emulation; most
1108# communications packages (but NOT PC/IX connect) do some kind of emulation.
1109pcix|PC/IX console,
1110	am, bw, eo,
1111	cols#80, lines#24,
1112	clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
1113	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
1114	home=\E[H, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m,
1115	smul=\E[4m,
1116
1117# (ibmpcx: this entry used to be known as ibmx.
1118# It formerly included the following extension capabilities:
1119#	:GC=b:GL=v:GR=t:RT=^J:\
1120#	:GH=\E[196g:GV=\E[179g:\
1121#	:GU=\E[193g:GD=\E[194g:\
1122#	:G1=\E[191g:G2=\E[218g:G3=\E[192g:G4=\E[217g:\
1123#	:CW=\E[E:NU=\E[F:RF=\E[G:RC=\E[H:\
1124#	:WL=\E[K:WR=\E[L:CL=\E[M:CR=\E[N:\
1125# I renamed GS/GE/WL/WR/CL/CR/PU/PD/HM/EN; also, removed a duplicate
1126# ":kh=\E[Y:".  Added IBM-PC forms characters and highlights, they match
1127# what was there before. -- esr)
1128ibmpcx|xenix|ibmx|IBM PC xenix console display,
1129	OTbs, am, msgr,
1130	cols#80, lines#25,
1131	clear=^L, cub1=^H, cud1=\E[B, cuf1=\E[C,
1132	cup=\E[%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
1133	ed=\E[J, el=\E[K, home=\E[H, ich1=\E[@, il1=\E[L, kbs=^H,
1134	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[d,
1135	kf1=\E[K, kf2=\E[L, kf3=\E[M, kf4=\E[N, khome=\E[Y, knp=\E[e,
1136	kpp=\E[Z, use=klone+acs, use=klone+sgr,
1137
1138#### QNX
1139#
1140
1141# QNX 4.0 Console
1142# Michael's original version of this entry had <am@>, <smcup=\Ei>,
1143# <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
1144# right corner without triggering a scroll.  The ncurses terminfo library can
1145# handle this case with the <ich1> capability, and prefers <am> for better
1146# optimization.  Bug: The <op> capability resets attributes.
1147# From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1148# (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
1149qnx|qnx4|qnx console,
1150	daisy, km, mir, msgr, xhpa, xt,
1151	colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8,
1152	acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t\303u\264v\301w\302x\263,
1153	bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ,
1154	cnorm=\Ey1, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
1155	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2,
1156	dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee,
1157	il1=\EE, ind=^J, kBEG=\377\356, kCAN=\377\263,
1158	kCMD=\377\267, kCPY=\377\363, kCRT=\377\364,
1159	kDL=\377\366, kEND=\377\301, kEOL=\377\311,
1160	kEXT=\377\367, kFND=\377\370, kHLP=\377\371,
1161	kHOM=\377\260, kIC=\377\340, kLFT=\377\264,
1162	kMOV=\377\306, kMSG=\377\304, kNXT=\377\272,
1163	kOPT=\377\372, kPRT=\377\275, kPRV=\377\262,
1164	kRDO=\377\315, kRES=\377\374, kRIT=\377\266,
1165	kRPL=\377\373, kSAV=\377\307, kSPD=\377\303,
1166	kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0,
1167	kclo=\377\343, kclr=\377\341, kcmd=\377\245,
1168	kcpy=\377\265, kcrt=\377\305, kctab=\377\237,
1169	kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246,
1170	kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274,
1171	ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320,
1172	kext=\377\270, kf1=\377\201, kf10=\377\212,
1173	kf11=\377\256, kf12=\377\257, kf13=\377\213,
1174	kf14=\377\214, kf15=\377\215, kf16=\377\216,
1175	kf17=\377\217, kf18=\377\220, kf19=\377\221,
1176	kf2=\377\202, kf20=\377\222, kf21=\377\223,
1177	kf22=\377\224, kf23=\377\333, kf24=\377\334,
1178	kf25=\377\225, kf26=\377\226, kf27=\377\227,
1179	kf28=\377\230, kf29=\377\231, kf3=\377\203,
1180	kf30=\377\232, kf31=\377\233, kf32=\377\234,
1181	kf33=\377\235, kf34=\377\236, kf35=\377\276,
1182	kf36=\377\277, kf37=\377\321, kf38=\377\322,
1183	kf39=\377\323, kf4=\377\204, kf40=\377\324,
1184	kf41=\377\325, kf42=\377\326, kf43=\377\327,
1185	kf44=\377\330, kf45=\377\331, kf46=\377\332,
1186	kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206,
1187	kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346,
1188	khlp=\377\350, khome=\377\240, khts=\377\342,
1189	kich1=\377\253, kil1=\377\273, kind=\377\261,
1190	kmov=\377\351, kmrk=\377\355, kmsg=\377\345,
1191	knp=\377\252, knxt=\377\312, kopn=\377\357,
1192	kopt=\377\353, kpp=\377\242, kprt=\377\255,
1193	kprv=\377\302, krdo=\377\336, kref=\377\354,
1194	kres=\377\360, krfr=\377\347, kri=\377\271,
1195	krmir=\377\313, krpl=\377\362, krst=\377\352,
1196	ksav=\377\361, kslt=\377\247, kspd=\377\335,
1197	ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER,
1198	rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER,
1199	rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d,
1200	setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei,
1201	smso=\E(, smul=\E[,
1202#
1203#
1204qnxt|qnxt4|QNX4 terminal,
1205	crxm, use=qnx4,
1206#
1207qnxm|QNX4 with mouse events,
1208	maddr#1,
1209	chr=\E/, cvr=\E", is1=\E/0t, mcub=\E/>1h, mcub1=\E/>7h,
1210	mcud=\E/>1h, mcud1=\E/>1l\E/>9h, mcuf=\E/>1h\E/>9l,
1211	mcuf1=\E/>7l, mcuu=\E/>6h, mcuu1=\E/>6l, rmicm=\E/>2l,
1212	smicm=\E/>2h, use=qnx4,
1213#
1214qnxw|QNX4 windows,
1215	xvpa, use=qnxm,
1216#
1217#	Monochrome QNX4 terminal or console. Setting this terminal type will
1218#	allow an application running on a color console to behave as if it
1219#	were a monochrome terminal. Output will be through stdout instead of
1220#	console writes because the term routines will recognize that the
1221#	terminal name starts with 'qnxt'.
1222#
1223qnxtmono|Monochrome QNX4 terminal or console,
1224	colors@, pairs@,
1225	scp@, use=qnx4,
1226
1227# From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1228# (esr: commented out <scp> and <rmcup> to avoid warnings.)
1229# (TD: derive from original qnx4 entry)
1230qnxt2|qnx 2.15 serial terminal,
1231	am,
1232	civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@,
1233	rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, use=qnx4,
1234
1235# QNX ANSI terminal definition
1236qansi-g|QNX ANSI,
1237	am, eslok, hs, xon,
1238	colors#8, cols#80, it#8, lines#25, ncv#19, pairs#64, wsl#80,
1239	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa,
1240	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
1241	clear=\E[2J\E[H, cnorm=\E[?25h\E[?12l, cr=^M,
1242	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
1243	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1244	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA, cuu1=\E[A,
1245	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
1246	dl=\E[%p1%dM, dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J,
1247	el=\E[K, el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l,
1248	fsl=\E[?6h\E8, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
1249	ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L,
1250	ind=\E[S, indn=\E[%p1%dS, invis=\E[9m,
1251	is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
1252	kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
1253	kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
1254	kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
1255	kbs=^H, kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa,
1256	kcmd=\E[G, kcpy=\E[g, kctab=\E[z, kcub1=\E[D, kcud1=\E[B,
1257	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
1258	kext=\E[y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
1259	kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt,
1260	kf18=\EOu, kf19=\EOv, kf2=\EOQ, kf20=\EOw, kf21=\EOx,
1261	kf22=\EOy, kf23=\EOz, kf24=\EOa, kf25=\E[1~, kf26=\E[2~,
1262	kf27=\E[3~, kf28=\E[4~, kf29=\E[5~, kf3=\EOR, kf30=\E[6~,
1263	kf31=\E[7~, kf32=\E[8~, kf33=\E[9~, kf34=\E[10~,
1264	kf35=\E[11~, kf36=\E[12~, kf37=\E[17~, kf38=\E[18~,
1265	kf39=\E[19~, kf4=\EOS, kf40=\E[20~, kf41=\E[21~,
1266	kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
1267	kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
1268	kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
1269	khome=\E[H, khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a,
1270	kmov=\ENi, kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo,
1271	kopt=\ENk, kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg,
1272	kri=\E[b, krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T,
1273	ktbc=\ENd, kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m,
1274	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\E[T,
1275	rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmso=\E[27m,
1276	rmul=\E[24m, rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
1277	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1278	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1279	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
1280	sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%t;7%;%?%p7%t;9%;m%?%p9%t\016%e\017%;,
1281	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smso=\E[7m,
1282	smul=\E[4m, tbc=\E[2g,
1283	tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH,
1284#
1285qansi|QNX ansi with console writes,
1286	daisy, xhpa, use=qansi-g,
1287#
1288qansi-t|QNX ansi without console writes,
1289	crxm, use=qansi,
1290#
1291qansi-m|QNX ansi with mouse,
1292	maddr#1,
1293	chr=\E[, cvr=\E], is1=\E[0t, mcub=\E[>1h, mcub1=\E[>7h,
1294	mcud=\E[>1h, mcud1=\E[>1l\E[>9h, mcuf=\E[>1h\E[>9l,
1295	mcuf1=\E[>7l, mcuu=\E[>6h, mcuu1=\E[>6l, rmicm=\E[>2l,
1296	smicm=\E[>2h, use=qansi,
1297#
1298qansi-w|QNX ansi for windows,
1299	xvpa, use=qansi-m,
1300
1301#### NetBSD consoles
1302#
1303# pcvt termcap database entries (corresponding to release 3.31)
1304# Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1305#
1306# (For the terminfo master file, I translated these into terminfo syntax.
1307# Then I dropped all the pseudo-HP entries. we don't want and can't use
1308# the :Xs: flag. Then I split :is: into a size-independent <is1> and a
1309# size-dependent <is2>.  Finally, I added <rmam>/<smam> -- esr)
1310
1311# NOTE: <ich1> has been taken out of this entry. for reference, it should
1312# be <ich1=\E[@>.  For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1313# (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
1314pcvtXX|pcvt vt200 emulator (DEC VT220),
1315	am, km, mir, msgr, xenl,
1316	it#8, vt#3,
1317	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~,
1318	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
1319	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
1320	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1321	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1322	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1323	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
1324	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
1325	il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS,
1326	is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=\177,
1327	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
1328	kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
1329	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
1330	khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
1331	nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100,
1332	ri=\EM, rin=\E[%p1%dT, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
1333	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
1334	rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1335	sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
1336	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1337
1338#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1339#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1340#	50 lines entries; 80 columns
1341pcvt25|dec vt220 emulation with 25 lines,
1342	cols#80, lines#25,
1343	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1344pcvt28|dec vt220 emulation with 28 lines,
1345	cols#80, lines#28,
1346	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1347pcvt35|dec vt220 emulation with 35 lines,
1348	cols#80, lines#35,
1349	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1350pcvt40|dec vt220 emulation with 40 lines,
1351	cols#80, lines#40,
1352	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1353pcvt43|dec vt220 emulation with 43 lines,
1354	cols#80, lines#43,
1355	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1356pcvt50|dec vt220 emulation with 50 lines,
1357	cols#80, lines#50,
1358	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1359
1360#	NetBSD/FreeBSD vt220 terminal emulator console (pc keyboard & monitor)
1361#	termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1362#	50 lines entries; 132 columns
1363pcvt25w|dec vt220 emulation with 25 lines and 132 cols,
1364	cols#132, lines#25,
1365	is2=\E[1;25r\E[25;1H, use=pcvtXX,
1366pcvt28w|dec vt220 emulation with 28 lines and 132 cols,
1367	cols#132, lines#28,
1368	is2=\E[1;28r\E[28;1H, use=pcvtXX,
1369pcvt35w|dec vt220 emulation with 35 lines and 132 cols,
1370	cols#132, lines#35,
1371	is2=\E[1;35r\E[35;1H, use=pcvtXX,
1372pcvt40w|dec vt220 emulation with 40 lines and 132 cols,
1373	cols#132, lines#40,
1374	is2=\E[1;40r\E[40;1H, use=pcvtXX,
1375pcvt43w|dec vt220 emulation with 43 lines and 132 cols,
1376	cols#132, lines#43,
1377	is2=\E[1;43r\E[43;1H, use=pcvtXX,
1378pcvt50w|dec vt220 emulation with 50 lines and 132 cols,
1379	cols#132, lines#50,
1380	is2=\E[1;50r\E[50;1H, use=pcvtXX,
1381
1382# Terminfo entries to enable the use of the ncurses library in colour on a
1383# NetBSD-arm32 console (only tested on a RiscPC).
1384# Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1385# modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1386# typo in invis - TD
1387arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
1388	am, bce, msgr, xenl, xon,
1389	cols#80, it#8, lines#30,
1390	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1391	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
1392	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1393	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1394	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
1395	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
1396	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
1397	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J,
1398	invis=\E[8m$<2>, ka1=\E[q, ka3=\E[s, kb2=\E[r, kbs=^H,
1399	kc1=\E[p, kc3=\E[n, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1400	kcuu1=\E[A, kent=\E[M, kf0=\E[y, kf1=\E[P, kf10=\E[x,
1401	kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t, kf6=\E[u, kf7=\E[v,
1402	kf8=\E[l, kf9=\E[w, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
1403	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
1404	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1405	sc=\E7,
1406	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<2>,
1407	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1408	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g, use=ecma+sgr,
1409	use=klone+color,
1410
1411arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
1412	cols#132, lines#50, use=arm100,
1413
1414# NetBSD/x68k console vt200 emulator. This port runs on a 68K machine
1415# manufactured by Sharp for the Japenese market.
1416# From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1417x68k|x68k-ite|NetBSD/x68k ITE,
1418	cols#96, lines#32,
1419	kclr=\E[9~, khlp=\E[28~, use=vt220,
1420
1421# <tv@pobox.com>:
1422# Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1423#
1424# (still unfinished, but good enough so far.)
1425ofcons,
1426	bw,
1427	cols#80, lines#30,
1428	bel=^G, blink=\2337;2m, bold=\2331m, clear=^L, cr=^M,
1429	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
1430	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
1431	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
1432	dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K,
1433	flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL,
1434	il1=\233L, ind=^J, invis=\2338m, kbs=^H, kcub1=\233D,
1435	kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P,
1436	kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
1437	kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
1438	kf9=\2330p, knp=\233/, kpp=\233?, nel=^M^J, rev=\2337m,
1439	rmso=\2330m, rmul=\2330m, sgr0=\2330m,
1440
1441# NetBSD "wscons" emulator in vt220 mode
1442# These are micro-minimal and probably need to be redone for real
1443# after the manner of the pcvt entries.
1444wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
1445	cols#80, lines#25, use=vt220,
1446
1447wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
1448	km,
1449	cols#80, lines#25, use=vt220,
1450
1451# `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1452# DECstation/pmax.
1453rcons|BSD rasterconsole,
1454	use=sun-il,
1455# Color version of above. Color currenly only provided by NetBSD.
1456rcons-color|BSD rasterconsole with ANSI color,
1457	bce,
1458	colors#8, pairs#64,
1459	op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=rcons,
1460
1461# mgterm -- MGL/MGL2, MobileGear Graphic Library
1462# for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1463# -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1464# -- compare with cons25w
1465mgterm,
1466	OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
1467	colors#8, cols#80, it#8, lines#18, pairs#64,
1468	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1469	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1470	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1471	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1472	dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, dl=\E[%p1%dM,
1473	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
1474	home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
1475	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
1476	indn=\E[%p1%dS, kb2=\E[E, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
1477	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177, kend=\E[F,
1478	kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N,
1479	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
1480	kf9=\E[U, khome=\E[H, kich1=\E[L, knp=\E[G, kpp=\E[I,
1481	nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT,
1482	rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7, setb=\E[4%p1%dm,
1483	setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
1484
1485#### FreeBSD console entries
1486#
1487# From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1488# Andrey Chernov maintains the FreeBSD termcap distributions.
1489#
1490# Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1491# or comment out the :cb: capability in the console entry.
1492#
1493# Alexander Lukyanov reports:
1494# I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1495# Now el1 clears not only to the line beginning, but also a large chunk
1496# of previous line. But there is another bug - ech does not work at all.
1497#
1498
1499# for syscons
1500# common entry without semigraphics
1501# Bug: The <op> capability resets attributes.
1502# Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1503# instance el1 does if the cursor is moved to the right margin first.  Removed
1504# by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1505#
1506# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1507# Note that this disables standout with color.
1508cons25w|ansiw|ansi80x25-raw|freebsd console (25-line raw mode),
1509	am, bce, bw, eo, msgr, npc,
1510	colors#8, cols#80, it#8, lines#25, ncv#21, pairs#64,
1511	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
1512	cnorm=\E[=0C, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
1513	cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
1514	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1515	cvvis=\E[=1C, dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m,
1516	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
1517	hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
1518	il=\E[%p1%dL, il1=\E[L, ind=\E[S, indn=\E[%p1%dS, kb2=\E[E,
1519	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1520	kcuu1=\E[A, kdch1=\177, kend=\E[F, kf1=\E[M, kf10=\E[V,
1521	kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q,
1522	kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
1523	kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rev=\E[7m,
1524	ri=\E[T, rin=\E[%p1%dT, rmso=\E[m, rs2=\E[x\E[m\Ec,
1525	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
1526	smso=\E[7m, vpa=\E[%i%p1%dd,
1527cons25|ansis|ansi80x25|freebsd console (25-line ansi mode),
1528	acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~\371,
1529	use=cons25w,
1530cons25-m|ansis-mono|ansi80x25-mono|freebsd console (25-line mono ansi mode),
1531	colors@, pairs@,
1532	bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m,
1533	use=cons25,
1534cons30|ansi80x30|freebsd console (30-line ansi mode),
1535	lines#30, use=cons25,
1536cons30-m|ansi80x30-mono|freebsd console (30-line mono ansi mode),
1537	lines#30, use=cons25-m,
1538cons43|ansi80x43|freebsd console (43-line ansi mode),
1539	lines#43, use=cons25,
1540cons43-m|ansi80x43-mono|freebsd console (43-line mono ansi mode),
1541	lines#43, use=cons25-m,
1542cons50|ansil|ansi80x50|freebsd console (50-line ansi mode),
1543	lines#50, use=cons25,
1544cons50-m|ansil-mono|ansi80x50-mono|freebsd console (50-line mono ansi mode),
1545	lines#50, use=cons25-m,
1546cons60|ansi80x60|freebsd console (60-line ansi mode),
1547	lines#60, use=cons25,
1548cons60-m|ansi80x60-mono|freebsd console (60-line mono ansi mode),
1549	lines#60, use=cons25-m,
1550cons25r|pc3r|ibmpc3r|cons25-koi8-r|freebsd console w/koi8-r cyrillic,
1551	acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m\204n\212q\0t\206u\207v\211w\210x\201y\230z\231~\225,
1552	use=cons25w,
1553cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|freebsd console w/koi8-r cyrillic (mono),
1554	colors@, pairs@,
1555	op@, rmul=\E[m, setab@, setaf@, smul=\E[4m, use=cons25r,
1556cons50r|cons50-koi8r|freebsd console w/koi8-r cyrillic (50 lines),
1557	lines#50, use=cons25r,
1558cons50r-m|cons50-koi8r-m|freebsd console w/koi8-r cyrillic (50-line mono),
1559	lines#50, use=cons25r-m,
1560cons60r|cons60-koi8r|freebsd console w/koi8-r cyrillic (60 lines),
1561	lines#60, use=cons25r,
1562cons60r-m|cons60-koi8r-m|freebsd console w/koi8-r cyrillic (60-line mono),
1563	lines#60, use=cons25r-m,
1564# ISO 8859-1 FreeBSD console
1565cons25l1|cons25-iso8859|freebsd console w/iso 8859-1 chars,
1566	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,
1567	use=cons25w,
1568cons25l1-m|cons25-iso-m|freebsd console w/iso 8859-1 chars (mono),
1569	colors@, pairs@,
1570	bold@, dim@, op@, rmul=\E[m, setab@, setaf@, smul=\E[4m,
1571	use=cons25l1,
1572cons50l1|cons50-iso8859|freebsd console w/iso 8859-1 chars (50 lines),
1573	lines#50, use=cons25l1,
1574cons50l1-m|cons50-iso-m|freebsd console w/iso 8859-1 chars (50-line mono),
1575	lines#50, use=cons25l1-m,
1576cons60l1|cons60-iso|freebsd console w/iso 8859-1 chars (60 lines),
1577	lines#60, use=cons25l1,
1578cons60l1-m|cons60-iso-m|freebsd console w/iso 8859-1 chars (60-line mono),
1579	lines#60, use=cons25l1-m,
1580
1581#### 386BSD and BSD/OS Consoles
1582#
1583
1584# This was the original 386BSD console entry (I think).
1585# Some places it's named oldpc3|oldibmpc3.
1586# From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
1587origpc3|origibmpc3|IBM PC 386BSD Console,
1588	OTbs, am, bw, eo, xon,
1589	cols#80, lines#25,
1590	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
1591	bold=\E[7m, clear=\Ec, cub1=^H, cud1=\E[B, cuf1=\E[C,
1592	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\E[J, el=\E[K,
1593	home=\E[H, ind=\E[S, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
1594	kcuu1=\E[A, khome=\E[Y, ri=\E[T, rmso=\E[1;0x\E[2;7x,
1595	rmul=\E[1;0x\E[2;7x, sgr0=\E[m\E[1;0x\E[2;7x,
1596	smso=\E[1;7x\E[2;0x, smul=\E[1;7x\E[2;0x,
1597
1598# description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
1599oldpc3|oldibmpc3|old IBM PC BSD/386 Console,
1600	OTbs, km,
1601	lines#25,
1602	bel=^G, bold=\E[=15F, cr=^M, cud1=^J, dim=\E[=8F, dl1=\E[M,
1603	ht=^I, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
1604	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L, kll=\E[F,
1605	knp=\E[G, kpp=\E[I, nel=^M^J, sgr0=\E[=R,
1606
1607# Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
1608# Note, the emulator supports many of the additional console features
1609# listed in the iBCS2 (e.g. character-set selection) though not all
1610# are described here.  This entry really ought to be upgraded.
1611# Also note, the console will also work with fewer lines after doing
1612# "stty rows NN", e.g. to use 24 lines.
1613# (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
1614# Bug: The <op> capability resets attributes.
1615bsdos-pc|IBM PC BSD/OS Console,
1616	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,
1617	use=bsdos-pc-nobold,
1618
1619bsdos-pc-nobold|BSD/OS PC console w/o bold,
1620	use=klone+color, use=bsdos-pc-m,
1621
1622bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
1623	OTbs, am, eo, km, xon,
1624	cols#80, it#8, lines#25,
1625	bel=^G, clear=\Ec, cr=^M, cub=\E[%p1%dD, cub1=^H,
1626	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
1627	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1628	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
1629	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
1630	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kich1=\E[L,
1631	kll=\E[F, knp=\E[G, kpp=\E[I, nel=^M^J, rc=\E8, sc=\E7,
1632	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%;,
1633	use=klone+sgr,
1634
1635# Old names for BSD/OS PC console used in releases before 4.1.
1636pc3|BSD/OS on the PC Console,
1637	use=bsdos-pc-nobold,
1638ibmpc3|pc3-bold|BSD/OS on the PC Console with bold instead of underline,
1639	use=bsdos-pc,
1640
1641# BSD/OS on the SPARC
1642bsdos-sparc|Sun SPARC BSD/OS Console,
1643	use=sun,
1644
1645# BSD/OS on the PowerPC
1646bsdos-ppc|PowerPC BSD/OS Console,
1647	use=bsdos-pc,
1648
1649#### DEC VT52
1650# (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
1651vt52|dec vt52,
1652	OTbs,
1653	cols#80, it#8, lines#24,
1654	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1655	bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
1656	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
1657	el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
1658	kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
1659
1660#### DEC VT100 and compatibles
1661#
1662# DEC terminals from the vt100 forward are collected here. Older DEC terminals
1663# and micro consoles can be found in the `obsolete' section.  More details on
1664# the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
1665# found near the end of this file.
1666#
1667# Except where noted, these entries are DEC's official terminfos.
1668# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
1669# Engineering for more information.  Updated terminfos and termcaps
1670# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
1671#
1672# In October 1995 DEC sold its terminals business, including the VT and Dorio
1673# line and trademark, to SunRiver Data Systems.  SunRiver has since changed
1674# its name to Boundless Technologies; see http://www.boundless.com.
1675#
1676
1677# NOTE:  Any VT100 emulation, whether in hardware or software, almost
1678# certainly includes what DEC called the `Level 1 editing extension' codes;
1679# only the very oldest VT100s lacked these and there probably aren't any of
1680# those left alive.  To capture these, use one of the VT102 entries.
1681#
1682# Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
1683# since the cursor is left in a different position while in the
1684# weird state (concept at beginning of next line, vt100 at end
1685# of this line) so all versions of vi before 3.7 don't handle
1686# <xenl> right on vt100. The correct way to handle <xenl> is when
1687# you output the char in column 80, immediately output CR LF
1688# and then assume you are in column 1 of the next line. If <xenl>
1689# is on, am should be on too.
1690#
1691# I assume you have smooth scroll off or are at a slow enough baud
1692# rate that it doesn't matter (1200? or less). Also this assumes
1693# that you set auto-nl to "on", if you set it off use vt100-nam
1694# below.
1695#
1696# The padding requirements listed here are guesses. It is strongly
1697# recommended that xon/xoff be enabled, as this is assumed here.
1698#
1699# The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the
1700# tab settings are in non-volatile memory and don't need to be
1701# reset upon login. Also setting the number of columns glitches
1702# the screen annoyingly. You can type "reset" to get them set.
1703#
1704# The VT100 series terminals have cursor ("arrows") keys which can operate
1705# in two different modes: Cursor Mode and Application Mode.  Cursor Mode
1706# is the reset state, and is assumed to be the normal state.  Application
1707# Mode is the "set" state.  In Cursor Mode, the cursor keys transmit
1708# "Esc [ {code}" sequences, conforming to ANSI standards.  In Application
1709# Mode, the cursor keys transmit "Esc O <code>" sequences.  Application Mode
1710# was provided primarily as an aid to the porting of VT52 applications.  It is
1711# assumed that the cursor keys are normally in Cursor Mode, and expected that
1712# applications such as vi will always transmit the <smkx> string.  Therefore,
1713# the definitions for the cursor keys are made to match what the terminal
1714# transmits after the <smkx> string is transmitted.  If the <smkx> string
1715# is a null string or is not defined, then cursor keys are assumed to be in
1716# "Cursor Mode", and the cursor keys definitions should match that assumption,
1717# else the application may fail.  It is also expected that applications will
1718# always transmit the <rmkx> string to the terminal before they exit.
1719#
1720# The VT100 series terminals have an auxiliary keypad, commonly referred to as
1721# the "Numeric Keypad", because it is a cluster of numeric and function keys.
1722# The Numeric Keypad which can operate in two different modes: Numeric Mode and
1723# Application Mode.  Numeric Mode is the reset state, and is assumed to be
1724# the normal state.  Application Mode is the "set" state.  In Numeric Mode,
1725# the numeric and punctuation keys transmit ASCII 7-bit characters, and the
1726# Enter key transmits the same as the Return key (Note: the Return key
1727# can be configured to send either LF (\015) or CR LF).  In Application Mode,
1728# all the keypad keys transmit "Esc O {code}" sequences.  The PF1 - PF4 keys
1729# always send the same "Esc O {code}" sequences.  It is assumed that the keypad
1730# is normally in Numeric Mode.  If an application requires that the keypad be
1731# in Application Mode then it is expected that the user, or the application,
1732# will set the TERM environment variable to point to a terminfo entry which has
1733# defined the <smkx> string to include the codes that switch the keypad into
1734# Application Mode, and the terminfo entry will also define function key
1735# fields to match the Application Mode control codes.  If the <smkx> string
1736# is a null string or is not defined, then the keypad is assumed to be in
1737# Numeric Mode.  If the <smkx> string switches the keypad into Application
1738# Mode, it is expected that the <rmkx> string will contain the control codes
1739# necessary to reset the keypad to "Normal" mode, and it is also expected that
1740# applications which transmit the <smkx> string will also always transmit the
1741# <rmkx> string to the terminal before they exit.
1742#
1743# Here's a diagram of the VT100 keypad keys with their bindings.
1744# The top line is the name of the key (some DEC keyboards have the keys
1745# labelled somewhat differently, like GOLD instead of PF1, but this is
1746# the most "official" name).  The second line is the escape sequence it
1747# generates in Application Keypad mode (where "$" means the ESC
1748# character).  The third line contains two items, first the mapping of
1749# the key in terminfo, and then in termcap.
1750#   _______________________________________
1751#  |   PF1   |   PF2   |   PF3   |   PF4   |
1752#  |   $OP   |   $OQ   |   $OR   |   $OS   |
1753#  |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
1754#  |    7         8         9         -    |
1755#  |   $Ow   |   $Ox   |   $Oy   |   $Om   |
1756#  |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
1757#  |    4    |    5    |    6    |    ,    |
1758#  |   $Ot   |   $Ou   |   $Ov   |   $Ol   |
1759#  |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
1760#  |    1    |    2    |    3    |         |
1761#  |   $Oq   |   $Or   |   $Os   |  enter  |
1762#  |_ka1__K1_|_kb2__K2_|_ka3__K3_|  $OM    |
1763#  |         0         |   .     |         |
1764#  |        $Op        |  $On    |         |
1765#  |___kc1_______K4____|_kc3__K5_|_kent_@8_|
1766#
1767# And here, for those of you with orphaned VT100s lacking documentation, is
1768# a description of the soft switches invoked when you do `Set Up'.
1769#
1770#  Scroll 0-Jump               Shifted 3   0-#
1771#  |      1-Smooth             |           1-British pound sign
1772#  | Autorepeat 0-Off          | Wrap Around 0-Off
1773#  | |          1-On           | |           1-On
1774#  | | Screen 0-Dark Bkg       | | New Line 0-Off
1775#  | | |      1-Light Bkg      | | |        1-On
1776#  | | | Cursor 0-Underline    | | | Interlace 0-Off
1777#  | | | |      1-Block        | | | |         1-On
1778#  | | | |                     | | | |
1779#  1 1 0 1       1 1 1 1       0 1 0 0       0 0 1 0       <--Standard Settings
1780#                | | | |                     | | | |
1781#                | | | Auto XON/XOFF 0-Off   | | | Power 0-60 Hz
1782#                | | |               1-On    | | |       1-50 Hz
1783#                | | Ansi/VT52 0-VT52        | | Bits Per Char. 0-7 Bits
1784#                | |           1-ANSI        | |                1-8 Bits
1785#                | Keyclick 0-Off            | Parity 0-Off
1786#                |          1-On             |        1-On
1787#                Margin Bell 0-Off           Parity Sense 0-Odd
1788#                            1-On                         1-Even
1789#
1790# The following SET-UP modes are assumed for normal operation:
1791#	ANSI_MODE	AUTO_XON/XOFF_ON	NEWLINE_OFF	80_COLUMNS
1792#	WRAP_AROUND_ON  JUMP_SCROLL_OFF
1793# Other SET-UP modes may be set for operator convenience or communication
1794# requirements; I recommend
1795#	AUTOREPEAT_ON	BLOCK_CURSOR	MARGIN_BELL_OFF    SHIFTED_3_#
1796# Unless you have a graphics add-on such as Digital Engineering's VT640
1797# (and even then, whenever it can be arranged!) you should set
1798#	INTERLACE_OFF
1799#
1800# (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
1801vt100|vt100-am|dec vt100 (w/advanced video),
1802	OTbs, am, msgr, xenl, xon,
1803	cols#80, it#8, lines#24, vt#3,
1804	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1805	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
1806	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1807	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
1808	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
1809	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
1810	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
1811	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
1812	ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
1813	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
1814	kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
1815	kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
1816	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
1817	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
1818	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1819	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
1820	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1821	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
1822vt100nam|vt100-nam|vt100 no automargins,
1823	am@, xenl@, use=vt100-am,
1824vt100-vb|dec vt100 (w/advanced video) & no beep,
1825	bel@, flash=\E[?5h\E[?5l, use=vt100,
1826
1827# Ordinary vt100 in 132 column ("wide") mode.
1828vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
1829	cols#132, lines#24,
1830	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
1831vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video no automargin),
1832	cols#132, lines#14, vt@,
1833	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam,
1834
1835# vt100 with no advanced video.
1836vt100-nav|vt100 without advanced video option,
1837	xmc#1,
1838	blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m,
1839	smul@, use=vt100,
1840vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option),
1841	cols#132, lines#14, use=vt100-nav,
1842
1843# vt100 with one of the 24 lines used as a status line.
1844# We put the status line on the top.
1845vt100-s|vt100-s-top|vt100-top-s|vt100 for use with top sysline,
1846	eslok, hs,
1847	lines#23,
1848	clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr,
1849	cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8,
1850	fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8,
1851	tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am,
1852
1853# Status line at bottom.
1854# Clearing the screen will clobber status line.
1855vt100-s-bot|vt100-bot-s|vt100 for use with bottom sysline,
1856	eslok, hs,
1857	lines#23,
1858	dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H,
1859	tsl=\E7\E[24;%p1%dH\E[1K, use=vt100-am,
1860
1861# Most of the `vt100' emulators out there actually emulate a vt102
1862# This entry (or vt102-nsgr) is probably the right thing to use for
1863# these.
1864vt102|dec vt102,
1865	mir,
1866	dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h,
1867	use=vt100,
1868vt102-w|dec vt102 in wide mode,
1869	cols#132,
1870	rs3=\E[?3h, use=vt102,
1871
1872# Many brain-dead PC comm programs that pretend to be `vt100-compatible'
1873# fail to interpret the ^O and ^N escapes properly.  Symptom: the <sgr0>
1874# string in the canonical vt100 entry above leaves the screen littered
1875# with little  snowflake or star characters (IBM PC ROM character \017 = ^O)
1876# after highlight turnoffs.  This entry should fix that, and even leave
1877# ACS support working, at the cost of making multiple-highlight changes
1878# slightly more expensive.
1879# From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
1880vt102-nsgr|vt102 no sgr (use if you see snowflakes after highlight changes),
1881	sgr@, sgr0=\E[m, use=vt102,
1882
1883# VT125 Graphics CRT.  Clear screen also erases graphics
1884vt125|vt125 graphics terminal,
1885	clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
1886
1887# This isn't a DEC entry, it came from University of Wisconsin.
1888# (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
1889vt131|dec vt131,
1890	OTbs, am, xenl,
1891	cols#80, it#8, lines#24, vt#3,
1892	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
1893	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
1894	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
1895	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
1896	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
1897	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
1898	kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
1899	kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>, ri=\EM$<5/>,
1900	rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>,
1901	rmul=\E[m$<2/>,
1902	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1903	sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
1904	smso=\E[7m$<2/>, smul=\E[4m$<2/>,
1905
1906# vt132 - like vt100 but slower and has ins/del line and such.
1907# I'm told that <smir>/<rmir> are backwards in the terminal from the
1908# manual and from the ANSI standard, this describes the actual
1909# terminal. I've never actually used a vt132 myself, so this
1910# is untested.
1911#
1912vt132|DEC vt132,
1913	xenl,
1914	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
1915	ip=$<7>, rmir=\E[4h, smir=\E[4l, use=vt100,
1916
1917# This vt220 description maps F5--F9 to the second block of function keys
1918# at the top of the keyboard.  The "DO" key is used as F10 to avoid conflict
1919# with the key marked (ESC) on the vt220.  See vt220d for an alternate mapping.
1920# PF1--PF4 are used as F1--F4.
1921#
1922vt220-old|vt200-old|DEC VT220 in vt100 emulation mode,
1923	OTbs, OTpt, am, mir, xenl, xon,
1924	cols#80, lines#24, vt#3,
1925	OTnl=^J,
1926	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1927	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
1928	clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
1929	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
1930	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
1931	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
1932	if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>,
1933	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B,
1934	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\EOP,
1935	kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
1936	kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~,
1937	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rc=\E8,
1938	rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
1939	ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
1940	rmso=\E[27m, rmul=\E[24m,
1941	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
1942	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
1943	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
1944	smso=\E[7m, smul=\E[4m,
1945
1946# A much better description of the VT200/220; used to be vt220-8
1947# changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
1948# designation to accommodate bug in pcvt -TD
1949vt220|vt200|dec vt220,
1950	OTbs, am, mc5i, mir, msgr, xenl, xon,
1951	cols#80, it#8, lines#24, vt#3,
1952	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1953	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
1954	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
1955	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
1956	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
1957	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
1958	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
1959	flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I, hts=\EH,
1960	ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
1961	il=\E[%p1%dL, il1=\E[L, ind=\ED,
1962	is2=\E[?7h\E[>\E[?1h\E F\E[?4l, kbs=^H, kcub1=\E[D,
1963	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~,
1964	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
1965	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
1966	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
1967	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
1968	khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~,
1969	kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[i,
1970	mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
1971	rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m,
1972	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=\E(0$<2>,
1973	smam=\E[?7h, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
1974vt220-w|vt200-w|DEC vt220 in wide mode,
1975	cols#132,
1976	rs3=\E[?3h, use=vt220,
1977vt220-8bit|vt220-8|vt200-8bit|vt200-8|dec vt220/200 in 8-bit mode,
1978	OTbs, am, mc5i, mir, msgr, xenl, xon,
1979	cols#80, it#8, lines#24, vt#3,
1980	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1981	bel=^G, blink=\2335m, bold=\2331m, clear=\233H\233J, cr=^M,
1982	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
1983	cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C,
1984	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
1985	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
1986	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K, enacs=\E)0,
1987	flash=\233?5h$<200/>\233?5l, home=\233H, ht=^I, hts=\EH,
1988	ich=\233%p1%d@, if=/usr/share/tabset/vt100,
1989	il=\233%p1%dL, il1=\233L, ind=\ED,
1990	is2=\233?7h\233>\233?1h\E F\233?4l, kbs=^H,
1991	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
1992	kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
1993	kf13=\23325~, kf14=\23326~, kf17=\23331~, kf18=\23332~,
1994	kf19=\23333~, kf2=\EOQ, kf20=\23334~, kf3=\EOR, kf4=\EOS,
1995	kf6=\23317~, kf7=\23318~, kf8=\23319~, kf9=\23320~,
1996	kfnd=\2331~, khlp=\23328~, khome=\233H, kich1=\2332~,
1997	knp=\2336~, kpp=\2335~, krdo=\23329~, kslt=\2334~, lf1=pf1,
1998	lf2=pf2, lf3=pf3, lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i,
1999	nel=\EE, rc=\E8, rev=\2337m, ri=\EM, rmacs=^O, rmam=\233?7l,
2000	rmir=\2334l, rmso=\23327m, rmul=\23324m, rs1=\233?3l,
2001	sc=\E7, sgr0=\233m, smacs=^N, smam=\233?7h, smir=\2334h,
2002	smso=\2337m, smul=\2334m, tbc=\2333g,
2003
2004#
2005# vt220d:
2006# This vt220 description regards F6--F10 as the second block of function keys
2007# at the top of the keyboard.  This mapping follows the description given
2008# in the VT220 Programmer Reference Manual and agrees with the labeling
2009# on some terminals that emulate the vt220.  There is no support for an F5.
2010# See vt220 for an alternate mapping.
2011#
2012vt220d|DEC VT220 in vt100 mode with DEC function key labeling,
2013	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2014	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2015	kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~,
2016	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, use=vt220-old,
2017
2018vt220-nam|v200-nam|VT220 in vt100 mode with no auto margins,
2019	am@,
2020	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2021
2022# vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2023# (not an official DEC entry!)
2024# The problem with real vt220 terminals is they don't send escapes when in
2025# in vt220 mode.  This can be gotten around two ways.  1> don't send
2026# escapes or 2> put the vt220 into vt100 mode and use all the nifty
2027# features of vt100 advanced video which it then has.
2028#
2029# This entry takes the view of putting a vt220 into vt100 mode so
2030# you can use the escape key in emacs and everything else which needs it.
2031#
2032# You probably don't want to use this on a VMS machine since VMS will think
2033# it has a vt220 and will get fouled up coming out of emacs
2034#
2035# From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2036# (Added vt100 <rc>,<sc> to quiet a tic warning -- esr)
2037vt200-js|vt220-js|dec vt200 series with jump scroll,
2038	am,
2039	cols#80,
2040	bel=^G, clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2041	cub1=^H, cud1=^J, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
2042	dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
2043	il1=\E[L, ind=\ED,
2044	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,
2045	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2046	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=^M\ED, rc=\E8,
2047	rf=/usr/lib/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l,
2048	rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m,
2049	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7, smdc=,
2050	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
2051
2052# This was DEC's vt320.  Use the purpose-built one below instead
2053#vt320|DEC VT320 in vt100 emulation mode,
2054#	use=vt220,
2055
2056#
2057# Use v320n for SCO's LYRIX.  Otherwise, use Adam Thompson's vt320-nam.
2058#
2059vt320nam|v320n|DEC VT320 in vt100 emul. mode with NO AUTO WRAP mode,
2060	am@,
2061	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2062
2063# These entries are not DEC's official ones, they were purpose-built for the
2064# VT320.  Here are the designer's notes:
2065# <kel> is end on a PC kbd.  Actually 'select' on a VT.  Mapped to
2066# 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2067# khome is Home on a PC kbd.  Actually 'FIND' on a VT.
2068# Things that use <knxt> usually use tab anyways... and things that don't use
2069# tab usually use <knxt> instead...
2070# kprv is same as tab - Backtab is useless...
2071# I left out <sgr> because of its RIDICULOUS complexity,
2072# and the resulting fact that it causes the termcap translation of the entry
2073# to SMASH the 1k-barrier...
2074# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2075# (vt320: uncommented <fsl> --esr)
2076vt320|vt300|dec vt320 7 bit terminal,
2077	am, eslok, hs, mir, msgr, xenl,
2078	cols#80, lines#24, wsl#80,
2079	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2080	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2081	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2082	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2083	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2084	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2085	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2086	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, fsl=\E[0$},
2087	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL,
2088	il1=\E[L, ind=\ED,
2089	is2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2090	ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs,
2091	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2092	kdch1=\E[3~, kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
2093	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2094	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2095	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
2096	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2097	khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I, kpp=\E[5~,
2098	kprv=\E[Z, kslt=\E[4~, mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
2099	nel=\EE, rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt300,
2100	ri=\EM, rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l,
2101	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2102	rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2103	sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2104	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2105	tsl=\E[1$}\E[H\E[K,
2106vt320-nam|vt300-nam|dec vt320 7 bit terminal with no am to make SAS happy,
2107	am@,
2108	is2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2109	rs2=\E>\E[?3l\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2110	use=vt320,
2111# We have to init 132-col mode, not 80-col mode.
2112vt320-w|vt300-w|dec vt320 wide 7 bit terminal,
2113	cols#132, wsl#132,
2114	is2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2115	rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2116	use=vt320,
2117vt320-w-nam|vt300-w-nam|dec vt320 wide 7 bit terminal with no am,
2118	am@,
2119	is2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2120	rs2=\E>\E[?3h\E[?4l\E[5?l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2121	use=vt320-w,
2122
2123# VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2124#   which are pretty much a superset of the VT320.  They have the
2125#   host writable status line, yet another different DRCS matrix size,
2126#   and such, but they add the DEC Technical character set, Multiple text
2127#   pages, selectable length pages, and the like.  The difference between
2128#   the vt330 and vt340 is that the latter has only 2 planes and a monochrome
2129#   monitor, the former has 4 planes and a color monitor.  These terminals
2130#   support VT131 and ANSI block mode, but as with much of these things,
2131#   termcap/terminfo doesn't deal with these features.
2132#
2133# Note that this entry is are set up in what was the standard way for GNU
2134# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2135# keys were switched into application mode at the same time the numeric pad
2136# is switched into application mode.  This changes the definitions of the
2137# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2138# your termcap or terminfo entry,
2139#
2140# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2141# (vt340: string capability "sb=\E[M" corrected to "sr";
2142# also, added <rmam>/<smam> based on the init string -- esr)
2143vt340|dec-vt340|vt330|dec-vt330|dec vt340 graphics terminal with 24 line page,
2144	am, eslok, hs, mir, msgr, xenl, xon,
2145	cols#80, it#8, lines#24, vt#3,
2146	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2147	blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
2148	cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2149	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
2150	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2151	cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP,
2152	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2153	dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
2154	flash=\E[?5h\E[?5l$<200/>, fsl=\E[$}, home=\E[H, ht=^I,
2155	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
2156	is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2157	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2158	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2159	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2160	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2161	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O,
2162	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2163	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
2164	smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
2165	smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
2166
2167# DEC doesn't supply a vt400 description, so we add Daniel Glasser's
2168# (originally written with vt420 as its primary name, and usable for it).
2169#
2170# VT400/420 -- This terminal is a superset of the vt320.  It adds the multiple
2171#    text pages and long text pages with selectable length of the vt340, along
2172#    with left and right margins, rectangular area text copy, fill, and erase
2173#    operations, selected region character attribute change operations,
2174#    page memory and rectangle checksums, insert/delete column, reception
2175#    macros, and other features too numerous to remember right now.  TERMCAP
2176#    can only take advantage of a few of these added features.
2177#
2178# Note that this entry is are set up in what was the standard way for GNU
2179# Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2180# keys were switched into application mode at the same time the numeric pad
2181# is switched into application mode.  This changes the definitions of the
2182# arrow keys.  Emacs v19 is smarter and mines its keys directly out of
2183# your termcap entry,
2184#
2185# From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2186# (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2187# also, added <rmam>/<smam> based on the init string -- esr)
2188vt400|vt400-24|dec-vt400|dec vt400 24x80 column autowrap,
2189	am, eslok, hs, mir, msgr, xenl, xon,
2190	cols#80, it#8, lines#24, vt#3,
2191	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2192	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2193	clear=\E[H\E[J$<10/>, cnorm=\E[?25h, cr=^M,
2194	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2195	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2196	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2197	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2198	dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J$<10/>,
2199	el=\E[K$<4/>, flash=\E[?5h\E[?5l$<200/>, fsl=\E[$},
2200	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2201	il=\E[%p1%dL, il1=\E[L, ind=\ED,
2202	is2=\E<\E F\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2203	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2204	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2205	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2206	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
2207	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=^O,
2208	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2209	rmul=\E[24m, rs1=\E<\E[?3l\E[!p\E[?7h, sc=\E7, sgr0=\E[m,
2210	smacs=^N, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
2211	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2212	tsl=\E[2$~\E[1$}\E[1;%dH,
2213
2214# (vt420: I removed <kf0>, it collided with <kf10>.  I also restored
2215# a missing <sc> -- esr)
2216vt420|DEC VT420,
2217	am, mir, xenl, xon,
2218	cols#80, lines#24, vt#3,
2219	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2220	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2221	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2222	cub1=^H, cud1=\E[B, cuf1=\E[C,
2223	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2224	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2225	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2226	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2227	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2228	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2229	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2230	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2231	kslt=\E[4~, rc=\E8, rev=\E[7m$<2>,
2232	rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B$<4>,
2233	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
2234	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2235	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2236	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2237	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2238	smkx=\E=, smso=\E[7m, smul=\E[4m,
2239
2240#
2241# DEC VT220 and up support DECUDK (user-defined keys).  DECUDK (i.e., pfx)
2242# takes two parameters, the key and the string.  Translating the key is
2243# straightforward (keys 1-5 are not defined on real terminals, though some
2244# emulators define these):
2245#
2246#               if (key < 16) then  value = key;
2247#               else if (key < 21) then value = key + 1;
2248#               else if (key < 25) then value = key + 2;
2249#               else if (key < 27) then value = key + 3;
2250#               else if (key < 30) then value = key + 4;
2251#               else value = key + 5;
2252#
2253# The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
2254# There's no provision in terminfo for emitting a string in this format, so the
2255# application has to know it.
2256#
2257vt420pc|DEC VT420 w/PC keyboard,
2258	kdch1=\177, kend=\E[4~, kf1=\E[11~, kf10=\E[21~,
2259	kf11=\E[23~, kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~,
2260	kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
2261	kf18=\E[17;2~, kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~,
2262	kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[23;2~,
2263	kf24=\E[24;2~, kf25=\E[23~, kf26=\E[24~, kf27=\E[25~,
2264	kf28=\E[26~, kf29=\E[28~, kf3=\E[13~, kf30=\E[29~,
2265	kf31=\E[31~, kf32=\E[32~, kf33=\E[33~, kf34=\E[34~,
2266	kf35=\E[35~, kf36=\E[36~, kf37=\E[23;2~, kf38=\E[24;2~,
2267	kf39=\E[25;2~, kf4=\E[14~, kf40=\E[26;2~, kf41=\E[28;2~,
2268	kf42=\E[29;2~, kf43=\E[31;2~, kf44=\E[32;2~,
2269	kf45=\E[33;2~, kf46=\E[34;2~, kf47=\E[35;2~,
2270	kf48=\E[36;2~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2271	kf8=\E[19~, kf9=\E[20~, khome=\E[H,
2272	pctrm=USR_TERM\:vt420pcdos\:,
2273	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\\,
2274	use=vt420,
2275
2276vt420pcdos|DEC VT420 w/PC for DOS Merge,
2277	lines#25,
2278	dispc=%?%p1%{19}%=%t\E\023\021%e%p1%{32}%<%t\E%p1%c%e%p1%{127}%=%t\E\177%e%p1%c%;,
2279	pctrm@,
2280	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@,
2281	sgr0=\E[m, smsc=\E[?1;2r\E[34h, use=vt420pc,
2282
2283vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys,
2284	kdch1=\177, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
2285	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2286	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2287	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
2288	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2289	khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS,
2290	use=vt420,
2291
2292vt510|DEC VT510,
2293	use=vt420,
2294vt510pc|DEC VT510 w/PC keyboard,
2295	use=vt420pc,
2296vt510pcdos|DEC VT510 w/PC for DOS Merge,
2297	use=vt420pcdos,
2298
2299# VT520/VT525
2300#
2301# The VT520 is a monochrome text terminal capable of managing up to
2302# four independent sessions in the terminal.  It has multiple ANSI
2303# emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
2304# and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
2305# 925 910+, ADDS A2).  This terminfo data is for the ANSI emulations only.
2306#
2307# Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
2308# [Alt]/[Print Screen] depending upon which keyboard and which
2309# terminal mode is being used.  If Set-Up has been disabled or
2310# assigned to an unknown key, Set-Up may be entered by pressing
2311# [F3] as the first key after power up, regardless of keyboard type.
2312# (vt520: I added <rmam>/<smam> based on the init string, also <sc> -- esr)
2313vt520|DEC VT520,
2314	am, mir, xenl, xon,
2315	cols#80, lines#24, vt#3,
2316	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2317	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2318	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2319	cub1=^H, cud1=\E[B, cuf1=\E[C,
2320	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2321	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2322	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2323	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2324	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2325	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2326	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2327	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2328	kslt=\E[4~,
2329	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\\,
2330	rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2331	ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2332	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2333	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2334	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2335	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2336	smso=\E[7m, smul=\E[4m,
2337
2338# (vt525: I added <rmam>/<smam> based on the init string;
2339# removed <rmso>=\E[m, <rmul>=\E[m, added <sc> -- esr)
2340vt525|DEC VT525,
2341	am, mir, xenl, xon,
2342	cols#80, lines#24, vt#3,
2343	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2344	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2345	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
2346	cub1=^H, cud1=\E[B, cuf1=\E[C,
2347	cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
2348	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
2349	if=/usr/share/tabset/vt300, il1=\E[L, ind=\ED,
2350	is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p, kbs=^H,
2351	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2352	kdch1=\E[3~, kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR,
2353	kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~,
2354	kf9=\E[21~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2355	kslt=\E[4~,
2356	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\\,
2357	rc=\E8, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2358	ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2359	rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2360	rmso=\E[m, rmul=\E[m, rs3=\E[?67h\E[64;1"p, sc=\E7,
2361	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;$<2>,
2362	sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2363	smso=\E[7m, smul=\E[4m,
2364
2365#### VT100 emulations
2366#
2367
2368# John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
2369# (the best Windows telnet as of September 1995) presents the name `dec-vt100'
2370# to telnetd.   Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
2371# that this works best with a stock vt100 entry.
2372dec-vt100|EWAN telnet's vt100 emulation,
2373	use=vt100,
2374
2375# From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
2376dec-vt220|DOS tnvt200 terminal emulator,
2377	am@, use=vt220,
2378
2379# Zstem340 is an (IMHO) excellent VT emulator for PC's.  I recommend it to
2380# anyone who needs PC VT340 emulation. (or anything below that level, for
2381# that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
2382# RDBM systems, it includes ReGIS and SiXel support!  I'm impressed...
2383# I can send the address if requested.
2384# (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
2385# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2386z340|zstem vt340 terminal emulator 132col 42line,
2387	lines#42,
2388	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2389	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
2390	use=vt320-w,
2391z340-nam|zstem vt340 terminal emulator 132col 42line (no automatic margins),
2392	am@,
2393	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2394	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
2395	use=z340,
2396
2397# CRT is shareware.  It implements some xterm features, including mouse.
2398crt|crt-vt220|CRT 2.3 emulating VT220,
2399	bce, msgr,
2400	ncv@,
2401	hts=\EH, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2402	use=vt220, use=ecma+color,
2403
2404# This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
2405# T. Teranishi dated Mar 10, 1998.  It is a free software terminal emulator
2406# (communication program) which supports:
2407#
2408#	- Serial port connections.
2409#	- TCP/IP (telnet) connections.
2410#	- VT100 emulation, and selected VT200/300 emulation.
2411#	- TEK4010 emulation.
2412#	- File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
2413#	  Quick-VAN).
2414#	- Scripts using the "Tera Term Language".
2415#	- Japanese and Russian character sets.
2416#
2417# The program does not come with terminfo or termcap entries.  However, the
2418# emulation (testing with vttest and ncurses) is reasonably close to vt100 (no
2419# vt52 or doublesize character support; blinking is done with color).  Besides
2420# the HPA, VPA extensions it also implements CPL and CNL.
2421#
2422# All of the function keys can be remapped.  This description shows the default
2423# mapping, as installed.  Both vt100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
2424# are supported.  F13-F20 are obtained by shifting F3-F10.  The editing keypad
2425# is laid out like vt220, rather than the face codes on the PC keyboard, i.e,
2426#	kfnd	Insert
2427#	kslt	Delete
2428#	kich1	Home
2429#	kdch1	PageUp
2430#	kpp	End
2431#	knp	PageDown
2432#
2433# ANSI colors are implemented, but cannot be combined with video attributes
2434# except for reverse.
2435#
2436# No fonts are supplied with the program, so the acsc string is chosen to
2437# correspond with the default Microsoft terminal font.
2438#
2439# Tera Term recognizes some xterm sequences, including those for setting and
2440# retrieving the window title, and for setting the window size (i.e., using
2441# "resize -s"), though it does not pass SIGWINCH to the application if the
2442# user resizes the window with the mouse.
2443teraterm|Tera Term Pro,
2444	km, xon@,
2445	ncv#43, vt@,
2446	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,
2447	blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
2448	cnorm=\E[?25h, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2449	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2450	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
2451	flash=\E[?5h\E[?5l$<200/>, hpa=\E[%i%p1%dG,
2452	il=\E[%p1%dL, il1=\E[L, kdch1=\E[3~, kf1=\E[11~,
2453	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2454	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2455	kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
2456	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2457	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~,
2458	kpp=\E[5~, kslt=\E[4~, op=\E[100m, rev=\E[7m, ri=\EM,
2459	rmso=\E[27m, rmul=\E[24m, sgr0=\E[m, smso=\E[7m,
2460	smul=\E[4m, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2461	vpa=\E[%i%p1%dd, use=klone+color, use=vt100,
2462
2463# Tested with WinNT 4.0, the telnet application assumes the screensize is
2464# 25x80.  This entry uses the 'Terminal' font, to get line-drawing characters.
2465ms-vt100|MS telnet imitating dec vt100,
2466	lines#25,
2467	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,
2468	tbc@, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c,
2469	use=vt100,
2470
2471#### X terminal emulators
2472#
2473# You can add the following line to your .Xdefaults to change the terminal type
2474# set by the xterms you start up to my-xterm:
2475#
2476# *termName:  my-xterm
2477#
2478# System administrators can change the default entry for xterm instances
2479# by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm.  In either
2480# case, xterm will detect and reject an invalid terminal type, falling back
2481# to the default of xterm.
2482#
2483
2484# X10/6.6	11/7/86, minus alternate screen, plus (csr)
2485# (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
2486# removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
2487# as these seem not to work -- esr)
2488x10term|vs100-x10|xterm terminal emulator (X10 window system),
2489	OTbs, am, km, mir, msgr, xenl, xon,
2490	cols#80, it#8, lines#65,
2491	bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
2492	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
2493	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
2494	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
2495	il1=\E[L, ind=^J, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
2496	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
2497	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l,
2498	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2499	sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
2500	smso=\E[7m, smul=\E[4m,
2501# Compatible with the R5 xterm
2502# (from the XFree86 3.2 distribution, <blink=@> removed)
2503# added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
2504# corrected typos in rs2 string - TD
2505# added u6-u9 -TD
2506xterm-r5|xterm R5 version,
2507	OTbs, am, km, msgr, xenl,
2508	cols#80, it#8, lines#24,
2509	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2510	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2511	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2512	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2513	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2514	el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2515	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\EOD,
2516	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
2517	kdl1=\E[31~, kel=\E[8~, kend=\E[4~, kf0=\EOq, kf1=\E[11~,
2518	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
2519	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2520	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
2521	kil1=\E[30~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8,
2522	rev=\E[7m, ri=\EM, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
2523	rmul=\E[m,
2524	rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
2525	sc=\E7,
2526	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
2527	sgr0=\E[m, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
2528	smul=\E[4m, tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n,
2529	u8=\E[?1;2c, u9=\E[c,
2530# Compatible with the R6 xterm
2531# (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
2532# added khome/kend, hts based on the R6 xterm code - TD
2533# (khome/kend do not actually work in X11R5 or X11R6, but many people use this
2534# for compatibility with other emulators).
2535xterm-r6|xterm-old|xterm X11R6 version,
2536	OTbs, am, km, mir, msgr, xenl,
2537	cols#80, it#8, lines#24,
2538	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2539	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2540	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2541	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2542	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2543	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2544	el=\E[K, enacs=\E)0, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
2545	il1=\E[L, ind=^J,
2546	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>, kbs=^H,
2547	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2548	kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
2549	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2550	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2551	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
2552	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
2553	kfnd=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2554	kslt=\E[4~, meml=\El, memu=\Em, rc=\E8, rev=\E[7m, ri=\EM,
2555	rmacs=^O, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
2556	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
2557	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sc=\E7,
2558	sgr0=\E[m, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
2559	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2560	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2561# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
2562# The name has been changed and some aliases have been removed.
2563xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
2564	OTbs, am, bce, km, mir, msgr, xenl,
2565	cols#80, it#8, lines#24, ncv@,
2566	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2567	bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
2568	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2569	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2570	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2571	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2572	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2573	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
2574	flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
2575	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
2576	il1=\E[L, ind=^J,
2577	is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
2578	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq,
2579	kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2580	kdch1=\177, kend=\EOF, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
2581	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2582	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2583	kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
2584	kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2585	kf9=\E[20~, kfnd=\E[1~, khome=\EOH, kich1=\E[2~,
2586	kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, meml=\El,
2587	memu=\Em, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l,
2588	rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E[?1l\E>,
2589	rmso=\E[27m, rmul=\E[24m, rs1=^O,
2590	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>, sc=\E7,
2591	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2592	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2593	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2594	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
2595	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
2596	tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2597	vpa=\E[%i%p1%dd, use=ecma+color,
2598
2599# This is the stock xterm entry supplied with XFree86 3.3, which uses VT100
2600# codes for F1-F4 except while in VT220 mode.
2601xterm-xf86-v33|xterm terminal emulator (XFree86 3.3 Window System),
2602	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, use=xterm-xf86-v32,
2603
2604# This version was released in XFree86 3.3.3 (November 1998).
2605# Besides providing printer support, it exploits a new feature that allows
2606# xterm to use terminfo-based descriptions with the titeInhibit resource.
2607# -- the distribution contained incorrect khome/kend values -TD
2608xterm-xf86-v333|xterm terminal emulator (XFree86 3.3.3 Window System),
2609	mc5i,
2610	blink=\E[5m, ich1@, invis=\E[8m,
2611	is2=\E[!p\E[?3;4l\E[4l\E>, kdch1=\E[3~, kfnd@, kslt@,
2612	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, rmcup=\E[?1047l\E[?1048l,
2613	rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>,
2614	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%;,
2615	smcup=\E[?1048h\E[?1047h, use=xterm-xf86-v33,
2616
2617# This version was released in XFree86 4.0.
2618xterm-xf86-v40|xterm terminal emulator (XFree86 4.0 Window System),
2619	npc,
2620	kDC=\E[3;5~, kEND=\EO5F, kHOM=\EO5H, kIC=\E[2;5~,
2621	kLFT=\EO5D, kNXT=\E[6;5~, kPRV=\E[5;5~, kRIT=\EO5C, ka1@,
2622	ka3@, kb2=\EOE, kc1@, kc3@, kcbt=\E[Z, kdch1=\E[3~, kend=\EOF,
2623	kf13=\EO2P, kf14=\EO2Q, kf15=\EO2R, kf16=\EO2S,
2624	kf17=\E[15;2~, kf18=\E[17;2~, kf19=\E[18;2~,
2625	kf20=\E[19;2~, kf21=\E[20;2~, kf22=\E[21;2~,
2626	kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P, kf26=\EO5Q,
2627	kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~, kf30=\E[17;5~,
2628	kf31=\E[18;5~, kf32=\E[19;5~, kf33=\E[20;5~,
2629	kf34=\E[21;5~, kf35=\E[23;5~, kf36=\E[24;5~, kf37=\EO6P,
2630	kf38=\EO6Q, kf39=\EO6R, kf40=\EO6S, kf41=\E[15;6~,
2631	kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
2632	kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
2633	kf48=\E[24;6~, khome=\EOH, rmcup=\E[?1049l,
2634	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2635	smcup=\E[?1049h, use=xterm-xf86-v333,
2636
2637xterm-xfree86|xterm-new|xterm terminal emulator (XFree86 4.0 Window System),
2638	npc,
2639	kDC=\E[3;2~, kEND=\EO2F, kHOM=\EO2H, kIC=\E[2;2~,
2640	kLFT=\EO2D, kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\EO2C,
2641	kb2=\EOE, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
2642	kcuu1=\EOA, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
2643	kf11=\E[23~, kf12=\E[24~, kf13=\EO2P, kf14=\EO2Q,
2644	kf15=\EO2R, kf16=\EO2S, kf17=\E[15;2~, kf18=\E[17;2~,
2645	kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
2646	kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~, kf25=\EO5P,
2647	kf26=\EO5Q, kf27=\EO5R, kf28=\EO5S, kf29=\E[15;5~,
2648	kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~, kf32=\E[19;5~,
2649	kf33=\E[20;5~, kf34=\E[21;5~, kf35=\E[23;5~,
2650	kf36=\E[24;5~, kf37=\EO6P, kf38=\EO6Q, kf39=\EO6R,
2651	kf4=\EOS, kf40=\EO6S, kf41=\E[15;6~, kf42=\E[17;6~,
2652	kf43=\E[18;6~, kf44=\E[19;6~, kf45=\E[20;6~,
2653	kf46=\E[21;6~, kf47=\E[23;6~, kf48=\E[24;6~, kf5=\E[15~,
2654	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\EOH,
2655	kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2656	use=xterm-basic,
2657#
2658# This chunk is used for building the VT220/Sun/PC keyboard variants.
2659xterm-basic|xterm terminal emulator - common (XFree86),
2660	am, bce, km, mc5i, mir, msgr, xenl,
2661	colors#8, cols#80, it#8, lines#24, pairs#64,
2662	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2663	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
2664	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2665	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2666	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2667	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2668	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2669	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
2670	flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
2671	ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
2672	ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^H,
2673	kdch1=\E[3~, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
2674	memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
2675	rmam=\E[?7l, rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>,
2676	rmso=\E[27m, rmul=\E[24m, rs1=\Ec,
2677	rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm,
2678	setaf=\E[3%p1%dm,
2679	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2680	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2681	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%;,
2682	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[?1049h,
2683	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
2684	tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
2685	vpa=\E[%i%p1%dd,
2686
2687# From: David J. MacKenzie <djm@va.pubnix.com>, 14 Nov 1997
2688xterm-xi|xterm on XI Graphics Accelerated X under BSD/OS 3.1,
2689	rmso=\E[m, rmul=\E[m, use=xterm-xf86-v33,
2690
2691# This is one of the variants of XFree86 3.3 xterm, updated for 4.0 (T.Dickey)
2692xterm-16color|xterm with 16 colors like aixterm,
2693	colors#16, ncv#32, pairs#256,
2694	setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm,
2695	setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm,
2696	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,
2697	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,
2698	use=xterm-xfree86,
2699
2700# These variants of XFree86 3.9.16 xterm are built as a configure option.
2701xterm-256color|xterm with 256 colors,
2702	ccc,
2703	colors#256, ncv#32, pairs#256,
2704	initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
2705	setab=\E[48;5;%p1%dm, setaf=\E[38;5;%p1%dm,
2706	setb=\E[48;5;%p1%dm, setf=\E[38;5;%p1%dm,
2707	use=xterm-xfree86,
2708xterm-88color|xterm with 88 colors,
2709	colors#88, pairs#88, use=xterm-256color,
2710
2711# This is another variant, for XFree86 4.0 xterm (T.Dickey)
2712# This is an 8-bit version of xterm, which emulates DEC vt220 with ANSI color.
2713# To use it, your decTerminalID resource must be set to 200 or above.
2714#
2715#	HTS	\E H	\210
2716#	RI	\E M	\215
2717#	SS3	\E O	\217
2718#	CSI	\E [	\233
2719#
2720xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
2721	OTbs, am, bce, km, mc5i, mir, msgr, npc, xenl,
2722	colors#8, cols#80, it#8, lines#24, pairs#64,
2723	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2724	bel=^G, blink=\2335m, bold=\2331m, cbt=\233Z,
2725	civis=\233?25l, clear=\233H\2332J, cnorm=\233?25h, cr=^M,
2726	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
2727	cud=\233%p1%dB, cud1=^J, cuf=\233%p1%dC, cuf1=\233C,
2728	cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
2729	dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
2730	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
2731	enacs=\E(B\E)0, flash=\233?5h$<100/>\233?5l,
2732	home=\233H, hpa=\233%i%p1%dG, ht=^I, hts=\210,
2733	ich=\233%p1%d@, il=\233%p1%dL, il1=\233L, ind=^J,
2734	invis=\2338m,
2735	is2=\E7\E G\233r\233m\233?7h\233?1;3;4;6l\2334l\E8\E>,
2736	ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kbs=^H,
2737	kc1=\217q, kc3=\217s, kcbt=\233Z, kcub1=\217D, kcud1=\217B,
2738	kcuf1=\217C, kcuu1=\217A, kdch1=\2333~, kend=\2334~,
2739	kent=\217M, kf1=\23311~, kf10=\23321~, kf11=\23323~,
2740	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
2741	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
2742	kf2=\23312~, kf20=\23334~, kf3=\23313~, kf4=\23314~,
2743	kf5=\23315~, kf6=\23317~, kf7=\23318~, kf8=\23319~,
2744	kf9=\23320~, khome=\2331~, kich1=\2332~, kmous=\233M,
2745	knp=\2336~, kpp=\2335~, mc0=\233i, mc4=\2334i, mc5=\2335i,
2746	meml=\El, memu=\Em, op=\23339;49m, rc=\E8, rev=\2337m,
2747	ri=\215, rmacs=^O, rmam=\233?7l, rmcup=\233?1049l,
2748	rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
2749	rs1=\Ec,
2750	rs2=\E[62"p\E G\E7\233r\E8\233m\233?7h\233?1;3;4;6l\2334l\E>,
2751	sc=\E7, setab=\2334%p1%dm, setaf=\2333%p1%dm,
2752	setb=\2334%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2753	setf=\2333%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
2754	sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
2755	sgr0=\233m^O, smacs=^N, smam=\233?7h, smcup=\233?1049h,
2756	smir=\2334h, smkx=\233?1h\E=, smso=\2337m, smul=\2334m,
2757	tbc=\2333g, u6=\233[%i%d;%dR, u7=\E[6n, u8=\233[?1;2c,
2758	u9=\E[c, vpa=\233%i%p1%dd,
2759
2760xterm-hp|XFree86 xterm with hpterm function keys,
2761	kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
2762	kdch1=\EP, kend=\EF, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es,
2763	kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, kich1=\EQ,
2764	knp=\ES, kpp=\ET, use=xterm-basic,
2765
2766xterm-sco|XFree86 xterm with SCO function keys,
2767	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F,
2768	kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X, kf13=\E[Y,
2769	kf15=\E[a, kf16=\E[b, kf17=\E[c, kf18=\E[d, kf19=\E[e,
2770	kf2=\E[N, kf20=\E[f, kf21=\E[g, kf22=\E[h, kf23=\E[i,
2771	kf24=\E[j, kf25=\E[k, kf26=\E[l, kf27=\E[m, kf28=\E[n,
2772	kf29=\E[o, kf3=\E[O, kf30=\E[p, kf31=\E[q, kf32=\E[r,
2773	kf33=\E[s, kf34=\E[t, kf35=\E[u, kf4=\E[P, kf5=\E[Q,
2774	kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
2775	kich1=\E[L, knp=\E[G, kpp=\E[I, use=xterm-basic,
2776
2777# The xterm-xfree86 description has all of the features, but is not completely
2778# compatible with vt220.  If you are using a Sun or PC keyboard, set the
2779# sunKeyboard resource to true:
2780#	+ maps the editing keypad
2781#	+ interprets control-function-key as a second array of keys, so a
2782#	  12-fkey keyboard can support vt220's 20-fkeys.
2783#	+ maps numeric keypad "+" to ",".
2784#	+ uses DEC-style control sequences for the application keypad.
2785#
2786xterm-vt220|XFree86 xterm emulating vt220,
2787	ka1=\EOw, ka3=\EOy, kbeg=\EOu, kc1=\EOq, kc3=\EOs, kcbt=\E[Z,
2788	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\E[4~,
2789	kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
2790	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
2791	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
2792	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~,
2793	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
2794	kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2795	use=xterm-basic,
2796
2797xterm-vt52|XFree86 xterm emulating dec vt52,
2798	cols#80, it#8, lines#24,
2799	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2800	bel=^G, clear=\EH\EJ, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
2801	cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
2802	home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
2803	kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
2804
2805xterm-noapp|xterm with cursor keys in normal mode,
2806	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rmcup@,
2807	rmkx=\E>, smcup@, smkx=\E=, use=xterm,
2808
2809xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
2810	lines#24, use=xterm-r6,
2811
2812# This is xterm for ncurses.
2813xterm|xterm terminal emulator (X Window System),
2814	use=xterm-r6,
2815#	use=xterm-xfree86,
2816
2817# These entries allow access to the X titlebar and icon name as a status line.
2818# Note that twm (and possibly window managers descended from it such as tvtwm,
2819# ctwm, and vtwm) track windows by icon-name; thus, you don't want to mess
2820# with it.
2821xterm+sl|access X title line and icon name,
2822	hs,
2823	wsl#40,
2824	dsl=\E]0;\007, fsl=^G, tsl=\E]0;, use=xterm,
2825xterm+sl-twm|access X title line (pacify twm-descended window managers),
2826	hs,
2827	wsl#40,
2828	dsl=\E]2;\007, fsl=^G, tsl=\E]2;, use=xterm,
2829
2830#
2831# The following xterm variants don't depend on your base version
2832#
2833# xterm with bold instead of underline
2834xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold,
2835	smso=\E[7m, smul=\E[1m, use=xterm,
2836# (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
2837# (kterm should not invoke DEC Graphics as the alternate character set
2838#  -- Kenji Rikitake)
2839# (proper setting of enacs, smacs, rmacs makes kterm to use DEC Graphics
2840#  -- MATSUMOTO Shoji)
2841kterm|kterm kanji terminal emulator (X window system),
2842	eslok, hs,
2843	acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2844	csr=\E[%i%p1%d;%p2%dr, dsl=\E[?H, enacs=, fsl=\E[?F,
2845	kmous=\E[M, rc=\E8, rmacs=\E(B, sc=\E7, smacs=\E(0,
2846	tsl=\E[?E\E[?%i%dT, use=xterm-r6, use=ecma+color,
2847kterm-color|kterm-co|kterm with ANSI colors,
2848	ncv@, use=kterm, use=ecma+color,
2849# See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
2850xterm-nic|xterm with ich/ich1 suppressed for non-curses programs,
2851	ich@, ich1@, use=xterm,
2852# From: Mark Sheppard <kimble@mistral.co.uk>, 4 May 1996
2853xterm1|xterm terminal emulator ignoring the alternate screen buffer,
2854	rmcup@, smcup@, use=xterm,
2855
2856# This describes the capabilities of color_xterm, an xterm variant from
2857# before ECMA-64 color support was folded into the main-line xterm release.
2858# This entry is straight from color_xterm's maintainer.
2859# From: Jacob Mandelson <jlm@ugcs.caltech.edu>, 09 Nov 1996
2860# The README's with the distribution also say that it supports SGR 21, 24, 25
2861# and 27, but they are not present in the terminfo or termcap.
2862color_xterm|cx|cx100|color_xterm color terminal emulator for X,
2863	OTbs, am, km, mir, msgr, xenl,
2864	cols#80, it#8, lines#65, ncv@,
2865	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2866	bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
2867	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2868	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2869	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2870	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2871	el=\E[K, el1=\E[1K, enacs=\E(B\E)0, home=\E[H, ht=^I,
2872	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
2873	is1=\E[r\E[m\E[?7h\E[?4;6l\E[4l, ka1=\EOw, ka3=\EOy,
2874	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\EOD, kcud1=\EOB,
2875	kcuf1=\EOC, kcuu1=\EOA, kend=\E[8~, kent=\EOM, kf1=\E[11~,
2876	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[12~,
2877	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2878	kf8=\E[19~, kf9=\E[20~, khome=\E[7~, kich1=\E[2~,
2879	kmous=\E[M, knp=\E[6~, kpp=\E[5~, rc=\E8, rev=\E[7m, ri=\EM,
2880	rmacs=^O, rmam=\E[?7l, rmcup=\E>\E[?41;1r, rmir=\E[4l,
2881	rmso=\E[27m, rmul=\E[24m,
2882	rs1=\E(B\017\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
2883	sc=\E7,
2884	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
2885	sgr0=\E[m, smacs=^N, smam=\E[?7h,
2886	smcup=\E[?1;41s\E[?1;41h\E=, smir=\E[4h, smso=\E[7m,
2887	smul=\E[4m, use=ecma+color,
2888
2889# The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
2890# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
2891# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
2892# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
2893# that each of those implements the home, end, delete keys differently.
2894#
2895# Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
2896# colors; note that this is not compatible with the 5.2 version.
2897nxterm|xterm-color|generic color xterm,
2898	ncv@,
2899	op=\E[m, use=xterm-r6, use=klone+color,
2900
2901# this describes the alpha-version of Gnome terminal shipped with Redhat 6.0
2902gnome|Gnome terminal,
2903	bce,
2904	kdch1=\177, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2905	use=xterm-color,
2906
2907# This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
2908# or not is debatable).
2909kvt|KDE terminal,
2910	bce, km@,
2911	kdch1=\177, kend=\E[F, khome=\E[H, use=xterm-color,
2912
2913# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
2914# Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
2915# Notes:
2916# rxvt 2.21b uses
2917#	smacs=\E(B\E)U^N, rmacs=\E(B\E)0^O,
2918# but some applications don't work with that.
2919# It also has an AIX extension
2920#	box2=lqkxjmwuvtn,
2921# and
2922#	ech=\E[%p1%dX,
2923# but the latter does not work correctly.
2924#
2925# The distributed terminfo says it implements hpa and vpa, but they are not
2926# implemented correctly, using relative rather than absolute positioning.
2927#
2928# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
2929# Since rxvt is not really compatible with xterm, it should be configured as
2930# "rxvt" (monochrome) and "rxvt-color".
2931rxvt-basic|rxvt terminal base (X Window System),
2932	OTbs, am, bce, eo, km, mir, msgr, xenl, xon,
2933	cols#80, it#8, lines#24,
2934	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2935	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2936	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2937	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2938	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
2939	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2940	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
2941	el=\E[K, el1=\E[1K, enacs=\E(B\E)0, flash=\E[?5h\E[?5l,
2942	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
2943	il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E[?47l\E=\E[?1l,
2944	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
2945	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
2946	kPRV=\E[5$, kRIT=\E[c, ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H,
2947	kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
2948	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
2949	kend=\E[8~, kent=\EOM, kf1=\E[11~, kf10=\E[21~,
2950	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2951	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
2952	kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf3=\E[13~,
2953	kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2954	kf9=\E[20~, kfnd=\E[1~, khome=\E[7~, kich1=\E[2~,
2955	kmous=\E[M, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, rc=\E8,
2956	rev=\E[7m, ri=\EM, rmacs=^O, rmcup=\E[2J\E[?47l\E8,
2957	rmir=\E[4l, rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
2958	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
2959	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
2960	s0ds=\E(B, s1ds=\E(0, sc=\E7, sgr0=\E[0m\017, smacs=^N,
2961	smcup=\E7\E[?47h, smir=\E[4h, smkx=\E=, smso=\E[7m,
2962	smul=\E[4m, tbc=\E[3g,
2963rxvt|rxvt terminal emulator (X Window System),
2964	ncv@,
2965	sgr0=\E[m\017, use=rxvt-basic, use=ecma+color,
2966
2967# From: Michael Jennings <mej@valinux.com>
2968# removed kf0 which conflicts with kf10 -TD
2969# remove cvvis which conflicts with cnorm -TD
2970# There's no u6 because Eterm appears to lack CPR (cursor position report).
2971Eterm|Eterm-color|Eterm with xterm-style color support (X Window System),
2972	am, bce, bw, eo, km, mc5i, mir, msgr, xenl, xon,
2973	btns#5, cols#80, it#8, lines#24, lm#0, ncv@,
2974	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2975	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
2976	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
2977	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
2978	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
2979	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
2980	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
2981	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
2982	flash=\E[?5h\E[?5l, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
2983	hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
2984	ind=^J, is1=\E[?47l\E>\E[?1l,
2985	is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
2986	kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kLFT=\E[d, kNXT=\E[6$,
2987	kPRV=\E[5$, kRIT=\E[c, ka1=\E[7~, ka3=\E[5~, kb2=\EOu,
2988	kbeg=\EOu, kbs=^H, kc1=\E[8~, kc3=\E[6~, kcbt=\E[Z,
2989	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2990	kdch1=\E[3~, kel=\E[8\^, kend=\E[8~, kent=\EOM, kf1=\E[11~,
2991	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2992	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2993	kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
2994	kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2995	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
2996	khome=\E[7~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
2997	kslt=\E[4~, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM,
2998	rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l,
2999	rmkx=, rmso=\E[27m, rmul=\E[24m,
3000	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
3001	rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E>,
3002	sc=\E7,
3003	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3004	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7\E[?47h,
3005	smir=\E[4h, smkx=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
3006	u7=\E[6n, u8=\E[?1;2c, u9=\E[c, vpa=\E[%i%p1%dd,
3007	use=ecma+color,
3008
3009# These (xtermc and xtermm) are distributed with Solaris.  They refer to a
3010# variant of xterm which is apparently no longer supported, but are interesting
3011# because they illustrate SVr4 curses mouse controls - T.Dickey
3012xtermm|xterm terminal emulator (monocrome),
3013	OTbs, am, km, mir, msgr, xenl,
3014	btns#3, cols#80, it#8, lines#24,
3015	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3016	bel=^G, blink@, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
3017	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[1D,
3018	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3019	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3020	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3021	el=\E[K, el1=\E[1K$<3>, enacs=\E(B\E)0, getm=\E[%p1%dY,
3022	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
3023	il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr,
3024	kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
3025	kcuf1=\EOC, kcuu1=\EOA, kend=\E[Y, kent=\EOM, kf0=\EOy,
3026	kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA, kf2=\EOQ,
3027	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
3028	kf9=\EOX, khome=\E[H, kmous=\E[^_, knp=\E[U, kpp=\E[V,
3029	rc=\E8, reqmp=\E[492Z, rev=\E[7m, ri=\EM, rmacs=^O,
3030	rmcup=\E@0\E[?4r, rmso=\E[m,
3031	rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
3032	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3033	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3034	sgr0=\E[m\017, smacs=^N, smcup=\E@0\E[?4s\E[?4h\E@1,
3035	smso=\E[7m, tbc=\E[3g,
3036
3037xtermc|xterm terminal emulator (color),
3038	colors#8, ncv#7, pairs#64,
3039	op=\E[100m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
3040	setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3041	setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
3042	use=xtermm,
3043
3044# From: David J. MacKenzie <djm@va.pubnix.com> 20 Apr 1995
3045# Here's a termcap entry I've been using for xterm_color, which comes
3046# with BSD/OS 2.0, and the X11R6 contrib tape too I think.  Besides the
3047# color stuff, I also have a status line defined as the window manager
3048# title bar. [I have translated it to terminfo -- ESR]
3049xterm-pcolor|xterm with color used for highlights and status line,
3050	bold=\E[1m\E[43m, rev=\E[7m\E[34m, smso=\E[7m\E[31m,
3051	smul=\E[4m\E[42m, use=xterm+sl, use=xterm-r6,
3052
3053# HP ships this, except for the pb#9600 which was merged in from BSD termcap.
3054# (hpterm: added empty <acsc>, we have no idea what ACS chars look like --esr)
3055hpterm|X-hpterm|hp X11 terminal emulator,
3056	am, da, db, mir, xhp,
3057	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, pb#9600, xmc#0,
3058	acsc=, bel=^G, bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M,
3059	cub1=^H, cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC,
3060	cuu1=\EA, dch1=\EP, dim=\E&dH, dl1=\EM, ed=\EJ$<1>, el=\EK,
3061	hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL, ind=^J, kbs=^H,
3062	kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3063	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
3064	kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
3065	khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
3066	knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, meml=\El,
3067	memu=\Em, pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
3068	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
3069	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
3070	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rev=\E&dB, ri=\ET,
3071	rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@,
3072	rmul=\E&d@,
3073	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%;,
3074	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
3075	smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
3076
3077# This entry describes an xterm with Sun-style function keys enabled
3078# via the X resource setting "xterm*sunFunctionKeys:true"
3079# To understand <kf11>/<kf12> note that L1,L2 and F11,F12 are the same.
3080# The <kf13>...<kf20> keys are L3-L10.  We don't set <kf16=\E[197z>
3081# because we want it to be seen as <kcpy>.
3082# The <kf31>...<kf45> keys are R1-R15.  We treat some of these in accordance
3083# with their Sun keyboard labels instead.
3084# From: Simon J. Gerraty <sjg@zen.void.oz.au> 10 Jan 1996
3085xterm-sun|xterm with sunFunctionKeys true,
3086	kb2=\E[218z, kcpy=\E[197z, kend=\E[220z, kf1=\E[224z,
3087	kf10=\E[233z, kf11=\E[192z, kf12=\E[193z, kf13=\E[194z,
3088	kf14=\E[195z, kf15=\E[196z, kf17=\E[198z, kf18=\E[199z,
3089	kf19=\E[200z, kf2=\E[225z, kf20=\E[201z, kf3=\E[226z,
3090	kf31=\E[208z, kf32=\E[209z, kf33=\E[210z, kf34=\E[211z,
3091	kf35=\E[212z, kf36=\E[213z, kf38=\E[215z, kf4=\E[227z,
3092	kf40=\E[217z, kf42=\E[219z, kf44=\E[221z, kf5=\E[228z,
3093	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
3094	kfnd=\E[200z, khlp=\E[196z, khome=\E[214z, kich1=\E[2z,
3095	knp=\E[222z, kpp=\E[216z, kund=\E[195z, use=xterm,
3096xterms-sun|small (80x24) xterm with sunFunctionKeys true,
3097	cols#80, lines#24, use=xterm-sun,
3098
3099# This is for the extensible terminal emulator on the X11R6 contrib tape.
3100emu|emu native mode,
3101	mir, msgr, xon,
3102	colors#15, cols#80, it#8, lines#24, pairs#64, vt#200,
3103	acsc=61a\202f\260g2j\213k\214l\215m\216n\217o\220q\222s\224t\225u\226v\227w\230x\231~\244,
3104	bel=^G, blink=\ES\EW, bold=\ES\EU, civis=\EZ,
3105	clear=\EP\EE0;0;, cnorm=\Ea, cr=^M, csr=\Ek%p1%d;%p2%d;,
3106	cub=\Eq-%p1%d;, cub1=^H, cud=\Ep%p1%d;, cud1=\EB,
3107	cuf=\Eq%p1%d;, cuf1=\ED, cup=\EE%p1%d;%p2%d;,
3108	cuu=\Ep-%p1%d;, cuu1=\EA, dch=\EI%p1%d;, dch1=\EI1;,
3109	dl=\ER%p1%d;, dl1=\ER1;, ech=\Ej%p1%d;, ed=\EN, el=\EK,
3110	el1=\EL, enacs=\0, home=\EE0;0;, ht=^I, hts=\Eh,
3111	il=\EQ%p1%d;, il1=\EQ1;, ind=\EG, is2=\ES\Er0;\Es0;,
3112	kbs=^H, kcub1=\EC, kcud1=\EB, kcuf1=\ED, kcuu1=\EA,
3113	kdch1=\177, kent=^M, kf0=\EF00, kf1=\EF01, kf10=\EF10,
3114	kf11=\EF11, kf12=\EF12, kf13=\EF13, kf14=\EF14, kf15=\EF15,
3115	kf16=\EF16, kf17=\EF17, kf18=\EF18, kf19=\EF19, kf2=\EF02,
3116	kf20=\EF20, kf3=\EF03, kf4=\EF04, kf5=\EF05, kf6=\EF06,
3117	kf7=\EF07, kf8=\EF08, kf9=\EF09, kfnd=\Efind, kich1=\Eins,
3118	knp=\Enext, kpp=\Eprior, kslt=\Esel, oc=\Es0;\Er0;,
3119	rev=\ES\ET, ri=\EF, rmacs=\0, rmir=\EX, rmso=\ES, rmul=\ES,
3120	rs2=\ES\Es0;\Er0;, setab=\Es%i%p1%d;,
3121	setaf=\Er%i%p1%d;, sgr0=\ES, smacs=\0, smir=\EY,
3122	smso=\ES\ET, smul=\ES\EV, tbc=\Ej,
3123
3124#### MGR
3125#
3126# MGR is a Bell Labs window system lighter-weight than X.
3127# These entries describe MGR's xterm-equivalent.
3128# They are courtesy of Vincent Broman <broman@nosc.mil> 14 Jan 1997
3129#
3130
3131mgr|Bellcore MGR (non X) window system terminal emulation,
3132	am, km,
3133	bel=^G, bold=\E2n, civis=\E9h, clear=^L, cnorm=\Eh, cr=^M,
3134	csr=\E%p1%d;%p2%dt, cub1=^H, cud1=\Ef, cuf1=\Er,
3135	cup=\E%p2%d;%p1%dM, cuu1=\Eu, cvvis=\E0h,
3136	dch=\E%p1%dE$<5>, dch1=\EE, dl=\E%p1%dd$<3*>,
3137	dl1=\Ed$<3>, ed=\EC, el=\Ec, hd=\E1;2f, ht=^I, hu=\E1;2u,
3138	ich=\E%p1%dA$<5>, ich1=\EA, il=\E%p1%da$<3*>,
3139	il1=\Ea$<3>, ind=^J, kbs=^H, kcub1=\E[D, kcud1=\E[B,
3140	kcuf1=\E[C, kcuu1=\E[A, nel=^M^J, rev=\E1n, rmam=\E5S,
3141	rmso=\E0n, rmul=\E0n, sgr0=\E0n, smam=\E5s, smso=\E1n,
3142	smul=\E4n,
3143mgr-sun|Mgr window with Sun keyboard,
3144	ka1=\E[214z, ka3=\E[216z, kb2=\E[218z, kc1=\E[220z,
3145	kc3=\E[222z, kcpy=\E[197z, kend=\E[220z, kent=\E[250z,
3146	kf1=\E[224z, kf10=\E[233z, kf11=\E[234z, kf12=\E[235z,
3147	kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, kf5=\E[228z,
3148	kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, kf9=\E[232z,
3149	kfnd=\E[200z, khlp=\E[207z, khome=\E[214z, knp=\E[222z,
3150	kopn=\E[198z, kpp=\E[216z, kund=\E[195z, use=mgr,
3151mgr-linux|Mgr window with Linux keyboard,
3152	ka1=\E[H, ka3=\E[5~, kb2=\E[G, kc1=\E[Y, kc3=\E[6~,
3153	kdch1=\E[3~, kend=\E[4~, kf0=\E[[J, kf1=\E[[A, kf10=\E[21~,
3154	kf11=\E[23~, kf12=\E[24~, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D,
3155	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3156	khome=\E[1~, knp=\E[6~, kpp=\E[5~, use=mgr,
3157
3158######## UNIX VIRTUAL TERMINALS, VIRTUAL CONSOLES, AND TELNET CLIENTS
3159#
3160
3161# Columbus UNIX virtual terminal. This terminal also appears in
3162# UNIX 4.0 and successors as line discipline 1 (?), but is
3163# undocumented and does not really work quite right.
3164cbunix|cb unix virtual terminal,
3165	OTbs, am, da, db,
3166	cols#80, lines#24, lm#0,
3167	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
3168	cup=\EG%p2%c%p1%c, cuu1=\EA, dch1=\EM, dl1=\EN, ed=\EL,
3169	el=\EK, ich1=\EO, il1=\EP, ind=^J, kcub1=\ED, kcud1=\EB,
3170	kcuf1=\EC, kcuu1=\EA, khome=\EE, rmso=\Eb^D, rmul=\Eb^A,
3171	smso=\Ea^D, smul=\Ea^A,
3172# (vremote: removed obsolete ":nl@:" -- esr)
3173vremote|virtual remote terminal,
3174	am@,
3175	cols#79, use=cbunix,
3176
3177pty|4bsd pseudo teletype,
3178	cup=\EG%p1%{32}%+%c%p2%{32}%+%c, rmso=\Eb$, rmul=\Eb!,
3179	smso=\Ea$, smul=\Ea!, use=cbunix,
3180
3181# The codes supported by the term.el terminal emulation in GNU Emacs 19.30
3182eterm|gnu emacs term.el terminal emulation,
3183	am, mir, xenl,
3184	cols#80, lines#24,
3185	bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
3186	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3187	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3188	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3189	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3190	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
3191	il=\E[%p1%dL, il1=\E[L, ind=^J, rev=\E[7m,
3192	rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
3193	sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m,
3194	smul=\E[4m,
3195
3196# Entries for use by the `screen' program by Juergen Weigert,
3197# Michael Schroeder, Oliver Laumann.  The screen and
3198# screen-w entries came with version 3.7.1.  The screen2 and screen3 entries
3199# come from University of Wisconsin and may be older.
3200# (screen: added <cnorm> on ANSI model -- esr)
3201#
3202# 'screen' defines extensions to termcap.  Some are used in its terminal
3203# description:
3204#      G0   (bool)  Terminal can deal with ISO 2022  font  selection sequences.
3205#      AX   (bool)  Does  understand ANSI set default fg/bg color
3206#                   (\E[39m / \E[49m).
3207#      S0   (str)   Switch charset 'G0' to the specified charset.
3208#      E0   (str)   Switch charset 'G0' back to standard charset.
3209#
3210# tested with screen 3.09.08
3211screen|VT 100/ANSI X3.64 virtual terminal,
3212	OTbs, OTpt, am, km, mir, msgr, xenl, G0,
3213	colors#8, cols#80, it#8, lines#24, pairs#64,
3214	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3215	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
3216	clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
3217	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3218	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3219	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
3220	cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
3221	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
3222	flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
3223	il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD,
3224	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~,
3225	kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
3226	kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~,
3227	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3228	khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
3229	nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l,
3230	rmkx=\E[?1l\E>, rmso=\E[23m, rmul=\E[24m, rs2=\Ec, sc=\E7,
3231	sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=,
3232	smso=\E[3m, smul=\E[4m, tbc=\E[3g, E0=\E(B, S0=\E(%p1%c,
3233	use=ecma+color,
3234
3235# Read the fine manpage:
3236#       When  screen  tries  to  figure  out  a  terminal name for
3237#       itself, it first looks for an entry named "screen.<term>",
3238#       where  <term>  is the contents of your $TERM variable.  If
3239#       no such entry exists, screen tries "screen" (or "screen-w"
3240#       if the terminal is wide (132 cols or more)).  If even this
3241#       entry cannot be found, "vt100" is used as a substitute.
3242#
3243# Here are a few customized entries which are useful -TD
3244#
3245# Notes:
3246# (a)	screen does not support invis.
3247# (b)	screen's implementation of bw is incorrect according to tack.
3248# (c)	screen appears to hardcode the strings for khome/kend, making it
3249#	necessary to override the "use=" clause's values.
3250# (d)	screen sets $TERMCAP to a termcap-formatted copy of the 'screen' entry,
3251#	which is NOT the same as the terminfo screen.<term>.
3252# (e)	when screen finds one of these customized entries, it sets $TERM to
3253#	match.  Hence, no "screen.xterm" entry is provided, since that would
3254#	create heartburn for people running remote xterm's.
3255#
3256#	xterm (-xfree86 or -r6) does not normally support kIC, kNXT and kPRV
3257#	since the default translations override the built-in keycode
3258#	translation.  They are suppressed here to show what is tested by tack.
3259screen.xterm-xfree86|screen customized for XFree86 xterm,
3260	bce@, bw,
3261	invis@, kIC@, kNXT@, kPRV@, kend=\E[4~, khome=\E[1~, meml@,
3262	memu@,
3263	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
3264	use=xterm-xfree86,
3265# xterm-r6 does not really support khome/kend unless it is propped up by
3266# the translations resource.
3267screen.xterm-r6|screen customized for X11R6 xterm,
3268	bw, use=xterm-r6,
3269# Color applications running in screen and TeraTerm do not play well together
3270# on Solaris.
3271screen.teraterm|disable ncv in teraterm,
3272	ncv#127, use=screen,
3273
3274screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
3275	cols#132, use=screen,
3276
3277screen2|old VT 100/ANSI X3.64 virtual terminal,
3278	cols#80, it#8, lines#24,
3279	cbt=\E[Z, clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=^H,
3280	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
3281	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3282	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3283	el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL,
3284	il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
3285	kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
3286	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
3287	nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m,
3288	rmul=\E[24m, rs1=\Ec, sc=\E7, sgr0=\E[m, smir=\E[4h,
3289	smso=\E[3m, smul=\E[4m, tbc=\E[3g,
3290# (screen3: removed unknown ":xv:LP:G0:" -- esr)
3291screen3|older VT 100/ANSI X3.64 virtual terminal,
3292	km, mir, msgr,
3293	cols#80, it#8, lines#24,
3294	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
3295	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3296	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3297	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
3298	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3299	el=\E[K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
3300	il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcub1=\EOD,
3301	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
3302	kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
3303	rmir=\E[4l, rmkx=\E>, rmso=\E[23m, rmul=\E[24m, rs1=\Ec,
3304	sc=\E7, sgr0=\E[m, smir=\E[4h, smkx=\E=, smso=\E[3m,
3305	smul=\E[4m, tbc=\E[3g,
3306
3307# Francesco Potorti <F.Potorti@cnuce.cnr.it>:
3308# NCSA telnet is one of the most used telnet clients for the Macintosh.  It has
3309# been maintained until recently by the National Center for Supercomputer
3310# Applications, and it is feature rich, stable and free.  It can be downloaded
3311# from www.ncsa.edu.  This terminfo description file is based on xterm-vt220,
3312# xterm+sl, and the docs at NCSA.  It works well.
3313#
3314# NCSA Telnet 2.6 for Macintosh in vt220 8-bit emulation mode
3315# The terminal options should be set as follows:
3316#         Xterm sequences ON
3317#         use VT wrap mode ON
3318#         use Emacs arrow keys OFF
3319#         CTRL-COMND is Emacs meta ON
3320#         8 bit mode ON
3321#         answerback string: "ncsa-vt220-8"
3322#         setup keys: all disabled
3323#
3324# Application mode is not used.
3325#
3326# Other special mappings:
3327#	Apple		VT220
3328#	HELP 		Find
3329#	HOME		Insert here
3330#	PAGEUP		Remove
3331#	DEL		Select
3332#	END		Prev Screen
3333#	PAGEDOWN	Next Screen
3334#
3335# Though it supports ANSI color, NCSA Telnet uses color to represent blinking
3336# text.
3337#
3338# The status-line manipulation is a mapping of the xterm-compatible control
3339# sequences for setting the window-title.  So you must use tsl and fsl in
3340# pairs, since the latter ends the string that is loaded to the window-title.
3341ncsa-m|ncsa-vt220-8|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
3342	am, hs, km, mir, msgr, xenl,
3343	acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3344	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3345	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
3346	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3347	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3348	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3349	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
3350	dsl=\E]0;\007, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
3351	flash=\E[?5h\E[?5l, fsl=^G, home=\E[H, ht=^I, hts=\EH,
3352	ich=\E[%p1%d@, if=/usr/share/tabset/vt100,
3353	il=\E[%p1%dL, il1=\E[L, ind=\n$<150*>,
3354	is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>, kbs=^H,
3355	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3356	kdch1=\E[4~, kend=\E[5~, kf1=\E[17~, kf10=\E[28~,
3357	kf11=\E[29~, kf12=\E[31~, kf13=\E[32~, kf14=\E[33~,
3358	kf15=\E[34~, kf2=\E[18, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~,
3359	kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khlp=\E[1~,
3360	khome=\E[2~, knp=\E[6~, kpp=\E[3~, mc4=\E[4i, mc5=\E[5i,
3361	rc=\E8, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
3362	rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E8, rmir=\E[4l,
3363	rmso=\E[27m, rmul=\E[24m,
3364	rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;4;6l\E[4l\E>, sc=\E7,
3365	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e\E(B%;,
3366	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E7,
3367	smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E]0;,
3368	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?62;1;6c, u9=\E[c,
3369ncsa|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
3370	use=ncsa-m, use=klone+color,
3371ncsa-ns|NCSA Telnet 2.7 for Macintosh in vt220-8 mode,
3372	hs@,
3373	dsl@, fsl@, tsl@, use=ncsa,
3374ncsa-m-ns|NCSA Telnet 2.6 for Macintosh in vt220-8 mode,
3375	hs@,
3376	dsl@, fsl@, tsl@, use=ncsa-m,
3377# alternate -TD:
3378# The documented function-key mapping refers to the Apple Extended Keyboard
3379# (e.g., NCSA Telnet's F1 corresponds to a VT220 F6).  We use the VT220-style
3380# codes, however, since the numeric keypad (VT100) PF1-PF4 are available on
3381# some keyboards and many applications require these as F1-F4.
3382#
3383ncsa-vt220|NCSA Telnet using vt220-compatible function keys,
3384	kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3385	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
3386	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
3387	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
3388	kf8=\E[19~, kf9=\E[20~, use=ncsa,
3389
3390#### Pilot Pro Palm-Top
3391#
3392# Termcap for Top Gun Telnet and SSH on the Palm Pilot.
3393# http://www.isaac.cs.berkeley.edu/pilot/tgtelnet.html
3394pilot|tgtelnet|Top Gun Telnet on the Palm Pilot Professional,
3395	OTbs, am, xenl,
3396	cols#39, lines#16,
3397	bel=^G, clear=\Ec, cr=^M, cub1=^H, cud1=^J,
3398	cup=\Em%p1%{32}%+%c%p2%{32}%+%c, home=\Em\s\s, ht=^I,
3399	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, knp=^L, kpp=^K, nel=\Em~\s,
3400	rmso=\EB, smso=\Eb,
3401
3402######## COMMERCIAL WORKSTATION CONSOLES
3403#
3404
3405#### Alpha consoles
3406#
3407
3408# This is from the OSF/1 Release 1.0 termcap file
3409pccons|pcconsole|ANSI (mostly) Alpha PC console terminal emulation,
3410	am, xon,
3411	cols#80, lines#25,
3412	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3413	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
3414	el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L, kbs=^H,
3415	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
3416	nel=^M^J, rev=\E[7m, rmso=\E[m, sgr0=\E[m, smso=\E[7m,
3417
3418#### Sun consoles
3419#
3420
3421# :is1: resets scrolling region in case a previous user had used "tset vt100"
3422oldsun|Sun Microsystems Workstation console,
3423	OTbs, am, km, mir, msgr,
3424	cols#80, it#8, lines#34,
3425	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
3426	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
3427	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
3428	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
3429	is1=\E[1r, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3430	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
3431	rmso=\E[m, sgr0=\E[m, smso=\E[7m,
3432# From: Alexander Lukyanov <lav@video.yars.free.net>, 14 Nov 1995
3433# <lines> capability later corrected by J.T. Conklin <jtc@cygnus.com>
3434# SGR 1, 4 aren't supported - removed bold/underline (T.Dickey 17 Jan 1998)
3435sun-il|Sun Microsystems console with working insert-line,
3436	am, km, msgr,
3437	cols#80, lines#34,
3438	bel=^G, bold@, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3439	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
3440	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I,
3441	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
3442	kb2=\E[218z, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
3443	kcuu1=\E[A, kdch1=\177, kend=\E[220z, kf1=\E[224z,
3444	kf10=\E[233z, kf11=\E[234z, kf12=\E[235z, kf2=\E[225z,
3445	kf3=\E[226z, kf4=\E[227z, kf5=\E[228z, kf6=\E[229z,
3446	kf7=\E[230z, kf8=\E[231z, kf9=\E[232z, khome=\E[214z,
3447	knp=\E[222z, kopt=\E[194z, kpp=\E[216z, kres=\E[193z,
3448	kund=\E[195z, rev=\E[7m, rmso=\E[m, rmul@, rs2=\E[s,
3449	sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3450	sgr0=\E[m, smso=\E[7m, smul@, u8=\E[1t, u9=\E[11t,
3451# On some versions of CGSIX framebuffer firmware (SparcStation 5), <il1>/<il>
3452# flake out on the last line.  Unfortunately, without them the terminal has no
3453# way to scroll.
3454sun-cgsix|sun-ss5|Sun SparcStation 5 console,
3455	il@, il1@, use=sun-il,
3456# If you are using an SS5, change the sun definition to use sun-ss5.
3457sun|sun1|sun2|Sun Microsystems Inc. workstation console,
3458	use=sun-il,
3459
3460# From: <john@ucbrenoir>  Tue Sep 24 13:14:44 1985
3461sun-s|Sun Microsystems Workstation window with status line,
3462	hs,
3463	dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun,
3464sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs,
3465	hs,
3466	dsl=\E]l\E\\, fsl=\E\\, tsl=\E]l, use=sun-e,
3467sun-48|Sun 48-line window,
3468	cols#80, lines#48, use=sun,
3469sun-34|Sun 34-line window,
3470	cols#80, lines#34, use=sun,
3471sun-24|Sun 24-line window,
3472	cols#80, lines#24, use=sun,
3473sun-17|Sun 17-line window,
3474	cols#80, lines#17, use=sun,
3475sun-12|Sun 12-line window,
3476	cols#80, lines#12, use=sun,
3477sun-1|Sun 1-line window for sysline,
3478	eslok, hs,
3479	cols#80, lines#1,
3480	dsl=^L, fsl=\E[K, tsl=^M, use=sun,
3481sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character,
3482	ich1@, rmir@, smir@, use=sun,
3483sun-c|sun-cmd|Sun Microsystems Workstation console with scrollable history,
3484	lines#35,
3485	rmcup=\E[>4h, smcup=\E[>4l, use=sun,
3486
3487#### Iris consoles
3488#
3489
3490# (wsiris: this had extension capabilities
3491#	:HS=\E7F2:HE=\E7F7:\
3492#	:CT#2:CZ=*Bblack,red,green,yellow,blue,magenta,cyan,*Fwhite:
3493# See the note on Iris extensions near the end of this file.
3494# Finally, removed suboptimal <clear>=\EH\EJ and added <cud1> &
3495# <flash> from BRL -- esr)
3496wsiris|iris40|iris emulating a 40 line visual 50 (approximately),
3497	OTbs, OTnc, OTpt, am,
3498	OTkn#3, cols#80, it#8, lines#40,
3499	OTnl=\EB, bel=^G, clear=\Ev, cnorm=\E>, cub1=^H, cud1=\EB,
3500	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
3501	cvvis=\E;, dim=\E7F2, dl1=\EM, ed=\EJ, el=\EK,
3502	flash=\E7F4\E7B1\013\E7F7\E7B0, home=\EH, ht=^I, il1=\EL,
3503	ind=^J, is2=\E7B0\E7F7\E7C2\E7R3, kcub1=\ED, kcud1=\EB,
3504	kcuf1=\EC, kcuu1=\EA, kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3,
3505	kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, ri=\EI,
3506	rmso=\E0@, rmul=\E7R3\E0@, sgr0=\E7F7, smso=\E9P,
3507	smul=\E7R2\E9P,
3508
3509#### NeWS consoles
3510#
3511# Console terminal windows under the NeWS (Sun's Display Postscript windowing
3512# environment).   Note: these have nothing to do with Sony's News workstation
3513# line.
3514#
3515
3516# Entry for NeWS's psterm from Eric Messick & Hugh Daniel
3517# (psterm: unknown ":sl=\EOl:el=\ENl:" removed -- esr)
3518psterm|psterm-basic|NeWS psterm-80x34,
3519	OTbs, am, hs, km, ul,
3520	cols#80, it#8, lines#34,
3521	blink=\EOb, bold=\EOd, clear=^L, csr=\EE%p1%d;%p2%d;,
3522	cub1=\ET, cud1=\EP, cuf1=\EV, cup=\E%p1%d;%p2%d;, cuu1=\EY,
3523	dch1=\EF, dl1=\EK, ed=\EB, el=\EC, flash=\EZ, fsl=\ENl,
3524	home=\ER, ht=^I, il1=\EA, ind=\EW, is1=\EN*, kcub1=\E[D,
3525	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ll=\EU, rc=^\, rev=\EOr,
3526	ri=\EX, rmcup=\ENt, rmir=\ENi, rmso=\ENo, rmul=\ENu, sc=^],
3527	sgr0=\EN*, smcup=\EOt, smir=\EOi, smso=\EOo, smul=\EOu,
3528	tsl=\EOl,
3529psterm-96x48|NeWS psterm 96x48,
3530	cols#96, lines#48, use=psterm,
3531psterm-90x28|NeWS psterm 90x28,
3532	cols#90, lines#28, use=psterm,
3533psterm-80x24|NeWS psterm 80x24,
3534	cols#80, lines#24, use=psterm,
3535# This is a faster termcap for psterm.  Warning:  if you use this termcap,
3536# some control characters you type will do strange things to the screen.
3537# (psterm-fast: unknown ":sl=^Ol:el=^Nl:" -- esr)
3538psterm-fast|NeWS psterm fast version (flaky ctrl chars),
3539	OTbs, am, hs, km, ul,
3540	cols#80, it#8, lines#34,
3541	blink=^Ob, bold=^Od, clear=^L, csr=\005%p1%d;%p2%d;,
3542	cub1=^T, cud1=^P, cuf1=^V, cup=\004%p1%d;%p2%d;, cuu1=^Y,
3543	dch1=^F, dl1=^K, ed=^B, el=^C, flash=^Z, fsl=^Nl, home=^R, ht=^I,
3544	il1=^A, ind=^W, is1=^N*, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
3545	kcuu1=\E[A, ll=^U, rc=^\, rev=^Or, ri=^X, rmcup=^Nt, rmir=^Ni,
3546	rmso=^No, rmul=^Nu, sc=^], sgr0=^N*, smcup=^Ot, smir=^Oi,
3547	smso=^Oo, smul=^Ou, tsl=^Ol,
3548
3549#### NeXT consoles
3550#
3551# Use `glasstty' for the Workspace application
3552#
3553
3554# From: Dave Wetzel <dave@turbocat.snafu.de> 22 Dec 1995
3555next|NeXT console,
3556	am, xt,
3557	cols#80, it#8, lines#24,
3558	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3559	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
3560	ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
3561	rmso=\E[4;1m, sgr0=\E[m, smso=\E[4;2m,
3562nextshell|NeXT Shell application,
3563	am,
3564	cols#80,
3565	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, kbs=^H, kcub1=^H,
3566	kcud1=^J, nel=^M^J,
3567
3568#### Sony NEWS workstations
3569#
3570
3571# (news-unk: this had :KB=news: -- esr)
3572news-unk|SONY NEWS vt100 emulator common entry,
3573	OTbs, OTpt, am, xenl,
3574	cols#80,
3575	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
3576	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
3577	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
3578	ed=\E[J, el=\E[K, home=\E[H, ht=^I,
3579	if=/usr/lib/tabset/vt100, il=\E[%p1%dL, il1=\E[L,
3580	is2=\E[?7h\E[?1l\E[?3l\E7\E8, kbs=^H, kcub1=\EOD,
3581	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOY, kf1=\EOP,
3582	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV,
3583	kf8=\EOW, kf9=\EOX, rc=\E8, rev=\E[7m, ri=\EM,
3584	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3585	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[r, sc=\E7,
3586	sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
3587#
3588# (news-29: this had :TY=ascii: --esr)
3589news-29,
3590	lines#29, use=news-unk,
3591# (news-29-euc: this had :TY=euc: --esr)
3592news-29-euc,
3593	use=news-29,
3594# (news-29-sjis: this had :TY=sjis: --esr)
3595news-29-sjis,
3596	use=news-29,
3597#
3598# (news-33: this had :TY=ascii: --esr)
3599news-33,
3600	lines#33, use=news-unk,
3601# (news-33-euc: this had :TY=euc: --esr)
3602news-33-euc,
3603	use=news-33,
3604# (news-33-sjis: this had :TY=sjis: --esr)
3605news-33-sjis,
3606	use=news-33,
3607#
3608# (news-42: this had :TY=ascii: --esr)
3609news-42,
3610	lines#42, use=news-unk,
3611# (news-42-euc: this had :TY=euc: --esr)
3612news-42-euc,
3613	use=news-42,
3614# (news-42-sjis: this had :TY=sjis: --esr)
3615news-42-sjis,
3616	use=news-42,
3617#
3618#	NEWS-OS old termcap entry
3619#
3620# (news-old-unk: this had :KB=news:TY=sjis: --esr)
3621news-old-unk|SONY NEWS vt100 emulator common entry,
3622	OTbs, OTpt, am, xenl,
3623	cols#80, vt#3,
3624	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
3625	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
3626	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
3627	home=\E[H, ht=^I, if=/usr/lib/tabset/vt100, kbs=^H,
3628	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
3629	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m, ri=\EM,
3630	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3631	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3632	sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
3633#
3634# (nwp512: this had :DE=^H:, which I think means <OTbs> --esr)
3635nwp512|news|nwp514|news40|vt100-bm|old sony vt100 emulator 40 lines,
3636	OTbs,
3637	lines#40,
3638	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
3639	use=news-old-unk,
3640#
3641# (nwp512-a: this had :TY=ascii: and the alias vt100-bm --esr)
3642nwp512-a|nwp514-a|news-a|news42|news40-a|sony vt100 emulator 42 line,
3643	lines#42,
3644	is2=\E[?7h\E[?1l\E[?3l\E7\E[1;42r\E8,
3645	use=news-old-unk,
3646#
3647# (nwp-512-o: this had :KB=nwp410:DE=^H:  I interpret the latter as <OTbs>. --esr)
3648nwp512-o|nwp514-o|news-o|news40-o|vt100-bm-o|sony vt100 emulator 40 lines,
3649	OTbs,
3650	lines#40,
3651	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;40r\E8,
3652	use=news-old-unk,
3653#
3654# (nwp513: this had :DE=^H: and the alias vt100-bm --esr)
3655nwp513|nwp518|nwe501|newscbm|news31|sony vt100 emulator 33 lines,
3656	OTbs,
3657	lines#31,
3658	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
3659	use=news-old-unk,
3660#
3661# (nwp513-a: this had :TY=ascii: and :DE=^H:, which I interpret as <OTbs>; --esr)
3662# also the alias vt100-bm.
3663nwp513-a|nwp518-a|nwe501-a|nwp251-a|newscbm-a|news31-a|newscbm33|news33|old sony vt100 emulator 33 lines,
3664	OTbs,
3665	lines#33,
3666	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;33r\E8,
3667	use=news-old-unk,
3668#
3669# (nwp513-o: had :DE=^H:, I think that's <OTbs>; also the alias vt100-bm --esr)
3670nwp513-o|nwp518-o|nwe501-o|nwp251-o|newscbm-o|news31-o|old sony vt100 emulator 33 lines,
3671	OTbs,
3672	lines#31,
3673	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;31r\E8,
3674	use=news-old-unk,
3675#
3676# (news28: this had :DE=^H:, I think that's <OTbs>, and :KB=nws1200: --esr)
3677news28|sony vt100 emulator 28 lines,
3678	OTbs,
3679	lines#28,
3680	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;28r\E8,
3681	use=news-old-unk,
3682#
3683# (news29: this had :TY=ascii:KB=nws1200:\ --esr)
3684news29|news28-a|sony vt100 emulator 29 lines,
3685	lines#29,
3686	is2=\E7\E[r\E8\EE\EE\EE\EM\EM\EM\E[?7h\E[?1l\E[?3l\E7\E[1;29r\E8,
3687	use=news-old-unk,
3688#
3689# (news511: this had :TY=sjis: --esr)
3690nwp511|nwp-511|nwp-511 vt100,
3691	OTbs, OTpt, am, xenl,
3692	cols#80, lines#24,
3693	clear=\E[;H\E[2J$<20/>, cuf1=\E[C,
3694	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A$<2/>, dl1=\E[M,
3695	ed=\E[J$<30/>, el=\E[K$<3/>,
3696	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
3697	il1=\E[L, is2=\E[?5l\E[?1l\E>\E[?7h\E[?8h, kcub1=\E[D,
3698	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
3699	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\E#W, khome=\E[H,
3700	ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
3701	rs2=\E7\E[r\E8\E[?5l\E[?1l\E>\E[?7h\E[?8h,
3702	smso=\E[7m$<2/>, smul=\E[4m$<2/>,
3703# (news517: this had :TY=sjis:. --esr)
3704nwp517|nwp-517|nwp-517 vt200 80 cols 30 rows,
3705	eslok, hs,
3706	cols#80, lines#30,
3707	OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
3708	is2=\E7\E[r\E8\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3709	tsl=\E[1$}\E[;%df, use=vt200,
3710# (news517-w: this had :TY=sjis:. --esr)
3711nwp517-w|nwp-517-w|nwp-517 vt200 132 cols 50 rows,
3712	eslok, hs,
3713	cols#132, lines#50,
3714	OTi2=\E[2$~\n, dsl=\E[1$~, fsl=\E[0$},
3715	is2=\E7\E[r\E8\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
3716	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h,
3717	tsl=\E[1$}\E[;%df, use=vt200,
3718
3719#### Common Desktop Environment
3720#
3721
3722# This ships with Sun's CDE in Solaris 2.5
3723# Corrected Sun Aug 9 1998 by Alexander V. Lukyanov <lav@video.yars.free.net>
3724dtterm|CDE desktop terminal,
3725	am, mir, msgr, xenl, xon,
3726	cols#80, it#8, lines#24, lm#0, ncv@,
3727	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
3728	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3729	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
3730	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
3731	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
3732	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
3733	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
3734	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
3735	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H,
3736	ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
3737	ind=\ED, invis=\E[8m, is2=\E F\E>\E[?1l\E[?7h\E[?45l,
3738	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3739	kdch1=\E[3~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
3740	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
3741	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
3742	kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
3743	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3744	kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
3745	kslt=\E[4~, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
3746	rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, rmul=\E[24m,
3747	sc=\E7,
3748	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%;,
3749	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
3750	smso=\E[2;7m, smul=\E[4m, tbc=\E[3g, use=ecma+color,
3751
3752#### Non-Unix Consoles
3753#
3754
3755# Except for the "-emx" suffixes, these are as distributed with EMX 0.9b,
3756# a Unix-style environment used on OS/2.  (Note that the suffix makes some
3757# names longer than 14 characters, the nominal maximum).
3758#
3759# Removed: rmacs=\E[10m, smacs=\E[11m, because OS/2 does not implement acs.
3760ansi-emx|ANSI.SYS color,
3761	am, bce, eo, mir, msgr, xenl, xon,
3762	colors#16, cols#80, it#8, lines#25, pairs#64,
3763	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3764	clear=\E[1;33;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3765	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3766	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3767	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3768	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3769	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3770	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3771	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[5;37;41m,
3772	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;44m\E[1;33m,
3773	rmul=\E[0;44m\E[1;33m, rs1=\Ec, setab=\E[4%p1%dm,
3774	setaf=\E[3%p1%dm, sgr0=\E[0m\E[1;33;44m, smir=\E[4h,
3775	smpch=\E[11m, smso=\E[0;31;47m, smul=\E[1;31;44m,
3776	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3777ansi-color-2-emx|ANSI.SYS color 2,
3778	am, bce, eo, mir, msgr, xenl, xon,
3779	colors#16, cols#80, it#8, lines#25, pairs#64,
3780	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3781	clear=\E[0;37;44m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3782	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3783	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3784	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3785	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3786	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3787	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3788	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
3789	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;44m,
3790	rmul=\E[0;37;44m, rs1=\Ec, setab=\E[4%p1%dm,
3791	setaf=\E[3%p1%dm, sgr0=\E[0;37;44m, smir=\E[4h,
3792	smpch=\E[11m, smso=\E[1;37;46m, smul=\E[1;36;44m,
3793	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3794ansi-color-3-emx|ANSI.SYS color 3,
3795	am, bce, eo, mir, msgr, xenl, xon,
3796	colors#16, cols#80, it#8, lines#25, pairs#64,
3797	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
3798	clear=\E[0;37;40m\E[H\E[J, cnorm=\E[?25h, cr=^M, cub1=^H,
3799	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3800	dch=\E[%p1%dp, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l,
3801	home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, ind=^J,
3802	kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
3803	kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>, kf5=\0?, kf6=\0@,
3804	kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G, kich1=\0R, kll=\0O,
3805	knp=\0Q, kpp=\0I, kspd=^Z, nel=^M^J, rev=\E[1;37;46m,
3806	rmir=\E[4l, rmpch=\E[10m, rmso=\E[0;37;40m,
3807	rmul=\E[0;37;40m, rs1=\Ec, setab=\E[4%p1%dm,
3808	setaf=\E[3%p1%dm, sgr0=\E[0;10m, smir=\E[4h,
3809	smpch=\E[11m, smso=\E[1;37;46m, smul=\E[0;36;40m,
3810	tbc=\E[3g, u8=\E[?6c, u9=\E[c,
3811mono-emx|stupid monochrome ansi terminal with only one kind of emphasis,
3812	am,
3813	cols#80, it#8, lines#24,
3814	clear=\E[H\E[2J$<50>, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
3815	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
3816	ht=^I, kb2=\E[G, kbs=^H, kcub1=\0K, kcud1=\0P, kcuf1=\0M,
3817	kcuu1=\0H, kf0=\0D, kf1=\0;, kf2=\0<, kf3=\0=, kf4=\0>,
3818	kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B, kf9=\0C, khome=\0G,
3819	kich1=\0R, kll=\0O, knp=\0Q, kpp=\0I, nel=^M^J, rev=\E[7m,
3820	sgr0=\E[0m,
3821
3822# Use this for cygwin32 (tested with beta 19.1)
3823# underline is colored bright magenta
3824# shifted kf1-kf12 are kf11-kf22
3825cygwinB19|ansi emulation for cygwin32,
3826	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
3827	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
3828	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
3829	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
3830	kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, kf3=\E[[C, kf4=\E[[D,
3831	kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3832	khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~, rmam@, smam@,
3833	use=ansi.sys,
3834
3835# Use this for cygwin (tested with version 1.1.0).
3836# I've combined pcansi and linux.  Some values of course were different and
3837# I've indicated which of these were and which I used.
3838# Cheers, earnie_boyd@yahoo.com
3839# several changes based on running with tack and comparing with older entry -TD
3840cygwin|ansi emulation for Cygwin,
3841	am, eo, in, msgr, xon,
3842	colors#8, cols#80, it#8, lines#25, ncv#3, pairs#64,
3843	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,
3844	bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, cub1=^H,
3845	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
3846	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
3847	el=\E[K, el1=\E[1K, home=\E[H, hpa=\E[%i%p1%dG, ht=^I,
3848	hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
3849	ind=^J, invis=\E[8m, kbs=^H, kcub1=\E[D, kcud1=\E[B,
3850	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
3851	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
3852	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
3853	kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~,
3854	kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
3855	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~,
3856	knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J, op=\E[39;49m,
3857	rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmpch=\E[10m,
3858	rmso=\E[27m, rmul=\E[24m, rs1=\Ec\E]R, sc=\E7,
3859	setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
3860	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,
3861	sgr0=\E[0;10m, smir=\E[4h, smpch=\E[11m, smso=\E[7m,
3862	smul=\E[4m, u6=\E[%i%d;%dR, u7=\E[6n, u9=\E[c,
3863	vpa=\E[%i%p1%dd,
3864
3865# This entry fits the Windows NT console when the _POSIX_TERM environment
3866# variable is set to 'on'.  While the Windows NT POSIX console is seldom used,
3867# the Telnet client supplied with both the Windows for WorkGroup 3.11 TCP/IP
3868# stack and the Win32 (i.e., Windows 95 and Windows NT 3.1 or later) operating
3869# systems is not, and (surprise!) they match very well.
3870#
3871# See:  MS Knowledge Base item Q108581, dated 13-MAY-1997, titled "Setting Up
3872# VI POSIX Editor for Windows NT 3.1".  True to Microsoft form, not only
3873# are the installation instructions a pile of mind-numbing bureaucratese,
3874# but the termcap entry is actually broken and unusable as given; the :do:
3875# capability is misspelled "d".
3876#
3877# To use this, you need to a bunch of environment variables:
3878#
3879# SET _POSIX_TERM=on
3880# SET TERM=ansi
3881# SET TERMCAP=location of termcap file in POSIX file format
3882# which is case-sensitive.
3883# e.g. SET TERMCAP=//D/RESKIT35/posix/termcap
3884# SET TMP=//C/TEMP
3885#
3886# Important note: setting the TMP environment variable in POSIX style renders
3887# it incompatible with a lot of other applications, including Visual C++. So
3888# you should have a separate command window just for vi. All the other
3889# variables may be permanently set in the Control Panel\System applet.
3890#
3891# You can find out more about the restrictions of this facility at
3892# <http://www.nentug.org/unix-to-nt/ntposix.htm>.
3893#
3894# From: Federico Bianchi <bianchi@magna.cisid.unipi.it>, 15 Jan 1997
3895ansi-nt|psx_ansi|Microsoft Windows NT console POSIX ANSI mode,
3896	am, bw, msgr,
3897	cols#80, it#8, lines#25,
3898	bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
3899	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
3900	home=\E[H, ht=^I, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[V,
3901	kcuf1=\E[C, kcuu1=\E[A, nel=\r\E[S, rc=\E[u, rev=\E[7m,
3902	ri=\E[T, rmso=\E[m, sc=\E[s, sgr0=\E[0m, smso=\E[7m,
3903# From: jew@venus.sunquest.com
3904# Date: 19 Feb 93 23:41:07 GMT
3905# Here's  a  combination of  ansi and  vt100 termcap
3906# entries   that  works  nearly   perfectly  for  me
3907# (Gateway 2000 Handbook and Microsoft Works 3.0):
3908pcmw|PC running Microsoft Works,
3909	am, xenl,
3910	cols#80, it#8, lines#24, vt#3,
3911	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
3912	clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J,
3913	cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
3914	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
3915	ht=^I, hts=\EH$<2/>, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H,
3916	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
3917	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED$<5/>,
3918	rc=\E8, rev=\E[7m$<2/>, rf=/usr/share/lib/tabset/vt100,
3919	ri=\EM$<5/>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
3920	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
3921	sgr0=\E[m$<2/>, smso=\E[7m$<2/>, smul=\E[4m$<2/>,
3922	tbc=\E[3g$<2/>,
3923
3924######## COMMON TERMINAL TYPES
3925#
3926# This section describes terminal classes and maker brands that are still
3927# quite common, but have proprietary command sets not blessed by ANSI.
3928#
3929
3930#### Altos
3931#
3932# Altos made a moderately successful line of UNIX boxes.  In 1990 they were
3933# bought out by Acer, a major Taiwanese manufacturer of PC-clones.
3934# Acer has a web site at http://www.acer.com.
3935#
3936# Altos descriptions from Ted Mittelstaedt <tedm@agora.rain.com> 4 Sep 1993
3937# His comments suggest they were shipped with the system.
3938#
3939
3940# (altos2: had extension capabilities
3941#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3942#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3943#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3944#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3945#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
3946#	:YU=^AQ\r:YD=^AR\r:YR=^AS\r:YL=^AT\r:\
3947#	:HL=^AP\r:SP=\E[i:\
3948#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
3949#	:LO=\E[0q:LC=\E[5q:LL=\E[6q:\
3950# Comparison with the k* capabilities makes it obvious that the c* things are
3951# shift keys.  I have renamed them to keys 32 and up accordingly.  Also,
3952# :sr: was given as a boolean-- esr)
3953altos2|alt2|altos-2|altos II,
3954	cols#80, it#8, lines#24, xmc#0,
3955	clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[1B, cuf1=\E[1C,
3956	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch1=\E[P, dl1=\E[M,
3957	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
3958	if=/usr/share/tabset/vt100, il1=\E[L, ind=^J,
3959	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kDL=^Am\r,
3960	kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=\E[D,
3961	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=^AM\r, kel=^AN\r,
3962	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
3963	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
3964	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
3965	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
3966	kf8=^AG\r, kf9=^AH\r, khome=\E[f, kil1=^AJ\r, kind=^AO\r,
3967	nel=^M^J, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
3968	smam=\E[?7h, smso=\E[7m, smul=\E[4m,
3969# (altos3: had extension capabilities
3970#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3971#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3972#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3973#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3974#	:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
3975#	:HL=^AP\r:SP=\E[i:\
3976#	:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
3977altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V,
3978	blink=\E[5p, ri=\EM, sgr0=\E[p, use=altos2,
3979altos4|alt4|altos-4|altos IV,
3980	use=wy50,
3981# (altos7: had extension capabilities:
3982#	:GG#0:GI=\EH8:GF=\EH7:\
3983#	:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
3984#	:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
3985#	:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
3986#	:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
3987# Comparison with the k* capabilities makes it obvious that the c* things are
3988# shift keys.  I have renamed them to keys 32 and up accordingly.  I have
3989# also made this entry relative to adm12 in order to give it an <sgr>. The
3990# <invis> imported by use=adm+sgr may work, let me know. -- esr)
3991altos7|alt7|altos VII,
3992	am, mir,
3993	cols#80, lines#24, xmc#0,
3994	acsc=j5k3l2m1n8q\:t4u9v=w0x6, blink=\EG2, bold=\EGt,
3995	clear=\E+^^, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
3996	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
3997	dim=\EGp, dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, il1=\EE,
3998	ind=^J, invis=\EG1,
3999	is2=\E`\:\Ee(\EO\Ee6\Ec41\E~4\Ec21\Eu\E~2, kDL=^Am\r,
4000	kEOL=^An\r, kbs=^H, kcbt=^AK\r, kclr=^AL\r, kcub1=^H,
4001	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=^AM\r, kel=^AN\r,
4002	kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf32=^A`\r,
4003	kf33=^Aa\r, kf34=^Ab\r, kf35=^Ac\r, kf36=^Ad\r, kf37=^Ae\r,
4004	kf38=^Af\r, kf39=^Ag\r, kf4=^AC\r, kf40=^Ah\r, kf41=^Ai\r,
4005	kf42=^Aj\r, kf43=^Ak\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
4006	kf8=^AG\r, kf9=^AH\r, khome=^^, kil1=^AJ\r, kind=^AO\r,
4007	knp=\EK, kpp=\EJ, mc4=\EJ, mc5=\Ed#, nel=^M^J, ri=\Ej,
4008	rmir=\Er, smir=\Eq, use=adm+sgr,
4009altos7pc|alt7pc|altos PC VII,
4010	kend=\ET, use=altos7,
4011
4012#### Hewlett-Packard (hp)
4013#
4014#	Hewlett-Packard
4015#	8000 Foothills Blvd
4016#	Roseville, CA 95747
4017#	Vox: 1-(916)-785-4363	(Technical response line for VDTs)
4018#	     1-(800)-633-3600	(General customer support)
4019#
4020#
4021# As of March 1998, HP no longer has any terminals in production.
4022# The 700 series (22, 32, 41, 44, 92, 94, 96, 98) is still being
4023# supported (they still have parts). So are the 2392a and 2394a.
4024# See the WORKSTATION CONSOLES section for the 700s.
4025#
4026
4027# Generic HP terminal - this should (hopefully) work on any HP terminal.
4028hpgeneric|hp|hewlett-packard generic terminal,
4029	OTbs, OTpt, am, da, db, mir, xhp,
4030	cols#80, lines#24, lm#0, vt#6,
4031	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4032	cup=\E&a%p2%dc%p1%dY$<6>, cuu1=\EA, dch1=\EP, dl1=\EM,
4033	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1, il1=\EL,
4034	ind=^J, kbs=^H, kcbt=\Ei, rmir=\ER, rmso=\E&d@, rmul=\E&d@,
4035	sgr0=\E&d@, smir=\EQ, smso=\E&dJ, smul=\E&dD, tbc=\E3,
4036	vpa=\E&a%p1%dY,
4037
4038hp110|hewlett-packard model 110 portable,
4039	lines#16, use=hpgeneric,
4040
4041hp+pfk+cr|hp function keys with CR,
4042	kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r,
4043	kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r,
4044
4045hp+pfk-cr|hp function keys w/o CR,
4046	kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev,
4047	kf8=\Ew,
4048
4049# The hp2621s use the same keys for the arrows and function keys,
4050# but not separate escape sequences. These definitions allow the
4051# user to use those keys as arrow keys rather than as function
4052# keys.
4053hp+pfk+arrows|hp alternate arrow definitions,
4054	kcub1=\Eu\r, kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1@,
4055	kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, khome=\Ep\r, kind=\Er\r,
4056	kll=\Eq\r, kri=\Es\r,
4057
4058hp+arrows|hp arrow definitions,
4059	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
4060	kind=\ES, kll=\EF, kri=\ET,
4061
4062# Generic stuff from the HP 262x series
4063#
4064hp262x|HP 262x terminals,
4065	xhp,
4066	blink=\E&dA, dch1=\EP$<2>, ed=\EJ, ht=\011$<2>, ind=\ES,
4067	invis=\E&dS, ip=$<2>, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4068	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
4069	kich1=\EQ, kil1=\EL, kind=\ES, knp=\EU, kpp=\EV, kri=\ET,
4070	krmir=\ER, rev=\E&dB, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
4071	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%c,
4072	sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB, smul=\E&dD,
4073
4074# Note: no <home> on HPs since that homes to top of memory, not screen.
4075# Due to severe 2621 braindamage, the only way to get the arrow keys to
4076# transmit anything at all is to turn on the function key labels
4077# with <smkx>, and even then the user has to hold down shift!
4078# The default 2621 turns off the labels except when it has to to
4079# enable the function keys. If your installation prefers labels
4080# on all the time, or off all the time (at the "expense" of the
4081# function keys), use 2621-nl or 2621-wl.
4082#
4083# Note: there are newer ROMs for 2621's that allow you to set
4084# strap A so the regular arrow keys xmit \EA, etc, as with the
4085# 2645. However, even with this strap set, the terminal stops
4086# xmitting if you reset it, until you unset and reset the strap!
4087# Since there is no way to set/unset the strap with an escape
4088# sequence, we don't use it in the default.
4089# If you like, you can use 2621-ba (brain-damaged arrow keys).
4090hp2621-ba|2621 w/new rom and strap A set,
4091	rmkx@, smkx@, use=hp+arrows, use=hp2621,
4092
4093# hp2621 with function labels. Most of the time they are off,
4094# but inside vi, the function key labels appear. You have to
4095# hold down shift to get them to xmit.
4096hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels,
4097	is2=\E&jA\r, rmkx=\E&jA, use=hp2621-fl,
4098hp2621-fl|hp 2621,
4099	xhp@, xon,
4100	pb#19200,
4101	cbt=\Ei, cup=\E&a%p2%dc%p1%dY, dch1=\EP$<2>, ht=\011$<2>,
4102	ip=$<2>, is2=\E&j@\r, rmkx=\E&j@, rmso=\E&d@, rmul=\E&d@,
4103	sgr0=\E&d@, smkx=\E&jB, smso=\E&dD, smul=\E&dD,
4104	use=hp+pfk+cr, use=hpgeneric,
4105
4106# To use hp2621p printer, setenv TERM=2621p, PRINTER=2612p
4107hp2621p|hp 2621 with printer,
4108	mc4=\E&p13C, mc5=\E&p11C, use=hp2621,
4109
4110hp2621p-a|hp2621p with fn as arrows,
4111	use=hp+pfk+arrows, use=hp2621p,
4112
4113# hp2621 with k45 keyboard
4114hp2621-k45|hp2621k45|k45|hp 2621 with 45 keyboard,
4115	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
4116	khome=\Eh, rmkx=\E&s0A, smkx=\E&s1A, use=hp2621,
4117
4118# 2621 using all 48 lines of memory, only 24 visible at any time.
4119hp2621-48|48 line 2621,
4120	lines#48,
4121	cup=\E&a%p2%dc%p1%dR, home=\EH, vpa=\E&a%p1%dR,
4122	use=hp2621,
4123
4124# 2621 with no labels ever. Also prevents vi delays on escape.
4125hp2621-nl|hp 2621 with no labels,
4126	kcub1@, kcud1@, kcuf1@, kcuu1@, khome@, rmkx@, smkx@,
4127	use=hp2621-fl,
4128
4129# Needed for UCB ARPAVAX console, since lsi-11 expands tabs
4130# (wrong).
4131#
4132hp2621-nt|hp 2621 w/no tabs,
4133	ht@, use=hp2621,
4134
4135# Hp 2624 B with 4 or 10 pages of memory.
4136#
4137# Some assumptions are made with this entry. These settings are
4138# NOT set up by the initialization strings.
4139#
4140# Port Configuration
4141# 	RecvPace=Xon/Xoff
4142# 	XmitPace=Xon/Xoff
4143# 	StripNulDel=Yes
4144#
4145# Terminal Configuration
4146# 	InhHndShk=Yes
4147# 	InhDC2=Yes
4148# 	XmitFnctn(A)=No
4149# 	InhEolWrp=No
4150#
4151# Note: the 2624 DOES have a true <home>, believe it or not!
4152#
4153# The 2624 has an "error line" to which messages can be sent.
4154# This is CLOSE to what is expected for a "status line". However,
4155# after a message is sent to the "error line", the next carriage
4156# return is EATEN and the "error line" is turned back off again!
4157# So I guess we can't define <hs>, <eslok>, <wsl>, <dsl>, <fsl>, <tsl>.
4158#
4159# This entry supports emacs (and any other program that uses raw
4160# mode) at 4800 baud and less. I couldn't get the padding right
4161# for 9600.
4162#
4163# (hp2624: replaced NUL sequences in flash with mandatory pauses -- esr)
4164hp2624|hp2624a|hp2624b|hp2624b-4p|Hewlett Packard 2624 B,
4165	da, db,
4166	lm#96,
4167	flash=\E&w13F$<66/>\E&w12F$<66/>\E&w13F$<66/>\E&w12F,
4168	use=hp+labels, use=scrhp,
4169
4170# This hp2626 entry does not use any of the fancy windowing stuff
4171# of the 2626.
4172#
4173# Indeed, terminfo does not yet handle such stuff. Since changing
4174# any window clears memory, it is probably not possible to use
4175# this for screen opt.
4176#
4177# ed is incredibly slow most of the time - I am guessing at the
4178# exact padding. Since the terminal uses xoff/xon this is intended
4179# only for cost computation, so that the terminal will prefer el
4180# or even dl1 which is probably faster!
4181#
4182# \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
4183# extra slow on the last line of the window.
4184#
4185# The padding probably should be changed.
4186#
4187hp2626|hp2626a|hp2626p|hp 2626,
4188	da, db,
4189	lm#0, pb#19200,
4190	ed=\ED\EJ$<500>\EC, indn=\E&r%p1%dD, ip=$<4>,
4191	is2=\E&j@\r, rin=\E&r%p1%dU, use=hp+pfk+cr,
4192	use=hp+labels, use=scrhp,
4193
4194# This entry is for sysline. It allocates a 23 line window with
4195# a 115 line workspace for regular use, and a 1 line window for
4196# the status line.
4197#
4198# This assumes port 2 is being used.
4199# Turn off horizontal line, Create ws #1 with 115 lines,
4200# Create ws #2 with 1 line, Create window #1 lines 1-23,
4201# Create window #2 lines 24-24, Attach cursor to workspace #1.
4202# Note that this clears the tabs so it must be done by tset before
4203# it sets the tabs.
4204#
4205hp2626-s|hp 2626 using only 23 lines,
4206	eslok, hs,
4207	lines#23,
4208	fsl=\E&d@\E&w7f2p1I\E&w4f1I,
4209	is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r,
4210	tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC, use=hp2626,
4211# Force terminal back to 24 lines after being 23.
4212hp2626-ns|hp 2626 using all 24 lines,
4213	is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r,
4214	use=hp2626,
4215# Various entries useful for small windows on 2626.
4216hp2626-12|hewlett-packard 2626 12 lines,
4217	lines#12, use=hp2626,
4218hp2626-12x40|hewlett-packard 2626 12 lines 40 columns,
4219	cols#40, lines#12, use=hp2626,
4220hp2626-x40|hewlett-packard 2626 40 columns,
4221	cols#40, use=hp2626,
4222hp2626-12-s|hewlett-packard 2626 11 lines plus status,
4223	lines#11, use=hp2626-s,
4224
4225#
4226# hp2627 color tubes from University of Wisconsin
4227#
4228hp2627a-rev|hp 2627 with reverse video colors,
4229	cr=^M, cud1=^J, ht=^I, ind=^J,
4230	is2=\E&v0m1a0b0c1x1y1z1i0a0b1c1x1y1z0i0S\E&j@\r\E3\r,
4231	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmul=\E&v0S\E&d@,
4232	smul=\E&dD\E&v1S, use=hp2621-nl,
4233hp2627a|hp 2627 color terminal with no labels,
4234	cr=^M, cud1=^J, ht=^I, ind=^J,
4235	is2=\E&v0m1a1b0c1i0a1b1c2i1a0b0c0i0S\E&j@\r\E3\r,
4236	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rmso=\E&v0S,
4237	rmul=\E&v0S\E&d@, smso=\E&v2S, smul=\E&dD\E&v1S,
4238	use=hp2621-nl,
4239hp2627c|hp 2627 color (cyan) terminal with no labels,
4240	cr=^M, cud1=^J, ht=^I, ind=^J,
4241	is2=\E&v0m1a0b0c2i1a1b0c1i0a1b1c0i0S\E&j@\r\E3\r,
4242	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, use=hp2627a,
4243
4244# hp2640a doesn't have the Y cursor addressing feature, and C is
4245# memory relative instead of screen relative, as we need.
4246#
4247hp2640a|hp 2640a,
4248	cup@, rmkx@, smkx@, use=hp2645,
4249
4250hp2640b|hp2644a|hp 264x series,
4251	rmkx@, smkx@, use=hp2645,
4252
4253# (hp2641a: removed unknown :gu: -- esr)
4254hp2641a|hp2645a|hp2647a|HP 264?A series BRL entry,
4255	am, da, db, mir, xhp,
4256	cols#80, lines#24,
4257	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4258	cup=\E&a%p2%2dc%p1%2dY, cuu1=\EA, dch1=\EP, dl1=\EM,
4259	ed=\EJ, el=\EK, hpa=\E&a%p1%2dC, ht=^I,
4260	if=/usr/share/tabset/std, il1=\EL, ind=^J,
4261	is2=\EE$<500/>, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
4262	rmir=\ER, rmso=\E&d@, smir=\EQ, smso=\E&dB,
4263	vpa=\E&a%p1%2dY,
4264
4265# This terminal should be used at 4800 baud or less. It needs padding for
4266# plain characters at 9600, I guessed at an appropriate cr delay.  It really
4267# wants ^E/^F handshaking, but that doesn't work well even if you write
4268# software to support it.
4269hp2645|hp45|HP 2645 series,
4270	pb#9600,
4271	blink=\E&dA, cr=\r$<20>, dim=\E&dH, kctab=\E2, kcub1=\ED,
4272	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4273	ked=\EJ, kel=\EK, khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL,
4274	kind=\ES, knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, rev=\E&dB,
4275	rmkx=\E&s0A,
4276	sgr=\E&d%{64}%?%p1%t%{66}%|%;%?%p2%t%{68}%|%;%?%p3%t%{66}%|%;%?%p4%t%{65}%|%;%?%p5%t%{72}%|%;%?%p6%t%{66}%|%;%c,
4277	sgr0=\E&d@, smkx=\E&s1A, smul=\E&dD, use=hpgeneric,
4278# You should use this terminal at 4800 baud or less.
4279hp2648|hp2648a|HP 2648a graphics terminal,
4280	clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
4281	dch1=\EP$<7>, ip=$<5>, use=hp2645,
4282
4283# The HP 150 terminal is a fairly vanilla HP terminal, with the
4284# clreol standout problem. It also has graphics capabilities and
4285# a touch screen, which we don't describe here.
4286hp150|hewlett packard Model 150,
4287	OTbs, use=hp2622,
4288
4289# HP 2382a terminals, "the little ones." They don't have any
4290# alternate character set support and sending out ^N/^O will
4291# leave the screen blank.
4292hp2382a|hp2382|hewlett packard 2382a,
4293	da, db,
4294	lh#1, lm#48,
4295	acsc@,
4296	pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
4297	rmacs@,
4298	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,
4299	sgr0=\E&d@, smacs@, use=hp+labels, use=scrhp,
4300
4301hp2621-a|hp2621a-a|hp2621 with fn as arrows,
4302	use=hp+pfk+arrows, use=hp2621-fl,
4303
4304# newer hewlett packard terminals
4305
4306newhpkeyboard|generic entry for HP extended keyboard,
4307	kbs=^H, kcbt=\Ei, kclr=\EJ, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4308	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, khome=\Eh,
4309	kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF, knp=\EU, kpp=\EV,
4310	kri=\ES, krmir=\ER, rmkx=\E&s0A, smkx=\E&s1A,
4311	use=hp+pfk-cr,
4312
4313newhp|generic entry for new hewlett packard terminals,
4314	am, bw, mir, xhp, xon,
4315	cols#80, lines#24, pb#4800,
4316	acsc=2[3@4>5I9(\:'JSKWLQMAO#P$Q;R!S"T1U2V4W3X\:Y+Z*dHjGkTlRmFn/q\,t5u6v8w7x.,
4317	bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M, cub1=^H,
4318	cud1=^J, cuf1=\EC, cuu1=\EA, dch1=\EP$<2>, dim=\E&dH,
4319	dl1=\EM, ed=\EJ, el=\EK, ht=\011$<2>, hts=\E1, il1=\EL, ind=^J,
4320	invis=\E&dS, ip=$<2>, is1=\E&jB$<8>, nel=^M^J,
4321	pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s,
4322	pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s,
4323	pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s, rev=\E&dB, ri=\ET,
4324	rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@, rs1=\Eg,
4325	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%;,
4326	sgr0=\E&d@\017, smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD,
4327	tbc=\E3, use=newhpkeyboard,
4328
4329memhp|memory relative addressing for new HP ttys,
4330	vt#6,
4331	clear=\EH\EJ$<40>, cub=\E&a-%p1%dC, cud=\E&a+%p1%dR,
4332	cuf=\E&a+%p1%dC, cup=\E&a%p1%dr%p2%dC, cuu=\E&a-%p1%dR,
4333	home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R\r,
4334	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dR, use=newhp,
4335
4336scrhp|screen relative addressing for new HP ttys,
4337	clear=\E&a0c0Y\EJ$<40>, cub=\E&a-%p1%dC,
4338	cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC,
4339	cup=\E&a%p1%dy%p2%dC$<10>, cuu=\E&a-%p1%dR,
4340	home=\E&a0y0C, hpa=\E&a%p1%dC, ll=\E&a0y0C\EA,
4341	mrcup=\E&a%p1%dr%p2%dC, vpa=\E&a%p1%dY, use=newhp,
4342
4343# (hp+labels: added label values from a BRL termcap -- esr)
4344hp+labels|"standard" label info for new HP ttys,
4345	lh#2, lw#8, nlab#8,
4346	lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8,
4347	pln=\E&f2a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
4348	rmln=\E&j@, smln=\E&jB,
4349
4350hp+printer|"standard" printer info for HP ttys,
4351	ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C,
4352
4353
4354# The new hp2621b is kind of a cross between the old 2621 and the
4355# new 262x series of machines. It has dip-switched options.
4356# The firmware has a bug in it such that if you give it a null
4357# length label, the following character is eaten!
4358hp2621b|hp 2621b with old style keyboard,
4359	lh#1, lm#48, lw#8, nlab#8,
4360	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
4361	kind=\ET, kll=\EF, kri=\ES,
4362	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,
4363	smln=\E&jB, use=hp2621,
4364
4365hp2621b-p|hp 2621b with printer,
4366	use=hp+printer, use=hp2621b,
4367
4368# hp2621b - new 2621b with new extended keyboard
4369# these are closer to the new 26xx series than the other 2621b
4370hp2621b-kx|hp 2621b with extended keyboard,
4371	use=newhpkeyboard, use=hp2621b,
4372
4373hp2621b-kx-p|hp 2621b with new keyboard & printer,
4374	use=hp+printer, use=hp2621b-kx,
4375
4376# Some assumptions are made in the following entries.
4377# These settings are NOT set up by the initialization strings.
4378#
4379#    Port Configuration
4380# RecvPace=Xon/Xoff	XmitPace=Xon/Xoff	StripNulDel=Yes
4381#
4382#    Terminal Configuration
4383# InhHndShk(G)=Yes	InhDC2(H)=Yes
4384# XmitFnctn(A)=No		InhEolWrp=No
4385#
4386#
4387# Hp 2622a & hp2623a display and graphics terminals
4388#
4389hp2622|hp2622a|hp 2622,
4390	da, db,
4391	lm#0, pb#19200,
4392	is2=\E&dj@\r, use=hp+pfk+cr, use=hp+labels, use=scrhp,
4393
4394# The 2623 is a 2622 with extra graphics hardware.
4395hp2623|hp2623a|hp 2623,
4396	use=hp2622,
4397
4398hp2624b-p|hp2624b-4p-p|hewlett packard 2624 B with printer,
4399	use=hp+printer, use=hp2624,
4400
4401# The hewlett packard B can have an optional extra 6 pages of memory.
4402hp2624-10p|hp2624a-10p|hp2624b-10p|hewlett packard 2624 B w/ 10 pages of memory,
4403	lm#240, use=hp2624,
4404
4405hp2624b-10p-p|hewlett packard 2624 B w/ extra memory & printer,
4406	lm#240, use=hp2624b-p,
4407
4408# Color manipulations for HP terminals
4409hp+color|hp with colors,
4410	ccc,
4411	colors#16, ncv#17, pairs#7,
4412	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,
4413	oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I,
4414	op=\E&v0S, scp=\E&v%p1%dS,
4415
4416# <is2> sets the screen to be 80 columns wide
4417hp2397a|hp2397|hewlett packard 2397A color terminal,
4418	is2=\E&w6f80X, use=memhp, use=hp+labels, use=hp+color,
4419
4420#  HP 700/44 Setup parameters:
4421# Terminal Mode		HP-PCterm
4422# Inhibit Auto Wrap	NO
4423# Status Line		Host Writable
4424# PC Character Set	YES
4425# Twenty-Five Line Mode	YES
4426# XON/XOFF		@128 or 64 (sc)
4427# Keycode Mode 		NO   or YES (sc)
4428# Backspace Key		BS or BS/DEL
4429#
4430# <is2> 	sets pcterm; autowrap; 25 lines; pc char set; prog DEL key;
4431# \E\\? does not turn off keycode mode
4432# <smsc>	sets alternate start/stop; keycode on
4433hpansi|hp700|hewlett packard 700/44 in HP-PCterm mode,
4434	am, eo, xenl, xon,
4435	cols#80, lines#25,
4436	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
4437	bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[2J\E[H,
4438	cnorm=\E[?25h, cr=^M, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
4439	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
4440	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
4441	ind=^J,
4442	is2=\E[44"p\E[?7h\E[>10h\E[>12h\EP1;1|3/7F\E\\,
4443	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
4444	kcuu1=\E[A, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
4445	kf2=\E[18~, kf3=\E[19~, kf4=\E[20~, kf5=\E[21~, kf6=\E[23~,
4446	kf7=\E[24~, kf8=\E[25~, kf9=\E[26~, khome=\E[1~, knp=\E[6~,
4447	kpp=\E[5~, rmam=\E[?7l,
4448	rmsc=\E[>11l\EP1**x0/11;1/13\E[m\E\\, rmso=\E[m,
4449	rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
4450	smsc=\E[>11h\EPO**x0/65;1/67\E\\$<250>, smso=\E[7m,
4451	smul=\E[4m, xoffc=g, xonc=e,
4452#
4453# (hp2392: copied <rmir> here from hpex -- esr)
4454hp2392|239x series,
4455	cols#80,
4456	cbt=\Ei, cup=\E&a%p1%dy%p2%dC, kf1=\Ep\r, kf2=\Eq\r,
4457	kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r,
4458	kf8=\Ew\r, khome=\Eh, kind=\EU, knp=\Eu, kpp=\Ev, kri=\EV,
4459	rmir=\ER, rmul=\E&d@, smir=\EQ, smul=\E&dD, vpa=\E&a%p1%dY,
4460	use=hpsub,
4461
4462hpsub|hp terminals -- capability subset,
4463	am, da, db, mir, xhp, xon,
4464	lines#24,
4465	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
4466	cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC,
4467	ht=^I, if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J,
4468	is2=\E&s1A\E<\E&k0\\, kbs=^H, kcub1=\ED, kcud1=\EB,
4469	kcuf1=\EC, kcuu1=\EA, khome=\Eh, rmkx=\E&s0A, rmso=\E&d@,
4470	sgr0=\E&d@, smkx=\E&s1A, smso=\E&dB,
4471
4472# hpex:
4473#	May be used for most 24 x 80 hp terminals,
4474# but has no padding added, so may allow runover in some terminals at high
4475# baud rates.  Will not work for hp2640a or hp2640b terminals, hp98x6 and
4476# hp98x5 terminal emulators or hp98x6 consoles.
4477# 	Adds xy-cursor addressing, vertical cursor addressing, home,
4478# last line, and underline capabilities.
4479#
4480# (hpex: removed memory-lock capabilities ":ml=\El:mu=\Em:",
4481# moved <rmir> here from hpsub -- esr)
4482hpex|hp extended capabilites,
4483	cr=^M, cud1=^J, cup=\E&a%p1%dy%p2%dC, ht=^I, ind=^J, kbs=^H,
4484	kcub1=^H, kcud1=^J, nel=^M^J, rmir=\ER, rmul=\E&d@, smir=\EQ,
4485	smul=\E&dD, vpa=\E&a%p1%dY, use=hpsub,
4486
4487# From: Ville Sulko <Ville.Sulko@bip.atk.tpo.fi>, 05 Aug 1996
4488hp2|hpex2|hewlett-packard extended capabilities newer version,
4489	am, da, db, mir, xhp,
4490	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, xmc#0,
4491	bel=^G, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
4492	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4493	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4494	il1=\EL, ind=^J, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
4495	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4496	ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
4497	kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
4498	kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
4499	krmir=\ER, ktbc=\E3, meml=\El, memu=\Em,
4500	pfkey=\E&f%p1%dk%p2%l%dL%p2%s,
4501	pfloc=\E&f1a%p1%dk%p2%l%dL%p2%s,
4502	pfx=\E&f2a%p1%dk%p2%l%dL%p2%s,
4503	pln=\E&f%p1%dk%p2%l%dd0L%p2%s, rmir=\ER, rmkx=\E&s0A,
4504	rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
4505	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%;,
4506	sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smln=\E&jB, smso=\E&dB,
4507	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4508
4509# HP 236 console
4510# From: <ddavis@ic.berkeley.edu>
4511hp236|hp236 internal terminal emulator,
4512	OTbs, am,
4513	cols#80, lines#24,
4514	clear=\EF, cnorm=\EDE, cub1=^H,
4515	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\EDB,
4516	dch1=\EJ, dl1=\EH, el=\EK, ich1=\EI, il1=\EG, rmso=\ECI,
4517	sgr0=\ECI, smso=\EBI,
4518
4519# This works on a hp300 console running Utah 4.3 BSD
4520# From: Craig Leres <leres@okeeffe.berkeley.edu>
4521hp300h|HP Catseye console,
4522	OTbs, am, da, db, mir, xhp,
4523	cols#128, lines#51, lm#0, xmc#0,
4524	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H, cud1=\EB,
4525	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4526	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I,
4527	if=/usr/share/tabset/stdcrt, il1=\EL, ind=^J, kbs=^H,
4528	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\Eh,
4529	rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@,
4530	smir=\EQ, smkx=\E&s1A, smso=\E&dB, smul=\E&dD, tbc=\E3,
4531	vpa=\E&a%p1%dY,
4532# From: Greg Couch <gregc@ernie.berkeley.edu>
4533hp9837|hp98720|hp98721|HP 9000/300 workstations,
4534	OTbs, am, da, db, mir, xhp,
4535	cols#128, it#8, lines#46, lm#0,
4536	bel=^G, cbt=\Ei, clear=\E&a0y0C\EJ, cub1=^H, cud1=\EB,
4537	cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP,
4538	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4539	il1=\EL, ind=^J, is2=\E&v0m1b0i&j@, kbs=^H, kcub1=\ED,
4540	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4541	ked=\EJ, kel=\EK, khome=\Eh, kich1=\EQ, kil1=\EL, knp=\EU,
4542	kpp=\EV, rmir=\ER, rmkx=\E&s0A, rmso=\E&v0S, rmul=\E&d@,
4543	sgr0=\E&d@, smir=\EQ, smkx=\E&s1A, smso=\E&v5S, smul=\E&dD,
4544	tbc=\E3, vpa=\E&a%p1%dY,
4545# HP 9845 desktop computer from BRL
4546# (hp9845: removed unknown capability :gu: -- esr)
4547hp9845|HP 9845,
4548	OTbs, am, da, db, eo, mir, xhp,
4549	cols#80, lines#21,
4550	OTbc=\ED, clear=\EH\EJ, cuf1=\EC, cup=\E&a%p2%2dc%p1%2dY,
4551	cuu1=\EA, dch1=\EP, dl1=\EM, ed=\EJ, el=\EK,
4552	if=/usr/share/tabset/std, il1=\EL, rmir=\ER, rmso=\E&d@,
4553	smir=\EQ, smso=\E&dB,
4554# From: Charles A. Finnell of MITRE <finnell@mitre.org>, developed 07SEP90
4555# (hp98550: replaced /usr/share/tabset/9837 with std because <it#8>,<hts=\E1>;
4556# added empty <acsc> to avoid warnings re <smacs>/<rmacs> --esr)
4557hp98550|hp98550a|HP 9000 Series 300 color console,
4558	OTbs, am, da, db, mir, xhp,
4559	cols#128, it#8, lines#49, lm#0,
4560	acsc=, bel=^G, blink=\E&dA, bold=\E&dJ, cbt=\Ei, civis=\E*dR,
4561	clear=\EH\EJ, cnorm=\E*dQ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
4562	cup=\E&a%p1%dy%p2%dC, cuu1=\EA, dch1=\EP, dim=\E&dH,
4563	dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=^I, hts=\E1,
4564	if=/usr/share/tabset/std, il1=\EL, ind=^J, invis=\E&ds,
4565	kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
4566	kcuu1=\EA, kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK, kf1=\Ep,
4567	kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
4568	khome=\Eh, khts=\E1, kich1=\EQ, kil1=\EL, kind=\ES, kll=\EF,
4569	knp=\EU, kpp=\EV, kri=\ET, krmir=\ER, ktbc=\E3, rev=\E&dJ,
4570	rmacs=^O, rmir=\ER, rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@,
4571	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smso=\E&dJ,
4572	smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4573# From: Victor Duchovni <vic@fine.princeton.edu>
4574# (hp700-wy: removed obsolete ":nl=^J:";
4575# replaced /usr/share/tabset/hp700-wy with std because <it#8>,<hts=\E1> -- esr)
4576hp700-wy|HP700/41 emulating wyse30,
4577	OTbs, am, bw, mir, msgr,
4578	cols#80, it#8, lines#24, xmc#1,
4579	cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
4580	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4581	dl1=\ER, ed=\EY, el=\ET$<10/>, home=^^, ht=^I, hts=\E1,
4582	if=/usr/share/tabset/stdcrt, il1=\EE$<0.7*/>,
4583	is1=\E~"\EC\Er\E(\EG0\003\E`9\E`1, kbs=\177, kcbt=\EI,
4584	kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, ked=\EY,
4585	kel=\ET, khome=^^, khts=\EI, kich1=\Eq, krmir=\Er, ll=^^^K,
4586	ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>,
4587	sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>,
4588	smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c,
4589hp70092|hp70092a|hp70092A|HP 700/92,
4590	am, da, db, xhp,
4591	cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8,
4592	acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA,
4593	bold=\E&dB, cbt=\Ei, clear=\E&a0y0C\EJ, cr=^M, cub1=^H,
4594	cud1=\EB, cuf1=\EC, cup=\E&a%p1%dy%p2%dC, cuu1=\EA,
4595	dch1=\EP, dim=\E&dH, dl1=\EM, el=\EK, hpa=\E&a%p1%dC, ht=^I,
4596	hts=\E1, il1=\EL, kbs=^H, kclr=\EJ, kctab=\E2, kcub1=\ED,
4597	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EP, kdl1=\EM,
4598	ked=\EJ, kel=\EK, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
4599	kf6=\Eu, kf7=\Ev, kf8=\Ew, khome=\Eh, khts=\E1, kich1=\EQ,
4600	kil1=\EL, kind=\ES, kll=\EF, knp=\EU, kpp=\EV, kri=\ET,
4601	krmir=\ER, ktbc=\E3, rev=\E&dB, ri=\ET, rmacs=^O, rmir=\ER,
4602	rmkx=\E&s0A, rmln=\E&j@, rmso=\E&d@, rmul=\E&d@,
4603	sgr0=\E&d@, smacs=^N, smir=\EQ, smkx=\E&s1A, smln=\E&jB,
4604	smso=\E&dJ, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
4605
4606bobcat|sbobcat|HP 9000 model 300 console,
4607	am, da, db, mir, xhp,
4608	cols#128, it#8, lines#47, xmc#0,
4609	cbt=\Ei, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
4610	cup=\E&a%p1%dy%p2%dC$<6/>, cuu1=\EA, dch1=\EP,
4611	dl1=\EM$<10*/>, ed=\EJ, el=\EK, hpa=\E&a%p1%dC$<6/>, ht=^I,
4612	il1=\EL$<10*/>, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
4613	kcuf1=\EC, kcuu1=\EA, khome=\Eh, nel=^M^J, rmir=\ER,
4614	rmkx=\E&s0A, rmso=\E&d@, rmul=\E&d@, sgr0=\E&d@, smir=\EQ,
4615	smkx=\E&s1A, smso=\E&dB, smul=\E&dD, vpa=\E&a%p1%dY$<6/>,
4616gator-t|HP 9000 model 237 emulating extra-tall AAA,
4617	lines#94, use=gator,
4618gator|HP 9000 model 237 emulating AAA,
4619	bw, km, mir, ul,
4620	cols#128, it#8, lines#47,
4621	bel=^G, cbt=\E[Z, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J,
4622	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\EM,
4623	dch=\E[%p1%dP$<4/>, dch1=\E[P, dl=\E[%p1%dM$<1*/>,
4624	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%i%p1%d`,
4625	ht=^I, ich=\E[%p1%d@$<4/>, ich1=\E[@, il=\E[%p1%dL$<1*/>,
4626	il1=\E[L, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J,
4627	rep=%p1%c\E[%p2%db$<1*/>, rev=\E[7m, rmso=\E[m,
4628	rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
4629gator-52|HP 9000 model 237 emulating VT52,
4630	cols#128, lines#47, use=vt52,
4631gator-52t|HP 9000 model 237 emulating extra-tall VT52,
4632	lines#94, use=gator-52,
4633
4634#### Honeywell-Bull
4635#
4636# From: Michael Haardt <michael@gandalf.moria> 11 Jan 93
4637#
4638
4639# Honeywell Bull terminal.  Its cursor and function keys send single
4640# control characters and it has standout/underline glitch.  Most programs
4641# do not like these features/bugs.  Visual bell is realized by flashing the
4642# "keyboard locked" LED.
4643dku7003-dumb|Honeywell Bull DKU 7003 dumb mode,
4644	cols#80, lines#25,
4645	clear=^]^_, cr=^M, cub1=^Y, cud1=^K, cuf1=^X,
4646	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, ed=^_, el=\E[K,
4647	flash=\E[2h\E[2l, home=^], ht=^I, ind=^J, kbs=^H, kcub1=^Y,
4648	kcud1=^K, kcuf1=^X, kcuu1=^Z, khome=^], nel=^M^J,
4649dku7003|Honeywell Bull DKU 7003 all features described,
4650	msgr,
4651	xmc#1,
4652	blink=\E[5m, bold=\E[7m, dim=\E[2m, rev=\E[7m, rmso=\E[m,
4653	rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
4654	use=dku7003-dumb,
4655
4656#### Lear-Siegler (adm)
4657#
4658# These guys are long since out of the terminals business, but
4659# in 1995 many current terminals still have an adm type as one of their
4660# emulations (usually their stupidest, and usually labeled adm3, though
4661# these `adm3' emulations normally have adm3a+ capabilities).
4662#
4663# WARNING: Some early ADM terminals (including the ADM3 and ADM5) had a
4664# `diagnostic feature' that sending them a ^G while pin 22 (`Ring Indicator')
4665# was being held to ground would trigger a send of the top line on the screen.
4666# A quick fix might be to drop back to a cheesy 4-wire cable with pin 22
4667# hanging in the air. (Thanks to Eric Fischer, <eric@fudge.uchicago.edu>,
4668# for clearing up this point.)
4669
4670adm1a|adm1|lsi adm1a,
4671	am,
4672	cols#80, lines#24,
4673	bel=^G, clear=\E;$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4674	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, home=^^,
4675	ind=^J,
4676adm2|lsi adm2,
4677	OTbs, am,
4678	cols#80, lines#24,
4679	bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4680	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4681	dl1=\ER, ed=\EY, el=\ET, home=^^, ich1=\EQ, il1=\EE, ind=^J,
4682	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
4683# (adm3: removed obsolete ":ma=^K^P:" -- esr)
4684adm3|lsi adm3,
4685	OTbs, am,
4686	cols#80, lines#24,
4687	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, ind=^J,
4688# The following ADM-3A switch settings are assumed for normal operation:
4689#	SPACE		U/L_DISP	CLR_SCRN	24_LINE
4690#	CUR_CTL		LC_EN		AUTO_NL		FDX
4691# Other switches may be set for operator convenience or communication
4692# requirements.  I recommend
4693#	DISABLE_KB_LOCK	LOCAL_OFF	103		202_OFF
4694#	ETX_OFF		EOT_OFF
4695# Most of these terminals required an option ROM to support lower case display.
4696# Open the case and look at the motherboard; if you see an open 24-pin DIP
4697# socket, you may be out of luck.
4698#
4699# (adm3a: some capabilities merged in from BRl entry -- esr)
4700adm3a|lsi adm3a,
4701	OTbs, am,
4702	cols#80, lines#24,
4703	OTma=^K^P, OTnl=^J, bel=^G, clear=\032$<1/>, cr=^M, cub1=^H,
4704	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
4705	cuu1=^K, home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L,
4706	kcuu1=^K, rs2=^N,
4707adm3a+|adm3a plus,
4708	kbs=^H, use=adm3a,
4709# (adm5: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" & duplicate ":do=^J:" -- esr)
4710adm5|lsi adm5,
4711	xmc#1,
4712	bel=^G, cr=^M, cud1=^J, ed=\EY, el=\ET, kbs=^H, khome=^^,
4713	rmso=\EG, smso=\EG, use=adm3a+,
4714# A lot of terminals other than adm11s use these.  Wherever you see
4715# use=adm+sgr with some of its capabilities disabled, try the
4716# disabled ones.  They may well work but not have been documented or
4717# expressed in the using entry.  We'd like to cook up an <sgr> but the
4718# <rmacs>/<smacs> sequences of the using entries vary too much.
4719adm+sgr|adm style highlight capabilities,
4720	invis=\EG1, rev=\EG4, rmso=\EG0, rmul=\EG0, sgr0=\EG0,
4721	smso=\EG4, smul=\EG8,
4722# LSI ADM-11 from George William Hartwig, Jr. <geo@BRL-TGR.ARPA> via BRL
4723# Status line additions from Stephen J. Muir <stephen%comp.lancs.ac.uk@ucl-cs>
4724# <khome> from <stephen%comp.lancs.ac.uk@ucl-cs.arpa>.  <clear> could also
4725# be ^Z, according to his entry.
4726# (adm11: <smul>=\EG4 was obviously erroneous because it also said
4727# <rev>=\EG4.  Looking at other ADMs confirms this -- esr)
4728adm11|LSI ADM-11,
4729	OTbs, am, hs,
4730	OTkn#8, cols#80, lines#24,
4731	OTnl=^J, bel=^G, blink=\EG2, clear=\E*, cr=^M, cub1=^H,
4732	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
4733	cuu1=^K, dsl=\Eh, ed=\EY, el=\ET, fsl=\E(\r, home=^^, ht=^I,
4734	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
4735	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
4736	kf7=^AF\r, kf8=^AG\r, khome=^^, nel=^M^J, tsl=\EF\E),
4737	use=adm+sgr,
4738# From: Andrew Scott Beals <bandy@lll-crg.ARPA>
4739# Corrected by Olaf Siebert <rhialto@polder.ubc.kun.nl>, 11 May 1995
4740# Supervisor mode info by Ari Wuolle, <awuolle@delta.hut.fi>, 27 Aug 1996
4741# (adm12: removed obsolete ":kn:ma=j^Jk^P^K^Pl ^R^L^L :".  This formerly had
4742# <is2>=\Eq but that looked wrong; this <is2> is from Dave Yost <esquire!yost>
4743# via BRL.  That entry asserted <xmc#1>, but I've left that out because
4744# neither earlier nor later ADMSs have it -- esr)
4745#
4746# You will need to get into the supervisor setup before you can set
4747# baudrate etc. for your ADM-12+. Press Shift-Ctrl-Setup and you should
4748# see a lot more setup options.
4749#
4750# While in supervisor setup you can also use following codes:
4751#
4752# Ctrl-P Personality character selections (configure for example what
4753#        arrow keys send, if I recall correctly)
4754# Ctrl-T tabs 1-80   use left&right to move and up to set and
4755# Ctrl-V tabs 81-158 down to clear tab. Shift-Ctrl-M sets right margin at cursor
4756# Ctrl-B Binary setup (probably not needed. I think that everything can
4757#        be set using normal setup)
4758# Ctrl-A Answerback mode (enter answerback message)
4759# Ctrl-U User friendly mode (normal setup)
4760# Ctrl-D Defaults entire setup and function keys from EPROM tables
4761# Ctrl-S Save both setup and functions keys. Takes from 6 to 10 seconds.
4762# Ctrl-R Reads both setup and functions keys from NVM.
4763# Shift-Ctrl-X Unlock keyboard and cancel received X-OFF status
4764#
4765# ADM-12+ supports hardware handshaking, but it is DTR/CTS as opposed to
4766# RTS/CTS used nowadays with virtually every modem and computer. 19200
4767# bps works fine with hardware flow control.
4768#
4769# The following null-modem cable should fix this and enable you to use
4770# RTS/CTS handshaking (which Linux supports, use CRTSCTS setting). Also
4771# set ADM-12+ for DTR handshaking from supervisor setup.
4772#
4773# PC Serial   ADM-12+
4774#  --------   -------
4775#         2 - 3
4776#         3 - 2
4777#         4 - 5
4778#         5 - 20
4779#       6,8 - 4
4780#         7 - 7
4781#        20 - 6,8
4782#
4783adm12|lsi adm12,
4784	OTbs, OTpt, am, mir,
4785	OTug#1, cols#80, it#8, lines#24,
4786	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4787	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4788	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
4789	is2=\E0        \E1        \E1        \E1        \E1        \E1        \E1        \E1        \E1,
4790	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
4791	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
4792	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, smir=\Eq, tbc=\E0,
4793	use=adm+sgr,
4794# (adm20: removed obsolete ":kn#7:" -- esr)
4795adm20|lear siegler adm20,
4796	OTbs, am,
4797	cols#80, it#8, lines#24,
4798	bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cuf1=^L,
4799	cup=\E=%i%p2%{31}%+%c%p1%{31}%+%c, cuu1=^K, dch1=\EW,
4800	dl1=\ER, ed=\EY, el=\ET, home=^^, ht=^I, ich1=\EQ, il1=\EE,
4801	kf1=^A, kf2=^B, kf3=^W, kf4=^D, kf5=^E, kf6=^X, kf7=^Z, rmso=\E(,
4802	sgr0=\E(, smso=\E),
4803adm21|lear siegler adm21,
4804	xmc#1,
4805	bel=^G, cr=^M, cud1=^J, dch1=\EW, dl1=30*\ER, ed=\EY, el=\ET,
4806	ich1=\EQ, il1=30*\EE, ind=^J, invis@, kbs=^H, kcub1=^H,
4807	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, use=adm+sgr,
4808	use=adm3a,
4809# (adm22: ":em=:" was an obvious typo for ":ei=:"; also,
4810# removed obsolete ":kn#7:ma=j^Jk^P^K^Pl ^R^L^L :";
4811# removed bogus-looking \200 from before <cup>. -- esr)
4812adm22|lsi adm22,
4813	OTbs, am,
4814	cols#80, lines#24,
4815	bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4816	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4817	dl1=\ER, ed=\Ey, el=\Et, home=^^, ht=\Ei, ich1=\EQ, il1=\EE,
4818	is2=\E%\014\014\014\016\003\0\003\002\003\002\0\0\0\0\0\0\0\0\0\0\0,
4819	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r,
4820	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
4821	kf7=^AF\r, khome=^^, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
4822	lf6=F6, lf7=F7, rmso=\E(, sgr0=\E(, smso=\E),
4823# ADM 31 DIP Switches
4824#
4825# This information comes from two versions of the manual for the
4826# Lear-Siegler ADM 31.
4827#
4828# Main board:
4829#                  rear of case
4830#   +-||||-------------------------------------+
4831#   + S1S2                              ||S    +
4832#   +                                   ||3    +
4833#   +                                          +
4834#   +                                ||S       +
4835#   +                                ||4       +
4836#   +                                          +
4837#   +                                          +
4838#   +                                          +
4839#   +                                          +
4840#   +                                          +
4841# +-+                                          +-+
4842# +                                              +
4843# +                               S5 S6 S7       +
4844# +                               == == ==       +
4845# +----------------------------------------------+
4846#            front of case (keyboard)
4847#
4848#  S1 - Data Rate - Modem
4849#  S2 - Data Rate - Printer
4850# ------------------------
4851# Data Rate   Setting
4852# -------------------
4853# 50          0 0 0 0
4854# 75          1 0 0 0
4855# 110         0 1 0 0
4856# 134.5       1 1 0 0
4857# 150         0 0 1 0
4858# 300         1 0 1 0
4859# 600         0 1 1 0
4860# 1200        1 1 1 0
4861# 1800        0 0 0 1
4862# 2000        1 0 0 1
4863# 2400        0 1 0 1
4864# 3600        1 1 0 1
4865# 4800        0 0 1 1
4866# 7200        1 0 1 1
4867# 9600        0 1 1 1
4868# x           1 1 1 1
4869#
4870# S3 - Interface/Printer/Attributes
4871# ---------------------------------
4872# Printer Busy Control
4873# sw1   sw2   sw3
4874# ---------------
4875# off   off   off   Busy not active, CD disabled
4876# off   off   on    Busy not active, CD enabled
4877# off   on    off   Busy active on J5-20, CD disabled
4878# on    off   off   Busy active on J5-19, CD disabled - Factory Set.
4879# on    off   on    Busy active on J5-19, CD enabled
4880#
4881# sw4   Used in conjuction with S4 for comm interface control - Fact 0
4882#
4883# sw5   Secondary Channel Control (Hardware implementation only) - Fact 0
4884#
4885# sw6   ON enables printer BUSY active LOW - Factory Setting
4886#       OFF enables printer BUSY active HIGH - If set to this, ADM31 senses
4887#
4888# sw7   ON - steady cursor - Factory Setting
4889#       OFF - blinking cursor
4890#
4891# sw8   ON causes selected attribute character to be displayed
4892#       OFF causes SPACE to be displayed instead - Factory Setting
4893#
4894# S4 - Interface
4895# --------------
4896# Modem Interface
4897# S3    S4    S4    S4    S4
4898# sw4   sw1   sw2   sw3   sw4
4899# ---------------------------
4900# OFF   ON    OFF   ON    OFF   Enable RS-232C interface, Direct Connect and
4901#                               Current Loop disabled - Factory Setting
4902# ON    ON    OFF   ON    OFF   Enable Current Loop interface, Direct Connect
4903#                               disabled
4904# OFF   OFF   ON    OFF   ON    Enable Direct Connect interface, RS-232C and
4905#                               Current Loop Disabled
4906#
4907# sw5   ON disables dot stretching mode - Factory Setting
4908#       OFF enables dot stretching mode
4909# sw6   ON enables blanking function
4910#       OFF enables underline function - Factory Setting
4911# sw7   ON causes NULLS to be displayed as NULLS
4912#       OFF causes NULLS to be displayed as SPACES - Factory Setting
4913#
4914# S5 - Word Structure
4915# -------------------
4916# sw1   ON enables BREAK key - Factory Setting
4917#       OFF disables BREAK key
4918# sw2   ON selects 50Hz monitor refresh rate
4919#       OFF selects 60Hz monitor refresh rate - Factory Setting
4920#
4921# Modem Port Selection
4922# sw3   sw4   sw5
4923# ---------------
4924# ON    ON    ON    Selects 7 DATA bits, even parity, 2 STOP bits
4925# OFF   ON    ON    Selects 7 DATA bits, odd  parity, 2 STOP bits
4926# ON    OFF   ON    Selects 7 DATA bits, even parity, 1 STOP bit - Factory Set.
4927# OFF   OFF   ON    Selects 7 DATA bits, odd  parity, 1 STOP bit
4928# ON    ON    OFF   Selects 8 DATA bits, no   parity, 2 STOP bits
4929# OFF   ON    OFF   Selects 8 DATA bits, no   parity, 1 STOP bit
4930# ON    OFF   OFF   Selects 8 DATA bits, even parity, 1 STOP bit
4931# OFF   OFF   OFF   Selects 8 DATA bits, odd  parity, 1 STOP bit
4932#
4933# sw6   ON  sends bit 8 a 1 (mark)
4934#       OFF sends bit 8 as 0 (space) - Factory Setting
4935# sw7   ON  selects Block Mode
4936#       OFF selects Conversation Mode - Factory Setting
4937# sw8   ON  selects Full Duplex operation
4938#       OFF selects Half Duplex operation - Factory Setting
4939#
4940# S6 - Printer
4941# ------------
4942# sw1, sw2, sw6, sw7   Reserved - Factory 0
4943#
4944# Printer Port Selection
4945# same as Modem above, bit 8 (when 8 DATA bits) is always = 0
4946#
4947# sw8   ON   enables Printer Port
4948#       OFF disables Printer Port - Factory Setting
4949#
4950# S7 - Polling Address
4951# --------------------
4952# sw1-7 Establish ASCII character which designates terminal polling address
4953#       ON  = logic 0
4954#       OFF = logic 1 - Factory Setting
4955# sw8   ON   enables Polling Option
4956#       OFF disables Polling Option - Factory Setting
4957#
4958#
4959# On some older adm31s, S4 does not exist, and S5-sw6 is not defined.
4960#
4961# This adm31 entry uses underline as the standout mode.
4962# If the adm31 gives you trouble with standout mode, check the DIP switch in
4963# position 6, bank @c11, 25% from back end of the circuit board.  Should be
4964# OFF.  If there is no such switch, you have an old adm31 and must use oadm31.
4965# (adm31: removed obsolete ":ma=j^Jk^P^K^Pl ^R^L^L :" -- esr)
4966adm31|lsi adm31 with sw6 set for underline mode,
4967	OTbs, am, mir,
4968	cols#80, lines#24,
4969	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4970	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
4971	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, ind=^J, is2=\Eu\E0,
4972	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
4973	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
4974	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, rmir=\Er, rmso=\EG0,
4975	rmul=\EG0, sgr0=\EG0, smir=\Eq, smso=\EG1, smul=\EG1,
4976adm31-old|o31|old adm31,
4977	rmul@, smso=\EG4, smul@, use=adm31,
4978# LSI ADM-36 from Col. George L. Sicherman <gloria!colonel> via BRL
4979adm36|LSI ADM36,
4980	OTbs, OTpt,
4981	OTkn#4,
4982	if=/usr/lib/tabset/vt100,
4983	is2=\E<\E>\E[6;?2;?7;?8h\E[4;20;?1;?3;?4;?5;?6;?18;?19l,
4984	use=vt100,
4985# (adm42: removed obsolete ":ma=^K^P:" -- esr)
4986adm42|lsi adm42,
4987	OTbs, am,
4988	cols#80, lines#24,
4989	bel=^G, cbt=\EI, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
4990	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
4991	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ht=^I,
4992	il1=\EE$<270>, ind=^J, invis@, ip=$<6*>, kcub1=^H, kcud1=^J,
4993	kcuf1=^L, kcuu1=^K, khome=^^, pad=\177, rmir=\Er, rmul@,
4994	smir=\Eq, smul@, use=adm+sgr,
4995# The following termcap for the Lear Siegler ADM-42 leaves the
4996# "system line" at the bottom of the screen blank (for those who
4997# find it distracting otherwise)
4998adm42-ns|lsi adm-42 with no system line,
4999	cbt=\EI\EF \011, clear=\E;\EF \011,
5000	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<6>\EF \011,
5001	dch1=\EW\EF \011, dl1=\ER\EF \011, ed=\EY\EF \011,
5002	el=\ET\EF \011, il1=\EE\EF \011, rmir=\Er\EF \011,
5003	smir=\Eq\EF \011, use=adm42,
5004# ADM 1178 terminal -- rather like an ADM-42.  Manual is dated March 1 1985.
5005# The insert mode of this terminal is commented out because it's broken for our
5006# purposes in that it will shift the position of every character on the page,
5007# not just the cursor line!
5008# From: Michael Driscoll <fenris@lightspeed.net> 10 July 1996
5009adm1178|1178|lsi adm1178,
5010	am,
5011	cols#80, lines#24, xmc#1,
5012	bel=^G, bold=\E(, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J,
5013	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
5014	cvvis=\EC\E3 \E3(, dch1=\EW, dl1=\ER, ed=\EY, el=\ET,
5015	home=^^, ht=^I, il1=\EE, ind=^J, ip=$<6*/>, kbs=^H, kcub1=^H,
5016	kcud1=^J, nel=^M^J, pad=\177, rev=\EG4, rmso=\EG0, rmul=\EG0,
5017	sgr0=\E), smso=\EG4, smul=\EG1,
5018
5019#### Prime
5020#
5021# Yes, Prime made terminals.  These entries were posted by Kevin J. Cummings
5022# <cummings@primerd.prime.com> on 14 Dec 1992 and lightly edited by esr.
5023# Prime merged with ComputerVision in the late 1980s; you can reach them at:
5024#
5025#	ComputerVision Services
5026#	500 Old Connecticut Path
5027#	Framingham, Mass.
5028#
5029
5030# Standout mode is dim reverse-video.
5031pt100|pt200|wren|fenix|prime pt100/pt200,
5032	am, bw, mir, msgr,
5033	cols#80, it#8, lines#24,
5034	cbt=\E[Z, clear=\E?, cr=^M, cub=\E[%p1%dD, cub1=^H,
5035	cud=\E[%p1%dB, cud1=\ED, cuf=\E[%p1%dC, cuf1=\E[C,
5036	cup=\E0%p1%{33}%+%c%p2%{33}%+%c, cuu=\E[%p1%dA,
5037	cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl1=\E[M,
5038	ed=\E[J\E[r, el=\E[K\E[t, flash=\E$$<200/>\E$P,
5039	home=\E$B, ht=^I, il1=\E[L\E[t, ind=^J, kbs=^H, kcub1=\E[D,
5040	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E$A, nel=^M^J,
5041	rmcup=, rmir=\E[4l, rmkx=\E[>13l, rmso=\E[m, rmul=\E[m,
5042	sgr0=\E[m,
5043	smcup=\E[>1l\E[>2l\E[>16l\E[4l\E[>9l\E[20l\E[>3l\E[>7h\E[>12l\E[1Q,
5044	smir=\E[4h, smkx=\E[>13h, smso=\E[2;7m, smul=\E[4m,
5045pt100w|pt200w|wrenw|fenixw|prime pt100/pt200 in 132-column mode,
5046	cols#132,
5047	cup=\E[%i%p1%d;%p2%dH, use=pt100,
5048pt250|Prime PT250,
5049	rmso@, smso@, use=pt100,
5050pt250w|Prime PT250 in 132-column mode,
5051	rmso@, smso@, use=pt100w,
5052
5053#### Qume (qvt)
5054#
5055#	Qume, Inc.
5056#	3475-A North 1st Street
5057#	San Jose CA 95134
5058#	Vox: (800)-457-4447
5059#	Fax: (408)-473-1510
5060#	Net: josed@techsupp.wyse.com (Jose D'Oliveira)
5061#
5062# Qume was bought by Wyse, but still (as of early 1995) has its own support
5063# group and production division.
5064#
5065# Discontinued Qume models:
5066#
5067# The qvt101 and qvt102 listed here are long obsolete; so is the qvt101+
5068# built to replace them, and a qvt119+ which was a 101+ with available wide
5069# mode (132 columns).  There was a qvt103 which added vt100/vt131 emulations
5070# and an ANSI-compatible qvt203 that replaced it.  Qume started producing
5071# ANSI-compatible terminals with the qvt323 and qvt61.
5072#
5073# Current Qume models (as of February 1995):
5074#
5075# All current Qume terminals have ANSI-compatible operation modes.
5076# Qume is still producing the qvt62, which features emulations for other
5077# popular lines such as ADDS, and dual-host capabilities.  The qvt82 is
5078# designed for use as a SCO ANSI terminal.  The qvt70 is a color terminal
5079# with many emulations including Wyse370, Wyse 325, etc.  Their newest
5080# model is the qvt520, which is vt420-compatible.
5081#
5082# There are some ancient printing Qume terminals under `Daisy Wheel Printers'
5083#
5084# If you inherit a Qume without docs, try Ctrl-Shift-Setup to enter its
5085# setup mode.  Shift-s should be a configuration save to NVRAM.
5086
5087qvt101|qvt108|qume qvt 101 and QVT 108,
5088	xmc#1, use=qvt101+,
5089
5090# This used to have <cvvis=\E.2> but no <cnorm> or <civis>.  The BSD termcap
5091# file had <cvvis=\EM4 \200\200\200>.  I've done the safe thing and yanked
5092# both. The <rev> is from BSD, which also claimed bold=\E( and dim=\E).
5093# What seems to be going on here is that this entry was designed so that
5094# the normal highlight is bold and standout is dim plus something else
5095# (reverse-video maybe?  But then, are there two <rev> sequences?)
5096qvt101+|qvt101p|qume qvt 101 PLUS product,
5097	am, bw, hs, ul,
5098	cols#80, lines#24, xmc#0,
5099	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^J,
5100	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
5101	dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
5102	flash=\Eb$<200>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
5103	ich1=\EQ, il1=\EE, ind=^J, invis@, kbs=^H, kcbt=\EI, kcub1=^H,
5104	kcud1=^J, kcuf1=^L, kcuu1=^K, kdl1=\ER, ked=\EY, kel=\ET,
5105	kf1=^A@\r, kf10=^AI\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
5106	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
5107	khome=^^, kich1=\EQ, kil1=\EE, mc4=\EA, mc5=\E@, rmso=\E(,
5108	smso=\E0P\E), tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
5109qvt102|qume qvt 102,
5110	cnorm=\E., use=qvt101,
5111# (qvt103: added <rmam>/<smam> based on init string -- esr)
5112qvt103|qume qvt 103,
5113	am, xenl, xon,
5114	cols#80, it#8, lines#24, vt#3,
5115	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
5116	clear=\E[H\E[2J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
5117	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
5118	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
5119	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
5120	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
5121	hts=\EH, ind=^J, kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
5122	kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8,
5123	rev=\E[7m$<2>, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E[?1l\E>,
5124	rmso=\E[m$<2>, rmul=\E[m$<2>,
5125	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
5126	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>,
5127	sgr0=\E[m$<2>, smam=\E[?7h, smkx=\E[?1h\E=,
5128	smso=\E[7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
5129qvt103-w|qume qvt103 132 cols,
5130	cols#132, lines#24,
5131	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt103,
5132qvt119+|qvt119p|qvt119|qume qvt 119 and 119PLUS terminals,
5133	am, hs, mir, msgr,
5134	cols#80, lines#24, xmc#0,
5135	bel=^G, cbt=\EI, clear=\E*1, cnorm=\E.4, cr=^M, cub1=^H,
5136	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
5137	cuu1=^K, cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey,
5138	el=\Et, flash=\En0$<200>\En1, fsl=^M, home=^^, ht=^I,
5139	hts=\E1, il1=\EE, ind=^J, is2=\EDF\EC\EG0\Er\E(\E%EX,
5140	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r,
5141	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
5142	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5143	mc4=\EA, mc5=\E@, ri=\EJ, rmir=\Er, smir=\Eq, smul=\EG8,
5144	tbc=\E3, tsl=\Eg\Ef, use=adm+sgr,
5145qvt119+-25|qvt119p-25|QVT 119 PLUS with 25 data lines,
5146	lines#25, use=qvt119+,
5147qvt119+-w|qvt119p-w|qvt119-w|QVT 119 and 119 PLUS in 132 column mode,
5148	cols#132,
5149	is2=\EDF\EC\EG0\Er\E(\E%\EX\En4, use=qvt119+,
5150qvt119+-25-w|qvt119p-25-w|qvt119-25-w|QVT 119 and 119 PLUS 132 by 25,
5151	lines#25, use=qvt119+,
5152qvt203|qvt203+|qume qvt 203 Plus,
5153	dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
5154	ip=$<7>, kf0=\E[29~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
5155	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
5156	kf9=\E[28~, rmir=\E[4l, smir=\E[4h, use=qvt103,
5157qvt203-w|qvt203-w-am|qume qvt 203 PLUS in 132 cols (w/advanced video),
5158	cols#132, lines#24,
5159	rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=qvt203,
5160#
5161#	Since a command is present for enabling 25 data lines,
5162#	a specific terminfo entry may be generated for the 203.
5163#	If one is desired for the QVT 119 PLUS then 25 lines must
5164#	be selected in the status line (setup line 9).
5165#
5166qvt203-25|QVT 203 PLUS with 25 by 80 column mode,
5167	cols#80, lines#25,
5168	is2=\E[=40h\E[?3l, use=qvt203,
5169qvt203-25-w|QVT 203 PLUS with 25 by 132 columns,
5170	cols#132, lines#25,
5171	rs2=\E[?3h\E[=40h, use=qvt203,
5172
5173#### Televideo (tvi)
5174#
5175#	TeleVideo
5176#	550 East Brokaw Road
5177#	PO Box 49048    95161
5178#	San Jose CA 95112
5179#	Vox: (408)-954-8333
5180#	Fax: (408)-954-0623
5181#
5182#
5183# There are some tvi terminals that require incredible amounts of padding and
5184# some that don't.  I'm assuming tvi912 and tvi920 are the old slow ones, and
5185# tvi912b, tvi912c, tvi920b, tvi920c are the new ones that don't need padding.
5186#
5187# All of these terminals (912 to 970 and the tvipt) are discontinued.  Newer
5188# Televideo terminals are ANSI and PC-ANSI compatible.
5189
5190tvi803|televideo 803,
5191	clear=\E*$<10>, use=tvi950,
5192
5193# Vanilla tvi910 -- W. Gish <cswarren@violet> 10/29/86
5194# Switch settings are:
5195#
5196# S1  1 2 3 4
5197#     D D D D  9600
5198#     D D D U    50
5199#     D D U D    75
5200#     D D U U   110
5201#     D U D D   135
5202#     D U D U   150
5203#     D U U D   300
5204#     D U U U   600
5205#     U D D D  1200
5206#     U D D U  1800
5207#     U D U D  2400
5208#     U D U U  3600
5209#     U U D D  4800
5210#     U U D U  7200
5211#     U U U D  9600
5212#     U U U U 19200
5213#
5214# S1  5 6 7 8
5215#     U D X D  7N1 (data bits, parity, stop bits) (X means ignored)
5216#     U D X U  7N2
5217#     U U D D  7O1
5218#     U U D U  7O2
5219#     U U U D  7E1
5220#     U U U U  7E2
5221#     D D X D  8N1
5222#     D D X U  8N2
5223#     D U D D  8O1
5224#     D U U U  8E2
5225#
5226# S1  9  Autowrap
5227#     U  on
5228#     D  off
5229#
5230# S1 10  CR/LF
5231#     U  do CR/LF when CR received
5232#     D  do CR when CR received
5233#
5234# S2  1  Mode
5235#     U  block
5236#     D  conversational
5237#
5238# S2  2  Duplex
5239#     U  half
5240#     D  full
5241#
5242# S2  3  Hertz
5243#     U  50
5244#     D  60
5245#
5246# S2  4  Edit mode
5247#     U  local
5248#     D  duplex
5249#
5250# S2  5  Cursor type
5251#     U  underline
5252#     D  block
5253#
5254# S2  6  Cursor down key
5255#     U  send ^J
5256#     D  send ^V
5257#
5258# S2  7  Screen colour
5259#     U  green on black
5260#     D  black on green
5261#
5262# S2  8  DSR status (pin 6)
5263#     U  disconnected
5264#     D  connected
5265#
5266# S2  9  DCD status (pin 8)
5267#     U  disconnected
5268#     D  duplex
5269#
5270# S2 10  DTR status (pin 20)
5271#     U  disconnected
5272#     D  duplex
5273# (tvi910: removed obsolete ":ma=^Kk^Ll^R^L:"; added <khome>, <cub1>, <cud1>,
5274# <ind>, <hpa>, <vpa>, <am>, <msgr> from SCO entry -- esr)
5275tvi910|televideo model 910,
5276	OTbs, am, msgr,
5277	cols#80, it#8, lines#24, xmc#1,
5278	bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5279	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
5280	home=\E=\001\001, hpa=\E]%p1%{32}%+%c, ht=^I,
5281	if=/usr/share/tabset/stdcrt, ind=^J, invis@, kbs=^H,
5282	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kf0=^AI\r, kf1=^A@\r,
5283	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5284	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5285	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
5286# From: Alan R. Rogers <rogers%albany@csnet-relay>
5287# as subsequently hacked over by someone at SCO
5288# (tvi910+: removed obsolete ":ma=^K^P^L :" -- esr)
5289#
5290# Here are the 910+'s DIP switches (U = up, D = down, X = don't care):
5291#
5292# S1  1 2 3 4:
5293#     D D D D  9600     D D D U    50     D D U D    75     D D U U   110
5294#     D U D D   135     D U D U   150     D U U D   300     D U U U   600
5295#     U D D D  1200     U D D U  1800     U D U D  2400     U D U U  3600
5296#     U U D D  4800     U U D U  7200     U U U D  9600     U U U U 19200
5297#
5298# S1  5 6 7 8:
5299#     U D X D  7N1     U D X U  7N2     U U D D  7O1     U U D U  7O2
5300#     U U U D  7E1     U U U U  7E2     D D X D  8N1     D D X U  8N2
5301#     D U D D  8O1     D U U U  8E2
5302#
5303# S1  9  Autowrap            (U = on, D = off)
5304# S1 10  CR/LF               (U = CR/LF on CR received, D = CR on CR received)
5305# S2  1  Mode                (U = block, D = conversational)
5306# S2  2  Duplex              (U =  half, D = full)
5307# S2  3  Hertz               (U = 50, D = 60)
5308# S2  4  Edit mode           (U = local, D = duplex)
5309# S2  5  Cursor type         (U = underline, D = block)
5310# S2  6  Cursor down key     (U = send ^J, D = send ^V)
5311# S2  7  Screen colour       (U = green on black, D = black on green)
5312# S2  8  DSR status (pin 6)  (U = disconnected, D = connected)
5313# S2  9  DCD status (pin 8)  (U = disconnected, D = connected)
5314# S2 10  DTR status (pin 20) (U = disconnected, D = connected)
5315#
5316tvi910+|televideo 910+,
5317	dch1=\EW, dl1=\ER$<33*>, home=^^, ich1=\EQ, il1=\EE$<33*>,
5318	kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r,
5319	kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r,
5320	ll=\E=7\s, use=tvi910,
5321
5322# (tvi912: removed obsolete ":ma=^K^P^L :", added  <flash> and
5323# <khome> from BRL entry -- esr)
5324tvi912|tvi914|tvi920|old televideo 912/914/920,
5325	OTbs, OTpt, am, msgr,
5326	cols#80, it#8, lines#24, xmc#1,
5327	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5328	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
5329	dl1=\ER$<33*>, ed=\Ey, el=\ET, flash=\Eb$<50/>\Ed, home=^^,
5330	ht=^I, hts=\E1, ich1=\EQ, if=/usr/share/tabset/stdcrt,
5331	il1=\EE$<33*>, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
5332	kcuu1=^K, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
5333	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
5334	kf9=^AH\r, khome=^^, rmso=\Ek, rmul=\Em, smso=\Ej, smul=\El,
5335	tbc=\E3,
5336# the 912 has a <funct> key that's like shift: <funct>8 xmits "^A8\r".
5337# The 920 has this plus real function keys that xmit different things.
5338# Terminfo makes you use the funct key on the 912 but the real keys on the 920.
5339tvi912c|tvi912b|new televideo 912,
5340	dl1=\ER$<5*>, il1=\EE$<5*>, use=tvi912,
5341# set to page 1 when entering curses application (\E-17 )
5342# reset to page 0 when exiting curses application (\E-07 )
5343tvi912-2p|tvi920-2p|tvi-2p|televideo w/2 pages,
5344	rmcup=\E-07\s, smcup=\E-17\s, use=tvi912,
5345# We got some new tvi912c terminals that act really weird on the regular
5346# termcap, so one of our gurus worked this up. Seems that cursor
5347# addressing is broken.
5348tvi912cc|tvi912 at cowell college,
5349	cup@, use=tvi912c,
5350
5351# Here are the switch settings for the tvi920c:
5352#
5353# S1 (Line), and S3 (Printer) baud rates -- put one, and only one, switch down:
5354# 2: 9600	3: 4800		4: 2400		5: 1200
5355# 6:  600	7:  300		8:  150		9:   75
5356# 10: 110
5357#
5358# S2 UART/Terminal options:
5359# 		Up			Down
5360# 1:		Not used		Not allowed
5361# 2:	Alternate character set	  Standard character set
5362# 3:	    Full duplex		    Half duplex
5363# 4:	    50 Hz refresh	    60 Hz refresh
5364# 5:	      No parity		     Send parity
5365# 6:	     2 stop bits	     1 stop bit
5366# 7:	     8 data bits	     7 data bits
5367# 8:		Not used		Not allowed on Rev E or lower
5368# 9:	     Even parity	     Odd parity
5369# 10:	    Steady cursor	    Blinking cursor
5370# 	(On Rev E or lower, use W25 instead of switch 10.)
5371#
5372# S5 UART/Terminal options:
5373# 		Open			Closed
5374# 1:	P3-6 Not connected	DSR received on P3-6
5375# 2:	P3-8 Not connected	DCD received on P3-8
5376#
5377# 3 Open, 4 Open:		P3-20 Not connected
5378# 3 Open, 4 Closed:	DTR on when terminal is on
5379# 3 Closed, 4 Open:	DTR is connected to RTS
5380# 3 Closed, 4 Closed:	Not allowed
5381#
5382# 5 Closed:	HDX printer (hardware control) Rev. K with extension port off,
5383# 		all data transmitted out of the modem port (P3) will also be
5384# 		transmitted out of the printer port (P4).
5385#
5386# 6 Open, 7 Open:		Not allowed
5387# 6 Open, 7 Closed:	20ma current loop input
5388# 6 Closed, 7 Open:	RS232 input
5389# 6 Closed, 7 Closed:	Not allowed
5390#
5391# Jumper options:
5392# If the jumper is installed, the effect will occur (the next time the terminal
5393# is switched on).
5394#
5395# S4/W31:	Enables automatic LF upon receipt of CR from
5396# 		remote or keyboard.
5397# S4/W32:	Enables transmission of EOT at the end of Send.  If not
5398# 		installed, a carriage return is sent.
5399# S4/W33:	Disables automatic carriage return in column 80.
5400# S4/W34:	Selects Page Print Mode as initial condition.  If not
5401# 		installed, Extension Mode is selected.
5402#
5403tvi920b|tvi920c|new televideo 920,
5404	dl1=\ER$<5*>, il1=\EE$<5*>, kf0=^AI\r, kf1=^A@\r,
5405	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5406	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, use=tvi912,
5407
5408# Televideo 921 and variants
5409# From: Tim Theisen <tim@cs.wisc.edu> 22 Sept 1995
5410# (tvi921: removed :ko=bt: before translation, I see no backtab cap;
5411# also added empty <acsc> to suppress tic warning -- esr)
5412tvi921|televideo model 921 with sysline same as page & real vi function,
5413	OTbs, OTpt, am, hs, xenl, xhp,
5414	cols#80, lines#24, xmc#0,
5415	acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
5416	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
5417	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
5418	el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
5419	if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J, invis@,
5420	is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z, kcub1=^H,
5421	kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER$<1*/>,
5422	ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE, nel=^M^J, rmacs=\E%%,
5423	rmir=, smacs=\E$, smir=, tsl=\Ef\EG0, use=adm+sgr,
5424# without the beeper
5425# (tvi92B: removed :ko=bt: before translation, I see no backtab cap;
5426# also added empty <acsc> to suppress tic warning -- esr)
5427tvi92B|televideo model 921 with sysline same as page & real vi function & no beeper,
5428	am, hs, xenl, xhp,
5429	cols#80, lines#24, xmc#0,
5430	acsc=, clear=^Z, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V, cuf1=^L,
5431	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<3/>, cuu1=^K,
5432	cvvis=\E.2, dch1=\EW, dl1=\ER$<1*/>, dsl=\Ef\r\Eg, ed=\EY,
5433	el=\ET, flash=\Eb$<200/>\Ed, fsl=\Eg, home=^^, ht=^I,
5434	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
5435	invis@, is2=\El\E"\EF1\E.3\017\EA\E<, kbs=^H, kclr=^Z,
5436	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
5437	kdl1=\ER$<1*/>, ked=\EY, kel=\ET, kich1=\EQ, kil1=\EE,
5438	nel=^M^J, rmacs=\E%%, smacs=\E$, tsl=\Ef\EG0, use=adm+sgr,
5439# (tvi92D: removed :ko=bt: before translation, I see no backtab cap -- esr)
5440tvi92D|tvi92B with DTR instead of XON/XOFF & better padding,
5441	dl1=\ER$<2*/>, il1=\EE$<2*/>,
5442	is2=\El\E"\EF1\E.3\016\EA\E<, kdl1=\ER$<2*/>,
5443	kil1=\EE$<2*/>, use=tvi92B,
5444
5445# (tvi924: This used to have <dsl=\Es0>, <fsl=\031>.  I put the new strings
5446# in from a BSD termcap file because it looks like they do something the
5447# old ones skip -- esr)
5448tvi924|televideo tvi924,
5449	am, bw, hs, in, mir, msgr, xenl, xon,
5450	cols#80, it#8, lines#24, wsl#80, xmc#0,
5451	bel=^G, blink=\EG2, cbt=\EI, civis=\E.0, clear=\E*0,
5452	cnorm=\E.3, cr=^M, csr=\E_%p1%{32}%+%c%p2%{32}%+%c,
5453	cub1=^H, cud1=^V, cuf1=^L,
5454	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, cvvis=\E.1,
5455	dch1=\EW, dl1=\ER, dsl=\Es0\Ef\031, ed=\Ey, el=\Et,
5456	flash=\Eb$<200>\Ed, fsl=\031\Es1, home=^^, ht=^I, hts=\E1,
5457	ich1=\EQ, if=/usr/share/tabset/stdcrt, il1=\EE, ind=^J,
5458	invis@, is1=\017\E%\E'\E(\EDF\EC\EG0\EN0\Es0\Ev0,
5459	kbs=^H, kclr=\E*0, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
5460	kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A@\r, kf1=^AA\r,
5461	kf10=^AJ\r, kf11=^AK\r, kf12=^AL\r, kf13=^AM\r, kf14=^AN\r,
5462	kf15=^AO\r, kf2=^AB\r, kf3=^AC\r, kf4=^AD\r, kf5=^AE\r,
5463	kf6=^AF\r, kf7=^AG\r, kf8=^AH\r, kf9=^AI\r, khome=^^,
5464	kich1=\EQ, kil1=\EE, lf0=F1, lf1=F2, lf10=F11, lf2=F3, lf3=F4,
5465	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10,
5466	pfkey=\E|%p1%{49}%+%c%p2%s\031, ri=\Ej, tbc=\E3, tsl=\Ef,
5467	use=adm+sgr,
5468
5469# TVI925 DIP switches.  In each of these, D = Down and U = Up,
5470#
5471# Here are the settings for the external (baud) switches (S1):
5472#
5473#             Position		Baud
5474# 7	8	9	10		[Printer]
5475# 1	2	3	4		[Main RS232]
5476# -----------------------------------------------------
5477# D	D	D	D	9600
5478# D	D	D	U	  50
5479# D	D	U	D	  75
5480# D	D	U	U	 110
5481# D	U	D	D	 135
5482# D	U	D	U	 150
5483# D	U	U	D	 300
5484# D	U	U	U	 600
5485# U	D	D	D	1200
5486# U	D	D	U	1800
5487# U	D	U	D	2400
5488# U	D	U	U	3600
5489# U	U	D	D	4800
5490# U	U	D	U	7200
5491# U	U	U	D	9600
5492# U	U	U	U	19200
5493#
5494#
5495# Settings for word length and stop-bits (S1)
5496#
5497#  Position	Description
5498# 5	6
5499# ---------------------------
5500# U	-	7-bit word
5501# D	-	8-bit word
5502# -	U	2 stop bits
5503# -	D	1 stop bit
5504#
5505#
5506# S2 (external) settings
5507#
5508# Position	Up	Dn	Description
5509# --------------------------------------------
5510# 1		X		Local edit
5511# 			X	Duplex edit (transmit editing keys)
5512# --------------------------------------------
5513# 2		X		912/920 emulation
5514# 			X	925
5515# --------------------------------------------
5516# 3			X
5517# 4			X	No parity
5518# 5			X
5519# --------------------------------------------
5520# 3			X
5521# 4			X	Odd parity
5522# 5		X
5523# --------------------------------------------
5524# 3			X
5525# 4		X		Even parity
5526# 5		X
5527# --------------------------------------------
5528# 3		X
5529# 4			X	Mark parity
5530# 5		X
5531# --------------------------------------------
5532# 3		X
5533# 4		X		Space parity
5534# 5		X
5535# --------------------------------------------
5536# 6		X		White on black display
5537# 			X	Black on white display
5538# --------------------------------------------
5539# 7			X	Half Duplex
5540# 8			X
5541# --------------------------------------------
5542# 7		X		Full Duplex
5543# 8			X
5544# --------------------------------------------
5545# 7			X	Block mode
5546# 8		X
5547# --------------------------------------------
5548# 9			X	50 Hz
5549# 		X		60 Hz
5550# --------------------------------------------
5551# 10		X		CR/LF (Auto LF)
5552# 			X	CR only
5553#
5554# S3 (internal switch) settings:
5555#
5556# Position	Up	Dn	Description
5557# --------------------------------------------
5558# 1		X		Keyclick off
5559# 			X	Keyclick on
5560# --------------------------------------------
5561# 2			X	English
5562# 3			X
5563# --------------------------------------------
5564# 2			X	German
5565# 3		X
5566# --------------------------------------------
5567# 2		X		French
5568# 3			X
5569# --------------------------------------------
5570# 2		X		Spanish
5571# 3		X
5572# --------------------------------------------
5573# 4			X	Blinking block cursor
5574# 5			X
5575# --------------------------------------------
5576# 4			X	Blinking underline cursor
5577# 5		X
5578# --------------------------------------------
5579# 4		X		Steady block cursor
5580# 5			X
5581# --------------------------------------------
5582# 4		X		Steady underline cursor
5583# 5		X
5584# --------------------------------------------
5585# 6		X		Screen blanking timer (ON)
5586# 			X	Screen blanking timer (OFF)
5587# --------------------------------------------
5588# 7		X		Page attributes
5589# 			X	Line attributes
5590# --------------------------------------------
5591# 8		X		DCD disconnected
5592# 			X	DCD connected
5593# --------------------------------------------
5594# 9		X		DSR disconnected
5595# 			X	DSR connected
5596# --------------------------------------------
5597# 10		X		DTR Disconnected
5598# 			X	DTR connected
5599# --------------------------------------------
5600#
5601# (tvi925: BSD has <clear=\E*>.  I got <is2> and <ri> from there -- esr)
5602tvi925|televideo 925,
5603	OTbs, am, bw, hs, ul,
5604	cols#80, lines#24, xmc#1,
5605	bel=^G, cbt=\EI, clear=^Z, cnorm=\E.4, cr=^M, cub1=^H, cud1=^V,
5606	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
5607	cvvis=\E.2, dch1=\EW, dl1=\ER, dsl=\Eh, ed=\EY, el=\ET,
5608	flash=\Eb$<200>\Ed, fsl=^M\Eg, home=^^, ht=^I, hts=\E1,
5609	ich1=\EQ, il1=\EE, ind=^J, invis@, is2=\El\E", kbs=^H, kclr=^Z,
5610	kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
5611	ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r,
5612	kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r,
5613	kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, ri=\Ej, tbc=\E3,
5614	tsl=\Eh\Ef, use=adm+sgr,
5615# TeleVideo 925 from Mitch Bradley <sun!wmb> via BRL
5616# to avoid "magic cookie" standout glitch:
5617tvi925-hi|TeleVideo Model 925 with half intensity standout mode,
5618	xmc@,
5619	kbs=^H, kcub1=^H, kcud1=^J, rmso=\E(, smso=\E), use=tvi925,
5620
5621# From: Todd Litwin <litwin@litwin.jpl.nasa.gov> 28 May 1993
5622# Originally Tim Curry, Univ. of Central Fla., <duke!ucf-cs!tim> 5/21/82
5623# for additional capabilities,
5624# The following tvi descriptions from B:pjphar and virus!mike
5625# is for all 950s.  It sets the following attributes:
5626# full duplex (\EDF)		write protect off (\E()
5627# conversation mode (\EC)	graphics mode off (\E%)
5628# white on black (\Ed)		auto page flip off (\Ew)
5629# turn off status line (\Eg)	clear status line (\Ef\r)
5630# normal video (\E0)		monitor mode off (\EX or \Eu)
5631# edit mode (\Er)		load blank char to space (\Ee\040)
5632# line edit mode (\EO)		enable buffer control (^O)
5633# protect mode off (\E\047)	duplex edit keys (\El)
5634# program unshifted send key to send line all (\E016)
5635# program shifted send key to send line unprotected (\E004)
5636# set the following to nulls:
5637#	field delimiter (\Ex0\200\200)
5638#	line delimiter (\Ex1\200\200)
5639#	start-protected field delimiter (\Ex2\200\200)
5640#	end-protected field delimiter (\Ex3\200\200)
5641# set end of text delimiter to carriage return/null (\Ex4\r\200)
5642#
5643#                     TVI 950 Switch Setting Reference Charts
5644#
5645#                                     TABLE 1:
5646#
5647#      S1     1     2     3     4     5     6     7     8     9    10
5648#          +-----------------------+-----+-----+-----------------------+
5649#          | Computer Baud Rate    |Data |Stop | Printer Baud Rate     |
5650#          |                       |Bits |Bits |                       |
5651#   +------+-----------------------+-----+-----+-----------------------+
5652#   |  Up  |        See            |  7  |  2  |        See            |
5653#   +------+-----------------------+-----+-----+-----------------------+
5654#   | Down |      TABLE 2          |  8  |  1  |      TABLE 2          |
5655#   +------+-----------------------+-----+-----+-----------------------+
5656#
5657#
5658#      S2     1     2     3     4     5     6     7     8     9    10
5659#          +-----+-----+-----------------+-----+-----------+-----+-----+
5660#          |Edit |Cursr|    Parity       |Video|Transmiss'n| Hz  |Click|
5661#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5662#   |  Up  | Dplx|Blink|      See        |GonBk|   See     | 60  | Off |
5663#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5664#   | Down |Local|St'dy|    TABLE 3      |BkonG|  CHART    | 50  | On  |
5665#   +------+-----+-----+-----------------+-----+-----------+-----+-----+
5666#
5667#                                    TABLE 2:
5668#
5669#             +-----------+-----+-----+-----+-----+-----------+
5670#             | Display   |  1  |  2  |  3  |  4  |   Baud    |
5671#             +-----------+-----+-----+-----+-----+           |
5672#             | Printer   |  7  |  8  |  9  | 10  |   Rate    |
5673#             +-----------+-----+-----+-----+-----+-----------+
5674#                         |  D  |  D  |  D  |  D  |   9600    |
5675#                         |  U  |  D  |  D  |  D  |     50    |
5676#                         |  D  |  U  |  D  |  D  |     75    |
5677#                         |  U  |  U  |  D  |  D  |    110    |
5678#                         |  D  |  D  |  U  |  D  |    135    |
5679#                         |  U  |  D  |  U  |  D  |    150    |
5680#                         |  D  |  U  |  U  |  D  |    300    |
5681#                         |  U  |  U  |  U  |  D  |    600    |
5682#                         |  D  |  D  |  D  |  U  |   1200    |
5683#                         |  U  |  D  |  D  |  U  |   1800    |
5684#                         |  D  |  U  |  D  |  U  |   2400    |
5685#                         |  U  |  U  |  D  |  U  |   3600    |
5686#                         |  D  |  D  |  U  |  U  |   4800    |
5687#                         |  U  |  D  |  U  |  U  |   7200    |
5688#                         |  D  |  U  |  U  |  U  |   9600    |
5689#                         |  U  |  U  |  U  |  U  |  19200    |
5690#                         +-----+-----+-----+-----+-----------+
5691#
5692#                                    TABLE 3:
5693#                         +-----+-----+-----+-----------+
5694#                         |  3  |  4  |  5  |   Parity  |
5695#                         +-----+-----+-----+-----------+
5696#                         |  X  |  X  |  D  |    None   |
5697#                         |  D  |  D  |  U  |     Odd   |
5698#                         |  D  |  U  |  U  |    Even   |
5699#                         |  U  |  D  |  U  |    Mark   |
5700#                         |  U  |  U  |  U  |   Space   |
5701#                         +-----+-----+-----+-----------+
5702#                                 X = don't care
5703#
5704#                                     CHART:
5705#                         +-----+-----+-----------------+
5706#                         |  7  |  8  | Communication   |
5707#                         +-----+-----+-----------------+
5708#                         |  D  |  D  |  Half Duplex    |
5709#                         |  D  |  U  |  Full Duplex    |
5710#                         |  U  |  D  |     Block       |
5711#                         |  U  |  U  |     Local       |
5712#                         +-----+-----+-----------------+
5713#
5714# (tvi950: early versions had obsolete ":ma=^Vj^Kk^Hh^Ll^^H:".
5715# I also inserted <ich1> and <kich1>; the :ko: string indicated that <ich>
5716# should be present and all tvi native modes use the same string for this.
5717# Finally, note that BSD has cud1=^V. -- esr)
5718tvi950|televideo 950,
5719	OTbs, am, hs, mir, msgr, xenl, xon,
5720	cols#80, it#8, lines#24, xmc#1,
5721	acsc=b\011c\014d\re\ni\013, bel=^G, cbt=\EI, clear=\E*,
5722	cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5723	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
5724	dl1=\ER, dsl=\Eg\Ef\r, ed=\Ey, el=\Et, flash=\Eb$<200/>\Ed,
5725	fsl=^M, home=^^, ht=^I, hts=\E1, ich1=\EQ, il1=\EE, ind=^J,
5726	invis@,
5727	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,
5728	kbs=^H, kcbt=\EI, kclr=\E*, kcub1=^H, kcud1=^V, kcuf1=^L,
5729	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\Ey, kel=\Et, kf0=^A0\r,
5730	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
5731	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
5732	kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`, ri=\Ej, rmacs=^X,
5733	rmir=\Er, smacs=^U, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
5734	use=adm+sgr,
5735#
5736# is for 950 with two pages adds the following:
5737#	set 48 line page (\E\\2)
5738#	place cursor at page 0, line 24, column 1 (\E-07 )
5739#	set local (no send) edit keys (\Ek)
5740#
5741# two page 950 adds the following:
5742#	when entering ex, set 24 line page (\E\\1)
5743#	when exiting ex, reset 48 line page (\E\\2)
5744#			 place cursor at 0,24,1 (\E-07 )
5745#	set duplex (send) edit keys (\El) when entering vi
5746#	set local (no send) edit keys (\Ek) when exiting vi
5747#
5748tvi950-2p|televideo950 w/2 pages,
5749	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,
5750	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5751	smkx=\El, use=tvi950,
5752#
5753# is for 950 with four pages adds the following:
5754#	set 96 line page (\E\\3)
5755#	place cursor at page 0, line 24, column 1 (\E-07 )
5756#
5757# four page 950 adds the following:
5758#	when entering ex, set 24 line page (\E\\1)
5759#	when exiting ex, reset 96 line page (\E\\3)
5760#			 place cursor at 0,24,1 (\E-07 )
5761#
5762tvi950-4p|televideo950 w/4 pages,
5763	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,
5764	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5765	smkx=\El, use=tvi950,
5766#
5767# <is2> for reverse video 950 changes the following:
5768#	set reverse video (\Ed)
5769#
5770# set vb accordingly (\Ed ...delay... \Eb)
5771#
5772tvi950-rv|televideo950 rev video,
5773	flash=\Ed$<200/>\Eb,
5774	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,
5775	use=tvi950,
5776
5777# tvi950-rv-2p uses the appropriate entries from 950-2p and 950-rv
5778tvi950-rv-2p|televideo950 rev video w/2 pages,
5779	flash=\Ed$<200/>\Eb,
5780	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,
5781	rmcup=\E\\2\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5782	smkx=\El, use=tvi950,
5783
5784# tvi950-rv uses the appropriate entries from 950-4p and 950-rv
5785tvi950-rv-4p|televideo950 rev video w/4 pages,
5786	flash=\Ed$<200/>\Eb,
5787	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,
5788	rmcup=\E\\3\E-07\s, rmkx=\Ek, smcup=\E\\1\E-07\s,
5789	smkx=\El, use=tvi950,
5790# From: Andreas Stolcke <stolcke@icsi.berkeley.edu>
5791# (tvi955: removed obsolete ":ma:=^Vj^Kk^Hh^Ll^^H";
5792# removed incorrect (and overridden) ":do=^J:"; fixed broken continuations in
5793# the :rs: string, inserted the <ich> implied by the termcap :ko: string.  Note
5794# the :ko: string had :cl: in it, which means that one of the original
5795# <clear=\E*>, <kclr=\EY> had to be wrong; set <kclr=\E*> because that's what
5796# the 950 has.   Finally, corrected the <kel> string to match the 950 and what
5797# ko implies -- esr)
5798# If the BSD termcap file was right, <cup=\E=%p1%{32}%+%c%p2%{32}%+%c> would
5799# also work.
5800tvi955|televideo 955,
5801	OTbs, mc5i, msgr@,
5802	it#8, xmc@,
5803	acsc=0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ, blink=\EG2,
5804	civis=\E.0, cnorm=\E.2, cud1=^V, cup=\E[%i%p1%d;%p2%dH,
5805	cvvis=\E.1, dim=\E[=5h, ind@, invis=\EG1,
5806	is2=\E[=3l\EF1\Ed\EG0\E[=5l\E%\El, kctab=\E2, khts=\E1,
5807	knp=\EK, kpp=\EJ, krmir=\EQ, ktbc=\E3, mc0=\EP, rmacs=\E%%,
5808	rmam=\E[=7l, rmxon=^N,
5809	rs1=\EDF\EC\Eg\Er\EO\E'\E(\Ew\EX\Ee \017\E0P\E6\0\E0p\E4\0\Ef\r,
5810	sgr0=\EG0\E[=5l, smacs=\E$, smam=\E[=7h, smxon=^O,
5811	use=tvi950,
5812tvi955-w|955-w|televideo955 w/132 cols,
5813	cols#132,
5814	is2=\E[=3h\EF1\Ed\EG0\E[=5l\E%\El, use=tvi955,
5815# use half-intensity as normal mode, full intensity as <bold>
5816tvi955-hb|955-hb|televideo955 half-bright,
5817	bold=\E[=5l, dim@, is2=\E[=3l\EF1\Ed\EG0\E[=5h\E%\El,
5818	sgr0=\EG0\E[=5h, use=tvi955,
5819# From: Humberto Appleton <beto@cs.utexas.edu>, 880521 UT Austin
5820# (tvi970: removed ":sg#0:"; removed <rmso>=\E[m, <rmul>=\E[m;
5821# added <am>/<csr>/<home>/<hpa>/<vpa>/<smcup>/<rmcup> from BRL.
5822# According to BRL we could have <rmkx>=\E>, <smkx>=\E= but I'm not sure what
5823# it does to the function keys.  I deduced <rmam>/<smam>.
5824# also added empty <acsc> to suppress tic warning,  -- esr)
5825tvi970|televideo 970,
5826	OTbs, OTpt, am, da, db, mir, msgr,
5827	cols#80, it#8, lines#24,
5828	acsc=, cbt=\E[Z, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
5829	cub1=^H, cud1=\ED, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
5830	cuu1=\EM, cvvis=\E[1Q, dch1=\E[P, dl1=\E[M, dsl=\Eg\Ef\r,
5831	ed=\E[J, el=\E[K, flash=\E[5m$<200/>\E[m, home=\E[H,
5832	hpa=\E[%i%p1%dG, ht=^I, il1=\E[L,
5833	is2=\E<\E[?21l\E[19h\E[1Q\E[10l\E[7l\E[H\E[2J,
5834	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
5835	kf1=\E?a, kf2=\E?b, kf3=\E?c, kf4=\E?d, kf5=\E?e, kf6=\E?f,
5836	kf7=\E?g, kf8=\E?h, kf9=\E?i, khome=\E[H, ri=\EM, rmacs=\E(B,
5837	rmam=\E[?7h, rmcup=, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
5838	sgr0=\E[m, smacs=\E(B, smam=\E[?7l,
5839	smcup=\E[?20l\E[?7h\E[1Q, smir=\E[4h, smso=\E[7m,
5840	smul=\E[4m, vpa=\E[%i%p1%dd,
5841tvi970-vb|televideo 970 with visual bell,
5842	flash=\E[?5h\0\0\0\0\0\0\0\0\0\0\0\0\0\E[?5l,
5843	use=tvi970,
5844tvi970-2p|televideo 970 with using 2 pages of memory,
5845	rmcup=\E[H\E[J\E[V, smcup=\E[U\E[?20l\E[?7h\E[1Q,
5846	use=tvi970,
5847# Works with vi and rogue.  NOTE: Esc v sets autowrap on, Esc u sets 80 chars
5848# per line (rather than 40), Esc K chooses the normal character set.  Not sure
5849# padding is needed, but adapted from the tvi920c termcap.  The <smso> and
5850# <smul> strings are klutzy, but at least use no screen space.
5851# (tvipt: removed obsolete ":ma=^Kk^Ll^R^L:".  I wish we knew <rmam>,
5852# its absence means <smam>=\Ev isn't safe to use. -- esr)
5853# From: Gene Rochlin <armsis@amber.berkeley.edu> 9/19/84.
5854# The <ed>/<kf0>/<kf1>/<khome>/<mc4>, and <mc5> caps are from BRL, which says:
5855# F1 and F2 should be programmed as ^A and ^B; required for UNIFY.
5856tvipt|televideo personal terminal,
5857	OTbs, am,
5858	cols#80, lines#24,
5859	cbt=\EI, clear=^Z, cub1=^H, cuf1=^L,
5860	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER$<5*>,
5861	ed=\EY, el=\ET, home=^^, if=/usr/share/tabset/stdcrt,
5862	il1=\EE$<5*>, is2=\Ev\Eu\EK, kbs=^H, kcub1=^H, kcud1=^J,
5863	kcuf1=^L, kcuu1=^K, kf0=^A, kf1=^B, khome=^^, mc4=^T, mc5=^R,
5864	rmso=\EF, rmul=\EF, smso=\EG1@A\EH, smul=\EG1B@\EH,
5865# From: Nathan Peterson <nathan@sco.com>, 03 Sep 1996
5866tvi9065|televideo 9065,
5867	am, bw, chts, hs, mc5i, mir, msgr, xenl, xon,
5868	cols#80, it#8, lh#1, lines#25, lm#0, lw#9, ma#4, nlab#8, vt#0,
5869	wnum#0, wsl#30,
5870	acsc='r0_jhkglfmeniopqksqtmulvownxj, bel=^G,
5871	blink=\EG2, bold=\EG\,, cbt=\EI, civis=\E.0, clear=^Z,
5872	cnorm=\E.3, cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD,
5873	cub1=^H, cud=\E[%p1%dB, cud1=^V, cuf=\E[%p1%dC, cuf1=^L,
5874	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu=\E[%p1%dA,
5875	cuu1=^K, cvvis=\E.2, dch=\E[%p1%dP, dch1=\EW, dim=\EGp,
5876	dl=\E[%p1%dM, dl1=\ER, dsl=\E_30\r, ech=\E[%p1%d@, ed=\EY,
5877	el=\ET, flash=\Eb$<15>\Ed, fsl=^M, home=^^, ht=^I, hts=\E1,
5878	ich=\E[%p1%d@, if=/usr/share/tabset/stdcrt,
5879	il=\E[%p1%dL, il1=\EE, ind=^J, indn=\E[%p1%dS, invis=\EG1,
5880	ip=$<3>,
5881	is1=\E"\E%\E'\E(\EG@\EO\EX\E[=5l\E[=6l\E[=7h\Ed\Er,
5882	is2=\EF2\EG0\E\\L, is3=\E<\E[=4l\E[=8h, kHOM=\E\s\s\s,
5883	kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K,
5884	kdch1=\EW, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r,
5885	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
5886	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, ll=\E[25;1H,
5887	mc0=\E[0;0i, mc4=\Ea, mc5=\E`, nel=^M^J,
5888	pfkey=\E|%p1%{48}%+%c3%p2%s\031,
5889	pfloc=\E|%p1%{48}%+%c2%p2%s\031,
5890	pfx=\E|%p1%{48}%+%c1%p2%s\031,
5891	pln=\E_%p1%{63}%+%c%p2%s\r, prot=\E&,
5892	rep=\E[%p2%db%p1%c, rev=\EG4,
5893	rf=/usr/share/tabset/stdcrt, ri=\Ej, rin=\E[%p1%dT,
5894	rmacs=\E%%, rmam=\E[=7l, rmcup=\E.3\Er\E[1;25r\E[25;0H,
5895	rmdc=\0, rmir=\Er, rmln=\E[4;1v, rmso=\EG0, rmul=\EG0,
5896	rmxon=^N, rs1=\EC\EDF\E[0;0v\E[8;1v\E[=65l,
5897	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,
5898	rs3=\E[=19h\E.3\E9\E0O\0\0\0\0\0\E0o\0\0\0\0\0\E0J\177\0\0\0\0,
5899	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%%%;,
5900	sgr0=\EG0, smacs=\E$, smam=\E=7h, smcup=\E.2, smdc=\Er,
5901	smir=\Eq, smln=\E[4;2v, smso=\EGt, smul=\EG8, smxon=^O,
5902	tbc=\E3, tsl=\E[4;1v\E_30, uc=\EG8\EG0,
5903
5904#### Visual (vi)
5905#
5906# In September 1993, Visual Technology of Westboro, Massachusetts,
5907# merged with White Pine Software of Nashua, New Hampshire.
5908#
5909# White Pine Software may be contacted at +1 603/886-9050.
5910# Or visit White Pine on the World Wide Web at URL http://www.wpine.com.
5911#
5912
5913# Visual 50 from Beau Shekita, BTL-Whippany <whuxlb!ejs>
5914# Recently I hacked together the following termcap for Visual
5915# Technology's Visual 50 terminal. It's a slight modification of
5916# the vt52 termcap.
5917# It's intended to run when the Visual 50 is in vt52 emulation mode
5918# (I know what you're thinking; if it's emulating a vt52, then why
5919# another termcap? Well, it turns out that the Visual 50 can handle
5920# <dl1> and db(?) among other things, which the vt52 can't)
5921# The termcap works OK for the most part. The only problem is on
5922# character inserts. The whole line gets painfully redrawn for each
5923# character typed. Any suggestions?
5924# Beau's entry is combined with the vi50 entry from University of Wisconsin.
5925# Note especially the <il1> function.  <kf4>-<kf6> are really l4-l6 in
5926# disguise; <kf7>-<kf9> are really l1-l3.
5927vi50|visual 50,
5928	OTbs, OTpt, am, da, db, msgr,
5929	cols#80, it#8, lines#24,
5930	OTnl=^J, bel=^G, cbt=\Ez$<4/>, clear=\EH\EJ, cr=^M, cub1=^H,
5931	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5932	cuu1=\EA, dl1=\EM$<3*/>, ed=\EJ, el=\EK$<16/>, home=\EH,
5933	ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB,
5934	kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\EV,
5935	kf5=\EE, kf6=\E], kf7=\EL, kf8=\Ev, kf9=\EM, khome=\EH,
5936	nel=^M^J, ri=\EI, rmso=\ET, rmul=\EW, smso=\EU, smul=\ES,
5937# this one was BSD & SCO's vi50
5938vi50adm|visual 50 in adm3a mode,
5939	am, msgr,
5940	cols#80, it#8, lines#24,
5941	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
5942	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\EM,
5943	ed=\Ek, el=\EK, home=\EH, ht=^I, il1=\EL, ind=^J, kbs=^H,
5944	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH,
5945	rmso=\ET, smso=\EU,
5946# From: Jeff Siegal <jbs@quiotix.com>
5947vi55|Visual 55,
5948	OTbs, am, mir, msgr,
5949	cols#80, it#8, lines#24,
5950	clear=\Ev, csr=\E_%p1%{65}%+%c%p2%{65}%+%c, cub1=^H,
5951	cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5952	cuu1=\EA, dch1=\Ew, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I,
5953	il1=\EL, is2=\Ev\E_AX\Eb\EW\E9P\ET, kbs=^H, kcub1=\ED,
5954	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EI, rmir=\Eb, rmso=\ET,
5955	smir=\Ea, smso=\EU,
5956
5957# Visual 200 from BRL
5958# The following switch settings are assumed for normal operation:
5959#	FULL_DUPLEX		SCROLL			CR
5960#	AUTO_NEW_LINE_ON	VISUAL_200_EMULATION_MODE
5961# Other switches may be set for operator convenience or communication
5962# requirements.
5963# Character insertion is kludged in order to get around the "beep" misfeature.
5964# (This cap is commented out because <smir>/<rmir> is more efficient -- esr)
5965# Supposedly "4*" delays should be used for <il1>, <ed>, <clear>, <dch1>,
5966# and <dl1> strings, but we seem to get along fine without them.
5967vi200|visual 200,
5968	OTbs, OTpt, am, mir, msgr,
5969	OTkn#10, cols#80, it#8, lines#24,
5970	acsc=, bel=^G, cbt=\Ez, clear=\Ev, cnorm=\Ec, cr=^M, cub1=^H,
5971	cud1=^J, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
5972	cuu1=\EA, cvvis=\Ed, dch1=\EO, dim=\E4, dl1=\EM, ed=\Ey,
5973	el=\Ex, home=\EH, ht=^I, hts=\E1, il1=\EL, ind=^J, invis=\Ea,
5974	kbs=^H, kclr=\Ev, kctab=\E2, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
5975	kcuu1=\EA, kdch1=\EO, kdl1=\EM, ked=\EJ, kel=\Et, kf0=\E?p,
5976	kf1=\E?q, kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v,
5977	kf7=\E?w, kf8=\E?x, kf9=\E?y, khome=\EH, khts=\E1, kich1=\Ei,
5978	kil1=\EL, krmir=\Ej, mc0=\EH\E], mc4=\EX, mc5=\EW, ri=\EI,
5979	rmacs=\EG, rmkx=\E>, rmso=\E3,
5980	rs1=\E3\Eb\Ej\E\El\EG\Ec\Ek\EX, sgr0=\E3\Eb, smacs=\EF,
5981	smkx=\E=, smso=\E4, tbc=\Eg,
5982# The older Visuals didn't come with function keys. This entry uses
5983# <smkx> and <rmkx> so that the keypad keys can be used as function keys.
5984# If your version of vi doesn't support function keys you may want
5985# to use vi200-f.
5986vi200-f|visual 200 no function keys,
5987	is2=\E3\Eb\Ej\E\\\El\EG\Ed\Ek, kf0=\E?p, kf1=\E?q,
5988	kf2=\E?r, kf3=\E?s, kf4=\E?t, kf5=\E?u, kf6=\E?v, kf7=\E?w,
5989	kf8=\E?x, kf9=\E?y, rmkx=\E>, rmso@, smkx=\E=, smso@,
5990	use=vi200,
5991vi200-rv|visual 200 reverse video,
5992	cnorm@, cvvis@, ri@, rmso=\E3, smso=\E4, use=vi200,
5993
5994# the function keys are programmable but we don't reprogram them to their
5995# default values with <is2> because programming them is very verbose. maybe
5996# an initialization file should be made for the 300 and they could be stuck
5997# in it.
5998# (vi300: added <rmam>/<smam> based on init string -- esr)
5999vi300|visual 300 ansi x3.64,
6000	am, bw, mir, xenl,
6001	cols#80, lines#24,
6002	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
6003	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
6004	dch1=\E[P$<40>, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
6005	il1=\E[L, ind=^J,
6006	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[1Q\E[0;1(D\E[8s,
6007	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
6008	kf1=\E_A\E\\, kf2=\E_B\E\\, kf3=\E_C\E\\, kf4=\E_D\E\\,
6009	kf5=\E_E\E\\, kf6=\E_F\E\\, kf7=\E_G\E\\, kf8=\E_H\E\\,
6010	kf9=\E_I\E\\, khome=\E[H, ri=\EM, rmam=\E[?7l, rmir=\E[4l,
6011	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
6012	smso=\E[1m, smul=\E[4m,
6013# some of the vi300s have older firmware that has the command
6014# sequence for setting editing extent reversed.
6015vi300-old|visual 300 with old firmware (set edit extent reversed),
6016	is2=\E[7s\E[2;3;4;20;?5;?6l\E[12;?7h\E[2Q\E[0;1(D\E[8s,
6017	use=vi300,
6018
6019# Visual 500 prototype entry from University of Wisconsin.
6020# The best place to look for the escape sequences is page A1-1 of the
6021# Visual 500 manual.  The initialization sequence given here may be
6022# overkill, but it does leave out some of the initializations which can
6023# be done with the menus in set-up mode.
6024# The :xp: line below is so that emacs can understand the padding requirements
6025# of this slow terminal.  :xp: is 10 time the padding factor.
6026# (vi500: removed unknown :xp#4: termcap;
6027# also added empty <acsc> to suppress tic warning -- esr)
6028vi500|visual 500,
6029	am, mir, msgr,
6030	cols#80, it#8, lines#33,
6031	acsc=, cbt=\Ez$<4/>, clear=\Ev$<6*/>, cr=^M,
6032	csr=\E(%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=\EB,
6033	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
6034	dch1=\EO$<3*/>, dl1=\EM$<3*/>, ed=\Ey$<3*/>,
6035	el=\Ex$<16/>, home=\EH, ht=\011$<8/>, il1=\EL\Ex$<3*/>,
6036	ind=^J,
6037	is2=\E3\E\001\E\007\E\003\Ek\EG\Ed\EX\El\E>\Eb\E\\,
6038	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
6039	khome=\EH, nel=^M^J, rmacs=^O, rmir=\Ej, rmso=\E^G,
6040	rmul=\E^C, smacs=^N, smir=\Ei, smso=\E^H, smul=\E^D,
6041
6042# The visual 550 is a visual 300 with tektronix graphics,
6043# and with 33 lines. clear screen is modified here to
6044# also clear the graphics.
6045vi550|visual 550 ansi x3.64,
6046	lines#33,
6047	clear=\030\E[H\E[2J, use=vi300,
6048
6049vi603|visual603|visual 603,
6050	hs, mir,
6051	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
6052	csr=\E[%i%p1%d;%p2%dr, cuf1=\E[C,
6053	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
6054	dsl=\EP2;1~\E\\, ed=\E[J, el=\E[K, fsl=\E\\, il1=\E[L,
6055	ind=\ED, is1=\E>\E[?3l\E[?4l\E[?7h\E[?8h\E[1;24r,
6056	rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
6057	sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=\EP2~,
6058	use=vt100,
6059
6060#### Wyse (wy)
6061#
6062#	Wyse Technology
6063#	3471 North First Street
6064#	San Jose, CA 95134
6065#	Vox: (408)-473-1200
6066#	Fax: (408) 473-1222
6067#	Web: http://www.wyse.com
6068#
6069# Wyse sales can be reached by phone at 1-800-GET-WYSE.  Tech support is at
6070# (800)-800-WYSE (option 5 gets you a human).  There's a Web page at the
6071# obvious address, <http://www.wyse.com>.  They keep terminfo entries at
6072# <http://www.wyse.co.uk/support/appnotes/idxappnt.htm>.
6073#
6074# Wyse bought out Link Technology, Inc. in 1990 and closed it down in 1995.
6075# They now own the Qume and Amdek brands, too.  So these are the people to
6076# talk with about all Link, Qume, and Amdek terminals.
6077#
6078# These entries include a few small fixes.
6079# I canceled the bel capacities in the vb entries.
6080# I made two trivial syntax fixes in the wyse30 entry.
6081# I made some entries relative to adm+sgr.
6082#
6083#
6084# Note: The wyse75, wyse85, and wyse99 have been discontinued.
6085
6086#	   Although the Wyse 30 can support more than one attribute
6087#	it requires magic cookies to do so.  Many applications do not
6088#	function well with magic cookies.  The following terminfo uses
6089#	the protect mode to support one attribute (dim) without cookies.
6090#	If more than one attribute is needed then the wy30-mc terminfo
6091#	should be used.
6092#
6093wy30|wyse30|Wyse 30,
6094	am, bw, hs, mc5i, mir, msgr, xon,
6095	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
6096	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
6097	civis=\E`0, clear=\E+$<80>, cnorm=\E`1, cr=^M, cub1=^H,
6098	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
6099	cuu1=^K, dch1=\EW$<10>, dim=\E`7\E), dl1=\ER$<1>,
6100	dsl=\EF\r, ed=\EY$<80>, el=\ET, flash=\E`8$<100/>\E`9,
6101	fsl=^M, home=^^, ht=\011$<1>, hts=\E1, il1=\EE$<2>,
6102	ind=\n$<2>, ip=$<2>, is2=\E'\E(\E\^3\E`9\016\024,
6103	kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
6104	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kent=\E7,
6105	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6106	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=^^, kich1=\EQ,
6107	kil1=\EE, knp=\EK, kpp=\EJ, krpl=\Er, ll=^^^K, mc0=\EP, mc4=^T,
6108	mc5=^X, nel=^M^J, pfx=\Ez%p1%{63}%+%c%p2%s\177,
6109	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), ri=\Ej$<3>,
6110	rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
6111	sgr=%?%p1%p5%p8%|%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6112	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
6113	smso=\E`7\E), tbc=\E0, tsl=\EF,
6114#
6115#	This terminal description uses the non-hidden attribute mode
6116#	(with magic cookie).
6117#
6118# (wy30-mc: added <smcup> to suppress tic warning --esr)
6119wy30-mc|wyse30-mc|wyse 30 with magic cookies,
6120	msgr@,
6121	ma@, xmc#1,
6122	blink=\EG2, dim=\EGp, prot=\EG0\E), rmacs=\EG0\EH\003,
6123	rmcup=\EG0, rmso=\EG0,
6124	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%;,
6125	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
6126	smso=\EG4, use=wy30, use=adm+sgr,
6127#	The mandatory pause used by <flash> does not work with
6128#	older versions of terminfo.  If you see this effect then
6129#	unset xon and delete the / from the delay.
6130#	i.e. change $<100/> to $<100>
6131wy30-vb|wyse30-vb|wyse 30 visible bell,
6132	bel@, use=wy30,
6133#
6134#	   The Wyse 50 can support one attribute (e.g. Dim, Inverse,
6135#	Normal) without magic cookies by using the protect mode.
6136#	The following description uses this feature, but when more
6137#	than one attribute is put on the screen at once, all attributes
6138#	will be changed to be the same as the last attribute given.
6139#	   The Wyse 50 can support more attributes when used with magic
6140#	cookies.  The wy50-mc terminal description uses magic cookies
6141#	to correctly handle multiple attributes on a screen.
6142#
6143wy50|wyse50|Wyse 50,
6144	am, bw, hs, mc5i, mir, msgr, xon,
6145	cols#80, lh#1, lines#24, lw#8, ma#1, nlab#8, wsl#45,
6146	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, cbt=\EI,
6147	civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M, cub1=^H,
6148	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
6149	cuu1=^K, dch1=\EW$<1>, dim=\E`7\E), dl1=\ER, dsl=\EF\r,
6150	ed=\EY$<20>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
6151	home=^^, ht=^I, hts=\E1, il1=\EE, ind=\n$<2>, ip=$<1>,
6152	is1=\E`\:\E`9$<30>, is2=\016\024\E'\E(, kHOM=\E{, kbs=^H,
6153	kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW,
6154	kdl1=\ER, ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
6155	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
6156	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6157	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
6158	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
6159	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J,
6160	pfx=\Ez%p1%{63}%+%c%p2%s\177,
6161	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E`7\E), rev=\E`6\E),
6162	ri=\Ej, rmacs=\EH^C, rmir=\Er, rmln=\EA11, rmso=\E(,
6163	sgr=%?%p1%p3%|%t\E`6\E)%e%p5%p8%|%t\E`7\E)%e\E(%;%?%p9%t\EH\002%e\EH\003%;,
6164	sgr0=\E(\EH\003, smacs=\EH^B, smir=\Eq, smln=\EA10,
6165	smso=\E`6\E), tbc=\E0, tsl=\EF,
6166#
6167#	This terminal description uses the non-hidden attribute mode
6168#	(with magic cookie).
6169#
6170#	The mandatory pause used by flash does not work with some
6171#	older versions of terminfo.  If you see this effect then
6172#	unset <xon> and delete the / from the delay.
6173#	i.e. change $<100/> to $<100>
6174# (wy50-mc: added <smcup> to suppress tic warning --esr)
6175wy50-mc|wyse50-mc|wyse 50 with magic cookies,
6176	msgr@,
6177	ma@, xmc#1,
6178	blink=\EG2, dim=\EGp, prot=\EG0\E), rev=\EG4,
6179	rmacs=\EG0\EH\003, rmcup=\EG0, rmso=\EG0,
6180	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%;,
6181	sgr0=\EG0\E(\EH\003, smacs=\EG0\EH\002, smcup=,
6182	smso=\EGt, use=wy50, use=adm+sgr,
6183wy50-vb|wyse50-vb|wyse 50 visible bell,
6184	bel@, use=wy50,
6185wy50-w|wyse50-w|wyse 50 132-column,
6186	cols#132, lw#7, nlab#16, wsl#97,
6187	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
6188	use=wy50,
6189wy50-wvb|wyse50-wvb|wyse 50 132-column visible bell,
6190	bel@, use=wy50-w,
6191
6192#
6193#	The Wyse 350 is a Wyse 50 with color.
6194#	Unfortunately this means that it has magic cookies.
6195#	The color attributes are designed to overlap the reverse, dim and
6196#	underline attributes.  This is nice for monochrome applications
6197#	because you can make underline stuff green (or any other color)
6198#	but for true color applications it's not so hot because you cannot
6199#	mix color with reverse, dim or underline.
6200#	    To further complicate things one of the attributes must be
6201#	black (either the foreground or the background).  In reverse video
6202#	the background changes color with black letters.  In normal video
6203#	the foreground changes colors on a black background.
6204#	    This terminfo uses some of the more advanced features of curses
6205#	to display both color and blink.  In the final analysis I am not
6206#	sure that the wy350 runs better with this terminfo than it does
6207#	with the wy50 terminfo (with user adjusted colors).
6208#
6209#	The mandatory pause used by flash does not work with
6210#	older versions of terminfo.  If you see this effect then
6211#	unset xon and delete the / from the delay.
6212#	i.e. change $<100/> to $<100>
6213#
6214# Bug: The <op> capability resets attributes.
6215wy350|wyse350|Wyse 350,
6216	am, bw, hs, mc5i, mir, xon,
6217	colors#8, cols#80, lh#1, lines#24, lw#8, ncv#55, nlab#8, pairs#8,
6218	wsl#45, xmc#1,
6219	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
6220	cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
6221	cub1=^H, cud1=^J, cuf1=^L,
6222	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<1>,
6223	dim=\EGp, dl1=\ER, dsl=\EF\r, ed=\EY$<20>, el=\ET,
6224	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
6225	il1=\EE, ind=\n$<2>, ip=$<1>, is1=\E`\:\E`9$<30>,
6226	is2=\016\024\E'\E(, is3=\E%?, kHOM=\E{, kbs=^H, kcbt=\EI,
6227	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER,
6228	ked=\EY, kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r,
6229	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
6230	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
6231	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
6232	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
6233	ll=^^^K, mc0=\EP, mc4=^T, mc5=^X, nel=^M^J, oc=\E%?, op=\EG0,
6234	pfx=\Ez%p1%{63}%+%c%p2%s\177,
6235	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\EG0\E), ri=\Ej,
6236	rmacs=\EG0\EH\003, rmir=\Er, rmln=\EA11, setb=,
6237	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,
6238	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%;,
6239	sgr0=\EG0\E(\EH\003%{0}%PA%{0}%PC, smacs=\EG0\EH\002,
6240	smir=\Eq, smln=\EA10, tbc=\E0, tsl=\EF, use=adm+sgr,
6241wy350-vb|wyse350-vb|wyse 350 visible bell,
6242	bel@, use=wy350,
6243wy350-w|wyse350-w|wyse 350 132-column,
6244	cols#132, lw#7, nlab#16, wsl#97,
6245	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<2>, is1=\E`;\E`9$<30>,
6246	use=wy350,
6247wy350-wvb|wyse350-wvb|wyse 350 132-column visible bell,
6248	bel@, use=wy350-w,
6249#
6250#	This terminfo description is untested.
6251#	The wyse100 emulates an adm31, so the adm31 entry should work.
6252#
6253wy100|wyse 100,
6254	hs, mir,
6255	cols#80, lines#24, xmc#1,
6256	bel=^G, clear=\E;, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6257	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
6258	dl1=\ER, dsl=\EA31, ed=\EY, el=\ET, fsl=^M, il1=\EE, ind=^J,
6259	invis@, is2=\Eu\E0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
6260	kcuu1=^K, kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r,
6261	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, khome=\E{,
6262	rmir=\Er, smir=\Eq, tsl=\EF, use=adm+sgr,
6263#
6264#	The Wyse 120/150 has most of the features of the Wyse 60.
6265#	This terminal does not need padding up to 9600 baud!
6266#	<msgr> should be set but the clear screen fails when in
6267#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
6268#	then set <msgr>.
6269#
6270wy120|wyse120|wy150|wyse150|Wyse 120/150,
6271	am, bw, hs, km, mc5i, mir, msgr, xon,
6272	cols#80, it#8, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
6273	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6274	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
6275	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6276	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
6277	dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
6278	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=\011$<1>,
6279	hts=\E1, il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
6280	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6281	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6282	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6283	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6284	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6285	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6286	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6287	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
6288	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
6289	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6290	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6291	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
6292	rmacs=\EcD, rmam=\Ed., rmcup=\Ew1, rmir=\Er, rmln=\EA11,
6293	rmxon=\Ec20, rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
6294	rs3=\EwG\Ee($<100>,
6295	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,
6296	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6297	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6298	tbc=\E0, tsl=\EF, use=adm+sgr,
6299#
6300wy120-w|wyse120-w|wy150-w|wyse150-w|wyse 120/150 132-column,
6301	cols#132, lw#7, nlab#16, wsl#97,
6302	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
6303	rs2=\E`;$<70>, use=wy120,
6304#
6305wy120-25|wyse120-25|wy150-25|wyse150-25|wyse 120/150 80-column 25-lines,
6306	lh@, lines#25, lw@, nlab@,
6307	pln@, rs3=\EwG\Ee)$<100>, use=wy120,
6308#
6309wy120-25-w|wyse120-25-w|wy150-25-w|wyse150-25-w|wyse 120/150 132-column 25-lines,
6310	lh@, lines#25, lw@, nlab@,
6311	pln@, rs3=\EwG\Ee)$<100>, use=wy120-w,
6312#
6313wy120-vb|wyse120-vb|wy150-vb|wyse150-vb|Wyse 120/150 visible bell,
6314	bel@, use=wy120,
6315#
6316wy120-w-vb|wy120-wvb|wyse120-wvb|wy150-w-vb|wyse150-w-vb|Wyse 120/150 132-column visible bell,
6317	bel@, use=wy120-w,
6318#
6319#	The Wyse 60 is like the Wyse 50 but with more padding.
6320#	The reset strings are slow and the pad times very depending
6321#	on other parameters such as font loading.  I have tried
6322#	to follow the following outline:
6323#
6324#		<rs1> -> set personality
6325#		<rs2> -> set number of columns
6326#		<rs3> -> set number of lines
6327#		<is1> -> select the proper font
6328#		<is2> -> do the initialization
6329#		<is3> -> set up display memory (2 pages)
6330#
6331#	The Wyse 60's that have vt100 emulation are slower than the
6332#	older Wyse 60's.  This change happened mid-1987.
6333#	The capabilities effected are <dch1> <dl1> <il1> <ind> <ri>
6334#
6335#	The meta key is only half right.  This terminal will return the
6336#	high order bit set when you hit CTRL-function_key
6337#
6338#	It may be useful to assign two function keys with the
6339#	values  \E=(\s  look at old data in page 1
6340#	        \E=W,   look at bottom of page 1
6341#	where \s is a space ( ).
6342#
6343#	Note:
6344#	   The Wyse 60 runs faster when the XON/XOFF
6345#	   handshake is turned off.
6346#
6347# (wy60: we use \E{ rather than ^^ for home (both are documented) to avoid
6348# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
6349wy60|wyse60|Wyse 60,
6350	am, bw, hs, km, mc5i, mir, msgr,
6351	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#45,
6352	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6353	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<100>,
6354	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6355	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
6356	dch1=\EW$<11>, dclk=\E`b, dim=\EGp, dl1=\ER$<5>, dsl=\EF\r,
6357	ed=\EY$<100>, el=\ET, flash=\E`8$<100/>\E`9, fsl=^M,
6358	home=\E{, ht=\011$<1>, hts=\E1, il1=\EE$<4>, ind=\n$<5>,
6359	ip=$<3>, is1=\EcB0\EcC1,
6360	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6361	is3=\EwJ\Ew1$<150>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6362	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6363	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6364	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6365	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6366	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6367	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
6368	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<3>,
6369	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6370	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6371	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
6372	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew1, rmir=\Er,
6373	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<150>,
6374	rs2=\EeG$<150>, rs3=\EwG\Ee($<200>,
6375	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,
6376	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6377	smcup=\Ew0, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6378	tbc=\E0, tsl=\EF, use=adm+sgr,
6379#
6380wy60-w|wyse60-w|wyse 60 132-column,
6381	cols#132, lw#7, nlab#16, wsl#97,
6382	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<16>, ip=$<5>,
6383	rs2=\EeF$<150>\E`;$<150>, use=wy60,
6384#
6385wy60-25|wyse60-25|wyse 60 80-column 25-lines,
6386	lh@, lines#25, lw@, nlab@,
6387	pln@, rs3=\EwG\Ee)$<200>, use=wy60,
6388wy60-25-w|wyse60-25-w|wyse 60 132-column 25-lines,
6389	lh@, lines#25, lw@, nlab@,
6390	pln@, rs3=\EwG\Ee)$<200>, use=wy60-w,
6391#
6392wy60-42|wyse60-42|wyse 60 80-column 42-lines,
6393	lines#42,
6394	clear=\E+$<260>, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<2>,
6395	dch1=\EW$<16>, dl1=\ER$<11>, ed=\Ey$<260>, il1=\EE$<11>,
6396	ind=\n$<9>, ip=$<5>, is1=\EcB2\EcC3, nel=\r\n$<6>,
6397	ri=\Ej$<10>, rs3=\Ee*$<150>, use=wy60,
6398wy60-42-w|wyse60-42-w|wyse 60 132-column 42-lines,
6399	cols#132, lw#7, nlab#16, wsl#97,
6400	clear=\E+$<260>, cup=\Ea%i%p1%dR%p2%dC$<2>,
6401	dch1=\EW$<19>, ed=\Ey$<260>, home=\036$<2>, ip=$<6>,
6402	nel=\r\n$<11>, rs2=\EeF$<150>\E`;$<150>, use=wy60-42,
6403#
6404wy60-43|wyse60-43|wyse 60 80-column 43-lines,
6405	lh@, lines#43, lw@, nlab@,
6406	pln@, rs3=\Ee+$<150>, use=wy60-42,
6407wy60-43-w|wyse60-43-w|wyse 60 132-column 43-lines,
6408	lh@, lines#43, lw@, nlab@,
6409	pln@, rs3=\Ee+$<150>, use=wy60-42-w,
6410#
6411wy60-vb|wyse60-vb|Wyse 60 visible bell,
6412	bel@, use=wy60,
6413wy60-w-vb|wy60-wvb|wyse60-wvb|Wyse 60 132-column visible bell,
6414	bel@, use=wy60-w,
6415
6416#	The Wyse-99GT looks at lot like the Wyse 60 except that it
6417#	does not have the 42/43 line mode.  In the Wyse-60 the "lines"
6418#	setup parameter controls the number of lines on the screen.
6419#	For the Wyse 99GT the "lines" setup parameter controls the
6420#	number of lines in a page.  The screen can display 25 lines max.
6421#	    The Wyse-99GT also has personalities for the VT220 and
6422#	Tektronix 4014.  But this has no bearing on the native mode.
6423#
6424#	(msgr) should be set but the clear screen fails when in
6425#	alt-charset mode.  Try \EcE\s\s\E+\s if the screen is really clear
6426#	then set msgr, else use msgr@.
6427#
6428#	u0 -> enter Tektronix mode
6429#	u1 -> exit Tektronix mode
6430#
6431wy99gt|wyse99gt|Wyse 99gt,
6432	msgr@,
6433	clear=\E+$<130>, dch1=\EW$<7>, dl1=\ER$<4>, ed=\Ey$<130>,
6434	el=\Et$<5>, flash=\E`8$<100/>\E`9, ht=\011$<1>,
6435	il1=\EE$<4>, ind=\n$<4>, ip=$<2>, is3=\Ew0$<20>, nel@,
6436	ri=\Ej$<3>, rmcup=\Ew0, rs2=\E`\:$<150>, smcup=\Ew1,
6437	u0=\E~>\E8, u1=\E[42h, use=wy60,
6438#
6439wy99gt-w|wyse99gt-w|wyse 99gt 132-column,
6440	cols#132, lw#7, nlab#16, wsl#97,
6441	clear=\E+$<160>, cup=\Ea%i%p1%dR%p2%dC$<2>,
6442	dch1=\EW$<9>, ed=\Ey$<160>, ip=$<4>, rs2=\E`;$<150>,
6443	use=wy99gt,
6444#
6445wy99gt-25|wyse99gt-25|wyse 99gt 80-column 25-lines,
6446	lh@, lines#25, lw@, nlab@,
6447	pln@, rs2=\E`\:$<150>, rs3=\EwG\Ee)$<200>, use=wy99gt,
6448#
6449wy99gt-25-w|wyse99gt-25-w|wyse 99gt 132-column 25-lines,
6450	lh@, lines#25, lw@, nlab@,
6451	pln@, rs2=\E`;$<150>, use=wy99gt-w,
6452#
6453wy99gt-vb|wyse99gt-vb|Wyse 99gt visible bell,
6454	bel@, use=wy99gt,
6455#
6456wy99gt-w-vb|wy99gt-wvb|wyse99gt-wvb|Wyse 99gt 132-column visible bell,
6457	bel@, use=wy99gt-w,
6458
6459# Can't set tabs! Other bugs (ANSI mode only):
6460# - can't redefine function keys (anyway, key redefinition in ANSI mode
6461#   is too much complex to be described);
6462# - meta key can't be described (the terminal forgets it when reset);
6463# The xon-xoff handshaking can't be disabled while in ansi personality, so
6464# emacs can't work at speed greater than 9600 baud.  No padding is needed at
6465# this speed.
6466#   dch1 has been commented out because it causes annoying glittering when
6467# vi deletes one character at the beginning of a line with tabs in it.
6468#   dch makes sysgen(1M) have a horrible behaviour when deleting
6469# a screen and makes screen(1) behave badly, so it is disabled too. The nice
6470# thing is that vi goes crazy if smir-rmir are present and both dch-dch1 are
6471# not, so smir and rmir are commented out as well.
6472# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6473wy99-ansi|Wyse WY-99GT in ansi mode (int'l PC keyboard),
6474	am, km, mc5i, mir, msgr, xenl,
6475	cols#80, it#8, lines#25, vt#3,
6476	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~,
6477	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6478	clear=\E[H\E[J$<200>, cnorm=\E[34h\E[?25h, cr=^M,
6479	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<1>,
6480	cub1=\010$<1>, cud=\E[%p1%dB, cud1=\ED,
6481	cuf=\E[%p1%dC$<1>, cuf1=\E[C$<1>,
6482	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
6483	cvvis=\E[34l\E[?25h, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M,
6484	ech=\E[%p1%dX, ed=\E[J$<8*>, el=\E[K$<1>, el1=\E[1K$<1>,
6485	enacs=\E)0, flash=\E[?5h$<30/>\E[?5l, home=\E[H,
6486	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL,
6487	il1=\E[L, ind=\n$<1>, invis=\E[8m,
6488	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,
6489	kbs=^H, kcbt=\E[z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
6490	kcuu1=\EOA, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
6491	kf12=\E[24~, kf17=\E[K, kf18=\E[31~, kf19=\E[32~, kf2=\EOQ,
6492	kf20=\E[33~, kf21=\E[34~, kf22=\E[35~, kf23=\E[1~,
6493	kf24=\E[2~, kf3=\EOR, kf4=\EOS, kf5=\E[M, kf6=\E[17~,
6494	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, ll=\E[24E, mc0=\E[?19h,
6495	mc4=\E[4i, mc5=\E[5i, nel=\EE, prot=\E[1"q, rc=\E8,
6496	rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
6497	rmkx=\E[?1l, rmso=\E[27m, rmul=\E[24m,
6498	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,
6499	sc=\E7,
6500	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%;,
6501	sgr0=\E[m\017\E["q, smacs=^N, smam=\E[?7h, smir=\E[4h,
6502	smkx=\E[?1h, smso=\E[7m, smul=\E[4m, vpa=\E[%i%p1%dd,
6503
6504#   This is the american terminal. Here tabs work fine.
6505# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6506wy99a-ansi|Wyse WY-99GT in ansi mode (US PC keyboard),
6507	hts=\EH, is3=\E[?5l, rs3=\E[?5l, tbc=\E[3g, use=wy99-ansi,
6508
6509# This terminal (firmware version 02) has a lot of bugs:
6510# - can't set tabs;
6511# - other bugs in ANSI modes (see above).
6512# This description disables handshaking when using cup. This is because
6513# GNU emacs doesn't like Xon-Xoff handshaking. This means the terminal
6514# cannot be used at speeds greater than 9600 baud, because at greater
6515# speeds handshaking is needed even for character sending. If you use
6516# DTR handshaking, you can use even greater speeds.
6517# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6518wy99f|wy99fgt|wy-99fgt|Wyse WY-99GT (int'l PC keyboard),
6519	am, bw, hs, km, mc5i, mir, msgr, xon,
6520	cols#80, it#8, lines#25, wsl#46,
6521	acsc='x+y.wI~_vj(k'l&m%n)o9q*s8t-u.v\,w+x=, bel=^G,
6522	blink=\EG2, cbt=\EI, civis=\E`0, clear=\E'\E(\032,
6523	cnorm=\E`4\E`1, cr=^M, cub1=^H, cud1=\Ej, cuf1=^L,
6524	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
6525	cvvis=\E`2\E`1, dch1=\EW, dim=\EGp, dl1=\ER, dsl=\EF\r,
6526	ed=\EY$<8*>, el=\ET$<8>, enacs=\Ec@1J$<2000>,
6527	flash=\E\^1$<30/>\E\^0, fsl=^M, home=^^, ht=^I, il1=\EE,
6528	ind=^J, invis=\EG3,
6529	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,
6530	ka1=^^, ka3=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H,
6531	kcud1=^J, kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r,
6532	kf11=^AJ\r, kf12=^AK\r, kf13=^A`\r, kf14=^Aa\r, kf15=^Ab\r,
6533	kf16=^Ac\r, kf17=^Ad\r, kf18=^Ae\r, kf19=^Af\r, kf2=^AA\r,
6534	kf20=^Ag\r, kf21=^Ah\r, kf22=^Ai\r, kf23=^Aj\r, kf24=^Ak\r,
6535	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
6536	kf8=^AG\r, kf9=^AH\r, kprt=\EP, mc0=\EP, mc4=^T, mc5=\Ed#,
6537	nel=^_, prot=\E), rev=\EG4, ri=\Ej, rmacs=\EcD, rmam=\Ed.,
6538	rmcup=\Ec21\Ec31, rmir=\Er, rmso=\EG0, rmxon=\Ec20\Ec30,
6539	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,
6540	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%;,
6541	sgr0=\E(\EG0, smacs=\EcE, smam=\Ed/, smcup=\Ec20\Ec30,
6542	smir=\Eq, smso=\EG4, smxon=\Ec21\Ec31, tsl=\EF,
6543
6544# This is the american terminal. Here tabs work.
6545# From: Francesco Potorti` <F.Potorti@cnuce.cnr.it>, 24 Aug 1998
6546wy99fa|wy99fgta|wy-99fgta|Wyse WY-99GT (US PC keyboard),
6547	hts=\E1, tbc=\E0, use=wy99f,
6548
6549#
6550#	The Wyse 160 is combination of the WY-60 and the WY-99gt.
6551#	The reset strings are slow and the pad times very depending
6552#	on other parameters such as font loading.  I have tried
6553#	to follow the following outline:
6554#
6555#		<rs1> -> set personality
6556#		<rs2> -> set number of columns
6557#		<rs3> -> set number of lines
6558#		<is1> -> select the proper font
6559#		<is2> -> do the initialization
6560#		<is3> -> set up display memory (2 pages)
6561#
6562#	The display memory may be used for either text or graphics.
6563#	When "Display Memory = Shared" the terminal will have more pages
6564#	but garbage may be left on the screen when you switch from
6565#	graphics to text.  If "Display Memory = Unshared" then the
6566#	text area will be only one page long.
6567#
6568# (wy160: we use \E{ rather than ^^ for home (both are documented) to avoid
6569# a bug reported by Robert Dunn, <rcdii@inlink.com> -- esr)
6570wy160|wyse160|Wyse 160,
6571	am, bw, hs, km, mc5i, mir, msgr,
6572	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#38,
6573	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6574	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<30>,
6575	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6576	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<5>,
6577	dclk=\E`b, dim=\EGp, dl1=\ER$<1>, dsl=\EF\r, ed=\EY$<30>,
6578	el=\ET$<5>, flash=\E`8$<100/>\E`9, fsl=^M, home=\E{, ht=^I,
6579	hts=\E1, il1=\EE$<1>, ind=\n$<1>, ip=$<2>, is1=\EcB0\EcC1,
6580	is2=\Ed$\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6581	is3=\Ew0$<100>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6582	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6583	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6584	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6585	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6586	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ,
6587	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=\E{^K,
6588	mc0=\EP, mc4=^T, mc5=\Ed#, nel=\r\n$<1>,
6589	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6590	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6591	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<1>,
6592	rmacs=\EcD, rmam=\Ed., rmclk=\E`c, rmcup=\Ew0, rmir=\Er,
6593	rmln=\EA11, rmxon=\Ec20, rs1=\E~!\E~4$<70>,
6594	rs2=\E`\:$<100>, rs3=\EwG\Ee($<140>,
6595	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,
6596	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6597	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, smxon=\Ec21,
6598	tbc=\E0, tsl=\EF, use=adm+sgr,
6599#
6600wy160-w|wyse160-w|wyse 160 132-column,
6601	cols#132, lw#7, nlab#16, wsl#90,
6602	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<9>,
6603	rs2=\EeF$<150>\E`;$<150>, use=wy160,
6604#
6605wy160-25|wyse160-25|wyse 160 80-column 25-lines,
6606	lh@, lines#25, lw@, nlab@,
6607	pln@, rs3=\EwG\Ee)$<200>, use=wy160,
6608wy160-25-w|wyse160-25-w|wyse 160 132-column 25-lines,
6609	lh@, lines#25, lw@, nlab@,
6610	pln@, rs3=\EwG\Ee)$<200>, use=wy160-w,
6611#
6612wy160-42|wyse160-42|wyse 160 80-column 42-lines,
6613	lines#42,
6614	clear=\E+$<50>, dl1=\ER$<2>, ed=\Ey$<50>, il1=\EE$<2>,
6615	ind=\n$<2>, is1=\EcB2\EcC3, nel=\r\n$<2>, ri=\Ej$<2>,
6616	rs3=\Ee*$<150>, use=wy160,
6617wy160-42-w|wyse160-42-w|wyse 160 132-column 42-lines,
6618	cols#132, lw#7, nlab#16, wsl#90,
6619	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<8>, ip=$<3>,
6620	rs2=\EeF$<150>\E`;$<150>, use=wy160-42,
6621#
6622wy160-43|wyse160-43|wyse 160 80-column 43-lines,
6623	lh@, lines#43, lw@, nlab@,
6624	pln@, rs3=\Ee+$<150>, use=wy160-42,
6625wy160-43-w|wyse160-43-w|wyse 160 132-column 43-lines,
6626	lh@, lines#43, lw@, nlab@,
6627	pln@, rs3=\Ee+$<150>, use=wy160-42-w,
6628#
6629wy160-vb|wyse160-vb|Wyse 160 visible bell,
6630	bel@, use=wy160,
6631wy160-w-vb|wy160-wvb|wyse160-wvb|Wyse 160 132-column visible bell,
6632	bel@, use=wy160-w,
6633#
6634#	The Wyse 75 is a vt100 lookalike without advanced video.
6635#
6636#	   The Wyse 75 can support one attribute (e.g. Dim, Inverse,
6637#	Underline) without magic cookies.  The following description
6638#	uses this capability, but when more than one attribute is
6639#	put on the screen at once, all attributes will be changed
6640#	to be the same as the last attribute given.
6641#	   The Wyse 75 can support more attributes when used with magic
6642#	cookies.  The wy75-mc terminal description uses magic cookies
6643#	to correctly handle multiple attributes on a screen.
6644#
6645wy75|wyse75|wyse 75,
6646	am, hs, mc5i, mir, msgr, xenl, xon,
6647	cols#80, lines#24, ma#1, pb#1201, wsl#78,
6648	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6649	bel=^G, cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[J$<30>,
6650	cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr$<2>,
6651	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
6652	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
6653	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP$<3*>,
6654	dch1=\E[P$<3>, dim=\E[0t\E[2m, dl=\E[%p1%dM$<1*>,
6655	dl1=\E[M, dsl=\E[>\,\001\001\E[>-\001\001,
6656	ech=\E[%p1%dX, ed=\E[J$<30>, el=\E[K$<3>, el1=\E[1K$<3>,
6657	enacs=\E)0, flash=\E[30h\E\,\E[30l$<250>, fsl=^A,
6658	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
6659	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
6660	ind=\n$<2>, ip=$<1>,
6661	is1=\E[2;4;20;30l\E[?1;10l\E[12h\E[?7;8;25h,
6662	is2=\E>\E(B\E)0\017, is3=\E[m, ka1=\EOw, ka3=\EOy,
6663	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
6664	kcuf1=\E[C, kcuu1=\E[A, kdl1=\E[M, kel=\E[K, kent=\EOM,
6665	kf1=\E[?5i, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
6666	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
6667	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[?3i,
6668	kf20=\E[34~, kf21=\E[35~, kf3=\E[2i, kf4=\E[@, kf5=\E[M,
6669	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
6670	khlp=\E[28~, khome=\E[H, kich1=\E[@, kil1=\E[L, knp=\E[6~,
6671	kpp=\E[5~, kprt=\E[?5i, kslt=\E[4~, mc0=\E[0i, mc4=\E[4i,
6672	mc5=\E[5i, rc=\E8, rev=\E[1t\E[7m, ri=\EM$<2>, rmacs=^O,
6673	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m,
6674	rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<80>, rs3=\E[?5l,
6675	sc=\E7,
6676	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%;,
6677	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6678	smkx=\E[?1l\E[?7h\E=, smso=\E[1t\E[7m, smul=\E[2t\E[4m,
6679	tbc=\E[3g, tsl=\E[>\,\001,
6680#
6681#	This terminal description uses the non-hidden attribute mode
6682#	(with magic cookie).
6683#
6684wy75-mc|wyse75-mc|wyse 75 with magic cookies,
6685	msgr@,
6686	ma@, xmc#1,
6687	blink=\E[2p, dim=\E[1p, invis=\E[4p, is3=\E[m\E[p,
6688	rev=\E[16p, rmacs=\E[0p\017, rmso=\E[0p, rmul=\E[0p,
6689	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%;,
6690	sgr0=\E[0p\017, smacs=\E[0p\016, smso=\E[17p, smul=\E[8p,
6691	use=wy75,
6692wy75-vb|wyse75-vb|wyse 75 with visible bell,
6693	pb@,
6694	bel@, use=wy75,
6695wy75-w|wyse75-w|wyse 75 in 132 column mode,
6696	cols#132, wsl#130,
6697	rs2=\E[35h\E[?3h$<80>, use=wy75,
6698wy75-wvb|wyse75-wvb|wyse 75 with visible bell 132 columns,
6699	pb@,
6700	bel@, use=wy75-w,
6701#
6702#	Wyse 85 emulating a vt220 7 bit mode.
6703#		24 line screen with status line.
6704#
6705#	The vt220 mode permits more function keys but it wipes out
6706#	the escape key.  I strongly recommend that <f11> be set to
6707#	escape (esc).
6708#	The terminal may have to be set for 8 data bits and 2 stop
6709#	bits for the arrow keys to work.
6710#	The Wyse 85 runs faster with XON/XOFF enabled.  Also the
6711#	<dch> and <ich> work best when XON/XOFF is set.  <ich> and
6712#	<dch> leave trash on the screen when used without XON/XOFF.
6713#
6714wy85|wyse85|wyse 85,
6715	am, hs, mc5i, mir, msgr, xenl, xon,
6716	cols#80, it#8, lines#24, wsl#80,
6717	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6718	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6719	clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
6720	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
6721	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6722	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
6723	dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
6724	dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
6725	ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
6726	enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
6727	fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
6728	ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
6729	ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
6730	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
6731	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6732	kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
6733	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM, kf1=\EOP,
6734	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
6735	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
6736	kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
6737	kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
6738	kfnd=\E[1~, khlp=\E[28~, khome=\E[26~, kich1=\E[2~,
6739	knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3,
6740	lf4=PF4, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
6741	ri=\EM$<3>, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
6742	rmso=\E[m, rmul=\E[m, rs1=\E[13l\E[3l\E!p,
6743	rs2=\E[35h\E[?3l$<70>, rs3=\E[?5l, sc=\E7,
6744	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%;,
6745	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6746	smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
6747	tsl=\E[40h\E7\E[25;%i%p1%dH,
6748#
6749#	Wyse 85 with visual bell.
6750wy85-vb|wyse85-vb|wyse 85 with visible bell,
6751	bel@, flash=\E[30h\E\,\E[30l$<300>, use=wy85,
6752#
6753#	Wyse 85 in 132-column mode.
6754wy85-w|wyse85-w|wyse 85 in 132-column mode,
6755	cols#132, wsl#132,
6756	rs2=\E[35h\E[?3h$<70>, use=wy85,
6757#
6758#	Wyse 85 in 132-column mode with visual bell.
6759wy85-wvb|wyse85-wvb|wyse 85 with visible bell 132-columns,
6760	bel@, use=wy85-w,
6761
6762# From: Kevin Turner <kevint@aracnet.com>, 12 Jul 1998
6763# This copes with an apparent firmware bug in the wy85.  He writes:
6764# "What I did was change leave the terminal cursor keys set to Normal
6765# (instead of application), and change \E[ to \233 for all the keys in
6766# terminfo. At one point, I found some reference indicating that this
6767# terminal bug (not sending \E[) was acknowledged by Wyse (so it's not just
6768# me), but I can't find that and the server under my bookmark to "Wyse
6769# Technical" isn't responding.  So there's the question of wether the wy85
6770# terminfo should reflect the manufactuer's intended behaviour of the terminal
6771# or the actual."
6772wy85-8bit|wyse85-8bit|wyse 85 in 8-bit mode,
6773	am, hs, mc5i, mir, msgr, xenl, xon,
6774	cols#80, it#8, lines#24, wsl#80,
6775	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6776	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6777	clear=\E[H\E[J$<110>, cnorm=\E[?25h, cr=^M,
6778	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
6779	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6780	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
6781	dch=\E[%p1%dP$<3*>, dch1=\E[P$<3>, dim=\E[2m,
6782	dl=\E[%p1%dM$<3*>, dl1=\E[M$<3>, dsl=\E[40l,
6783	ech=\E[%p1%dX, ed=\E[J$<110>, el=\E[K$<1>, el1=\E[1K,
6784	enacs=\E)0, flash=\E[30h\E\,\E[30l$<300>,
6785	fsl=\E[1;24r\E8, home=\E[H, ht=\011$<1>, hts=\EH,
6786	ich=\E[%p1%d@$<4*>, il=\E[%p1%dL$<5*>, il1=\E[L$<5>,
6787	ind=\n$<3>, invis=\E[8m, ip=$<3>, is1=\E[62;1"p\E[?5W,
6788	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h$<16>,
6789	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6790	kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\233D, kcud1=\233B,
6791	kcuf1=\233C, kcuu1=\233A, kdch1=\2333~, kent=\EOM,
6792	kf1=\EOP, kf10=\23321~, kf11=\23323~, kf12=\23324~,
6793	kf13=\23325~, kf14=\23326~, kf15=\23328~, kf16=\23329~,
6794	kf17=\23331~, kf18=\23332~, kf19=\23333~, kf2=\EOQ,
6795	kf20=\23334~, kf3=\EOR, kf4=\EOS, kf6=\23317~, kf7=\23318~,
6796	kf8=\23319~, kf9=\23320~, kfnd=\2331~, khlp=\23328~,
6797	khome=\23326~, kich1=\2332~, knp=\2336~, kpp=\2335~,
6798	kslt=\2334~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
6799	mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<3>,
6800	rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[m,
6801	rmul=\E[m, rs1=\E[13l\E[3l\E!p, rs2=\E[35h\E[?3l$<70>,
6802	rs3=\E[?5l, sc=\E7,
6803	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%;,
6804	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
6805	smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
6806	tsl=\E[40h\E7\E[25;%i%p1%dH,
6807#
6808#	Wyse 185 emulating a vt320 7 bit mode.
6809#
6810#	This terminal always displays 25 lines.  These lines may be used
6811#	as 24 data lines and a terminal status line (top or bottom) or
6812#	25 data lines.  The 48 and 50 line modes change the page size
6813#	and not the number of lines on the screen.
6814#
6815#	The Compose Character key can be used as a meta key if changed
6816#	by set-up.
6817#
6818wy185|wyse185|wyse 185,
6819	am, hs, km, mc5i, mir, msgr, xenl, xon,
6820	cols#80, it#8, lines#24, wsl#80,
6821	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6822	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
6823	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
6824	csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
6825	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
6826	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
6827	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<3>,
6828	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
6829	dsl=\E7\E[99;0H\E[K\E8, ech=\E[%p1%dX, ed=\E[J$<40>,
6830	el=\E[K, el1=\E[1K, enacs=\E)0,
6831	flash=\E[30h\E\,\E[30l$<100>, fsl=\E[1;24r\E8,
6832	home=\E[H, hpa=\E[%i%p1%d`, ht=^I, hts=\EH,
6833	ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>, il1=\E[L$<3>,
6834	ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
6835	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25h,
6836	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOy, kb2=\EOu,
6837	kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
6838	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kent=\EOM,
6839	kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
6840	kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
6841	kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
6842	kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
6843	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
6844	khome=\E[26~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
6845	kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, mc0=\E[0i,
6846	mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM$<2>,
6847	rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l, rmkx=\E>,
6848	rmso=\E[27m, rmul=\E[24m,
6849	rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
6850	rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
6851	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%;,
6852	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
6853	smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
6854	tbc=\E[3g, tsl=\E7\E[99;%i%p1%dH, vpa=\E[%i%p1%dd,
6855#
6856#	Wyse 185 with 24 data lines and top status (terminal status)
6857wy185-24|wyse185-24|wyse 185 with 24 data lines,
6858	hs@,
6859	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
6860	use=wy185,
6861#
6862#	Wyse 185 with visual bell.
6863wy185-vb|wyse185-vb|wyse 185+flash,
6864	bel@, use=wy185,
6865#
6866#	Wyse 185 in 132-column mode.
6867wy185-w|wyse185-w|wyse 185 in 132-column mode,
6868	cols#132, wsl#132,
6869	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
6870	ip=$<7>, rs2=\E[35h\E[?3h, use=wy185,
6871#
6872#	Wyse 185 in 132-column mode with visual bell.
6873wy185-wvb|wyse185-wvb|wyse 185+flash+132 cols,
6874	bel@, use=wy185-w,
6875
6876# wy325 terminfo entries
6877# Done by Joe H. Davis        3-9-92
6878
6879# lines 25  columns 80
6880#
6881wy325|wyse325|Wyse epc,
6882	am, bw, hs, mc5i, mir,
6883	cols#80, lh#1, lines#24, lw#8, nlab#8, pb#9601, wsl#45,
6884	acsc=+/\,.0[Iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~,
6885	bel=^G, blink=\EG2, cbt=\EI, civis=\E`0, clear=\E+$<50>,
6886	cnorm=\E`1, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
6887	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW$<7>,
6888	dim=\EGp, dl1=\ER$<3>, dsl=\EF\r, ed=\EY$<50>, el=\ET$<4>,
6889	flash=\E`8$<100/>\E`9, fsl=^M, home=^^, ht=^I, hts=\E1,
6890	il1=\EE$<3>, ind=\n$<3>, ip=$<2>, is1=\EcB0\EcC1,
6891	is2=\EcD\E'\Er\EH\003\Ed/\EO\Ee1\Ed*\E`@\E`9\E`1\016\024\El,
6892	is3=\Ew0$<16>, kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=^H,
6893	kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY,
6894	kel=\ET, kent=\E7, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
6895	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
6896	kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r,
6897	kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq,
6898	kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er, ll=^^^K,
6899	mc0=\EP, mc4=^T, mc5=\Ed#,
6900	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
6901	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
6902	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<2>,
6903	rmacs=\EcD, rmam=\Ed., rmcup=\Ew0, rmir=\Er, rmln=\EA11,
6904	rs1=\E~!\E~4$<30>, rs2=\EeF\E`\:$<70>,
6905	rs3=\EwG\Ee($<100>,
6906	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,
6907	sgr0=\E(\EH\003\EG0\EcD, smacs=\EcE, smam=\Ed/,
6908	smcup=\Ew1, smir=\Eq, smln=\EA10, smso=\EGt, tbc=\E0,
6909	tsl=\EF, use=adm+sgr,
6910
6911#
6912# lines 24  columns 80  vb
6913#
6914wy325-vb|wyse325-vb|wyse-325 with visual bell,
6915	bel@, use=wy325,
6916
6917#
6918# lines 24  columns 132
6919#
6920wy325-w|wyse325-w|wy325w-24|wyse-325 in wide mode,
6921	cols#132, lw#7, nlab#16, wsl#97,
6922	cup=\Ea%i%p1%dR%p2%dC, dch1=\EW$<12>, ip=$<4>,
6923	rs2=\E`;$<70>, use=wy325,
6924#
6925# lines 25  columns 80
6926#
6927wy325-25|wyse325-25|wy325-80|wyse-325|wyse-325 25 lines,
6928	lh@, lines#25, lw@, nlab@,
6929	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
6930#
6931# lines 25  columns 132
6932#
6933wy325-25w|wyse325-25w|wy325 132 columns,
6934	lh@, lines#25, lw@, nlab@,
6935	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6936#
6937# lines 25  columns 132  vb
6938#
6939wy325-w-vb|wy325-wvb|wyse325-wvb|wyse-325 wide mode reverse video,
6940	bel@, use=wy325-w,
6941
6942#
6943# lines 42  columns 80
6944#
6945wy325-42|wyse325-42|wyse-325 42 lines,
6946	lh@, lines#42, lw@, nlab@,
6947	pln@, rs3=\EwG\Ee)$<100>, use=wy325,
6948#
6949# lines 42  columns 132
6950#
6951wy325-42w|wyse325-42w|wyse-325 42 lines wide mode,
6952	lh@, lines#42, lw@, nlab@,
6953	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6954#
6955# lines 42  columns 132  vb
6956#
6957wy325-42w-vb|wy325-42wvb|wyse-325 42 lines wide mode visual bell,
6958	bel@, use=wy325-w,
6959#
6960# lines 43  columns 80
6961#
6962wy325-43|wyse325-43|wyse-325 43 lines,
6963	lh@, lines#43, lw@, nlab@,
6964	pln@, use=wy325,
6965#
6966# lines 43  columns 132
6967#
6968wy325-43w|wyse325-43w|wyse-325 43 lines wide mode,
6969	lh@, lines#43, lw@, nlab@,
6970	pln@, rs3=\EwG\Ee)$<100>, use=wy325-w,
6971#
6972# lines 43  columns 132  vb
6973#
6974wy325-43w-vb|wy325-43wvb|wyse-325 43 lines wide mode visual bell,
6975	bel@, use=wy325-w,
6976
6977#	Wyse 370 -- 24 line screen with status line.
6978#
6979#	The terminal may have to be set for 8 data bits and 2 stop
6980#	bits for the arrow keys to work.
6981#
6982#	If you change keyboards the terminal will send different
6983#	escape sequences.
6984#	The following definition is for the basic terminal without
6985#	function keys.
6986#
6987#	<u0> -> enter Tektronix 4010/4014 mode
6988#	<u1> -> exit  Tektronix 4010/4014 mode
6989#	<u2> -> enter ASCII mode (from any ANSI mode)
6990#	<u3> -> exit  ASCII mode (goto native ANSI mode)
6991#	<u4> -> enter Tek 4207 ANSI mode (from any ANSI mode)
6992#	<u5> -> exit  Tek 4207 mode (goto native ANSI mode)
6993#
6994# Bug: The <op> capability resets attributes.
6995wy370-nk|wyse 370 without function keys,
6996	am, ccc, hs, mc5i, mir, msgr, xenl, xon,
6997	colors#64, cols#80, it#8, lines#24, ncv#48, pairs#64, wsl#80,
6998	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
6999	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
7000	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
7001	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7002	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7003	cup=\E[%i%p1%d;%p2%dH$<1>, cuu=\E[%p1%dA, cuu1=\E[A,
7004	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<1*>, dch1=\E[P$<1>,
7005	dclk=\E[31h, dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>,
7006	dsl=\E[40l, ech=\E[%p1%dX$<.1*>, ed=\E[J$<40>,
7007	el=\E[K$<10>, el1=\E[1K$<12>, enacs=\E)0,
7008	flash=\E[30h\E\,\E[30l$<300>, fsl=\E[1;24r\E8,
7009	home=\E[H, hpa=\E[%i%p1%d`, ht=\011$<1>, hts=\EH,
7010	ich=\E[%p1%d@$<1*>, il=\E[%p1%dL$<2*>, il1=\E[L$<2>,
7011	ind=\n$<2>,
7012	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,
7013	invis=\E[8m, ip=$<1>, is1=\E[90;1"p\E[?5W$<6>,
7014	is2=\E[2;4;20;30;40l\E[?1;10;16l\E[12h\E[?7;8;25h,
7015	is3=\E>\017\E)0\E(B\E[63;0w\E[m, mc0=\E[0i, mc4=\E[4i,
7016	mc5=\E[5i,
7017	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,
7018	op=\E[m, rc=\E8, rev=\E[7m, ri=\EM$<2>, rmacs=^O,
7019	rmam=\E[?7l, rmclk=\E[31l, rmcup=\E[ R, rmir=\E[4l,
7020	rmkx=\E>, rmso=\E[27m, rmul=\E[24m,
7021	rs1=\E[13l\E[3l\E!p\E[?4i, rs2=\E[35h\E[?3l$<8>,
7022	rs3=\E[?5l, sc=\E7, setb=\E[62;%p1%dw, setf=\E[61;%p1%dw,
7023	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%;,
7024	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smcup=\E[ Q,
7025	smir=\E[4h, smkx=\E[?1l\E=, smso=\E[7m, smul=\E[4m,
7026	tbc=\E[3g, tsl=\E[40l\E[40h\E7\E[99;%i%p1%dH,
7027	u0=\E[?38h\E8, u1=\E[?38l\E)0, u2=\E[92;52"p, u3=\E~B,
7028	u4=\E[92;76"p, u5=\E%!1\E[90;1"p, vpa=\E[%i%p1%dd,
7029#
7030#	Function key set for the ASCII (wy-50 compatible) keyboard
7031#	This is the default 370.
7032#
7033wy370|wyse370|wy370-101k|Wyse 370 with 101 key keyboard,
7034	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7035	kcuu1=\E[A, kdch1=\EOQ, kdl1=\EOQ, kent=\EOM, kf1=\E[?4i,
7036	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
7037	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf2=\E[?3i,
7038	kf3=\E[2i, kf4=\E[@, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
7039	kf8=\E[19~, kf9=\E[20~, khome=\E[H, kich1=\EOP, kil1=\EOP,
7040	knp=\E[U, kpp=\E[V, use=wy370-nk,
7041#
7042#	Function key set for the VT-320 (and wy85) compatible keyboard
7043#
7044wy370-105k|Wyse 370 with 105 key keyboard,
7045	ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs,
7046	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
7047	kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
7048	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
7049	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
7050	kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7051	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
7052	khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
7053	kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
7054	use=wy370-nk,
7055#
7056#	Function key set for the PC compatible keyboard
7057#
7058wy370-EPC|Wyse 370 with 102 key keyboard,
7059	kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7060	kcuu1=\E[A, kend=\E[1~, kent=\EOM, kf1=\EOP, kf10=\E[21~,
7061	kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
7062	kf5=\E[M, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
7063	khome=\E[H, kich1=\E[2~, knp=\E[U, kpp=\E[V, use=wy370-nk,
7064#
7065#	Wyse 370 with visual bell.
7066wy370-vb|Wyse 370 with visible bell,
7067	bel@, use=wy370,
7068#
7069#	Wyse 370 in 132-column mode.
7070wy370-w|Wyse 370 in 132-column mode,
7071	cols#132, wsl#132,
7072	rs2=\E[35h\E[?3h$<70>, use=wy370,
7073#
7074#	Wyse 370 in 132-column mode with visual bell.
7075wy370-wvb|Wyse 370 with visible bell 132-columns,
7076	flash=\E[30h\E\,\E[30l$<300>, use=wy370-w,
7077wy370-rv|Wyse 370 reverse video,
7078	rs3=\E[32h\E[?5h, use=wy370,
7079#
7080#	Wyse 99gt Tektronix 4010/4014 emulator,
7081#
7082wy99gt-tek|Wyse 99gt Tektronix 4010/4014 emulator,
7083	am, os,
7084	cols#74, lines#35,
7085	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
7086	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,
7087	cuu1=^K, ff=^L,
7088	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
7089	home=^]7`x @\037,
7090	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
7091	is2=\E8, nel=^M^J, u0=\E~>\E8, u1=\E[42h,
7092#
7093#	Wyse 160 Tektronix 4010/4014 emulator,
7094#
7095wy160-tek|Wyse 160 Tektronix 4010/4014 emulator,
7096	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,
7097	home=^]8`g @\037, use=wy99gt-tek,
7098#
7099#	Wyse 370 Tektronix 4010/4014 emulator,
7100#
7101wy370-tek|Wyse 370 Tektronix 4010/4014 emulator,
7102	am, os,
7103	cols#80, lines#36,
7104	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s,
7105	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,
7106	cuu1=^K, ff=^L,
7107	hd=\036HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\037,
7108	home=^]8g @\037,
7109	hu=\036DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\037,
7110	is2=\E8, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^I, kcuu1=^K,
7111	nel=^M^J, u0=\E[?38h\E8, u1=\E[?38l\E)0,
7112
7113# Vendor-supplied Wyse entries end here.
7114
7115#
7116#TITLE:  TERMINFO ENTRY WY520
7117#DATE:   8/5/93
7118# The WY520 terminfo is based on the WY285 entry published on the WYSE
7119# BBS with the addition of more function keys and special keys.
7120#
7121#               rs1 -> set personality
7122#               rs2 -> set number of columns
7123#               rs3 -> set number of lines
7124#               is1 -> select the proper font
7125#               is2 -> do the initialization
7126#               is3 -> If this string is empty then rs3 gets sent.
7127#
7128#       Wyse 520 emulating a vt420 7 bit mode with default ANSI keyboard
7129#       - The BS key is programmed to generate BS in smcup since
7130#         is2 doesn't seem to work.
7131#       - Remove and shift/Remove: delete a character
7132#       - Insert : enter insert mode
7133#       - Find   : delete to end of file
7134#       - Select : clear a line
7135#       - F11, F12, F13: send default sequences (not ESC, BS, LF)
7136#       - F14 : Home key
7137#       - Bottom status line (host writable line) is used.
7138#       - smkx,rmkx are removed because this would put the numeric
7139#         keypad in Dec application mode which doesn't seem to work
7140#         with SCO applications.
7141#
7142wy520|wyse520|wyse 520,
7143	am, hs, km, mc5i, mir, xenl, xon,
7144	cols#80, it#8, lines#24, wsl#80,
7145	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7146	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
7147	clear=\E[H\E[J$<40>, cnorm=\E[34h\E[?25h, cr=^M,
7148	csr=\E[%i%p1%d;%p2%dr$<20>, cub=\E[%p1%dD, cub1=^H,
7149	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7150	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7151	cvvis=\E[?25h\E[34l, dch=\E[%p1%dP$<3>, dch1=\E[P$<30>,
7152	dim=\E[2m, dl=\E[%p1%dM$<2*>, dl1=\E[M$<2>, dsl=\E[0$~,
7153	ech=\E[%p1%dX, ed=\E[J$<40>, el=\E[K, el1=\E[1K,
7154	enacs=\E)0, fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%d`, ht=^I,
7155	hts=\EH, ich=\E[%p1%d@$<2>, il=\E[%p1%dL$<3*>,
7156	il1=\E[L$<3>, ind=\n$<2>, invis=\E[8m, ip=$<4>, is1=\E[?5W,
7157	is2=\E[2;4;20;30l\E[?1;4;10;16l\E[12h\E[?7;8;25;67h,
7158	is3=\E>\E(B\E)0\017\E[m, ka1=\EOw, ka3=\EOu, kb2=\EOy,
7159	kbs=^H, kc1=\EOq, kc3=\EOs, kcbt=\E[Z, kcub1=\E[D,
7160	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, ked=\E[1~,
7161	kel=\E[4~, kent=\EOM, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
7162	kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
7163	kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
7164	kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7165	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
7166	khlp=\E[28~, khome=\E[26~, kich1=\E[2~, knp=\E[6~,
7167	kpp=\E[5~, kslt=\E[4~, lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4,
7168	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
7169	ri=\EM$<2>, rmacs=^O, rmam=\E[?7l, rmcup=\E[ R, rmir=\E[4l,
7170	rmso=\E[m, rmul=\E[24m,
7171	rs1=\E[13l\E[3l\E\\\E[63;1"p\E[!p, rs2=\E[35h\E[?3l,
7172	rs3=\E[?5l\E[47h\E[40l\E[r, sc=\E7,
7173	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%;,
7174	sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
7175	smcup=\E[ Q\E[?67;8h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
7176	tbc=\E[3g, tsl=\E[2$~\E[1$}\E[%i%p1%d`,
7177	vpa=\E[%i%p1%dd,
7178#
7179#       Wyse 520 with 24 data lines and status (terminal status)
7180wy520-24|wyse520-24|wyse 520 with 24 data lines,
7181	hs@,
7182	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
7183	use=wy520,
7184#
7185#       Wyse 520 with visual bell.
7186wy520-vb|wyse520-vb|wyse 520 with visible bell,
7187	flash=\E[30h\E\,\E[30l$<100>, use=wy520,
7188#
7189#       Wyse 520 in 132-column mode.
7190wy520-w|wyse520-w|wyse 520 in 132-column mode,
7191	cols#132, wsl#132,
7192	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
7193	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520,
7194#
7195#       Wyse 520 in 132-column mode with visual bell.
7196wy520-wvb|wyse520-wvb|wyse 520 with visible bell 132-columns,
7197	flash=\E[30h\E\,\E[30l$<100>, use=wy520-w,
7198#
7199#
7200#       Wyse 520 emulating a vt420 7 bit mode.
7201#       The DEL key is programmed to generate BS in is2.
7202#       With EPC keyboard.
7203#       - 'End' key will clear till end of line on EPC keyboard
7204#       - Shift/End : ignored.
7205#       - Insert : enter insert mode.
7206#       - Delete : delete a character (have to change interrupt character
7207#                  to CTRL-C: stty intr '^c') for it to work since the
7208#                  Delete key sends 7FH.
7209wy520-epc|wyse520-epc|wyse 520 with EPC keyboard,
7210	kdch1=\177, kel=\E[4~, kend=\E[4~, kf0=\E[21~, kf1=\E[11~,
7211	kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, khome=\E[H,
7212	use=wy520,
7213#
7214#       Wyse 520 with 24 data lines and status (terminal status)
7215#       with EPC keyboard.
7216wy520-epc-24|wyse520-pc-24|wyse 520 with 24 data lines and EPC keyboard,
7217	hs@,
7218	dsl@, fsl@, rs3=\E[?5l\E[47h\E[40l\E[1;24r, tsl@,
7219	use=wy520-epc,
7220#
7221#       Wyse 520 with visual bell.
7222wy520-epc-vb|wyse520-pc-vb|wyse 520 with visible bell and EPC keyboard,
7223	flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc,
7224#
7225#       Wyse 520 in 132-column mode.
7226wy520-epc-w|wyse520-epc-w|wyse 520 in 132-column mode with EPC keyboard,
7227	cols#132, wsl#132,
7228	dch=\E[%p1%dP$<7>, dch1=\E[P$<7>, ich=\E[%p1%d@$<7>,
7229	ip=$<7>, rs2=\E[35h\E[?3h, use=wy520-epc,
7230#
7231#       Wyse 520 in 132-column mode with visual bell.
7232wy520-epc-wvb|wyse520-p-wvb|wyse 520 with visible bell 132-columns and EPC keyboard,
7233	flash=\E[30h\E\,\E[30l$<100>, use=wy520-epc-w,
7234#
7235#       Wyse 520 in 80-column, 36 lines
7236wy520-36|wyse520-36|wyse 520 with 36 data lines,
7237	hs@,
7238	lines#36,
7239	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
7240	use=wy520,
7241#
7242#       Wyse 520 in 80-column, 48 lines
7243wy520-48|wyse520-48|wyse 520 with 48 data lines,
7244	hs@,
7245	lines#48,
7246	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
7247	use=wy520,
7248#
7249#       Wyse 520 in 132-column, 36 lines
7250wy520-36w|wyse520-36w|wyse 520 with 132 columns and 36 data lines,
7251	cols#132, wsl#132,
7252	rs2=\E[?3h,
7253	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
7254	use=wy520-36,
7255#
7256#       Wyse 520 in 132-column, 48 lines
7257wy520-48w|wyse520-48w|wyse 520 with 48 data lines,
7258	cols#132, wsl#132,
7259	rs2=\E[?3h,
7260	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
7261	use=wy520-48,
7262#
7263#
7264#       Wyse 520 in 80-column, 36 lines with EPC keyboard
7265wy520-36pc|wyse520-36pc|wyse 520 with 36 data lines and EPC keyboard,
7266	hs@,
7267	lines#36,
7268	dsl@, fsl@, rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r, tsl@,
7269	use=wy520-epc,
7270#
7271#       Wyse 520 in 80-column, 48 lines with EPC keyboard
7272wy520-48pc|wyse520-48pc|wyse 520 with 48 data lines and EPC keyboard,
7273	hs@,
7274	lines#48,
7275	dsl@, fsl@, rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r, tsl@,
7276	use=wy520-epc,
7277#
7278#       Wyse 520 in 132-column, 36 lines with EPC keyboard
7279wy520-36wpc|wyse520-36wpc|wyse 520 with 36 data lines and EPC keyboard,
7280	cols#132, wsl#132,
7281	rs2=\E[?3h,
7282	rs3=\E[?5l\E[36*|\E[36t\E[40l\E[1;36r\E[132$|,
7283	use=wy520-36pc,
7284#
7285#       Wyse 520 in 132-column, 48 lines with EPC keyboard
7286wy520-48wpc|wyse520-48wpc|wyse 520 with 48 data lines and EPC keyboard,
7287	cols#132, wsl#132,
7288	rs2=\E[?3h,
7289	rs3=\E[?5l\E[48*|\E[48t\E[40l\E[1;48r\E[132$|,
7290	use=wy520-48pc,
7291
7292# From: John Gilmore <hoptoad!gnu@lll-crg.arpa>
7293# (wyse-vp: removed <if=/usr/share/tabset/wyse-adds>, there's no such
7294# file and we don't know what <hts> is -- esr)
7295wyse-vp|Wyse 50 in ADDS Viewpoint emulation mode with "enhance" on,
7296	OTbs, am,
7297	cols#80, it#8, lines#24,
7298	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
7299	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EW,
7300	dl1=\El, ed=\Ek, el=\EK, home=^A, ht=^I, il1=\EM, ind=^J,
7301	is2=\E`\:\E`9\017\Er, kbs=^H, kcub1=^U, kcud1=^J, kcuf1=^F,
7302	kcuu1=^Z, khome=^A, ll=^A^Z, nel=^M^J, rmir=\Er, rmso=^O,
7303	rmul=^O, rs1=\E`\:\E`9\017\Er, sgr0=^O, smir=\Eq, smso=^N,
7304	smul=^N,
7305
7306wy75ap|wyse75ap|wy-75ap|wyse-75ap|Wyse WY-75 Applications and Cursor keypad,
7307	is2=\E[1;24r\E[?10;3l\E[?1;25h\E[4l\E[m\E(B\E=,
7308	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
7309	khome=\EOH, rmkx=\E[?1l\E>$<10/>, smkx=\E[?1h\E=$<10/>,
7310	use=wy75,
7311
7312# From: Eric Freudenthal <freudent@eric.ultra.nyu.edu>
7313wy100q|Wyse 100 for Quotron,
7314	OTbs,
7315	cols#80, lines#24, xmc#1,
7316	cbt=\EI, clear=^Z, cub1=^H, cud1=^J, cuf1=^L,
7317	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
7318	dl1=\ER, ed=\EY, el=\ET, home=^^, il1=\EE, invis@,
7319	is2=\E`\:\0\EC\EDF\E0\E'\E(\EA21, kcub1=^H, kcud1=^J,
7320	kcuf1=^L, kcuu1=^K, ri=\Ej, rmir=\Er, smir=\Eq, use=adm+sgr,
7321
7322#### Kermit terminal emulations
7323#
7324# Obsolete Kermit versions may be listed in the section describing obsolete
7325# non-ANSI terminal emulators later in the file.
7326#
7327
7328# KERMIT standard all versions.
7329# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
7330# (kermit: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
7331# From: greg small <gts@populi.berkeley.edu> 9-25-84
7332kermit|standard kermit,
7333	OTbs,
7334	cols#80, lines#24,
7335	clear=\EE, cub1=^H, cuf1=\EC,
7336	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
7337	el=\EK, home=\EH, is2=K0 Standard Kermit  9-25-84\n,
7338	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
7339kermit-am|standard kermit plus auto-margin,
7340	am,
7341	is2=K1 Standard Kermit plus Automatic Margins\n,
7342	use=kermit,
7343# IBMPC Kermit 1.2.
7344# Bugs: <ed>, <el>: do not work except at beginning of line!  <clear> does
7345# not work, but fake with :cl=\EH\EJ (since :cd=\EJ: works at beginning of
7346# line).
7347# From: greg small <gts@populi.berkeley.edu> 8-30-84
7348pckermit|pckermit12|UCB IBMPC Kermit 1.2,
7349	am,
7350	lines#25,
7351	clear=\EH\EJ, ed@, el@,
7352	is2=K2 UCB IBMPC Kermit 1.2  8-30-84\n, use=kermit,
7353# IBMPC Kermit 1.20
7354# Cannot use line 25, now acts funny like ansi special scrolling region.
7355# Initialization must escape from that region by cursor position to line 24.
7356# Cannot use character insert because 1.20 goes crazy if insert at col 80.
7357# Does not use :am: because autowrap is lost when kermit dropped and restarted.
7358# From: greg small <gts@populi.berkeley.edu> 12-19-84
7359pckermit120|UCB IBMPC Kermit 1.20,
7360	it#8, lines#24,
7361	cud1=\EB, cvvis=\EO\Eq\EEK3, dch1=\EN, dl1=\EM, ht=^I,
7362	il1=\EL,
7363	is2=\EO\Eq\EJ\EY7 K3 UCB IBMPC Kermit 1.20  12-19-84\n,
7364	rmir@, rmso=\Eq, smir@, smso=\Ep, use=kermit,
7365# MS-DOS Kermit 2.27 for the IBMPC
7366# Straight ascii keyboard. :sr=\EI: not avail. many versions + bug prone in vi.
7367# Cannot use line 25, now acts funny like ansi special scrolling region.
7368# Initialization must escape from that region by cursor position to line 24.
7369# Does not use am: because autowrap is lost when kermit dropped and restarted.
7370# Reverse video for standout like H19.
7371# (msk227: removed obsolete ":ma=^Hh^Jj^Kk^Ll^^H:" -- esr)
7372# From: greg small <gts@populi.berkeley.edu> 3-17-85
7373msk227|mskermit227|MS-DOS Kermit 2.27 for the IBMPC,
7374	OTbs, am@,
7375	cols#80, it#8, lines#24,
7376	clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
7377	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
7378	cvvis=\EO\Eq\EG\EwK4, dch1=\EN, dl1=\EM, ed=\EJ, el=\EK,
7379	home=\EH, ht=^I, il1=\EL,
7380	is2=\EO\Eq\EG\Ew\EJ\EY7 K4 MS Kermit 2.27 for the IBMPC 3-17-85\n,
7381	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rc=\Ek,
7382	rmir=\EO, rmso=\Eq, sc=\Ej, smir=\E@, smso=\Ep,
7383# MS-DOS Kermit 2.27 with automatic margins
7384# From:	greg small <gts@populi.berkeley.edu> 3-17-85
7385msk227am|mskermit227am|UCB MS-DOS Kermit 2.27 with automatic margins,
7386	am,
7387	cvvis=\EO\Eq\EG\EvK5,
7388	is2=\EO\Eq\EG\Ev\EJ\EY7 K5 MS Kermit 2.27 +automatic margins 3-17-85\n,
7389	use=msk227,
7390# MS-DOS Kermit 2.27 UCB 227.14 for the IBM PC
7391# Automatic margins now default.  Use ansi <sgr> for highlights.
7392# Define function keys.
7393# (msk22714: removed obsolete ":kn#10:" -- esr)
7394# From: greg small <gts@populi.berkeley.edu> 3-17-85
7395msk22714|mskermit22714|UCB MS-DOS Kermit 2.27 UCB 227.14 IBM PC,
7396	am,
7397	bold=\E[1m, cvvis=\EO\Eq\EG\EvK6,
7398	is2=\EO\Eq\EG\Ev\EJ\EY7 K6 MS Kermit 2.27 UCB 227.14 IBM PC 3-17-85\n,
7399	kf0=\E0, kf1=\E1, kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6,
7400	kf7=\E7, kf8=\E8, kf9=\E9, rev=\E[7m, rmso=\E[m, rmul=\E[m,
7401	sgr0=\E[m, smso=\E[1m, smul=\E[4m, use=mskermit227,
7402# This was designed for a VT320 emulator, but it is probably a good start
7403# at support for the VT320 itself.
7404# Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
7405# (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
7406vt320-k3|MS-Kermit 3.00's vt320 emulation,
7407	am, eslok, hs, km, mir, msgr, xenl,
7408	cols#80, it#8, lines#49, pb#9600, vt#3,
7409	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7410	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
7411	clear=\E[H\E[J, cmdch=\E, cnorm=\E[?25h, cr=^M,
7412	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7413	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7414	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7415	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
7416	dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
7417	flash=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l,
7418	fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
7419	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
7420	is2=\E>\E F\E[?1l\E[?7h\E[r\E[2$~, kbs=^H, kcub1=\EOD,
7421	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdl1=\E[3~, kf0=\E[21~,
7422	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7423	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~,
7424	kpp=\E[5~, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, nel=^M^J, rc=\E8,
7425	rev=\E[7m, ri=\EM, rin=\E[%p1%dL, rmacs=\E(B, rmam=\E[?7l,
7426	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
7427	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$~,
7428	sc=\E7, sgr0=\E[m, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
7429	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
7430	tsl=\E[1$}\r\E[K, vpa=\E[%i%p1%dd,
7431# From: Joseph Gil <yogi@cs.ubc.ca> 13 Dec 1991
7432# ACS capabilities from Philippe De Muyter  <phdm@info.ucl.ac.be> 30 May 1996
7433# (I removed a bogus boolean :mo: and added <msgr>, <smam>, <rmam> -- esr)
7434vt320-k311|dec vt320 series as defined by kermit 3.11,
7435	am, eslok, hs, mir, msgr, xenl, xon,
7436	cols#80, it#8, lines#24, vt#3,
7437	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7438	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
7439	clear=\E[;H\E[2J, cnorm=\E[?25h, cr=^M,
7440	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7441	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7442	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7443	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
7444	dl1=\E[M, dsl=\E[2$~\r\E[1$}\E[K\E[$}, ed=\E[J, el=\E[K,
7445	flash=\E[?5h\E[?5l, fsl=\E[$}, home=\E[H, ht=^I, hts=\EH,
7446	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L$<3/>, ind=\ED,
7447	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
7448	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
7449	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
7450	kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
7451	lf3=pf3, lf4=pf4, nel=^M\ED, rc=\E8, rev=\E[7m,
7452	rf=/usr/share/tabset/vt100, ri=\EM, rmacs=^O,
7453	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
7454	rmul=\E[24m, rs1=\E[?3l, sc=\E7, sgr0=\E[m, smacs=^N,
7455	smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m,
7456	smul=\E[4m, tbc=\E[3g, tsl=\E[2$~\E[1$}\E[1;%dH,
7457
7458######## NON-ANSI TERMINAL EMULATIONS
7459#
7460
7461#### Avatar
7462#
7463# These entries attempt to describe Avatar, a terminal emulation used with
7464# MS-DOS bulletin-board systems.  It was designed to give ANSI-like
7465# capabilities, but with cheaper (shorter) control sequences.  Messy design,
7466# excessively dependent on PC idiosyncracies, but apparently rather popular
7467# in the BBS world.
7468#
7469# No color support.  Avatar doesn't fit either of the Tektronix or HP color
7470# models that terminfo knows about.  An Avatar color attribute is the
7471# low 7 bits of the IBM-PC display-memory attribute.  Bletch.
7472#
7473# I wrote these entries while looking at the Avatar spec.  I don't have
7474# the facilities to test them.  Let me know if they work, or don't.
7475#
7476# Avatar escapes not used by these entries (because maybe you're smarter
7477# and more motivated than I am and can figure out how to wrap terminfo
7478# around some of them, and because they are weird enough to be funny):
7479#				level 0:
7480# ^L		-- clear window/reset current attribute to default
7481# ^V^A%p1%c	-- set current color attribute, parameter decodes as follows:
7482#
7483#      bit:         6   5   4   3   2   1   0
7484#                   |       |   |   |       |
7485#                   +---+---+   |   +---+---+
7486#                       |       |       |
7487#                       |       |  foreground color
7488#                       |  foreground intensity
7489#                  background color
7490#				level 0+:
7491# ^V^J%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) up by p1 lines
7492# ^V^K%p1%c%p2%c%p3%c%p4%c%p5%c	-- scroll (p2,p3) to (p4,p5) down by p1 lines
7493# ^V^L%p1%c%p2%c%p3%c		-- clear p2 lines and p3 cols w/attr %p1
7494# ^V^M%p1%c%p2%c%p3%c%p4%c	-- fill p3 lines & p4 cols w/char p2+attr %p1
7495# (^V^L and ^V^M set the current attribute as a side-effect.)
7496# ^V ^Y <a> [...] <c>	-- repeat pattern. <a> specifies the number of bytes
7497#			   in the pattern, <c> the number of times the pattern
7498#		  	   should be repeated. If either value is 0, no-op.
7499#			   The pattern can contain Avatar console codes,
7500#			   including other ^V ^Y patterns.
7501#				level 1:
7502# ^V^O		-- clockwise mode on; turn print direction right each time you
7503#		   hit a window edge (yes, really).  Turned off by CR
7504# ^V^P		-- no-op
7505# ^V^Q%c	-- query the driver
7506# ^V^R		-- driver reset
7507# ^V^S		-- Sound tone (PC-specific)
7508# ^V^T			-- change highlight at current cursor poition to %c
7509# ^V^U%p1%c%p2%c	-- highlight window <a> with attribute <b>
7510# ^V^V%p1%c%p2%c%p3%c%p4%c%p5%c
7511#			-- define window
7512#
7513# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7514# (The <blink>/<bold>/<rev>/<smacs>/<smul>/<smso> capabilities exist only to
7515# tell ncurses that the corresponding highlights exist; it should use <sgr>,
7516# which is the only method that will actually work for multiple highlights.)
7517avatar0|avatar terminal emulator level 0,
7518	am, bce, msgr,
7519	cols#80, it#8, lines#25,
7520	blink=^A^V\177, bold=^V^A^P, cr=^M, cub1=^V^E, cud1=^V^D,
7521	cuf1=^V^F, cup=\026\010%p1%c%p2%c, cuu1=^V^C, el=^V^G,
7522	ind=^J, invis=^V^A\0, rep=\031%p1%c%p2%d, rev=^A^Vp,
7523	rs2=^L,
7524	sgr=\026\001%{0}%?%p1%t%{112}%|%;%?%p2%t%{1}%|%;%?%p3%t%{112}%|%;%?%p4%t{128}%|%;%?%p6%t%{16}%|%;,
7525	sgr0=^V^A^G, smacs=, smso=^A^Vp, smul=^V^A, use=klone+acs,
7526# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7527avatar0+|avatar terminal emulator level 0+,
7528	dch1=^V^N, rmir=\026\n\0\0\0\0, smir=^V^I, use=avatar0,
7529# From: Eric S. Raymond <esr@snark.thyrsus.com> 1 Nov 1995
7530avatar|avatar1|avatar terminal emulator level 1,
7531	civis=^V'^B, cnorm=^V'^A, cvvis=^V^C, dl1=^V-, il1=^V+,
7532	rmam=^V", rmir=^V^P, smam=^V$, use=avatar0+,
7533
7534#### RBcomm
7535#
7536# RBComm is a lean and mean terminal emulator written by the Interrupt List
7537# maintainer, Ralf Brown. It was fairly popular in the late DOS years (early
7538# '90s), especially in the BBS world, and still has some loyal users due to
7539# its very small memory footprint and to a cute macro language.
7540rbcomm|IBM PC with RBcomm and EMACS keybindings,
7541	am, bw, mir, msgr, xenl,
7542	cols#80, it#8, lines#25,
7543	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
7544	clear=^L, cnorm=\E[?25h, cr=^M, csr=\E[%i%p1%d;%p2%dr,
7545	cub1=^H, cud1=^C, cuf1=^B,
7546	cup=\037%p2%{32}%+%c%p1%{32}%+%c, cuu1=^^,
7547	cvvis=\E[?25h, dch1=^W, dl=\E[%p1%dM, dl1=^Z,
7548	ech=\E[%p1%dX, ed=^F5, el=^P^P, ht=^I, il=\E[%p1%dL, il1=^K,
7549	ind=\ED, invis=\E[8m,
7550	is2=\017\035\E(B\E)0\E[?7h\E[?3l\E[>8g, kbs=^H,
7551	kcub1=^B, kcud1=^N, kcuf1=^F, kcuu1=^P, khome=^A, nel=^M\ED,
7552	rc=\E8, rep=\030%p1%c%p2%c, rev=^R, ri=\EM, rmcup=, rmdc=,
7553	rmir=^], rmkx=\E>, rmso=^U, rmul=^U,
7554	rs1=\017\E(B\E)0\025\E[?3l\E[>8g, sc=\E7, sgr0=\E[m,
7555	smcup=, smdc=, smir=^\, smkx=\E=, smso=^R, smul=^T,
7556rbcomm-nam|IBM PC with RBcomm without autowrap,
7557	am@,
7558	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
7559	is2=\017\035\E(B\E)0\E[?7l\E[?3l\E[>8g, kbs=^H,
7560	kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
7561rbcomm-w|IBM PC with RBcomm in 132 column mode,
7562	cols#132,
7563	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J,
7564	is2=\017\035\E(B\E)0\E[?7h\E[?3h\E[>8g, kbs=^H,
7565	kcub1=^H, kcud1=^J, nel=^M^J, use=rbcomm,
7566
7567######## LCD DISPLAYS
7568#
7569
7570#### Matrix Orbital
7571# from: Eric Z. Ayers  (eric@ale.org)
7572#
7573# Matrix Orbital 20x4 LCD display
7574# Command Character is 0xFE (decimal 254, octal 376)
7575#
7576# On this device, cursor addressability isn't possible.  The LCD expects:
7577#      0xfe G <col> <row>
7578#      for cup: %p1 == row and %p2 is column
7579#
7580# This line:
7581#	cup=\376G%p2%c%p1%c
7582# LOOKS like it will work, but sometimes only one of the two numbers is sent.
7583# See the terminfo (5) manpage commented regarding 'Terminals which use "%c"'.
7584#
7585# Alas, there is no cursor upline capability on this display.
7586#
7587# These entries add some 'sanity stuff' to the clear function.  That is, it
7588# does a 'clear' and also turns OFF auto scroll, turns ON Auto Line Wrapping,
7589# and turns off the cursor blinking and stuff like that.
7590#
7591# NOTE: calling 'beep' turns on the backlight (bell)
7592# NOTE: calling 'flash' turns it on and back off (visual bell)
7593#
7594MtxOrb| Generic Matrix Orbital LCD display,
7595	bel=\376B^A, clear=\376X\376C\376R\376K\376T,
7596	cnorm=\376K\376T, cub1=\376L, cuf1=\376M,
7597	flash=\376B\001$<200>\376F, home=\376H,
7598MtxOrb204| 20x4 Matrix Orbital LCD display,
7599	cols#20, lines#4, use=MtxOrb,
7600MtxOrb162| 16x2 Matrix Orbital LCD display,
7601	cols#16, lines#2, use=MtxOrb,
7602# The end
7603
7604######## OLDER TERMINAL TYPES
7605#
7606# This section is devoted to older commercial terminal brands that are now
7607# discontinued, but known to be still in use or represented by emulations.
7608#
7609
7610#### AT&T (att, tty)
7611#
7612# This section also includes Teletype-branded VDTs.
7613#
7614# The AT&T/Teletype terminals group was sold to SunRiver Data Systems (now
7615# Boundless Technologies); for details, see the header comment on the ADDS
7616# section.
7617#
7618# These are AT&T's official terminfo entries.  All-caps aliases have been
7619# removed.
7620#
7621att2300|sv80|AT&T 2300 Video Information Terminal 80 column mode,
7622	am, eo, mir, msgr, xon,
7623	cols#80, it#8, lines#24,
7624	bel=^G, clear=\E[H\E[J, cr=^M, cub=\E[%p1%dD, cub1=^H,
7625	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7626	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7627	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
7628	el=\E[K, el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@,
7629	il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcbt=\E[Z, kclr=\E[J,
7630	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
7631	kdl1=\E[M, kf1=\E[1r, kf10=\E[10r, kf11=\E[11r,
7632	kf12=\E[12r, kf13=\E[13r, kf14=\E[14r, kf15=\E[15r,
7633	kf16=\E[16r, kf2=\E[2r, kf3=\E[3r, kf4=\E[4r, kf5=\E[5r,
7634	kf6=\E[6r, kf7=\E[7r, kf8=\E[8r, kf9=\E[9r, khome=\E[H,
7635	kich1=\E[@, kil1=\E[L, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
7636	rev=\E[7m, rmir=\E[4l, rmso=\E[m, sgr0=\E[m, smir=\E[4h,
7637	smso=\E[7m,
7638att2350|AT&T 2350 Video Information Terminal 80 column mode,
7639	mc0@, mc4@, mc5@, use=att2300,
7640
7641# Must setup RETURN KEY - CR, REC'VD LF - INDEX.
7642# Seems upward compatible with vt100, plus ins/del line/char.
7643# On sgr, the protection parameter is ignored.
7644# No check is made to make sure that only 3 parameters are output.
7645# 	standout= reverse + half-intensity = 3 | 5.
7646# 	bold= reverse + underline = 2 | 3.
7647# note that half-bright blinking doesn't look different from normal blinking.
7648# NOTE:you must program the function keys first, label second!
7649# (att4410: a BSD entry has been seen with the following capabilities:
7650# <is2=\E[?6l>, <kf1=\EOc>, <kf2=\EOd>, <kf3=\EOe>, <kf4=\EOg>,
7651# <kf6=\EOh>, <kf7=\EOi>, <kf8=\EOj>, -- esr)
7652att5410v1|att4410v1|tty5410v1|AT&T 4410/5410 80 columns - version 1,
7653	am, hs, mir, msgr, xon,
7654	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
7655	acsc=++\,\,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7656	bel=^G, blink=\E[5m, bold=\E[2;7m, clear=\E[H\E[J, cr=^M,
7657	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
7658	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dim=\E[2m,
7659	dl1=\E[M, ed=\E[J, el=\E[K, fsl=\E8, home=\E[H, ht=^I,
7660	ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, is1=\E[?3l\E)0,
7661	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,
7662	kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7663	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
7664	kf6=\EOU, kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H,
7665	ll=\E[24H, nel=^M^J,
7666	pfx=\E[%p1%1d;%p2%l%2.2dq   f%p1%1d           %p2%s,
7667	pln=\E[%p1%d;00q%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
7668	rmacs=^O, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
7669	sc=\E7,
7670	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%;,
7671	sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
7672	tsl=\E7\E[25;%p1%{1}%+%dH,
7673
7674att4410v1-w|att5410v1-w|tty5410v1-w|AT&T 4410/5410 132 columns - version 1,
7675	cols#132, wsl#132,
7676	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att5410v1,
7677
7678att4410|att5410|tty5410|AT&T 4410/5410 80 columns - version 2,
7679	OTbs,
7680	pfx=\E[%p1%d;%p2%l%02dq   f%p1%d           %p2%s,
7681	use=att5410v1,
7682
7683att5410-w|att4410-w|4410-w|tty5410-w|5410-w|AT&T 4410/5410 in 132 column mode,
7684	cols#132, wsl#132,
7685	is1=\E[?3h\E)0, rs2=\Ec\E[?3h\E[2;0y, use=att4410,
7686
7687# 5410 in terms of a vt100
7688# (v5410: added <rmam>/<smam> based on init string -- esr)
7689v5410|att5410 in terms of a vt100,
7690	am, mir, msgr, xon,
7691	cols#80, it#8, lines#24, vt#3,
7692	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7693	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
7694	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
7695	cub1=^H, cud1=^J, cuf1=\E[C$<2>,
7696	cup=\E[%i%p1%d;%p2%dH$<5>, cuu1=\E[A$<2>, dch1=\E[P,
7697	dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
7698	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ich1=\E[@,
7699	il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
7700	kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
7701	kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
7702	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
7703	kf8=\EOl, kf9=\EOw, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
7704	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
7705	rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
7706	sc=\E7,
7707	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
7708	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
7709	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
7710
7711#
7712# Teletype Model 5420 -- A souped up 5410, with multiple windows,
7713# even! the 5420 has three modes: scroll, window or page mode
7714# this terminfo should work in scroll or window mode, but doesn't
7715# take advantage of any of the differences between them.
7716#
7717# Has memory below (2 lines!)
7718# 3 pages of memory (plus some spare)
7719# The 5410 sequences for <cup>, <cvvis>, <dch>, <dl>, <ech>, <flash>, <home>,
7720# <hpa>, <hts> would work for these, but these work in both scroll and window
7721# mode... Unset insert character so insert mode works
7722# <is1> sets 80 column mode,
7723# <is2> escape sequence:
7724# 1) turn off all fonts
7725# 2) function keys off, keyboard lock off, control display off,
7726#    insert mode off, erasure mode off,
7727# 3) full duplex, monitor mode off, send graphics off, nl on lf off
7728# 4) reset origin mode
7729# 5) set line wraparound
7730# 6) exit erasure mode, positional attribute mode, and erasure extent mode
7731# 7) clear margins
7732# 8) program ENTER to transmit ^J,
7733# We use \212 to program the ^J because a bare ^J will get translated by
7734# UNIX into a CR/LF. The enter key is needed for AT&T uOMS.
7735#     1      2            3              4     5     6    7  8
7736# <is3> set screen color to black,
7737# No representation in terminfo for the delete word key: kdw1=\Ed
7738# Key capabilities assume the power-up send sequence...
7739# This <rmcup> is not strictly necessary, but it helps maximize
7740# memory usefulness: <rmcup=\Ez>,
7741# Alternate sgr0:	<sgr0=\E[m\EW^O>,
7742# 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%;>,
7743# smkx programs the SYS PF keys to send a set sequence.
7744# It also sets up labels f1, f2, ..., f8, and sends edit keys.
7745# This string causes them to send the strings <kf1>-<kf8>
7746# when pressed in SYS PF mode.
7747# (att4415: I added <rmam>/<smam> based on the init string -- esr)
7748att4415|tty5420|att5420|AT&T 4415/5420 80 cols,
7749	OTbs, db, mir, xon,
7750	lh#2, lm#78, lw#8, nlab#8, wsl#55,
7751	cbt=\E[Z, clear=\E[x\E[J, cnorm=\E[11;0j, cub=\E[%p1%dD,
7752	cud=\E[%p1%dB, cuf=\E[%p1%dC, cup=\E[%i%p1%d;%p2%dx,
7753	cuu=\E[%p1%dA, cvvis=\E[11;1j, dch=\E[%p1%dP,
7754	dl=\E[%p1%dM, ech=\E[%p1%ds\E[%p1%dD,
7755	flash=\E[?5h$<200>\E[?5l, home=\E[x,
7756	hpa=\E[%p1%{1}%+%dG, hts=\EH, ich=\E[%p1%d@, ich1@,
7757	il=\E[%p1%dL, indn=\E[%p1%dE, is1=\E[?3l$<100>,
7758	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,
7759	is3=\E[?5l, kbeg=\Et, kcbt=\E[Z, kdch1=\E[P, kdl1=\E[M,
7760	kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc, kf2=\EOd,
7761	kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
7762	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
7763	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
7764	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?2i, mc4=\E[?9i,
7765	mc5=\E[?4i, mrcup=\E[%i%p1%d;%p2%dt,
7766	pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s,
7767	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV,
7768	rin=\E[%p1%dF, rmam=\E[?7l, rmir=\E[4l,
7769	rmkx=\E[19;0j\E[21;1j\212, rmln=\E|,
7770	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%;,
7771	sgr0=\E[m\017, smam=\E[?7h, smir=\E[4h,
7772	smkx=\E[19;1j\E[21;4j\Eent, smln=\E~, tbc=\E[3g,
7773	tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
7774	use=att4410,
7775
7776att4415-w|tty5420-w|att5420-w|AT&T 4415/5420 132 cols,
7777	cols#132, lm#54, wsl#97,
7778	is1=\E[?3h$<100>, use=att4415,
7779
7780att4415-rv|tty5420-rv|att5420-rv|AT&T 4415/5420 80 cols/rv,
7781	flash=\E[?5l$<200>\E[?5h, is3=\E[?5h, use=att4415,
7782
7783att4415-w-rv|tty5420-w-rv|att5420-w-rv|AT&T 4415/5420 132 cols/rv,
7784	cols#132, lm#54, wsl#97,
7785	flash=\E[?5l$<200>\E[?5h, is1=\E[?3h$<100>, is3=\E[?5h,
7786	use=att4415,
7787
7788# Note that this mode permits programming USER PF KEYS and labels
7789# However, when you program user pf labels you have to reselect
7790# user pf keys to make them appear!
7791att4415+nl|tty5420+nl|att5420+nl|generic AT&T 4415/5420 changes for not changing labels,
7792	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
7793	pfx=\E[%p1%d;%p2%l%02d;0;1q   F%p1%d           %p2%s,
7794	pln=\E[%p1%d;0;0;1q%p2%:-16.16s,
7795
7796att4415-nl|tty5420-nl|att5420-nl|AT&T 4415/5420 without changing labels,
7797	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7798	use=att4415,
7799
7800att4415-rv-nl|tty5420-rv-nl|att5420-rv-nl|AT&T 4415/5420 reverse video without changing labels,
7801	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7802	use=att4415-rv,
7803
7804att4415-w-nl|tty5420-w-nl|att5420-w-nl|AT&T 4415/5420 132 cols without changing labels,
7805	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7806	use=att4415-w,
7807
7808att4415-w-rv-n|tty5420-w-rv-n|att5420-w-rv-n|AT&T 4415/5420 132 cols reverse without changing labels,
7809	kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@, use=att4415+nl,
7810	use=att4415-w-rv,
7811
7812att5420_2|AT&T 5420 model 2 80 cols,
7813	am, db, hs, mir, msgr, xon,
7814	cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
7815	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7816	blink=\E[5m, cbt=\E[1Z, clear=\EH\EJ, cnorm=\E[11;0j,
7817	cr=\EG, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7818	cud1=\E[1B, cuf=\E[%p1%dC, cuf1=\E[1C,
7819	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cvvis=\E[11;1j,
7820	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
7821	dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[0J, el=\E[0K,
7822	el1=\E[1K, flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
7823	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
7824	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dE,
7825	invis=\E[8m,
7826	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,
7827	kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D,
7828	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
7829	kel=\E[2K, kend=\Ez, kent=^J, kf1=\EOc, kf2=\EOd, kf3=\EOe,
7830	kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj, khome=\E[H,
7831	kich1=\E[4h, kil1=\E[L, kind=\E[T, kll=\Eu, knp=\E[U,
7832	kpp=\E[V, kri=\E[S, lf1=F1, lf2=F2, lf3=F3, lf4=F4, lf5=F5,
7833	lf6=F6, lf7=F7, lf8=F8, ll=\Ew, mc0=\E[?;2i, mc4=\E[4i,
7834	mc5=\E[5i, mrcup=\E[%i%p1%d;%p2%dt, nel=^M^J,
7835	pfx=\E[%p1%d;%p2%l%02dq   F%p1%d           %p2%s\E~,
7836	pln=\E[%p1%d;0;0;0q%p2%:-16.16s\E~, prot=\EV, rc=\E8,
7837	rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmkx=\E[19;0j,
7838	rmln=\E|, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y,
7839	sc=\E7,
7840	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%;,
7841	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1j, smln=\E~,
7842	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
7843	tsl=\E7\E[25;%p1%{8}%+%dH, vpa=\E[%p1%{1}%+%dd,
7844att5420_2-w|AT&T 5420 model 2 in 132 column mode,
7845	cols#132,
7846	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,
7847	use=att5420_2,
7848
7849att4418|att5418|AT&T 5418 80 cols,
7850	am, xon,
7851	cols#80, lines#24,
7852	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7853	bel=^G, blink=\E[5m, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD,
7854	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
7855	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
7856	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m,
7857	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H,
7858	ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=^J,
7859	is1=\E[?3l, is2=\E)0\E?6l\E?5l, kclr=\E[%%, kcub1=\E@,
7860	kcud1=\EU, kcuf1=\EA, kcuu1=\ES, kent=\E[, kf1=\E[h,
7861	kf10=\E[m, kf11=\E[n, kf12=\E[o, kf13=\E[H, kf14=\E[I,
7862	kf15=\E[J, kf18=\E[K, kf19=\E[L, kf2=\E[i, kf20=\E[E,
7863	kf21=\E[_, kf22=\E[M, kf23=\E[N, kf24=\E[O, kf3=\E[j,
7864	kf6=\E[k, kf7=\E[l, kf8=\E[f, kf9=\E[w, khome=\Ec, rc=\E8,
7865	rev=\E[7m, rmacs=^O, rmso=\E[m, rmul=\E[m, sc=\E7,
7866	sgr0=\E[m\017, smacs=^N, smso=\E[7m, smul=\E[4m,
7867att4418-w|att5418-w|AT&T 5418 132 cols,
7868	cols#132,
7869	is1=\E[?3h, use=att5418,
7870
7871att4420|tty4420|teletype 4420,
7872	OTbs, da, db, eo, msgr, ul, xon,
7873	cols#80, lines#24, lm#72,
7874	bel=^G, clear=\EH\EJ, cr=\EG, cub1=\ED, cud1=\EB, cuf1=\EC,
7875	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
7876	dl1=\EM, ed=\EJ, el=\Ez, home=\EH, il1=\EL, ind=\EH\EM\EY7\s,
7877	kcbt=\EO, kclr=\EJ, kcub1=^H, kcud1=\EB, kcuf1=\EC,
7878	kcuu1=\EA, kdch1=\EP, kdl1=\EM, kf0=\EU, kf3=\E@, khome=\EH,
7879	kich1=\E\^, kil1=\EL, kind=\ES, kri=\ET,
7880	lf0=segment advance, lf3=cursor tab, rmdc@, rmso=\E~,
7881	rmul=\EZ, smdc@, smso=\E}, smul=\E\\,
7882
7883#  The following is a terminfo entry for the Teletype 4424
7884#  asynchronous keyboard-display terminal.  It supports
7885#  the vi editor.  The terminal must be set up as follows,
7886#
7887# 	HIGHLIGHT DEFINITION	3-TONE
7888# 	DISPLAY FUNCTION	GROUP III
7889#
7890#  The second entry below provides limited (a la adm3a)
7891#  operation under GROUP II.
7892#
7893#  This must be used with DISPLAY FUNCTION GROUP I or III
7894# 	and HIGHLIGHT DEFINITION 3-TONE
7895# The terminal has either bold or blink, depending on options
7896#
7897# (att4424: commented out <smcup>=\E[1m, we don't need bright locked on -- esr)
7898att4424|tty4424|teletype 4424,
7899	OTbs, am, xon,
7900	cols#80, lines#24,
7901	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7902	bel=^G, blink=\E3, bold=\E3, cbt=\EO, clear=\E[H\E[2J, cr=^M,
7903	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7904	cud=\E[%p1%dB, cud1=\EB, cuf=\E[%p1%dC, cuf1=\EC,
7905	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EA,
7906	dch=\E[%p1%dP, dch1=\EP, dim=\EW, dl=\E[%p1%dM, dl1=\EM,
7907	ed=\EJ, el=\Ez, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
7908	ich1=\E\^, il=\E[%p1%dL, il1=\EL, ind=^J, is2=\E[20l\E[?7h,
7909	kbs=^H, kclr=\EJ, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
7910	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
7911	khome=\E[H, nel=\EE, rev=\E}, ri=\ET, rmacs=\E(B, rmso=\E~,
7912	rmul=\EZ,
7913	sgr=\E[%?%p1%t7%;%?%p2%t;4%;%?%p3%t;7%;%?%p6%t;1%;%?%p6%p4%|%t;5%;%?%p5%t;0%;m,
7914	sgr0=\EX\E~\EZ\E4\E(B, smacs=\E(0, smso=\E}, smul=\E\\,
7915	tbc=\EF,
7916
7917att4424-1|tty4424-1|teletype 4424 in display function group I,
7918	kclr@, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome@,
7919	use=att4424,
7920
7921# This entry is not one of AT&T's official ones, it was translated from the
7922# 4.4BSD termcap file.  The highlight strings are different from att4424.
7923# I have no idea why this is -- older firmware version, maybe?
7924# The following two lines are the comment originally attached to the entry:
7925# This entry appears to avoid the top line - I have no idea why.
7926# From: jwb Wed Mar 31 13:25:09 1982 remote from ihuxp
7927att4424m|tty4424m|teletype 4424M,
7928	am, da, db, mir,
7929	cols#80, it#8, lines#23,
7930	bel=^G, clear=\E[2;H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
7931	cup=\E[%i%p1%2d;%p2%2dH\E[B, cuu1=\E[A, dch1=\EP,
7932	dl1=\EM, el=\E[K, ht=^I, ich1=\E\^, il1=\EL, ind=^J, ip=$<2/>,
7933	is2=\E[m\E[2;24r, kbs=^H, kcub1=\E[D, kcud1=\E[B,
7934	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
7935	kf4=\EOS, khome=\E[H, nel=^M^J, ri=\ET, rmso=\E[m, rmul=\E[m,
7936	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
7937
7938# The Teletype 5425 is really version 2 of the Teletype 5420. It
7939# is quite similar, except for some minor differences. No page
7940# mode, for example, so all of the <cup> sequences used above have
7941# to change back to what's being used for the 5410. Many of the
7942# option settings have changed their numbering as well.
7943#
7944# This has been tested on a preliminary model.
7945#
7946# (att5425: added <rmam>/<smam> based on the init string -- esr)
7947att5425|tty5425|att4425|AT&T 4425/5425,
7948	am, da, db, hs, mir, msgr, xenl, xon,
7949	cols#80, it#8, lh#2, lines#24, lm#78, lw#8, nlab#8, wsl#55,
7950	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7951	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
7952	clear=\E[H\E[J, cnorm=\E[12;0j, cr=^M,
7953	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
7954	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
7955	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
7956	cvvis=\E[12;1j, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
7957	dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%ds\E[%p1%dD, ed=\E[J,
7958	el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
7959	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H,
7960	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
7961	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dE,
7962	invis=\E[8m, is1=\E<\E[?3l$<100>,
7963	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,
7964	is3=\E[?5l, kbeg=\Et, kbs=^H, kcbt=\E[Z, kclr=\E[J,
7965	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
7966	kdl1=\E[M, kel=\E[2K, kend=\Ez, kent=\Eent, kf1=\EOc,
7967	kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg, kf6=\EOh, kf7=\EOi,
7968	kf8=\EOj, khome=\E[H, kich1=\E[4h, kil1=\E[L, kind=\E[T,
7969	kri=\E[S, ll=\E[24H, mc0=\E[?2i, mc4=\E[?9i, mc5=\E[?4i,
7970	nel=^M^J,
7971	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
7972	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, prot=\EV, rc=\E8,
7973	rev=\E[7m, ri=\EM, rin=\E[%p1%dF, rmacs=^O, rmam=\E[?7l,
7974	rmir=\E[4l, rmkx=\E[21;0j\E[25;1j\212, rmln=\E|,
7975	rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l\E[2;0y, sc=\E7,
7976	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%;,
7977	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
7978	smkx=\E[21;1j\E[25;4j\Eent\E~, smln=\E~, smso=\E[7m,
7979	smul=\E[4m, tbc=\E[3g, tsl=\E7\E[25;%p1%{8}%+%dH,
7980	vpa=\E[%p1%{1}%+%dd,
7981
7982att5425-nl|tty5425-nl|att4425-nl|AT&T 4425/5425 80 columns no labels,
7983	smkx=\E[21;1j\E[25;4j\Eent, use=att4425,
7984
7985att5425-w|att4425-w|tty5425-w|teletype 4425/5425 in 132 column mode,
7986	cols#132, lm#54, wsl#97,
7987	is1=\E[?3h$<100>, use=tty5425,
7988
7989# (att4426: his had bogus capabilities: :ri=\EM:, :ri=\E[1U:.
7990# I also added <rmam>/<smam> -- esr)
7991att4426|tty4426|teletype 4426S,
7992	am, da, db, xon,
7993	cols#80, lines#24, lm#48,
7994	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7995	bel=^G, bold=\E[5m, clear=\E[H\E[2J\E[1U\E[H\E[2J\E[1V,
7996	cr=^M, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
7997	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
7998	cuu=\E[%p1%dA, cuu1=\EA, dch=\E[%p1%dP, dch1=\EP,
7999	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[0K, home=\E[H,
8000	hpa=\E[%p1%dG, ht=^I, hts=\E1, ich=\E[%p1%d@, ich1=\E\^,
8001	il=\E[%p1%dL, il1=\EL, ind=^J, indn=\E[%p1%dS,
8002	is1=\Ec\E[?7h, is2=\E[m\E[1;24r, kbs=^H, kcbt=\EO,
8003	kclr=\E[2J, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
8004	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
8005	kf7=\EOV, kf8=\EOW, khome=\E[H, kll=\E[24;1H, ll=\E[24H,
8006	nel=^M^J, rc=\E8, rev=\E[7m, ri=\ET, rin=\E[%p1%dT,
8007	rmacs=\E(B, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
8008	rs2=\Ec\E[?3l\E[2;0y, sc=\E7, sgr0=\E[m\E(B, smacs=\E(0,
8009	smam=\E[?7h, smso=\E[5m, smul=\E[4m, tbc=\E[3g,
8010	vpa=\E[%p1%dd,
8011
8012# Terminfo entry for the AT&T 510 A Personal Terminal
8013# Function keys 9 - 16 are available only after the
8014# screen labeled (soft keys/action blocks) are labeled.  Function key
8015# 9 corresponds to the leftmost touch target on the screen,
8016# function key 16 corresponds to the rightmost.
8017#
8018# This entry is based on one done by Ernie Rice at Summit, NJ and
8019# changed by Anne Gallup, Skokie, IL, ttrdc!anne
8020att510a|bct510a|AT&T 510A Personal Terminal,
8021	am, mir, msgr, xenl, xon,
8022	cols#80, lh#2, lines#24, lw#7, nlab#8,
8023	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
8024	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
8025	civis=\E[11;0|, clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M,
8026	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[1B,
8027	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
8028	cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP,
8029	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J,
8030	el=\E[0K, el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H, ht=^I,
8031	hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J, is1=\E(B\E)1\E[2l,
8032	is3=\E[21;1|\212, kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z,
8033	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm,
8034	kf10=\EOd, kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh,
8035	kf15=\EOi, kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe,
8036	kf6=\ENf, kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T,
8037	mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, nel=\EE,
8038	pln=\E[%p1%dp%p2%:-16s, rc=\E8, rev=\E[7m, ri=\EM,
8039	rmacs=^O, rmkx=\E[19;0|, rmso=\E[m, rmul=\E[m, sc=\E7,
8040	sgr=\E[0%?%p5%p6%|%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1%|%p6%|%t;7%;m%?%p9%t\016%e\017%;,
8041	sgr0=\E[m\017, smacs=^N, smkx=\E[19;1|, smso=\E[7m,
8042	smul=\E[4m, tbc=\E[3g,
8043
8044# Terminfo entry for the AT&T 510 D Personal Terminal
8045# Function keys 9 through 16 are accessed by bringing up the
8046# system blocks.
8047# Function key 9 corresponds to the leftmost touch target on the screen,
8048# function key 16 corresponds to the rightmost.
8049#
8050# There are problems with soft key labeling.  These are due to
8051# strangenesses in the native terminal that are impossible to
8052# describe in a terminfo.
8053att510d|bct510d|AT&T 510D Personal Terminal,
8054	am, da, db, mir, msgr, xenl, xon,
8055	cols#80, lh#2, lines#24, lm#48, lw#7, nlab#8,
8056	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
8057	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
8058	clear=\E[H\E[J, cnorm=\E[11;3|, cr=^M, cub=\E[%p1%dD,
8059	cub1=^H, cud=\E[%p1%dB, cud1=\E[1B, cuf=\E[%p1%dC,
8060	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
8061	cuu1=\E[A, cvvis=\E[11;2|, dch=\E[%p1%dP, dch1=\E[P,
8062	dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[0K,
8063	el1=\E[1K, enacs=\E(B\E)1, ff=^L, home=\E[H,
8064	hpa=\E[%p1%{1}%+%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
8065	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
8066	invis=\E[8m, is1=\E(B\E)1\E[5;0|, is3=\E[21;1|\212,
8067	kLFT=\E[u, kRIT=\E[v, kbs=^H, kcbt=\E[Z, kcub1=\E[D,
8068	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOm, kf10=\EOd,
8069	kf11=\EOe, kf12=\EOf, kf13=\EOg, kf14=\EOh, kf15=\EOi,
8070	kf16=\EOj, kf2=\EOV, kf3=\EOu, kf4=\ENj, kf5=\ENe, kf6=\ENf,
8071	kf7=\ENh, kf8=\E[H, kf9=\EOc, kind=\E[S, kri=\E[T, ll=\E#2,
8072	mc0=\E[0i, mc4=\E[?8i, mc5=\E[?4i, mgc=\E\:, nel=\EE,
8073	pln=\E[%p1%dp%p2%:-16s, rc=\E8,
8074	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
8075	rin=\E[%p1%dT, rmacs=^O, rmir=\E[4l, rmkx=\E[19;0|,
8076	rmln=\E<, rmso=\E[m, rmul=\E[m, rmxon=\E[29;1|,
8077	rs2=\E[5;0|, sc=\E7,
8078	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%;,
8079	sgr0=\E[m\017, smacs=^N, smgl=\E4, smgr=\E5, smir=\E[4h,
8080	smkx=\E[19;1|, smln=\E?, smso=\E[7m, smul=\E[4m,
8081	smxon=\E[29;0|, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
8082
8083# (att500: I merged this with the att513 entry, att500 just used att513 -- esr)
8084att500|att513|AT&T 513 using page mode,
8085	am, chts, mir, msgr, xenl, xon,
8086	cols#80, lh#2, lines#24, lw#8, nlab#8,
8087	acsc=+g\,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~,
8088	bel=^G, blink=\E[5m, bold=\E[2;7m, cbt=\E[Z,
8089	clear=\E[H\E[J, cnorm=\E[11;0|, cr=^M,
8090	csr=%i\E[%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8091	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
8092	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8093	cvvis=\E[11;1|, dch=\E[%p1%dP, dch1=\E[P$<1>, dim=\E[2m,
8094	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8095	enacs=\E(B\E)1, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
8096	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J,
8097	indn=\E[%p1%dE, invis=\E[8m,
8098	is1=\E?\E[3;3|\E[10;0|\E[21;1|\212\E[6;1|\E[1{\E[?99l,
8099	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8100	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8101	kFND=\EOX, kHLP=\EOM, kHOM=\ENM, kIC=\ENJ, kLFT=\ENK,
8102	kMOV=\ENC, kMSG=\EOL, kNXT=\ENH, kOPT=\EOR, kPRT=\EOZ,
8103	kPRV=\ENG, kRDO=\EOT, kRES=\EOQ, kRIT=\ENL, kRPL=\EOY,
8104	kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9, kbs=^H, kcan=\EOw,
8105	kcbt=\E[Z, kclo=\EOV, kclr=\E[J, kcmd=\EOu, kcpy=\ENd,
8106	kcrt=\EOn, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8107	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=\Eent,
8108	kext=\EOk, kf1=\EOc, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
8109	kf6=\EOh, kf7=\EOi, kf8=\EOj, kfnd=\EOx, khlp=\EOm,
8110	khome=\E[H, kich1=\ENj, kind=\E[S, kmov=\ENc, kmrk=\ENi,
8111	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
8112	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
8113	kres=\EOq, krfr=\ENa, kri=\E[T, krpl=\EOy, krst=\EOB,
8114	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, ll=\E#2,
8115	mc0=\E[?98l\E[0i, mc4=\E[?98l\E[?8i, mc5=\E[?98l\E[?4i,
8116	nel=\EE,
8117	pfkey=\E[%p1%d;%p2%l%d;3;0p   F%p1%d           %p2%s,
8118	pfloc=\E[%p1%d;%p2%l%d;2;0p   F%p1%d           %p2%s,
8119	pfx=\E[%p1%d;%p2%l%d;1;0p   F%p1%d           %p2%s,
8120	pln=\E[%p1%dp%p2%:-16s, rc=\E8,
8121	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
8122	rin=\E[%p1%dF, rmacs=^O, rmir=\E[4l,
8123	rmkx=\E[19;0|\E[21;1|\212, rmln=\E<, rmso=\E[m,
8124	rmul=\E[m,
8125	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,
8126	rs2=\E[5;0|, sc=\E7,
8127	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%;,
8128	sgr0=\E[m\017, smacs=^N, smir=\E[4h,
8129	smkx=\E[19;1|\E[21;4|\Eent, smln=\E?, smso=\E[7m,
8130	smul=\E[4m, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
8131
8132# 01-07-88
8133# printer must be set to EMUL ANSI to accept ESC codes
8134# <cuu1> stops at top margin
8135# <is1> sets cpi 10,lpi 6,form 66,left 1,right 132,top 1,bottom 66,font
8136#	and alt font ascii,wrap on,tabs cleared
8137# <is2> disables newline on LF,Emphasized off
8138# The <u0> capability sets form length
8139att5310|att5320|AT&T Model 53210 or 5320 matrix printer,
8140	xhpa, xvpa,
8141	bufsz#8192, cols#132, cps#120, it#8, lines#66, orc#10,
8142	orhi#100, orl#12, orvi#72,
8143	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%;,
8144	cr=^M,
8145	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%;,
8146	cud=\E[%p1%de, cud1=^J, cuf=\E[%p1%da, cuf1=\s, cuu1=\EM,
8147	ff=^L, hpa=\E[%p1%d`, ht=^I, is1=\Ec, is2=\E[20l\r,
8148	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%;,
8149	rshm=\E[m,
8150	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(}%;,
8151	smgbp=\E[;%p1%dr, smglp=\E[%{1}%p1%+%ds,
8152	smgrp=\E[;%{1}%p1%+%ds, smgtp=\E[%p1%dr, sshm=\E[5m,
8153	u0=\E[%p1%dt, vpa=\E[%p1%dd,
8154
8155# Teletype 5620, firmware version 1.1 (8;7;3) or earlier from BRL
8156# The following SET-UP modes are assumed for normal operation:
8157#	CR_DEF=CR	NL_DEF=INDEX	DUPLEX=FULL
8158# Other SET-UP modes may be set for operator convenience or communication
8159# requirements.  This termcap description is for the Resident Terminal Mode.
8160# No delays specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8161# The BRL entry also said: UNSAFE :ll=\E[70H:
8162att5620-1|tty5620-1|dmd1|Teletype 5620 with old ROMs,
8163	am, xon,
8164	cols#88, it#8, lines#70, vt#3,
8165	bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
8166	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
8167	dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
8168	home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
8169	il1=\E[L, ind=^J, indn=\E[%p1%dS, kbs=^H, kclr=\E[2J,
8170	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
8171	kll=\E[70;1H, nel=^M^J, rc=\E8, ri=\E[T, rin=\E[%p1%dT,
8172	rs1=\Ec, sc=\E7,
8173
8174# 5620 terminfo  (2.0 or later ROMS with char attributes)
8175# The following SET-UP modes are assumed for normal operation:
8176#	DUPLEX=FULL	GEN_FLOW=ON	NEWLINE=INDEX	RETURN=CR
8177# Other SET-UP modes may be set for operator convenience or communication
8178# requirements.  This termcap description is for Resident Terminal Mode.  No
8179# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8180# assumptions: <ind> (scroll forward one line) is only done at screen bottom
8181# Be aware that older versions of the dmd have a firmware bug that affects
8182# parameter defaulting; for this terminal, the 0 in \E[0m is not optional.
8183# <msgr> is from an otherwise inferior BRL for this terminal.  That entry
8184# also has <ll>=\E[70H commented out and marked unsafe.
8185# For more, see the 5620 FAQ maintained by David Breneman <daveb@dgtl.com>.
8186att5620|dmd|tty5620|ttydmd|5620|5620 terminal 88 columns,
8187	OTbs, am, msgr, npc, xon,
8188	cols#88, it#8, lines#70,
8189	bel=^G, bold=\E[2m, clear=\E[H\E[J, cr=^M, cub1=^H,
8190	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
8191	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
8192	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich=\E[%p1%d@,
8193	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
8194	indn=\E[%p1%dS, kbs=^H, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
8195	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, kll=\E[70;1H, nel=^J,
8196	pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8, rev=\E[7m, ri=\E[T,
8197	rin=\E[%p1%dT, rmso=\E[0m, rmul=\E[0m, rs1=\Ec, sc=\E7,
8198	sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
8199att5620-24|tty5620-24|dmd-24|teletype dmd 5620 in a 24x80 layer,
8200	lines#24, use=att5620,
8201att5620-34|tty5620-34|dmd-34|teletype dmd 5620 in a 34x80 layer,
8202	lines#34, use=att5620,
8203# 5620 layer running the "S" system's downloaded graphics handler:
8204att5620-s|tty5620-s|layer|vitty|5620 S layer,
8205	OTbs, OTpt, am,
8206	cols#80, it#8, lines#72,
8207	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
8208	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=^K, dl1=\ED,
8209	el=\EK, flash=\E^G, ht=^I, il1=\EI, ind=^J, kbs=^H, kclr=\E[2J,
8210	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
8211	kll=\E[70;1H,
8212
8213# Entries for <kf15> thru <kf28> refer to the shifted system pf keys.
8214#
8215# Entries for <kf29> thru <kf46> refer to the alternate keypad mode
8216# keys:  = * / + 7 8 9 - 4 5 6 , 1 2 3 0 . ENTER
8217att605|AT&T 605 80 column 102key keyboard,
8218	am, eo, xon,
8219	cols#80, lines#24, lw#8, nlab#8, wsl#80,
8220	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8221	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
8222	cr=^M, cub1=^H, cud1=\E[B, cuf1=\E[C,
8223	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
8224	dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
8225	el=\E[K, el1=\E[1K, fsl=\E8, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
8226	il1=\E[L, ind=^J, invis=\E[8m,
8227	is1=\E[8;0|\E[?\E[13;20l\E[?\E[12h, is2=\E[m\017,
8228	kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z, kclr=\E[2J,
8229	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
8230	kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp, kf11=\ENq,
8231	kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD,
8232	kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH,
8233	kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ,
8234	kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe,
8235	kf30=\EOQ, kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx,
8236	kf35=\EOy, kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv,
8237	kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs,
8238	kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh,
8239	kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H, kich1=\E[@,
8240	kil1=\E[L, kind=\E[S, knp=\E[U, kpp=\E[V, ll=\E[24H,
8241	mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8242	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8243	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8244	rmacs=^O, rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
8245	rs2=\Ec\E[?3l, sc=\E7, sgr0=\E[m\017, smacs=\E)0\016,
8246	smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
8247	tsl=\E7\E[25;%i%p1%dx,
8248att605-pc|ATT 605 in pc term mode,
8249	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
8250	cbt=\E[Z, cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
8251	dch1=\E[P, dl1=\E[M, ich1=\E[@, il1=\E[L, kcbt=\E[Z,
8252	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P,
8253	kdl1=\E[M, kend=\E[F, kf1=\E[M, kf10=\E[V, kf2=\E[N,
8254	kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T,
8255	kf9=\E[U, khome=\E[H, kich1=\E[@, knp=\E[G, kpp=\E[I,
8256	rmsc=400\E[50;0|, smsc=250\E[?11l\E[50;1|, xoffc=g,
8257	xonc=e, use=att605,
8258att605-w|AT&T 605-w 132 column 102 key keyboard,
8259	cols#132, wsl#132,
8260	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h\E(B\E)0,
8261	use=att605,
8262# (att610: I added <rmam>/<smam> based on the init string.  I also
8263# added <indn> and <rin> because the BSD file says the att615s have them,
8264# and the 615 is like a 610 with a big keyboard, and most of their other
8265# smart terminals support the same sequence -- esr)
8266att610|AT&T 610; 80 column; 98key keyboard,
8267	am, eslok, hs, mir, msgr, xenl, xon,
8268	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8269	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8270	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8271	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8272	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8273	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8274	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8275	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8276	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8277	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
8278	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
8279	indn=\E[%p1%dS, invis=\E[8m,
8280	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)0,
8281	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
8282	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8283	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8284	kf13=\ENs, kf14=\ENt, kf2=\EOd, kf3=\EOe, kf4=\EOf, kf5=\EOg,
8285	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8286	kind=\E[S, kri=\E[T, ll=\E[24H, mc4=\E[?4i, mc5=\E[?5i,
8287	nel=\EE,
8288	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8289	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8290	ri=\EM, rin=\E[%p1%dT, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
8291	rmln=\E[2p, rmso=\E[m, rmul=\E[m, rs2=\Ec\E[?3l, sc=\E7,
8292	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%;,
8293	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
8294	smln=\E[p, smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
8295att610-w|AT&T 610; 132 column; 98key keyboard,
8296	cols#132, wsl#132,
8297	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8298	use=att610,
8299
8300att610-103k|AT&T 610; 80 column; 103key keyboard,
8301	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8302	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8303	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
8304	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
8305	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
8306	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
8307	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
8308	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf9@, kfnd=\EOx,
8309	khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi, kmsg=\EOl,
8310	knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr, kpp=\E[V,
8311	kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb, kres=\EOq,
8312	krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB, ksav=\EOo,
8313	kslt=\ENI, kspd=\EOp, kund=\EOs, use=att610,
8314att610-103k-w|AT&T 610; 132 column; 103key keyboard,
8315	cols#132, wsl#132,
8316	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8317	use=att610-103k,
8318att615|AT&T 615; 80 column; 98key keyboard,
8319	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8320	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
8321	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
8322	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
8323	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
8324	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8325	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610,
8326att615-w|AT&T 615; 132 column; 98key keyboard,
8327	kLFT=\E[ A, kRIT=\E[ @, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8328	kf18=\EOF, kf19=\EOG, kf20=\EOH, kf21=\EOI, kf22=\EOJ,
8329	kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR, kf27=\ENS,
8330	kf28=\ENT, kf29=\EOP, kf30=\EOQ, kf31=\EOR, kf32=\EOS,
8331	kf33=\EOw, kf34=\EOx, kf35=\EOy, kf36=\EOm, kf37=\EOt,
8332	kf38=\EOu, kf39=\EOv, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8333	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, use=att610-w,
8334att615-103k|AT&T 615; 80 column; 103key keyboard,
8335	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k,
8336att615-103k-w|AT&T 615; 132 column; 103key keyboard,
8337	kLFT=\E[ A, kRIT=\E[ @, use=att610-103k-w,
8338# (att620: I added <rmam>/<smam> based on the init string and
8339# <rin>/<indn> from a BSD termcap -- esr)
8340att620|AT&T 620; 80 column; 98key keyboard,
8341	am, eslok, hs, mir, msgr, xenl, xon,
8342	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8343	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8344	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8345	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8346	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8347	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8348	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8349	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8350	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8351	flash=\E[?5h$<200>\E[?5l, fsl=\E8, home=\E[H, ht=^I,
8352	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
8353	indn=\E[%p1%dS, invis=\E[8m,
8354	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h,
8355	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H,
8356	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8357	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8358	kf13=\ENs, kf14=\ENt, kf15=\EOC, kf16=\EOD, kf17=\EOE,
8359	kf18=\EOF, kf19=\EOG, kf2=\EOd, kf20=\EOH, kf21=\EOI,
8360	kf22=\EOJ, kf23=\ENO, kf24=\ENP, kf25=\ENQ, kf26=\ENR,
8361	kf27=\ENS, kf28=\ENT, kf29=\EOP, kf3=\EOe, kf30=\EOQ,
8362	kf31=\EOR, kf32=\EOS, kf33=\EOw, kf34=\EOx, kf35=\EOy,
8363	kf36=\EOm, kf37=\EOt, kf38=\EOu, kf39=\EOv, kf4=\EOf,
8364	kf40=\EOl, kf41=\EOq, kf42=\EOr, kf43=\EOs, kf44=\EOp,
8365	kf45=\EOn, kf46=\EOM, kf5=\EOg, kf6=\EOh, kf7=\EOi, kf8=\EOj,
8366	kf9=\ENo, khome=\E[H, kind=\E[S, kri=\E[T, ll=\E[24H,
8367	mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8368	pfx=\E[%p1%d;%p2%l%02dq   F%p1%1d           %p2%s,
8369	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8, rev=\E[7m,
8370	ri=\EM, rin=\E[%p1%dT, rmacs=\E(B\017, rmam=\E[?7l,
8371	rmir=\E[4l, rmln=\E[2p, rmso=\E[m, rmul=\E[m,
8372	rs2=\Ec\E[?3l, sc=\E7,
8373	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%;,
8374	sgr0=\E[m\E(B\017, smacs=\E)0\016, smam=\E[?7h,
8375	smir=\E[4h, smln=\E[p, smso=\E[7m, smul=\E[4m,
8376	tsl=\E7\E[25;%i%p1%dx,
8377att620-w|AT&T 620; 132 column; 98key keyboard,
8378	cols#132, wsl#132,
8379	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8380	use=att620,
8381att620-103k|AT&T 620; 80 column; 103key keyboard,
8382	kBEG=\ENB, kCAN=\EOW, kCMD=\EOU, kCPY=\END, kCRT=\EON,
8383	kDC=\ENF, kDL=\ENE, kEND=\ENN, kEOL=\EOA, kEXT=\EOK,
8384	kFND=\EOX, kHLP=\EOM, kMOV=\ENC, kMSG=\EOL, kNXT=\ENH,
8385	kOPT=\EOR, kPRT=\EOZ, kPRV=\ENG, kRDO=\EOT, kRES=\EOQ,
8386	kRPL=\EOY, kSAV=\EOO, kSPD=\EOP, kUND=\EOS, kbeg=\E9,
8387	kcan=\EOw, kclo=\EOV, kcmd=\EOu, kcpy=\ENd, kcrt=\EOn,
8388	kdch1=\ENf, kdl1=\ENe, kel=\EOa, kend=\E0, kent=^M,
8389	kext=\EOk, kf10@, kf11@, kf12@, kf13@, kf14@, kf15@, kf16@, kf17@,
8390	kf18@, kf19@, kf20@, kf21@, kf22@, kf23@, kf24@, kf25@, kf26@, kf27@,
8391	kf28@, kf29@, kf30@, kf31@, kf32@, kf33@, kf34@, kf35@, kf36@, kf37@,
8392	kf38@, kf39@, kf40@, kf41@, kf42@, kf43@, kf44@, kf45@, kf46@, kf9@,
8393	kfnd=\EOx, khlp=\EOm, kich1=\ENj, kmov=\ENc, kmrk=\ENi,
8394	kmsg=\EOl, knp=\E[U, knxt=\ENh, kopn=\EOv, kopt=\EOr,
8395	kpp=\E[V, kprt=\EOz, kprv=\ENg, krdo=\EOt, kref=\EOb,
8396	kres=\EOq, krfr=\ENa, krmir=\ENj, krpl=\EOy, krst=\EOB,
8397	ksav=\EOo, kslt=\ENI, kspd=\EOp, kund=\EOs, use=att620,
8398
8399att620-103k-w|AT&T 620; 132 column; 103key keyboard,
8400	cols#132, wsl#132,
8401	is1=\E[8;0|\E[?4;5;13;15l\E[13;20l\E[?3;7h\E[12h,
8402	use=att620-103k,
8403
8404# AT&T (formerly Teletype) 630 Multi-Tasking Graphics terminal
8405# The following SETUP modes are assumed for normal operation:
8406#	Local_Echo=Off	Gen_Flow=On	Return=CR	Received_Newline=LF
8407#	Font_Size=Large		Non-Layers_Window_Cols=80
8408#				Non-Layers_Window_Rows=60
8409# Other SETUP modes may be set for operator convenience or communication
8410# requirements.  Some capabilities assume a printer attached to the Aux EIA
8411# port.  This termcap description is for the Fixed Non-Layers Window.  No
8412# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
8413# (att630: added <ich1>, <blink> and <dim> from a BSD termcap file -- esr)
8414att630|AT&T 630 windowing terminal,
8415	OTbs, am, da, db, mir, msgr, npc, xon,
8416	cols#80, it#8, lines#60, lm#0,
8417	bel=^G, blink=\E[5m, cbt=\E[Z, clear=\E[H\E[J, cr=^M,
8418	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
8419	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
8420	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
8421	dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
8422	el1=\E[1K, home=\E[H, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
8423	il=\E[%p1%dL, il1=\E[L, ind=\ED, indn=\E[%p1%dS, is2=\E[m,
8424	kbs=^H, kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
8425	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kent=^M,
8426	kf10=\ENp, kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt,
8427	kf15=\ENu, kf16=\ENv, kf17=\ENw, kf18=\ENx, kf19=\ENy,
8428	kf20=\ENz, kf21=\EN{, kf22=\EN|, kf23=\EN}, kf24=\EN~,
8429	kf9=\ENo, khome=\E[H, kich1=\E[@, kil1=\E[L, mc4=\E[?4i,
8430	mc5=\E[?5i, nel=^M^J, pfx=\E[%p1%d;%p2%l%dq%p2%s, rc=\E8,
8431	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmir=\E[4l, rmso=\E[m,
8432	rmul=\E[m, rs2=\Ec, sc=\E7,
8433	sgr=\E[0%?%p2%t;4%;%?%p1%p3%|%p4%|%p5%|%t;7%;m,
8434	sgr0=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
8435att630-24|5630-24|5630DMD-24|630MTG-24|AT&T 630 windowing terminal 24 lines,
8436	lines#24, use=att630,
8437
8438# This is the att700 entry for 700 native emulation of the AT&T 700
8439# terminal.  Comments are relative to changes from the 605V2 entry and
8440# att730 on which the entry is based.  Comments show the terminfo
8441# capability name, termcap name, and description.
8442#
8443# Here is what's going onm in the init string:
8444#	ESC [ 50;4|	set 700 native mode (really is 605)
8445# x	ESC [ 56;ps| 	set lines to 24: ps=0; 40: ps=1 (plus status line)
8446#	ESC [ 53;0|	set GenFlow to Xon/Xoff
8447#	ESC [ 8 ;0|	set CR on NL
8448# x	ESC [ ? 3 l/h	set workspace: 80 col(l); 132 col(h)
8449#	ESC [ ? 4 l	jump scroll
8450#	ESC [ ? 5 l/h	video: normal (l); reverse (h)
8451#	ESC [ ?13 l	Labels on
8452#	ESC [ ?15 l	parity check = no
8453#	ESC [ 13 l	monitor mode off
8454#	ESC [ 20 l	LF on NL (not CRLF on NL)
8455#	ESC [ ? 7 h	autowrap on
8456#	ESC [ 12 h	local echo off
8457#	ESC ( B		GO = ASCII
8458#	ESC ) 0		G1 = Special Char & Line Drawing
8459#	ESC [ ? 31 l	Set 7 bit controls
8460#
8461# Note: Most terminals, especially the 600 family use Reverse Video for
8462# standout mode.  DEC also uses reverse video.  The VT100 uses bold in addition
8463# Assume we should stay with reverse video for 70..  However, the 605V2 exits
8464# standout mode with \E[m (all normal attributes).  The 730 entry simply
8465# exits reverse video which would leave other current attributes intact.  It
8466# was assumed the 730 entry to be more correct so rmso has changed.  The
8467# 605V2 has no sequences to turn individual attributes off, thus its setting
8468# and the rmso/smso settings from the 730.
8469#
8470# Note: For the same reason as above in rmso I changed exit under-score mode
8471# to specifically turn off underscore, rather than return to all normal
8472# attributes
8473#
8474# Note: The following pkey_xmit is taken from the 605V2 which contained the
8475# capability as pfxl.  It was changed here to pfx since pfxl
8476# will only compile successfully with Unix 4.0 tic.  Also note that pfx only
8477# allows strings to be parameters and label values must be programmed as
8478# constant strings.  Supposedly the pfxl of Version 4.0 allows both labels
8479# and strings to be parameters.  The 605V2 pfx entry should be examined later
8480# in this regard. For reference the 730 pfxl entry is shown here for comparison
8481# 730 pfx entry:
8482#     pfxl=\E[%?%p1%{25}%<%t%p1%e%p1%{24}%-%;%d;%p2%l%02d%?%p1%{25}%<%tq\s\s\s
8483# SYS\s\s\s\s\sF%p1%:-2d\s\s%e;0;3q%;%p2%s,
8484#
8485# (for 4.0 tic)
8486#     pfxl=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8487#
8488# (for <4.0 tic)
8489#     pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8490#
8491# From the AT&T 705 Multi-tasking terminal user's guide Page 8-8,8-9
8492#
8493# Port1 Interface
8494#
8495# modular 10 pin Connector
8496# Left side       Right side
8497# Pin 1 2 3 4 5 6 7 8 9 10
8498#
8499#        Key (notch) at bottom
8500#
8501# Pin    1 DSR
8502#        3 DCD
8503#        4 DTR
8504#        5 Sig Ground
8505#        6 RD
8506#        7 SD
8507#        8 CTS
8508#        9 RTS
8509#        10 Frame Ground
8510#
8511# The manual is 189 pages and is loaded with details about the escape codes,
8512# etc..... Available from AT&T CIC 800-432-6600...
8513# ask for Document number 999-300-660..
8514#
8515att700|AT&T 700 24x80 column display w/102key keyboard,
8516	am, eslok, hs, mir, msgr, xenl, xon,
8517	cols#80, it#8, lh#2, lines#24, lw#8, nlab#8, wsl#80,
8518	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8519	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8520	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8521	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8522	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8523	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8524	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8525	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8526	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fln=4\,4,
8527	fsl=\E8, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
8528	il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m,
8529	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,
8530	is3=\E(B\E)0, kLFT=\E[ A, kRIT=\E[ @, kbs=^H, kcbt=\E[Z,
8531	kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
8532	kdch1=\E[P, kdl1=\E[M, kend=\E[24;1H, kf1=\EOc, kf10=\ENp,
8533	kf11=\ENq, kf12=\ENr, kf13=\ENs, kf14=\ENt, kf15=\EOC,
8534	kf16=\EOD, kf17=\EOE, kf18=\EOF, kf19=\EOG, kf2=\EOd,
8535	kf20=\EOH, kf21=\EOI, kf22=\EOJ, kf23=\ENO, kf24=\ENP,
8536	kf25=\ENQ, kf26=\ENR, kf27=\ENS, kf28=\ENT, kf29=\EOq,
8537	kf3=\EOe, kf30=\EOr, kf31=\EOs, kf32=\EOt, kf33=\EOu,
8538	kf34=\EOv, kf35=\EOw, kf36=\EOx, kf37=\EOy, kf38=\EOu,
8539	kf39=\EOv, kf4=\EOf, kf40=\EOl, kf41=\EOq, kf42=\EOr,
8540	kf43=\EOs, kf44=\EOp, kf45=\EOn, kf46=\EOM, kf5=\EOg,
8541	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8542	kich1=\E[@, kil1=\E[L, knp=\E[U, kpp=\E[V, ll=\E[24H,
8543	mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8544	pfx=\E[%p1%d;%p2%l%02dq%?%p1%{9}%<%t   F%p1%1d           %;%p2%s,
8545	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
8546	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
8547	rmir=\E[4l, rmln=\E[2p, rmso=\E[27m, rmul=\E[24m,
8548	rmxon=\E[53;3|, rs1=\Ec\E[?3;5l\E[56;0|, sc=\E7,
8549	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%;,
8550	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smln=\E[p, smso=\E[7m,
8551	smul=\E[4m, smxon=\E[53;0|, tbc=\E[3g,
8552	tsl=\E7\E[99;%i%p1%dx,
8553
8554# This entry was modified 3/13/90 by JWE.
8555# fixes include additions of <enacs>, correcting <rep>, and modification
8556# of <kHOM>.  (See comments below)
8557# att730 has status line of 80 chars
8558# These were commented out: <indn=\E[%p1%dS>, <rin=\E[%p1%dT>,
8559# the <kf25> and up keys are used for shifted system Fkeys
8560# NOTE: JWE 3/13/90 The 98 key keyboard translation for shift/HOME is
8561# currently the same as <khome> (unshifted HOME or \E[H).  On the 102, 102+1
8562# and 122 key keyboards, the 730's translation is \E[2J.  For consistency
8563# <kHOM> has been commented out.  The user can uncomment <kHOM> if using the
8564# 102, 102+1, or 122 key keyboards
8565#       kHOM=\E[2J,
8566# (att730: I added <rmam>/<smam> based on the init string -- esr)
8567att730|AT&T 730 windowing terminal,
8568	am, da, db, eslok, hs, mir, msgr, npc, xenl, xon,
8569	cols#80, it#8, lh#2, lines#60, lm#0, lw#8, nlab#24, wsl#80,
8570	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8571	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
8572	clear=\E[H\E[J, cnorm=\E[?25h\E[?12l, cr=^M,
8573	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
8574	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8575	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8576	cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
8577	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
8578	enacs=\E(B\E)0, flash=\E[?5h$<200>\E[?5l, fsl=\E8,
8579	home=\E[H, ht=^I, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
8580	ind=\ED, invis=\E[8m,
8581	is1=\E[8;0|\E[?3;4;5;13;15l\E[13;20l\E[?7h\E[12h\E(B\E)B,
8582	is2=\E[m\017, is3=\E(B\E)0, kLFT=\E[ @, kRIT=\E[ A, kbs=^H,
8583	kcbt=\E[Z, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8584	kcuu1=\E[A, kf1=\EOc, kf10=\ENp, kf11=\ENq, kf12=\ENr,
8585	kf13=\ENs, kf14=\ENt, kf15=\ENu, kf16=\ENv, kf17=\ENw,
8586	kf18=\ENx, kf19=\ENy, kf2=\EOd, kf20=\ENz, kf21=\EN{,
8587	kf22=\EN|, kf23=\EN}, kf24=\EN~, kf25=\EOC, kf26=\EOD,
8588	kf27=\EOE, kf28=\EOF, kf29=\EOG, kf3=\EOe, kf30=\EOH,
8589	kf31=\EOI, kf32=\EOJ, kf33=\ENO, kf34=\ENP, kf35=\ENQ,
8590	kf36=\ENR, kf37=\ENS, kf38=\ENT, kf39=\EOU, kf4=\EOf,
8591	kf40=\EOV, kf41=\EOW, kf42=\EOX, kf43=\EOY, kf44=\EOZ,
8592	kf45=\EO[, kf46=\EO\s, kf47=\EO], kf48=\EO\^, kf5=\EOg,
8593	kf6=\EOh, kf7=\EOi, kf8=\EOj, kf9=\ENo, khome=\E[H,
8594	kich1=\E[@, kil1=\E[L, kind=\E[S, kri=\E[T,
8595	mc0=\E[?19h\E[0i, mc4=\E[?4i, mc5=\E[?5i, nel=\EE,
8596	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,
8597	pfxl=\E[%p1%d;%p2%l%02d;0;0q%p3%:-16.16s%p2%s,
8598	pln=\E[%p1%d;0;0;0q%p2%:-16.16s, rc=\E8,
8599	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM, rmacs=^O,
8600	rmam=\E[?7l, rmir=\E[4l, rmln=\E[?13h, rmso=\E[27m,
8601	rmul=\E[24m, rmxon=\E[?21l, rs2=\Ec\E[?3l, sc=\E7,
8602	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%;,
8603	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
8604	smln=\E[?13l, smso=\E[7m, smul=\E[4m, smxon=\E[?21h,
8605	swidm=\E#6, tsl=\E7\E[;%i%p1%dx,
8606att730-41|730MTG-41|AT&T 730-41 windowing terminal Version,
8607	lines#41, use=att730,
8608att730-24|730MTG-24|AT&T 730-24 windowing terminal Version,
8609	lines#24, use=att730,
8610att730r|730MTGr|AT&T 730 rev video windowing terminal Version,
8611	flash=\E[?5l$<200>\E[?5h,
8612	is1=\E[8;0|\E[?3;4;13;15l\E[?5h\E[13;20l\E[?7h\E[12h\E(B\E)B,
8613	use=att730,
8614att730r-41|730MTG-41r|AT&T 730r-41 rev video windowing terminal Version,
8615	lines#41, use=att730r,
8616att730r-24|730MTGr-24|AT&T 730r-24 rev video windowing terminal Version,
8617	lines#24, use=att730r,
8618
8619# The following represents the screen layout along with the associated
8620# bezel buttons for the 5430/pt505 terminal. The "kf" designations do
8621# not appear on the screen but are shown to reference the bezel buttons.
8622# The "CMD", "MAIL", and "REDRAW" buttons are shown in their approximate
8623# position relative to the screen.
8624#
8625#
8626#
8627#      +----------------------------------------------------------------+
8628#      |                                                                |
8629# XXXX | kf0                                                       kf24 | XXXX
8630#      |                                                                |
8631#      |                                                                |
8632# XXXX | kf1                                                       kf23 | XXXX
8633#      |                                                                |
8634#      |                                                                |
8635# XXXX | kf2                                                       kf22 | XXXX
8636#      |                                                                |
8637#      |                                                                |
8638# XXXX | kf3                                                       kf21 | XXXX
8639#      |                                                                |
8640#      |                                                                |
8641# XXXX | kf4                                                       kf20 | XXXX
8642#      |                                                                |
8643#      |                                                                |
8644# XXXX | kf5                                                       kf19 | XXXX
8645#      |                                                                |
8646#      |                                                                |
8647# XXXX | kf6                                                       kf18 | XXXX
8648#      |                                                                |
8649#      |                                                                |
8650# XXXX |                                                                | XXXX
8651#      |                                                                |
8652#      |                                                                |
8653#      +----------------------------------------------------------------+
8654#
8655#          XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX  XXXX
8656#
8657# Note: XXXX represents the screen buttons
8658#                                                          CMD   REDRAW
8659#
8660#                                                          MAIL
8661#
8662# version 1 note:
8663#	The character string sent by key 'kf26' may be user programmable
8664#       to send either \E[16s, or \E[26s.
8665#       The character string sent by key 'krfr' may be user programmable
8666#       to send either \E[17s, or \E[27s.
8667#
8668# Depression of the "CMD" key sends    \E!    (kcmd)
8669# Depression of the "MAIL" key sends   \E[26s (kf26)
8670# "REDRAW" same as "REFRESH" (krfr)
8671#
8672# "kf" functions adds carriage return to output string if terminal is in
8673# 'new line' mode.
8674#
8675# The following are functions not covered in the table above:
8676#
8677#       Set keyboard character (SKC): \EPn1;Pn2w
8678#                       Pn1= 0 Back Space key
8679#                       Pn1= 1 Break key
8680#                       Pn2=   Program char (hex)
8681#
8682#       Screen Definition (SDF): \E[Pn1;Pn2;Pn3;Pn4;Pn5t
8683#                       Pn1=     Window number (1-39)
8684#                       Pn2-Pn5= Y;X;Y;X coordinates
8685#
8686#       Screen Selection (SSL): \E[Pnu
8687#                       Pn= Window number
8688#
8689#       Set Terminal Modes (SM): \E[Pnh
8690#                       Pn= 3 Graphics mode
8691#                       Pn= > Cursor blink
8692#                       Pn= < Enter new line mode
8693#                       Pn= = Enter reverse insert/replace mode
8694#                       Pn= ? Enter no scroll mode
8695#
8696#       Reset Terminal Mode (RM): \E[Pnl
8697#                       Pn= 3 Exit graphics mode
8698#                       Pn= > Exit cursor blink
8699#                       Pn= < Exit new line mode
8700#                       Pn= = Exit reverse insert/replace mode
8701#                       Pn= ? Exit no scroll mode
8702#
8703#       Screen Status Report (SSR): \E[Pnp
8704#                       Pn= 0 Request current window number
8705#                       Pn= 1 Request current window dimensions
8706#
8707#       Device Status Report (DSR): \E[6n    Request cursor position
8708#
8709#       Call Status Report (CSR): \E[Pnv
8710#                       Pn= 0 Call failed
8711#                       Pn= 1 Call successful
8712#
8713#       Transparent Button String (TBS): \E[Pn1;Pn2;Pn3;{string
8714#                       Pn1= Button number to be loaded
8715#                       Pn2= Character count of "string"
8716#                       Pn3= Key mode being loaded:
8717#                               0= Unshifted
8718#                               1= Shifted
8719#                               2= Control
8720#                       String= Text string (15 chars max)
8721#
8722#       Screen Number Report (SNR): \E[Pnp
8723#                       Pn= Screen number
8724#
8725#       Screen Dimension Report (SDR): \E[Pn1;Pn2r
8726#                       Pn1= Number of rows available in window
8727#                       Pn2= Number of columns available in window
8728#
8729#       Cursor Position Report (CPR): \E[Pn1;Pn2R
8730#                       Pn1= "Y" Position of cursor
8731#                       Pn2= "X" Position of cursor
8732#
8733#       Request Answer Back (RAB): \E[c
8734#
8735#       Answer Back Response (ABR): \E[?;*;30;VSV
8736#                       *=  0 No printer available
8737#                       *=  2 Printer available
8738#                       V=  Software version number
8739#                       SV= Software sub version number
8740#	(printer-available field not documented in v1)
8741#
8742#       Screen Alignment Aid: \En
8743#
8744#       Bell (lower pitch): \E[x
8745#
8746#       Dial Phone Number: \EPdstring\
8747#                       string= Phone number to be dialed
8748#
8749#       Set Phone Labels: \EPpstring\
8750#                       string= Label for phone buttons
8751#
8752#       Set Clock: \EPchour;minute;second\
8753#
8754#       Position Clock: \EPsY;X\
8755#                       Y= "Y" coordinate
8756#                       X= "X" coordinate
8757#
8758#       Delete Clock: \Epr\
8759#
8760#       Programming The Function Buttons: \EPfPn;string\
8761#                       Pn= Button number (00-06, 18-24)
8762#                                         (kf00-kf06, kf18-kf24)
8763#                       string= Text to sent on button depression
8764#
8765# The following in version 2 only:
8766#
8767#       Request For Local Directory Data: \EPp12;\
8768#
8769#       Local Directory Data to host: \EPp11;LOCAL...DIRECTORY...DATA\
8770#
8771#	Request for Local Directory Data in print format: \EPp13;\
8772#
8773#	Enable 'Prt on Line' mode: \022 (DC2)
8774#
8775#	Disable 'Prt on Line' mode: \024 (DC4)
8776#
8777
8778# 05-Aug-86:
8779# The following Terminfo entry describes functions which are supported by
8780# the AT&T 5430/pt505 terminal software version 2 and later.
8781att505|pt505|att5430|gs5430|AT&T Personal Terminal 505 or 5430 GETSET terminal,
8782	am, xon,
8783	cols#80, it#8, lines#24,
8784	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
8785	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
8786	cnorm=\E[>l, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
8787	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
8788	cup=\E[%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
8789	cvvis=\E[>h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
8790	dl1=\E[M, ed=\E[0J, el=\E[0K, el1=\E[2K, home=\E[H, ht=^I,
8791	il=\E[%p1%dL, il1=\E[L, ind=^J,
8792	is1=\EPr\\E[0u\E[2J\E[0;0H\E[m\E[3l\E[<l\E[4l\E[>l\E[=l\E[?l,
8793	kbs=^H, kcmd=\E!, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
8794	kcuu1=\E[A, kf0=\E[00s, kf1=\E[01s, kf18=\E[18s,
8795	kf19=\E[19s, kf2=\E[02s, kf20=\E[20s, kf21=\E[21s,
8796	kf22=\E[22s, kf23=\E[23s, kf24=\E[24s, kf26=\E[26s,
8797	kf3=\E[03s, kf4=\E[04s, kf5=\E[05s, kf6=\E[06s,
8798	krfr=\E[27s, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m,
8799	rmacs=\E[10m, rmam=\E[11;1j, rmir=\E[4l, rmso=\E[m,
8800	rmul=\E[m, rs1=\Ec, sc=\E7, sgr0=\E[m, smacs=\E[11m,
8801	smam=\E[11;0j, smir=\E[4h, smso=\E[1m, smul=\E[4m,
8802
8803# The following Terminfo entry describes functions which are supported by
8804# the AT&T 5430/pt505 terminal software version 1.
8805att505-24|pt505-24|gs5430-24|AT&T PT505 or 5430 GETSET version 1 24 lines,
8806	lines#24,
8807	mc4@, mc5@, rc@, rmam@, sc@, smam@, use=att505,
8808tt505-22|pt505-22|gs5430-22|AT&T PT505 or 5430 GETSET version 1 22 lines,
8809	lines#22, use=att505,
8810#
8811#### ------------------ TERMINFO FILE CAN BE SPLIT HERE ---------------------
8812# This cut mark helps make life less painful for people running ncurses tic
8813# on machines with relatively little RAM.  The file can be broken in half here
8814# cleanly and compiled in sections -- no `use' references cross this cut
8815# going forward.
8816#
8817
8818#### Ampex (Dialogue)
8819#
8820# Yes, these are the same people who are better-known for making audio- and
8821# videotape.  I'm told they are located in Redwood City, CA.
8822#
8823
8824# From: <cbosg!ucbvax!SRC:george> Fri Sep 11 22:38:32 1981
8825# (ampex80: some capabilities merged in from SCO's entry -- esr)
8826ampex80|a80|d80|dialogue|dialogue80|ampex dialogue 80,
8827	OTbs, am, bw, ul,
8828	cols#80, it#8, lines#24,
8829	bel=^G, cbt=\EI, clear=\E*$<75>, cr=^M, cub1=^H, cud1=^J,
8830	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8831	dch1=\EW, dl1=\ER$<5*>, ed=\Ey, el=\Et, ht=^I, hts=\E1,
8832	ich1=\EQ, il1=\EE$<5*>, ind=^J, is2=\EA, rmso=\Ek, rmul=\Em,
8833	smso=\Ej, smul=\El, tbc=\E3,
8834# This entry was from somebody anonymous, Tue Aug  9 20:11:37 1983, who wrote:
8835ampex175|ampex d175,
8836	am,
8837	cols#80, lines#24,
8838	bel=^G, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
8839	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8840	dl1=\ER, ed=\Ey, el=\Et, home=^^, ich1=\EQ, il1=\EE, ind=^J,
8841	is2=\EX\EA\EF, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
8842	kdch1=\EW, kdl1=\ER, khome=^^, kich1=\EQ, kil1=\EE, ll=^^^K,
8843	rmcup=\EF, rmso=\Ek, rmul=\Em, smcup=\EN, smso=\Ej, smul=\El,
8844# No backspace key in the main QWERTY cluster. Fortunately, it has a
8845# NEWLINE/PAGE key just above RETURN that sends a strange single-character
8846# code.  Given a suitable Unix (one that lets you set an echo-erase-as-BS-SP-BS
8847# mode), this key can be used as the erase key; I find I like this. Because
8848# some people and some systems may not, there is another termcap ("ampex175")
8849# that suppresses this little eccentricity by omitting the relevant capability.
8850ampex175-b|ampex d175 using left arrow for erase,
8851	kbs=^_, use=ampex175,
8852# From: Richard Bascove <atd!dsd!rcb@ucbvax.berkeley.edu>
8853# (ampex210: removed obsolete ":kn#10:" -- esr)
8854ampex210|a210|ampex a210,
8855	OTbs, am, hs, xenl,
8856	cols#80, it#8, lines#24, xmc#1,
8857	cbt=\EI, clear=\E*, cub1=^H, cuf1=^L,
8858	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
8859	dl1=\ER, ed=\Ey, el=\Et, flash=\EU\EX\EU\EX\EU\EX\EU\EX,
8860	fsl=\E.2, home=^^, ht=^I, ich1=\EQ,
8861	if=/usr/share/tabset/std, il1=\EE, invis@,
8862	is2=\EC\Eu\E'\E(\El\EA\E%\E{\E.2\EG0\Ed\En, kcub1=^H,
8863	kcud1=^V, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A1\r,
8864	kf2=^A2\r, kf3=^A3\r, kf4=^A4\r, kf5=^A5\r, kf6=^A6\r,
8865	kf7=^A7\r, kf8=^A8\r, kf9=^A9\r, khome=^^,
8866	tsl=\E.0\Eg\E}\Ef, use=adm+sgr,
8867# (ampex219: I added <rmam>/<smam> based on the init string, added <cvvis>
8868# from ampex219w, added <cnorm>=\E[?3l, irresistibly suggested by <cvvis>,
8869# and moved the padding to be *after* the caps -- esr)
8870ampex219|ampex-219|amp219|Ampex with Automargins,
8871	hs, xenl,
8872	cols#80, it#8, lines#24,
8873	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, cbt=\E[Z,
8874	clear=\E[H\E[2J$<50>, cnorm=\E[?3l, cr=^M,
8875	csr=%i\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B,
8876	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
8877	cuu1=\E[A$<2>, cvvis=\E[?3h, dim=\E[1m, ed=\E[J$<50>,
8878	el=\E[K$<3>, home=\E[H, ht=^I, ind=^J,
8879	is2=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
8880	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[21~,
8881	kf1=\E[7~, kf2=\E[8~, kf3=\E[9~, kf4=\E[10~, kf5=\E[11~,
8882	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
8883	rev=\E[7m, ri=\EM$<5>, rmam=\E[?7l, rmkx=\E>,
8884	rmso=\E[m$<2>, rmul=\E[m$<2>, sgr0=\E[m$<2>, smam=\E[?7h,
8885	smkx=\E=, smso=\E[7m$<2>, smul=\E[4m$<2>,
8886ampex219w|ampex-219w|amp219w|Ampex 132 cols,
8887	cols#132, lines#24,
8888	bel=^G, cr=^M, cud1=^J, ind=^J,
8889	is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, use=ampex219,
8890# (ampex232: removed <if=/usr/share/tabset/ampex>, no file and no <hts> --esr)
8891ampex232|ampex-232|Ampex Model 232,
8892	am,
8893	cols#80, lines#24, xmc#1,
8894	cbt=\EI, civis=\E.0, clear=\E+, cnorm=\E.4, cub1=^H, cud1=^V,
8895	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
8896	dch1=\EW, dl1=\ER$<5*/>, ed=\EY, el=\ET,
8897	flash=\Eb$<200/>\Ed, ht=^I, ich1=\EQ, il1=\EE$<5*/>,
8898	invis@, is2=\Eg\El, kbs=^H, kcub1=^H, kcud1=^V, kcuf1=^L,
8899	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
8900	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
8901	kf9=^AI\r, khome=^^, use=adm+sgr,
8902# (ampex: removed <if=/usr/share/tabset/amp-132>, no file and no <hts> -- esr)
8903ampex232w|Ampex Model 232 / 132 columns,
8904	cols#132, lines#24,
8905	is2=\E\034Eg\El, use=ampex232,
8906
8907#### Ann Arbor (aa)
8908#
8909# Ann Arbor made dream terminals for hackers -- large screen sizes and huge
8910# numbers of function keys.  At least some used monitors in portrait mode,
8911# allowing up to 76-character screen heights!  They were reachable at:
8912#
8913#	Ann Arbor Terminals
8914#	6175 Jackson Road
8915#	Ann Arbor, MI 48103
8916#	(313)-663-8000
8917#
8918# But in 1996 the phone number reaches some kitschy retail shop, and Ann Arbor
8919# can't be found on the Web; I fear they're long dead.  R.I.P.
8920#
8921
8922
8923# Originally from Mike O'Brien@Rand and Howard Katseff at Bell Labs.
8924# Highly modified 6/22 by Mike O'Brien.
8925# split out into several for the various screen sizes by dave-yost@rand
8926# Modifications made 3/82 by Mark Horton
8927# Modified by Tom Quarles at UCB for greater efficiency and more diversity
8928# status line moved to top of screen, <flash> removed 5/82
8929# Some unknown person at SCO then hacked the init strings to make them more
8930# efficient.
8931#
8932# assumes the following setup:
8933#   A menu: 0000 1010  0001 0000
8934#   B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
8935#   C menu: 56   66   0    0    9600  0110 1100
8936#   D menu: 0110 1001   1   0
8937#
8938#	Briefly, the settings are for the following modes:
8939#	   (values are for bit set/clear with * indicating our preference
8940#	    and the value used to test these termcaps)
8941#	Note that many of these settings are irrelevent to the terminfo
8942#	and are just set to the default mode of the terminal as shipped
8943#	by the factory.
8944#
8945# A menu: 0000 1010  0001 0000
8946#	Block/underline cursor*
8947#	blinking/nonblinking cursor*
8948#	key click/no key click*
8949#	bell/no bell at column 72*
8950#
8951#	key pad is cursor control*/key pad is numeric
8952#	return and line feed/return for <cr> key *
8953#	repeat after .5 sec*/no repeat
8954#	repeat at 25/15 chars per sec. *
8955#
8956#	hold data until pause pressed/process data unless pause pressed*
8957#	slow scroll/no slow scroll*
8958#	Hold in area/don't hold in area*
8959#	functions keys have default*/function keys disabled on powerup
8960#
8961#	show/don't show position of cursor during page transmit*
8962#	unused
8963#	unused
8964#	unused
8965#
8966# B menu: 9600  0100 1000  0000 0000  1000 0000  17  19
8967#	Baud rate (9600*)
8968#
8969#	2 bits of parity - 00=odd,01=even*,10=space,11=mark
8970#	1 stop bit*/2 stop bits
8971#	parity error detection off*/on
8972#
8973#	keyboard local/on line*
8974#	half/full duplex*
8975#	disable/do not disable keyboard after data transmission*
8976#
8977#	transmit entire page/stop transmission at cursor*
8978#	transfer/do not transfer protected characters*
8979#	transmit all characters/transmit only selected characters*
8980#	transmit all selected areas/transmit only 1 selected area*
8981#
8982#	transmit/do not transmit line separators to host*
8983#	transmit/do not transmit page tab stops tabs to host*
8984#	transmit/do not transmit column tab stop tabs to host*
8985#	transmit/do not transmit graphics control (underline,inverse..)*
8986#
8987#	enable*/disable auto XON/XOFF control
8988#	require/do not require receipt of a DC1 from host after each LF*
8989#	pause key acts as a meta key/pause key is pause*
8990#	unused
8991#
8992#	unused
8993#	unused
8994#	unused
8995#	unused
8996#
8997#	XON character (17*)
8998#	XOFF character (19*)
8999#
9000# C menu: 56   66   0    0    9600  0110 1100
9001#	number of lines to print data on (printer) (56*)
9002#
9003#	number of lines on a sheet of paper (printer) (66*)
9004#
9005#	left margin (printer) (0*)
9006#
9007#	number of pad chars on new line to printer (0*)
9008#
9009#	printer baud rate (9600*)
9010#
9011#	printer parity: 00=odd,01=even*,10=space,11=mark
9012#	printer stop bits: 2*/1
9013#	print/do not print guarded areas*
9014#
9015#	new line is: 01=LF,10=CR,11=CRLF*
9016#	unused
9017#	unused
9018#
9019# D menu: 0110 1001   1   0
9020#	LF is newline/LF is down one line, same column*
9021#	wrap to preceding line if move left from col 1*/don't wrap
9022#	wrap to next line if move right from col 80*/don't wrap
9023#	backspace is/is not destructive*
9024#
9025#	display*/ignore DEL character
9026#	display will not/will scroll*
9027#	page/column tab stops*
9028#	erase everything*/erase unprotected only
9029#
9030#	editing extent: 0=display,1=line*,2=field,3=area
9031#
9032#	unused
9033#
9034
9035annarbor4080|aa4080|ann arbor 4080,
9036	OTbs, am,
9037	cols#80, lines#40,
9038	bel=^G, clear=\014$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=^_,
9039	cup=\017%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%>%t%{12}%+%;%{64}%+%c,
9040	cuu1=^N, home=^K, ht=^I, hts=^]^P1, ind=^J, kbs=^^, kcub1=^H,
9041	kcud1=^J, kcuf1=^_, kcuu1=^N, khome=^K, tbc=^\^P^P,
9042
9043# Strange Ann Arbor terminal from BRL
9044aas1901|Ann Arbor K4080 w/S1901 mod,
9045	am,
9046	cols#80, lines#40,
9047	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^N,
9048	home=^K, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, ll=^O\0c,
9049	nel=^M^J,
9050
9051# If you're using the GNU termcap library, add
9052#	:cS=\E[%p1%d;%p2%d;%p3%d;%p4%dp:
9053# to these capabilities.  This is the nonstandard GNU termcap scrolling
9054# capability, arguments are:
9055#   1. Total number of lines on the screen.
9056#   2. Number of lines above desired scroll region.
9057#   3. Number of lines below (outside of) desired scroll region.
9058#   4. Total number of lines on the screen, the same as the first parameter.
9059# The generic Ann Arbor entry is the only one that uses this.
9060aaa+unk|aaa-unk|ann arbor ambassador (internal - don't use this directly),
9061	OTbs, am, km, mc5i, mir, xon,
9062	cols#80, it#8,
9063	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
9064	clear=\E[H\E[J$<156>, cr=^M, cub=\E[%p1%dD, cub1=^H,
9065	cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
9066	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9067	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
9068	el=\E[K$<5>, home=\E[H, hpa=\E[%p1%{1}%+%dG, ht=^I,
9069	hts=\EH, ich=\E[%p1%d@$<4*>, ich1=\E[@$<4>, il=\E[%p1%dL,
9070	il1=\E[L$<3>, ind=^K, invis=\E[8m, is1=\E[m\E7\E[H\E9\E8,
9071	is3=\E[1Q\E[>20;30l\EP`+x~M\E\\, kbs=^H, kcbt=\E[Z,
9072	kclr=\E[J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9073	kdch1=\E[P, kdl1=\E[M, kf1=\EOA, kf10=\EOJ, kf11=\EOK,
9074	kf12=\EOL, kf13=\EOM, kf14=\EON, kf15=\EOO, kf16=\EOP,
9075	kf17=\EOQ, kf18=\EOR, kf19=\EOS, kf2=\EOB, kf20=\EOT,
9076	kf21=\EOU, kf22=\EOV, kf23=\EOW, kf24=\EOX, kf3=\EOC,
9077	kf4=\EOD, kf5=\EOE, kf6=\EOF, kf7=\EOG, kf8=\EOH, kf9=\EOI,
9078	khome=\E[H, kich1=\E[@, kil1=\E[L, krmir=\E6, mc0=\E[0i,
9079	mc4=^C, mc5=\E[v, mc5p=\E[%p1%dv, rc=\E8,
9080	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
9081	rmkx=\EP`>y~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\E\\,
9082	rmm=\E[>52l, rmso=\E[m, rmul=\E[m, sc=\E7,
9083	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
9084	sgr0=\E[m,
9085	smkx=\EP`>z~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\E\\,
9086	smm=\E[>52h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
9087	vpa=\E[%p1%{1}%+%dd,
9088
9089aaa+rv|ann arbor ambassador in reverse video,
9090	blink=\E[5;7m, bold=\E[1;7m, invis=\E[7;8m,
9091	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
9092	rs1=\E[H\E[7m\E[J$<156>,
9093	sgr=\E[%?%p1%p3%|%!%t7;%;%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
9094	sgr0=\E[7m\016, smso=\E[m, smul=\E[4;7m,
9095# Ambassador with the DEC option, for partial vt100 compatibility.
9096aaa+dec|ann arbor ambassador in dec vt100 mode,
9097	acsc=aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}},
9098	csr=\E[%i%p1%d;%p2%dr, enacs=\E(0, rmacs=^N,
9099	sgr=\E[%?%p1%p3%|%!%t7;%;%?%p2%t4;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m%?%p9%t\017%e\016%;,
9100	smacs=^O,
9101aaa-18|ann arbor ambassador/18 lines,
9102	lines#18,
9103	is2=\E7\E[60;0;0;18p\E8,
9104	rmcup=\E[60;0;0;18p\E[60;1H\E[K, smcup=\E[18;0;0;18p,
9105	use=aaa+unk,
9106aaa-18-rv|ann arbor ambassador/18 lines+reverse video,
9107	use=aaa+rv, use=aaa-18,
9108aaa-20|ann arbor ambassador/20 lines,
9109	lines#20,
9110	is2=\E7\E[60;0;0;20p\E8,
9111	rmcup=\E[60;0;0;20p\E[60;1H\E[K, smcup=\E[20;0;0;20p,
9112	use=aaa+unk,
9113aaa-22|ann arbor ambassador/22 lines,
9114	lines#22,
9115	is2=\E7\E[60;0;0;22p\E8,
9116	rmcup=\E[60;0;0;22p\E[60;1H\E[K, smcup=\E[22;0;0;22p,
9117	use=aaa+unk,
9118aaa-24|ann arbor ambassador/24 lines,
9119	lines#24,
9120	is2=\E7\E[60;0;0;24p\E8,
9121	rmcup=\E[60;0;0;24p\E[60;1H\E[K, smcup=\E[24;0;0;24p,
9122	use=aaa+unk,
9123aaa-24-rv|ann arbor ambassador/24 lines+reverse video,
9124	use=aaa+rv, use=aaa-24,
9125aaa-26|ann arbor ambassador/26 lines,
9126	lines#26,
9127	is2=\E7\E[60;0;0;26p\E8,
9128	rmcup=\E[60;0;0;26p\E[26;1H\E[K,
9129	smcup=\E[H\E[J$<156>\E[26;0;0;26p, use=aaa+unk,
9130aaa-28|ann arbor ambassador/28 lines,
9131	lines#28,
9132	is2=\E7\E[60;0;0;28p\E8,
9133	rmcup=\E[60;0;0;28p\E[28;1H\E[K,
9134	smcup=\E[H\E[J$<156>\E[28;0;0;28p, use=aaa+unk,
9135aaa-30-s|aaa-s|ann arbor ambassador/30 lines w/status,
9136	eslok, hs,
9137	lines#29,
9138	dsl=\E7\E[60;0;0;30p\E[1;1H\E[K\E[H\E8\r\n\E[K,
9139	fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;30p\E8,
9140	rmcup=\E[60;1;0;30p\E[29;1H\E[K,
9141	smcup=\E[H\E[J$<156>\E[30;1;0;30p\E[30;1H\E[K,
9142	tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
9143aaa-30-s-rv|aaa-s-rv|ann arbor ambassador/30 lines+status+reverse video,
9144	use=aaa+rv, use=aaa-30-s,
9145aaa-s-ctxt|aaa-30-s-ctxt|ann arbor ambassador/30 lines+status+save context,
9146	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
9147	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s,
9148aaa-s-rv-ctxt|aaa-30-s-rv-ct|ann arbor ambassador/30 lines+status+save context+reverse video,
9149	rmcup=\E[60;1;0;30p\E[59;1H\E[K,
9150	smcup=\E[30;1H\E[K\E[30;1;0;30p, use=aaa-30-s-rv,
9151aaa|aaa-30|ambas|ambassador|ann arbor ambassador/30 lines,
9152	lines#30,
9153	is2=\E7\E[60;0;0;30p\E8,
9154	rmcup=\E[60;0;0;30p\E[30;1H\E[K,
9155	smcup=\E[H\E[J$<156>\E[30;0;0;30p, use=aaa+unk,
9156aaa-30-rv|aaa-rv|ann arbor ambassador/30 lines in reverse video,
9157	use=aaa+rv, use=aaa-30,
9158aaa-30-ctxt|aaa-ctxt|ann arbor ambassador/30 lines; saving context,
9159	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
9160	use=aaa-30,
9161aaa-30-rv-ctxt|aaa-rv-ctxt|ann arbor ambassador/30 lines reverse video; saving context,
9162	rmcup=\E[60;0;0;30p\E[60;1H\E[K, smcup=\E[30;0;0;30p,
9163	use=aaa+rv, use=aaa-30,
9164aaa-36|ann arbor ambassador/36 lines,
9165	lines#36,
9166	is2=\E7\E[60;0;0;36p\E8,
9167	rmcup=\E[60;0;0;36p\E[36;1H\E[K,
9168	smcup=\E[H\E[J$<156>\E[36;0;0;36p, use=aaa+unk,
9169aaa-36-rv|ann arbor ambassador/36 lines+reverse video,
9170	use=aaa+rv, use=aaa-36,
9171aaa-40|ann arbor ambassador/40 lines,
9172	lines#40,
9173	is2=\E7\E[60;0;0;40p\E8,
9174	rmcup=\E[60;0;0;40p\E[40;1H\E[K,
9175	smcup=\E[H\E[J$<156>\E[40;0;0;40p, use=aaa+unk,
9176aaa-40-rv|ann arbor ambassador/40 lines+reverse video,
9177	use=aaa+rv, use=aaa-40,
9178aaa-48|ann arbor ambassador/48 lines,
9179	lines#48,
9180	is2=\E7\E[60;0;0;48p\E8,
9181	rmcup=\E[60;0;0;48p\E[48;1H\E[K,
9182	smcup=\E[H\E[J$<156>\E[48;0;0;48p, use=aaa+unk,
9183aaa-48-rv|ann arbor ambassador/48 lines+reverse video,
9184	use=aaa+rv, use=aaa-48,
9185aaa-60-s|ann arbor ambassador/59 lines+status,
9186	eslok, hs,
9187	lines#59,
9188	dsl=\E7\E[60;0;0;60p\E[1;1H\E[K\E[H\E8\r\n\E[K,
9189	fsl=\E[>51l, is2=\r\n\E[A\E7\E[60;1;0;60p\E8,
9190	tsl=\E[>51h\E[1;%p1%dH\E[2K, use=aaa+unk,
9191aaa-60-s-rv|ann arbor ambassador/59 lines+status+reverse video,
9192	use=aaa+rv, use=aaa-60-s,
9193aaa-60-dec-rv|ann arbor ambassador/dec mode+59 lines+status+rev video,
9194	use=aaa+dec, use=aaa+rv, use=aaa-60-s,
9195aaa-60|ann arbor ambassador/60 lines,
9196	lines#60,
9197	is2=\E7\E[60;0;0;60p\E[1Q\E[m\E[>20;30l\E8,
9198	use=aaa+unk,
9199aaa-60-rv|ann arbor ambassador/60 lines+reverse video,
9200	use=aaa+rv, use=aaa-60,
9201aaa-db|ann arbor ambassador 30/destructive backspace,
9202	OTbs@,
9203	cub1=\E[D, is3=\E[1Q\E[m\E[>20l\E[>30h, use=aaa-30,
9204
9205guru|guru-33|guru+unk|ann arbor guru/33 lines 80 cols,
9206	lines#33,
9207	flash=\E[>59h$<100>\E[>59l,
9208	is2=\E7\E[255;0;0;33;80;80p\E8\E[J, is3=\E[>59l,
9209	rmcup=\E[255p\E[255;1H\E[K, smcup=\E[33p, use=aaa+unk,
9210guru+rv|guru changes for reverse video,
9211	flash=\E[>59l$<100>\E[>59h, is3=\E[>59h,
9212guru-rv|guru-33-rv|ann arbor guru/33 lines+reverse video,
9213	use=guru+rv, use=guru-33,
9214guru+s|guru status line,
9215	eslok, hs,
9216	dsl=\E7\E[;0p\E[1;1H\E[K\E[H\E8\r\n\E[K, fsl=\E[>51l,
9217	rmcup=\E[255;1p\E[255;1H\E[K, smcup=,
9218	tsl=\E[>51h\E[1;%p1%dH\E[2K,
9219guru-nctxt|guru with no saved context,
9220	smcup=\E[H\E[J$<156>\E[33p\E[255;1H\E[K, use=guru,
9221guru-s|guru-33-s|ann arbor guru/33 lines+status,
9222	lines#32,
9223	is2=\r\n\E[A\E7\E[255;1;0;33;80;80p\E8\E[J,
9224	smcup=\E[33;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9225guru-24|ann arbor guru 24 lines,
9226	cols#80, lines#24,
9227	is2=\E7\E[255;0;0;24;80;80p\E8\E[J, smcup=\E[24p,
9228	use=guru+unk,
9229guru-44|ann arbor guru 44 lines,
9230	cols#97, lines#44,
9231	is2=\E7\E[255;0;0;44;97;100p\E8\E[J, smcup=\E[44p,
9232	use=guru+unk,
9233guru-44-s|ann arbor guru/44 lines+status,
9234	lines#43,
9235	is2=\r\n\E[A\E7\E[255;1;0;44;80;80p\E8\E[J,
9236	smcup=\E[44;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9237guru-76|guru with 76 lines by 89 cols,
9238	cols#89, lines#76,
9239	is2=\E7\E[255;0;0;76;89;100p\E8\E[J, smcup=\E[76p,
9240	use=guru+unk,
9241guru-76-s|ann arbor guru/76 lines+status,
9242	cols#89, lines#75,
9243	is2=\r\n\E[A\E7\E[255;1;0;76;89;100p\E8\E[J,
9244	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9245guru-76-lp|guru-lp|guru with page bigger than line printer,
9246	cols#134, lines#76,
9247	is2=\E7\E[255;0;0;76;134;134p\E8\E[J, smcup=\E[76p,
9248	use=guru+unk,
9249guru-76-w|guru 76 lines by 178 cols,
9250	cols#178, lines#76,
9251	is2=\E7\E[255;0;0;76;178;178p\E8\E[J, smcup=\E[76p,
9252	use=guru+unk,
9253guru-76-w-s|ann arbor guru/76 lines+status+wide,
9254	cols#178, lines#75,
9255	is2=\r\n\E[A\E7\E[255;1;0;76;178;178p\E8\E[J,
9256	smcup=\E[76;1p\E[255;1H\E[K, use=guru+s, use=guru+unk,
9257guru-76-wm|guru 76 lines by 178 cols with 255 cols memory,
9258	cols#178, lines#76,
9259	is2=\E7\E[255;0;0;76;178;255p\E8\E[J, smcup=\E[76p,
9260	use=guru+unk,
9261aaa-rv-unk|ann arbor unknown type,
9262	lh#0, lw#0, nlab#0,
9263	blink=\E[5;7m, bold=\E[1;7m, home=\E[H, invis=\E[7;8m,
9264	is1=\E[7m\E7\E[H\E9\E8, rev=\E[m, rmso=\E[7m, rmul=\E[7m,
9265	rs1=\E[H\E[7m\E[J,
9266	sgr=\E[%?%p1%!%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;%?%p7%t8;%;m,
9267	sgr0=\E[7m, smso=\E[m, smul=\E[4;7m,
9268
9269#### Applied Digital Data Systems (adds)
9270#
9271# ADDS itself is long gone.  ADDS was bought by NCR, and the same group made
9272# ADDS and NCR terminals.  When AT&T and NCR merged, the engineering for
9273# terminals was merged again.  Then AT&T sold the terminal business to
9274# SunRiver, which later changed its  name to Boundless Technologies.  The
9275# engineers from Teletype, AT&T terminals, ADDS, and NCR (who are still there
9276# as of early 1995) are at:
9277#
9278#	Boundless Technologies
9279#	100 Marcus Boulevard
9280#	Hauppauge, NY 11788-3762
9281#	Vox: (800)-231-5445
9282#	Fax: (516)-342-7378
9283#	Web: http://boundless.com
9284#
9285# Their voice mail used to describe the place as "SunRiver (formerly ADDS)".
9286# In 1995 Boundless acquired DEC's terminals business.
9287#
9288
9289# Regent: lowest common denominator, works on all regents.
9290# (regent: renamed ":bc:" to ":le:" -- esr)
9291regent|Adds Regent Series,
9292	OTbs, am,
9293	cols#80, lines#24,
9294	bel=^G, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F, cuu1=^Z,
9295	home=\EY\s\s, ind=^J, ll=^A,
9296# Regent 100 has a bug where if computer sends escape when user is holding
9297# down shift key it gets confused, so we avoid escape.
9298regent100|Adds Regent 100,
9299	xmc#1,
9300	bel=^G,
9301	cup=\013%p1%' '%+%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
9302	kf0=^B1\r, kf1=^B2\r, kf2=^B3\r, kf3=^B4\r, kf4=^B5\r,
9303	kf5=^B6\r, kf6=^B7\r, kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3,
9304	lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@,
9305	sgr0=\E0@, smso=\E0P, smul=\E0`, use=regent,
9306regent20|Adds Regent 20,
9307	bel=^G, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, ed=\Ek, el=\EK,
9308	use=regent,
9309regent25|Adds Regent 25,
9310	bel=^G, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z, khome=^A,
9311	use=regent20,
9312regent40|Adds Regent 40,
9313	xmc#1,
9314	bel=^G, dl1=\El$<2*>, il1=\EM$<2*>, kf0=^B1\r, kf1=^B2\r,
9315	kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
9316	kf7=^B8\r, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5, lf5=F6,
9317	lf6=F7, lf7=F8, rmso=\E0@, rmul=\E0@, sgr0=\E0@, smso=\E0P,
9318	smul=\E0`, use=regent25,
9319regent40+|Adds Regent 40+,
9320	is2=\EB, use=regent40,
9321regent60|regent200|Adds Regent 60,
9322	dch1=\EE, is2=\EV\EB, kdch1=\EE, kich1=\EF, krmir=\EF,
9323	rmir=\EF, rmso=\ER\E0@\EV, smir=\EF, smso=\ER\E0P\EV,
9324	use=regent40+,
9325# From: <edward@onyx.berkeley.edu> Thu Jul  9 09:27:33 1981
9326# (viewpoint: added <kcuf1>, function key, and <dl1> capabilities -- esr)
9327viewpoint|addsviewpoint|adds viewpoint,
9328	OTbs, am,
9329	cols#80, lines#24,
9330	bel=^G, clear=^L, cnorm=\017\E0`, cr=^M, cub1=^H, cud1=^J,
9331	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
9332	cvvis=\017\E0P, dl1=\El, ed=\Ek$<16.1*>, el=\EK$<16>,
9333	ind=^J, is2=\017\E0`, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
9334	kf0=^B1, kf2=^B2, kf3=^B!, kf4=^B", kf5=^B#, khome=^A, ll=^A,
9335	rmso=^O, rmul=^O, sgr0=^O, smso=^N, smul=^N,
9336# Some viewpoints have bad ROMs that foo up on ^O
9337screwpoint|adds viewpoint with ^O bug,
9338	cvvis@, rmso@, rmul@, smso@, smul@, use=viewpoint,
9339
9340# From: Jay S. Rouman <jsr@dexter.mi.org> 5 Jul 92
9341# The <civis>/<cnorm>/<sgr>/<sgr0> strings were added by ESR from specs.
9342# Theory; the vp3a+ wants \E0%c to set highlights, where normal=01000000,
9343# underline=01100000, rev=01010000, blink=01000010,dim=01000001,
9344# invis=01000100 and %c is the logical or of desired attributes.
9345# There is also a `tag bit' enabling attributes, set by \E) and unset by \E(.
9346vp3a+|viewpoint3a+|adds viewpoint 3a+,
9347	am, bw,
9348	cols#80, it#8, lines#24,
9349	civis=^W, clear=\E*$<80>, cnorm=^X, cr=^M, cub1=^H, cud1=^J,
9350	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
9351	ed=\EY$<80>, el=\ET, home=^^, ht=^I, ind=^J, kbs=^H, kcub1=^H,
9352	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, nel=^M^J, rmso=\E(,
9353	sgr=\E0%{64}%?%p1%tQ%|%;%?%p2%t%{96}%|%;%?%p3%tP%|%;%?%p4%t%{2}%|%;%?%p5%t%{1}%|%;%?%p7%tD%|%;%c\E),
9354	sgr0=\E(, smso=\E0Q\E),
9355vp60|viewpoint60|addsvp60|adds viewpoint60,
9356	use=regent40,
9357#
9358# adds viewpoint 90 - from cornell
9359# Note:  emacs sends ei occasionally to insure the terminal is out of
9360#        insert mode. This unfortunately puts the viewpoint90 IN insert
9361#        mode.  A hack to get around this is <ich1=\EF\s\EF^U>.  (Also,
9362#   -    :ei=:im=: must be present in the termcap translation.)
9363#   -    <xhp> indicates glitch that attributes stick to location
9364#   -    <msgr> means it's safe to move in standout mode
9365#   -    <clear=\EG\Ek>: clears screen and visual attributes without affecting
9366#               the status line
9367# Function key and label capabilities merged in from SCO.
9368vp90|viewpoint90|adds viewpoint 90,
9369	OTbs, bw, msgr, xhp,
9370	cols#80, lines#24,
9371	clear=\EG\Ek, cub1=^H, cud1=^J, cuf1=^F,
9372	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dch1=\EE,
9373	dl1=\El, ed=\Ek, el=\EK, home=\EY\s\s, ht=^I,
9374	ich1=\EF \EF\025, ind=^J, kbs=^H, kcub1=^U, kcud1=^J,
9375	kcuf1=^F, kcuu1=^Z, kf0=^B1\r, kf1=^B2\r, kf10=^B;\r,
9376	kf2=^B3\r, kf3=^B4\r, kf4=^B5\r, kf5=^B6\r, kf6=^B7\r,
9377	kf7=^B8\r, kf8=^B9\r, kf9=^B\:\r, khome=^A, lf0=F1, lf1=F2,
9378	lf10=F11, lf2=F3, lf3=F4, lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9,
9379	lf9=F10, ll=^A, rmso=\ER\E0@\EV, rmul=\ER\E0@\EV,
9380	sgr0=\ER\E0@\EV, smso=\ER\E0Q\EV, smul=\ER\E0`\EV,
9381# Note: if return acts weird on a980, check internal switch #2
9382# on the top chip on the CONTROL pc board.
9383adds980|a980|adds consul 980,
9384	OTbs, am,
9385	cols#80, lines#24,
9386	bel=^G, clear=\014$<1>\013@, cr=^M, cub1=^H, cud1=^J,
9387	cuf1=\E^E01, cup=\013%p1%{64}%+%c\E\005%p2%2d,
9388	dl1=\E\017$<13>, il1=\E\016$<13>, ind=^J, kf0=\E0, kf1=\E1,
9389	kf2=\E2, kf3=\E3, kf4=\E4, kf5=\E5, kf6=\E6, kf7=\E7, kf8=\E8,
9390	kf9=\E9, rmso=^O, sgr0=^O, smso=^Y^^^N,
9391
9392#### C. Itoh Electronics
9393#
9394# As of 1995 these people no longer make terminals (they're still in the
9395# printer business).  Their terminals were all clones of the DEC VT series.
9396# They're located in Orange County, CA.
9397#
9398
9399# CIT 80  - vt-52 emulator, the termcap has been modified to remove
9400#           the delay times and do an auto tab set rather than the indirect
9401#           file used in vt100.
9402cit80|cit-80|citoh 80,
9403	OTbs, am,
9404	cols#80, lines#24,
9405	clear=\E[H\EJ, cr=^M, cub1=^H, cuf1=\E[C,
9406	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, ed=\EJ, el=\EK, ff=^L,
9407	ind=^J, is2=\E>, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
9408	kcuu1=\EOA, rmkx=\E[?1l\E>, smkx=\E[?1h\E=,
9409# From: Tim Wood <mtxinu!sybase!tim> Fri Sep 27 09:39:12 PDT 1985
9410# (cit101: added <rmam>/<smam> based on init string, merged this with c101 -- esr)
9411cit101|citc|C.itoh fast vt100,
9412	OTbs, am, xenl,
9413	cols#80, lines#24,
9414	bel=^G, clear=\E[H\E[2J, cnorm=\E[V\E8, cub1=^H, cuf1=\E[C,
9415	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E7\E[U,
9416	dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K,
9417	flash=\E[?5h$<200/>\E[?5l, ich1=\E[@, il1=\E[L,
9418	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[3g\E[>5g,
9419	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
9420	rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
9421	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
9422	smul=\E[4m,
9423# CIE Terminals CIT-101e from Geoff Kuenning <callan!geoff> via BRL
9424# The following termcap entry was created from the Callan cd100 entry.  The
9425# last two lines (with the capabilities in caps) are used by RM-cobol to allow
9426# full selection of combinations of reverse video, underline, and blink.
9427# (cit101e: removed unknown :f0=\EOp:f1=\EOq:f2=\EOr:f3=\EOs:f4=\EOt:f5=\EOu:\
9428# f6=\EOv:f7=\EOw:f8=\EOx:f9=\EOy:AB=\E[0;5m:AL=\E[m:AR=\E[0;7m:AS=\E[0;5;7m:\
9429# :NB=\E[0;1;5m:NM=\E[0;1m:NR=\E[0;1;7m:NS=\E[0;1;5;7m: -- esr)
9430cit101e|C. Itoh CIT-101e,
9431	OTbs, OTpt, am, mir, msgr,
9432	cols#80, it#8, lines#24,
9433	acsc=, clear=\E[H\E[J, cnorm=, csr=\E[%i%p1%2d;%p2%2dr,
9434	cud1=\E[B, cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A,
9435	cvvis=\E[?1l\E[?4l\E[?7h, dch1=\E[P, dl1=\E[M, ed=\E[J,
9436	el=\E[K, if=/usr/share/tabset/vt100, il1=\E[L,
9437	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOT,
9438	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOm, kf6=\EOl,
9439	kf7=\EOM, kf8=\EOn, rc=\E8, ri=\EM, rmacs=^O, rmir=\E[4l,
9440	rmkx=\E>, rmso=\E[m, rmul=\E[m, sc=\E7, smacs=^N, smir=\E[4h,
9441	smkx=\E=, smso=\E[7m, smul=\E[4m,
9442# From: David S. Lawyer, June 1997:
9443# The CIT 101-e was made in Japan in 1983-4 and imported by CIE
9444# Terminals in Irvine, CA.  It was part of CITOH Electronics.  In the
9445# late 1980's CIT Terminals went out of business.
9446# There is no need to use the initialization string is=... (by invoking
9447# tset or setterm etc.) provided that the terminal has been manually set
9448# up (and the setup saved with ^S) to be compatible with this termcap.  To be
9449# compatible it should be in ANSI mode (not VT52).   A set-up that
9450# works is to set all the manually setable stuff to factory defaults
9451# by pressing ^D in set-up mode.  Then increse the brighness with the
9452# up-arrow key since the factory default will likely be dim on an old
9453# terminal.  Then change any options you want (provided that they are
9454# compatible with the termcap).  For my terminal I set: Screen
9455# Background: light; Keyclicks: silent; Auto wraparound: on; CRT saver:
9456# on.  I also set up mine for parity (but you may not need it).  Then
9457# save the setup with ^S.
9458# (cit101e-rv: added empty <rmcup> to suppress a tic warning. --esr)
9459cit101e-rv|Citoh CIT-101e (sets reverse video),
9460	am, eo, mir, msgr, xenl, xon,
9461	cols#80, it#8, lines#24,
9462	OTnl=\EM, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
9463	civis=\E[1v, clear=\E[H\E[J, cnorm=\E[0;3;4v, cr=^M,
9464	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
9465	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
9466	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9467	cvvis=\E[3;5v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
9468	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l\E[?5h$<200/>,
9469	home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
9470	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
9471	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,
9472	kbs=\177, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
9473	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\EE, rc=\E8,
9474	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=, rmir=\E[4l,
9475	rmso=\E[m, rmul=\E[m, rs1=\Ec\E[?7h\E[>5g, sc=\E7,
9476	sgr0=\E[m, smcup=\E[>5g\E[?7h\E[?5h, smir=\E[4h,
9477	smso=\E[7m, smul=\E[4m, tbc=\E[3g, u6=\E[%i%p1%d;%p2%dR,
9478	u7=\E[6n, u8=\E[?6c, u9=\E[c,
9479cit101e-n|CIT-101e w/o am,
9480	am@,
9481	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
9482	use=cit101e,
9483cit101e-132|CIT-101e with 132 cols,
9484	cols#132,
9485	kbs=^H, kcub1=^H, kcud1=^J, use=cit101e,
9486cit101e-n132|CIT-101e with 132 cols w/o am,
9487	am@,
9488	cols#132,
9489	cvvis=\E[?1l\E[?4l\E[?7l, kbs=^H, kcub1=^H, kcud1=^J,
9490	use=cit101e,
9491# CIE Terminals CIT-500 from BRL
9492# The following SET-UP modes are assumed for normal operation:
9493#	GENERATE_XON/XOFF:YES	DUPLEX:FULL		NEWLINE:OFF
9494#	AUTOWRAP:ON		MODE:ANSI		SCREEN_LENGTH:64_LINES
9495#	DSPLY_CNTRL_CODES?NO	PAGE_WIDTH:80		EDIT_MODE:OFF
9496# Other SET-UP modes may be set for operator convenience or communication
9497# requirements.
9498# Hardware tabs are assumed to be set every 8 columns; they can be set up
9499# by the "reset", "tset", or "tabs" utilities.  No delays are specified; use
9500# "stty ixon -ixany" to enable DC3/DC1 flow control!
9501# (cit500: I added <rmam>/<smam> based on the init string -- esr)
9502cit500|CIE Terminals CIT-500,
9503	OTbs, OTpt, mir, msgr, xon,
9504	OTkn#10, cols#80, it#8, lines#64, vt#3,
9505	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
9506	clear=\E[H\E[J, cr=^M, csr=\E[%i%p1%d;%p2%dr,
9507	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
9508	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
9509	cuu=\E[%p1%dA, cuu1=\EM, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
9510	ed=\EJ, el=\EK, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL,
9511	il1=\E[L, ind=^J, is2=\E<\E)0, kbs=^H, kcbt=\E[Z, kcub1=\EOD,
9512	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[P, kdl1=\E[M,
9513	ked=\EJ, kel=\EK, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
9514	kf4=\EOU, kf5=\EOV, kf6=\EOW, kf7=\EOX, kf8=\EOY, kf9=\EOZ,
9515	khome=\E[H, kich1=\E[4h, kil1=\E[L, krmir=\E[4l, lf0=PF1,
9516	lf1=PF2, lf2=PF3, lf3=PF4, lf4=F15, lf5=F16, lf6=F17, lf7=F18,
9517	lf8=F19, lf9=F20, ll=\E[64H, nel=\EE, rc=\E8, rev=\E[7m,
9518	ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
9519	rmso=\E[m, rmul=\E[m,
9520	rs1=\E<\E2\E[20l\E[?6l\E[r\E[m\E[q\E(B\017\E)0\E>,
9521	sc=\E7, sgr0=\E[m, smacs=^N, smam=\E[?7h, smir=\E[4h,
9522	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
9523
9524# C. Itoh printers begin here
9525citoh|ci8510|8510|c.itoh 8510a,
9526	cols#80, it#8,
9527	bold=\E!, cub1@,
9528	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073.,
9529	rep=\ER%p2%03d%p1%c, ri=\Er, rmul=\EY, sgr0=\E"\EY,
9530	smul=\EX, use=lpr,
9531citoh-pica|citoh in pica,
9532	is1=\EN, use=citoh,
9533citoh-elite|citoh in elite,
9534	cols#96,
9535	is1=\EE,
9536	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089.,
9537	use=citoh,
9538citoh-comp|citoh in compressed,
9539	cols#136,
9540	is1=\EQ,
9541	is2=\E(009\,017\,025\,033\,041\,049\,057\,065\,073\,081\,089\,097\,105\,113\,121\,129.,
9542	use=citoh,
9543# citoh has infinite cols because we don't want lp ever inserting \n\t**.
9544citoh-prop|citoh-ps|ips|citoh in proportional spacing mode,
9545	cols#32767,
9546	is1=\EP, use=citoh,
9547citoh-6lpi|citoh in 6 lines per inch mode,
9548	is3=\EA, use=citoh,
9549citoh-8lpi|citoh in 8 lines per inch mode,
9550	lines#88,
9551	is3=\EB, use=citoh,
9552
9553#### Control Data (cdc)
9554#
9555
9556cdc456|cdc 456 terminal,
9557	OTbs, am,
9558	cols#80, lines#24,
9559	bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
9560	cup=\E1%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dl1=\EJ, ed=^X,
9561	el=^V, home=^Y, il1=\EL, ind=^J,
9562
9563# Assorted CDC terminals from BRL (improvements by DAG & Ferd Brundick)
9564cdc721|CDC Viking,
9565	OTbs, am,
9566	cols#80, lines#24,
9567	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
9568	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
9569	kcuu1=^W, khome=^Y,
9570cdc721ll|CDC Vikingll,
9571	OTbs, am,
9572	cols#132, lines#24,
9573	clear=^L, cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c,
9574	cuu1=^W, el=^K, home=^Y, kcub1=^H, kcud1=^J, kcuf1=^I,
9575	kcuu1=^W, khome=^Y,
9576# (cdc752: the BRL entry had :ll=\E1  ^Z: commented out
9577cdc752|CDC 752,
9578	OTbs, am, bw, xhp,
9579	cols#80, lines#24,
9580	bel=^G, clear=\030\E1\s\s, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
9581	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z, el=^V,
9582	home=\E1\s\s, ind=^J, ll=^Y, rs1=\E1  \030\002\003\017,
9583# CDC 756
9584# The following switch/key settings are assumed for normal operation:
9585#	96 chars	SCROLL		FULL duplex	not BLOCK
9586# Other switches may be set according to communication requirements.
9587# Insert/delete-character cannot be used, as the whole display is affected.
9588# "so" & "se" are commented out until jove handles "sg" correctly.
9589cdc756|CDC 756,
9590	OTbs, am, bw,
9591	OTkn#10, cols#80, lines#24,
9592	bel=^G, clear=^Y^X, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
9593	cup=\E1%p2%{32}%+%c%p1%{32}%+%c, cuu1=^Z,
9594	dl1=\EJ$<6*/>, ed=^X, el=^V, home=^Y, il1=\EL$<6*/>, ind=^J,
9595	kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z, kdch1=\EI,
9596	kdl1=\EL, ked=^X, kel=^V, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED,
9597	kf4=\EE, kf5=\EF, kf6=\EG, kf7=\EH, kf8=\Ea, kf9=\Eb, khome=^Y,
9598	khts=^O, kich1=\EK, kil1=\EL, lf0=F1, lf1=F2, lf2=F3, lf3=F4,
9599	lf4=F5, lf5=F6, lf6=F7, lf7=F8, lf8=F9, lf9=F10, ll=^Y^Z,
9600	rs1=\031\030\002\003\017,
9601#
9602# CDC 721 from Robert Viduya, Ga. Tech. <ihnp4!gatech!gitpyr!robert> via BRL.
9603#
9604# Part of the long initialization string defines the "DOWN" key to the left
9605# of the tab key to send an ESC.  The real ESC key is positioned way out
9606# in right field.
9607#
9608# The termcap won't work in 132 column mode due to the way it it moves the
9609# cursor.  Termcap doesn't have the capability (as far as I could tell) to
9610# handle the 721 in 132 column mode.
9611#
9612# (cdc721: changed :ri: to :sr: -- esr)
9613cdc721-esc|Control Data 721,
9614	OTbs, OTpt, am, bw, msgr, xon,
9615	OTkn#10, cols#80, it#8, lines#30,
9616	bel=^G, blink=^N, cbt=^^^K, clear=^L, cub1=^H, cud1=^Z,
9617	cuf1=^X, cup=\002%p2%{32}%+%c%p1%{32}%+%c, cuu1=^W,
9618	dch1=^^N, dim=^\, dl1=^^Q, ed=^^P, el=^K, home=^Y, hts=^^^RW,
9619	ich1=^^O, il1=^^R, ind=\036W =\036U, invis=^^^R[,
9620	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,
9621	kbs=^H, kcub1=^H, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^q,
9622	kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v, kf6=^^w, kf7=^^x,
9623	kf8=^^y, kf9=^^z, khome=^Y, ll=^B =, rev=^^D,
9624	ri=\036W =\036V, rmir=, rmkx=^^^Rl, rmso=^^E, rmul=^],
9625	sgr0=\017\025\035\036E\036\022\\, smir=, smkx=^^^Rk,
9626	smso=^^D, smul=^\, tbc=^^^RY,
9627
9628#### Getronics
9629#
9630# Getronics is a Dutch electronics company that at one time was called
9631# `Geveke' and made async terminals; but (according to the company itself!)
9632# they've lost all their documentation on the command set.  The hardware
9633# documentation suggests the terminals were actually manufactured by a
9634# Taiwanese electronics company named Cal-Comp.  There are known
9635# to have been at least two models, the 33 and the 50.
9636#
9637
9638# The 50 seems to be a top end vt220 clone, with the addition of a higher
9639# screen resolution, a larger screen, at least 1 page of memory above and
9640# below the screen, apparently pages of memory right and left of the screen
9641# which can be panned, and about 75 function keys (15 function keys x normal,
9642# shift, control, func A, func B). It also has more setup possibilities than
9643# the vt220. The monitor case is dated November 1978 and the keyboard case is
9644# May 1982.
9645#
9646# The vt100 emulation works as is.  The entry below describes the rather
9647# non-conformant (but more featureful) ANSI mode.
9648#
9649# From: Stephen Peterson <stv@utrecht.ow.nl>, 27 May 1995
9650visa50|geveke visa 50 terminal in ansi 80 character mode,
9651	bw, mir, msgr,
9652	cols#80, lines#25,
9653	acsc=0_aaffggh jjkkllmmnnooqqssttuuvvwwxx, bel=^G,
9654	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[2J, cr=^M,
9655	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
9656	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
9657	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
9658	dch=\E[%p1%dX, dch1=\E[X, dim=\E[2m, dl=\E[%p1%dM,
9659	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l, home=\E[H,
9660	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d@, ich1=\E[@,
9661	il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m,
9662	is2=\E0;2m\E[1;25r\E[25;1H\E[?3l\E[?7h\E[?8h,
9663	ka1=\E[f, ka3=\EOQ, kb2=\EOP, kbs=^H, kc1=\EOR, kc3=\EOS,
9664	kcub1=\E[D, kcud1=\E[A, kcuf1=\E[C, kcuu1=\E[A, kdch1=\177,
9665	kdl1=\EOS, kf0=\E010, kf1=\E001, kf10=\E011, kf2=\E002,
9666	kf3=\E003, kf4=\E004, kf5=\E005, kf6=\E006, kf7=\E007,
9667	kf8=\E008, kf9=\E009, khome=\E[f, lf2=A delete char,
9668	lf3=A insert line, lf4=A delete line, lf5=A clear,
9669	lf6=A ce of/cf gn, lf7=A print, lf8=A on-line,
9670	lf9=A funcl0=A send, nel=^M^J, rev=\E[7m, rmacs=\E[3l,
9671	rmam=\E[?7l, rmir=\E[4l, rmkx=\E>, rmso=\E[0;2m,
9672	rmul=\E[0m, sgr0=\E[0;2m, smacs=\E3h, smam=\E?7h,
9673	smir=\E[4h, smkx=\E=, smso=\E[2;7m, smul=\E[4m, tbc=\E[3g,
9674	vpa=\E[%i%p1%dd,
9675
9676#### Human Designed Systems (Concept)
9677#
9678#	Human Designed Systems
9679#	400 Fehley Drive
9680#	King of Prussia, PA 19406
9681#	Vox: (610)-277-8300
9682#	Fax: (610)-275-5739
9683#	Net: support@hds.com
9684#
9685# John Martin <john@hds.com> is their termcap expert.  They're mostly out of
9686# the character-terminal business now (1995) and making X terminals.  In
9687# particular, the whole `Concept' line described here was discontinued long
9688# ago.
9689#
9690
9691# From: <vax135!hpk>  Sat Jun 27 07:41:20 1981
9692# Extensive changes to c108 by arpavax:eric Feb 1982
9693# Some unknown person at SCO then translated it to terminfo.
9694#
9695# There seem to be a number of different versions of the C108 PROMS
9696# (with bug fixes in its Z-80 program).
9697#
9698# The first one that we had would lock out the keyboard of you
9699# sent lots of short lines (like /usr/dict/words) at 9600 baud.
9700# Try that on your C108 and see if it sends a ^S when you type it.
9701# If so, you have an old version of the PROMs.
9702#
9703# You should configure the C108 to send ^S/^Q before running this.
9704# It is much faster (at 9600 baud) than the c100 because the delays
9705# are not fixed.
9706# new status line display entries for c108-8p:
9707# <is3> - init str #3 - setup term for status display -
9708# set programmer mode, select window 2, define window at last
9709# line of memory, set bkgnd stat mesg there, select window 0.
9710#
9711# <tsl> - to status line - select window 2, home cursor, erase to
9712# end-of-window, 1/2 bright on, goto(line#0, col#?)
9713#
9714# <fsl> - from status line - 1/2 bright off, select window 0
9715#
9716# <dsl> - disable status display - set bkgnd status mesg with
9717# illegal window #
9718#
9719# There are probably more function keys that should be added but
9720# I don't know what they are.
9721#
9722# No delays needed on c108 because of ^S/^Q handshaking
9723#
9724c108|concept108|c108-8p|concept108-8p|concept 108 w/8 pages,
9725	is3=\EU\E z"\Ev\001\177 !p\E ;"\E z \Ev  \001\177p\Ep\n,
9726	rmcup=\Ev  \001\177p\Ep\r\n, use=c108-4p,
9727c108-4p|concept108-4p|concept 108 w/4 pages,
9728	OTbs, eslok, hs, xon,
9729	pb@,
9730	acsc=jEkTl\\mMqLxU, cnorm=\Ew, cr=^M,
9731	cup=\Ea%p1%?%p1%{95}%>%t\001%{96}%-%;%{32}%+%c%p2%?%p2%{95}%>%t\001%{96}%-%;%{32}%+%c,
9732	cvvis=\EW, dch1=\E 1$<16*>, dsl=\E ;\177, fsl=\Ee\E z\s,
9733	ind=^J, is1=\EK\E!\E F,
9734	is3=\EU\E z"\Ev\177 !p\E ;"\E z \Ev  \001 p\Ep\n,
9735	rmacs=\Ej\s, rmcup=\Ev  \001 p\Ep\r\n, smacs=\Ej!,
9736	smcup=\EU\Ev  8p\Ep\r\E\025,
9737	tsl=\E z"\E?\E\005\EE\Ea %+\s, use=c100,
9738c108-rv|c108-rv-8p|concept 108 w/8 pages in reverse video,
9739	rmcup=\Ev  \002 p\Ep\r\n, smcup=\EU\Ev  8p\Ep\r,
9740	use=c108-rv-4p,
9741c108-rv-4p|concept108rv4p|concept 108 w/4 pages in reverse video,
9742	flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee, smso=\EE,
9743	use=c108-4p,
9744c108-w|c108-w-8p|concept108-w-8|concept108-w8p|concept 108 w/8 pages in wide mode,
9745	cols#132,
9746	is1=\E F\E", rmcup=\Ev  ^A0\001D\Ep\r\n,
9747	smcup=\EU\Ev  8\001D\Ep\r, use=c108-8p,
9748
9749# Concept 100:
9750# These have only window relative cursor addressing, not screen
9751# relative. To get it to work right here, smcup/rmcup (which
9752# were invented for the concept) lock you into a one page
9753# window for screen style programs.
9754#
9755# To get out of the one page window, we use a clever trick:
9756# we set the window size to zero ("\Ev    " in rmcup) which the
9757# terminal recognizes as an error and resets the window to all
9758# of memory.
9759#
9760# This trick works on c100 but does not on c108, sigh.
9761#
9762# Some tty drivers use cr3 for concept, others use nl3, hence
9763# the delays on cr and ind below. This padding is only needed at
9764# 9600 baud and up.  One or the other is commented out depending on
9765# local conventions.
9766#
9767# 2 ms padding on <rmcup> isn't always enough. 6 works fine. Maybe
9768# less than 6 but more than 2 will work.
9769#
9770# Note: can't use function keys f7-f10 because they are
9771# indistinguishable from arrow keys (!), also, del char and
9772# clear eol use xon/xoff so they probably won't work very well.
9773#
9774# Also note that we don't define insrt/del char/delline/eop/send
9775# because they don't transmit unless we reset them - I figured
9776# it was a bad idea to clobber their definitions.
9777#
9778# The <mc5> sequence changes the escape character to ^^ so that
9779# escapes will be passed through to the printer. Only trouble
9780# is that ^^ won't be - ^^ was chosen to be unlikely.
9781# Unfortunately, if you're sending raster bits through to be
9782# plotted, any character you choose will be likely, so we lose.
9783#
9784# \EQ"\EY(^W (send anything from printer to host, for xon/xoff)
9785# cannot be # in is2 because it will hang a c100 with no printer
9786# if sent twice.
9787c100|concept100|concept|c104|c100-4p|hds concept 100,
9788	OTbs, am, eo, mir, ul, xenl,
9789	cols#80, lines#24, pb#9600, vt#8,
9790	bel=^G, blink=\EC, clear=\E?\E\005$<2*>, cr=$<9>\r,
9791	cub1=^H, cud1=^J, cuf1=\E=,
9792	cup=\Ea%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E;,
9793	dch1=\E\021$<16*>, dim=\EE, dl1=\E\002$<3*>,
9794	ed=\E\005$<16*>, el=\E\025$<16>, flash=\Ek$<200>\EK,
9795	ht=\011$<8>, il1=\E\022$<3*>, ind=^J, invis=\EH, ip=$<16*>,
9796	is1=\EK,
9797	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,
9798	is3=\Ev    $<6>\Ep\n, kbs=^H, kcbt=\E', kctab=\E_,
9799	kcub1=\E>, kcud1=\E<, kcuf1=\E=, kcuu1=\E;, kdch1=\E^Q,
9800	kdl1=\E^B, ked=\E^C, kel=\E^S, kf1=\E5, kf2=\E6, kf3=\E7,
9801	kf4=\E8, kf5=\E9, kf6=\E\:a, kf7=\E\:b, kf8=\E\:c, khome=\E?,
9802	khts=\E], kich1=\E^P, kil1=\E^R, kind=\E[, knp=\E-, kpp=\E.,
9803	kri=\E\\, krmir=\E\0, mc4=\036o \E\EQ!\EYP\027,
9804	mc5=\EQ"\EY(\027\EYD\Eo \036, prot=\EI,
9805	rep=\Er%p1%c%p2%{32}%+%c$<.2*>, rev=\ED,
9806	rmcup=\Ev    $<6>\Ep\r\n, rmir=\E\s\s, rmkx=\Ex,
9807	rmso=\Ed, rmul=\Eg, sgr0=\EN@,
9808	smcup=\EU\Ev  8p\Ep\r\E\025$<16>, smir=\E^P, smkx=\EX,
9809	smso=\ED, smul=\EG,
9810c100-rv|c100-rv-4p|concept100-rv|c100 rev video,
9811	cnorm@, cvvis@, flash=\EK$<200>\Ek, is1=\Ek, rmso=\Ee,
9812	smso=\EE, use=c100,
9813oc100|oconcept|c100-1p|old 1 page concept 100,
9814	in,
9815	is3@, use=c100,
9816
9817# From: Walter Skorski <walt@genetics1.JMP.TJU.EDU>, 16-oct-1996.
9818# Lots of notes, originally inline, but ncurses doesn't grok that.
9819#
9820# am: 	not available in power on mode, but turned on with \E[=107;207h in
9821#	is2=.  Also, \E=124l in is2= could have been used to prevent needing
9822#	to specify xenl:, but that would have rendered the last space on the
9823#	last line useless.
9824# bw:	Not available in power on mode, but turned on with \E[=107;207h in
9825#	is2=.
9826# clear: Could be done with \E[2J alone, except that vi (and probably most
9827#	other programs) assume that this also homes the cursor.
9828# dsl:	Go to window 2, go to the beginning of the line, use a line feed to
9829#	scroll the window, and go back to window 1.
9830# is2:	the string may cause a warning to be issued by tic that it
9831#	found a very long line and that it suspects that a comma is missing
9832#	somewhere.  This warning can be ignored (unless it comes up more than
9833#	once).  The initialization string contains the following commands:
9834#
9835#	 [Setup mode items changed from factory defaults:]
9836#		\E)0			set alternate character set to
9837#						graphics
9838#		^O			set character set to default
9839#	 [In case it wasn't]
9840#		\E[m			turn off all attributes
9841#	 [In case they weren't off]
9842#		\E[=107;		cursor wrap and
9843#			207h			character wrap on
9844#		\E[90;3u		set Fkey definitions to "transmit"
9845#						defaults
9846#		\E[92;3u		set cursor key definitions to
9847#						"transmit" defaults
9848#		\E[43;1u		set shift F13 to transmit...
9849#		\177\E$P\177
9850#		\E[44;1u		set shift F14 to transmit...
9851#			\177\E$Q\177
9852#		\E[45;1u		set shift F15 to transmit...
9853#			\177\E$R\177
9854#		\E[46;1u		set shift F16 to transmit...
9855#			\177\E$S\177
9856#		\E[200;1u		set shift up to transmit...
9857#			\177\E$A\177
9858#		\E[201;1u		set shift down to transmit...
9859#			\177\E$B\177
9860#		\E[202;1u		set shift right to transmit...
9861#			\177\E$C\177
9862#		\E[203;1u		set shift left to transmit...
9863#			\177\E$D\177
9864#		\E[204;1u		set shift home to transmit...
9865#			\177\E$H\177
9866#		\E[212;1u		set backtab to transmit...
9867#			\177\E$I\177
9868#		\E[213;1u		set shift backspace to transmit...
9869#			\177\E$^H\177
9870#		\E[214;1u		set shift del to transmit...
9871#			"\E$\177"
9872#	 [Necessary items not mentioned in setup mode:]
9873#		\E[2!w			move to window 2
9874#		\E[25;25w		define window as line 25 of memory
9875#		\E[!w			move to window 1
9876#		\E[2*w			show current line of window 2 as
9877#						status line
9878#		\E[2+x			set meta key to use high bit
9879#		\E[;3+}			move underline to bottom of character
9880#
9881#	All Fkeys are set to their default transmit definitions with \E[90;3u
9882#	in is2=.  IMPORTANT:  to use this terminal definition, the "quit" stty
9883#	setting MUST be redefined or deactivated, because the default is
9884#	contained in almost all of this terminal's Fkey strings!  If for some
9885#	reason "quit" cannot be altered, the Fkeys can, but it would be
9886#	necessary to change ^| to ^] in all of these definitions, and add
9887#	\E[2;029!t to is2.
9888# lines: is set to 24 because this terminal refuses to treat the 25th
9889#	line normally.
9890# ll:	Not available in power on mode, but turned on with \E[=107;207h in
9891#	is2=.
9892# lm:	Pointless, given that this definition locks a single screen of
9893#	memory into view, but what the hey...
9894# rmso: Could use \E[1;7!{ to turn off only bold and reverse (leaving any
9895#	other attributes alone), but some programs expect this to turn off
9896#	everything.
9897# rmul: Could use \E[4!{ to turn off only underline (leaving any other
9898#	attributes alone), but some programs expect this to turn off
9899#	everything.
9900# sgr:	Attributes are set on this terminal with the string \E[ followed by
9901#	a list of attribute code numbers (in decimal, separated by
9902#	semicolons), followed by the character m.  The attribute code
9903#	numbers are:
9904#		  1 for bold;
9905#		  2 for dim (which is ignored in power on mode);
9906#		  4 for underline;
9907#		  5 for blinking;
9908#		  7 for inverse;
9909#		  8 for not displayable; and
9910#		=99 for protected (except that there are strange side
9911#		effects to protected characters which make them inadvisable).
9912#	 The mapping of terminfo parameters to attributes is as follows:
9913#		%p1 (standout) = bold and inverse together;
9914#		%p2 (underline) = underline;
9915#		%p3 (reverse) = inverse;
9916#		%p4 (blink) = blinking;
9917#		%p5 (dim) is ignored;
9918#		%p6 (bold) = bold;
9919#		%p7 (invisible) = not displayable;
9920#		%p8 (protected) is ignored; and
9921#		%p9 (alt char set) = alt char set.
9922#	 The code to do this is:
9923#		\E[0		OUTPUT	\E[0
9924#		%?%p1%p6%O	IF	(standout; bold) OR
9925#		%t;1		THEN	OUTPUT	;1
9926#		%;		ENDIF
9927#		%?%p2		IF	underline
9928#		%t;4		THEN	OUTPUT	;4
9929#		%;		ENDIF
9930#		%?%p4		IF	blink
9931#		%t;5		THEN	OUTPUT	;5
9932#		%;		ENDIF
9933#		%?%p1%p3%O	IF	(standout; reverse) OR
9934#		%t;7		THEN	OUTPUT	;7
9935#		%;		ENDIF
9936#		%?%p7		IF	invisible
9937#		%t;8		THEN	OUTPUT	;8
9938#		%;		ENDIF
9939#		m		OUTPUT	m
9940#		%?%p9		IF	altcharset
9941#		%t^N		THEN	OUTPUT	^N
9942#		%e^O		ELSE	OUTPUT	^O
9943#		%;		ENDIF
9944# sgr0: Everything is turned off (including alternate character set), since
9945#	there is no way of knowing what it is that the program wants turned
9946#	off.
9947# smul: The "underline" attribute is reconfigurable to an overline or
9948#	strikethru, or (as done with \E[;3+} in is2=), to a line at the true
9949#	bottom of the character cell.  This was done to allow for more readable
9950#	underlined characters, and to be able to distinguish between an
9951#	underlined space, an underscore, and an underlined underscore.
9952# xenl: Terminal can be configured to not need this, but this "glitch"
9953#	behavior is actually preferable with autowrap terminals.
9954#
9955# Parameters kf31= thru kf53= actually contain the strings sent by the shifted
9956# Fkeys.  There are no parameters for shifted Fkeys in terminfo.  The is2
9957# string modifies the 'O' in kf43 to kf46 to a '$'.
9958#
9959# kcbt was originally ^I but redefined in is2=.
9960# kHOM was \E[H originally but redefined in is2=, as were a number of
9961# other keys.
9962# kDC was originally \177 but redefined in is2=.
9963#
9964# kbs:	Shift was also ^H originally but redefined as \E$^H in is2=.
9965# tsl:	Go to window 2, then do an hpa=.
9966#
9967#------- flash=\E[8;3!}^G\E[3;3!}
9968#------- flash=\E[?5h$<100>\E[?5l
9969# There are two ways to flash the screen, both of which have their drawbacks.
9970# The first is to set the bell mode to video, transmit a bell character, and
9971# set the bell mode back - but to what?  There is no way of knowing what the
9972# user's old bell setting was before we messed with it.  Worse, the command to
9973# set the bell mode also sets the key click volume, and there is no way to say
9974# "leave that alone", or to know what it's set to, either.
9975# The second way to do a flash is to set the screen to inverse video, pad for a
9976# tenth of a second, and set it back - but like before, there's no way to know
9977# that the screen wasn't ALREADY in inverse video, or that the user may prefer
9978# it that way.  The point is moot anyway, since vi (and probably other
9979# programs) assume that by defining flash=, you want the computer to use it
9980# INSTEAD of bel=, rather than as a secondary type of signal.
9981#
9982#------- cvvis=\E[+{
9983# The is the power on setting, which is also as visible as the cursor
9984# gets.
9985#-------  wind=\E[%i%p1%d;%p2%d;%p3%{1}%+%d;%p4%{1}%+%dw
9986# Windowing is possible, but not defined here because it is also used to
9987# emulate status line functions.  Allowing a program to set a window could
9988# clobber the status line or render it unusable.  There is additional memory,
9989# but screen scroll functions are destructive and do not make use of it.
9990#
9991#-------   dim=			Not available in power on mode.
9992# You have a choice of defining low intensity characters as "half bright" and
9993# high intensity as "normal", or defining low as "normal" and high as "bold".
9994# No matter which you choose, only one of either "half bright" or "bold" is
9995# available at any time, so taking the time to override the default is
9996# pointless.
9997#
9998#-------  prot=\E[=0;99m
9999# Not defined, because it appears to have some strange side effects.
10000#------- pfkey=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
10001#------- pfloc=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%du\177%p2%s\177%;
10002#-------   pfx=%?%p1%{24}%<%p1%{30}%>%p1%{54}%<%A%O%t\E[%p1%d;1u\177%p2%s\177%;
10003#	 Available, but making them available to programs is inadvisable.
10004#	 The code to do this is:
10005#		%?%p1%{24}%<	IF	((key; 24) <;
10006#		%p1%{30}%>		 ((key; 30) >;
10007#		%p1%{54}%<		  (key; 54) <
10008#		%A			 ) AND
10009#		%O		  	) OR
10010#	 [that is, "IF key < 24 OR (key > 30 AND key < 54)",]
10011#		%t\E[		THEN	OUTPUT	\E[
10012#		%p1%d			OUTPUT	(key) as decimal
10013#	 [next line applies to pfx only]
10014#		;1			OUTPUT	;1
10015#		u			OUTPUT	u
10016#		\177			OUTPUT	\177
10017#		%p2%s			OUTPUT	(string) as string
10018#		\177			OUTPUT	\177
10019#	 [DEL chosen as delimiter, but could be any character]
10020#	 [implied:		ELSE	do nothing]
10021#		%;		ENDIF
10022#
10023#-------   rs2=
10024# Not defined since anything it might do could be done faster and easier with
10025# either Meta-Shift-Reset or the main power switch.
10026#
10027#-------  smkx=\E[1!z
10028#-------  rmkx=\E[!z
10029# These sequences apply to the cursor and setup keys only, not to the
10030# numeric keypad.  But it doesn't matter anyway, since making these
10031# available to programs is inadvisable.
10032# For the key definitions below, all sequences beginning with \E$ are
10033# custom and programmed into the terminal via is2.  \E$ also has no
10034# meaning to any other terminal.
10035#
10036#------- cmdch=\E[;%p1%d!t
10037# Available, but making it available to programs is inadvisable.
10038#------- smxon=\E[1*q
10039# Available, but making it available to programs is inadvisable.
10040# Terminal will send XON/XOFF on buffer overflow.
10041#------- rmxon=\E[*q
10042# Available, but making it available to programs is inadvisable.
10043# Terminal will not notify on buffer overflow.
10044#-------   smm=\E[2+x
10045#-------   rmm=\E[+x
10046# Available, but making them available to programs is inadvisable.
10047#
10048# Printing:
10049#	 It's not made clear in the manuals, but based on other ansi/vt type
10050#	 terminals, it's a good guess that this terminal is capable of both
10051#	 "transparent print" (which doesn't copy data to the screen, and
10052#	 therefore needs mc5i: specified to say so) and "auxilliary print"
10053#	 (which does duplicate printed data on the screen, in which case mc4=
10054#	 and mc5= should use the \E[?4i and \E[?5i strings instead).
10055
10056hds200|Human Designed Systems HDS200,
10057	am, bw, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
10058	cols#80, it#8, lines#24, lm#0,
10059	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
10060	blink=\E[0;5m, bold=\E[0;1m, cbt=\E[Z, civis=\E[6+{,
10061	clear=\E[H\E[J, cnorm=\E[+{, cr=^M,
10062	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
10063	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
10064	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10065	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
10066	dsl=\E[2!w\r\n\E[!w, ed=\E[J, el=\E[K, el1=\E[1K,
10067	fsl=\E[!w, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
10068	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
10069	invis=\E[0;8m,
10070	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+},
10071	kDC=\E$\177, kHOM=\E$H, kLFT=\E$D, kRIT=\E$C, kbs=^H,
10072	kcbt=\E$I, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10073	kdch1=\177, kent=^M, kf1=^\001\r, kf10=^\010\r,
10074	kf11=^\011\r, kf12=^\012\r, kf13=\EOP, kf14=\EOQ,
10075	kf15=\EOR, kf16=\EOS, kf17=^\017\r, kf18=^\018\r,
10076	kf19=^\019\r, kf2=^\002\r, kf20=^\020\r, kf21=^\021\r,
10077	kf22=^\022\r, kf23=^\023\r, kf3=^\003\r, kf31=^\031\r,
10078	kf32=^\032\r, kf33=^\033\r, kf34=^\034\r, kf35=^\035\r,
10079	kf36=^\036\r, kf37=^\037\r, kf38=^\038\r, kf39=^\039\r,
10080	kf4=^\004\r, kf40=^\040\r, kf41=^\041\r, kf42=^\042\r,
10081	kf43=\E$P, kf44=\E$Q, kf45=\E$R, kf46=\E$S, kf47=^\047\r,
10082	kf48=^\048\r, kf49=^\049\r, kf5=^\005\r, kf50=^\050\r,
10083	kf51=^\051\r, kf52=^\052\r, kf53=^\053\r, kf6=^\006\r,
10084	kf7=^\007\r, kf8=^\008\r, kf9=^\009\r, khome=\E[H,
10085	kind=\E[T, knp=\E[U, kpp=\E[V, kri=\E[S, ll=\E[H\E[A,
10086	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\E[E, rc=\E8,
10087	rev=\E[0;7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmso=\E[m\017,
10088	rmul=\E[m\017, sc=\E7,
10089	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%;,
10090	sgr0=\E[m\017, smacs=^N, smir=\E[4h, smso=\E[0;1;7m,
10091	smul=\E[0;4m, tbc=\E[3g, tsl=\E[2!w\E[%i%p1%dG,
10092	vpa=\E[%i%p1%dd,
10093
10094# <ht> through <el> included to specify padding needed in raw mode.
10095# (avt-ns: added empty <acsc> to suppress a tic warning --esr)
10096avt-ns|concept avt no status line,
10097	OTbs, am, eo, mir, ul, xenl, xon,
10098	cols#80, it#8, lines#24, lm#192,
10099	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
10100	clear=\E[H\E[J$<38>, cnorm=\E[=119l, cr=^M,
10101	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
10102	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
10103	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
10104	cvvis=\E[=119h, dch1=\E[P, dim=\E[1!{, dl=\E[%p1%dM$<4*>,
10105	dl1=\E[M$<4>, ed=\E[J$<96>, el=\E[K$<6>, home=\E[H,
10106	hpa=\E[%p1%{1}%+%dG, ht=\011$<4>, hts=\EH, ich=\E[%p1%d@,
10107	ich1=\E[@, il=\E[%p1%dL$<4*>, il1=\E[L$<4>, ind=\n$<8>,
10108	invis=\E[8m, ip=$<4>, is1=\E[=103l\E[=205l,
10109	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,
10110	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10111	kdch1=\E^B\r, ked=\E^D\r, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
10112	kf4=\EOS, khome=\E[H, kich1=\E^A\r, kil1=\E^C\r, ll=\E[24H,
10113	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
10114	pfloc=\E[%p1%d;0u#%p2%s#, pfx=\E[%p1%d;1u#%p2%s#,
10115	prot=\E[99m, rc=\E8, rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m,
10116	ri=\EM$<4>, rmacs=\016$<1>, rmcup=\E[w\E2\r\n,
10117	rmir=\E[4l, rmkx=\E[!z\E[0;2u, rmso=\E[7!{, rmul=\E[4!{,
10118	sc=\E7,
10119	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
10120	sgr0=\E[m, smacs=\017$<1>, smcup=\E[=4l\E[1;24w\E2\r,
10121	smir=\E[4h, smkx=\E[1!z\E[0;3u, smso=\E[7m, smul=\E[4m,
10122	tbc=\E[2g, vpa=\E[%p1%{1}%+%dd,
10123avt-rv-ns|concept avt in reverse video mode/no status line,
10124	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
10125	use=avt-ns,
10126avt-w-ns|concept avt in 132 column mode/no status line,
10127	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
10128	use=avt-ns,
10129avt-w-rv-ns|concept avt in 132 column mode/no status line/reverse video,
10130	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
10131	smcup=\E[H\E[1;24;1;132w, use=avt-ns,
10132
10133# Concept AVT with status line. We get the status line using the
10134# "Background status line" feature of the terminal. We swipe the
10135# first line of memory in window 2 for the status line, keeping
10136# 191 lines of memory and 24 screen lines for regular use.
10137# The first line is used instead of the last so that this works
10138# on both 4 and 8 page AVTs. (Note the lm#191 or 192 - this
10139# assumes an 8 page AVT but lm isn't currently used anywhere.)
10140#
10141avt+s|concept avt status line changes,
10142	eslok, hs,
10143	lm#191,
10144	dsl=\E[0*w, fsl=\E[1;1!w,
10145	is3=\E[2w\E[2!w\E[1;1;1;80w\E[H\E[2*w\E[1!w\E2\r\n,
10146	rmcup=\E[2w\E2\r\n, smcup=\E[2;25w\E2\r,
10147	tsl=\E[2;1!w\E[;%p1%dH\E[2K,
10148avt|avt-s|concept-avt|avt w/80 columns,
10149	use=avt+s, use=avt-ns,
10150avt-rv|avt-rv-s|avt reverse video w/sl,
10151	flash=\E[=205l$<200>\E[=205h, is1=\E[=103l\E[=205h,
10152	use=avt+s, use=avt-ns,
10153avt-w|avt-w-s|concept avt 132 cols+status,
10154	is1=\E[=103h\E[=205l, smcup=\E[H\E[1;24;1;132w,
10155	use=avt+s, use=avt-ns,
10156avt-w-rv|avt-w-rv-s|avt wide+status+rv,
10157	flash=\E[=205l$<200>\E[=205h, is1=\E[=103h\E[=205h,
10158	smcup=\E[H\E[1;24;1;132w, use=avt+s, use=avt-ns,
10159
10160#### Contel Business Systems.
10161#
10162
10163# Contel c300 and c320 terminals.
10164contel300|contel320|c300|Contel Business Systems C-300 or C-320,
10165	am, in, xon,
10166	cols#80, lines#24, xmc#1,
10167	bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
10168	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
10169	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
10170	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
10171	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
10172	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
10173	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
10174	rmso=\E!\0, sgr0=\E!\0, smso=\E!\r, tbc=\E3,
10175# Contel c301 and c321 terminals.
10176contel301|contel321|c301|c321|Contel Business Systems C-301 or C-321,
10177	flash@, ich1@, ip@, rmso=\E!\0$<20>, smso=\E!\r$<20>,
10178	use=contel300,
10179
10180#### Data General (dg)
10181#
10182# According to James Carlson <carlson@xylogics.com> writing in January 1995,
10183# the terminals group at Data General was shut down in 1991; all these
10184# terminals have thus been discontinued.
10185#
10186# DG terminals have function keys that respond to the SHIFT and CTRL keys,
10187# e.g., SHIFT-F1 generates a different code from F1.  To number the keys
10188# sequentially, first the unmodified key codes are listed as F1 through F15.
10189# Then their SHIFT versions are listed as F16 through F30, their CTRL versions
10190# are listed as F31 through F45, and their CTRL-SHIFT versions are listed as
10191# F46 through F60.  This is done in the private "includes" below whose names
10192# start with "dgkeys+".
10193#
10194# DG terminals generally support 8 bit characters.  For each of these terminals
10195# two descriptions are supplied:
10196#	1) A default description for 8 bits/character communications, which
10197#	   uses the default DG international character set and keyboard codes.
10198#	2) A description with suffix "-7b" for 7 bits/character communications.
10199#	   This description must use the NON-DEFAULT native keyboard language.
10200
10201# Unmodified fkeys (kf1-kf11), Shift fkeys (kf12-kf22), Ctrl fkeys (kf23-kf33),
10202# Ctrl/Shift fdkeys (kf34-kf44).
10203
10204dgkeys+8b|Private entry describing DG terminal 8-bit ANSI mode special keys,
10205	ka1=\233020z, ka3=\233021z, kc1=\233022z, kc3=\233023z,
10206	kclr=\2332J, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
10207	kcuu1=\233A, kel=\233K, kf1=\233001z, kf10=\233010z,
10208	kf11=\233011z, kf12=\233012z, kf13=\233013z,
10209	kf14=\233014z, kf15=\233000z, kf16=\233101z,
10210	kf17=\233102z, kf18=\233103z, kf19=\233104z,
10211	kf2=\233002z, kf20=\233105z, kf21=\233106z,
10212	kf22=\233107z, kf23=\233108z, kf24=\233109z,
10213	kf25=\233110z, kf26=\233111z, kf27=\233112z,
10214	kf28=\233113z, kf29=\233114z, kf3=\233003z,
10215	kf30=\233100z, kf31=\233201z, kf32=\233202z,
10216	kf33=\233203z, kf34=\233204z, kf35=\233205z,
10217	kf36=\233206z, kf37=\233207z, kf38=\233208z,
10218	kf39=\233209z, kf4=\233004z, kf40=\233210z,
10219	kf41=\233211z, kf42=\233212z, kf43=\233213z,
10220	kf44=\233214z, kf45=\233200z, kf46=\233301z,
10221	kf47=\233302z, kf48=\233303z, kf49=\233304z,
10222	kf5=\233005z, kf50=\233305z, kf51=\233306z,
10223	kf52=\233307z, kf53=\233308z, kf54=\233309z,
10224	kf55=\233310z, kf56=\233311z, kf57=\233312z,
10225	kf58=\233313z, kf59=\233314z, kf6=\233006z,
10226	kf60=\233300z, kf7=\233007z, kf8=\233008z, kf9=\233009z,
10227	khome=\233H, kprt=\233i,
10228
10229dgkeys+7b|Private entry describing DG terminal 7-bit ANSI mode special keys,
10230	ka1=\E[020z, ka3=\E[021z, kc1=\E[022z, kc3=\E[023z,
10231	kclr=\E[2J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10232	kel=\E[K, kf1=\E[001z, kf10=\E[010z, kf11=\E[011z,
10233	kf12=\E[012z, kf13=\E[013z, kf14=\E[014z, kf15=\E[000z,
10234	kf16=\E[101z, kf17=\E[102z, kf18=\E[103z, kf19=\E[104z,
10235	kf2=\E[002z, kf20=\E[105z, kf21=\E[106z, kf22=\E[107z,
10236	kf23=\E[108z, kf24=\E[109z, kf25=\E[110z, kf26=\E[111z,
10237	kf27=\E[112z, kf28=\E[113z, kf29=\E[114z, kf3=\E[003z,
10238	kf30=\E[100z, kf31=\E[201z, kf32=\E[202z, kf33=\E[203z,
10239	kf34=\E[204z, kf35=\E[205z, kf36=\E[206z, kf37=\E[207z,
10240	kf38=\E[208z, kf39=\E[209z, kf4=\E[004z, kf40=\E[210z,
10241	kf41=\E[211z, kf42=\E[212z, kf43=\E[213z, kf44=\E[214z,
10242	kf45=\E[200z, kf46=\E[301z, kf47=\E[302z, kf48=\E[303z,
10243	kf49=\E[304z, kf5=\E[005z, kf50=\E[305z, kf51=\E[306z,
10244	kf52=\E[307z, kf53=\E[308z, kf54=\E[309z, kf55=\E[310z,
10245	kf56=\E[311z, kf57=\E[312z, kf58=\E[313z, kf59=\E[314z,
10246	kf6=\E[006z, kf60=\E[300z, kf7=\E[007z, kf8=\E[008z,
10247	kf9=\E[009z, khome=\E[H, kprt=\E[i,
10248
10249dgkeys+11|Private entry describing 11 minimal-subset DG mode special keys,
10250	kclr=^L, kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kel=^K,
10251	kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^a, kf13=^^b, kf14=^^c,
10252	kf15=^^d, kf16=^^e, kf17=^^f, kf18=^^g, kf19=^^h, kf2=^^r,
10253	kf20=^^i, kf21=^^j, kf22=^^k, kf23=^^1, kf24=^^2, kf25=^^3,
10254	kf26=^^4, kf27=^^5, kf28=^^6, kf29=^^7, kf3=^^s, kf30=^^8,
10255	kf31=^^9, kf32=^^\:, kf33=^^;, kf34=^^!, kf35=^^", kf36=^^#,
10256	kf37=^^$, kf38=^^%%, kf39=^^&, kf4=^^t, kf40=^^', kf41=^^(,
10257	kf42=^^), kf43=^^*, kf44=^^+, kf5=^^u, kf6=^^v, kf7=^^w,
10258	kf8=^^x, kf9=^^y, khome=^H,
10259
10260dgkeys+15|Private entry describing 15 DG mode special keys,
10261	kHOM=^^^H, kLFT=^^^Y, kRIT=^^^X, ka1=^^\\, ka3=^^], kc1=^^\^,
10262	kc3=^^_, kf1=^^q, kf10=^^z, kf11=^^{, kf12=^^|, kf13=^^},
10263	kf14=^^~, kf15=^^p, kf16=^^a, kf17=^^b, kf18=^^c, kf19=^^d,
10264	kf2=^^r, kf20=^^e, kf21=^^f, kf22=^^g, kf23=^^h, kf24=^^i,
10265	kf25=^^j, kf26=^^k, kf27=^^l, kf28=^^m, kf29=^^n, kf3=^^s,
10266	kf30=^^`, kf31=^^1, kf32=^^2, kf33=^^3, kf34=^^4, kf35=^^5,
10267	kf36=^^6, kf37=^^7, kf38=^^8, kf39=^^9, kf4=^^t, kf40=^^\:,
10268	kf41=^^;, kf42=^^<, kf43=^^=, kf44=^^>, kf45=^^0, kf46=^^!,
10269	kf47=^^", kf48=^^#, kf49=^^$, kf5=^^u, kf50=^^%%, kf51=^^&,
10270	kf52=^^', kf53=^^(, kf54=^^), kf55=^^*, kf56=^^+, kf57=^^\,,
10271	kf58=^^-, kf59=^^., kf6=^^v, kf60=^^\s, kf7=^^w, kf8=^^x,
10272	kf9=^^y,
10273
10274# Data General color terminals use the "Tektronix" color model.  The total
10275# number of colors varies with the terminal model, as does support for
10276# attributes used in conjunction with color.
10277
10278# Removed u7, u8 definitions since they conflict with tack:
10279#		Preserve user-defined colors in at least some cases.
10280#	u7=^^Fh,
10281#		Default is ACM mode.
10282#	u8=^^F}20^^Fi^^F}21,
10283#
10284dgunix+fixed|Fixed color info for DG D430C terminals in DG-UNIX mode,
10285	bce,
10286	colors#16, ncv#53, pairs#256,
10287	op=\036Ad\036Bd,
10288	setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10289	setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10290	setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
10291
10292dg+fixed|Fixed color info for DG D430C terminals in DG mode,
10293	use=dgunix+fixed,
10294
10295# Video attributes are coordinated using static variables set by "sgr", then
10296# checked by "op", "seta[bf]", and "set[bf]" to refresh the attribute settings.
10297# (D=dim, U=underline, B=blink, R=reverse.)
10298dg+color8|Color info for Data General D220 and D230C terminals in ANSI mode,
10299	bce,
10300	colors#8, ncv#16, pairs#64,
10301	op=\E[%?%gD%t2;%;%?%gU%t4;%;%?%gB%t5;%;%?%gR%t7;%;m,
10302	setab=\E[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10303	setaf=\E[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m,
10304	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,
10305	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,
10306
10307dg+color|Color info for Data General D470C terminals in ANSI mode,
10308	colors#16, ncv#53, pairs#256,
10309	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,
10310	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,
10311	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,
10312	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,
10313	use=dg+color8,
10314
10315dgmode+color8|Color info for Data General D220/D230C terminals in DG mode,
10316	bce,
10317	colors#8, ncv#16, pairs#64,
10318	op=\036Ad\036Bd,
10319	setab=\036B%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
10320	setaf=\036A%p1%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%{48}%+%c,
10321	setb=\036B%p1%{48}%+%c, setf=\036A%p1%{48}%+%c,
10322
10323dgmode+color|Color info for Data General D470C terminals in DG mode,
10324	colors#16, pairs#256,
10325	setab=\036B%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10326	setaf=\036A%p1%?%p1%{8}%<%t%{2}%&%?%p1%{1}%&%t%{4}%|%;%?%p1%{4}%&%t%{1}%|%;%;%{48}%+%c,
10327	use=dgmode+color8,
10328
10329dgunix+ccc|Configurable color info for DG D430C terminals in DG-UNIX mode,
10330	bce, ccc,
10331	colors#52, ncv#53, pairs#26,
10332	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,
10333	oc=\036RG01A00FF00000000\036RG01B00000000FF00\036RG01C007F00000000\036RG01D000000007F00,
10334	op=\036RF4831A\036RF2E31B\036RF1D31C\036RF3F31D,
10335	scp=\036RG2%p1%02X,
10336
10337# Colors are in the order:  normal, reverse, dim, dim + reverse.
10338dg+ccc|Configurable color info for DG D430C terminals in DG mode,
10339	bce, ccc,
10340	colors#52, ncv#53, pairs#26,
10341	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,
10342	oc=\036RG01\:00??00000000\036RG01;00000000??00\036RG01<007?00000000\036RG01=000000007?00,
10343	op=\036RF4831\:\036RF2>31;\036RF1=31<\036RF3?31=,
10344	scp=\036RG2%p1%{16}%/%{48}%+%c%p1%{16}%m%{48}%+%c,
10345
10346# The generic DG terminal type (an 8-bit-clean subset of the 6053)
10347# Initialization string 1 sets:
10348#	^R		- vertical scrolling enabled
10349#	^C		- blinking enabled
10350dg-generic|Generic Data General terminal in DG mode,
10351	am, bw, msgr, xon,
10352	cols#80, lines#24,
10353	bel=^G, blink=^N, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
10354	cup=\020%p2%c%p1%c, cuu1=^W, dim=^\, el=^K, ind=^J, is1=^R^C,
10355	mc0=^Q, nel=^J, rmso=^], rmul=^U, sgr0=^O^U^], smso=^\,
10356	smul=^T, use=dgkeys+11,
10357
10358# According to the 4.4BSD termcap file, the dg200 <cup> should be the
10359# termcap equivalent of \020%p2%{128}%+%c%p1%{128}%+%c (in termcap
10360# notation that's "^P%r%+\200%+\200").  Those \200s are suspicious,
10361# maybe they were originally nuls (which would fit).
10362
10363dg200|data general dasher 200,
10364	OTbs, am, bw,
10365	cols#80, lines#24,
10366	bel=^G, clear=^L, cr=^M, cub1=^Y, cud1=^Z, cuf1=^X,
10367	cup=\020%p2%c%p1%c, cuu1=^W, el=^K, home=^H, ind=^J,
10368	kcub1=^Y, kcud1=^Z, kcuf1=^X, kcuu1=^W, kf0=^^z, kf1=^^q,
10369	kf2=^^r, kf3=^^s, kf4=^^t, kf5=^^u, kf6=^^v, kf7=^^w, kf8=^^x,
10370	kf9=^^y, khome=^H, lf0=f10, nel=^J, rmso=^^E, rmul=^U,
10371	smso=^^D, smul=^T,
10372
10373# Data General 210/211 (and 410?)	from Lee Pearson (umich!lp) via BRL
10374dg210|dg-ansi|Data General 210/211,
10375	am,
10376	cols#80, lines#24,
10377	OTnl=\E[B, clear=\E[2J, cud1=\E[B, cup=\E[%i%p1%d;%p2%dH,
10378	cuu1=\E[A, ed=\E[J, el=\E[K, home=\E[H, kcub1=\E[D,
10379	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
10380	nel=\r\E[H\E[A\n, rmso=\E[0;m, rmul=\E[0;m, smso=\E[7;m,
10381	smul=\E[4;m,
10382# From: Peter N. Wan <ihnp4!gatech!gacsr!wan>
10383# courtesy of Carlos Rucalde of Vantage Software, Inc.
10384# (dg211: this had <cup=\020%r%.%>., which was an ancient termcap hangover.
10385# I suspect the d200 function keys actually work on the dg211, check it out.)
10386dg211|Data General d211,
10387	cnorm=^L, cvvis=^L^R, ht=^I, ind@, kbs=^Y, kf0@, kf1@, kf2@, kf3@,
10388	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, lf0@, nel=^M^Z, rmcup=^L,
10389	rmso=\036E$<\0/>, smcup=^L^R, smso=\036D$<5/>, use=dg200,
10390
10391# dg450 from Cornell (not official)
10392dg450|dg6134|data general 6134,
10393	cub1@, cuf1=^X, use=dg200,
10394
10395# Not official...
10396# Note: lesser Dasher terminals will not work with vi because vi insists upon
10397# having a command to move straight down from any position on the bottom line
10398# and scroll the screen up, or a direct vertical scroll command.  The 460 and
10399# above have both, the D210/211, for instance, has neither.  We must use ANSI
10400# mode rather than DG mode because standard UNIX tty drivers assume that ^H is
10401# backspace on all terminals.  This is not so in DG mode.
10402# (dg460-ansi: removed obsolete ":kn#6:"; also removed ":mu=\EW:", on the
10403# grounds that there is no matching ":ml:"
10404# fixed garbled ":k9=\E[00\:z:" capability -- esr)
10405dg460-ansi|Data General Dasher 460 in ANSI-mode,
10406	OTbs, am, msgr, ul,
10407	cols#80, it#8, lines#24,
10408	OTnl=\ED, blink=\E[5m, clear=\E[2J, cub1=^H, cud1=\E[B,
10409	cuf1=\E[C, cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P,
10410	dim=\E[2m, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
10411	ich1=\E[@, il1=\E[L, ind=\E[S, is2=^^F@, kbs=\E[D,
10412	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10413	kf0=\E[001z, kf1=\E[002z, kf2=\E[003z, kf3=\E[004z,
10414	kf4=\E[005z, kf5=\E[006z, kf6=\E[007z, kf7=\E[008z,
10415	kf8=\E[009z, kf9=\E[010z, khome=\E[H, lf0=f1, lf1=f2, lf2=f3,
10416	lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf9=f10, rev=\E[7m,
10417	ri=\E[T, rmso=\E[m, rmul=\E[05, sgr0=\E[m, smso=\E[7m,
10418	smul=\E[4m,
10419# From: Wayne Throop <mcnc!rti-sel!rtp47!throopw> (not official)
10420# Data General 605x
10421# Ought to work for a Model 6242, Type D210 as well as a 605x.
10422# Note that the cursor-down key transmits ^Z.  Job control users, beware!
10423# This also matches a posted description of something called a `Dasher 100'
10424# so there's a dg100 alias here.
10425# (dg6053: the 4.4BSD file had <cub1=^H>, <cud1=^J>, <cuf1=^S>. -- esr)
10426dg6053-old|dg100|data general 6053,
10427	OTbs, am, bw, ul,
10428	cols#80, lines#24,
10429	OTbc=^Y, bel=^G, clear=^L, cnorm=^L, cr=^M, cub1=^Y, cud1=^Z,
10430	cuf1=^X, cup=\020%p2%c%p1%c, cuu1=^W, cvvis=^L^R, el=^K,
10431	home=^H, ht=^I, is2=^R, kbs=^Y, kcub1=^Y, kcud1=^Z, kcuf1=^X,
10432	kcuu1=^W, kf0=^^q, kf1=^^r, kf2=^^s, kf3=^^t, kf4=^^u, kf5=^^v,
10433	kf6=^^w, kf7=^^x, kf8=^^y, kf9=^^z, khome=^H, rmcup=^L,
10434	rmso=\0^^E, rmul=^U, smcup=^L^R, smso=\0\0\0\0\0\036D,
10435	smul=^T,
10436
10437# (Some performance can be gained over the generic DG terminal type)
10438dg6053|6053|6053-dg|dg605x|605x|605x-dg|d2|d2-dg|Data General DASHER 6053,
10439	xon@,
10440	home=^P\0\0, ll=^P\0^W, use=dg-generic,
10441
10442# Like 6053, but adds reverse video and more keypad and function keys.
10443d200|d200-dg|Data General DASHER D200,
10444	bold=^^D^T, home@, ll@, rev=^^D, rmso=^^E^],
10445	sgr=\036%?%p1%p3%|%p6%|%tD%eE%;%?%p2%p6%|%t\024%e\025%;%?%p4%t\016%e\017%;%?%p1%p5%|%t\034%e\035%;,
10446	sgr0=\017\025\035\036E, smso=^^D^\, use=dgkeys+15,
10447	use=dg6053,
10448
10449# DASHER D210 series terminals in ANSI mode.
10450#	Reverse video, no insert/delete character/line, 7 bits/character only.
10451#
10452# Initialization string 1 sets:
10453#	<0		- scrolling enabled
10454#	<1		- blink enabled
10455#	<4		- print characters regardless of attributes
10456d210|d214|Data General DASHER D210 series,
10457	am, bw, msgr, xon,
10458	cols#80, lines#24,
10459	bel=^G, blink=\E[5m, bold=\E[4;7m, clear=\E[2J, cr=^M,
10460	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
10461	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
10462	cuu=\E[%p1%dA, cuu1=\E[A, dim=\E[2m, ed=\E[J, el=\E[K,
10463	el1=\E[1K, home=\E[H, ind=^J, is1=\E[<0;<1;<4l,
10464	ll=\E[H\E[A, nel=^J, rev=\E[7m, rmso=\E[m, rmul=\E[m,
10465	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m,
10466	sgr0=\E[m, smso=\E[2;7m, smul=\E[4m, use=dgkeys+7b,
10467
10468# DASHER D210 series terminals in DG mode.
10469# Like D200, but adds clear to end-of-screen and needs XON/XOFF.
10470d210-dg|d214-dg|Data General DASHER D210 series in DG mode,
10471	xon,
10472	ed=^^FF, use=d200-dg,
10473
10474# DASHER D211 series terminals in ANSI mode.
10475# Like the D210, but with 8-bit characters and local printer support.
10476#
10477# Initialization string 2 sets:
10478#	\E[2;1;1;1v
10479#		2;1	- 8 bit operations
10480#		1;1	- 8 bit (international) keyboard language
10481#	\E(B		- default primary character set (U.S. ASCII)
10482#	\E)4		- default secondary character set (international)
10483#	^O		- primary character set
10484#
10485d211|d215|Data General DASHER D211 series,
10486	km,
10487	is2=\E[2;1;1;1v\E(B\E)4\017, mc0=\E[i, use=dgkeys+8b,
10488	use=d210,
10489
10490# Initialization string 2 sets:
10491#	\E[2;0;1;0v
10492#		2;0	- 7 bit operations
10493#		1;0	- 7 bit (native) keyboard language
10494#	\E(0		- default character set (the keyboard native language)
10495#	^O		- primary character set
10496d211-7b|d215-7b|Data General DASHER D211 series in 7 bit mode,
10497	km@,
10498	is2=\E[2;0;1;0v\E(0\017, use=dgkeys+7b, use=d211,
10499
10500# Like the D210 series, but adds support for 8-bit characters.
10501#
10502# Reset string 2 sets:
10503#	^^N	- secondary character set
10504#	^^FS0>	- 8 bit international character set
10505#	^^O	- primary character set
10506#	^^FS00	- default character set (matching the native keyboard language)
10507#
10508d211-dg|d215-dg|Data General DASHER D211 series in DG mode,
10509	km,
10510	rs2=\036N\036FS0>\036O\036FS00, use=d210-dg,
10511
10512d216-dg|d216e-dg|d216+dg|d216e+dg|d217-dg|Data General DASHER D216 series in DG mode,
10513	use=d211-dg,
10514
10515# Enhanced DG mode with changes to be more UNIX compatible.
10516d216-unix|d216e-unix|d216+|d216e+|Data General DASHER D216+ in DG-UNIX mode,
10517	mc5i,
10518	it#8,
10519	acsc=a\177j$k"l!m#n)q+t'u&v(w%x*, blink=^^PI,
10520	clear=^^PH, cub1=^^PD, cud1=^^PB, cuf1=^^PC, cuu1=^^PA,
10521	el=^^PE, home=^^PF, hpa=\020%p1%c\177, ht=^I, ind=^J,
10522	is1=\022\003\036P@1, is3=\036Fz0, kHOM=^^Pf, kLFT=^^Pd,
10523	kPRT=^^P1, kRIT=^^Pc, kclr=^^PH, kcub1=^^PD, kcud1=^^PB,
10524	kcuf1=^^PC, kcuu1=^^PA, kel=^^PE, khome=^^PF, kprt=^^P0,
10525	mc0=\036F?9, mc4=^^Fa, mc5=^^F`, rmacs=\036FS00,
10526	rs2=\036N\036FS0E\036O\036FS00,
10527	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%;,
10528	sgr0=\036PJ\025\035\036E\036FS00, smacs=\036FS11,
10529	vpa=\020\177%p1%c, use=dgkeys+15, use=d216-dg,
10530d216-unix-25|d216+25|Data General DASHER D216+ in DG-UNIX mode with 25 lines,
10531	lines#25,
10532	is3=\036Fz2, use=d216+,
10533
10534d217-unix|Data General DASHER D217 in DG-UNIX mode,
10535	use=d216-unix,
10536d217-unix-25|Data General DASHER D217 in DG-UNIX mode with 25 lines,
10537	use=d216-unix-25,
10538
10539# DASHER D220 color terminal in ANSI mode.
10540# Like the D470C but with fewer colors and screen editing features.
10541#
10542# Initialization string 1 sets:
10543#	\E[<0;<1;<4l
10544#		<0	- scrolling enabled
10545#		<1	- blink enabled
10546#		<4	- print characters regardless of attributes
10547#	\E[m		- all attributes off
10548# Reset string 1 sets:
10549#	\Ec		- initial mode defaults (RIS)
10550#
10551d220|Data General DASHER D220,
10552	mc5i@,
10553	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
10554	use=dg+color8, use=d470c,
10555
10556d220-7b|Data General DASHER D220 in 7 bit mode,
10557	mc5i@,
10558	dl@, dl1@, il@, il1@, is1=\E[<0;<1;<4l\E[m, mc4@, mc5@, rs1=\Ec,
10559	use=dg+color8, use=d470c-7b,
10560
10561# Initialization string 3 sets:
10562#	- default cursor (solid rectangle)
10563# Reset string 2 sets:
10564#	^^N     - secondary character set
10565#	^^FS0>  - 8 bit international character set
10566#	^^O     - primary character set
10567#       ^^FS00  - default character set (matching the native keyboard language)
10568#
10569d220-dg|Data General DASHER D220 color terminal in DG mode,
10570	mc5i@,
10571	dl1@, home@, il1@, is2@, is3=\036FQ2, ll@, mc4@, mc5@, rs1@,
10572	rs2=\036N\036FS0>\036O\036FS00, use=dgmode+color8,
10573	use=d470c-dg,
10574
10575# DASHER D230C color terminal in ANSI mode.
10576# Like the D220 but with minor ANSI compatibility improvements.
10577#
10578d230c|d230|Data General DASHER D230C,
10579	blink=\E[5;50m, bold=\E[4;7;50m, dim=\E[2;50m, nel=^M^J,
10580	rev=\E[7;50m, rmkx=\E[2;1v, rmso=\E[50m, rmul=\E[50m,
10581	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%;,
10582	sgr0=\E[50m\E)4\017, smkx=\E[2;0v, smso=\E[2;7;50m,
10583	smul=\E[4;50m, use=dgkeys+7b, use=d220,
10584
10585d230c-dg|d230-dg|Data General DASHER D230C in DG mode,
10586	use=d220-dg,
10587
10588# DASHER D400/D450 series terminals.
10589# These add intelligent features like insert/delete to the D200 series.
10590#
10591# Initialization string 2 sets:
10592#	^^FQ2		- default cursor (solid rectangle)
10593#	^^FW		- character protection disabled
10594#	^^FJ		- normal (80 column) mode
10595#	^^F\^		- horizontal scrolling enabled (for alignment)
10596#	^^FX004?	- margins at columns 0 and 79
10597#	^^F]		- horizontal scrolling disabled
10598#	^^O		- primary character set
10599#	^^FS00		- default character set (the keyboard native language)
10600#	- (should reset scrolling regions, but that glitches the screen)
10601# Reset string 1 sets:
10602#	^^FA		- all terminal defaults except scroll rate
10603# Reset string 2 sets:
10604#	^^F]		- horizontal scrolling disabled
10605#	^^FT0		- jump scrolling
10606#
10607d400|d400-dg|d450|d450-dg|Data General DASHER D400/D450 series,
10608	mc5i,
10609	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\036FQ0,
10610	cnorm=\036FQ2, dch1=^^K, dl1=^^FI,
10611	enacs=\036N\036FS11\036O, home=^^FG, hpa=\020%p1%c\177,
10612	ich1=^^J, il1=^^FH,
10613	is2=\036FQ2\036FW\036FJ\036F\^\036FX004?\036F]\036O\036FS00,
10614	ll=\036FG\027, mc4=^^Fa, mc5=^^F`, ri=^^I, rmacs=^^O,
10615	rs1=^^FA, rs2=\036F]\036FT0,
10616	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%;,
10617	sgr0=\017\025\035\036E\036O, smacs=^^N,
10618	vpa=\020\177%p1%c, use=d210-dg,
10619
10620# DASHER D410/D460 series terminals in ANSI mode.
10621# These add a large number of intelligent terminal features.
10622#
10623# Initialization string 1 sets:
10624#	\E[<0;<1;<2;<4l
10625#		<0	- scrolling enabled
10626#		<1	- blink enabled
10627#		<2	- horizontal scrolling enabled (for alignment)
10628#		<4	- print characters regardless of attributes
10629#	\E[5;0v		- normal (80 column) mode
10630#	\E[1;1;80w	- margins at columns 1 and 80
10631#	\E[1;6;<2h
10632#		1	- print all characters even if protected
10633#		6	- character protection disabled
10634#		<2	- horizontal scrolling disabled
10635#	- (should reset scrolling regions, but that glitches the screen)
10636#
10637# Initialization string 2 sets:
10638#	\E[3;2;2;1;1;1v
10639#		3;2	- default cursor (solid rectangle)
10640#		2;1	- 8 bit operations
10641#		1;1	- international keyboard language
10642#	\E(B		- default primary character set (U.S. ASCII)
10643#	\E)4		- default secondary character set (international)
10644#	^O		- primary character set
10645#
10646#	Reset string 1 sets:
10647#	\Ec		- initial mode defaults (RIS)
10648#	\E[<2h		- horizontal scrolling disabled
10649#
10650# Reset string 2 sets:
10651#	\E[4;0;2;1;1;1v
10652#		4;0	- jump scrolling
10653#		2;1	- 8 bit operations
10654#		1;1	- 8 bit (international) keyboard language
10655#	\E(B		- default primary character set (U.S. ASCII)
10656#	\E)4		- default secondary character set (international)
10657#
10658d410|d411|d460|d461|Data General DASHER D410/D460 series,
10659	mc5i,
10660	acsc=j$k"l!m#n)q+t'u&v(w%x*, civis=\E[3;0v,
10661	cnorm=\E[3;2v, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
10662	dl1=\E[M, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
10663	is1=\E[<0;<1;<2;<4l\E[5;0v\E[1;1;80w\E[1;6;<2h,
10664	is2=\E[3;2;2;1;1;1v\E(B\E)4\017, mc4=\E[4i, mc5=\E[5i,
10665	ri=\EM, rmacs=\E)4\017, rs1=\Ec\E[<2h,
10666	rs2=\E[4;0;2;1;1;1v\E(B\E)4,
10667	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m\E)%?%p9%t6\016%e4\017%;,
10668	sgr0=\E[m\E)4\017, smacs=\E)6\016, use=d211,
10669
10670# Initialization string 2 sets:
10671#	\E[3;2;2;0;1;0v
10672#		3;2	- default cursor (solid rectangle)
10673#		2;0	- 7 bit operations
10674#		1;0	- 7 bit (native) keyboard language
10675#	\E(0		- default character set (the keyboard native language)
10676#	^O		- primary character set
10677#
10678# Reset string 2 sets:
10679#	\E[4;0;2;0;1;0v
10680#		4;0	- jump scrolling
10681#		2;0	- 7 bit operations
10682#		1;0	- 7 bit (native) keyboard language
10683#	\E(0		- default character set (the keyboard native language)
10684#
10685d410-7b|d411-7b|d460-7b|d461-7b|Data General DASHER D410/D460 series in 7 bit mode,
10686	km@,
10687	enacs=\E)6, is2=\E[3;2;2;0;1;0v\E(0\017, rmacs=^O,
10688	rs2=\E[4;0;2;0;1;0v\E(0,
10689	sgr=\E[%?%p1%p3%|%p6%|%t7;%;%?%p4%t5;%;%?%p2%p6%|%t4;%;%?%p1%p5%|%t2;%;m%?%p9%t\016%e\017%;,
10690	sgr0=\E[m\017, smacs=^N, use=dgkeys+7b, use=d410,
10691
10692d410-dg|d460-dg|d411-dg|d461-dg|Data General DASHER D410/D460 series in DG mode,
10693	km,
10694	enacs@, rmacs=\036FS00,
10695	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%;,
10696	sgr0=\017\025\035\036E\036FS00, smacs=\036FS11,
10697	use=d400-dg,
10698
10699# DASHER D410/D460 series terminals in wide (126 columns) ANSI mode.
10700#
10701# Initialization string 1 sets:
10702#	\E[<0;<1;<2;<4l
10703#		<0	- scrolling enabled
10704#		<1	- blink enabled
10705#		<2	- horizontal scrolling enabled (for alignment)
10706#		<4	- print characters regardless of attributes
10707#	\E[5;1v		- compressed (135 column) mode
10708#	\E[1;1;126	- margins at columns 1 and 126
10709#	\E[1;6;<2h
10710#		1	- print all characters even if protected
10711#		6	- character protection disabled
10712#		<2	- horizontal scrolling disabled
10713#	- (should reset scrolling regions, but that glitches the screen)
10714#
10715# Reset string 1 sets:
10716#	\Ec		- initial mode defaults (RIS)
10717#	\E[5;1v		- compressed (135 column) mode
10718#	\E[1;1;126w	- margins at columns 1 and 126
10719#	\E[<2h		- horizontal scrolling disabled
10720#
10721d410-w|d411-w|d460-w|d461-w|Data General DASHER D410/D460 series in wide mode,
10722	cols#126,
10723	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
10724	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410,
10725
10726d410-7b-w|d411-7b-w|d460-7b-w|d461-7b-w|Data General DASHER D410/D460 series in wide 7 bit mode,
10727	cols#126,
10728	is1=\E[<0;<1;<2;<4l\E[5;1v\E[1;1;126w\E[1;6;<2h,
10729	rs1=\Ec\E[5;1v\E[1;1;126w\E[<2h, use=d410-7b,
10730
10731d412-dg|d462-dg|d462e-dg|d412+dg|d462+dg|d413-dg|d463-dg|Data General DASHER D412/D462 series in DG mode,
10732	use=d410-dg,
10733
10734# These add intelligent features like scrolling regions.
10735d412-unix|d462-unix|d412+|d462+|Data General DASHER D412+/D462+ series in Unix mode,
10736	civis=\036FQ0, clear=^^FE, cnorm=\036FQ5,
10737	cup=\036FP%p2%2.2X%p1%2.2X, dch1=^^K, dl1=^^FI,
10738	home=^^FG, hpa=\036FP%p1%2.2XFF, ich1=^^J, il1=^^FH,
10739	is2=\036FQ5\036FW\036FJ\036F\^\036FX004F\036O\036FS00,
10740	ll=\036FG\036PA, mc0=^A, rc=\036F}11, ri=^^I,
10741	rs1=\036FA\036FT0, rs2=\036P@1, sc=\036F}10,
10742	vpa=\036FPFF%p1%2.2X,
10743	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
10744	use=d216+,
10745d412-unix-w|d462-unix-w|d412+w|d462+w|Data General DASHER D412+/D462+ series in wide Unix mode,
10746	cols#132,
10747	is2=\036FQ5\036FW\036FK\036F\^\036FX0083\036O\036FS00,
10748	rs2=\036P@1\036FK\036FX0083,
10749	wind=\036FB%?%p1%t%p1%2.2X1%;%p2%p1%-%{1}%+%2.2X1%?%{23}%p2%>%t001%;\036FX%p3%2.2X%p4%2.2X,
10750	use=d412-unix,
10751d412-unix-25|d462-unix-25|d412+25|d462+25|Data General DASHER D412+/D462+ series in Unix mode with 25 lines,
10752	lines#25,
10753	is3=\036Fz2,
10754	wind=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{24}%p2%>%t000%;\036FX%p3%2.2X%p4%2.2X,
10755	use=d462+,
10756d412-unix-s|d462-unix-s|d412+s|d462+s|Data General DASHER D412+/D462+ in Unix mode with status line,
10757	eslok, hs,
10758	clear=\036FG\036PH, fsl=\036F}01\022,
10759	is3=\036Fz2\036F}00\036FB180000\036F}01, ll@,
10760	tsl=\036F}00\036FP%p1%2.2X18\036PG,
10761	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,
10762	use=d462+,
10763
10764#	Relative cursor motions are confined to the current window,
10765#	which is not what the scrolling region specification expects.
10766#	Thus, relative vertical cursor positioning must be deleted.
10767d412-unix-sr|d462-unix-sr|d412+sr|d462+sr|Data General DASHER D412+/D462+ in Unix mode with scrolling region,
10768	csr=\036FB%?%p1%t%p1%2.2X0%;%p2%p1%-%{1}%+%2.2X0%?%{23}%p2%>%t000%;,
10769	cud1@, cuu1@, ll@, use=d462+,
10770
10771d413-unix|d463-unix|Data General DASHER D413/D463 series in DG-UNIX mode,
10772	use=d412-unix,
10773d413-unix-w|d463-unix-w|Data General DASHER D413/D463 series in wide DG-UNIX mode,
10774	use=d412-unix-w,
10775d413-unix-25|d463-unix-25|Data General DASHER D413/D463 series in DG-UNIX mode with 25 lines,
10776	use=d412-unix-25,
10777d413-unix-s|d463-unix-s|Data General DASHER D413/D463 in DG-UNIX mode with status line,
10778	use=d412-unix-s,
10779d413-unix-sr|d463-unix-sr|Data General DASHER D413/D463 in DG-UNIX mode with scrolling region,
10780	use=d412-unix-sr,
10781
10782d414-unix|d464-unix|Data General D414/D464 in DG-UNIX mode,
10783	use=d413-unix,
10784d414-unix-w|d464-unix-w|Data General D414/D464 in wide DG-UNIX mode,
10785	use=d413-unix-w,
10786d414-unix-25|d464-unix-25|Data General D414/D464 in DG-UNIX mode with 25 lines,
10787	use=d413-unix-25,
10788d414-unix-s|d464-unix-s|Data General D414/D464 in DG-UNIX mode with status line,
10789	use=d413-unix-s,
10790d414-unix-sr|d464-unix-sr|Data General D414/D464 in DG-UNIX mode with scrolling region,
10791	use=d413-unix-sr,
10792
10793d430c-dg|d430-dg|Data General D430C in DG mode,
10794	use=d413-dg, use=dg+fixed,
10795d430c-dg-ccc|d430-dg-ccc|Data General D430C in DG mode with configurable colors,
10796	use=d413-dg, use=dg+ccc,
10797
10798d430c-unix|d430-unix|Data General D430C in DG-UNIX mode,
10799	use=d413-unix, use=dgunix+fixed,
10800d430c-unix-w|d430-unix-w|Data General D430C in wide DG-UNIX mode,
10801	use=d413-unix-w, use=dgunix+fixed,
10802d430c-unix-25|d430-unix-25|Data General D430C in DG-UNIX mode with 25 lines,
10803	use=d413-unix-25, use=dgunix+fixed,
10804d430c-unix-s|d430-unix-s|Data General D430C in DG-UNIX mode with status line,
10805	use=d413-unix-s, use=dgunix+fixed,
10806d430c-unix-sr|d430-unix-sr|Data General D430C in DG-UNIX mode with scrolling region,
10807	use=d413-unix-sr, use=dgunix+fixed,
10808d430c-unix-ccc|d430-unix-ccc|Data General D430C in DG-UNIX mode with configurable colors,
10809	use=d413-unix, use=dgunix+ccc,
10810d430c-unix-w-ccc|d430-unix-w-ccc|Data General D430C in wide DG-UNIX mode with configurable colors,
10811	use=d413-unix-w, use=dgunix+ccc,
10812d430c-unix-25-ccc|d430-unix-25-ccc|Data General D430C in DG-UNIX mode with 25 lines and configurable colors,
10813	use=d413-unix-25, use=dgunix+ccc,
10814d430c-unix-s-ccc|d430-unix-s-ccc|Data General D430C in DG-UNIX mode with status line and configurable colors,
10815	use=d413-unix-s, use=dgunix+ccc,
10816d430c-unix-sr-ccc|d430-unix-sr-ccc|Data General D430C in DG-UNIX mode with scrolling region and configurable colors,
10817	use=d413-unix-sr, use=dgunix+ccc,
10818
10819# DASHER D470C color terminal in ANSI mode.
10820# Like the D460 but with 16 colors and without a compressed mode.
10821#
10822# Initialization string 1 sets:
10823#	\E[<0;<1;<2;<4l
10824#		<0	- scrolling enabled
10825#		<1	- blink enabled
10826#		<2	- horizontal scrolling enabled (for alignment)
10827#		<4	- print characters regardless of attributes
10828#	\E[1;1;80w	- margins at columns 1 and 80
10829#	\E[1;6;<2h
10830#		1	- print all characters even if protected
10831#		6	- character protection disabled
10832#		<2	- horizontal scrolling disabled
10833#	- (should reset scrolling regions, but that glitches the screen)
10834#
10835d470c|d470|Data General DASHER D470C,
10836	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
10837	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%;,
10838	use=dg+color, use=d460,
10839
10840d470c-7b|d470-7b|Data General DASHER D470C in 7 bit mode,
10841	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h,
10842	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%;,
10843	use=dg+color, use=d460-7b,
10844
10845# Initialization string 2 sets:
10846#	^^FQ2		- default cursor (solid rectangle)
10847#	^^FW		- character protection disabled
10848#	^^F\^		- horizontal scrolling enabled (for alignment)
10849#	^^FX004?	- margins at columns 0 and 79
10850#	^^F]		- horizontal scrolling disabled
10851#	^^O		- primary character set
10852#	^^FS00		- default character set (the keyboard native language)
10853#	- (should reset scrolling regions, but that glitches the screen)
10854#
10855d470c-dg|d470-dg|Data General DASHER D470C in DG mode,
10856	is2=\036FQ2\036FW\036F\^\036FX004?\036F]\036O\036FS00,
10857	use=dgmode+color, use=d460-dg,
10858
10859# DASHER D555 terminal in ANSI mode.
10860# Like a D411, but has an integrated phone.
10861d555|Data General DASHER D555,
10862	use=d411,
10863d555-7b|Data General DASHER D555 in 7-bit mode,
10864	use=d411-7b,
10865d555-w|Data General DASHER D555 in wide mode,
10866	use=d411-w,
10867d555-7b-w|Data General DASHER D555 in wide 7-bit mode,
10868	use=d411-7b-w,
10869d555-dg|Data General DASHER D555 series in DG mode,
10870	use=d411-dg,
10871
10872# DASHER D577 terminal in ANSI mode.
10873# Like a D411, but acts as a keyboard for serial printers ("KSR" modes).
10874d577|Data General DASHER D577,
10875	use=d411,
10876d577-7b|Data General DASHER D577 in 7-bit mode,
10877	use=d411-7b,
10878d577-w|Data General DASHER D577 in wide mode,
10879	use=d411-w,
10880d577-7b-w|Data General DASHER D577 in wide 7-bit mode,
10881	use=d411-7b-w,
10882
10883d577-dg|d578-dg|Data General DASHER D577/D578 series in DG mode,
10884	use=d411-dg,
10885
10886# DASHER D578 terminal.
10887# Like a D577, but without compressed mode; like a D470C in this respect.
10888#
10889# Initialization string 1 sets:
10890#	\E[<0;<1;<2;<4l
10891#		<0	- scrolling enabled
10892#		<1	- blink enabled
10893#		<2	- horizontal scrolling enabled (for alignment)
10894#		<4	- print characters regardless of attributes
10895#	\E[1;1;80w	- margins at columns 1 and 80
10896#	\E[1;6;<2h
10897#		1	- print all characters even if protected
10898#		6	- character protection disabled
10899#		<2	- horizontal scrolling disabled
10900#	- (should reset scrolling regions, but that glitches the screen)
10901#
10902d578|Data General DASHER D578,
10903	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577,
10904d578-7b|Data General DASHER D578 in 7-bit mode,
10905	is1=\E[<0;<1;<2;<4l\E[1;1;80w\E[1;6;<2h, use=d577-7b,
10906
10907#### Datamedia (dm)
10908#
10909# Datamedia was headquartered in Nashua, New Hampshire until it went
10910# out of business in 1993, but the ID plates on the terminals referred
10911# to the factory in Pennsauken, NJ.  The factory was sold to a PCB board
10912# manufacturer which threw out all information about the terminals.
10913#
10914
10915cs10|colorscan|Datamedia Color Scan 10,
10916	msgr,
10917	cols#80, lines#24,
10918	bel=^G, clear=\E[H\E[J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
10919	cup=\E[%i%p1%02d;%p2%02dH, cuu1=\E[A, ed=\E[J, el=\E[K,
10920	ind=^J, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
10921	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rmso=\E[m, rmul=\E[m,
10922	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
10923cs10-w|Datamedia Color Scan 10 with 132 columns,
10924	cols#132,
10925	cup=\E[%i%p1%02d;%p2%03dH, use=cs10,
10926
10927# (dm1520: removed obsolete ":ma=^\ ^_^P^YH:" -- esr)
10928dm1520|dm1521|datamedia 1520,
10929	OTbs, am, xenl,
10930	cols#80, it#8, lines#24,
10931	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
10932	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
10933	home=^Y, ht=^I, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
10934	khome=^Y,
10935# dm2500: this terminal has both <ich> and <smir>. Applications using
10936# termcap/terminfo directly (rather than through ncurses) might be confused.
10937dm2500|datamedia2500|datamedia 2500,
10938	OTbs, OTnc,
10939	cols#80, lines#24,
10940	bel=^G, clear=^^^^\177, cub1=^H, cud1=^J, cuf1=^\,
10941	cup=\014%p2%{96}%^%c%p1%{96}%^%c, cuu1=^Z,
10942	dch1=\020\010\030\035$<10*>,
10943	dl1=\020\032\030\035$<10*>, el=^W, home=^B,
10944	ich1=\020\034\030\035$<10*>,
10945	il1=\020\n\030\035\030\035$<15>, ind=^J, pad=\377,
10946	rmdc=^X^], rmir=\377\377\030\035$<10>, rmso=^X^],
10947	smdc=^P, smir=^P, smso=^N,
10948# dmchat is like DM2500, but DOES need "all that padding" (jcm 1/31/82)
10949# also, has a meta-key.
10950# From: <goldberger@su-csli.arpa>
10951# (dmchat: ":MT:" changed to ":km:" -- esr)
10952dmchat|dmchat version of datamedia 2500,
10953	km,
10954	dl1=\020\032\030\035$<2/>,
10955	il1=\020\n\030\035\030\035$<1*/>, use=dm2500,
10956# (dm3025: ":MT:" changed to ":km:" -- esr)
10957dm3025|datamedia 3025a,
10958	OTbs, km,
10959	cols#80, it#8, lines#24,
10960	bel=^G, clear=\EM$<2>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
10961	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
10962	dch1=\010$<6>, dl1=\EP\EA\EQ$<130>, ed=\EJ$<2>, el=\EK,
10963	home=\EH, ht=^I, il1=\EP\n\EQ$<130>, ind=^J, ip=$<6>,
10964	is2=\EQ\EU\EV, rmdc=\EQ, rmir=\EQ, rmso=\EO0, smdc=\EP,
10965	smir=\EP, smso=\EO1,
10966dm3045|datamedia 3045a,
10967	OTbs, am, eo, km@, ul, xenl,
10968	dch1=\EB$<6>, dl1@, il1@, is2=\EU\EV, kcuf1=\EC, kcuu1=\EA,
10969	kf0=\Ey\r, kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r,
10970	kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r, kf9=\Ex\r,
10971	khome=\EH, pad=\177, rmdc@, rmir=\EP, rmso@, smdc@, smso@,
10972	use=dm3025,
10973# Datamedia DT80 soft switches:
10974# 1	0=Jump  1=Smooth
10975# 	Autorepeat 	0=off  1=on
10976# 	Screen		0=Dark 1=light
10977# 	Cursor		0=u/l  1=block
10978#
10979# 2	Margin Bell	0=off  1=on
10980# 	Keyclick	0=off  1=on
10981# 	Ansi/VT52	0=VT52 1=Ansi
10982# 	Xon/Xoff	0=Off  1=On
10983#
10984# 3	Shift3		0=Hash 1=UK Pound
10985# 	Wrap		0=Off  1=On
10986# 	Newline		0=Off  1=On
10987# 	Interlace	0=Off  1=On
10988#
10989# 4	Parity		0=Odd  1=Even
10990# 	Parity		0=Off  1=On
10991# 	Bits/Char	0=7    1=8
10992# 	Power		0=60Hz 1=50Hz
10993#
10994# 5	Line Interface  0=EIA  1=Loop
10995# 	Aux Interface   0=EIA  1=Loop
10996# 	Local Copy    	0=Off  1=On
10997# 	Spare
10998#
10999# 6	Aux Parity	0=Odd  1=Even
11000# 	Aux Parity	0=Off  1=On
11001# 	Aux Bits/Char   0=7    1=8
11002# 	CRT Saver	0=Off  1=On
11003# dm80/1 is a vt100 lookalike, but it doesn't seem to need any padding.
11004dm80|dmdt80|dt80|datamedia dt80/1,
11005	clear=\E[2J\E[H, cud1=^J, cuf1=\E[C,
11006	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
11007	home=\E[H, mc0=\E[0i, mc4=\E[4i, mc5=\E[5i, ri=\EM,
11008	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
11009	use=vt100,
11010# except in 132 column mode, where it needs a little padding.
11011# This is still less padding than the vt100, and you can always turn on
11012# the ^S/^Q handshaking, so you can use vt100 flavors for things like
11013# reverse video.
11014dm80w|dmdt80w|dt80w|datamedia dt80/1 in 132 char mode,
11015	cols#132,
11016	clear=\E[H\E[2J$<50/>, cud1=^J,
11017	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<5/>,
11018	ed=\E[0J$<20/>, el=\E[0K$<20/>, use=dm80,
11019# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
11020dt80-sas|Datamedia DT803/DTX for SAS usage,
11021	am, bw,
11022	cols#80, lines#24,
11023	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
11024	bel=^G, clear=^L, cr=^M,
11025	csr=\E=%p1%{32}%+%c%{32}%c\E#1\E=%p2%{32}%+%c%{32}%c\E#2,
11026	cub1=^H, cud1=\EB, cuf1=^\,
11027	cup=\E=%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, dl1=\EM, ed=^K,
11028	el=^], ff=^L, home=^Y, ht=^I, hts=\E'1, il1=\EL, ind=\EB,
11029	is2=\E)0\E<\EP\E'0\E$2, kclr=^L, kcub1=^H, kcud1=^J,
11030	kcuf1=^\, kcuu1=^_, ked=^K, kel=^], khome=^Y, mc4=^O, mc5=^N,
11031	rev=\E$2\004, ri=\EI, rmacs=\EG, rmso=^X, sgr0=^X, smacs=\EF,
11032	smso=\E$2\004, tbc=\E'0,
11033
11034# Datamedia Excel 62, 64 from Gould/SEL UTX/32 via BRL
11035# These aren't end-all Excel termcaps; but do insert/delete char/line
11036# and name some of the extra function keys.  (Mike Feldman ccvaxa!feldman)
11037# The naming convention has been bent somewhat, with the use of E? (where
11038# E is for 'Excel') as # a name.  This was done to distinguish the entries
11039# from the other Datamedias in use here, and yet to associate a model of
11040# the Excel terminals with the regular datamedia terminals that share
11041# major characteristics.
11042excel62|excel64|datamedia Excel 62,
11043	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
11044	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
11045	use=dt80,
11046excel62-w|excel64-w|datamedia Excel 62 in 132 char mode,
11047	dch1=\E[P, kbs=^H, kcub1=^H, kcud1=^J, kf5=\EOu, kf6=\EOv,
11048	kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l, smir=\E[4h,
11049	use=dt80w,
11050excel62-rv|excel64-rv|datamedia Excel 62 in reverse video mode,
11051	dch1=\E[P, flash=\E[?5l\E[?5h, kbs=^H, kcub1=^H, kcud1=^J,
11052	kf5=\EOu, kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, rmir=\E[4l,
11053	smir=\E[4h, use=dt80,
11054
11055#### Falco
11056#
11057#	Falco Data Products
11058#	440 Potrero Avenue
11059#	Sunnyvale, CA 940864-196
11060#	Vox: (800)-325-2648
11061#	Fax: (408)-745-7860
11062#	Net: techsup@charm.sys.falco.com
11063#
11064# Current Falco models as of 1995 are generally ANSI-compatible and support
11065# emulations of DEC VT-series, Wyse, and Televideo types.
11066#
11067
11068# Test version for Falco ts-1. See <arpavax.hickman@ucb> for info
11069# This terminal was released around 1983 and was discontinued long ago.
11070# The standout and underline highlights are the same.
11071falco|ts1|ts-1|falco ts-1,
11072	OTbs, am,
11073	cols#80, it#8, lines#24,
11074	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
11075	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
11076	dl1=\ER, ed=\EY, el=\ET\EG0\010, home=^^, ht=^I, il1=\EE,
11077	ind=^J, is2=\Eu\E3, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
11078	kf0=^A0\r, rmir=\Er, rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0,
11079	smir=\Eq, smso=\Eg1, smul=\Eg1,
11080falco-p|ts1p|ts-1p|falco ts-1 with paging option,
11081	OTbs, am, da, db, mir, msgr, ul,
11082	cols#80, it#8, lines#24,
11083	bel=^G, cbt=\EI, clear=\E*, cr=^M, cub1=^H, cud1=\E[B,
11084	cuf1=\E[C, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E[A,
11085	dch1=\EW, dl1=\ER, ed=\EY, el=\ET\EG0\010\Eg0, ht=^I,
11086	il1=\EE, ind=^J, is2=\EZ\E3\E_c, kcub1=\E[D, kcud1=\E[B,
11087	kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, rmcup=\E_b, rmir=\Er,
11088	rmso=\Eg0, rmul=\Eg0, sgr0=\Eg0, smcup=\E_d, smir=\Eq,
11089	smso=\Eg4, smul=\Eg1,
11090# (ts100: I added <rmam>/<smam> based on the init string -- esr)
11091ts100|ts100-sp|falco ts100-sp,
11092	am, mir, msgr, xenl, xon,
11093	cols#80, it#8, lines#24, vt#3,
11094	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
11095	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
11096	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
11097	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11098	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
11099	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
11100	cuu1=\E[A$<2>, dch1=\E~W, dl1=\E~R, ed=\E[J$<50>,
11101	el=\E[K$<3>, el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H,
11102	ht=^I, hts=\EH, ich1=\E~Q, il1=\E~E, ind=^J, is1=\E~)\E~ea,
11103	ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn,
11104	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM,
11105	kf0=\EOy, kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
11106	kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
11107	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
11108	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
11109	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
11110	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
11111	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
11112	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
11113ts100-ctxt|falco ts-100 saving context,
11114	rmcup=\E~_b, smcup=\E~_d\E[2J, use=ts100,
11115
11116#### Florida Computer Graphics
11117#
11118
11119# Florida Computer Graphics Beacon System, using terminal emulator program
11120# "host.com", as provided by FCG.  This description is for an early release
11121# of the "host" program.  Known bug: <ed> clears the whole screen, so it's
11122# commented out.
11123
11124# From: David Bryant <cbosg!djb> 1/7/83
11125beacon|FCG Beacon System,
11126	am, da, db,
11127	cols#80, lines#32,
11128	bel=\ESTART\r\E37\r\EEND\r$<1>,
11129	blink=\ESTART\r\E61\,1\r\EEND\r, clear=\EZ$<10>, cr=^M,
11130	cub1=^H, cud1=^J, cuf1=\EV,
11131	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=\EU,
11132	dch1=\EW, dl1=\ER, el=\ET, home=\EH$<10>, ich1=\EQ, il1=\EE,
11133	ind=^J, rev=\ESTART\r\E59\,1\r\EEND\r, rmcup=,
11134	rmso=\ESTART\r\E70\,0\r\EEND\r$<20>,
11135	rmul=\ESTART\r\E60\,0\r\EEND\r,
11136	sgr0=\ESTART\r\E78\r\E70\,0\r\EEND\r$<20>,
11137	smcup=\ESTART\r\E2\,0\r\E12\r\EEND\r$<10>,
11138	smso=\ESTART\r\E70\,6\r\EEND\r$<20>,
11139	smul=\ESTART\r\E60\,1\r\EEND\r,
11140
11141#### Fluke
11142#
11143
11144# The f1720a differences from ANSI: no auto margin, destructive
11145# tabs, # of lines, funny highlighting and underlining
11146f1720|f1720a|fluke 1720A,
11147	xt,
11148	cols#80, lines#16, xmc#1,
11149	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
11150	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J,
11151	el=\E[K, ind=\ED, is2=\E[H\E[2J, kcub1=^_, kcud1=^],
11152	kcuf1=^^, kcuu1=^\, ri=\EM, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
11153	smso=\E[7m, smul=\E[4m,
11154
11155#### Liberty Electronics (Freedom)
11156#
11157#	Liberty Electronics
11158#	48089 Fremont Blvd
11159#	Fremont CA 94538
11160#	Vox: (510)-623-6000
11161#	Fax: (510)-623-7021
11162
11163# From: <faletti@berkeley.edu>
11164# (f100: added empty <acsc> to suppress a tic warning;
11165# made this relative to adm+sgr -- note that <invis> isn't
11166# known to work for f100 but does on the f110. --esr)
11167f100|freedom|freedom100|freedom model 100,
11168	OTbs, am, bw, hs, mir, msgr, xon,
11169	cols#80, lines#24,
11170	acsc=, bel=^G, cbt=\EI, clear=^Z, cr=^M, cub1=^H, cud1=^J,
11171	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11172	dch1=\EW, dl1=\ER$<11.5*>, dsl=\Eg\Ef\r, ed=\EY, el=\ET,
11173	flash=\Eb$<200>\Ed, fsl=^M, home=^^, hpa=\E]%p1%{32}%+%c,
11174	ht=^I, hts=\E1, il1=\EE$<8.5*>, ind=^J, ip=$<6>,
11175	is2=\Eg\Ef\r\Ed, kbs=^H, kcbt=\EI, kcub1=^H, kcud1=^V,
11176	kcuf1=^L, kcuu1=^K, kf1=^A@\r, kf10=^AI\r, kf2=^AA\r,
11177	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
11178	kf8=^AG\r, kf9=^AH\r, khome=^^, ri=\Ej, rmacs=\E$, rmir=\Er,
11179	smacs=\E%%, smir=\Eq, tbc=\E3, tsl=\Eg\Ef,
11180	vpa=\E[%p1%{32}%+%c, use=adm+sgr,
11181f100-rv|freedom-rv|freedom 100 in reverse video,
11182	flash=\Ed$<200>\Eb, is2=\Eg\Ef\r\Eb, use=f100,
11183# The f110 and f200 have problems with vi(1).  They use the ^V
11184# code for the down cursor key. When kcud1 is defined in terminfo
11185# as ^V, the Control Character Quoting capability (^V in insert mode)
11186# is lost! It cannot be remapped in vi because it is necessary to enter
11187# a ^V to to quote the ^V that is being remapped!!!
11188#
11189# f110/f200 users will have to decide whether
11190# to lose the down cursor key or the quoting capability. We will opt
11191# initially for leaving the quoting capability out, since use of VI
11192# is not generally applicable to most interactive applications
11193# (f110: added <ht>, <khome> & <kcbt> from f100 -- esr)
11194f110|freedom110|Liberty Freedom 110,
11195	bw@, eslok,
11196	it#8, wsl#80,
11197	blink=\EG2, bold=\EG0, civis=\E.1, cnorm=\E.2, cud1=^V,
11198	cvvis=\E.2, dim=\EG@, dl1=\ER, dsl=\Ef\r,
11199	flash=\Eb$<200/>\Ed, il1=\EE, ip@, is2@, kclr=^^, kdch1=\EW,
11200	kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf10@, kich1=\EQ,
11201	kil1=\EE, mc4=\Ea, mc5=\E`, ri=\EJ, rmacs=\E%%, rmir=\Er\EO,
11202	smacs=\E$, smir=\EO\Eq, smso=\EG<, tsl=\Ef, use=f100,
11203f110-14|Liberty Freedom 110 14inch,
11204	dch1@, use=f110,
11205f110-w|Liberty Freedom 110 - 132 cols,
11206	cols#132, use=f110,
11207f110-14w|Liberty Freedom 110 14in/132 cols,
11208	cols#132,
11209	dch1@, use=f110,
11210# (f200: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
11211f200|freedom200|Liberty Freedom 200,
11212	OTbs, am, eslok, hs, mir, msgr, xon,
11213	cols#80, it#8, lines#24, wsl#80,
11214	acsc=, bel=^G, blink=\EG2, bold=\EG0, cbt=\EI, civis=\E.0,
11215	clear=^Z, cnorm=\E.1, cr=^M,
11216	csr=\Em0%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^V,
11217	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
11218	cvvis=\E.1, dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY,
11219	el=\ET, flash=\Eo$<200/>\En, fsl=^M, home=^^,
11220	hpa=\E]%p1%{32}%+%c, hts=\E1, il1=\EE, ind=^J, kbs=^H,
11221	kclr=^^, kcub1=^H, kcud1=^V, kcuf1=^L, kcuu1=^K, kdch1=\EW,
11222	kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
11223	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
11224	kf8=^AG\r, kf9=^AH\r, kich1=\EQ, kil1=\EE, mc4=\Ea, mc5=\E`,
11225	ri=\EJ, rmacs=\E%%, rmir=\Er, smacs=\E$, smir=\Eq, smso=\EG<,
11226	tbc=\E3, tsl=\Ef, vpa=\E[%p1%{32}%+%c, use=adm+sgr,
11227f200-w|Liberty Freedom 200 - 132 cols,
11228	cols#132, use=f200,
11229# The f200 has the ability to reprogram the down cursor key. The key is
11230# reprogrammed to ^J (linefeed). This value is remembered in non-volatile RAM,
11231# so powering the terminal off and on will not cause the change to be lost.
11232f200vi|Liberty Freedom 200 for vi,
11233	flash=\Eb$<200/>\Ed, kcud1=^J, use=f200,
11234f200vi-w|Liberty Freedom 200 - 132 cols for vi,
11235	cols#132, use=f200vi,
11236
11237#### GraphOn (go)
11238#
11239#	Graphon Corporation
11240#	544 Division Street
11241#	Campbell, CA 95008
11242#	Vox: (408)-370-4080
11243#	Fax: (408)-370-5047
11244#	Net: troy@graphon.com (Troy Morrison)
11245#
11246#
11247# The go140 and go225 have been discontinued.  GraphOn now makes X terminals,
11248# including one odd hybrid that starts out life on power-up as a character
11249# terminal, than can be switched to X graphics mode (driven over the serial
11250# line) by an escape sequence.  No info on this beast yet.
11251# (go140: I added <rmam>/<smam> based on the init string -- esr)
11252go140|graphon go-140,
11253	OTbs,
11254	cols#80, it#8, lines#24,
11255	clear=\E[H\E[2J$<10/>, cub1=^H, cuf1=\E[C,
11256	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
11257	ed=\E[J$<10/>, el=\E[K, ht=^I,
11258	if=/usr/share/tabset/vt100, il1=\E[L,
11259	is2=\E<\E=\E[?3l\E[?7l\E(B\E[J\E7\E[;r\E8\E[m\E[q,
11260	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
11261	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
11262	rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
11263	rmul=\E[m, sgr0=\E[m, smam=\E[?7h, smir=\E[4h,
11264	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
11265go140w|graphon go-140 in 132 column mode,
11266	am,
11267	cols#132,
11268	is2=\E<\E=\E[?3h\E[?7h\E(B\E[J\E7\E[;r\E8\E[m\E[q,
11269	use=go140,
11270# Hacked up vt200 termcap to handle GO-225/VT220
11271# From: <edm@nwnexus.WA.COM>
11272# (go225: I added <rmam>/<smam> based on the init string -- esr)
11273go225|go-225|Graphon 225,
11274	OTbs, am, mir, xenl,
11275	cols#80, it#8, lines#25, vt#3,
11276	blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
11277	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
11278	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
11279	ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L, ind=\ED,
11280	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^H,
11281	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
11282	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, rc=\E8, rev=\E[7m,
11283	rf=/usr/share/tabset/vt100, ri=\EM, rmam=\E[?7l,
11284	rmcup=\E[!p\E[?7h\E[2;1;1#w, rmir=\E[4l, rmkx=\E>,
11285	rmso=\E[27m, rmul=\E[24m, rs1=\E[!p\E[?7h\E[2;1;1#w,
11286	sc=\E7, sgr0=\E[m, smam=\E[?7h, smcup=\E[2;0#w\E[1;25r,
11287	smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
11288
11289#### Harris (Beehive)
11290#
11291# Bletch.  These guys shared the Terminal Brain Damage laurels with Hazeltine.
11292# Their terminal group is ancient history now (1995) though the parent
11293# company is still in business.
11294#
11295
11296# Beehive documentation is undated and marked Preliminary and has no figures
11297# so we must have early Superbee2 (Model 600, according to phone conversation
11298# with mfr.). It has proved reliable except for some missing padding
11299# (notably after \EK and <nl> at bottom of screen).
11300#
11301# The key idea is that AEP mode is poison for <cup> & that US's in
11302# the local memory should be avoided like the plague. That means
11303# that the 2048 character local buffer is used as 25 lines of 80
11304# characters, period. No scrolling local memory, folks. It also
11305# appears that we cannot use naked INS LINE feature since it uses
11306# US. The sbi fakes <il1> with an 80-space insert that may be too
11307# slow at low speeds; also spaces get converted to \040 which is
11308# too long for some programs (not vi).  DEL LINE is ok but slow.
11309#
11310# The <nl> string is designed for last line of screen ONLY; cup to
11311# 25th line corrects the motion inherent in scrolling to Page 1.
11312#
11313# There is one understood bug. It is that the screen appears to
11314# pop to a new (blank) page after a <nel>, or leave a half-line
11315# ellipsis to a quad that is the extra 48 memory locations. The
11316# data received is dumped into memory but not displayed.  Not to
11317# worry if <cup> is being used; the lines not displayed will be,
11318# whenever the cursor is moved up there. Since <cup> is addressed
11319# relative to MEMORY of window, nothing is lost; but beware of
11320# relative cursor motion (<cuu1>,<cud1>,<cuf1>,<cub1>). Recommended,
11321# therefore, is setenv MORE -c .
11322#
11323# WARNING: Not all features tested.
11324#
11325# Timings are assembled from 3 sources. Some timings may reflect
11326# SB2/Model 300 that were used if more conservative.
11327# Tested on a Model 600 at 1200 and 9600 bd.
11328#
11329# The BACKSPACEkb option is cute. The NEWLINE key, so cleverly
11330# placed on the keyboard and useless because of AEP, is made
11331# into a backspace key. In use ESC must be pressed twice (to send)
11332# and sending ^C must be prefixed by ESC to avoid that weird
11333# transmit mode associated with ENTER key.
11334#
11335# IF TERMINAL EVER GOES CATATONIC with the cursor buzzing across
11336# the screen, then it has dropped into ENTER mode; hit
11337# RESET--ONLINE--!tset.
11338#
11339# As delivered this machine has a FATAL feature that will throw
11340# it into that strange transmit state (SPOW) if the space bar is
11341# hit after a CR is received, but before receiving a LF (or a
11342# few others).
11343#
11344# The circuits MUST be modified to eliminate the SPOW latch.
11345# This is done by strapping on chip A46 of the I/O board; cut
11346# the p.c. connection to Pin 5 and strap Pin 5 to Pin 8 of that
11347# chip. This mod has been checked out on a Mod 600 of Superbee II.
11348# With this modification absurdly high timings on cr are
11349# unnecessary.
11350#
11351# NOTE WELL that the rear panel switch should be set to CR/LF,
11352# not AEP!
11353#
11354sb1|beehive superbee,
11355	OTbs, am, bw, da, db, mir, ul, xsb,
11356	cols#80, lines#25, xmc#1,
11357	bel=^G, cbt=\E`$<650>, clear=\EH$<1>\EJ$<3>, cr=$<1>\r,
11358	cub1=^H, cud1=^J, cuf1=\EC$<3>, cup=\EF%p2%03d%p1%03d,
11359	cuu1=\EA$<3>, dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>,
11360	el=\EK$<3>, home=\EH$<1>, ht=^I, hts=\E1,
11361	il1=\EN\EL$<3>\EQ                                                                                \EP$<3> \EO\ER\EA$<3>,
11362	ind=^J, is2=\EE$<3>\EX\EZ\EO\Eb\Eg\ER, kbs=^_, kcub1=\ED,
11363	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdl1=\EM, ked=\EJ, kel=\EK,
11364	kf0=\E2, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu,
11365	kf7=\Ev, kf8=\Ew, kf9=\E1, khome=\EH, kich1=\EQ\EO,
11366	krmir=\ER, lf0=TAB CLEAR, lf9=TAB SET, rmcup=, rmir=\ER,
11367	rmso=\E_3, rmul=\E_3, sgr0=\E_3, smcup=\EO, smir=\EQ\EO,
11368	smso=\E_1, smul=\E_0, tbc=\E3,
11369sbi|superbee|beehive superbee at Indiana U.,
11370	xsb,
11371	cr=\r$<1>, il1=1\EN\EL$<9>\EQ \EP$<9> \EO\ER\EA,
11372	use=sb1,
11373# Alternate (older) description of Superbee - f1=escape, f2=^C.
11374# Note: there are at least 3 kinds of superbees in the world.  The sb1
11375# holds onto escapes and botches ^C's.  The sb2 is the best of the 3.
11376# The sb3 puts garbage on the bottom of the screen when you scroll with
11377# the switch in the back set to CRLF instead of AEP.  This description
11378# is tested on the sb2 but should work on all with either switch setting.
11379# The f1/f2 business is for the sb1 and the <xsb> can be taken out for
11380# the other two if you want to try to hit that tiny escape key.
11381# This description is tricky: being able to use cup depends on there being
11382# 2048 bytes of memory and the hairy <nl> string.
11383superbee-xsb|beehive super bee,
11384	am, da, db, xsb,
11385	cols#80, it#8, lines#25,
11386	clear=\EH\EJ$<3>, cnorm=^J, cr=\r$<1000>, cub1=^H, cud1=^J,
11387	cuf1=\EC, cup=\EF%p2%3d%p1%3d, cuu1=\EA$<3>,
11388	dch1=\EP$<3>, dl1=\EM$<100>, ed=\EJ$<3>, el=\EK$<3>,
11389	home=\EH, ht=^I, hts=\E1,
11390	ind=\n\0\0\0\n\0\0\0\EA\EK\0\0\0\ET\ET, is2=\EH\EJ,
11391	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ep, kf2=\Eq,
11392	kf3=\Er, kf4=\Es, kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
11393	khome=\EH, rmso=\E_3, sgr0=\E_3, smso=\E_1, tbc=\E3,
11394# This loses on lines > 80 chars long, use at your own risk
11395superbeeic|super bee with insert char,
11396	ich1=, rmir=\ER, smir=\EQ, use=superbee-xsb,
11397sb2|sb3|fixed superbee,
11398	xsb@, use=superbee,
11399
11400####  Beehive Medical Electronics
11401#
11402# Steve Seymour <srseymour@mindspring.com> writes (Wed, 03 Feb 1999):
11403# Regarding your question though; Beehive terminals weren't made by Harris.
11404# They were made by Beehive Medical Electronics in Utah. They went out of
11405# business in the early '80s.
11406#
11407# (OK, then, I don't know why a couple of these say "harris beehive".)
11408#
11409
11410# Reports are that most of these Beehive entries (except superbee) have not
11411# been tested and do not work right.  <rmso> is a trouble spot.  Be warned.
11412
11413# (bee: <ich1> was empty, which is obviously bogus -- esr)
11414beehive|bee|harris beehive,
11415	OTbs, am, mir,
11416	cols#80, lines#24,
11417	cbt=\E>, clear=\EE, cub1=^H, cud1=\EB, cuf1=\EC,
11418	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
11419	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, kbs=^H, kcbt=\E>,
11420	kclr=\EE, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
11421	kdch1=\EP, kdl1=\EM, kel=\EK, khome=\EH, kich1=\EQ, kil1=\EL,
11422	krmir=\E@, rmir=\E@, rmso=\Ed@, rmul=\Ed@, sgr0=\Ed@,
11423	smir=\EQ, smso=\EdP, smul=\Ed`,
11424# set tab is ^F, clear (one) tab is ^V, no way to clear all tabs.
11425# good grief - does this entry make :sg:/:ug: when it doesn't have to?
11426# look at those spaces in <rmso>/<smso>.  Seems strange to me...
11427# (beehive: <if=/usr/share/tabset/beehive> removed, no such file.  If you
11428# really care, cook up one using ^F -- esr)
11429beehive3|bh3m|beehiveIIIm|harris beehive 3m,
11430	OTbs, am,
11431	cols#80, it#8, lines#20,
11432	bel=^G, clear=^E^R, cr=^M, cub1=^H, cud1=^J, cuf1=^L, cuu1=^K,
11433	dl1=\021$<350>, ed=^R, el=^P, home=^E, ht=^I, hts=^F,
11434	il1=\023$<160>, ind=^J, ll=^E^K, rmso=\s^_, smso=^]\s,
11435beehive4|bh4|beehive 4,
11436	am,
11437	cols#80, lines#24,
11438	bel=^G, clear=\EE, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
11439	cuu1=\EA, ed=\EJ, el=\EK, home=\EH, ind=^J,
11440# There was an early Australian kit-built computer called a "Microbee".
11441# It's not clear whether this is for one of those or for a relative
11442# of the Beehive.
11443microb|microbee|micro bee series,
11444	OTbs, am,
11445	cols#80, it#8, lines#24,
11446	bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11447	cup=\EF%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
11448	el=\EK, ht=^I, ind=^J, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
11449	kcuu1=\EA, kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es, kf5=\Et,
11450	kf6=\Eu, kf7=\Ev, kf8=\Ew, kf9=\Ex, khome=\EH, rmso=\Ed@,
11451	rmul=\Ed@, sgr0=\Ed@, smso=\s\EdP, smul=\Ed`,
11452
11453# 8675, 8686, and bee from Cyrus Rahman
11454# (8675: changed k10, k11...k16 to k;, F1...F6 -- esr)
11455ha8675|harris 8675,
11456	is2=\ES\E#\E*\Eh\Em\E?\E1\E9\E@\EX\EU, kf1=^F,
11457	kf10=\Ed, kf11=^W, kf12=\ER, kf13=\EE, kf14=\EI, kf15=\Ei,
11458	kf16=\Eg, kf2=^P, kf3=^N, kf4=^V, kf5=^J, kf6=^T, kf7=^H,
11459	kf8=\177, kf9=\Ee, use=bee,
11460# (8686: changed k10, k11...k16 to k;, F1...F6; fixed broken continuation
11461# in :is: -- esr)
11462ha8686|harris 8686,
11463	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#,
11464	kf1=\002\Ep\003, kf10=\Ej, kf11=\EW, kf12=\002\E{\003,
11465	kf13=\002\E|\003, kf14=\002\E}\003, kf15=\002\E~\003,
11466	kf16=\002\E\177\003, kf2=\002\Eq\003, kf3=\002\Er\003,
11467	kf4=\002\Es\003, kf5=\E3, kf6=\EI, kf7=\ER, kf8=\EJ, kf9=\E(,
11468	use=bee,
11469
11470#### Hazeltine
11471#
11472# Hazeltine appears to be out of the terminal business as of 1995.  These
11473# guys were co-owners of the Terminal Brain Damage Hall Of Fame along with
11474# Harris. They have a hazeltine.com domain (but no web page there ) and can
11475# be reached at:
11476#
11477#	Hazeltine
11478#	450 East Pulaski Road
11479#	Greenlawn, New York 11740
11480#
11481# As late as 1993, manuals for the terminal product line could still be
11482# purchased from:
11483#
11484#	TRW Customer Service Division
11485#	15 Law Drive
11486#	P.O. Box 2076
11487#	Fairfield, NJ 07007-2078
11488#
11489# They're now (1998) a subsidiary of General Electric, operating under the
11490# marque "GEC-Marconi Hazeltine" and doing military avionics.  Web page
11491# at <http://www.gec.com/cpd/1ncpd.htm#1.55>.
11492#
11493
11494# Since <cuf1> is blank, when you want to erase something you
11495# are out of luck.  You will have to do ^L's a lot to
11496# redraw the screen.  h1000 is untested.  It doesn't work in
11497# vi - this terminal is too dumb for even vi.  (The code is
11498# there but it isn't debugged for this case.)
11499hz1000|hazeltine 1000,
11500	OTbs,
11501	cols#80, lines#12,
11502	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\s, home=^K,
11503	ind=^J,
11504# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
11505hz1420|hazeltine 1420,
11506	OTbs, am,
11507	cols#80, lines#24,
11508	bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=^J, cuf1=^P,
11509	cup=\E\021%p2%c%p1%{32}%+%c, cuu1=\E^L, dl1=\E^S,
11510	ed=\E^X, el=\E^O, ht=^N, il1=\E^Z, ind=^J, rmso=\E^Y,
11511	smso=\E^_,
11512# New "safe" cursor movement (11/87) from <cgs@umd5.umd.edu>.  Prevents
11513# freakout with out-of-range args and tn3270.  No hz since it needs to
11514# receive tildes.
11515hz1500|hazeltine 1500,
11516	OTbs, am, hz,
11517	cols#80, lines#24,
11518	bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11519	cup=~\021%p2%p2%?%{30}%>%t%{32}%+%;%{96}%+%c%p1%{96}%+%c,
11520	cuu1=~^L, dl1=~\023$<40>, ed=~\030$<10>, el=~^O, home=~^R,
11521	il1=~\032$<40>, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^P,
11522	kcuu1=~^L, khome=~^R, rmso=~^Y, smso=~^_,
11523# h1510 assumed to be in sane escape mode.  Else use h1500.
11524# (h1510: early versions of this entry apparently had "<rmso=\E^_>,
11525# <smso=\E^Y>, but these caps were commented out in 8.3; also,
11526# removed incorrect and overridden ":do=^J:" -- esr)
11527hz1510|hazeltine 1510,
11528	OTbs, am,
11529	cols#80, lines#24,
11530	bel=^G, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K, cuf1=^P,
11531	cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S, ed=\E^X,
11532	el=\E^O, il1=\E^Z, ind=^J,
11533# Hazeltine 1520
11534# The following switch settings are assumed for normal operation:
11535#	FULL		CR		U/L_CASE	ESCAPE
11536#	FORMAT_OFF	EOM_A_OFF	EOM_B_OFF	WRAPAROUND_ON
11537# Other switches may be set for operator convenience or communication
11538# requirements.
11539hz1520|Hazeltine 1520,
11540	OTbs, am, bw, msgr,
11541	cols#80, lines#24,
11542	bel=^G, bold=\E^_, clear=\E^\, cr=^M, cub1=^H, cud1=^J,
11543	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
11544	ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, kbs=^H,
11545	kclr=\E^\, kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L,
11546	kdl1=\E^S, ked=\E^X, kel=\E^O, khome=\E^R, kil1=\E^Z,
11547	rmso=\E^Y, rs1=\E$\E\005\E?\E\031, sgr0=\E^Y, smso=\E^_,
11548# This version works with the escape switch off
11549# (h1520: removed incorrect and overridden ":do=^J:" -- esr)
11550hz1520-noesc|hazeltine 1520,
11551	am, hz,
11552	cols#80, lines#24,
11553	bel=^G, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11554	cup=~\021%p2%c%p1%c$<1>, cuu1=~^L, dl1=~^S, ed=~^X, el=~^O,
11555	home=~^R, il1=~^Z, ind=^J, rmso=~^Y, smso=~^_,
11556# Note: the h1552 appears to be the first Hazeltine terminal which
11557# is not braindamaged.  It has tildes and backprimes and everything!
11558# Be sure the auto lf/cr switch is set to cr.
11559hz1552|hazeltine 1552,
11560	OTbs,
11561	cud1=^J, dl1=\EO, il1=\EE, kf1=\EP, kf2=\EQ, kf3=\ER, lf1=blue,
11562	lf2=red, lf3=green, use=vt52,
11563hz1552-rv|hazeltine 1552 reverse video,
11564	cud1=^J, rmso=\ET, smso=\ES, use=hz1552,
11565# Note: h2000 won't work well because of a clash between upper case and ~'s.
11566hz2000|hazeltine 2000,
11567	OTbs, OTnc, am,
11568	cols#74, lines#27,
11569	bel=^G, clear=~\034$<6>, cub1=^H, cud1=^J,
11570	cup=~\021%p2%c%p1%c, dl1=~\023$<6>, home=~^R,
11571	il1=~\032$<6>, ind=^J, pad=\177,
11572# Date: Fri Jul 23 10:27:53 1982.  Some unknown person wrote:
11573# I tested this termcap entry for the Hazeltine Esprit with vi. It seems
11574# to work ok. There is one problem though if one types a lot of garbage
11575# characters very fast vi seems not able to keep up and hangs while trying
11576# to insert. That's in insert mode while trying to insert in the middle of
11577# a line. It might be because the Esprit doesn't have insert char and delete
11578# char as a built in function. Vi has to delete to end of line and then
11579# redraw the rest of the line.
11580esprit|Hazeltine Esprit I,
11581	OTbs, am, bw,
11582	cols#80, lines#24,
11583	bel=^G, cbt=\E^T, clear=\E^\, cr=^M, cub1=^H, cud1=\E^K,
11584	cuf1=^P, cup=\E\021%p2%c%p1%c, cuu1=\E^L, dl1=\E^S,
11585	ed=\E^W, el=\E^O, home=\E^R, il1=\E^Z, ind=^J, is2=\E?, kbs=^H,
11586	kcub1=^H, kcud1=\E^K, kcuf1=^P, kcuu1=\E^L, kf0=^B0^J,
11587	kf1=^B1^J, kf2=^B2^J, kf3=^B3^J, kf4=^B4^J, kf5=^B5^J,
11588	kf6=^B6^J, kf7=^B7^J, kf8=^B8^J, kf9=^B9^J, khome=\E^R,
11589	lf0=0, lf1=1, lf2=2, lf3=3, lf4=4, lf5=5, lf6=6, lf7=7, lf8=8, lf9=9,
11590	rmkx=\E>, rmso=\E^Y, smkx=\E<, smso=\E^_,
11591esprit-am|hazeltine esprit auto-margin,
11592	am, use=esprit,
11593# Hazeltine Modular-1 from Cliff Shackelton <ittvax!ittral!shackelt> via BRL
11594# Vi it seems always wants to send a control J for "do" and it turned out
11595# that the terminal would work somewhat if the auto LF/CR was turned off.
11596# (hmod1: removed :dn=~^K: -- esr)
11597hmod1|Hazeltine Modular 1,
11598	OTbs, am, hz,
11599	cols#80, lines#24,
11600	bel=^G, cbt=~^T, clear=~^\, cr=^M, cub1=^H, cud1=~^K, cuf1=^P,
11601	cup=~\021%p2%c%p1%c, cuu1=~^L, dl1=~^S, home=~^R, il1=~^Z,
11602	ind=^J, kcub1=^H, kcud1=~^K, kcuf1=^P, kcuu1=~^L, khome=~^R,
11603	rc=~^Q, rmso=~^Y, sc=~^E, sgr0=~^Y, smso=~^_,
11604#
11605# Hazeltine Executive 80 Model 30 (1554?)
11606#	from  Will Martin <control@ALMSA-1.ARPA> via BRL
11607# Like VT100, except for different "am" behavior.
11608hazel|exec80|h80|he80|Hazeltine Executive 80,
11609	OTbs, OTpt, am,
11610	cols#80, it#8, lines#24, vt#3,
11611	OTnl=^J, bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
11612	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
11613	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
11614	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
11615	ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H, ht=^I,
11616	is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD, kcud1=\EOB,
11617	kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
11618	kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
11619	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
11620	rmkx=\E[?1l\E>, rmso=\E[m$<2/>, rmul=\E[m$<2/>,
11621	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
11622	sgr0=\E[m$<2/>, smkx=\E[?1h\E=, smso=\E[7m$<2/>,
11623	smul=\E[4m$<2/>,
11624
11625#### IBM
11626#
11627
11628ibm327x|line mode IBM 3270 style,
11629	gn,
11630	clear=^M^J, el=^M, home=^M,
11631
11632ibm3101|i3101|IBM 3101-10,
11633	OTbs, am, xon,
11634	cols#80, lines#24,
11635	bel=^G, clear=\EK, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11636	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
11637	el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB,
11638	kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH,
11639ibm3151|IBM 3151 display,
11640	is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B,
11641	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%;,
11642	sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162,
11643# From: Mark Easter <marke@fsi-ssd.csg.ssd.fsi.com> 29 Oct 1992
11644# removed kend, knp, kpp -TD
11645ibm3161|ibm3163|wy60-316X|wyse60-316X|IBM 3161/3163 display,
11646	OTbs, am, mir, msgr,
11647	cols#80, it#8, lines#24,
11648	acsc=j\352k\353l\354m\355n\356q\361t\364u\365v\366w\367x\370,
11649	bel=^G, blink=\E4D, bold=\E4H, clear=\EH\EJ, cr=^M, cub1=\ED,
11650	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
11651	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH, ind=^J,
11652	invis=\E4P, kbs=^H, kcbt=\E2, kclr=\EL\r, kctab=\E1,
11653	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\EQ,
11654	kdl1=\EO, ked=\EJ, kel=\EI, kf1=\Ea\r, kf10=\Ej\r,
11655	kf11=\Ek\r, kf12=\El\r, kf13=\E!a\r, kf14=\E!b\r,
11656	kf15=\E!c\r, kf16=\E!d\r, kf17=\E!e\r, kf18=\E!f\r,
11657	kf19=\E!g\r, kf2=\Eb\r, kf20=\E!h\r, kf21=\E!i\r,
11658	kf22=\E!j\r, kf23=\E!k\r, kf24=\E!l\r, kf3=\Ec\r,
11659	kf4=\Ed\r, kf5=\Ee\r, kf6=\Ef\r, kf7=\Eg\r, kf8=\Eh\r,
11660	kf9=\Ei\r, khome=\EH, khts=\E0, kich1=\EP \010, kil1=\EN,
11661	ktbc=\E 1, mc4=^P^T, mc5=^P^R, rev=\E4A, rmcup=\E>A,
11662	rmso=\E4@, rmul=\E4@,
11663	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<@%;,
11664	sgr0=\E4@\E<@, smcup=\E>A, smso=\E4A, smul=\E4B,
11665
11666ibm3161-C|IBM 3161-C NLS terminal using cartridge,
11667	rmcup=\E>B, s0ds=\E>B, s1ds=\E>A, smcup=\E>B, use=ibm3161,
11668ibm3162|IBM 3162 display,
11669	blink=\E4$a, bold=\E4(a, il1=\EN, invis=\E40a, rev=\E4!a,
11670	rmso=\E4>b, rmul=\E4=b, sgr0=\E4@, smso=\E4!a, smul=\E4"a,
11671	use=ibm3161-C,
11672
11673# This really should not use setab/setaf, but it is clear that the
11674# original terminfo does not toggle red/blue colors as in setb/setf.
11675ibm3164|i3164|IBM 3164,
11676	msgr,
11677	colors#8, pairs#64,
11678	op=\E4 "@, rmcup=\E!9(N\E>B, s0ds=\E>B, s1ds=\E>A,
11679	setab=\E4  %p1%{64}%+%c,
11680	setaf=\E4%?%p1%t %p1%{32}%+%c%e!'%;@,
11681	smcup=\E!9/N\E>B, use=ibm3161,
11682
11683ibm5151|wy60-AT|wyse60-AT|IBM 5151 Monochrome display,
11684	am, bw, msgr, xon,
11685	cols#80, it#8, lines#25,
11686	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
11687	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
11688	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11689	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11690	cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
11691	dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H,
11692	hpa=\E[%i%p1%dG, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
11693	indn=\E[%p1%dS, invis=\E[8m, is2=\Ec, kbs=^H, kcbt=\E[Z,
11694	kclr=\E[144q, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
11695	kcuu1=\E[A, kdch1=\E[P, ked=\E[148q, kel=\E[142q,
11696	kend=\E[146q, kf1=\E[001q, kf10=\E[010q, kf11=\E[011q,
11697	kf12=\E[012q, kf13=\E[013q, kf14=\E[014q, kf15=\E[015q,
11698	kf16=\E[016q, kf17=\E[017q, kf18=\E[018q, kf19=\E[019q,
11699	kf2=\E[002q, kf20=\E[020q, kf21=\E[021q, kf22=\E[022q,
11700	kf23=\E[023q, kf24=\E[024q, kf25=\E[025q, kf26=\E[026q,
11701	kf27=\E[027q, kf28=\E[028q, kf29=\E[029q, kf3=\E[003q,
11702	kf30=\E[030q, kf31=\E[031q, kf32=\E[032q, kf33=\E[033q,
11703	kf34=\E[034q, kf35=\E[035q, kf36=\E[036q, kf4=\E[004q,
11704	kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
11705	kf9=\E[009q, khome=\E[H, kich1=\E[139q, kil1=\E[140q,
11706	kind=\E[151q, knp=\E[154q, kpp=\E[150q, kri=\E[155q,
11707	krmir=\E[4l, rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmir=\E[4l,
11708	rmso=\E[m, rmul=\E[m, rs2=\Ec,
11709	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;m,
11710	sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11711
11712ibmaed|IBM Experimental display,
11713	OTbs, am, eo, msgr,
11714	cols#80, it#8, lines#52,
11715	clear=\EH\EK, cub1=^H, cud1=\EB, cuf1=\EC,
11716	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
11717	dl1=\EO, ed=\EJ, el=\EI, flash=\EG, home=\EH, ht=^I, ich1=\EP,
11718	il1=\EN, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
11719	rmso=\E0, sgr0=\E0, smso=\E0,
11720ibm-apl|apl|IBM apl terminal simulator,
11721	lines#25, use=dm1520,
11722# (ibmmono: this had an unknown `sb' boolean, I changed it to `bs'.
11723# Also it had ":I0=f10:" which pretty obviously should be "l0=f10" -- esr)
11724ibmmono|IBM workstation monochrome,
11725	eslok, hs,
11726	bold=\EZ, dl1=\EM, dsl=\Ej\EY8 \EI\Ek, fsl=\Ek, il1=\EL,
11727	invis=\EF\Ef0;\Eb0;, kbs=^H, kf0=\E<, kf1=\ES, kf2=\ET,
11728	kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\EY,
11729	khome=\EH, kich1=\0, kind=\EE, knp=\EE, kpp=\Eg, kri=\EG,
11730	lf0=f10, rev=\Ep, ri=\EA, rmso=\Ez, rmul=\Ew,
11731	sgr0=\Ew\Eq\Ez\EB, smso=\EZ, smul=\EW, tsl=\Ej\EY8%+ \Eo,
11732	use=ibm3101,
11733ibmega|IBM Enhanced Color Display,
11734	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11735	nel=^M^J, use=ibmmono,
11736# This color scheme is assumed in some recent IBM terminal descriptions
11737# (green on black, emulated on a 16-color terminal).
11738ibm+color|IBM color definitions,
11739	colors#8, ncv#3, pairs#64,
11740	op=\E[32m\E[40m,
11741	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%;,
11742	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%;,
11743ibm5154|IBM 5154 Color display,
11744	colors#8, ncv@, pairs#64,
11745	bold@, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
11746	use=ibm+color,
11747ibmega-c|ibm5154-c|IBM Enhanced Color Display with standout and underline,
11748	rmso=\EB, rmul=\EB, smso=\EF\Ef3;, smul=\EF\Ef2;,
11749	use=ibmmono,
11750ibmvga-c|IBM VGA display color termcap,
11751	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11752	nel=^M^J, use=ibmega-c,
11753ibmvga|IBM VGA display,
11754	cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J,
11755	nel=^M^J, use=ibmega,
11756# ibmapa* and ibmmono entries come from ACIS 4.3 distribution
11757rtpc|ibmapa16|IBM 6155 Extended Monochrome Graphics Display,
11758	lines#32,
11759	dsl=\Ej\EY@ \EI\Ek, tsl=\Ej\EY@%+ \Eo, use=ibmmono,
11760ibm6155|IBM 6155 Black & White display,
11761	blink@, bold@, use=ibm5151,
11762# Advanced Monochrome (6153) and Color (6154) Graphics Display:
11763ibmapa8c|ibmapa8|IBM 6154 Advanced Graphics Display,
11764	lines#31,
11765	dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo, use=ibmmono,
11766ibmapa8c-c|ibm6154-c|IBM 6154 Advanced Color Graphics Display,
11767	lines#31,
11768	dim=\EF\Ef7;, dsl=\Ej\EY? \EI\Ek, tsl=\Ej\EY?%+ \Eo,
11769	use=ibmega-c,
11770ibm6154|IBM 6154 Color displays,
11771	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
11772	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
11773	sgr0=\E[0;10m, use=ibm5154,
11774ibm6153|IBM 6153 Black & White display,
11775	blink@, bold=\E[12m, s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
11776	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;12%;m,
11777	sgr0=\E[0;10m, use=ibm5151,
11778ibm6153-90|IBM 6153 Black & White display,
11779	cols#90, lines#36,
11780	blink@, bold@, use=ibm5151,
11781ibm6153-40|IBM 6153 Black & White display,
11782	cols#40, lines#12, use=ibm6153-90,
11783ibm8512|ibm8513|IBM color VGA Terminal,
11784	am, mir, msgr,
11785	cols#80, it#8, lines#25,
11786	acsc=jjkkllmmnnqqttuuvvwwxx, blink=\E[5m, bold=\E[1m,
11787	clear=\E[H\E[J, cub1=\E[D, cud1=^J, cuf1=\E[C,
11788	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dl=\E[%p1%dM, dl1=\E[M,
11789	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, il=\E[%p1%dL,
11790	il1=\E[L, is2=\Eb\E[m\017\E[?7h, kcud1=\E[B, kcuu1=\E[A,
11791	kf0=\E[010q, kf1=\E[001q, kf2=\E[002q, kf3=\E[003q,
11792	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
11793	kf8=\E[008q, kf9=\E[009q, khome=\E[H, rc=\E[u, rev=\E[7m,
11794	rmacs=^O, rmam=\E[?7l, rmcup=\E[20h, rmdc=\E[4l,
11795	rmir=\E[4l, rmso=\E[m, rmul=\E[m,
11796	rs1=\Eb\E[m\017\E[?7h\E[H\E[J, sc=\E[s, sgr0=\E[m,
11797	smacs=^N, smam=\E[?7h, smcup=\E[20;4l\E[?7h\Eb,
11798	smdc=\E[4h, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11799	use=ibm8503,
11800hft-c|HFT with Color,
11801	colors#8, pairs#64,
11802	acsc=jjkkllmmnnqqttuuvvwwxx, s0ds=\E(B, s1ds=\E(0,
11803	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m\E(B,
11804	use=ibm5151, use=ibm+color,
11805hft-c-old|HFT with Color PC850,
11806	colors#8, pairs#64,
11807	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=ibm5151,
11808	use=ibm+color,
11809hft-old|AIWS High Function Terminal,
11810	am, xon,
11811	cols#80, lines#25,
11812	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
11813	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11814	cuu1=\E[A, dch1=\E[P, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
11815	ht=^I, ich1=\E[@, il1=\E[L, ind=^J, invis=\E[8m, kbs=^H,
11816	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
11817	kf1=\E[001q, kf2=\E[002q, kf3=\E[003q, kf4=\E[004q,
11818	kf5=\E[005q, kf6=\E[006q, kf7=\E[007q, kf8=\E[008q,
11819	kf9=\E[009q, khome=\E[H, knp=\E[153q, kpp=\E[159q,
11820	ktbc=\E[010q, rev=\E[7m, rmir=\E6, rmso=\E[m, rmul=\E[m,
11821	sgr0=\E[m, smir=\E6, smso=\E[7m, smul=\E[4m, use=ibm+color,
11822ibm-system1|system1|ibm system/1 computer,
11823	am, xt,
11824	cols#80, lines#24,
11825	bel=^G, clear=^Z, cub1=^H, cuf1=^\,
11826	cup=\005%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, home=^K,
11827	ind=^J,
11828#       lft-pc850 : IBM Low Function Terminal Device
11829#    lft "supports" underline, bold, and blink in the sense that the lft code
11830#    sets all the right bits.  HOWEVER, depending upon the adapter, these
11831#    attributes may or may not be supported by the device driver.
11832lft|lft-pc850|LFT-PC850|IBM LFT PC850 Device,
11833	am, bw, msgr, xon,
11834	cols#80, it#8, lines#25,
11835	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
11836	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
11837	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
11838	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
11839	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
11840	dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[2J, el=\E[0K,
11841	home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, il=\E[%p1%dL,
11842	il1=\E[L, ind=\ED, indn=\E[%p1%dS, invis=\E[8m, is2=\Ec,
11843	kbs=^H, kcbt=\E[Z, kclr=\E[144q, kcub1=\E[D, kcud1=\E[B,
11844	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, ked=\E[148q,
11845	kel=\E[142q, kend=\E[146q, kf1=\E[001q, kf10=\E[010q,
11846	kf11=\E[011q, kf12=\E[012q, kf13=\E[013q, kf14=\E[014q,
11847	kf15=\E[015q, kf16=\E[016q, kf17=\E[017q, kf18=\E[018q,
11848	kf19=\E[019q, kf2=\E[002q, kf20=\E[020q, kf21=\E[021q,
11849	kf22=\E[022q, kf23=\E[023q, kf24=\E[024q, kf25=\E[025q,
11850	kf26=\E[026q, kf27=\E[027q, kf28=\E[028q, kf29=\E[029q,
11851	kf3=\E[003q, kf30=\E[030q, kf31=\E[031q, kf32=\E[032q,
11852	kf33=\E[033q, kf34=\E[034q, kf35=\E[035q, kf36=\E[036q,
11853	kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
11854	kf8=\E[008q, kf9=\E[009q, khome=\E[H, kich1=\E[139q,
11855	kil1=\E[140q, kind=\E[151q, knp=\E[154q, kpp=\E[150q,
11856	kri=\E[155q, krmir=\E[4l, rev=\E[7m, ri=\EL, rin=\E[%p1%dT,
11857	rmacs=\E(B, rmir=\E[4l, rmso=\E[0m, rmul=\E[0m, rs2=\Ec,
11858	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%;,
11859	sgr0=\E[0m, smacs=\E(0, smir=\E[4h, smso=\E[7m, smul=\E[4m,
11860	tbc=\E[3g,
11861ibm5081|hft|IBM Megapel Color display,
11862	acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
11863	s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
11864ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
11865	eslok, hs,
11866	lines#33,
11867	dsl=\Ej\EYA \EI\Ek, fsl=\Ek, tsl=\Ej\EYA%+ \Eo,
11868	use=ibmega-c,
11869ibm8503|ibm8507|ibm8604|IBM 8503 B & W VGA display,
11870	use=hft-c,
11871ibm8514|IBM 8514/a color VGA display,
11872	eslok, hs,
11873	dsl=\Ej\EYI \EI\Ek, fsl=\Ek, tsl=\Ej\EYI%+ \Eo, use=hft,
11874ibm8514-c|IBM 8514 color display with standout and underline,
11875	eslok, hs,
11876	lines#41,
11877	cr=^M, cud1=^J, dsl=\Ej\EYI \EI\Ek, fsl=\Ek, ht=^I, ind=^J,
11878	kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, tsl=\Ej\EYI%+ \Eo,
11879	use=ibmega-c,
11880
11881#
11882# AIX entries.  IBM ships these with AIX 3.2.5.
11883# -- added rc, sc based on manpage -TD
11884aixterm|IBM Aixterm Terminal Emulator,
11885	eslok, hs,
11886	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
11887	fsl=\E[?F, rc=\E8, ri@, s0ds=\E(B, s1ds=\E(0, sc=\E7,
11888	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%;,
11889	sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6154,
11890aixterm-m|IBM AIXterm Monochrome Terminal Emulator,
11891	eslok, hs,
11892	acsc=jjkkllmmnnqqttuuvvwwxx, bold=\E[1m, dsl=\E[?E,
11893	fsl=\E[?F, ri@, s0ds=\E(B, s1ds=\E(0,
11894	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
11895	sgr0=\E[0;10m\E(B, tsl=\E[?%p1%dT, use=ibm6153,
11896aixterm-m-old|old IBM AIXterm Monochrome Terminal Emulator,
11897	eslok, hs,
11898	bold=\E[1m, dsl=\E[?E, fsl=\E[?F, ri@,
11899	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
11900	tsl=\E[?%p1%dT, use=ibm6153,
11901jaixterm|IBM Kanji Aixterm Terminal Eemulator,
11902	acsc@, use=aixterm,
11903jaixterm-m|IBM Kanji AIXterm Monochrome Terminal Emulator,
11904	acsc@, use=aixterm-m,
11905
11906#### Infoton/General Terminal Corp.
11907#
11908
11909# gt100 sounds like something DEC would come out with.  Let's hope they don't.
11910i100|gt100|gt100a|General Terminal 100A (formerly Infoton 100),
11911	OTbs, am,
11912	cols#80, lines#24,
11913	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
11914	cup=\Ef%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dl1=\EM,
11915	ed=\EJ, el=\EK, flash=\Eb$<200/>\Ea, home=\EH, il1=\EL,
11916	ind=^J, rmso=\Ea, smso=\Eb,
11917i400|infoton 400,
11918	OTbs, am,
11919	cols#80, lines#25,
11920	bel=^G, clear=\E[2J, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
11921	cup=%i\E[%p1%3d;%p2%3dH, cuu1=\E[A,
11922	dch1=\E[4h\E[2Q\E[P\E[4l\E[0Q, dl1=\E[M, el=\E[N,
11923	il1=\E[L, ind=^J, rmir=\E[4l\E[0Q, smir=\E[4h\E[2Q,
11924# (addrinfo: removed obsolete ":bc=^Z:" -- esr)
11925addrinfo,
11926	am,
11927	cols#80, lines#24,
11928	bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y,
11929	cup=\037%p1%{1}%-%c%p2%{1}%-%c, cuu1=^\, ed=^K, home=^H,
11930	ind=^J, ll=^H^\,
11931# (infoton: used to have the no-ops <lh#0>, <lw#0>, <nlab#0> -- esr)
11932infoton,
11933	am,
11934	cols#80, lines#24,
11935	bel=^G, clear=^L, cr=^M, cub1=^Z, cud1=^J, cuf1=^Y, cuu1=^\,
11936	ed=^K, ind=^J, ll=^H^\,
11937
11938# The ICL6402 was actually the Kokusai Display System 6402.
11939# The 6404 was the KDS7372 (color version of the 6402).
11940#
11941# ICL6404 control codes follow:
11942#
11943#code            function
11944#~~~~~~~~~~~     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11945#ctrl-A          set SOM position at cursor position
11946#ctrl-G          Bell
11947#ctrl-H          Backspace
11948#ctrl-I          Horiz tab
11949#ctrl-J          Linefeed
11950#ctrl-K          Cursor up
11951#ctrl-L          Cursor right
11952#ctrl-M          Carriage return
11953#ctrl-N          Disable xon/xoff to host
11954#ctrl-O          Enable xon/xoff to host
11955#ctrl-R          Enable bidirectional mode
11956#ctrl-T          Disable bidirectional mode
11957#ctrl-V          Cursor down
11958#ctrl-Z          Clear unprotected data to insert char
11959#ctrl-^          Cursor home
11960#ctrl-_          Newline
11961#
11962#ESC             lead-in char for multiple character command
11963#
11964#ESC space R     execute power on sequence
11965#ESC ! p1 p2     define scroll region:
11966#                p1 = scroll top    line:  20h - 37h
11967#                p1 = scroll bottom line:  20h - 37h
11968#ESC "           unlock keyboard
11969#ESC #           lock keyboard
11970#ESC $           Semi-graphics mode on
11971#ESC %           Semi-graphics mode off
11972#ESC &           protect mode on
11973#ESC '           protect mode off
11974#ESC (           write protect mode off (full intensity)
11975#ESC )           write protect mode on (half intensity)
11976#
11977#ESC *           clear screen
11978#ESC +           clear unprotected data to insert char
11979#ESC ,           clear unprotected data to half intensity spaces
11980#ESC - p1 p2 p3 p4     address cursor to page, row, column:
11981#                      p1 = page number  0 - 3
11982#                      p2 = row          20h - 7fh
11983#                      p3 = column (lo)  20h - 7fh
11984#                      p4 = column (hi)  20h - 21h (only 132 col)
11985#ESC . p1        set cursor style:
11986#                p1 = 0  invisible cursor
11987#                p1 = 1  block blinking cursor
11988#                p1 = 2  block steady cursor
11989#                p1 = 3  underline blinking cursor
11990#                p1 = 4  underline steady cursor
11991#ESC /           transmit cursor location (page, row, column)
11992#ESC 0 p1 p2 p3 p4     program edit key:
11993#                      p1 = edit key code: '@'-'S', '`'-'s'
11994#                      p2 p3 p4 = program data (3 bytes)
11995#
11996#ESC 1           set tab
11997#ESC 2           clear tab at cursor
11998#ESC 3           clear all tabs
11999#ESC 4           send unprotect line to cursor
12000#ESC 5           send unprotect page to cursor
12001#ESC 6           send line to cursor
12002#ESC 7           send page to cursor
12003#ESC 8 n         set scroll mode:
12004#                n = 0   set jump scroll
12005#                n = 1   set smooth scroll
12006#ESC 9 n         control display:
12007#                n = 0   display off
12008#                n = 1   display on
12009#ESC :           clear unprotected data to null
12010#ESC ;           clear unprotected data to insert char
12011#
12012#ESC <           keyclick on
12013#ESC = p1 p2     address cursor to row, column
12014#                p1 = row          20h - 7fh
12015#                p2 = column (lo)  20h - 7fh
12016#                p3 = column (hi)  20h - 21h (only 132 col)
12017#ESC >           keyclick off
12018#ESC ?           transmit cursor location (row, column)
12019#
12020#ESC @           copy print mode on
12021#ESC A           copy print mode off
12022#ESC B           block mode on
12023#ESC C           block mode off (conversation mode)
12024#ESC D F         set full duplex
12025#ESC D H         set half duplex
12026#ESC E           line insert
12027#ESC F p1 p2     set page colour (p1 = f/grnd, p2 = b/grnd)
12028#                0 = black, 1 = red,     2 = green, 3 = yellow
12029#                4 = blue,  5 = magenta, 6 = cyan,  7 = white
12030#ESC G n         set serial field attribute (n = 30h - 3Fh)
12031#ESC H n         full graphics mode:
12032#                n = 0  exit full graphics mode
12033#                n = 1  enter full graphics mode
12034#ESC I           back tab
12035#ESC J           back page
12036#ESC K           forward page
12037#
12038#ESC L           unformatted page print
12039#ESC M L         move window left  (132 col mode only)
12040#ESC M R         move window right (132 col mode only)
12041#ESC N           set page edit (clear line edit)
12042#ESC O           set line edit (clear page edit)
12043#ESC P           formatted page print
12044#ESC Q           character insert
12045#ESC R           line delete
12046#ESC S           send message unprotected only
12047#ESC T           erase line to insert char
12048#ESC U           set monitor mode   (see ESC X, ESC u)
12049#
12050#ESC V n         select video attribute mode:
12051#                n = 0   serial field attribute mode
12052#                n = 1   parallel character attribute mode
12053#ESC V 2 n       define line attribute:
12054#                n = 0   single width single height
12055#                n = 1   single width double height
12056#                n = 2   double width single height
12057#                n = 3   double width double height
12058#ESC V 3 n       select character font:
12059#                n = 0   system font
12060#                n = 1   user defined font
12061#ESC V 4 n       select screen mode:
12062#                n = 0   page screen mode
12063#                n = 1   virtual screen mode
12064#ESC V 5 n       control mouse mode:
12065#                n = 0   disable mouse
12066#                n = 1   enable sample mode
12067#                n = 2   send mouse information
12068#                n = 3   enable request mode
12069#ESC W           character delete
12070#ESC X           clear monitor mode (see ESC U, ESC u)
12071#ESC Y           erase page to insert char
12072#
12073#ESC Z n         send user/status line:
12074#                n = 0   send user line
12075#                n = 1   send status line
12076#                n = 2   send terminal ID
12077#ESC [ p1 p2 p3  set character attribute (parallel char mode):
12078#                p1: 0 = normal
12079#                    1 = blank
12080#                    2 = blink
12081#                    3 = blink blank (= blank)
12082#                    4 = reverse
12083#                    5 = reverse blank
12084#                    6 = reverse blink
12085#                    7 = reverse blink blank (= reverse blank)
12086#                    8 = underline
12087#                    9 = underline blank
12088#                    : = underline blink
12089#                    ; = underline blink blank
12090#                    < = reverse underline
12091#                    = = reverse underline blank
12092#                    > = reverse underline blink
12093#                    ? = reverse underline blink blank
12094#                p2, p3: f/grnd, b/grnd colour
12095#                (see ESC F for colours)
12096#                use ZZ for mono, eg.
12097#                    ESC [ 0 Z Z for normal
12098#                    ESC [ 4 Z Z for inverse etc.
12099#
12100#ESC \ n         set page size:
12101#                n = 1   24 lines/page
12102#                n = 2   48 lines/page
12103#                n = 3   72 lines/page
12104#                n = 4   96 lines/page
12105#ESC ] n         set Wordstar mode:
12106#                n = 0   normal (KDS7372) mode
12107#                n = 1   Wordstar mode
12108#
12109#ESC b           set foreground colour screen
12110#
12111#ESC c n         enter self-test mode:
12112#                n = 0   exit self test mode
12113#                n = 1   ROM test
12114#                n = 2   RAM test
12115#                n = 3   NVRAM test
12116#                n = 4   screen display test
12117#                n = 5   main/printer port test
12118#                n = 6   mouse port test
12119#                n = 7   graphics board test
12120#                n = 8   graphics memory test
12121#                n = 9   display all 'E'
12122#                n = :   display all 'H'
12123#ESC d           set background colour screen
12124#
12125#ESC e n         program insert char (n = insert char)
12126#ESC f text CR   load user status line with 'text'
12127#
12128#ESC g           display user status line on 25th line
12129#ESC h           display system status line on 25th line
12130#ESC i           tab
12131#ESC j           reverse linefeed
12132#ESC k n         duplex/local edit mode:
12133#                n = 0   duplex edit mode
12134#                n = 1   local edit mode
12135#ESC l n         select virtual screen:
12136#                n = 0   screen 1
12137#                n = 1   screen 2
12138#ESC m           save current config to NVRAM
12139#ESC n p1        select display screen:
12140#                p1 = 0  screen 1
12141#                p1 = 1  screen 2
12142#                p1 = 2  screen 3
12143#                p1 = 3  screen 4
12144#ESC o p1 p2     set characters/line and attribute:
12145#                p1 = 0  80 chars/line
12146#
12147#ESC o p1 p2     set characters/line and attribute:
12148#                p1 = 0  80 chars/line
12149#                p1 = 1  132 chars/line
12150#                p2 = 0  single width single height
12151#                p2 = 1  single width double height
12152#                p2 = 2  double width single height
12153#                p2 = 3  double width double height
12154#
12155#ESC q           insert mode on
12156#ESC r           edit mode on
12157#ESC s           send message all
12158#ESC t           erase line to null
12159#ESC u           clear monitor mode (see ESC U, ESC X)
12160#ESC v           autopage mode on
12161#ESC w           autopage mode off
12162#ESC x p1 p2 p3  define delimiter code...
12163#ESC y           erase page to null
12164#
12165#ESC z 2 p1 p2 p3 p4   draw quadrangle:
12166#                      p1 = starting row
12167#                      p2 = starting column
12168#                      p3 = end row
12169#                      p4 = end column
12170#
12171#ESC { p1 p2 p3 p4     configure main port
12172#                      (baud, stop bits, parity, word length)
12173#
12174#ESC | p1 p2 text Ctrl-Y    program function key with 'text':
12175#                        p1 = function key code:
12176#                             '1' - ';'  normal f1- f11
12177#                             '<' - 'F'  shifted f1 - f11
12178#                        p2 = program mode:
12179#                             1 = FDX
12180#                             2 = LOC
12181#                             3 = HDX
12182#                        Ctrl-Y = terminator
12183#                        (use Ctrl-P to escape ^P, ^Y )
12184#
12185#ESC } p1 p2 p3 p4     configure printer port
12186#                      (baud, stop bits, parity, word length)
12187#ESC ~           send system status
12188#
12189# Codes and info from Peter Disdale <pete@pdlmail.demon.co.uk> 12 May 1997
12190#
12191# Entry is by esr going solely on above information and is UNTESTED.
12192# This actually looks a lot like a Televideo 9xx.
12193# This entry uses page 0 and is monochrome; I'm not brave enough to try
12194# to make color work without a test terminal.  The <am> capability is a guess.
12195# The initialization string sets conversation mode, blinking underline cursor,
12196# full duplex, parallel attribute mode, display user status line, white
12197# foreground, black background, normal highlight.
12198#
12199icl6404|kds7372|icl6402|kds6402|ICL 6404 aka Kokusai Display Systems 7372,
12200	OTbs, am, hs,
12201	cols#80, lines#24,
12202	bel=^G, blink=\E[2ZZ, cbt=\EI, civis=\E.0, clear=\E*,
12203	cnorm=\E.3, cr=^M,
12204	csr=\E!%+%p1%{32}%+%p2%{32} cud1=\026, cuf1=^L,
12205	cup=\E=%p1%{32}%+%c%p2%{80}%m%{32}%+%c%p2%{80}%>%{32}%+%c,
12206	cuu1=^K, cvvis=\E.1, dch1=\EW, dl1=\ER, home=^^, ht=^I,
12207	hts=\E1, il1=\EE, invis=\E[1ZZ,
12208	is1=\EC\E.3\EDF\EV1\Eg\E[0ZZ, nel=^_, rev=\E[4ZZ,
12209	rmir=\Er, rmso=\E[%gh%{4}%^%Ph%gh%dZZ,
12210	rmul=\E[%gh%{8}%^%Ph%gh%dZZ, rs2=\Eo1,
12211	sgr=\E[%{0}%?%p1%t%{4}%|%;%?%p2%t%{8}%|%;%?%p3%t%{4}%|%;%?%p4%t%{2}%|%;%?%p7%t%{1}%|%;ZZ,
12212	sgr0=\E[0ZZ, smir=\Eq, smso=\E[8ZZ, smul=\E[8ZZ, tbc=\E3,
12213icl6404-w|kds7372-w|ICL 6404 aka Kokusai Display Systems 7372 132 cols,
12214	rs2=\Eo1, use=icl6404,
12215
12216#### Interactive Systems Corp
12217#
12218# ISC used to sell OEMed and customized hardware to support ISC UNIX.
12219# ISC UNIX still exists in 1995, but ISC itself is no more; they got
12220# bought out by Sun.
12221#
12222
12223# From: <cithep!eric>  Wed Sep 16 08:06:44 1981
12224# (intext: removed obsolete ":ma=^K^P^R^L^L ::bc=^_:", also the
12225# ":le=^_:" later overridden -- esr)
12226intext|Interactive Systems Corporation modified owl 1200,
12227	OTbs, am,
12228	cols#80, it#8, lines#24, xmc#1,
12229	bel=^G, cbt=^Y, clear=\014$<132>, cr=^M, cub1=^H, cud1=^J,
12230	cuf1=^^, cup=\017%p1%{32}%+%c%p2%{32}%+%c, cuu1=^\,
12231	dch1=\022$<5.5*>, dl1=\021$<5.5*>, ed=\026J$<5.5*>,
12232	el=^Kp^R, ht=^I, il1=\020$<5.5*>, ind=^J, ip=$<5.5*>, kbs=^H,
12233	kcub1=^_, kcud1=^J, kcuf1=^^, kcuu1=^\, kf0=^VJ\r, kf1=^VA\r,
12234	kf2=^VB\r, kf3=^VC\r, kf4=^VD\r, kf5=^VE\r, kf6=^VF\r,
12235	kf7=^VG\r, kf8=^VH\r, kf9=^VI\r, khome=^Z, rmir=^V<,
12236	rmkx=^V9, rmso=^V#\s, smir=^V;, smkx=\036\:\264\026%%,
12237	smso=^V$\,,
12238intext2|intextii|INTERACTIVE modified owl 1251,
12239	am, bw, ul,
12240	cols#80, lines#24, xmc#0,
12241	bel=^G, cbt=\E[Z, clear=\E[H\E[2J, cr=^M, cud1=\E[B,
12242	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
12243	dl1=\E[M, ed=\E[J, el=\E[K,
12244	flash=\E[;;;;;;;;;2;;u$<200/>\E[;;;;;;;;;1;;u,
12245	hpa=\E[%p1%{1}%+%dG, ht=^I, ich1=\E[@, il1=\E[L, ind=\E[S,
12246	kbs=^H, kcub1=\ED\r, kcud1=\EB\r, kcuf1=\EC\r, kcuu1=\EA\r,
12247	kf0=\E@\r, kf1=\EP\r, kf2=\EQ\r, kf3=\ES\r, kf4=\ET\r,
12248	kf5=\EU\r, kf6=\EV\r, kf7=\EW\r, kf8=\EX\r, kf9=\EY\r,
12249	khome=\ER\r, lf0=REFRSH, lf1=DEL CH, lf2=TABSET, lf3=GOTO,
12250	lf4=+PAGE, lf5=+SRCH, lf6=-PAGE, lf7=-SRCH, lf8=LEFT,
12251	lf9=RIGHT, ri=\E[T, rmso=\E[2 D, rmul=\E[2 D, smso=\E[6 D,
12252	smul=\E[18 D,
12253
12254#### Kimtron (abm, kt)
12255#
12256# Kimtron seems to be history, but as March 1998 these people are still
12257# offering repair services for Kimtron equipment:
12258#
12259#    Com/Pair Monitor Service
12260#    1105 N. Cliff Ave.
12261#    Sioux Falls, South Dakota 57103
12262#
12263#    WATS voice:  1-800/398-4946
12264#    POTS   fax: +1 605/338-8709
12265#    POTS voice: +1 605/338-9650
12266#         Email: <compair@sd.cybernex.net>
12267#  Internet/Web: <http://www.com-pair.com>
12268#
12269# Kimtron entries include (undocumented) codes for: enter dim mode,
12270# enter bold mode, enter reverse mode, turn off all attributes.
12271#
12272
12273# Kimtron ABM 85 added by Dual Systems
12274# (abm85: removed duplicated ":kd=^J:" -- esr)
12275abm85|Kimtron ABM 85,
12276	OTbs, am, bw, msgr,
12277	cols#80, it#8, lines#24, xmc#1,
12278	cbt=\EI, clear=\E*, cub1=^H, cud1=^J, cuf1=^L,
12279	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12280	dl1=\ER, ed=\Ey, el=\Et, ht=^I,
12281	if=/usr/share/tabset/stdcrt, il1=\EE,
12282	is2=\EC\EX\Eg\En\E%\Er\E(\Ek\Em\Eq, kbs=^H, kcub1=^H,
12283	kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^, rmir=\Er, rmso=\Ek,
12284	rmul=\Em, smir=\EQ, smso=\Ej, smul=\El,
12285# Kimtron ABM 85H added by Dual Systems.
12286# Some notes about the abm85h entries:
12287# 1) there are several firmware revs of 85H in the world. Use abm85h-old for
12288#    firmware revs prior to SP51
12289# 2) Make sure to use abm85h entry if the terminal is in 85h mode and the
12290#    abm85e entry if it is in tvi920 emulation mode. They are incompatible
12291#    in some places and NOT software settable i.e., <is2> can't fix it)
12292# 3) In 85h mode, the arrow keys and special functions transmit when
12293#    the terminal is in dup-edit, and work only locally in local-edit.
12294#    Vi won't swallow `del char' for instance, but <smcup> turns on
12295#    dup-edit anyway so that the arrow keys will work right. If the
12296#    arrow keys don't work the way you like, change <smcup>, <rmcup>, and
12297#    <is2>.  Note that 920E mode does not have software commands to toggle
12298#    between dup and local edit, so you get whatever was set last on the
12299#    terminal.
12300# 4) <flash> attribute is nice, but seems too slow to work correctly
12301#    (\Eb<pad>\Ed)
12302# 5) Make sure `hidden' attributes are selected. If `embedded' attributes
12303#    are selected, the <xmc@> entry should be removed.
12304# 6) auto new-line should be on (selectable from setup mode only)
12305#
12306# From: Erik Fair <fair@ucbarpa>  Sun Oct 27 07:21:05 1985
12307abm85h|Kimtron ABM 85H native mode,
12308	hs,
12309	xmc@,
12310	bel=^G, cnorm=\E.4, cvvis=\E.2, dim=\E), dsl=\Ee, flash@,
12311	fsl=^M, invis@,
12312	is2=\EC\EN\EX\024\016\EA\Ea\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\EG0\Ed\E.4\El,
12313	kcud1=^V, sgr0=\E(\EG0, smir=\EZ, tsl=\Eg\Ef, use=adm+sgr,
12314	use=abm85,
12315abm85e|Kimtron ABM 85H in 920E mode,
12316	xmc@,
12317	bel=^G, dim=\E), flash@,
12318	is2=\EC\EX\EA\E%\E9\Ee\Er\En\E"\E}\E'\E(\Ef\r\Ek\Eq\Em,
12319	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
12320abm85h-old|oabm85h|o85h|Kimtron ABM 85H with old firmware rev.,
12321	xmc@,
12322	bel=^G, dim=\E),
12323	is2=\E}\EC\EX\Ee\En\E%\Er\E(\Ek\Em\Eq\Ed\ET\EC\E9\EF,
12324	rev=\Ej, sgr0=\E(\Ek, smir=\EZ, use=abm85,
12325# From: <malman@bbn-vax.arpa>
12326# (kt7: removed obsolete :ma=^V^J^L :" -- esr)
12327kt7|kimtron model kt-7,
12328	OTbs, am,
12329	cols#80, it#8, lines#24,
12330	cbt=\EI, clear=^Z, cub1=^H, cud1=^V, cuf1=^L,
12331	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
12332	dl1=\ER, ed=\EY, el=\ET, fsl=\Eg, home=^^, ht=^I, ich1=\EQ,
12333	if=/usr/share/tabset/stdcrt, il1=\EE, invis@, is2=\El\E",
12334	kbs=^H, kcbt=\EI, kclr=^Z, kcub1=^H, kcud1=^V, kcuf1=^L,
12335	kcuu1=^K, kdch1=\EW, kdl1=\ER, ked=\EY, kel=\ET, kf0=^AI\r,
12336	kf1=^A@\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
12337	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
12338	kich1=\EQ, kil1=\EE, tsl=\Ef, use=adm+sgr,
12339# Renamed TB=^I to :ta:, BE=^G to :bl:, BS=^H to :kb:, N to :kS: (based on the
12340# other kt7 entry and the adjacent key capabilities).  Removed EE which is
12341# identical to :mh:.  Removed :ES=\EGD: which is some kind of highlight
12342# but we can't figure out what.
12343kt7ix|kimtron model kt-7 or 70 in IX mode,
12344	am, bw,
12345	cols#80, it#8, lines#25,
12346	acsc=jYk?lZm@nEqDt4uCvAwBx3, bel=^G, blink=\EG2, cbt=\EI,
12347	civis=\E.0, clear=\E*, cnorm=\E.3, cr=^M, cub1=^H, cud1=^V,
12348	cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12349	dch1=\EW, dim=\EG@, dl1=\ER, dsl=\Ef\r, ed=\EY, el=\ET, fsl=^M,
12350	home=^^, ht=^I, ich1=\EQ, il1=\EE, ind=^J,
12351	is2=\EG0\E s\017\E~, kbs=^H, kcbt=\EI, kclr=\E*,
12352	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdl1=\ER,
12353	ked=\EY, kel=\ET, kend=\EY, kf0=^AI\r, kf1=^A@\r, kf2=^AA\r,
12354	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
12355	kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\EQ, kil1=\EE, knp=\EJ,
12356	nel=^M^J, pulse=\EK, rmacs=\E%%, rmir=, rmso=\EG0, rmul=\EG0,
12357	sgr0=\EG0, smacs=\E$, smir=, smso=\EG4, smul=\EG8, tsl=\Ef,
12358
12359#### Microdata/MDIS
12360#
12361# This was a line of terminals made by McDonnell-Douglas Information Systems.
12362# These entries come direct from MDIS documentation.  I have edited them only
12363# to move primary names of the form p[0-9] * to aliases, and to comment out
12364# <rmacs>/<smacs> in a couple of entries without <acsc> strings.  I have
12365# also removed the change history; the last version indicates this is
12366# version 4.3 by A.Barkus, September 1990 (earliest entry is October 1989).
12367#
12368
12369# McDonnell Information Systems Terminal Family History
12370# =========================================
12371#
12372# Prism-1, Prism-2 and P99:
12373#       Ancient Microdata and CMC terminals, vaguely like Adds Regent 25.
12374#
12375# Prism-4 and Prism-5:
12376#       Slightly less ancient range of Microdata terminals. Follow-on from
12377#       Prism-2, but with many enhancements. P5 has eight display pages.
12378#
12379# Prism-6:
12380#       A special terminal for use with library systems, primarily in Germany.
12381#       Limited numbers. Similar functionality to P5 (except attributes?).
12382#
12383# Prism-7, Prism-8 and Prism-9:
12384#       More recent range of MDIS terminals, in which P7 and P8
12385#       replace the P4 & P5, with added functionality, and P9 is the flagship.
12386#       The P9 has two emulation modes - P8 and ANSI - and includes a
12387#       large number of the DEC VT220 control sequences. Both
12388#       P8 and P9 support 80c/24ln/8pg and 132cl/24li/4pg formats.
12389#
12390# Prism-12 and Prism-14:
12391#       Latest range, functionally very similar to the P9.  The P14 has a
12392#       black-on-white overscanning screen.
12393#
12394# The terminfo definitions given here are:
12395#
12396# p2      - Prism-2 (or Prism-1 or P99).
12397#
12398# p4      - Prism-4 (and older P7s & P8s).
12399# p5      - Prism-5 (or Prism-6).
12400#
12401# p7      - Prism-7.
12402# p8      - Prism-8 (in national or multinational mode).
12403# p8-w    - 132 column version of p8.
12404# p9      - Prism-9 in ANSI mode.
12405# p9-w    - 132 column version of p9.
12406# p9-8    - Prism-9 in Prism-8 emulation mode.
12407# p9-8-w  - As p9-8, but with 132 columns.
12408#
12409# p12     - Prism-12 in ANSI mode.
12410# p12-w   - 132 column version of p12.
12411# p12-m   - Prism-12 in MDC emulation mode.
12412# p12-m-w - As p12-m, but with 132 columns.
12413# p14     - Prism-14 in ANSI mode.
12414# p14-w   - 132 column version of p14.
12415# p14-m   - Prism-14 in MDC emulation mode.
12416# p14-m-w - As p14-m, but with 132 columns.
12417#
12418# p2: Prism-2
12419# -----------
12420#
12421# Includes Prism-1 and basic P99 without SP or MP loaded.
12422# The simplest form of Prism-type terminal.
12423# Basic cursor movement and clearing operations only.
12424# No video attributes.
12425# Notes:
12426#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
12427#  value up, followed by backspace.
12428#
12429prism2|MDC Prism-2,
12430	am, bw, msgr,
12431	cols#80, lines#24,
12432	bel=^G, clear=\014$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
12433	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,
12434	cuu1=^Z, ed=\EJ, el=\EK, home=^A,
12435	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12436	ind=^J, kbs=^H, khome=^A, vpa=\013%p1%{32}%+%c,
12437
12438# p4: Prism-4
12439# -----------
12440#
12441# Includes early versions of P7 & P8.
12442# Basic family definition for most Prisms (except P2 and P9 ANSI).
12443# Notes:
12444#  Horizontal cursor qualifiers of NUL, XON and XOFF are mapped to the next
12445#  value up, followed by backspace.
12446#  Cursor key definitions removed because they interfere with vi and csh keys.
12447#
12448prism4|p4|P4|MDC Prism-4,
12449	am, bw, hs, mc5i, msgr,
12450	cols#80, lines#24, wsl#72, xmc#1,
12451	bel=^G, blink=^CB, civis=^]\344, clear=\014$<20>,
12452	cnorm=^]\342, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
12453	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,
12454	cuu1=^Z, dim=^CA, dsl=\035\343\035\345, ed=\EJ, el=\EK,
12455	fsl=^]\345, home=^A,
12456	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c,
12457	ind=^J, invis=^CH, kbs=^H, khome=^A, mc0=\EU, mc4=\ET, mc5=\ER,
12458	rev=^CD, rmso=^C\s, rmul=^C\s,
12459	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%;,
12460	sgr0=^C\s, smso=^CD, smul=^CP, tsl=^]\343,
12461	vpa=\013%p1%{32}%+%c,
12462
12463# p5: Prism-5
12464# -----------
12465#
12466# Same definition as p4. Includes Prism-6 (not tested!).
12467# Does not use any multi-page features.
12468#
12469prism5|p5|P5|MDC Prism-5,
12470	use=p4,
12471
12472# p7: Prism-7
12473# -----------
12474#
12475# Similar definition to p4. Uses ANSI cursor motion to avoid network problems.
12476# Notes:
12477#  Use p4 for very early models of P7.
12478#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12479#
12480prism7|p7|P7|MDC Prism-7,
12481	cup=\E[%i%p1%d;%p2%dH, hpa@, vpa@, use=p4,
12482
12483# p8: Prism-8
12484# -----------
12485#
12486# Similar definition to p7. Uses ANSI cursor motion to avoid network problems.
12487# Supports national and multinational character sets.
12488# Notes:
12489#  Alternate char set operations only work in multinational mode.
12490#  Use p4 for very early models of P8.
12491#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12492# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
12493#
12494prism8|p8|P8|MDC Prism-8,
12495	cup=\E[%i%p1%d;%p2%dH, hpa=\E[%i%p1%d`, is2=\E[<12h,
12496	vpa=\E[%i%p1%dd, use=p4,
12497
12498# p8-w: Prism-8 in 132 column mode
12499# --------------------------------
12500#
12501# 'Wide' version of p8.
12502# Notes:
12503#  Rev-index removed; can't send nulls to terminal in 8-bit modes.
12504#
12505prism8-w|p8-w|P8-W|MDC Prism-8 in 132 column mode,
12506	cols#132,
12507	is2=\E[<12h\E[<14h, use=p8,
12508
12509# p9: Prism-9 in ANSI mode
12510# -------------------------
12511#
12512# The "flagship" model of this generation of terminals.
12513# ANSI X3.64 (ISO 6429) standard sequences, plus many DEC VT220 ones.
12514# Notes:
12515#  Tabs only reset by "reset". Otherwise assumes default (8 cols).
12516#  Fixes to deal with terminal firmware bugs:
12517#  . 'ri' uses insert-line since rev index doesn't always
12518#  . 'sgr0' has extra '0' since esc[m fails
12519#  . 'fsl' & 'dsl' use illegal char since cr is actioned wrong on line 25
12520#  Not covered in the current definition:
12521#  . Labels
12522#  . Programming Fn keys
12523#  . Graphic characters (defaults correctly to vt100)
12524#  . Padding values (sets xon)
12525# (esr: commented out <smacs>/<rmacs> because there's no <acsc>)
12526#
12527prism9|p9|P9|MDC Prism-9 in ANSII mode,
12528	am, bw, hs, mc5i, msgr, xenl, xon,
12529	cols#80, it#8, lines#24, vt#3, wsl#72,
12530	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[<4l,
12531	clear=^L, cnorm=\E[<4h, cr=^M, csr=\E[%i%p1%d;%p2%d%%v,
12532	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
12533	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
12534	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
12535	dl=\E[%p1%dM, dl1=\E[M, dsl=\E[%}\024, ech=\E[%p1%dX,
12536	ed=\E[J$<10>, el=\E[K, fsl=^T, home=\E[H, hpa=\E[%i%p1%d`,
12537	ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[L, ind=^J,
12538	is2=\E[&p\E[<12l\E F, kbs=^H, kclr=^L, kcub1=\E[D,
12539	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[11~,
12540	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
12541	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
12542	kf18=\E[32~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
12543	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
12544	khome=\E[H, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=^M^J,
12545	prot=\E[32%{, rc=\E[%z, rep=\E[%p2%db%p1%c, rev=\E[7m,
12546	ri=\E[L, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
12547	rs2=\E[&p\E[<12l\E F\E[3g\E[9;17;25;33;41;49;57;65;73 N,
12548	sc=\E[%y,
12549	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%;,
12550	sgr0=\E[0m, smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
12551	tsl=\E[%i%p1%d%%}, vpa=\E[%i%p1%dd,
12552
12553# p9-w: Prism-9 in 132 column mode
12554# --------------------------------
12555#
12556# 'Wide' version of p9.
12557#
12558prism9-w|p9-w|P9-W|MDC Prism-9 in 132 column mode,
12559	cols#132,
12560	is2=\E[&p\E[<12l\E F\E[<14h,
12561	rs2=\E[&p\E[<12l\E F\E[<14h, use=p9,
12562
12563# p9-8: Prism-9 in P8 mode
12564# ------------------------
12565#
12566# P9 terminal in P8 emulation mode.
12567# Similar to p8 definition.
12568# Insertion and deletion operations possible.
12569#
12570prism9-8|p9-8|P9-8|MDC Prism-9 in P8 mode,
12571	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12572	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8,
12573
12574# p9-8-w: Prism-9 in P8 and 132 column modes
12575# ------------------------------------------
12576#
12577# P9 terminal in P8 emulation mode and 132 column mode.
12578#
12579prism9-8-w|p9-8-w|P9-8-W|MDC Prism-9 in Prism 8 emulation and 132 column mode,
12580	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
12581	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, use=p8-w,
12582
12583# p12: Prism-12 in ANSI mode
12584# ---------------------------
12585#
12586# See p9 definition.
12587#
12588prism12|p12|P12|MDC Prism-12 in ANSI mode,
12589	use=p9,
12590
12591# p12-w: Prism-12 in 132 column mode
12592# ----------------------------------
12593#
12594# 'Wide' version of p12.
12595#
12596prism12-w|p12-w|P12-W|MDC Prism-12 in 132 column mode,
12597	use=p9-w,
12598
12599# p12-m: Prism-12 in MDC emulation mode
12600# -------------------------------------
12601#
12602# P12 terminal in MDC emulation mode.
12603# Similar to p8 definition.
12604# Insertion and deletion operations possible.
12605#
12606prism12-m|p12-m|P12-M|MDC Prism-12 in MDC emulation mode,
12607	use=p9-8,
12608
12609# p12-m-w: Prism-12 in MDC emulation and 132 column modes
12610# -------------------------------------------------------
12611#
12612# P12 terminal in MDC emulation mode and 132 column mode.
12613#
12614prism12-m-w|p12-m-w|P12-M-W|MDC Prism-12 in MDC emulation and 132 column mode,
12615	use=p9-8-w,
12616
12617# p14: Prism-14 in ANSII mode
12618# ---------------------------
12619#
12620# See p9 definition.
12621#
12622prism14|p14|P14|MDC Prism-14 in ANSII mode,
12623	use=p9,
12624
12625# p14-w: Prism-14 in 132 column mode
12626# ----------------------------------
12627#
12628# 'Wide' version of p14.
12629#
12630prism14-w|p14-w|P14-W|MDC Prism-14 in 132 column mode,
12631	use=p9-w,
12632
12633# p14-m: Prism-14 in MDC emulation mode
12634# -------------------------------------
12635#
12636# P14 terminal in MDC emulation mode.
12637# Similar to p8 definition.
12638# Insertion and deletion operations possible.
12639#
12640prism14-m|p14-m|P14-M|MDC Prism-14 in MDC emulation mode,
12641	use=p9-8,
12642
12643# p14-m-w: Prism-14 in MDC emulation and 132 column modes
12644# -------------------------------------------------------
12645#
12646# P14 terminal in MDC emulation mode and 132 column mode.
12647#
12648prism14-m-w|p14-m-w|P14-M-W|MDC Prism-14 in MDC emulation and 132 column mode,
12649	use=p9-8-w,
12650
12651# End of McDonnell Information Systems Prism definitions
12652
12653# These things were popular in the Pick database community at one time
12654# From: George Land <georgeland@aol.com> 24 Sep 1996
12655p8gl|prism8gl|McDonnell-Douglas Prism-8 alternate definition,
12656	am, bw, hs, mir,
12657	cols#80, lines#24, ma#1, wsl#78, xmc#1,
12658	bel=^G, blink=^CB, clear=^L, cr=^M, cub1=^U, cud1=^J, cuf1=^F,
12659	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, dch1=\s^H, dim=^CA, dl1=^P,
12660	ed=\EJ, el=\EK, home=^A, ind=^J, invis=^CH, kbs=^H, kcub1=^U,
12661	kcud1=^J, kcuf1=^F, kcuu1=^Z, kdch1=\s^H, kdl1=^P, ked=\EJ,
12662	kel=\EK, kf1=^A@\r, kf10=^AI\r, kf12=^AJ\r, kf13=^AK\r,
12663	kf14=^AL\r, kf15=^AM\r, kf16=^AN\r, kf17=^AO\r, kf2=^AA\r,
12664	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
12665	kf8=^AG\r, kf9=^AH\r, khome=^A, lf1=F1, lf10=F10, lf2=F2,
12666	lf3=F3, lf4=F4, lf5=F5, lf6=F6, lf7=F7, lf8=F8, lf9=F9, nel=^J^M,
12667	pad=\0, rev=^CD, rmso=^C\s, rmul=^C\s, sgr0=^C\s, smso=^CE,
12668	smul=^C0,
12669
12670#### Microterm (act, mime)
12671#
12672# The mime1 entries refer to the Microterm Mime I or Mime II.
12673# The default mime is assumed to be in enhanced act iv mode.
12674#
12675
12676# New "safe" cursor movement (5/87) from <reuss@umd5.umd.edu>.  Prevents
12677# freakout with out-of-range args on Sytek multiplexors.  No <smso=^N> and
12678# <rmso=^N> since  it gets confused and it's too dim anyway.  No <ich1>
12679# since Sytek insists ^S means xoff.
12680# (act4: found ":ic=2^S:ei=:im=:ip=.1*^V:" commented out in 8.3 -- esr)
12681act4|microterm|microterm act iv,
12682	OTbs, am,
12683	cols#80, lines#24,
12684	bel=^G, clear=\014$<12/>, cr=^M, cub1=^H, cud1=^K, cuf1=^X,
12685	cup=\024%p1%{24}%+%c%p2%p2%?%{47}%>%t%{48}%+%;%{80}%+%c,
12686	cuu1=^Z, dch1=\004$<.1*/>, dl1=\027$<2.3*/>,
12687	ed=\037$<2.2*/>, el=\036$<.1*/>, home=^],
12688	il1=\001<2.3*/>, ind=^J, kcub1=^H, kcud1=^K, kcuf1=^X,
12689	kcuu1=^Z,
12690# The padding on :sr: and :ta: for act5 and mime is a guess and not final.
12691# The act 5 has hardware tabs, but they are in columns 8, 16, 24, 32, 41 (!)...
12692# (microterm5: removed obsolete ":ma==^Z^P^Xl^Kj:" -- esr)
12693act5|microterm5|microterm act v,
12694	kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, ri=\EH$<3>, uc=^H\EA,
12695	use=act4,
12696# Mimes using brightness for standout.  Half bright is really dim unless
12697# you turn up the brightness so far that lines show up on the screen.
12698mime-fb|full bright mime1,
12699	is2=^S\E, rmso=^S, smso=^Y, use=mime,
12700mime-hb|half bright mime1,
12701	is2=^Y\E, rmso=^Y, smso=^S, use=mime,
12702# (mime: removed obsolete ":ma=^X ^K^J^Z^P:"; removed ":do=^K:" that overrode
12703# the more plausible ":do=^J:" -- esr)
12704# uc was at one time disabled to get around a curses bug, be wary of it
12705mime|mime1|mime2|mimei|mimeii|microterm mime1,
12706	OTbs, am,
12707	cols#80, it#8, lines#24, vt#9,
12708	bel=^G, clear=^]^C, cr=^M, cub1=^H, cud1=^J, cuf1=^X,
12709	cup=\024%p1%{24}%+%c%p2%p2%?%{32}%>%t%{48}%+%;%{80}%+%c,
12710	cuu1=^Z, dl1=\027$<80>, ed=^_, el=^^, home=^], ht=\011$<2>,
12711	il1=\001$<80>, ind=^J, is2=^S\E^Q, kcub1=^H, kcud1=^K,
12712	kcuf1=^X, kcuu1=^Z, ri=\022$<3>, uc=^U,
12713# These termcaps (for mime2a) put the terminal in low intensity mode
12714# since high intensity mode is so obnoxious.
12715mime2a-s|microterm mime2a (emulating an enhanced soroc iq120),
12716	OTbs, am,
12717	cols#80, lines#24,
12718	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
12719	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EI, dch1=\ED,
12720	dl1=\027$<20*>, ed=\EJ$<20*>, el=\EK, home=^^,
12721	il1=\001$<20*>, ind=^J, ip=$<2>, is2=\E), kcub1=^H, kcud1=^J,
12722	kcuf1=^L, kcuu1=^K, ri=\EI, rmir=^Z, rmso=\E;, rmul=\E7,
12723	smir=\EE, smso=\E\:, smul=\E6,
12724# This is the preferred mode (but ^X can't be used as a kill character)
12725mime2a|mime2a-v|microterm mime2a (emulating an enhanced vt52),
12726	OTbs,
12727	cols#80, it#8, lines#24,
12728	bel=^G, clear=\EL, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
12729	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=^N,
12730	dl1=\027$<20*>, ed=\EQ$<20*>, el=\EP, home=\EH, ht=^I,
12731	il1=\001$<20*>, ind=^J, ip=$<2>, is2=^Y, kcub1=\ED,
12732	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, ri=\EA, rmir=^Z, rmso=\E9,
12733	rmul=\E5, smir=^O, smso=\E8, smul=\E4,
12734# (mime3a: removed obsolete ":ma=^X ^K^J^Z^P:" -- esr)
12735mime3a|mime1 emulating 3a,
12736	am@,
12737	kcub1=^H, kcud1=^K, kcuf1=^X, kcuu1=^Z, use=adm3a,
12738mime3ax|mime-3ax|mime1 emulating enhanced 3a,
12739	it#8,
12740	dl1=\027$<80>, ed=^_, el=^X, ht=\011$<3>, il1=\001$<80>,
12741	use=mime3a,
12742# Wed Mar  9 18:53:21 1983
12743# We run our terminals at 2400 baud, so there might be some timing problems at
12744# higher speeds. The major improvements in this model are the terminal now
12745# scrolls down and insert mode works without redrawing the rest of the line
12746# to the right of the cursor. This is done with a bit of a kludge using the
12747# exit graphics mode to get out of insert, but it does not appear to hurt
12748# anything when using vi at least. If you have some users using act4s with
12749# programs that use curses and graphics mode this could be a problem.
12750mime314|mm314|mime 314,
12751	am,
12752	cols#80, lines#24,
12753	clear=^L, cub1=^H, cuf1=^X, cup=\024%p1%c%p2%c, cuu1=^Z,
12754	dch1=^D, dl1=^W, ed=^_, el=^^, home=^], ht=^I, il1=^A, kcub1=^H,
12755	kcud1=^K, kcuf1=^X, kcuu1=^Z, rmir=^V, smir=^S,
12756# Microterm mime 340 from University of Wisconsin
12757mm340|mime340|mime 340,
12758	cols#80, lines#24,
12759	clear=\032$<12/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
12760	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
12761	dch1=\E#$<2.1*/>, dl1=\EV$<49.6/>, ed=\037$<2*/>,
12762	el=\EL$<2.1/>, ht=^I, il1=\EU$<46/>, ind=^J, is2=\E\,,
12763	kbs=^H, kcub1=^H, kcud1=^J, kcuu1=^K, nel=^M^J,
12764# This came from University of Wisconsin marked "astro termcap for jooss".
12765# (mt4520-rv: removed obsolete ":kn#4:" and incorrect ":ri=\E[C:";
12766# also added <rmam>/<smam> based  on the init string -- esr)
12767mt4520-rv|micro-term 4520 reverse video,
12768	am, hs, msgr, xenl, xon,
12769	cols#80, it#8, lines#24, wsl#80,
12770	bel=^G, clear=\E[H\E[J, cnorm=\E[0V\E8, cr=^M,
12771	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
12772	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
12773	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
12774	cvvis=\E7\E[0U, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
12775	dl1=\E[M, ed=\E[J, el=\E[K, flash=\E[?5l$<200/>\E[?5h,
12776	fsl=\E[?5l\E[?5h, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
12777	ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
12778	is2=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[1;24r\E[24;1H\E[H\E[J,
12779	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
12780	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H,
12781	ll=\E[24;1H, nel=\EE, rc=\E8, rf=/usr/share/tabset/vt100,
12782	ri=\EM, rmam=\E[?7l, rmso=\E[0m, rmul=\E[24m,
12783	rs1=\E(B\E[2l\E>\E[20l\E[?3l\E[?5h\E[?7h\E[H\E[J,
12784	sc=\E7, sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m,
12785	tbc=\E[g, tsl=\E[25;1H,
12786
12787# Fri Aug  5 08:11:57 1983
12788# This entry works for the ergo 4000 with the following setups:
12789# ansi,wraparound,newline disabled, xon/xoff disabled in both
12790# setup a & c.
12791#
12792# WARNING!!! There are multiple versions of ERGO 4000 microcode
12793# Be advised that very early versions DO NOT WORK RIGHT !!
12794# Microterm does have a ROM exchange program- use it or lose big
12795# (ergo400: added <rmam>/<smam> based on the init string -- esr)
12796ergo4000|microterm ergo 4000,
12797	da, db, msgr,
12798	cols#80, lines#66,
12799	bel=^G, clear=\E[H\E[2J$<80>, cr=^M, cub1=^H, cud1=\E[B,
12800	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
12801	dch1=\E[1P$<80>, dl1=\E[1M$<5*>, ed=\E[0J$<15>,
12802	el=\E[0K$<13>, ht=^I, il1=\E[1L$<5*>, ind=\ED$<20*>,
12803	is2=\E<\E=\E[?1l\E[?4l\E[?5l\E[?7h\E[?8h$<300>,
12804	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
12805	kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=pf1, lf2=pf2, lf3=pf3,
12806	lf4=pf4, ri=\EM$<20*>, rmam=\E[?7l, rmir=\E[4l,
12807	rmkx=\E=$<4>, rmso=\E[m$<20>, sgr0=\E[m$<20>,
12808	smam=\E[?7m, smir=\E[4h$<6>, smkx=\E=$<4>,
12809	smso=\E[7m$<20>,
12810
12811#### NCR
12812#
12813# NCR's terminal group was merged with AT&T's when AT&T bought the company.
12814# For what happened to that group, see the ADDS section.
12815#
12816# There is an NCR4103 terminal that's just a re-badged Wyse-50.
12817#
12818
12819# The following vendor-supplied termcaps were captured from the Boundless
12820# Technologies site, 8 March 1998.  I removed all-upper-case names that were
12821# identical, except for case, to lower-case ones.  I also uncommented the acsc
12822# capabilities.X
12823#
12824# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12825# DEC vt200/300 with color capabilities added.
12826ncr260intan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
12827	colors#8, pairs#64,
12828	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12829	use=ncr260vt300an,
12830# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12831# DEC vt200/300 with color capabilities added.
12832ncr260intwan|NCR Intecolor emulation of the 2900_260C with an ANSI keyboard,
12833	colors#8, pairs#64,
12834	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12835	use=ncr260vt300wan,
12836# The Intecolor emulation of the NCR 2900/260C color terminal is basically a
12837# DEC vt200/300 with color capabilities added.
12838ncr260intpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard,
12839	colors#8, pairs#64,
12840	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12841	use=ncr260vt300pp,
12842# The Intecolor emulation of the NCR 2900/260C color terminal is basicly a
12843# DEC vt200/300 with color capabilities added.
12844ncr260intwpp|NCR Intecolor emulation of the 2900_260C with a PC+ keyboard in 132 column mode,
12845	colors#8, pairs#64,
12846	op=\E[0m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
12847	use=ncr260vt300wpp,
12848# This definition for ViewPoint supports several attributes.  This means
12849# that it has magic cookies (extra spaces where the attributes begin).
12850# Some applications do not function well with magic cookies.  The System
12851# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
12852# If supporting various attributes is not vital, 'xmc#1' and the extra
12853# attributes can be removed.
12854# Mapping to ASCII character set ('acsc' capability) can also be
12855# restored if needed.
12856ncr260vppp|NCR 2900_260 viewpoint,
12857	am, bw, hs, km, mc5i, mir, msgr, xon,
12858	cols#80, lines#24, nlab#32, xmc#1,
12859	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
12860	cbt=\EI, civis=\E`0, clear=\014$<40>, cnorm=\E`5,
12861	cr=\r$<2>, cub1=\010$<2>, cud1=\n$<2>, cuf1=\006$<2>,
12862	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5>, cuu1=\032$<2>,
12863	cvvis=\E`5, dch1=\EW$<2>, dim=\EGp, dl1=\El$<2>, dsl=\E`c,
12864	ed=\Ek$<2>, el=\EK$<2>, fsl=^M, home=\036$<2>, ht=^I,
12865	hts=\E1, il1=\EM$<2>, ind=\n$<2>, invis=\EG1,
12866	is2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12867	kDC=\El, kEND=\Ek, kHOM=^A, kPRT=\E7, kRIT=^F, ka1=^A, ka3=\EJ,
12868	kbs=^H, kc1=\ET, kc3=\EJ, kcub1=^U, kcud1=^J, kcuf1=^F,
12869	kcuu1=^Z, kdch1=\EW, kend=\EK, kf1=^B1\r, kf10=^B\:\r,
12870	kf11=^B;\r, kf12=^B<\r, kf13=^B=\r, kf14=^B>\r, kf15=^B?\r,
12871	kf16=^B@\r, kf17=^B!\r, kf18=^B"\r, kf19=^B#\r, kf2=^B2\r,
12872	kf20=^B$\r, kf21=\002%^M, kf22=^B&\r, kf23=^B'\r,
12873	kf24=^B(\r, kf25=^B)\r, kf26=^B*\r, kf27=^B+\r,
12874	kf28=^B\,\r, kf29=^B-\r, kf3=^B3\r, kf30=^B.\r, kf31=^B/\r,
12875	kf32=^B0\r, kf4=^B4\r, kf5=^B5\r, kf6=^B6\r, kf7=^B7\r,
12876	kf8=^B8\r, kf9=^B9\r, khome=^A, kich1=\Eq, knp=\EJ, kpp=\EJ,
12877	kprt=\EP, ll=\001$<5>, mc0=\EP$<100>, mc4=^T, mc5=^R,
12878	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<5>,
12879	nel=\037$<2>, rev=\EG4, ri=\Ej$<2>, rmacs=\EcB0\EH\003,
12880	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
12881	rs2=\Ee6\E~%$<100>\E+\E`\:\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12882	sgr0=\EG0\EH\003, smacs=\EcB1\EH\002, smir=\Eq,
12883	smso=\EG4, smul=\EG8, smxon=\Ec21, tsl=\EF,
12884ncr260vpwpp|NCR 2900_260 viewpoint wide mode,
12885	cols#132,
12886	cup=\Ea%i%p1%dR%p2%dC$<30>,
12887	is2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12888	rs2=\Ee6\E~%$<100>\E+\E`;\Ed/\E`1\EO\Ee4\Ec@0@\Ec@1A\EcB0\EcC1\Ee7$<100>,
12889	use=ncr260vppp,
12890ncr260vt100an|NCR 2900_260 vt100 with ansi kybd,
12891	am, hs, mir, msgr, xenl, xon,
12892	cols#80, lines#24, nlab#32,
12893	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12894	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
12895	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
12896	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD$<5>,
12897	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
12898	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
12899	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
12900	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
12901	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
12902	ech=\E[%p1%dX, ed=\E[0J$<5>, el=\E[0K$<3>, el1=\E[1K$<3>,
12903	fsl=\E[0$}, home=\E[H$<1>, hpa=\E[%p1%dG$<40>, ht=^I,
12904	hts=\EH, ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>,
12905	il1=\E[L$<5>, ind=\ED$<5>, indn=\E[%p1%dE$<5>,
12906	invis=\E[8m,
12907	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12908	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
12909	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12910	kdch1=\E[3~, kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
12911	kf4=\EOS, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~, knp=\E[6~,
12912	kpp=\E[5~, krdo=\E[29~, kslt=\E[4~, nel=\EE$<5>, rc=\E8,
12913	rev=\E[7m, ri=\EM$<5>, rmacs=^O, rmir=\E[4l,
12914	rmkx=\E[?1l\E>, rmso=\E[0m, rmul=\E[0m,
12915	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12916	sc=\E7,
12917	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
12918	sgr0=\E[0m\017$<20>, smacs=^N, smir=\E[4h,
12919	smkx=\E[?1h\E=, smso=\E[1;7m, smul=\E[4m, tbc=\E[3g,
12920	tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
12921ncr260vt100wan|NCR 2900_260 vt100 wide mode ansi kybd,
12922	cols#132,
12923	cup=\E[%i%p1%d;%p2%dH$<30>,
12924	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12925	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12926	use=ncr260vt100an,
12927ncr260vt100pp|NCR 2900_260 vt100 with PC+ kybd,
12928	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12929	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
12930	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
12931	kend=\E[5~, khome=\E[2~, kich1=\E[1~, knp=\E[6~, kpp=\E[3~,
12932	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>,
12933	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12934	smkx=\E=, use=ncr260vt100an,
12935ncr260vt100wpp|NCR 2900_260 vt100 wide mode pc+  kybd,
12936	cols#132,
12937	cup=\E[%i%p1%d;%p2%dH$<30>,
12938	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12939	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12940	use=ncr260vt100pp,
12941ncr260vt200an|NCR 2900_260 vt200 with ansi kybd,
12942	am, hs, mir, msgr, xenl, xon,
12943	cols#80, lines#24, nlab#32,
12944	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
12945	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
12946	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
12947	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
12948	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
12949	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
12950	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
12951	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
12952	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
12953	ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
12954	fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
12955	ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
12956	ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
12957	is2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12958	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
12959	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
12960	kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
12961	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
12962	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
12963	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
12964	kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
12965	kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
12966	kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
12967	kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
12968	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
12969	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
12970	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
12971	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
12972	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
12973	rs2=\E[!p\E[?7;19;67h\E[?1;3;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12974	sc=\E7,
12975	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
12976	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
12977	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
12978	tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
12979ncr260vt200wan|NCR 2900_260 vt200 wide mode ansi kybd,
12980	cols#132,
12981	cup=\E[%i%p1%d;%p2%dH$<30>,
12982	is2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
12983	rs2=\E[!p\E[?3;7;19;67h\E[?4l\E(B\E)0\017\E[2J\E[1;1H$<200>,
12984	use=ncr260vt200an,
12985ncr260vt200pp|NCR 2900_260 vt200 with pc+ kybd,
12986	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
12987	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
12988	kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
12989	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
12990	use=ncr260vt200an,
12991ncr260vt200wpp|NCR 2900_260 vt200 wide mode pc+  kybd,
12992	cols#132,
12993	cup=\E[%i%p1%d;%p2%dH$<30>,
12994	is2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12995	rs2=\E[!p\E[?3;7;19;67h\E[?1;4l\E(B\E)0\017\E[2J\E[1;1H\E>$<200>,
12996	use=ncr260vt200pp,
12997ncr260vt300an|NCR 2900_260 vt300 with ansi kybd,
12998	am, hs, mir, msgr, xenl, xon,
12999	cols#80, lines#24, nlab#32,
13000	acsc=``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
13001	blink=\E[5m, bold=\E[1m, civis=\E[?25l,
13002	clear=\E[2J\E[1;1H$<20>, cnorm=\E[?25h, cr=\r$<1>,
13003	csr=\E[%i%p1%d;%p2%dr$<5>, cub=\E[%p1%dD$<5>,
13004	cub1=\E[D$<5>, cud=\E[%p1%dB$<5>, cud1=\E[B$<5>,
13005	cuf=\E[%p1%dC$<5>, cuf1=\E[C$<5>,
13006	cup=\E[%i%p1%d;%p2%dH$<10>, cuu=\E[%p1%dA$<5>,
13007	cuu1=\E[A$<5>, dch=\E[%p1%dP$<5>, dch1=\E[1P$<5>,
13008	dl=\E[%p1%dM$<5>, dl1=\E[M$<5>, dsl=\E[0$~\E[1$~,
13009	ech=\E[%p1%dX$<5>, ed=\E[0J, el=\E[0K$<5>, el1=\E[1K$<5>,
13010	fsl=\E[0$}, home=\E[H, hpa=\E[%p1%dG$<40>, ht=^I, hts=\EH,
13011	ich=\E[%p1%d@$<5>, il=\E[%p1%dL$<5>, il1=\E[L$<5>,
13012	ind=\ED$<5>, indn=\E[%p1%dE$<5>, invis=\E[8m,
13013	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>,
13014	ka1=\EOw, ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs,
13015	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13016	kdch1=\E[3~, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\E[21~,
13017	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
13018	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
13019	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf21=\E[31~,
13020	kf22=\E[32~, kf23=\E[33~, kf24=\E[34~, kf25=\E[35~,
13021	kf26=\E[1~, kf27=\E[2~, kf28=\E[3~, kf29=\E[4~, kf3=\EOR,
13022	kf30=\E[5~, kf31=\E[6~, kf32=\E[7~, kf33=\E[8~, kf34=\E[9~,
13023	kf35=\E[10~, kf4=\EOS, kf5=\E[M, kf6=\E[17~, kf7=\E[18~,
13024	kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~,
13025	kich1=\E[2~, knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
13026	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
13027	ri=\EM$<5>, rmacs=\017$<20>, rmam=\E[?7l, rmir=\E[4l,
13028	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
13029	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>,
13030	sc=\E7,
13031	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<20>,
13032	sgr0=\E[0m\017$<20>, smacs=\016$<20>, smam=\E[?7h,
13033	smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
13034	tbc=\E[3g, tsl=\E[2$~\E[1$}, vpa=\E[%p1%dd$<40>,
13035ncr260vt300wan|NCR 2900_260 vt300 wide mode ansi kybd,
13036	cols#132,
13037	cup=\E[%i%p1%d;%p2%dH$<30>,
13038	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>,
13039	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>,
13040	use=ncr260vt300an,
13041ncr260vt300pp|NCR 2900_260 vt300 with pc+ kybd,
13042	ka1=\E[H, ka3=\EOu, kb2=\E[V, kc3=\E[U, kcub1=\E[D,
13043	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[4~,
13044	kend=\E[1~, khome=\E[H, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
13045	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, rmkx=\E>, smkx=\E=,
13046	use=ncr260vt300an,
13047NCR260VT300WPP|ncr260vt300wpp|NCR 2900_260 vt300 wide mode pc+  kybd,
13048	cols#132,
13049	cup=\E[%i%p1%d;%p2%dH$<30>,
13050	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>,
13051	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>,
13052	use=ncr260vt300pp,
13053# This terminfo file contains color capabilities for the Wyse325 emulation of
13054# the NCR 2900/260C color terminal.  Because of the structure of the command
13055# (escape sequence) used to set color attributes, one of the fore/background
13056# colors must be preset to a given value. I have set the background color to
13057# black.  The user can change this setup by altering the last section of the
13058# 'setf' definition.  The escape sequence to set color attributes is
13059#		ESC d y <foreground_color> <background_color> 1
13060# In addition, the background color can be changed through the desk accessories.
13061# The capablitiy 'op' sets colors to green on black (default combination).
13062#
13063# NOTE:  The NCR Unix System Administrator's Shell will not function properly
13064# 	    if the 'pairs' capability is defined. Un-Comment the 'pairs'
13065#	    capability and recompile if you wish to have it included.
13066#
13067ncr260wy325pp|NCR 2900_260 wyse 325,
13068	am, bw, hs, km, mc5i, mir, msgr, xon,
13069	colors#16, cols#80, lines#24, ncv#33, nlab#32,
13070	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
13071	cbt=\EI, civis=\E`0, clear=\E*$<10>, cnorm=\E`1, cr=^M,
13072	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13073	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
13074	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
13075	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<5>, ht=^I,
13076	hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
13077	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13078	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
13079	kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK, kcbt=\EI,
13080	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, kdch1=\EW, kend=\ET,
13081	kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r,
13082	kf14=^AM\r, kf15=^AN\r, kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r,
13083	kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r,
13084	kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r,
13085	kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r, kf30=^Am\r, kf31=^An\r,
13086	kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
13087	kf8=^AG\r, kf9=^AH\r, khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ,
13088	kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
13089	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
13090	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
13091	rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13092	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13093	setb=\s,
13094	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>,
13095	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH\002\EcB1, smam=\Ed/,
13096	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
13097	tsl=\EF,
13098ncr260wy325wpp|NCR 2900_260 wyse 325 wide mode,
13099	cols#132,
13100	cup=\Ea%i%p1%dR%p2%dC$<30>,
13101	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13102	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13103	use=ncr260wy325pp,
13104# This definition for Wyse 350 supports several attributes.  This means
13105# that it has magic cookies (extra spaces where the attributes begin).
13106# Some applications do not function well with magic cookies.  The System
13107# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
13108# If supporting various attributes is not vital, 'xmc#1' and the extra
13109# attributes can be removed.
13110# Mapping to ASCII character set ('acsc' capability) can also be
13111# restored if needed.
13112# In addition, color capabilities have been added to this file.  The drawback,
13113# however, is that the background color has to be black.  The foreground colors
13114# are numbered 0 through 15.
13115#
13116# NOTE:  The NCR Unix System Administrator's Shell does not function properly
13117# 	    with the 'pairs' capability defined as below.  If you wish to
13118#	    have it included, Un-comment it and recompile (using 'tic').
13119#
13120ncr260wy350pp|NCR 2900_260 wyse 350,
13121	am, bw, hs, km, mc5i, mir, msgr, xon,
13122	colors#16, cols#80, lines#24, ncv#33, nlab#32, xmc#1,
13123	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
13124	cbt=\EI, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
13125	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13126	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<40>, cuu1=\013$<5>,
13127	cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
13128	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<10>, ht=^I,
13129	hts=\E1, il1=\EE$<5>, ind=\n$<5>, invis=\EG1,
13130	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13131	kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
13132	kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
13133	kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
13134	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
13135	kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
13136	kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
13137	kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
13138	kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
13139	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
13140	khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
13141	mc0=\EP$<10>, mc4=^T, mc5=^R,
13142	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<20>,
13143	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH\003\EcB0,
13144	rmam=\Ed., rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13145	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13146	setb=\s,
13147	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>,
13148	sgr0=\EG0\EH\003\EcD, smacs=\EH\002\EcB1, smam=\Ed/,
13149	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0,
13150	tsl=\EF,
13151ncr260wy350wpp|NCR 2900_260 wyse 350 wide mode,
13152	cols#132,
13153	cup=\Ea%i%p1%dR%p2%dC$<30>,
13154	is2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13155	rs2=\Ee6\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13156	use=ncr260wy350pp,
13157# This definition for Wyse 50+ supports several attributes.  This means
13158# that it has magic cookies (extra spaces where the attributes begin).
13159# Some applications do not function well with magic cookies.  The System
13160# Administrator's Shell in NCR Unix SVR4 1.03 is one such application.
13161# If supporting various attributes is not vital, 'xmc#1' and the extra
13162# attributes can be removed.
13163# Mapping to ASCII character set ('acsc' capability) can also be
13164# restored if needed.
13165# (ncr260wy50+pp: originally contained commented-out
13166# <acsc=j5k3l2m1n8q:t4u9v=w0x6>, as well as the commented-out one there -- esr)
13167ncr260wy50+pp|NCR 2900_260 wyse 50+,
13168	am, bw, hs, km, mc5i, mir, msgr, xon,
13169	cols#80, lines#24, nlab#32, xmc#1,
13170	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
13171	cbt=\EI$<5>, civis=\E`0, clear=\E+$<20>, cnorm=\E`1, cr=^M,
13172	cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13173	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<30>, cuu1=\013$<5>,
13174	cvvis=\E`5, dch1=\EW$<50>, dim=\EGp, dl1=\ER$<5>, dsl=\E`c,
13175	ed=\EY$<5>, el=\ET$<5>, fsl=^M, home=\036$<10>,
13176	ht=\011$<5>, hts=\E1$<5>, il1=\EE$<5>, ind=\n$<5>,
13177	invis=\EG1,
13178	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13179	kDC=\ER, kEND=\EY, kHOM=\E{, kPRT=\E7, kRIT=^L, ka1=^^, kbs=^H,
13180	kc1=\ET, kc3=\EK, kcbt=\EI, kcub1=^H, kcud1=^J, kcuf1=^L,
13181	kcuu1=^K, kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r,
13182	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
13183	kf16=^AO\r, kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r,
13184	kf20=^Ac\r, kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r,
13185	kf25=^Ah\r, kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r,
13186	kf3=^AB\r, kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r,
13187	kf5=^AD\r, kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r,
13188	khome=^^, kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP,
13189	mc0=\EP$<10>, mc4=^T, mc5=^R,
13190	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<10>,
13191	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
13192	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13193	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13194	sgr0=\EG0\EH\003$<15>, smacs=\EH^B, smam=\Ed/, smir=\Eq,
13195	smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<5>, tsl=\EF,
13196ncr260wy50+wpp|NCR 2900_260 wyse 50+ wide mode,
13197	cols#132,
13198	cup=\Ea%i%p1%dR%p2%dC$<30>,
13199	is2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13200	rs2=\Ee6\E~"$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<200>,
13201	use=ncr260wy50+pp,
13202ncr260wy60pp|NCR 2900_260 wyse 60,
13203	am, bw, hs, km, mc5i, mir, msgr, xon,
13204	cols#80, lines#24, nlab#32,
13205	acsc=07a?h;j5k3l2m1n8q\:t4u9v=w0x6, bel=^G, blink=\EG2,
13206	cbt=\EI$<15>, civis=\E`0, clear=\E*$<100>, cnorm=\E`1,
13207	cr=^M, cub1=\010$<5>, cud1=\n$<5>, cuf1=\014$<5>,
13208	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<10>, cuu1=\013$<5>,
13209	cvvis=\E`5, dch1=\EW$<50>, dl1=\ER$<5>, dsl=\E`c,
13210	ed=\Ey$<5>, el=\Et$<5>, fsl=^M, home=\036$<25>,
13211	ht=\011$<15>, hts=\E1$<15>, il1=\EE$<5>, ind=\n$<5>,
13212	invis=\EG1,
13213	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13214	kDC=\ER, kEND=\EY, kHOM=\E{, kNXT=\EK, kPRT=\E7, kPRV=\EJ,
13215	kRIT=^L, ka1=^^, kb2=\EJ, kbs=^H, kc1=\ET, kc3=\EK,
13216	kcbt=\EI$<15>, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
13217	kdch1=\EW, kend=\ET, kf1=^A@\r, kf10=^AI\r, kf11=^AJ\r,
13218	kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r, kf16=^AO\r,
13219	kf17=^A`\r, kf18=^Aa\r, kf19=^Ab\r, kf2=^AA\r, kf20=^Ac\r,
13220	kf21=^Ad\r, kf22=^Ae\r, kf23=^Af\r, kf24=^Ag\r, kf25=^Ah\r,
13221	kf26=^Ai\r, kf27=^Aj\r, kf28=^Ak\r, kf29=^Al\r, kf3=^AB\r,
13222	kf30=^Am\r, kf31=^An\r, kf32=^Ao\r, kf4=^AC\r, kf5=^AD\r,
13223	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
13224	kich1=\Eq, knp=\EK, kpp=\EJ, kprt=\EP, mc0=\EP, mc4=^T, mc5=^R,
13225	mrcup=\Ew@%p1%{48}%+%c%p2%{32}%+%c%p3%{32}%+%c$<30>,
13226	nel=\037$<5>, rev=\EG4, ri=\Ej$<5>, rmacs=\EH^C, rmam=\Ed.,
13227	rmir=\Er, rmso=\EG0, rmul=\EG0, rmxon=\Ec20,
13228	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`\:\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13229	sgr0=\EG0\EcB0\EcD$<15>, smacs=\EH^B, smam=\Ed/,
13230	smir=\Eq, smso=\EGt, smul=\EG8, smxon=\Ec21, tbc=\E0$<15>,
13231	tsl=\EF,
13232ncr260wy60wpp|NCR 2900_260 wyse 60 wide mode,
13233	cols#132,
13234	cup=\Ea%i%p1%dR%p2%dC$<30>,
13235	is2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13236	rs2=\Ee6\E~4$<100>\E+\Ed/\Ee1\Ed*\Er\EO\E`1\E`;\E`@\E~!\E"\Ee4\Ex@\E`9\Ee7$<100>,
13237	use=ncr260wy60pp,
13238ncr160vppp|NCR 2900_160 viewpoint,
13239	use=ncr260vppp,
13240ncr160vpwpp|NCR 2900_160 viewpoint wide mode,
13241	use=ncr260vpwpp,
13242ncr160vt100an|NCR 2900_160 vt100 with ansi kybd,
13243	use=ncr260vt100an,
13244ncr160vt100pp|NCR 2900_160 vt100 with PC+ kybd,
13245	use=ncr260vt100pp,
13246ncr160vt100wan|NCR 2900_160 vt100 wide mode ansi kybd,
13247	use=ncr260vt100wan,
13248ncr160vt100wpp|NCR 2900_160 vt100 wide mode pc+  kybd,
13249	use=ncr260vt100wpp,
13250ncr160vt200an|NCR 2900_160 vt200 with ansi kybd,
13251	use=ncr260vt200an,
13252ncr160vt200pp|NCR 2900_160 vt200 with pc+ kybd,
13253	use=ncr260vt200pp,
13254ncr160vt200wan|NCR 2900_160 vt200 wide mode ansi kybd,
13255	use=ncr260vt200wan,
13256ncr160vt200wpp|NCR 2900_160 vt200 wide mode pc+  kybd,
13257	use=ncr260vt200wpp,
13258ncr160vt300an|NCR 2900_160 vt300 with ansi kybd,
13259	use=ncr260vt300an,
13260ncr160vt300pp|NCR 2900_160 vt300 with pc+ kybd,
13261	use=ncr260vt300pp,
13262ncr160vt300wan|NCR 2900_160 vt300 wide mode ansi kybd,
13263	use=ncr260vt300wan,
13264ncr160vt300wpp|NCR 2900_160 vt300 wide mode pc+  kybd,
13265	use=ncr260vt300wpp,
13266ncr160wy50+pp|NCR 2900_160 wyse 50+,
13267	use=ncr260wy50+pp,
13268ncr160wy50+wpp|NCR 2900_160 wyse 50+ wide mode,
13269	use=ncr260wy50+wpp,
13270ncr160wy60pp|NCR 2900_160 wyse 60,
13271	use=ncr260wy60pp,
13272ncr160wy60wpp|NCR 2900_160 wyse 60 wide mode,
13273	use=ncr260wy60wpp,
13274ncrvt100an|ncrvt100pp|NCR vt100 for the 2900 terminal,
13275	am, hs, mc5i, mir, msgr, xon,
13276	cols#80, it#8, lines#24, nlab#32,
13277	acsc=``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~,
13278	bel=^G, blink=\E[5m$<30>, bold=\E[1m$<30>,
13279	clear=\E[2J\E[1;1H$<300>, cr=^M,
13280	csr=\E[%i%p1%d;%p2%dr$<100>, cub=\E[%p1%dD$<30>,
13281	cub1=\E[D$<2>, cud=\E[%p1%dB$<30>, cud1=\E[B$<2>,
13282	cuf=\E[%p1%dC$<30>, cuf1=\E[C$<2>,
13283	cup=\E[%i%p1%d;%p2%dH$<100>, cuu=\E[%p1%dA$<30>,
13284	cuu1=\E[A$<2>, dch=\E[%p1%dP$<40>, dch1=\E[1P$<10>,
13285	dl=\E[%p1%dM$<70>, dl1=\E[M$<40>, dsl=\E[31l$<25>,
13286	ed=\E[0J$<300>, el=\E[0K$<30>, el1=\E[1K$<30>,
13287	enacs=\E(B\E)0$<40>, fsl=1$<10>, home=\E[H$<2>$<80>,
13288	ht=^I, hts=\EH, il=\E[%p1%dL$<80>, il1=\E[B\E[L$<80>,
13289	ind=\ED,
13290	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3l\E(B\E)0$<200>,
13291	kLFT=\E[D, kRIT=\E[C, ka1=\E[H, kbs=^H, kcub1=\E[D,
13292	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kent=^M, kf1=\EOP,
13293	kf2=\EOQ, kf3=\EOR, kf4=\EOS, mc0=\E[i$<100>, nel=\EE,
13294	rc=\E8, rev=\E[7m$<30>, ri=\EM$<50>, rmacs=\017$<90>,
13295	rmir=\E[4l$<80>, rmso=\E[0m$<30>, rmul=\E[0m$<30>,
13296	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>,
13297	sc=\E7,
13298	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<100>,
13299	sgr0=\017\E[0m$<120>, smacs=\016$<90>, smir=\E[4h$<80>,
13300	smso=\E[7m$<30>, smul=\E[4m$<30>, tbc=\E[3g$<40>,
13301	tsl=\E[>+1$<70>,
13302ncrvt100wan|NCRVT100WPP|ncrvt100wpp|NCR VT100 emulation of the 2900 terminal,
13303	cols#132,
13304	is2=\E[12h\E[?10l\E%/0n\E[P\031\E[?3h\E(B\E)0$<200>,
13305	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>,
13306	use=ncrvt100an,
13307#
13308# Vendor-supplied NCR termcaps end here
13309
13310# NCR7900 DIP switches:
13311#
13312# Switch A:
13313# 1-4 - Baud Rate
13314# 5   - Parity (Odd/Even)
13315# 6   - Don't Send or Do Send Spaces
13316# 7   - Parity Enable
13317# 8   - Stop Bits (One/Two)
13318#
13319# Switch B:
13320# 1   - Upper/Lower Shift
13321# 2   - Typewriter Shift
13322# 3   - Half Duplex / Full Duplex
13323# 4   - Light/Dark Background
13324# 5-6 - Carriage Return Without / With Line Feed
13325# 7   - Extended Mode
13326# 8   - Suppress Keyboard Display
13327#
13328# Switch C:
13329# 1   - End of line entry disabled/enabled
13330# 2   - Conversational mode / (Local?) Mode
13331# 3   - Control characters displayed / not displayed
13332# 4   - (2-wire?) / 4-wire communications
13333# 5   - RTS on and off for each character
13334# 6   - (50Hz?) / 60 Hz
13335# 7   - Exit after level zero diagnostics
13336# 8   - RS-232 interface
13337#
13338# Switch D:
13339# 1   - Reverse Channel (yes / no)
13340# 2   - Manual answer (no / yes)
13341# 3-4 - Cursor appearance
13342# 5   - Communication Rate
13343# 6   - Enable / Disable EXT turnoff
13344# 7   - Enable / Disable CR turnoff
13345# 8   - Enable / Disable backspace
13346#
13347# Since each attribute parameter is 0 or 1, we shift each attribute (standout,
13348# reverse, blink, dim, and underline) the appropriate number of bits (by
13349# multiplying the 0 or 1 by a correct factor to shift) so the bias character,
13350# '@' is (effectively) "or"ed with each attribute to generate the proper third
13351# character in the <ESC>0 sequence.  The <sgr> string implements the following
13352# equation:
13353#
13354# ((((('@' + P5) | (P4 << 1)) | (P3 << 3)) | (P2 << 4)) | (p1 * 17))    =>
13355# ((((('@' + P5) + (P4 << 1)) + (P3 << 3)) + (P2 << 4)) + (p1 * 17))
13356#
13357#	Where:  P1 <==> Standout attribute parameter
13358#		P2 <==> Underline attribute parameter
13359#		P3 <==> Reverse attribute parameter
13360#		P4 <==> Blink attribute parameter
13361#		P5 <==> Dim attribute parameter
13362# From <root@goliath.un.atlantaga.NCR.COM>, init string hacked by SCO.
13363ncr7900i|ncr7900|ncr 7900 model 1,
13364	am, bw, ul,
13365	cols#80, lines#24, xmc#1,
13366	bel=^G, blink=\E0B, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
13367	cup=\E1%p2%c%p1%c, cuu1=^Z, dim=\E0A, ed=\Ek, el=\EK, ind=^J,
13368	is2=\E0@\010\E3\E4\E7, kcub1=^U, kcud1=^J, kcuf1=^F,
13369	kcuu1=^Z, khome=^A, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=\E0@,
13370	rmul=\E0@,
13371	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c,
13372	sgr0=\E0@, smso=\E0Q, smul=\E0`,
13373ncr7900iv|ncr 7900 model 4,
13374	am, bw, eslok, hs,
13375	cols#80, lines#24,
13376	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J,
13377	cup=\013%p1%{64}%+%c\E\005%p2%02d, dl1=\E^O, dsl=\Ey1,
13378	fsl=\Ek\Ey5, home=\013@\E^E00, il1=\E^N, ind=^J, kbs=^H,
13379	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET,
13380	kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
13381	khome=\EH, lf6=blue, lf7=red, lf8=white, nel=^M^J,
13382	tsl=\Ej\Ex5\Ex1\EY8%p1%{32}%+%c\Eo,
13383# Warning: This terminal will lock out the keyboard when it receives a CTRL-D.
13384#	   The user can enter a CTRL-B to get out of this locked state.
13385# In <hpa>, we want to output the character given by the formula:
13386#		((col / 10) * 16) + (col % 10)		where "col" is "p1"
13387ncr7901|ncr 7901 model,
13388	am, bw, ul,
13389	cols#80, lines#24,
13390	bel=^G, blink=\E0B, civis=^W, clear=^L, cnorm=^X, cr=^M,
13391	cub1=^H, cud1=^J, cuf1=^F,
13392	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z, dim=\E0A,
13393	ed=\Ek, el=\EK,
13394	hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c, ind=^J,
13395	is2=\E4^O, kclr=^L, kcub1=^U, kcud1=^J, kcuf1=^F, kcuu1=^Z,
13396	khome=^H, ll=^A, mc4=^T, mc5=^R, rev=\E0P, rmso=^O, rmul=^O,
13397	sgr=\E0%p5%{64}%+%p4%{2}%*%+%p3%{16}%*%+%p2%{32}%*%+%p1%{17}%*%+%c\016,
13398	sgr0=^O, smso=\E0Q\016, smul=\E0`\016,
13399	vpa=\013%p1%{64}%+%c,
13400
13401#### Perkin-Elmer (Owl)
13402#
13403# These are official terminfo entries from within Perkin-Elmer.
13404#
13405
13406bantam|pe550|pe6100|perkin elmer 550,
13407	OTbs,
13408	cols#80, lines#24,
13409	bel=^G, clear=\EK$<20>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
13410	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13411	el=\EI$<20>, home=\EH, ind=^J, ll=\EH\EA,
13412fox|pe1100|perkin elmer 1100,
13413	OTbs, am,
13414	cols#80, lines#24,
13415	bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
13416	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13417	ed=\EJ$<5.5*>, el=\EI, flash=\020\002$<200/>\020\003,
13418	home=\EH, hts=\E1, ind=^J, ll=\EH\EA, tbc=\E3,
13419owl|pe1200|perkin elmer 1200,
13420	OTbs, am, in,
13421	cols#80, lines#24,
13422	bel=^G, clear=\EH\EJ$<132>, cr=^M, cub1=^H, cud1=^J,
13423	cuf1=\EC, cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13424	dch1=\EO$<5.5*>, dl1=\EM$<5.5*>, ed=\EJ$<5.5*>,
13425	el=\EI$<5.5>, flash=\020\002$<200/>\020\003, home=\EH,
13426	hts=\E1, ich1=\EN, il1=\EL$<5.5*>, ind=^J, ip=$<5.5*>,
13427	kbs=^H, kf0=\ERJ, kf1=\ERA, kf2=\ERB, kf3=\ERC, kf4=\ERD,
13428	kf5=\ERE, kf6=\ERF, kf7=\ERG, kf8=\ERH, kf9=\ERI, ll=\EH\EA,
13429	rmso=\E!\0, sgr0=\E!\0, smso=\E!^H, tbc=\E3,
13430pe1251|pe6300|pe6312|perkin elmer 1251,
13431	am,
13432	cols#80, it#8, lines#24, pb#300, vt#8, xmc#1,
13433	bel=^G, clear=\EK$<332>, cr=^M, cub1=\ED, cud1=\EB, cuf1=\EC,
13434	cup=\EX%p1%{32}%+%c\EY%p2%{32}%+%c, cuu1=\EA,
13435	ed=\EJ$<20*>, el=\EI$<10*>, home=\EH, hts=\E1, ind=^J,
13436	kf0=\ERA, kf1=\ERB, kf10=\ERK, kf2=\ERC, kf3=\ERD, kf4=\ERE,
13437	kf5=\ERF, kf6=\ERG, kf7=\ERH, kf8=\ERI, kf9=\ERJ, tbc=\E3,
13438# (pe7000m: this had
13439# 	rmul=\E!\0, smul=\E!\040,
13440# which is probably wrong, it collides with kf0
13441pe7000m|perkin elmer 7000 series monochrome monitor,
13442	am,
13443	cols#80, lines#24,
13444	bel=^G, cbt=\E!Y, clear=\EK, cr=^M, cub1=\ED, cud1=\EB,
13445	cuf1=\EC, cup=\ES%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
13446	ed=\EJ, el=\EI, home=\EH, ind=^J,
13447	is1=\E!\0\EW  7o\Egf\ES7\s, kbs=^H, kcub1=\E!V,
13448	kcud1=\E!U, kcuf1=\E!W, kcuu1=\E!T, kf0=\E!\0, kf1=\E!^A,
13449	kf10=\E!^J, kf2=\E!^B, kf3=\E!^C, kf4=\E!^D, kf5=\E!^E,
13450	kf6=\E!^F, kf7=\E!^G, kf8=\E!^H, kf9=\E!^I, khome=\E!S,
13451	ll=\ES7\s, ri=\ER,
13452pe7000c|perkin elmer 7000 series colour monitor,
13453	is1=\E!\0\EW  7o\Egf\Eb0\Ec7\ES7\s, rmso=\Eb0,
13454	rmul=\E!\0, smso=\Eb2, smul=\E!\s, use=pe7000m,
13455
13456#### Sperry Univac
13457#
13458# Sperry Univac has merged with Burroughs to form Unisys.
13459#
13460
13461# This entry is for the Sperry UTS30 terminal running the TTY
13462# utility under control of CP/M Plus 1R1. The functionality
13463# provided is comparable to the DEC vt100.
13464# (uts30: I added <rmam>/<smam> based on the init string -- esr)
13465uts30|sperry uts30 with cp/m@1R1,
13466	am, bw, hs,
13467	cols#80, lines#24, wsl#40,
13468	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13469	bel=^G, blink=\E[5m, bold=\E[1m, civis=\ER, clear=^L,
13470	cnorm=\ES, cr=^M, csr=\EU%p1%{32}%+%c%p2%{32}%+%c,
13471	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\EB,
13472	cuf=\E[%p1%dC, cuf1=\EC, cup=\E[%i%p1%d;%p2%dH,
13473	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\EM,
13474	dl=\E[%p1%dM, dl1=\EL, ed=\E[J, el=\E[K, fsl=^M, home=\E[H,
13475	ht=^I, ich=\E[%p1%d@, ich1=\EO, il=\E[%p1%dL, il1=\EN,
13476	ind=^J, indn=\E[%p1%dB, is2=\E[U 7\E[24;1H, kbs=^H,
13477	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\E[H,
13478	rc=\EX, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EI,
13479	rin=\E[%p1%dA, rmacs=\Ed, rmam=\E[?7l, rmso=\E[m,
13480	rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
13481	sc=\EW, sgr0=\E[m, smacs=\EF, smam=\E[?7m, smso=\E[7m,
13482	smul=\E[4m, tsl=\E], uc=\EPB,
13483
13484#### Tandem
13485#
13486# Tandem builds these things for use with its line of fault-tolerant
13487# transaction-processing computers.  They aren't generally available
13488# on the merchant market, and so are fairly uncommon.
13489#
13490
13491tandem6510|adm3a repackaged by Tandem,
13492	use=adm3a,
13493
13494# A funny series of terminal that TANDEM uses.  The actual model numbers
13495# have a fourth digit after 653 that designates minor variants.  These are
13496# natively block-mode and rather ugly, but they have a character mode which
13497# this doubtless(?) exploits.  There is a 6520 that is slightly dumber.
13498# (tandem653: had ":sb=\ES:", probably someone's mistake for sf; also,
13499# removed <if=/usr/share/tabset/tandem653>, no such file -- esr)
13500tandem653|t653x|Tandem 653x multipage terminal,
13501	OTbs, am, da, db, hs,
13502	cols#80, lines#24, wsl#64, xmc#1,
13503	clear=\EI, cub1=^H, cud1=^J, cuf1=\EC,
13504	cup=\023%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dsl=\Eo\r,
13505	ed=\EJ, el=\EK, fsl=^M, home=\EH, ind=\ES, ri=\ET, rmso=\E6\s,
13506	rmul=\E6\s, sgr0=\E6\s, smso=\E6$, smul=\E60, tsl=\Eo,
13507
13508#### Tandy/Radio Shack
13509#
13510# Tandy has a line of VDTs distinct from its microcomputers.
13511#
13512
13513dmterm|deskmate terminal,
13514	am, bw,
13515	cols#80, lines#24,
13516	bel=^G, civis=\EG5, clear=\Ej, cnorm=\EG6, cr=^M, cub1=^H,
13517	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
13518	cuu1=\EA, dch1=\ES, dl1=\ER, ed=\EJ, el=\EK, home=\EH, ht=^I,
13519	ich1=\EQ, il1=\EP, ind=\EX, invis@, kcub1=\ED, kcud1=\EB,
13520	kcuf1=\EC, kcuu1=\EA, kf0=\E1, kf1=\E2, kf2=\E3, kf3=\E4,
13521	kf4=\E5, kf5=\E6, kf6=\E7, kf7=\E8, kf8=\E9, kf9=\E0,
13522	khome=\EH, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6,
13523	lf6=f7, lf7=f8, lf8=f9, lf9=f10, ll=\EE, rmul@, smul@,
13524	use=adm+sgr,
13525dt100|dt-100|Tandy DT-100 terminal,
13526	xon,
13527	cols#80, lines#24, xmc#1,
13528	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
13529	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
13530	csr=\E[%p1%2d;%p2%2dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
13531	cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
13532	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
13533	il1=\E[L, ind=^J, is2=\E[?3l\E)0\E(B, kcub1=\E[D,
13534	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\E[?3i,
13535	kf10=\E[?5i, kf2=\E[2i, kf3=\E[@, kf4=\E[M, kf5=\E[17~,
13536	kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, khome=\E[H,
13537	knp=\E[29~, kpp=\E[28~, lf1=f1, lf2=f2, lf3=f3, lf4=f4, lf5=f5,
13538	lf6=f6, lf7=f7, lf8=f8, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m,
13539	sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
13540dt100w|dt-100w|Tandy DT-100 terminal (wide mode),
13541	cols#132, use=dt100,
13542dt110|Tandy DT-110 emulating ansi,
13543	xon,
13544	cols#80, lines#24,
13545	acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, civis=\E[?25l,
13546	clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
13547	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[0B, cuf1=\E[C,
13548	cup=\010\E[%i%p1%d;%p2%dH, cuu1=\E[0A, dch1=\E[0P,
13549	dl1=\E[0M, ed=\E[0J, el=\E[0K, enacs=\E(B\E)0, home=\E[H,
13550	ht=^I, ich1=\E[0@, il1=\E[0L, ind=^J, is2=\E[?3l\E)0\E(B,
13551	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[K,
13552	kf1=\E[1~, kf10=\E[10~, kf2=\E[2~, kf3=\E[3~, kf4=\E[4~,
13553	kf5=\E[5~, kf6=\E[6~, kf7=\E[7~, kf8=\E[8~, kf9=\E[9~,
13554	khome=\E[G, kich1=\E[@, knp=\E[26~, kpp=\E[25~, lf0=f1,
13555	lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7, lf7=f8, lf8=f9,
13556	lf9=f10, ri=\EM, rmacs=^O, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
13557	smacs=^N, smso=\E[7m, smul=\E[4m,
13558pt210|TRS-80 PT-210 printing terminal,
13559	hc, os,
13560	cols#80,
13561	bel=^G, cr=^M, cud1=^J, ind=^J,
13562
13563#### Tektronix (tek)
13564#
13565# Tektronix tubes are graphics terminals.  Most of them use modified
13566# oscilloscope technology incorporating a long-persistence green phosphor,
13567# and support vector graphics on a main screen with an attached "dialogue
13568# area" for interactive text.
13569#
13570
13571tek|tek4012|tektronix 4012,
13572	OTbs, os,
13573	cols#75, lines#35,
13574	bel=^G, clear=\E\014$<1000>, cr=^M, cub1=^H, cud1=^J,
13575	ff=\014$<1000>, is2=\E^O,
13576# (tek4013: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13577tek4013|tektronix 4013,
13578	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4012,
13579tek4014|tektronix 4014,
13580	cols#81, lines#38,
13581	is2=\E\017\E9, use=tek4012,
13582# (tek4015: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13583tek4015|tektronix 4015,
13584	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014,
13585tek4014-sm|tektronix 4014 in small font,
13586	cols#121, lines#58,
13587	is2=\E\017\E\:, use=tek4014,
13588# (tek4015-sm: added <acsc> to suppress tic warnings re <smacs>/<rmacs> --esr)
13589tek4015-sm|tektronix 4015 in small font,
13590	acsc=, rmacs=\E^O, smacs=\E^N, use=tek4014-sm,
13591# Tektronix 4023 from Andrew Klossner <orca!andrew.tektronix@csnet-relay>
13592#
13593# You need to have "stty nl2" in effect.  Some versions of tset(1) know
13594# how to set it for you.
13595#
13596# It's got the Magic Cookie problem around stand-out mode.  If you can't
13597# live with Magic Cookie, remove the :so: and :se: fields and do without
13598# reverse video.  If you like reverse video stand-out mode but don't want
13599# it to flash, change the letter 'H' to 'P' in the :so: field.
13600tek4023|tektronix 4023,
13601	OTbs, am,
13602	OTdN#4, cols#80, lines#24, vt#4, xmc#1,
13603	OTnl=^J, bel=^G, clear=\E\014$<4/>, cr=^M, cub1=^H, cud1=^J,
13604	cuf1=^I, cup=\034%p2%{32}%+%c%p1%{32}%+%c, kbs=^H,
13605	rmso=^_@, smso=^_P,
13606# It is recommended that you run the 4025 at 4800 baud or less;
13607# various bugs in the terminal appear at 9600.  It wedges at the
13608# bottom of memory (try "cat /usr/dict/words"); ^S and ^Q typed
13609# on keyboard don't work.  You have to hit BREAK twice to get
13610# one break at any speed - this is a documented feature.
13611# Can't use cursor motion because it's memory relative, and
13612# because it only works in the workspace, not the monitor.
13613# Same for home. Likewise, standout only works in the workspace.
13614#
13615# <el> was commented out since vi and rogue seem to work better
13616# simulating it with lots of spaces!
13617#
13618# <il1> and <il> had 145ms of padding, but that slowed down vi's ^U
13619# and didn't seem necessary.
13620#
13621tek4024|tek4025|tek4027|tektronix 4024/4025/4027,
13622	OTbs, am, da, db,
13623	cols#80, it#8, lines#34, lm#0,
13624	bel=^G, clear=\037era\r\n\n, cmdch=^_, cr=^M,
13625	cub=\037lef %p1%d\r, cub1=^H, cud=\037dow %p1%d\r,
13626	cud1=^F^J, cuf=\037rig %p1%d\r, cuf1=\037rig\r,
13627	cuu=\037up %p1%d\r, cuu1=^K, dch1=\037dch\r,
13628	dl=\037dli %p1%d\r\006, dl1=\037dli\r\006,
13629	ed=\037dli 50\r, ht=^I, ich1=\037ich\r \010,
13630	il=\037up\r\037ili %p1%d\r, il1=\037up\r\037ili\r,
13631	ind=^F^J,
13632	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
13633	rmkx=\037lea p2\r\037lea p4\r\037lea p6\r\037lea p8\r\037lea f5\r,
13634	smkx=\037lea p4 /h/\r\037lea p8 /k/\r\037lea p6 / /\r\037lea p2 /j/\r\037lea f5 /H/\r,
13635tek4025-17|tek 4025 17 line window,
13636	lines#17, use=tek4025,
13637tek4025-17-ws|tek 4025 17 line window in workspace,
13638	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r\037wor 17\r\037mon 17\r,
13639	rmcup=\037mon h\r, rmso=\037att s\r, smcup=\037wor h\r,
13640	smso=\037att e\r, use=tek4025-17,
13641tek4025-ex|tek4027-ex|tek 4025/4027 w/!,
13642	is2=\037com 33\r\n!sto 9 17 25 33 41 49 57 65 73\r,
13643	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
13644# Tektronix 4025a
13645# From: Doug Gwyn <gwyn@brl-smoke.ARPA>
13646# The following status modes are assumed for normal operation (replace the
13647# initial "!" by whatever the current command character is):
13648#	!COM 29			# NOTE: changes command character to GS (^])
13649#	^]DUP
13650#	^]ECH R
13651#	^]EOL
13652#	^]RSS T
13653#	^]SNO N
13654#	^]STO 9 17 25 33 41 49 57 65 73
13655# Other modes may be set according to communication requirements.
13656# If the command character is inadvertently changed, termcap can't restore it.
13657# Insert-character cannot be made to work on both top and bottom rows.
13658# Clear-to-end-of-display emulation via !DLI 988 is too grotty to use, alas.
13659# There also seems to be a problem with vertical motion, perhaps involving
13660# delete/insert-line, following a typed carriage return.  This terminal sucks.
13661# Delays not specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13662# (tek4025a: removed obsolete ":xx:". This may mean the tek4025a entry won't
13663# work any more. -- esr)
13664tek4025a|Tektronix 4025A,
13665	OTbs, OTpt, am, bw, da, db, xon,
13666	cols#80, it#8, lines#34,
13667	bel=^G, cbt=\035bac;, clear=\035era;\n\035rup;, cmdch=^],
13668	cr=^M, cub=\035lef %p1%d;, cub1=^H, cud=\035dow %p1%d;,
13669	cud1=^J, cuf=\035rig %p1%d;, cuf1=\035rig;,
13670	cuu=\035up %p1%d;, cuu1=^K, dch=\035dch %p1%d;,
13671	dch1=\035dch;, dl=\035dli %p1%d;, dl1=\035dli;,
13672	el=\035dch 80;, hpa=\r\035rig %p1%d;, ht=^I,
13673	il1=\013\035ili;, ind=^J, indn=\035dow %p1%d;,
13674	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;,
13675	tbc=\035sto;,
13676# From: cbosg!teklabs!davem Wed Sep 16 21:11:41 1981
13677# Here's the command file that I use to get rogue to work on the 4025.
13678# It should work with any program using the old curses (e.g. it better
13679# not try to scroll, or cursor addressing won't work.  Also, you can't
13680# see the cursor.)
13681# (This "learns" the arrow keys for rogue. I have adapted it for termcap - mrh)
13682tek4025-cr|tek 4025 for curses and rogue,
13683	OTbs, am,
13684	cols#80, it#8, lines#33,
13685	clear=\037era;, cub1=^H, cud1=^F^J, cuf1=\037rig;,
13686	cup=\037jum%i%p1%d\,%p2%d;, cuu1=^K, ht=^I, ind=^F^J,
13687	is2=!com 31\r\n\037sto 9 17 25 33 41 49 57 65 73\r,
13688	rmcup=\037wor 0, smcup=\037wor 33h,
13689# next two lines commented out since curses only allows 128 chars, sigh.
13690#	: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:\
13691#	: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:
13692tek4025ex|4025ex|4027ex|tek 4025 w/!,
13693	is2=\037com 33\r\n!sto 9\,17\,25\,33\,41\,49\,57\,65\,73\r,
13694	rmcup=\037com 33\r, smcup=!com 31\r, use=tek4025,
13695tek4105|tektronix 4105,
13696	OTbs, am, mir, msgr, ul, xenl, xt,
13697	cols#79, it#8, lines#29,
13698	acsc=, bel=^G, blink=\E[=3;<7m, bold=\E[=7;<4m, cbt=\E[Z,
13699	clear=\E[2J\E[H, cr=^M, cud1=\E[1B, cuf1=\E[1C,
13700	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\E[1A, dch1=\E[1P,
13701	dim=\E[=1;<6m, dl1=\E[1M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
13702	il1=\E[1L, ind=\E[S, invis=\E[=6;<5, is1=\E%!1\E[m,
13703	is2=\E%!1\E[?6141\E[m, kbs=^H, kcub1=\E[1D, kcud1=\E[1B,
13704	kcuf1=\E[1C, kcuu1=\E[1A, rev=\E[=1;<3m, ri=\E[T,
13705	rmacs=\E[m, rmcup=, rmir=\E[4l, rmso=\E[=0;<1m,
13706	rmul=\E[=0;<1m, sgr0=\E[=0;<1m, smacs=\E[1m,
13707	smcup=\E%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
13708	smul=\E[=5;<2m, tbc=\E[1g,
13709
13710# (tek4105-30: I added <rmam>/<smam> based on the init string -- esr)
13711tek4105-30|4015 emulating 30 line vt100,
13712	am, mir, msgr, xenl, xon,
13713	cols#80, it#8, lines#30, vt#3,
13714	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
13715	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
13716	clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13717	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13718	cuf=\E[%p1%dC, cuf1=\E[C$<2>,
13719	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
13720	cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
13721	enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=^J, ka1=\EOq,
13722	ka3=\EOs, kb2=\EOr, kbs=^H, kc1=\EOp, kc3=\EOn, kcub1=\EOD,
13723	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy,
13724	kf1=\EOP, kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt,
13725	kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, rc=\E8,
13726	rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
13727	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
13728	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
13729	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;$<2>,
13730	sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
13731	smso=\E[1;7m$<2>, smul=\E[4m$<2>, tbc=\E[3g,
13732
13733# Tektronix 4105 from BRL
13734# The following setup modes are assumed for normal operation:
13735#	CODE ansi		CRLF no			DABUFFER 141
13736#	DAENABLE yes		DALINES 30		DAMODE replace
13737#	DAVISIBILITY yes	ECHO no			EDITMARGINS 1 30
13738#	FLAGGING input		INSERTREPLACE replace	LFCR no
13739#	ORIGINMODE relative	PROMPTMODE no		SELECTCHARSET G0 B
13740#	SELECTCHARSET G1 0	TABS -2
13741# Other setup modes may be set for operator convenience or communication
13742# requirements; I recommend
13743#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
13744#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
13745#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
13746#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 10 1
13747#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
13748#	PROMPTSTRING ''		QUEUESIZE 2460		WINDOW 0 0 4095 3132
13749#	XMTDELAY 0
13750# and factory color maps.  After setting these modes, save them with NVSAVE. No
13751# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13752# "IC" cannot be used in combination with "im" & "ei".
13753# "tek4105a" is just a guess:
13754tek4105a|Tektronix 4105,
13755	OTbs, OTpt, msgr, xon,
13756	OTkn#8, cols#80, it#8, lines#30, vt#3,
13757	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
13758	civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
13759	cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13760	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13761	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13762	cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
13763	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
13764	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
13765	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
13766	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13767	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
13768	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
13769	lf5=F6, lf6=F8, ll=\E[30;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
13770	rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
13771	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
13772	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>,
13773	sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
13774	smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
13775
13776#
13777# Tektronix 4106/4107/4109 from BRL
13778# The following setup modes are assumed for normal operation:
13779#	CODE ansi		COLUMNMODE 80		CRLF no
13780#	DABUFFER 141		DAENABLE yes		DALINES 32
13781#	DAMODE replace		DAVISIBILITY yes	ECHO no
13782#	EDITMARGINS 1 32	FLAGGING input		INSERTREPLACE replace
13783#	LFCR no			LOCKKEYBOARD no		ORIGINMODE relative
13784#	PROMPTMODE no		SELECTCHARSET G0 B	SELECTCHARSET G1 0
13785#	TABS -2
13786# Other setup modes may be set for operator convenience or communication
13787# requirements; I recommend
13788#	ACURSOR 1 0		AUTOREPEAT yes		AUTOWRAP yes
13789#	BYPASSCANCEL <LF>	CURSORKEYMODE no	DAINDEX 1 0 0
13790#	EOFSTRING ''		EOLSTRING <CR>		EOMCHARS <CR> <NU>
13791#	GAMODE overstrike	GCURSOR 0 100 0		GSPEED 9 3
13792#	IGNOREDEL no		KEYEXCHAR <DL>		NVDEFINE -53 "<NU>"
13793#	PROMPTSTRING ''		QUEUESIZE 2620		WINDOW 0 0 4095 3132
13794#	XMTDELAY 0
13795# and factory color maps.  After setting these modes, save them with NVSAVE.  No
13796# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
13797# "IC" cannot be used in combination with "im" & "ei".
13798tek4106brl|tek4107brl|tek4109brl|Tektronix 4106 4107 or 4109,
13799	msgr, xon,
13800	cols#80, it#8, lines#32, vt#3,
13801	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
13802	civis=\E%!0\ETD00\E%!1, clear=\E[H\E[J,
13803	cnorm=\E%!0\ETD10\E%!1, cr=^M, csr=\E[%i%p1%d;%p2%dr,
13804	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13805	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13806	cuu=\E[%p1%dA, cuu1=\EM, cvvis=\E%!0\ETD70\E%!1,
13807	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
13808	ech=\E[%p1%dX, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
13809	il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS, is2=\E%!1,
13810	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
13811	kf0=\EOA, kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EOP, kf5=\EOQ,
13812	kf6=\EOR, kf7=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, lf4=F5,
13813	lf5=F6, lf6=F8, ll=\E[32;H, nel=\EE, rc=\E8, rev=\E[7m, ri=\EM,
13814	rin=\E[%p1%dT, rmacs=^O, rmcup=\E%!0\ELBH=\E%!1,
13815	rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
13816	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>,
13817	sc=\E7, sgr0=\E[m, smacs=^N, smcup=\E[?6l, smir=\E[4h,
13818	smkx=\E[?1h\E=, smso=\E[7;42m, smul=\E[4m, tbc=\E[3g,
13819
13820tek4107|tek4109|tektronix terminals 4107 4109,
13821	OTbs, am, mir, msgr, ul, xenl, xt,
13822	cols#79, it#8, lines#29,
13823	bel=^G, blink=\E%!1\E[5m$<2>\E%!0,
13824	bold=\E%!1\E[1m$<2>\E%!0, clear=\ELZ, cnorm=\E%!0, cr=^M,
13825	cub1=^H, cud1=^J, cuf1=\EC,
13826	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\E%!3,
13827	dim=\E%!1\E[<0m$<2>\E%!0, ed=\EJ, el=\EK, ht=^I, ind=^J,
13828	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
13829	rev=\E%!1\E[7m$<2>\E%0, ri=\EI,
13830	rmso=\E%!1\E[m$<2>\E%!0, rmul=\E%!1\E[m$<2>\E%!0,
13831	sgr=\E%%!1\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>\E%%!0,
13832	sgr0=\E%!1\E[m$<2>\E%!0, smso=\E%!1\E[7;5m$<2>\E%!0,
13833	smul=\E%!1\E[4m$<2>\E%!0,
13834# Tektronix 4207 with sysline.  In the ancestral termcap file this was 4107-s;
13835# see the note attached to tek4207.
13836tek4207-s|Tektronix 4207 with sysline but no memory,
13837	eslok, hs,
13838	dsl=\E7\E[?6l\E[2K\E[?6h\E8, fsl=\E[?6h\E8,
13839	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,
13840	is2=\E7\E[?6l\E[2K\E[?6h\E8,
13841	tsl=\E7\E[?6l\E[2K\E[;%i%df, use=tek4107,
13842
13843# The 4110 series may be a wonderful graphics series, but they make the 4025
13844# look good for screen editing.  In the dialog area, you can't move the cursor
13845# off the bottom line.  Out of the dialog area, ^K moves it up, but there
13846# is no way to scroll.
13847#
13848# Note that there is a floppy for free from Tek that makes the
13849# 4112 emulate the vt52 (use the vt52 termcap). There is also
13850# an expected enhancement that will use ANSI standard sequences.
13851#
13852# 4112 in non-dialog area pretending to scroll. It really wraps
13853# but vi is said to work (more or less) in this mode.
13854#
13855# 'vi' works reasonably well with this entry.
13856#
13857otek4112|o4112-nd|otek4113|otek4114|old tektronix 4110 series,
13858	am,
13859	cols#80, lines#34,
13860	bel=^G, clear=\E^L, cr=^M, cub1=^H, cud1=^J, cuu1=^K, ind=^J,
13861	rmcup=\EKA1\ELV1, smcup=\EKA0\ELV0\EMG0,
13862# The 4112 with the ANSI compatibility enhancement
13863tek4112|tek4114|tektronix 4110 series,
13864	OTbs, am, db,
13865	cols#80, lines#34,
13866	cbt=\E[Z, clear=\E[2J\E[0;0H, cub1=^H, cuf1=\E[C,
13867	cup=\E[%i%p1%d;%p2%dH, cuu1=\EM, dch1=\E[P, dl1=\E[M,
13868	ed=\E[0J, el=\E[0K, ich1=\E[@, il1=\E[L,
13869	ind=\E7\E[0;0H\E[M\E8, is2=\E3!1, ri=\E7\E[0;0H\E[L\E8,
13870	rmso=\E[m, rmul=\E[m, sgr0=\E[m, smso=\E[7m, smul=\E[4m,
13871tek4112-nd|4112 not in dialog area,
13872	OTns,
13873	cuu1=^K, use=tek4112,
13874tek4112-5|4112 in 5 line dialog area,
13875	lines#5, use=tek4112,
13876# (tek4113: this used to have "<cuf1=\LM1\s\LM0>", someone's mistake;
13877# removed "<smacs=\E^N>, <rmacs=\E^O>", which had been commented out in 8.3.
13878# Note, the !0 and !1 sequences in <rmcup>/<smcup>/<cnorm>/<civis> were
13879# previously \0410 and \0411 sequences...I don't *think* they were supposed
13880# to be 4-digit octal -- esr)
13881tek4113|tektronix 4113 color graphics with 5 line dialog area,
13882	OTbs, am, da, eo,
13883	cols#80, lines#5,
13884	clear=\ELZ, cub1=^H, cud1=^J, cuf1=\ELM1 \ELM0,
13885	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
13886	is2=\EKA1\ELL5\ELV0\ELV1, uc=\010\ELM1_\ELM0,
13887tek4113-34|tektronix 4113 color graphics with 34 line dialog area,
13888	lines#34,
13889	is2=\EKA1\ELLB2\ELV0\ELV1, use=tek4113,
13890# :ns: left off to allow vi visual mode. APL font (:as=\E^N:/:ae=\E^O:) not
13891# supported here. :uc: is slow, but looks nice. Suggest setenv MORE -up .
13892# :vb: needs enough delay to let you see the background color being toggled.
13893tek4113-nd|tektronix 4113 color graphics with no dialog area,
13894	OTbs, am, eo,
13895	cols#80, it#8, lines#34,
13896	clear=\E^L, cub1=^H, cud1=^J, cuf1=^I, cuu1=^K,
13897	cvvis=\ELZ\EKA0,
13898	flash=\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERBA4\ERB0,
13899	home=\ELF7l\177 @, ht=^I, is2=\ELZ\EKA0\ELF7l\177 @,
13900	ll=\ELF hl @, rmso=\EMT1, smso=\EMT2, uc=\010\EMG1_\EMG0,
13901# This entry is from Tek. Inc.  (Brian Biehl)
13902# (tek4115: :bc: renamed to :le:, <rmam>/<smam> added based on init string -- esr)
13903otek4115|Tektronix 4115,
13904	OTbs, am, da, db, eo,
13905	cols#80, it#8, lines#34,
13906	cbt=\E[Z, clear=\E[H\E[2J,
13907	cnorm=\E%!0\ELBG8\E%!1\E[34;1H, cub1=\E[D, cud1=\E[B,
13908	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
13909	cvvis=\E%!0\ELBB2\E%!1, dch1=\E[P, dl1=\E[M, ed=\E[J,
13910	el=\E[K, home=\E[H, ht=^I, if=/usr/share/tabset/vt100,
13911	il1=\E[L,
13912	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,
13913	kbs=^H, ri=\EM, rmam=\E[?7l,
13914	rmcup=\E%!0\ELBG8\E%!1\E[34;1H\E[J, rmir=\E[4l,
13915	rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smam=\E[?7h,
13916	smcup=\E%!0\ELBB2\E%!1, smir=\E[4h, smkx=\E=, smso=\E[7m,
13917	smul=\E[4m,
13918tek4115|newer tektronix 4115 entry with more ANSI capabilities,
13919	am, xon,
13920	cols#80, lines#34,
13921	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J,
13922	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
13923	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13924	cuu=\E[%p1%dA, cuu1=\E[A, dch1=\E[P, dl=\E[%p1%dM,
13925	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, hpa=\E[%p1%{1}%+%dG,
13926	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
13927	il1=\E[L, ind=^J, invis=\E[8m, kbs=^H, kcub1=\E[D,
13928	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H,
13929	rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, rmam=\E[?7l,
13930	rmso=\E[m, rmul=\E[m,
13931	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
13932	sgr0=\E[m, smam=\E[?7h, smso=\E[7m, smul=\E[4m, tbc=\E[2g,
13933	vpa=\E[%p1%{1}%+%dd,
13934# The tek4125 emulates a vt100 incorrectly - the scrolling region
13935# command is ignored.  The following entry replaces <csr> with the needed
13936# <il>, <il>, and <smir>; removes some cursor pad commands that the tek4125
13937# chokes on; and adds a lot of initialization for the tek dialog area.
13938# Note that this entry uses all 34 lines and sets the cursor color to green.
13939# Steve Jacobson 8/85
13940# (tek4125: there were two "\!"s in the is that I replaced with "\E!";
13941# commented out, <smir>=\E1 because there's no <rmir>  -- esr)
13942tek4125|tektronix 4125,
13943	lines#34,
13944	csr@, dl1=\E[1M, il1=\E[1L,
13945	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,
13946	rc@, sc@, smkx=\E=, use=vt100,
13947
13948# From: <jcoker@ucbic>
13949# (tek4207: This was the termcap file's entry for the 4107/4207, but SCO
13950# supplied another, less capable 4107 entry.  So we'll use that for 4107 and
13951# note that if jcoker wasn't confused you may be able to use this one.
13952# I merged in <msgr>,<ind>,<ri>,<invis>,<tbc> from a BRL entry -- esr)
13953tek4207|Tektronix 4207 graphics terminal with memory,
13954	am, bw, mir, msgr, ul, xenl,
13955	cols#80, it#8, lines#32,
13956	blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J$<156/>,
13957	cub1=^H, cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
13958	cuu1=\EM, dch1=\E[P$<4/>, dl1=\E[M$<3/>, ed=\E[J,
13959	el=\E[K$<5/>, home=\E[H, ht=^I, ich1=\E[@$<4/>,
13960	il1=\E[L$<3/>, ind=\E[S, invis=\E[=6;<5,
13961	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,
13962	kcub1=\E[D, kcud1=\ED, kcuf1=\E[C, kcuu1=\EM, khome=\E[H,
13963	rev=\E[7m, ri=\E[T,
13964	rmcup=\E[?6h\E%!0\ELBP0\E%!1\E[32;1f, rmso=\E[m,
13965	rmul=\E[m, sgr0=\E[m, smcup=\E[?6l\E[H\E[J, smso=\E[7m,
13966	smul=\E[4m, tbc=\E[1g,
13967
13968# From: <carolyn@dali.berkeley.edu>  Thu Oct 31 12:54:27 1985
13969# (tek4404: There was a "\!" in <smcup> that I replaced with "\E!".
13970# Tab had been given as \E2I,that must be the tab-set capability -- esr)
13971tek4404|tektronix 4404,
13972	OTbs,
13973	cols#80, it#8, lines#32,
13974	blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J,
13975	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
13976	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[1M,
13977	ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\E[2I, il1=\E[1L,
13978	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rc=\E8,
13979	rmcup=\E[1;1H\E[0J\E[?6h\E[?1l, rmir=\E[4l,
13980	rmkx=\E[?1h, rmso=\E[27m, rmul=\E[m, sc=\E7, sgr0=\E[m,
13981	smcup=\E%\E!1\E[1;32r\E[?6l\E>, smir=\E[4h,
13982	smkx=\E[?1l, smso=\E[7m, smul=\E[4m,
13983# Some unknown person wrote:
13984# I added the is string - straight Unix has ESC ; in the login
13985# string which sets a ct8500 into monitor mode (aka 4025 snoopy
13986# mode). The is string here cleans up a few things (but not
13987# everything).
13988ct8500|tektronix ct8500,
13989	am, bw, da, db,
13990	cols#80, lines#25,
13991	bel=^G, cbt=\E^I, clear=\E^E, cr=^M, cub1=^H, cud1=^J,
13992	cuf1=\ES, cup=\E|%p1%{32}%+%c%p2%{32}%+%c, cuu1=\ER,
13993	dch1=\E^], dl1=\E^M, ed=\E^U, el=\E^T, ht=^I, ich1=\E^\,
13994	il1=\E^L, ind=^J, is2=\037\EZ\Ek, ri=\E^A, rmso=\E\s,
13995	rmul=\E\s, sgr0=\E\s, smso=\E$, smul=\E!,
13996
13997# Tektronix 4205 terminal.
13998#
13999# am is not defined because the wrap around occurs not when the char.
14000# is placed in the 80'th column, but when we are attempting to type
14001# the 81'st character on the line.  (esr: hmm, this is like the vt100
14002# version of xenl, perhaps am + xenl would work!)
14003#
14004# Bold, dim, and standout are simulated by colors and thus not allowed
14005# with colors.  The tektronix color table is mapped into the RGB color
14006# table by setf/setb. All colors are reset to factory specifications by oc.
14007# The <initc> cap uses RGB notation to define colors.  for arguments 1-3 the
14008# interval (0-1000) is broken into 8 smaller sub-intervals (125).  Each sub-
14009# interval then maps into pre-defined value.
14010tek4205|tektronix 4205,
14011	ccc, mir, msgr,
14012	colors#8, cols#80, it#8, lines#30, ncv#49, pairs#63,
14013	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14014	bel=^G, blink=\E[5m, bold=\E[=7;<4m, cbt=\E[Z,
14015	clear=\E[2J\E[H, cr=^M, cub=\E[%p1%dD, cub1=\E[D,
14016	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
14017	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
14018	dch1=\E[1P, dim=\E[=1;<6m, dl1=\E[1M, ech=\E%p1%dX,
14019	ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0, home=\E[H, ht=^I,
14020	ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
14021	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,
14022	invis=\E[=6;<5, is1=\E%!0\ETM1\E%!1\E[m, kbs=^H,
14023	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\EOA,
14024	kf1=\EOB, kf2=\EOC, kf3=\EOD, kf4=\EP, kf5=\EQ, kf6=\ER,
14025	kf7=\ES,
14026	oc=\E%!0\ETFB000001F4F4F42F40030F404A4C<F450F4F46F40F47F4F40\E%!1,
14027	op=\E[39;40m, rev=\E[7m, ri=\EM, rmacs=^O, rmcup=,
14028	rmir=\E[4l, rmso=\E[=0;<1m, rmul=\E[24m,
14029	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%;,
14030	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%;,
14031	sgr0=\E[=0;<1m\E[24;25;27m\017, smacs=^N,
14032	smcup=\E%%!1\E[?6l\E[2J, smir=\E[4h, smso=\E[=2;<3m,
14033	smul=\E[4m, tbc=\E[1g,
14034
14035#### Teletype (tty)
14036#
14037# These are the hardcopy Teletypes from before AT&T bought the company,
14038# clattering electromechanical dinosaurs in Bakelite cases that printed on
14039# pulpy yellow roll paper.  If you remember these you go back a ways.
14040# Teletype-branded VDTs are listed in the AT&T section.
14041#
14042# The earliest UNIXes were designed to use these clunkers; nroff and a few
14043# other programs still default to emitting codes for the Model 37.
14044#
14045
14046tty33|tty35|model 33 or 35 teletype,
14047	hc, os, xon,
14048	cols#72,
14049	bel=^G, cr=^M, cud1=^J, ind=^J,
14050tty37|model 37 teletype,
14051	OTbs, hc, os, xon,
14052	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
14053	ind=^J,
14054
14055# There are known to be at least three flavors of the tty40, all seem more
14056# like IBM half duplex forms fillers than ASCII terminals.  They have lots of
14057# awful braindamage, such as printing a visible newline indicator after each
14058# newline.  The 40-1 is a half duplex terminal and is hopeless.  The 40-2 is
14059# braindamaged but has hope and is described here.  The 40-4 is a 3270
14060# lookalike and beyond hope.  The terminal has visible bell but I don't know
14061# it - it's null here to prevent it from showing the BL character.
14062# There is an \EG in <nl> because of a bug in old vi (if stty says you have
14063# a "newline" style terminal (-crmode) vi figures all it needs is nl
14064# to get crlf, even if <cr> is not ^M.)
14065# (tty40: removed obsolete ":nl=\EG\EB:", it's just do+cr -- esr)
14066tty40|ds40|ds40-2|dataspeed40|teletype dataspeed 40/2,
14067	OTbs, xon,
14068	cols#80, lines#24,
14069	clear=\EH$<20>\EJ$<80>, cr=\EG, cub1=^H, cud1=\EB,
14070	cuf1=\EC, cuu1=\E7, dch1=\EP$<50>, dl1=\EM$<50>,
14071	ed=\EJ$<75>, home=\EH$<10>, ht=\E@$<10>, hts=\E1,
14072	ich1=\E\^$<50>, il1=\EL$<50>, ind=\ES$<20>, kbs=^],
14073	kcub1=^H, mc4=^T, mc5=\022$<2000>, ri=\ET$<10>, rmso=\E4,
14074	rs2=\023\ER$<60>, smso=\E3, tbc=\EH\E2$<80>,
14075tty43|model 43 teletype,
14076	OTbs, am, hc, os, xon,
14077	cols#132,
14078	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
14079
14080#### Tymshare
14081#
14082
14083# You can add <is2=\E<> to put this 40-column mode, though I can't
14084# for the life of me think why anyone would want to.
14085scanset|sc410|sc415|Tymshare Scan Set,
14086	am, bw, msgr,
14087	cols#80, lines#24,
14088	acsc=j%k4l<m-q\,x5, bel=^G, clear=\EH\EJ, cr=^M, cub1=^H,
14089	cud1=^J, cuf1=^I, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14090	cuu1=^K, ed=\EJ, el=\EK, home=\EH, ind=^J, kcub1=\ED,
14091	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, mc0=\E;3, mc4=\E;0,
14092	mc5=\E;0, rc=^C, rmacs=^O, rs1=\E>, sc=^B, smacs=^N,
14093
14094#### Volker-Craig (vc)
14095#
14096# If you saw a Byte Magazine cover with a terminal on it during the early
14097# 1980s, it was probably one of these.  Carl Helmers liked them because
14098# they could crank 19.2 and were cheap (that is, he liked them until he tried
14099# to program one...)
14100#
14101
14102# Missing in vc303a and vc303 descriptions:  they scroll 2 lines at a time
14103# every other linefeed.
14104vc303|vc103|vc203|volker-craig 303,
14105	OTbs, OTns, am,
14106	cols#80, lines#24,
14107	bel=^G, clear=\014$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
14108	cuu1=^N, home=\013$<40>, kcub1=^H, kcud1=^J, kcuf1=^I,
14109	kcuu1=^N, ll=\017$<1>W,
14110vc303a|vc403a|volker-craig 303a,
14111	clear=\030$<40>, cuf1=^U, cuu1=^Z, el=\026$<20>,
14112	home=\031$<40>, kcuf1=^U, kcuu1=^Z, ll=^P, use=vc303,
14113# (vc404: removed obsolete ":ma=^Z^P^U :" -- esr)
14114vc404|volker-craig 404,
14115	OTbs, am,
14116	cols#80, lines#24,
14117	bel=^G, clear=\030$<40>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
14118	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
14119	ed=\027$<40>, el=\026$<20>, home=\031$<40>, ind=^J,
14120	kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^Z,
14121vc404-s|volker-craig 404 w/standout mode,
14122	cud1=^J, rmso=^O, smso=^N, use=vc404,
14123# From: <wolfgang@cs.sfu.ca>
14124# (vc414: merged in cup/dl1/home from an old vc414h-noxon)
14125vc414|vc414h|Volker-Craig 414H in sane escape mode.,
14126	OTbs, am,
14127	cols#80, lines#24,
14128	clear=\E\034$<40>, cud1=\E^K, cuf1=^P,
14129	cup=\E\021%p2%c%p1%c$<40>, cuu1=\E^L, dch1=\E3,
14130	dl1=\E\023$<40>, ed=\E^X, el=\E\017$<10/>, home=\E^R,
14131	ich1=\E\:, il1=\E\032$<40>, kcub1=^H, kcud1=\E^K, kcuf1=^P,
14132	kcuu1=\E^L, kf0=\EA, kf1=\EB, kf2=\EC, kf3=\ED, kf4=\EE,
14133	kf5=\EF, kf6=\EG, kf7=\EH, khome=\E^R, lf0=PF1, lf1=PF2,
14134	lf2=PF3, lf3=PF4, lf4=PF5, lf5=PF6, lf6=PF7, lf7=PF8,
14135	rmso=\E^_, smso=\E^Y,
14136vc415|volker-craig 415,
14137	clear=^L, use=vc404,
14138
14139######## OBSOLETE PERSONAL-MICRO CONSOLES AND EMULATIONS
14140#
14141
14142#### IBM PC and clones
14143#
14144
14145# The pcplot IBM-PC terminal emulation program is really messed up. It is
14146# supposed to emulate a vt-100, but emulates the wraparound bug incorrectly,
14147# doesn't support scrolling regions, ignores add line commands, and ignores
14148# delete line commands. Consequently, the resulting behavior looks like a
14149# crude adm3a-type terminal.
14150# Steve Jacobson 8/85
14151pcplot|pc-plot terminal emulation program,
14152	xenl@,
14153	csr@, dl@, dl1@, il@, il1@, rc@, sc@, use=vt100,
14154# KayPro II from Richard G Turner <rturner at Darcom-Hq.ARPA>
14155# I've found that my KayPro II, running MDM730, continues to emulate an
14156# ADM-3A terminal, just like I was running TERM.COM. On our 4.2 UNIX
14157# system the following termcap entry works well:
14158# I have noticed a couple of minor glitches, but nothing I can't work
14159# around. (I added two capabilities from the BRL entry -- esr)
14160kaypro|kaypro2|kaypro II,
14161	OTbs, am,
14162	cols#80, lines#24,
14163	bel=^G, clear=\032$<1/>, cr=^M, cud1=^J, cuf1=^L,
14164	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dl1=\ER, ed=^W,
14165	el=^X, home=^^, il1=\EE, ind=^J, kcud1=^J, kcuf1=^L, kcuu1=^K,
14166
14167# From IBM, Thu May  5 19:35:27 1983
14168# (ibmpc: commented out <smir>=\200R because we don't know <rmir> -- esr)
14169ibm-pc|ibm5051|5051|IBM Personal Computer (no ANSI.SYS),
14170	OTbs, am,
14171	cols#80, lines#24,
14172	bel=^G, clear=^L^K, cr=^M^^, cub1=^], cud1=^J, cuf1=^\,
14173	cuu1=^^, home=^K, ind=\n$<10>, kcud1=^_,
14174
14175ibmpc|wy60-PC|wyse60-PC|IBM PC/XT running PC/IX,
14176	OTbs, am, bw, eo, hs, km, msgr, ul,
14177	cols#80, it#8, lines#24,
14178	acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x\263,
14179	bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=^M,
14180	cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
14181	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14182	cuu=\E[%p1%dA, cuu1=\E[A, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
14183	home=\E[H, hpa=\E[%i%p1%dG, ind=\E[S\E[B,
14184	indn=\E[%p1%dS\E[%p1%dB, invis=\E[30;40m, kbs=^H,
14185	kcbt=^], kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
14186	kdch1=\177, kend=\E[Y, kf1=\240, kf10=\251, kf2=\241,
14187	kf3=\242, kf4=\243, kf5=\244, kf6=\245, kf7=\246, kf8=\247,
14188	kf9=\250, khome=\E[H, kich1=\E[^H, knp=\E[U, kpp=\E[V,
14189	ll=\E[24;1H, nel=^M, rev=\E[7m, ri=\E[T\E[A,
14190	rin=\E[%p1%dT\E[%p1%dA, rmso=\E[m, rmul=\E[m,
14191	sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
14192	sgr0=\E[m, smso=\E[7m, smul=\E[4m,
14193
14194#### Apple II
14195#
14196# Apple II firmware console first, then various 80-column cards and
14197# terminal emulators.  For two cents I'd toss all these in the UFO file
14198# along with the 40-column apple entries.
14199#
14200
14201# From: brsmith@umn-cs.cs.umn.edu (Brian R. Smith) via BRL
14202#	'it#8' tells UNIX that you have tabs every 8 columns.  This is a
14203#		function of TIC, not the firmware.
14204#	The clear key on a IIgs will do something like clear-screen,
14205#		depending on what you're in.
14206appleIIgs|appleIIe|appleIIc|Apple 80 column firmware interface,
14207	OTbs, am, bw, eo, msgr,
14208	cols#80, it#8, lines#24,
14209	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^\,
14210	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14211	home=^Y, ht=^I, ind=^W, kbs=^H, kclr=^X, kcub1=^H, kcud1=^J,
14212	kcuf1=^U, kcuu1=^K, kdch1=\177, nel=^M^W, ri=^V, rmso=^N,
14213	smso=^O,
14214# Apple //e with 80-column card, entry from BRL
14215# The modem interface is permitted to discard LF (maybe DC1), otherwise
14216# passing characters to the 80-column firmware via COUT (PR#3 assumed).
14217# Auto-wrap does not work right due to newline scrolling delay, which also
14218# requires that you set "stty cr2".
14219# Note: Cursor addressing is only available via the Pascal V1.1 entry,
14220# not via the BASIC PR#3 hook.  All this nonsense can be avoided only by
14221# using a terminal emulation program instead of the built-in firmware.
14222apple2e|Apple //e,
14223	bw, msgr,
14224	cols#80, lines#24,
14225	bel=^G, clear=\014$<100/>, cub1=^H, cud1=^J, cuu1=^_,
14226	ed=\013$<4*/>, el=\035$<4/>, home=^Y, ht=^I, ind=^W,
14227	is2=^R^N, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^U, kcuu1=^K,
14228	nel=\r$<100/>, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
14229	smso=^O,
14230# mcvax!vu44!vu45!wilcke uses the "ap" entry together with Ascii Express Pro
14231# 4.20, with incoming and outgoing terminals both on 0, emulation On.
14232apple2e-p|Apple //e via Pascal,
14233	cup=\036%p2%{32}%+%c%p1%{32}%+%c, kbs=^H, kcub1=^H,
14234	kcud1=^J, use=apple2e,
14235# (ASCII Express) MouseTalk "Standard Apple //" emulation from BRL
14236# Enable DC3/DC1 flow control with "stty ixon -ixany".
14237apple-ae|ASCII Express,
14238	OTbs, am, bw, msgr, nxon, xon,
14239	cols#80, it#8, lines#24,
14240	bel=\007$<500/>, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
14241	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14242	home=^Y, ind=^W, is2=^R^N, kclr=^X, kcub1=^H, kcud1=^J,
14243	kcuf1=^U, kcuu1=^K, rev=^O, ri=^V, rmso=^N, rs1=^R^N, sgr0=^N,
14244	smso=^O,
14245appleII|apple ii plus,
14246	OTbs, am,
14247	cols#80, it#8, lines#24,
14248	clear=^L, cnorm=^TC2, cub1=^H, cud1=^J, cuf1=^\,
14249	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, cvvis=^TC6,
14250	ed=^K, el=^], flash=\024G1$<200/>\024T1, home=\E^Y, ht=^I,
14251	is2=\024T1\016, kcud1=^J, kcuf1=^U, rmso=^N, sgr0=^N,
14252	smso=^O,
14253# Originally by Gary Ford 21NOV83
14254# From: <ee178aci%sdcc7@SDCSVAX.ARPA>  Fri Oct 11 21:27:00 1985
14255apple-80|apple II with smarterm 80 col,
14256	OTbs, am, bw,
14257	cols#80, lines#24,
14258	cbt=^R, clear=\014$<10*/>, cr=\r$<10*/>, cub1=^H, cud1=^J,
14259	cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_,
14260	ed=\013$<10*/>, el=\035$<10/>, home=^Y,
14261apple-soroc|apple emulating soroc 120,
14262	am,
14263	cols#80, lines#24,
14264	bel=^G, clear=\E*$<300>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14265	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EY, el=\ET,
14266	home=^^, ind=^J, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
14267# From Peter Harrison, Computer Graphics Lab, San Francisco
14268#   ucbvax!ucsfmis!harrison  .....uucp
14269#   ucbvax!ucsfmis!harrison@BERKELEY   .......ARPA
14270# "These two work.  If you don't have the inverse video chip for the
14271# Apple with videx then remove the :so: and :se: fields."
14272# (apple-videx: this used to be called DaleApple -- esr)
14273apple-videx|Apple with videx videoterm 80 column board with inverse video,
14274	OTbs, am, xenl,
14275	cols#80, it#8, lines#24,
14276	clear=\014$<300/>, cub1=^H, cud1=^J, cuf1=^\,
14277	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14278	home=^Y, ht=^I, kcub1=^H, kcud1=^J, kcuf1=^U, khome=^Y,
14279	rmso=^Z2, sgr0=^Z2, smso=^Z3,
14280# My system [for reference] : Apple ][+, 64K, Ultraterm display card,
14281#			      Apple Cat ][ 212 modem, + more all
14282#			      controlled by ASCII Express: Pro.
14283# From Dave Shaver <isucs1!shaver>
14284apple-uterm-vb|Videx Ultraterm for Apple micros with Visible Bell,
14285	OTbs, am, eo, xt,
14286	cols#80, lines#24,
14287	acsc=, clear=^L, cuf1=^\,
14288	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14289	flash=^W35^W06, home=^Y,
14290	is2=^V4^W06\017\rVisible Bell Installed.\016\r\n,
14291	rmso=^N, smso=^O,
14292apple-uterm|Ultraterm for Apple micros,
14293	OTbs, am, eo, xt,
14294	cols#80, lines#24,
14295	acsc=, clear=^L, cuf1=^\,
14296	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14297	home=^Y, is2=^V4^W06\016, rmso=^N, smso=^O,
14298# from trwrba!bwong (Bradley W. Wong):
14299#
14300# This entry assumes that you are using an apple with the UCSD Pascal
14301# language card.  SYSTEM.MISCINFO is assumed to be the same as that
14302# supplied with the standard apple except that screenwidth should be set
14303# using SETUP to 80 columns.  Note that the right arrow in not mapped in
14304# this termcap entry.  This is because that key, on the Apple, transmits
14305# a ^U and would thus preempt the more useful "up" function of vi.
14306#
14307# HMH 2/23/81
14308apple80p|80-column apple with Pascal card,
14309	am, bw,
14310	cols#80, lines#24,
14311	clear=^Y^L, cuf1=^\\:,
14312	cup=\036%p2%{32}%+%c%p1%{32}%+%c, cuu1=^_, ed=^K, el=^],
14313	home=^Y, kcub1=^H,
14314#
14315# Apple II+ equipped with Videx 80 column card
14316#
14317# Terminfo from ihnp4!ihu1g!djc1 (Dave Christensen) via BRL;
14318# manually converted by D A Gwyn
14319#
14320# DO NOT use any terminal emulation with this data base, it works directly
14321# with the Videx card.  This has been tested with vi 1200 baud and works fine.
14322#
14323# This works great for vi, except I've noticed in pre-R2, ^U will scroll back
14324# 1 screen, while in R2 ^U doesn't.
14325# For inverse alternate character set add:
14326#	<smacs>=^O:<rmacs>=^N:
14327# (apple-v: added it#8 -- esr)
14328apple-videx2|Apple II+ w/ Videx card (similar to Datamedia h1520),
14329	am, xenl,
14330	cols#80, it#8, lines#24,
14331	bel=\007$<100/>, clear=\014$<16*/>, cr=^M, cub1=^H,
14332	cud1=^J, cuf1=^\, cup=\036%p2%{32}%+%c%p1%{32}%+%c,
14333	cuu1=^_, ed=\013$<16*/>, el=^], home=^Y, ht=\011$<8/>,
14334	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^\, kcuu1=^_,
14335	khome=^Y, rmso=^Z2, smso=^Z3,
14336apple-videx3|vapple|Apple II with 80 col card,
14337	OTbs, am,
14338	cols#80, lines#24,
14339	clear=\Ev, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14340	cuu1=\EA, el=\Ex, home=\EH, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
14341	kcuu1=\EA, kf0=\EP, kf1=\EQ, kf2=\ER, kf3=\E\s, kf4=\E!,
14342	kf5=\E", kf6=\E#, kf7=\E$, kf8=\E%%, kf9=\E&, khome=\EH,
14343#From: decvax!cbosgd!cbdkc1!mww Mike Warren via BRL
14344aepro|Apple II+ running ASCII Express Pro--vt52,
14345	OTbs,
14346	cols#80, lines#24,
14347	clear=\014$<300/>, cuf1=\EC,
14348	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
14349	el=\EK, home=\EH,
14350# UCSD addition: Yet another termcap from Brian Kantor's Micro Munger Factory
14351apple-vm80|ap-vm80|apple with viewmax-80,
14352	OTbs,
14353	cols#80, lines#24,
14354	clear=\014$<300/>, cuf1=^\\:,
14355	cup=\036%p1%{32}%+%c%p2%{32}%+%c$<100/>, cuu1=^_,
14356	ed=\013$<300/>, el=^], home=\031$<200/>,
14357
14358#### Apple Lisa & Macintosh
14359#
14360
14361# (lisa: changed <cvvis> to <cnorm> -- esr)
14362lisa|apple lisa console display (black on white),
14363	OTbs, am, eo, msgr,
14364	cols#88, it#8, lines#32,
14365	acsc=jdkclfmenbqattuvvuwsx`, civis=\E[5h, clear=^L,
14366	cnorm=\E[5l, cub1=^H, cud1=\E[B, cuf1=\E[C,
14367	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
14368	ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@, il1=\E[L,
14369	is2=\E>\E[m\014, kbs=^H, kcub1=\E[D, kcud1=\E[B,
14370	kcuf1=\E[C, kcuu1=\E[A, rmacs=\E[10m, rmso=\E[m, rmul=\E[m,
14371	sgr0=\E[m, smacs=\E[11m, smso=\E[7m, smul=\E[4m,
14372liswb|apple lisa console display (white on black),
14373	is2=\E>\E[0;7m\014, rmso=\E[0;7m, rmul=\E[0;7m,
14374	smso=\E[m, smul=\E[4m, use=lisa,
14375
14376# lisaterm from ulysses!gamma!epsilon!mb2c!jed (John E. Duncan III) via BRL;
14377# <is2> revised by Ferd Brundick <fsbrn@BRL.ARPA>
14378#
14379# These entries assume that the 'Auto Wraparound' is enabled.
14380# Xon-Xoff flow control should also be enabled.
14381#
14382# The vt100 uses :rs2: and :rf: rather than :is2:/:tbc:/:hts: because the tab
14383# settings are in non-volatile memory and don't need to be reset upon login.
14384# Also setting the number of columns glitches the screen annoyingly.
14385# You can type "reset" to get them set.
14386#
14387lisaterm|Apple Lisa or Lisa/2 running LisaTerm vt100 emulation,
14388	OTbs, OTpt, am, xenl, xon,
14389	OTkn#4, cols#80, it#8, lines#24, vt#3,
14390	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=^M,
14391	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
14392	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
14393	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
14394	el=\E[K, home=\E[H, ht=^I, hts=\EH, ind=^J, kbs=^H, kcub1=\EOD,
14395	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP, kf1=\EOQ,
14396	kf2=\EOR, kf3=\EOS, lf0=F1, lf1=F2, lf2=F3, lf3=F4, rc=\E8,
14397	rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
14398	rs1=\E>\E[?1l\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r,
14399	sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
14400	tbc=\E[3g,
14401# Lisaterm in 132 column ("wide") mode.
14402lisaterm-w|Apple Lisa with Lisaterm in 132 column mode,
14403	cols#132,
14404	kbs=^H, kcub1=^H, kcud1=^J, use=lisaterm,
14405# Although MacTerminal has insert/delete line, it is commented out here
14406# since it is much faster and cleaner to use the "lock scrolling region"
14407# method of inserting and deleting lines due to the MacTerminal implementation.
14408# Also, the "Insert/delete ch" strings have an extra character appended to them
14409# due to a bug in MacTerminal V1.1.  Blink is disabled since it is not
14410# supported by MacTerminal.
14411mac|macintosh|Macintosh with MacTerminal,
14412	xenl,
14413	OTdN#30,
14414	blink@, dch1=\E[P$<7/>, ich1=\E[@$<9/>, ip=$<7/>, use=lisa,
14415# Lisaterm in 132 column ("wide") mode.
14416mac-w|macterminal-w|Apple Macintosh with Macterminal in 132 column mode,
14417	cols#132, use=mac,
14418
14419# Apple's MacOS X includes a Terminal.app derived from the old NeXT
14420# Terminal.app. It is a partial VT100 emulation with some extensions.
14421#
14422# There are no function keys, at least not in version 41.
14423#
14424# It supports mouse pointer position reporting using xterm-like
14425# sequences (not used in these entries.) When using emacs, the cursor
14426# can be positioned using option-click.
14427#
14428# It provides partial ANSI color support (background colors interact
14429# badly with bold, though.) The monochrome (-m) entries are useful if
14430# you've disabled color support.
14431#
14432# The configurable titlebar is set using xterm-compatible sequences;
14433# it is used as a status bar in these entries.
14434#
14435# The MacRoman character encoding is used for some of the alternate
14436# characters in the "MacRoman" entries; the "ASCII" (-ascii) entries
14437# rely instead on Terminal.app's own buggy VT100 graphics emulation,
14438# which seems to think the character encoding is the old NeXT charset
14439# instead of MacRoman.
14440#
14441# Terminal.app reports "vt100" as the terminal type, but exports
14442# several environment variables which may aid detection in a shell
14443# profile:
14444#
14445# TERM=vt100
14446# TERM_PROGRAM=Apple_Terminal
14447# TERM_PROGRAM_VERSION=41
14448
14449Apple_Terminal-ascii-m|Apple MacOS X Terminal.app v41 w/ASCII charset (monochrome),
14450	am, bw, hs, msgr, xenl, xon,
14451	cols#80, it#8, lines#24, vt#3, wsl#40,
14452	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
14453	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
14454	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
14455	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
14456	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
14457	dl=\E[%p1%dM, dl1=\E[M, dsl=\E]2;\007, ed=\E[J, el=\E[K,
14458	el1=\E[1K, enacs=\E(B\E)0, fsl=^G, home=\E[H, ht=^I, hts=\EH,
14459	il=\E[%p1%dL, il1=\E[L, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr,
14460	kbs=\177, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB,
14461	kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, rc=\E8, rev=\E[7m, ri=\EM,
14462	rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m,
14463	rmul=\E[m, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
14464	sc=\E7,
14465	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
14466	sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
14467	smso=\E[7m, smul=\E[4m, tbc=\E[3g, tsl=\E]2;, u8=\E[?1;2c,
14468	u9=\E[c,
14469
14470Apple_Terminal-ascii|Apple MacOS X Terminal.app v41 w/ASCII charset (color),
14471	colors#8, ncv#37, pairs#64,
14472	op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
14473	use=Apple_Terminal-ascii-m,
14474
14475Apple_Terminal-m|Apple MacOS X Terminal.app v41 w/MacRoman charset (monochrome),
14476	acsc=0#`\327a*f\241g\261h#i\360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{\271|\255}\243~\245+\335-\366\,\334.\377,
14477	use=Apple_Terminal-ascii-m,
14478
14479Apple_Terminal|Apple MacOS X Terminal.app v41 w/MacRoman charset (color),
14480	acsc=0#`\327a*f\241g\261h#i\360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{\271|\255}\243~\245+\335-\366\,\334.\377,
14481	use=Apple_Terminal-ascii,
14482
14483#### Radio Shack/Tandy
14484#
14485
14486# (coco3: This had "ta" used incorrectly as a boolean and bl given as "bl#7".
14487# I read these as mistakes for ":it#8:" and ":bl=\007:" respectively -- esr)
14488# From: <{pbrown,ctl}@ocf.berkeley.edu> 12 Mar 90
14489coco3|os9LII|Tandy CoCo3 24*80 OS9 Level II,
14490	OTbs, am,
14491	cols#80, it#8, lines#24,
14492	bel=^G, blink=^_", bold=\E\:^A, civis=^E\s,
14493	clear=\014$<5*/>, cnorm=^E!, cub1=^H, cud1=^J, cuf1=^F,
14494	cup=\002%p2%{32}%+%c%p1%{32}%+%c$<2/>, cuu1=^I,
14495	dl1=^_1, ed=^K, el=^D, home=^A, il1=^_0, kcub1=^H, kcud1=^J,
14496	kcuf1=^I, kcuu1=^L, rev=^_\s, rmso=^_!, rmul=^_#,
14497	sgr0=\037!\E\:\0, smso=^_\s, smul=^_",
14498# (trs2: removed obsolete ":nl=^_:" -- esr)
14499trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M,
14500	OTbs, am, msgr,
14501	cols#80, it#8, lines#24,
14502	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^_, cuf1=^],
14503	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^^, dl1=^K, ed=^B,
14504	el=^A, home=^F, ht=^I, il1=^D, ind=^J, kbs=^H, kcub1=^\,
14505	kcud1=^_, kcuf1=^], kcuu1=^^, rmso=^O, sgr0=^O, smso=^N,
14506# From: Kevin Braunsdorf <ksb@mentor.cc.purdue.edu>
14507# (This had extension capabilities
14508#	:BN=\E[?33h:BF=\E[?33l:UC=\E[_ q:BC=\E[\177 q:\
14509#	:CN=\ERC:CF=\ERc:NR=\ERD:NM=\ER@:
14510# I also deleted the unnecessary ":kn#2:", ":sg#0:" -- esr)
14511trs16|trs-80 model 16 console,
14512	OTbs, am,
14513	cols#80, it#8, lines#24,
14514	acsc=jak`l_mbquvewcxs, bel=^G, civis=\ERc, clear=^L,
14515	cnorm=\ERC, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
14516	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
14517	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
14518	ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
14519	kf0=^A, kf1=^B, kf2=^D, kf3=^L, kf4=^U, kf5=^P, kf6=^N, kf7=^S,
14520	khome=^W, lf0=f1, lf1=f2, lf2=f3, lf3=f4, lf4=f5, lf5=f6, lf6=f7,
14521	lf7=f8, mc4=\E]+, mc5=\E]=, rmacs=\ERg, rmso=\ER@, sgr0=\ER@,
14522	smacs=\ERG, smso=\ERD,
14523
14524#### Atari ST
14525#
14526
14527# From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
14528atari|atari st,
14529	OTbs, am,
14530	cols#80, it#8, lines#25,
14531	clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
14532	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
14533	ed=\EJ, el=\EK, ht=^I, il1=\EL, kcub1=\ED, kcud1=\EB,
14534	kcuf1=\EC, kcuu1=\EA, ri=\EI, rmso=\Eq, sgr0=\Eq, smso=\Ep,
14535# UniTerm terminal program for the Atari ST:  49-line VT220 emulation mode
14536# From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
14537uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
14538	lines#49,
14539	is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H,
14540	use=vt220,
14541# MiNT VT52 emulation. 80 columns, 25 rows.
14542# MiNT is Now TOS, the operating system which comes with all Ataris now
14543# (mainly Atari Falcon). This termcap is for the VT52 emulation you get
14544# under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
14545# From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
14546st52|Atari ST with VT52 emulation,
14547	am, km,
14548	cols#80, lines#25,
14549	bel=^G, civis=\Ef, clear=\EH\EJ, cnorm=\Ee, cr=^M, cub1=\ED,
14550	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
14551	cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
14552	ind=^J, ka1=\E#7, ka3=\E#5, kb2=\E#9, kbs=^H, kc1=\E#1,
14553	kc3=\E#3, kclr=\E#7, kcub1=\E#K, kcud1=\E#P, kcuf1=\E#M,
14554	kcuu1=\E#H, kf0=\E#D, kf1=\E#;, kf2=\E#<, kf3=\E#=, kf4=\E#>,
14555	kf5=\E#?, kf6=\E#@, kf7=\E#A, kf8=\E#B, kf9=\E#C, khome=\E#G,
14556	kil1=\E#R, kind=\E#2, kri=\E#8, lf0=f10, nel=^M^J, rc=\Ek,
14557	ri=\EI, rmcup=, rmso=\Eq, rs1=\Ez_\Eb@\EcA, sc=\Ej, sgr0=\Eq,
14558	smcup=\Ee, smso=\Ep,
14559
14560#### Commodore Business Machines
14561#
14562# Formerly located in West Chester, PA; went spectacularly bust in 1994
14563# after years of shaky engineering and egregious mismanagement.  Made one
14564# really nice machine (the Amiga) and boatloads of nasty ones (PET, C-64,
14565# C-128, VIC-20).  The C-64 is said to have been the most popular machine
14566# ever (most units sold); they can still be found gathering dust in closets
14567# everywhere.
14568#
14569
14570# From: Kent Polk <kent@swrinde.nde.swri.edu>, 30 May 90
14571# Added a few more entries, converted caret-type control sequence (^x) entries
14572# to '\0xx' entries since a couple of people mentioned losing '^x' sequences.
14573# Corrections by Ty Sarna <tsarna@endicor.com>, Sat Feb 28 18:55:15 1998
14574#
14575# :as:, :ae:			Support for alternate character sets.
14576# :ve=\E[\040p:vi=\E[\060\040p:	cursor visible/invisible.
14577# :xn:  vt100 kludginess at column 80/NEWLINE ignore after 80 cols(Concept)
14578#     This one appears to fix a problem I always had with a line ending
14579#     at 'width+1' (I think) followed by a blank line in vi. The blank
14580#     line tended to disappear and reappear depending on how the screen
14581#     was refreshed. Note that this is probably needed only if you use
14582#     something like a Dnet Fterm with the window sized to some peculiar
14583#     dimension larger than 80 columns.
14584# :k0=\E9~:	map F10 to k0 - could have F0-9 -> k0-9, but ... F10 was 'k;'
14585# (amiga: removed obsolete :kn#10:,
14586# also added empty <acsc> to suppress a warning --esr)
14587amiga|Amiga ANSI,
14588	OTbs, am, bw, xenl,
14589	cols#80, lines#24,
14590	acsc=, bel=^G, blink=\E[7;2m, bold=\E[1m, cbt=\E[Z,
14591	civis=\E[0 p, clear=\E[H\E[J, cnorm=\E[ p, cub=\E[%p1%dD,
14592	cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC,
14593	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
14594	cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
14595	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H,
14596	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\E[S,
14597	indn=\E[%p1%dS, invis=\E[8m, is2=\E[20l, kbs=^H,
14598	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf0=\E[9~,
14599	kf1=\E[0~, kf2=\E[1~, kf3=\E[2~, kf4=\E[3~, kf5=\E[4~,
14600	kf6=\E[5~, kf7=\E[6~, kf8=\E[7~, kf9=\E[8~, rev=\E[7m,
14601	ri=\E[T, rin=\E[%p1%dT, rmacs=^O, rmso=\E[m, rmul=\E[m,
14602	rs1=\Ec, sgr0=\E[m, smacs=^N, smso=\E[7m, smul=\E[4m,
14603
14604# From: Hans Verkuil <hans@wyst.hobby.nl>, 4 Dec 1995
14605# (amiga: added empty <acsc> to suppress a warning.
14606# I'm told this entry screws up badly with AS225, the Amiga
14607# TCP/IP package once from Commodore, and now sold by InterWorks.--esr)
14608amiga-h|Hans Verkuil's Amiga ANSI,
14609	OTbs, bw, msgr,
14610	cols#80, lines#24,
14611	acsc=, bel=^G, blink=\2337;2m, bold=\2331m, cbt=\233Z,
14612	civis=\2330 p, clear=\233H\233J, cnorm=\233 p, cr=^M,
14613	cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
14614	cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
14615	cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
14616	dim=\2332m, ech=\233%p1%dP, ed=\233J, el=\233K, flash=^G,
14617	home=\233H, ht=^I, ich=\233%p1%d@, ich1=\233@, ind=\233S,
14618	indn=\233%p1%dS, invis=\2338m, is2=\23320l, kbs=^H,
14619	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
14620	kdch1=\177, kf0=\2339~, kf1=\2330~, kf2=\2331~, kf3=\2332~,
14621	kf4=\2333~, kf5=\2334~, kf6=\2335~, kf7=\2336~, kf8=\2337~,
14622	kf9=\2338~, nel=\233B\r, rev=\2337m, ri=\233T,
14623	rin=\233%p1%dT, rmacs=^O, rmcup=\233?7h, rmso=\2330m,
14624	rmul=\2330m, rs1=\Ec, sgr0=\2330m, smacs=^N, smcup=\233?7l,
14625	smso=\2337m, smul=\2334m,
14626
14627# From: Henning 'Faroul' Peters <Faroul@beyond.kn-bremen.de>, 25 Sep 1999
14628amiga-8bit|Amiga ANSI using 8-bit controls,
14629	acsc=, dl=\233%p1%dM, dl1=\233M, il=\233%p1%dL, il1=\233L,
14630	ind=\204, indn@, ri=\215, rin@, use=amiga-h,
14631
14632# From: Ruediger Kuhlmann <terminfo@ruediger-kuhlmann.de>, 18 Jul 2000
14633# requires use of appropriate preferences settings.
14634amiga-vnc|Amiga using VNC console (black on light gray),
14635	am, da, db, msgr, ndscr,
14636	btns#1, colors#16, cols#80, lines#24, lm#0, ncv#0, pairs#256,
14637	bel=^G, blink=\E[7;2m, bold=\E[1m, civis=\E[0p,
14638	clear=\E[H\E[J, cnorm=\E[p\E[>?6l, cr=^M,
14639	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
14640	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
14641	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
14642	cvvis=\E[>?6h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
14643	dl=\E[%p1%dM, dl1=\E[1M, ed=\E[J, el=\E[K, flash=^G,
14644	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[1L, ind=\ED,
14645	indn=\E[%p1%dS, invis=\E8m,
14646	is2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
14647	kbs=^H, kcbt=\233Z, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14648	kcuu1=\E[A, kdch1=\177, kf0=\E[9~, kf1=\E[0~, kf2=\E[1~,
14649	kf3=\E[2~, kf4=\E[3~, kf5=\E[4~, kf6=\E[5~, kf7=\E[6~,
14650	kf8=\E[7~, kf9=\E[8~, khlp=\E[?~, khome=\E[44~, kll=\E[45~,
14651	kmous=\E[M, knp=\E[42~, kpp=\E[41~, nel=\EE, oc=\E[0m,
14652	rev=\E[7m, ri=\EM, rin=\E[%p1%dT, rmcup=\E[?7h\E[r\E[J,
14653	rmkx=\E[?1l, rmso=\E[21m, rmul=\E[24m, rs1=\Ec,
14654	rs2=\E[>?2;18l\E[>?26;?6;20;>?15;?7;>?22;>?8h,
14655	setab=\E[%?%p1%{8}%>%t%'F'%p1%+%d%e4%p1%d%;m,
14656	setaf=\E[%?%p1%{8}%>%t%'2'%p1%+%d%e3%p1%d%;m,
14657	sgr0=\E[0m\017\E[30;85;>15m, smcup=\E[?7h, smkx=\E[?1h,
14658	smso=\E[1m, smul=\E[4m,
14659
14660# Commodore B-128 microcomputer from Doug Tyrol <det@HEL-ACE.ARPA>
14661# 	I'm trying to write a termcap for a commodore b-128, and I'm
14662# having a little trouble. I've had to map most of my control characters
14663# to something that unix will accept (my delete-char is a ctrl-t, etc),
14664# and create some functions (like cm), but thats life.
14665# 	The problem is with the arrow keys - right, and up work fine, but
14666# left deletes the previous character and down I just can't figure out.
14667# Jove knows what I want, but I don't know what it's sending to me (it
14668# isn't thats bound to next-line in jove).
14669# 	Anybody got any ideas? Here's my termcap.
14670# DAG -- I changed his "^n" entries to "\n"; see if that works.
14671#
14672commodore|b-128|Commodore B-128 micro,
14673	am, bw,
14674	OTdN#20, cols#80, lines#24, pb#150,
14675	OTbc=^H, OTnl=^M, clear=\E\006$<10/>, cr=^M, cud1=^J,
14676	cuf1=^F, cup=\E\013%p1%2d\,%p2%2d\,$<20/>, cuu1=^P,
14677	dch1=\177$<10*/>, dl1=\Ed$<10*/>, el=\Eq$<10/>,
14678	home=\E^E, ht=\011$<5/>, ich1=\E\n$<5/>, il1=\Ei$<10/>,
14679	kcub1=^B, kcud1=^J, kcuf1=^F, kcuu1=^P, khome=\E^E, rmir=,
14680	smir=,
14681
14682#### North Star
14683#
14684# North Star Advantage from Lt. Fickie <brl-ibd!fickie> via BRL
14685northstar|North Star Advantage,
14686	OTbs,
14687	cols#80, lines#24,
14688	clear=\004$<200/>,
14689	cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1/>, ed=\017$<200/>,
14690	el=\016$<200/>, home=\034\032$<200/>,
14691
14692#### Osborne
14693#
14694# Thu Jul  7 03:55:16 1983
14695#
14696# As an aside, be careful; it may sound like an anomaly on the
14697# Osborne, but with the 80-column upgrade, it's too easy to
14698# enter lines >80 columns!
14699#
14700# I've already had several comments...
14701# The Osborne-1 with the 80-col option is capable of being
14702# 52, 80, or 104 characters wide; default to 80 for compatibility
14703# with most systems.
14704#
14705# The tab is destructive on the Ozzie; make sure to 'stty -tabs'.
14706osborne-w|osborne1-w|osborne I in 104-column mode,
14707	msgr, ul, xt,
14708	cols#104, lines#24,
14709	bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14710	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
14711	dl1=\ER, el=\ET, ich1=\EQ, il1=\EE, ind=^J, kcub1=^H, kcud1=^J,
14712	kcuf1=^L, kcuu1=^K, rmso=\E(, rmul=\Em, smso=\E), smul=\El,
14713# Osborne I	from ptsfa!rhc (Robert Cohen) via BRL
14714osborne|osborne1|osborne I in 80-column mode,
14715	OTbs, am, mir, msgr, ul, xhp,
14716	OTdB#4, cols#80, lines#24,
14717	clear=^Z, cub1=\010$<4>, cud1=^J, cuf1=^L,
14718	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K,
14719	dch1=\EW$<4/>, dl1=\ER, el=\ET, il1=\EE, is2=^Z, kbs=^H,
14720	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmir=, rmso=\E),
14721	rmul=\Em, smir=\EQ, smso=\E(, smul=\El,
14722#
14723# Osborne Executive definition from BRL
14724# Similar to tvi920
14725# Added by David Milligan and Tom Smith (SMU)
14726osexec|Osborne executive,
14727	OTbs, am,
14728	OTug#1, cols#80, lines#24, xmc#1,
14729	OTnl=^J, bel=^G, clear=^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14730	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
14731	dl1=\ER, ed=\EY, el=\ET, home=^^, hts=\E1, ich1=\EQ, il1=\EE,
14732	is2=\Eq\Ek\Em\EA\Ex0, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L,
14733	kcuu1=^K, kf0=^A@\r, kf1=^AA\r, kf2=^AB\r, kf3=^AC\r,
14734	kf4=^AD\r, kf5=^AE\r, kf6=^AF\r, kf7=^AG\r, kf8=^AH\r,
14735	kf9=^AI\r, rmir=, rmso=\Ek, rmul=\Em, smir=, smso=\Ej,
14736	smul=\El, tbc=\E3,
14737
14738#### Console types for obsolete UNIX clones
14739#
14740# Coherent, Minix, Venix, and several lesser-known kin were OSs for 8088
14741# machines that tried to emulate the UNIX look'n'feel.  Coherent and Venix
14742# were commercial, Minix an educational tool sold in conjunction with a book.
14743# Memory-segmentation limits and a strong tendency to look like V7 long after
14744# it was obsolete made all three pretty lame.  Venix croaked early.  Coherent
14745# and Minix were ported to 32-bit Intel boxes, only to be run over by a
14746# steamroller named `Linux' (which, to be fair, traces some lineage to Minix).
14747# Coherent's vendor, the Mark Williams Company, went belly-up in 1994.  There
14748# are also, I'm told, Minix ports that ran on Amiga and Atari machines and
14749# even as single processes under SunOS and the Macintosh OS.
14750#
14751
14752# This is the entry provided with minix 1.7.4, with bogus :ri: removed.
14753minix|minix console (v1.7),
14754	am, xenl,
14755	cols#80, it#8, lines#25,
14756	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
14757	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
14758	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14759	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14760	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
14761	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
14762	is2=\E[0m, kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
14763	kcuu1=\E[A, kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S,
14764	kf5=\E[G, khome=\E[H, lf0=End, lf1=PgUp, lf2=PgDn, lf3=Num +,
14765	lf4=Num -, lf5=Num 5, nel=^M^J, rev=\E[7m, ri=\EM,
14766	rmso=\E[0m, rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
14767# Corrected Jan 14, 1997 by Vincent Broman <broman@nosc.mil>
14768minix-old|minix console (v1.5),
14769	xon,
14770	cols#80, it#8, lines#25,
14771	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[0J, cr=^M,
14772	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
14773	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14774	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14775	dl=\E[%p1%dM, dl1=\E[M, ed=\E[0J, el=\E[K, home=\E[H, ht=^I,
14776	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
14777	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
14778	kf0=\E[Y, kf1=\E[V, kf2=\E[U, kf3=\E[T, kf4=\E[S, kf5=\E[G,
14779	khome=\E[H, nel=^M^J, rev=\E[7m, ri=\EM, rmso=\E[0m,
14780	rmul=\E[0m, sgr0=\E[0m, smso=\E[7m, smul=\E[4m,
14781# The linewrap option can be specified by editing /usr/include/minix/config.h
14782# before recompiling the minix 1.5 kernel.
14783minix-old-am|minix console with linewrap,
14784	am, use=minix-old,
14785
14786pc-minix|minix console on an Intel box,
14787	use=klone+acs, use=minix,
14788
14789# According to the Coherent 2.3 manual, the PC console is similar
14790# to a z19. The differences seem to be (1) 25 lines, (2) no status
14791# line, (3) standout is broken, (4) ins/del line is broken, (5)
14792# has blinking and bold.
14793pc-coherent|pcz19|coherent|IBM PC console running Coherent,
14794	am, mir,
14795	cols#80, it#8, lines#25,
14796	bel=^G, clear=\EE, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
14797	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EN,
14798	ed=\EJ, el=\EK, home=\EH, ht=^I, ind=^J, kbs=^H, kcub1=\ED,
14799	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, ri=\EI, rmir=\EO,
14800	rmso=\Eq, sgr0=\Eq, smir=\E@, smso=\Ep,
14801
14802# According to the Venix 1.1 manual, the PC console is similar
14803# to a DEC vt52.  Differences seem to be (1) arrow keys send
14804# different strings, (2) enhanced standout, (3) added insert/delete line.
14805# Note in particular that it doesn't have automatic margins.
14806# There are other keys (f1-f10, kpp, knp, kcbt, kich1, kdch1) but they
14807# not described here because this derives from an old termcap entry.
14808pc-venix|venix|IBM PC console running Venix,
14809	cols#80, it#8, lines#25,
14810	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
14811	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
14812	ed=\EJ, el=\EK, ht=^I, il1=\EL, ind=^J, kbs=^H, kcub1=\EK,
14813	kcud1=\EP, kcuf1=\EM, kcuu1=\EH, khome=\EG, ri=\EI,
14814
14815#### Miscellaneous microcomputer consoles
14816#
14817# If you know anything more about any of these, please tell me.
14818#
14819
14820# The MAI Basic Four computer was obsolete at the end of the 1980s.
14821# It may be used as a terminal by putting it in "line" mode as seen on
14822# one of the status lines.
14823# Initialization is similar to CIT80. <is2> will set ANSI mode for you.
14824# Hardware tabs set by <if> at 8-spacing.  Auto line wrap causes glitches so
14825# wrap mode is reset by <cvvis>.  Using <ind>=\E[S caused errors so I
14826# used \ED instead.
14827# From: bf347@lafn.org (David Lawyer), 28 Jun 1997
14828mai|basic4|MAI Basic Four in ansi mode,
14829	am, da, db, mir, msgr,
14830	cols#82, it#8, lines#25,
14831	bel=^G, blink=\E[5m, bold=\E[1m, clear=^]^_, cnorm=\E[?7h,
14832	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=^X,
14833	cup=\E[%i%p1%d;%p2%dH, cuu1=^Z, cvvis=\E[?7l, dch1=\E[1P,
14834	dl1=\E[M, ed=^_, el=^^, home=^], ht=^I,
14835	if=/usr/lib/tabset/vt100, il1=\E[L, ind=\ED,
14836	is2=\E>\E[?1h\E[?7h\E[?5l\017\E(B\E[m\E[20l\E[1;24r\E[24;1H,
14837	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
14838	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU,
14839	kf7=\EOV, kf8=\EOW, nel=^M\ED, rc=\E8, rev=\E[7m, ri=\E[T,
14840	rmir=\E[4l, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m,
14841	smir=\E[4h, smso=\E[7m, smul=\E[4m,
14842# basis from Peter Harrison, Computer Graphics Lab, San Francisco
14843#   ucbvax!ucsfmis!harrison ...uucp / ucbvax!ucsfmis!harrison@BERKELEY ...ARPA
14844#
14845# On Sat, 7 Aug 1999, Torsten Jerzembeck <toje@nightingale.ms.sub.org> wrote:
14846# The Basis 108 was a Apple II clone, manufactured by the "Basis
14847# Mikrocomputer GmbH" in Munster, Germany (the company still exists today,
14848# about 1,5 km from where I live, but doesn't build own computers any
14849# more). A Basis 108 featured a really heavy (cast aluminium?) case, was
14850# equipped with one or two 5.25" disk drives, had a monochrome and colour
14851# video output for a TV set or a dedicated monitor and several slots for
14852# Apple II cards. Basis 108 were quite popular at german schools before
14853# the advent of the IBM PC. They run, for example, the UCSD Pascal
14854# development system (which I used even in 1993 to program the steering
14855# and data recording for our school's experimental solar panel :), Apple DOS
14856# or CP/M.
14857# (basis: removed obsolete ":ma=^K^P^R^L^L :nl=5000*^J:" -- esr)
14858basis|BASIS108 computer with terminal translation table active,
14859	clear=\E*$<300/>, cud1=\n$<5000/>, ed=\EY, el=\ET, kbs=^H,
14860	kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, rmso=\E), sgr0=\E),
14861	smso=\E(, use=adm3a,
14862# luna's BMC terminal emulator
14863luna|luna68k|LUNA68K Bitmap console,
14864	cols#88, lines#46, use=ansi-mini,
14865megatek|pegasus workstation terminal emulator,
14866	am, os,
14867	cols#83, lines#60,
14868# The Xerox 820 was a Z80 micro with a snazzy XEROX PARC-derived
14869# interface (pre-Macintosh by several years) that went nowhere.
14870xerox820|x820|Xerox 820,
14871	am,
14872	cols#80, lines#24,
14873	bel=^G, clear=1^Z, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
14874	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^Q, el=^X,
14875	home=^^, ind=^J,
14876
14877#### Videotex and teletext
14878#
14879
14880# \E\:1}	switch to te'le'informatique mode (ascii terminal/ISO 6429)
14881# \E[?3l	80 columns
14882# \E[?4l	scrolling on
14883# \E[12h	local echo off
14884# \Ec		reset: G0 U.S. charset (to get #,@,{,},...), 80 cols, clear screen
14885# \E)0		G1 DEC set (line graphics)
14886#
14887# From: Igor Tamitegama <igor@ppp1493-ft.teaser.fr>, 18 Jan 1997
14888m2-nam|minitel|minitel-2|minitel-2-nam|France Telecom Minitel 2 mode te'le'informatique,
14889	OTbs, eslok, hs, xenl,
14890	cols#80, it#8, lines#24, wsl#72, xmc#0,
14891	acsc=aaffggjjkkllmmnnooqqssttuuvvwwxx, bel=^G,
14892	blink=\E[5m, bold=\E[1m, civis=\E[<1h, clear=\E[H\E[J,
14893	cnorm=\E[<1l, cr=^M, csr=\E[%i%p1%d;%p2%dr,
14894	cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB, cud1=\E[B,
14895	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
14896	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
14897	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, flash=^G, fsl=^J,
14898	home=\E[H, ht=^I, il=\E[%p1%dL, il1=\E[L, ind=^J, ip=$<7/>,
14899	is1=\E\:1}\Ec\E[?4l\E[12h, is2=\Ec\E[12h\E)0,
14900	is3=\E[?3l kbs=\010, kclr=\E[2J, kcub1=\E[D, kcud1=\E[B,
14901	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M, kf0=\EOp,
14902	kf1=\EOq, kf10=\EOp, kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu,
14903	kf6=\EOv, kf7=\EOw, kf8=\EOx, kf9=\EOy, khome=\E[H,
14904	kich1=\E[4h, kil1=\E[4l, knp=\EOn, kpp=\EOR, ll=\E[24;80H,
14905	mc0=\E[i, nel=^M^J, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
14906	rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
14907	rs1=\Ec\E[?4l\E[12h, rs2=\Ec\E)0, sc=\E7, sgr0=\E[m,
14908	smacs=^N, smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=^_@A,
14909	u6=\E[%i%d;%dR, u7=\E[6n,
14910
14911# From: Alexandre Montaron <canal@mygale.org>, 18 Jun 1998
14912#
14913minitel1|minitel 1,
14914	am, bw, eslok, hs, hz, msgr,
14915	colors#8, cols#40, lines#24, pairs#8,
14916	acsc=+.\,\,./f0g1, bel=^G, blink=\EH, civis=^T, clear=^L,
14917	cnorm=^Q, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
14918	cup=\037%p1%{65}%+%c%p2%{65}%+%c, cuu1=^K, el=^X,
14919	enacs=^Y, fsl=^J, home=^^, ind=^J,
14920	is2=\E;`ZQ\E\:iC\E\:iE\021, nel=^M^J, op=\EG,
14921	rep=%p1%c\022%p2%{63}%+%c, rev=\E], ri=^K, rmso=\E\\,
14922	setf=\E%?%p1%{1}%=%tD%e%p1%{3}%=%tF%e%p1%{4}%=%tA%e%p1%{6}%=%tC%e%p1%{64}%+%c%;,
14923	sgr=%?%p1%t\E]%;%?%p3%t\E]%;%?%p4%t\EH%;,
14924	sgr0=\EI\E\\, smso=\E], tsl=\037@%p1%{65}%+%c,
14925# is2=Fnct TE, Fnct MR, Fnct CM et pour finir: curseur ON.
14926minitel1b|minitel 1-bistandard (in 40cols mode),
14927	mir,
14928	cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
14929	cuu=\E[%p1%dA, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
14930	dl1=\E[M, ed=\E[J, el1=\E[1K, il=\E[%p1%dL, il1=\E[L,
14931	is1=\E;iYA\E;jYC, kclr=\E[2J, kctab=^I, kcub1=\E[D,
14932	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
14933	kel=^X, khome=\E[H, kich1=\E[4h, kil1=\E[L, rmir=\E[4l,
14934	smir=\E[4h, smkx=\E;iYA\E;jYC, use=minitel1,
14935# <rmkx> posait des problemes (logout en sortant de vi).
14936minitel1b-80|minitel 1-bistandard (standard teleinformatique),
14937	am@, bw@, hz@,
14938	colors@, cols#80, it#8, pairs@,
14939	blink=\E[5m, bold=\E[1m, civis=\037@A\024\n,
14940	clear=\E[H\E[2J, cnorm=\037@A\021\n, cuf1=\E[C,
14941	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
14942	ht=^I, ind=\ED, is1@, is2@, kent=\EOM, kf0=\EOp, kf1=\EOq,
14943	kf2=\EOr, kf3=\EOs, kf4=\EOt, kf5=\EOu, kf6=\EOv, kf7=\EOw,
14944	kf8=\EOx, kf9=\EOy, nel=\EE, op@, rc=\E8, rep@, rev=\E[7m,
14945	ri=\EM, rmkx@, rmso=\E[27m, rmul=\E[24m, sc=\E7, setf@,
14946	sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;%;m,
14947	sgr0=\E[m, smkx@, smso=\E[7m, smul=\E[4m, use=minitel1b,
14948
14949######## OBSOLETE VDT TYPES
14950#
14951# These terminals are *long* dead -- these entries are retained for
14952# historical interest only.
14953
14954#### Amtek Business Machines
14955#
14956
14957# (abm80: early versions of this entry apparently had ":se=\E^_:so=\E^Y",
14958# but these caps were commented out in 8.3; also, removed overridden
14959# ":do=^J:" -- esr)
14960abm80|amtek business machines 80,
14961	OTbs, am, bw,
14962	cols#80, lines#24,
14963	cbt=^T, clear=\E^\, cub1=^H, cud1=\E^K, cuf1=^P,
14964	cup=\E\021%p2%{32}%+%c%p1%{32}%+%c, cuu1=\E^L,
14965	dl1=\E^S, ed=\E^X, el=\E^O, home=\E^R, il1=\E^Z,
14966
14967#### Bell Labs blit terminals
14968#
14969# These were AT&T's official entries.  The 5620 FAQ maintained by
14970# David Breneman <daveb@dgtl.com> has this to say:
14971#
14972#  Actually, in the beginning was the Jerq, and the Jerq was white with a
14973#  green face, and Locanthi and Pike looked upon the Jerq and said the Jerq
14974#  was good.  But lo, upon the horizon loomed a mighty management-type person
14975#  (known now only by the initials VP) who said, the mighty Jerq must stay
14976#  alone, and could not go forth into the world. So Locanthi and Pike put the
14977#  Jerq to sleep, cloned its parts, and the Blit was brought forth unto the
14978#  world. And the Jerq lived the rest of its days in research, but never
14979#  strayed from those paths.
14980#
14981#  In all seriousness, the Blit was originally known as the Jerq, but when
14982#  it started to be shown outside of the halls of the Bell Labs Research
14983#  organization, the management powers that be decided that the name could
14984#  not remain. So it was renamed to be Blit. This was in late 1981.
14985#
14986# (The AT&T 5620 was the commercialized Blit.  Its successors were the 630,
14987# 730, and 730+.)
14988#
14989
14990blit|jerq|blit running teletype rom,
14991	am, eo, ul, xon,
14992	cols#87, it#8, lines#72,
14993	bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
14994	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA,
14995	dch=\Ee%p1%{32}%+%c, dch1=\Ee!, dl=\EE%p1%{32}%+%c,
14996	dl1=\EE!, el=\EK, ht=^I, ich=\Ef%p1%{32}%+%c, ich1=\Ef!,
14997	il=\EF%p1%{32}%+%c, il1=\EF!, ind=^J, kbs=^H, kcub1=\ED,
14998	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf1=\Ex, kf2=\Ey, kf3=\Ez,
14999
15000# (cbblit: here's a BSD termcap that says <cud1=\EG> -- esr)
15001cbblit|fixterm|blit running columbus code,
15002	cols#88,
15003	ed=\EJ, flash=\E^G, ich1@, mc4=^T, mc5=^R, mc5p=\EP%p1%03d,
15004	rmir=\ER, rmso=\EV!, rmul=\EV", smir=\EQ, smso=\EU!,
15005	smul=\EU", use=blit,
15006
15007oblit|ojerq|first version of blit rom,
15008	am, da, db, eo, mir, ul, xon,
15009	cols#88, it#8, lines#72,
15010	bel=^G, clear=^L, cr=^M, cub1=\ED, cud1=^J, cuf1=\EC,
15011	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\EO,
15012	dl=\Ee%p1%{32}%+%c, dl1=\EE, ed=\EJ, el=\EK, flash=\E^G,
15013	ht=^I, il=\Ef%p1%{32}%+%c, il1=\EF, ind=^J, kbs=^H, rmir=\ER,
15014	smir=\EQ,
15015
15016#### Bolt, Beranek & Newman (bbn)
15017#
15018# The BitGraph was a product of the now-defunct BBN Computer Corporation.
15019# The parent company, best known as the architects of the Internet, is
15020# still around.
15021#
15022# Jeff DelPapa <dp@world.std.com> writes:
15023# The bitgraph was a large white box that contained a monochrome bitmap
15024# display, and a 68000 to run it.  You could download code and run it on
15025# the cpu, it had 128kb (I think) of memory.  I used one in the late
15026# 70's, sure beat a vt100.  It had one strange feature tho -- it used
15027# the cpu to bitblt pixels to scroll, it took longer than the refresh
15028# rate, and looked like a rubber sheet stretching, then snapping
15029# upwards.  It had everything the early mac had, except a floppy drive a
15030# small screen (it had a 17" crisp beauty) and a real OS. They (Bolt
15031# Beranek and Neuman) sold at most a few hundred of them to the real
15032# world.  DOD may have bought more...
15033#
15034
15035# Entries for the BitGraph terminals.  The problem
15036# with scrolling in vi can only be fixed by getting BBN to put
15037# smarter scroll logic in the terminal or changing vi or padding
15038# scrolls with about 500 ms delay.
15039#
15040# I always thought the problem was related to the terminal
15041# counting newlines in its input buffer before scrolling and
15042# then moving the screen that much. Then vi comes along and
15043# paints lines in on the bottom line of the screen, so you get
15044# this big white gap.
15045
15046bitgraph|bg2.0nv|bg3.10nv|bbn bitgraph 2.0 or later (normal video),
15047	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
15048	use=bg2.0,
15049bg2.0rv|bg3.10rv|bbn bitgraph 2.0 (reverse video),
15050	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
15051	use=bg2.0,
15052bg2.0|bg3.10|bbn bitgraph 2.0 or later (no init),
15053	OTbs, xenl,
15054	cols#85, lines#64,
15055	bel=^G, clear=\E[H\E[J$<150>, cr=^M,
15056	csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
15057	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, dl1=\E[M$<2*>,
15058	ed=\E[J$<150>, el=\E[K$<2>, ht=^I, il1=\E[L$<2*>,
15059	ind=\n$<280>, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
15060	kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, lf1=PF1,
15061	lf2=PF2, lf3=PF3, lf4=PF4, rc=\E8, rmkx=\E>, rmso=\E[m, sc=\E7,
15062	sgr0=\E[m, smkx=\E=, smso=\E[7m,
15063
15064bg1.25rv|bbn bitgraph 1.25 (reverse video),
15065	flash=\E[?5l$<200/>\E[?5h, is2=\E>\E[?5h\E[?7h,
15066	use=bg1.25,
15067bg1.25nv|bbn bitgraph 1.25 (normal video),
15068	flash=\E[?5h$<200/>\E[?5l, is2=\E>\E[?5l\E[?7h,
15069	use=bg1.25,
15070# (bg1.25: I added <rmam>/<smam> based on the init string -- esr)
15071bg1.25|bbn bitgraph 1.25,
15072	cols#85, lines#64,
15073	bel=^G, clear=\E[H\E[J$<150>, cr=^M, cub1=^H, cud1=\E[B,
15074	cuf1=\E[C, cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A,
15075	dl1=\E[M$<2*>, ed=\E[J$<150>, el=\E[K$<2>, ht=^I,
15076	il1=\E[L$<2*>, ind=\n$<280>, kcub1=\ED, kcud1=\EB,
15077	kcuf1=\EC, kcuu1=\EA, kf1=\EP, kf2=\EQ, kf3=\ER, kf4=\ES,
15078	lf1=PF1, lf2=PF2, lf3=PF3, lf4=PF4, ll=\E[64;1H, rmam=\E[?7l,
15079	rmkx=\E>, rmso=\E[m, sgr0=\E[m, smam=\E[?7h, smkx=\E=,
15080	smso=\E[7m,
15081
15082#### Bull (bq, dku, vip)
15083#
15084# (Adapted for terminfo; AIX extension capabilities translated -- esr)
15085
15086#============================================#
15087# BULL QUESTAR 210 `SDP' terminals emulation #
15088#============================================#
15089#
15090# Description written by R.K.Saunders (Bull Transac)
15091#
15092# Modifications written by F. Girard (Bull MTS)
15093#		19-05-87 V02.00.01
15094#		17-12-87 V02.00.02
15095#		15-09-89 V02.00.05
15096#
15097#	Typical technical selections F1 (modes SDP/ROLL):
15098# -------------------------------------------------------
15099# |   01   02   03   04   05   06   07   08   09   10   |
15100# |  1010 0011 1010 0110 0110 0001 0100 0000 0000 0000  |
15101# |                                                     |
15102# |   11   12   13   14   15   16   17   18   19   20   |
15103# |  0000 0110 100? 0000 0000 0000 0001 0000 0000 0001  |
15104# |                                                     |
15105# |   21   22   23   24   25   26   27   28   29   30   |
15106# |  0011 0000 0001 1000 0000 0000 0000 0000 0000 0000  |
15107# |                                                     |
15108# |   31   32   33   34   35   36   37   38   39   40   |
15109# |  1010 0011 0000 0000 0000 0000 0000 0000 0000 0000  |
15110# -------------------------------------------------------
15111#	Typical firmware identification F5 "etat 6":
15112#  P287.02.04b	(AZERTY)
15113#  P297.11.04	(24-pin: 2732)	or P798.11.04	(28-pin: 2764)
15114#  P298.03.03	(monochrome)	or P374.03.02	(colour)
15115#
15116#	SM SDP mode (VIP command):	^[[?=h
15117#	RIS (erases screen):		^[c
15118#	DMI disable keyboard:		^[`
15119#	SM double rendition mode:	^[[?>h
15120#	RM solicited status mode:	^[[5l
15121#	RM character mode:		^[[>l
15122#	RM echoplex mode:		^[[12l
15123#	RM column tab mode:		^[[18l
15124#	RM forbid SS2 keyboard mode:	^[[?<l
15125#	SM scroll mode:			^[[=h
15126#	FCF enable XON/XOFF:		^[P1s^[\
15127#	MTL select end msg character:	^[[^Wp
15128#	EMI enable keyboard:		^[b
15129#	RIS retour etat initial:	^[c
15130#	enable FC keypad:		^[[?<h,
15131#	MPW map status line window:	^[PY99:98^[\
15132#	SCP select status line:		^[[0;98v
15133#	ED erase entire partition:	^[[2J
15134#	SCP select main partition:	^[[v
15135#	SM character insertion mode:	^[[4h
15136#	RM character replacement mode:	^[[4l
15137#	COO cursor on:			^[[r
15138#	COO cursor off:			^[[1r
15139#	SGR dim (turquoise) rev attr:	^[[2;7m
15140#	SGR Data normal attr:		^[[m
15141#	SO Line-graphic mode ON:	^N
15142#	SI Line-graphic mode OFF:	^O
15143#	MC start routing to printer:	^[[5i
15144#	MC stop routing to printer:	^M^[[4i
15145#
15146
15147# This entry covers the following terminals:
15148# dku7102, tws2102, and tws models 2105 to 2112
15149tws-generic|dku7102|Bull Questar tws terminals,
15150	am, eslok, hs, mir, msgr, xenl, xhp@, xon,
15151	cols#80, it#8, lines#24, wsl#80,
15152	acsc=``aaffggj)k\,l&m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~,
15153	bel=^G, blink=\E[0;5m, cbt=\E[Z, civis=\E[1r, clear=\E[2J,
15154	cnorm=\E[r, cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB,
15155	cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%df,
15156	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
15157	dim=\E[0;2m, dl=\E[%p1%dM, dl1=\E[M,
15158	dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[v, ed=\E[J, el=\E[K,
15159	fsl=\E[v, home=\E[H, ht=\E[I, hts=\EH, il=\E[%p1%dL,
15160	il1=\E[L, ind=^J, invis=\E[0;8m,
15161	is1=\E[?=h\Ec\E`\E[?>h\EPY99\:98\E\\,
15162	is2=\E[5;>;12;18;?<l\E[=h\EP1s\E\\\E[\027p,
15163	is3=\Eb\E[?<h, kbs=^H, kcbt=\E[Z, kctab=\E[g, kcub1=\E[D,
15164	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kdl1=\E[M,
15165	ked=\E[J, kel=\E[K, kf1=\E[1u\027, kf2=\E[2u\027,
15166	kf3=\E[3u\027, kf4=\E[4u\027, kf5=\E[5u\027,
15167	kf6=\E[6u\027, kf7=\E[7u\027, kf8=\E[8u\027, khome=\E[H,
15168	khts=\EH, kil1=\E[L, krmir=\E[4l, ll=\E[H\E[A, mc0=\E[0i,
15169	mc4=\r\E[4i, mc5=\E[5i, rev=\E[0;7m, rmacs=^O,
15170	rmcup=\E[0;98v\E[2J\E[v, rmir=\E[4l, rmso=\E[m,
15171	rmul=\E[m, rs2=\E[?=h\Ec, s0ds=^O, s1ds=^N,
15172	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%;,
15173	sgr0=\E[m\017, smacs=^N, smcup=\E[?>h\EPY99\:98\E\\,
15174	smir=\E[4h, smso=\E[0;7m, smul=\E[0;4m, tbc=\E[2g,
15175	tsl=\EPY99\:98\E\\\E[0;98v\E[2;7m,
15176tws2102-sna|dku7102-sna|BULL Questar tws2102 for SNA,
15177	dsl=\E[0;98v\E[2J\E[v, fsl=\E[v, is3=\Eb, tsl=\E[0;98v,
15178	use=tws-generic,
15179tws2103|xdku|BULL Questar tws2103,
15180	ht=^I, use=tws-generic,
15181tws2103-sna|dku7103-sna|BULL Questar tws2103 for SNA,
15182	ht=^I, use=tws2102-sna,
15183dku7102-old|BULL Questar 200 DKU7102 (microcode version < 6),
15184	clear=\E[2J\E[H, cup@, dl@, dl1@,
15185	dsl=\EPY99\:98\E\\\E[0;98v\E[2J\E[H\E[v, el=\E[K\E[m,
15186	il@, il1@, tsl=\EPY99\:98\E\\\E[0;98v\E[H\E[2;7m,
15187	use=tws-generic,
15188dku7202|BULL Questar 200 DKU7202 (colour/character attributes),
15189	blink=\E[0;2;4m, dim=\E[0;5m, ht=^I, is3=\E[?3h\Eb,
15190	smso=\E[0;4;5;7m, smul=\E[0;2m, use=tws-generic,
15191
15192#=========================================================#
15193# BULL QUESTAR 303 & 310 `DEC VT 320' terminals emulation #
15194#=========================================================#
15195#
15196# Description written by J. Staerck (BULL SA)
15197#       Copyright (c) 1989 BULL SA
15198#---------------------------------------------------------------------------
15199#  This entry is used for terminals with vt320 emulation mode
15200#  and following set-up :
15201#    8 bit ISO Latin Character Set (ISO 8859-1),
15202#    7 bit Control Characters,
15203#    80 columns screen.
15204#  Hereafter are some DEC vt terminals' commands. (valid on vt200 and 300)
15205#  They are used in string capabilities with vt220-320 emulation mode.
15206#  In the following DEC definitions, two kinds of terminfo databases are
15207#    provided :
15208#    1. the first with Command Sequence Introducer starting with escape
15209#       sequence in 7 bits characters ex. ESC [ : 2 chars. in 7-bit mode.
15210#    2. the second with Command Sequence Introducer starting with escape
15211#       sequence in 8 bits characters ex. ESC [ : 1 char. 'CSI' =x9B.
15212#	Soft Terminal Reset		esc [ ! p
15213#	RIS (erases screen):		esc c
15214#	DECKPNM numeric keypad mode:	esc >
15215#	DECKPAM applic. keypad mode:	esc =
15216#	DECSTBM Scrolling region:	esc [ r
15217#	SCS select G0 = US:		esc ( B
15218#	SCS select G1 = line-graphic:	esc ) 0
15219#	Select 7-bit C1 controls:	esc sp F
15220#	Select 8-bit C1 controls:	esc sp G
15221#	Select cursor home:		esc [  H
15222#	Select erase screen:		esc [  J
15223#	SM KAM lock keyboard:		esc [ 2 h
15224#	RM KAM unlock keyboard:		esc [ 2 l
15225#	SM SRM local echo off:		esc [ 1 2 h
15226#	RM SRM local echo on:		esc [ 1 2 l
15227#	SM LNM New line :		esc [ 2 0 h
15228#	RM LNM return = CR only:	esc [ 2 0 l
15229#	SM DECCKM cursor keys mode:	esc [ ? 1 h
15230#	RM DECCKM appli. keys mode:	esc [ ? 1 l
15231#	SM DECANM ANSI mode on:		esc [ ? 2 h
15232#	RM DECANM ANSI mode off:	esc [ ? 2 l
15233#	SM DECCOLM 132-column screen:	esc [ ? 3 h
15234#	RM DECCOLM 80-column screen:	esc [ ? 3 l
15235#	SM DECSCLM Smooth scroll:	esc [ ? 4 h
15236#	RM DECSCLM Jump scroll:		esc [ ? 4 l
15237#	SM DECSCNM screen light backgr.	esc [ ? 5 h
15238#	RM DECSCNM screen dark backgr.	esc [ ? 5 l
15239#	SM DECOM move within margins:	esc [ ? 6 h
15240#	RM DECOM move outside margins:	esc [ ? 6 l
15241#	SM DECAWM auto right margin:	esc [ ? 7 h
15242#	RM DECAWM auto right margin:	esc [ ? 7 l
15243#	SM DECARM auto repeat:		esc [ ? 8 h
15244#	RM DECARM auto repeat:		esc [ ? 8 l
15245#	DECSASD Select active main:	esc [ 0 $ }
15246#	DECSASD Select active status:	esc [ 1 $ }
15247#	DECSSDT Select status none:	esc [ 0 $ ~
15248#	DECSSDT Select status indic.:	esc [ 1 $ ~
15249#	DECSSDT Select status host-wr:	esc [ 2 $ ~
15250#	SM DECTCEM Visible cursor:	esc [ ? 2 5 h
15251#	RM DECTCEM Invisible cursor:	esc [ ? 2 5 l
15252#	SM DECNCRM 7 bits NCR set:	esc [ ? 4 2 h
15253#	RM DECNCRM Multi or ISO latin:	esc [ ? 4 2 l
15254#	SM DECNKM numeric keypad mode:	esc [ ? 6 6 h
15255#	RM DECNKM numeric keypad appl.:	esc [ ? 6 6 l
15256#	SM DECKBUM clavier informatique	esc [ ? 6 8 h
15257#	RM DECKBUM clavier bureautique:	esc [ ? 6 8 l
15258#	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 " p
15259# or	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 ; 0 " p
15260# or	DECSCL vt300 mode 8-bit ctrl:	esc [ 6 3 ; 2 " p
15261#	DECSCL vt300 mode 7-bit ctrl:	esc [ 6 3 ; 1 " p
15262#	Char. and Line attributes:	esc [ Ps ... Ps m
15263# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
15264# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
15265#
15266
15267# This entry covers BQ303, BQ306, BQ310, Q303, Q306, Q310
15268bq300|Bull vt320 ISO Latin 1 80 columns terminal,
15269	am, eo, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
15270	cols#80, it#8, lines#24, vt#3, wsl#80,
15271	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15272	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
15273	clear=\E[H\E[J, cnorm=\E[?25h, cr=^M,
15274	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\E[D,
15275	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
15276	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
15277	cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
15278	dl1=\E[M, dsl=\E[1$}\E[2$~\n\E[0$}, ech=\E[%p1%dX,
15279	ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
15280	flash=\E[?5h$<50>\E[?5l, fsl=\E[0$}, home=\E[H, ht=^I,
15281	hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
15282	is1=\E[63;1"p\E[2h,
15283	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15284	is3=\E[0$}\E[?25h\E[2l\E[H\E[J, ka1=\EOw, ka3=\EOy,
15285	kb2=\EOu, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D, kcud1=\E[B,
15286	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\EOP, kf10=\E[21~,
15287	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
15288	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
15289	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
15290	kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kfnd=\E[1~,
15291	khlp=\E[28~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15292	krdo=\E[29~, kslt=\E[4~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4,
15293	mc0=\E[i, mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
15294	ri=\EM, rmacs=^O, rmam=\E[?7l, rmcup=\E[?7h, rmir=\E[4l,
15295	rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m, rs1=\E[!p,
15296	rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0, sc=\E7,
15297	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%;,
15298	sgr0=\E[0m\E(B, smacs=^N, smam=\E[?7h,
15299	smcup=\E[?7l\E[?1l\E(B, smir=\E[4h, smso=\E[7m,
15300	smul=\E[4m, tbc=\E[3g, tsl=\E[1$}\E[2$~,
15301bq300-rv|Bull vt320 reverse 80 columns,
15302	flash=\E[?5l$<50>\E[?5h,
15303	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15304	use=bq300,
15305bq300-w|Bull vt320 132 columns,
15306	cols#132, wsl#132,
15307	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15308	rs2=\E[?3h, use=bq300,
15309bq300-w-rv|Bull vt320 reverse mode 132 columns,
15310	cols#132, wsl#132,
15311	flash=\E[?5l$<50>\E[?5h,
15312	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15313	rs2=\E[?3h, use=bq300,
15314
15315#  This entry is used for terminals with vt320 emulation mode
15316#  and following set-up :
15317#    8 bit ISO Latin Character Set (ISO 8859-1),
15318#    8 bit Control Characters, (CSI coded as x9B for ESC [)
15319#    80 columns screen.
15320#	Soft Terminal Reset		csi ! p
15321#	RIS (erases screen):		esc c
15322#	DECKPNM numeric keypad mode:	esc >
15323#	DECKPAM applic. keypad mode:	esc =
15324#	DECSTBM Scrolling region:	esc [ r
15325#	SCS select G0 = US:		esc ( B
15326#	SCS select G1 = line-graphic:	esc ) 0
15327#	Select 7-bit C1 controls:	esc sp F
15328#	Select 8-bit C1 controls:	esc sp G
15329#	Select cursor home:		csi H
15330#	Select erase screen:		csi J
15331#	SM KAM lock keyboard:		csi 2 h
15332#	RM KAM unlock keyboard:		csi 2 l
15333#	SM SRM local echo off:		csi 1 2 h
15334#	RM SRM local echo on:		csi 1 2 l
15335#	SM LNM New line :		csi 2 0 h
15336#	RM LNM return = CR only:	csi 2 0 l
15337#	SM DECCKM cursor keys mode:	csi ? 1 h
15338#	RM DECCKM appli. keys mode:	csi ? 1 l
15339#	SM DECANM ANSI mode on:		csi ? 2 h
15340#	RM DECANM ANSI mode off:	csi ? 2 l
15341#	SM DECCOLM 132-column screen:	csi ? 3 h
15342#	RM DECCOLM 80-column screen:	csi ? 3 l
15343#	SM DECSCLM Smooth scroll:	csi ? 4 h
15344#	RM DECSCLM Jump scroll:		csi ? 4 l
15345#	SM DECSCNM screen light backgr.	csi ? 5 h
15346#	RM DECSCNM screen dark backgr.	csi ? 5 l
15347#	SM DECOM move within margins:	csi ? 6 h
15348#	RM DECOM move outside margins:	csi ? 6 l
15349#	SM DECAWM auto right margin:	csi ? 7 h
15350#	RM DECAWM auto right margin:	csi ? 7 l
15351#	SM DECARM auto repeat:		csi ? 8 h
15352#	RM DECARM auto repeat:		csi ? 8 l
15353#	DECSASD Select active main:	csi 0 $ }
15354#	DECSASD Select active status:	csi 1 $ }
15355#	DECSSDT Select status none:	csi 0 $ ~
15356#	DECSSDT Select status indic.:	csi 1 $ ~
15357#	DECSSDT Select status host-wr:	csi 2 $ ~
15358#	SM DECTCEM Visible cursor:	csi ? 2 5 h
15359#	RM DECTCEM Invisible cursor:	csi ? 2 5 l
15360#	SM DECNCRM 7 bits NCR set:	csi ? 4 2 h
15361#	RM DECNCRM Multi or ISO latin:	csi ? 4 2 l
15362#	DECSCL vt300 mode 8-bit ctrl:	csi 6 3 " p
15363# or	DECSCL vt300 mode 8-bit ctrl:	csi 6 3 ; 0 " p
15364#	DECSCL vt300 mode 7-bit ctrl:	csi 6 3 ; 1 " p
15365#	Char. and Line attributes:	csi Ps ... Ps m
15366# with:  0 All off, 1 Bold, 4 Underline, 5 Blinking, 7 Reverse
15367# and : 22 Bold off, 24 Underline off, 25 Blinking off, 27 Reverse off
15368# (bq300-8: <cub1>,<cuf1>,<cuu1>,<cud1>,<dl1>,<il1> to get under 1024 --esr)
15369bq300-8|Bull vt320 full 8 bits 80 columns,
15370	am, eo, eslok, hs, km, mc5i, mir, msgr, xenl, xon,
15371	cols#80, it#8, lines#24, vt#3, wsl#80,
15372	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15373	bel=^G, blink=\2335m, bold=\2331m, civis=\233?25l,
15374	clear=\233H\233J, cnorm=\233?25h, cr=^M,
15375	csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cud=\233%p1%dB,
15376	cuf=\233%p1%dC, cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA,
15377	cvvis=\233?25h, dch=\233%p1%dP, dch1=\233P,
15378	dl=\233%p1%dM, dsl=\2331$}\2332$~\n\2330$},
15379	ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K,
15380	enacs=\E(B\E)0, flash=\233?5h$<50>\233?5l, fsl=\2330$},
15381	home=\233H, ht=^I, hts=\EH, ich=\233%p1%d@, il=\233%p1%dL,
15382	ind=\ED, is1=\E[63;2"p\E[2h,
15383	is2=\E[?2h\E[?3l\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15384	is3=\2330$}\233?25h\2332l\233H\233J, ka1=\217w,
15385	ka3=\217y, kb2=\217u, kbs=^H, kc1=\217q, kc3=\217s,
15386	kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
15387	kdch1=\2333~, kf1=\217P, kf10=\23321~, kf11=\23323~,
15388	kf12=\23324~, kf13=\23325~, kf14=\23326~, kf15=\23328~,
15389	kf16=\23329~, kf17=\23331~, kf18=\23332~, kf19=\23333~,
15390	kf2=\217Q, kf20=\23334~, kf3=\217R, kf4=\217S, kf6=\23317~,
15391	kf7=\23318~, kf8=\23319~, kf9=\23320~, kfnd=\2331~,
15392	khlp=\23328~, kich1=\2332~, knp=\2336~, kpp=\2335~,
15393	krdo=\23329~, kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3,
15394	lf4=pf4, mc0=\233i, mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8,
15395	rev=\2337m, ri=\EM, rmacs=^O, rmam=\233?7l, rmcup=\233?7h,
15396	rmir=\2334l, rmkx=\233?1l\E>, rmso=\23327m, rmul=\23324m,
15397	rs1=\E[!p, rs2=\E[?3l, s0ds=\E(B, s1ds=\E(0, sc=\E7,
15398	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%;,
15399	sgr0=\2330m\E(B, smacs=^N, smam=\233?7h,
15400	smcup=\233?7l\233?1l\E(B, smir=\2334h, smso=\2337m,
15401	smul=\2334m, tbc=\2333g, tsl=\2331$}\2332$~,
15402bq300-8rv|Bull vt320 8-bit reverse mode 80 columns,
15403	flash=\233?5l$<50>\233?5h,
15404	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15405	use=bq300-8,
15406bq300-8w|Bull vt320 8-bit 132 columns,
15407	cols#132, wsl#132,
15408	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15409	rs2=\233?3h, use=bq300-8,
15410bq300-w-8rv|Bull vt320 8-bit reverse mode 132 columns,
15411	cols#132, wsl#132,
15412	flash=\233?5l$<50>\233?5h,
15413	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15414	rs2=\233?3h, use=bq300-8,
15415
15416#  This entry is used for terminals with vt320 emulation mode
15417#  a 102 keys keyboard (PC scancode !) and following set-up :
15418#    8 bit ISO Latin Character Set (ISO 8859-1),
15419#    7 bit Control Characters,
15420#    80 columns screen.
15421bq300-pc|Questar 303 with PC keyboard ISO Latin 1 80 columns,
15422	kbs=^H, kdch1=\E[3~, kend=\E[4~, kf1=\E[17~, kf10=\E[28~,
15423	kf11=\E[29~, kf12=\E[31~, kf13@, kf14@, kf15@, kf16@, kf17@,
15424	kf18@, kf19@, kf2=\E[18~, kf20@, kf3=\E[19~, kf4=\E[20~,
15425	kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
15426	kfnd@, khlp@, khome=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
15427	krdo@, kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300,
15428bq300-pc-rv|Questar 303 with PC keyboard reverse mode 80 columns,
15429	flash=\E[?5l$<50>\E[?5h,
15430	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15431	use=bq300-pc,
15432bq300-pc-w|Questar 303 with PC keyboard 132 columns terminal,
15433	cols#132, wsl#132,
15434	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15435	rs2=\E[?3h, use=bq300-pc,
15436bq300-pc-w-rv|Questar 303 with PC keyboard reverse mode 132 columns,
15437	cols#132, wsl#132,
15438	flash=\E[?5l$<50>\E[?5h,
15439	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E F\E[?42l\E[?4l,
15440	rs2=\E[?3h, use=bq300-pc,
15441#    8 bit ISO Latin Character Set (ISO 8859-1),
15442#    8 bit Control Characters,
15443#    80 columns screen.
15444bq300-8-pc|Q306-8-pc|Questar 303 with PC keyboard in full 8 bits 80 columns,
15445	kbs=^H, kdch1=\2333~, kend=\2334~, kf1=\23317~,
15446	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13@, kf14@,
15447	kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\23318~, kf20@,
15448	kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
15449	kf7=\23324~, kf8=\23325~, kf9=\23326~, kfnd@, khlp@,
15450	khome=\2331~, kich1=\2332~, knp=\2336~, kpp=\2335~, krdo@,
15451	kslt@, lf1@, lf2@, lf3@, lf4@, use=bq300-8,
15452bq300-8-pc-rv|Questar 303 with PC keyboard full 8 bits reverse mode 80 columns,
15453	flash=\E[?5l$<50>\E[?5h,
15454	is2=\E[?2h\E[?3l\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15455	use=bq300-8-pc,
15456bq300-8-pc-w|Questar 303 with PC keyboard full 8 bits 132 columns,
15457	cols#132, wsl#132,
15458	is2=\E[?2h\E[?3h\E[?5l\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15459	rs2=\E[?3h, use=bq300-8-pc,
15460bq300-8-pc-w-rv|Questar 303 with PC keyboard full 8 bits reverse 132 columns,
15461	cols#132, wsl#132,
15462	flash=\E[?5l$<50>\E[?5h,
15463	is2=\E[?2h\E[?3h\E[?5h\E[?7h\E[?8h\E>\E[?1l\E G\E[?42l\E[?4l,
15464	rs2=\E[?3h, use=bq300-8-pc,
15465
15466#======================================================#
15467# BULL QUESTAR 310 `VIP 7800/8800' terminals emulation #
15468#======================================================#
15469
15470# normal mode, 8 bits, 80 columns terminal.
15471#	RES reset :			^[e
15472#	RIS reset initial state:	^[c
15473#	BLE bell enable			^[h
15474#	BLD bell disable		^[g
15475#	CAMS char. attr. mode set	^[[D
15476#	CAMR char. attr. mode reset	^[[G
15477#	CLR clear			^[`
15478#	KBU keyboard unlock (set)	^[[W
15479#	KBL keyboard lock (reset)	^[[X
15480#	CM  character mode (async.) 	^[k
15481#	NEP non echoplex mode (by host)	^[l
15482#	EP  echoplex mode (by host) 	^[m
15483#	IM  insert mode set		^[[I
15484#	IM  insert mode reset 		^[[J
15485#	RMS roll mode set 		^[r
15486#	RMR roll mode reset 		^[q
15487#	SM78 set mode vip7800	 	^[[1q
15488#	SD  scroll up  	(72 lines) 	^[[0s
15489#	SD  scroll down	(72 lines) 	^[[1s
15490#	RBM block mode reset		^[[E
15491#	SLS status line set 		^[w
15492#	SLR status line reset 		^[v
15493#	SLL status line lock 		^[O
15494#	LGS Line-graphic mode set 	^[G
15495#	LGR Line-graphic mode reset 	^[F
15496#	TBC tab clear (at cursor pos.)	^[[g
15497#	TBI tab initialize 		^[[N
15498#	TBS tab set (at cursor pos.)	^[p
15499#	PDS  print data space		^[[0p
15500#	PHD  print host data 		^[[3p
15501#	PDT  print data terminator	^[[<p
15502#	PRES print adapter reset	^[[2p
15503#	SSPR multi-part. reset		^[[<>u
15504#	SSP0 partition 0 set		^[[00u
15505#	SSP1 partition n format 1 	^[[PnPnSTRINGu
15506#	SSP2 partition n format 2 	^[[PnPnSTRINGu
15507#	SSP3 partition n format 3 	^[[PnPnu
15508#	ATR attribute (visual)
15509#	    blink :			^[sB
15510#	    dim :			^[sL
15511#	    hide (blank) :		^[sH
15512#	    restore :			^[sR
15513#	    inverse video :		^[sI
15514#	    prot. :			^[sP
15515#	    underline :			^[s_
15516#	    reset :			^{
15517#
15518# This covers the vip7800 and BQ3155-vip7800
15519vip|Bull Questar 3155-7800,
15520	am, eslok, hs, km, mc5i, msgr, xenl, xon,
15521	cols#80, it#8, lines#24, vt#3, wsl#80,
15522	acsc=0pjdkblamcnkqitgufvhwexj, bel=^G, blink=\EsB,
15523	cbt=\E[Z, clear=\E`, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15524	cup=\E[%i%p1%03d%p2%03df, cuu1=\EA, dch1=\E[P, dim=\EsL,
15525	dl1=\E[M, dsl=\Ev, ed=\EJ, el=\EK,
15526	flash=\007$<80>\007$<80>\007, fsl=\EO, home=\EH, ht=^I,
15527	hts=\Ep, ich1=\E[I, ind=^J, invis=\EsH,
15528	is2=\E[00u\E[<>001001024080024080u\E[01u,
15529	is3=\Er\E[W\E`, kHOM=\EH, kLFT=\Eo, kRIT=\Eu, kbs=^H,
15530	kcbt=\E[Z, kclr=\E`, kctab=\E[g, kcub1=\ED, kcud1=\EB,
15531	kcuf1=\EC, kcuu1=\EA, kdch1=\E[P, kdl1=\E[M, ked=\EJ,
15532	kel=\EK, kf1=\E0, kf10=\ET, kf11=\E\\, kf12=\E\^, kf13@, kf14@,
15533	kf15@, kf16@, kf17@, kf18@, kf19@, kf2=\E2, kf20@, kf21=\E1,
15534	kf22=\E5, kf23=\E7, kf24=\E9, kf25=\E;, kf26=\E=, kf27=\E?,
15535	kf28=\EQ, kf29=\ES, kf3=\E6, kf30=\EV, kf31=\E], kf32=\E_,
15536	kf4=\E8, kf5=\E\:, kf6=\E<, kf7=\E>, kf8=\EP, kf9=\ER,
15537	khome=\EH, khts=\Ep, kich1=\E[I, kil1=\E[L, kind=\E[0s,
15538	kll=\EH\EA, kri=\E[1s, krmir=\E[J, ktbc=\E[N, lf1=pf1,
15539	lf2=pf2, lf3=pf3, lf4=pf4, ll=\EH\EA, mc0=\E[0p, mc4=\E[<p,
15540	mc5=\E[3p, nel=^M, prot=\EsP, rev=\EsI,
15541	ri=\EA\EJ\EH\E[L$<10>, rmacs=\EF, rmir=\E[J, rmso=\EsR,
15542	rmul=\EsR, rs1=\Ec, rs2=\E[G, s0ds=\EF, s1ds=\EG,
15543	sgr0=\EsR\EsU\EF, smacs=\EG, smir=\E[I, smso=\EsI,
15544	smul=\Es_, tbc=\E[N, tsl=\Ew,
15545# normal screen, 8 bits, 132 columns terminal.
15546vip-w|vip7800-w|Q310-vip-w|Q310-vip-w-am|Questar 3155-vip7800 wide,
15547	cols#132, wsl#132,
15548	is2=\E[00u\E[<>001001024132024132u\E[01u, use=vip,
15549vip-H|vip7800-H|Q310-vip-H|Q310-vip-H-am|Questar 3155-vip7800 72 lines,
15550	lines#72,
15551	is2=\E[00u\E[<>001001024080072080u\E[01u, use=vip,
15552vip-Hw|vip7800-Hw|Q310-vip-Hw|Questar 3155-vip7800 wide 72 lines,
15553	cols#132, lines#72, wsl#132,
15554	is2=\E[00u\E[<>001001024132072132u\E[01u, use=vip,
15555
15556#### Chromatics
15557#
15558
15559# I have put the long strings in <smcup>/<rmcup>. Ti sets up a window
15560# that is smaller than the screen, and puts up a warning message
15561# outside the window. Te erases the warning message, puts the
15562# window back to be the whole screen, and puts the cursor at just
15563# below the small window. I defined <cnorm> and <civis> to really turn
15564# the cursor on and off, but I have taken this out since I don't
15565# like the cursor being turned off when vi exits.
15566cg7900|chromatics|chromatics 7900,
15567	am,
15568	cols#80, lines#40,
15569	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^],
15570	cup=\001M%p2%d\,%p1%d\,, cuu1=^K, dch1=^A<1, dl1=^A<2,
15571	ed=^Al, el=^A`, home=^\, ich1=^A>1, il1=^A>2, ind=^J, ll=^A|,
15572	rmcup=\001W0\,40\,85\,48\,\014\001W0\,0\,85\,48\,\001M0\,40\,,
15573	rmso=\001C1\,\001c2\,,
15574	smcup=\001P0\001O1\001R1\001C4\,\001c0\,\014\001M0\,42\,WARNING DOUBLE ENTER ESCAPE and \025\001C1\,\001c2\,\001W0\,0\,79\,39\,,
15575	smso=\001C4\,\001c7\,, uc=\001\001_\001\0,
15576
15577#### Computer Automation
15578#
15579
15580ca22851|computer automation 22851,
15581	am,
15582	cols#80, lines#24,
15583	bel=^G, clear=\014$<8>, cr=^M, cub1=^U, cud1=^J, cuf1=^I,
15584	cup=\002%i%p1%c%p2%c, cuu1=^V, ed=^\, el=^], home=^^, ind=^J,
15585	kcub1=^U, kcud1=^W, kcuu1=^V, khome=^^,
15586
15587#### Cybernex
15588#
15589
15590# This entry has correct padding and the undocumented "ri" capability
15591cyb83|xl83|cybernex xl-83,
15592	OTbs, am,
15593	cols#80, lines#24,
15594	bel=^G, clear=\014$<62>, cr=^M, cub1=^H, cud1=^J, cuf1=^I,
15595	cup=\027%p1%{32}%+%c%p2%{32}%+%c, cuu1=^N,
15596	ed=\020$<62>, el=\017$<3>, home=^K, ind=^J, kcub1=^H,
15597	kcud1=^J, kcuf1=^I, kcuu1=^N, ri=^N,
15598# (mdl110: removed obsolete ":ma=^Z^P:" and overridden ":cd=145^NA^W:" -- esr)
15599cyb110|mdl110|cybernex mdl-110,
15600	OTbs, am,
15601	cols#80, lines#24,
15602	bel=^G, clear=\030$<70>, cr=^M, cub1=^H, cud1=^J, cuf1=^U,
15603	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^Z,
15604	dch1=\016A\036$<3.5>, dl1=\016A\016\036$<40>,
15605	ed=\016@\026$<6>, el=\016@\026$<145>, home=^Y,
15606	ht=\011$<43>, ich1=\016A\035$<3.5>,
15607	il1=\016A\016\035$<65>, ind=^J, rmso=^NG, smso=^NF,
15608
15609#### Datapoint
15610#
15611# Datapoint is gone.  They used to be headquartered in Texas.
15612# They created ARCnet, an Ethernet competitor that flourished for a while
15613# in the early 1980s before 3COM got wise and cut its prices.  The service
15614# side of Datapoint still lives (1995) in the form of Intelogic Trace.
15615#
15616
15617dp3360|datapoint|datapoint 3360,
15618	OTbs, am,
15619	cols#82, lines#25,
15620	bel=^G, clear=^]^_, cr=^M, cub1=^H, cud1=^J, cuf1=^X, cuu1=^Z,
15621	ed=^_, el=^^, home=^], ind=^J,
15622
15623# From: Jan Willem Stumpel <jw.stumpel@inter.nl.net>, 11 May 1997
15624# The Datapoint 8242 Workstation was sold at least between 1985
15625# and 1989. To make the terminal work with this entry, press
15626# CONTROL-INT-INT to take the terminal off-line, and type (opt).
15627# Set the options AUTO ROLL, ROLL DN, and ESC KBD on, and AUTO
15628# CR/LF off. Use control-shift-[] as escape key, control-I as tab,
15629# shift-F1 to shift-F5 as F6 to F10 (unshifted F1 to F5 are in
15630# fact unusable because the strings sent by the terminal conflict
15631# with other keys).
15632# The terminal is capable of displaying "box draw" characters.
15633# For each graphic character you must send 2 ESC's (\E\E) followed
15634# by a control character as follows:
15635#         character        meaning
15636#         =========        =======
15637#         ctrl-E           top tee
15638#         ctrl-F           right tee
15639#         ctrl-G           bottom tee
15640#         ctrl-H           left tee
15641#         ctrl-I           cross
15642#         ctrl-J           top left corner
15643#         ctrl-K           top right corner
15644#         ctrl-L           bottom left corner
15645#         ctrl-M           bottom right corner
15646#         ctrl-N           horizontal line
15647#         ctrl-O           vertical line
15648# Unfortunately this cannot be fitted into the termcap/terminfo
15649# description scheme.
15650dp8242|datapoint 8242,
15651	msgr,
15652	cols#80, lines#25,
15653	bel=^G, civis=^Y, clear=\025\E\004\027\030, cnorm=^X,
15654	cr=^M, cub1=^H, cud1=^J,
15655	cup=\011%p2%'\0'%+%c%p1%'\0'%+%c, dl1=\E^Z, ed=^W, el=^V,
15656	home=^U, ht=^I, il1=\E^T, ind=^C,
15657	is1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
15658	kbs=^H, kcub1=^D, kcud1=^B, kcuf1=^F, kcuu1=^E, kf1=^G\Ee,
15659	kf10=\EK\Ea, kf2=^I\Ed, kf3=^J\Ec, kf4=^J\Eb, kf5=^S\Ea,
15660	kf6=\EO\Ee, kf7=\EN\Ed, kf8=\EM\Ec, kf9=\EL\Eb, nel=^M^J,
15661	rep=\E\023%p1%c%p2%c, ri=^K, rmso=\E^D, rmul=\E^D,
15662	rs1=\E\014\E\016\0\230\0\317\025\027\030\E\004,
15663	smso=\E^E, smul=\E^F,
15664	wind=\E\014\E\016%p1%'\0'%+%c%p2%'\0'%+%c%p3%'\0'%+%c%p4%'\0'%+%c\025,
15665
15666#### DEC terminals (Obsolete types: DECwriter and vt40/42/50)
15667#
15668# These entries are DEC's official terminfos for its older terminals.
15669# Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
15670# Engineering for more information.  Updated terminfos and termcaps
15671# are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
15672#
15673
15674gt40|dec gt40,
15675	OTbs, os,
15676	cols#72, lines#30,
15677	bel=^G, cr=^M, cub1=^H, cud1=^J,
15678gt42|dec gt42,
15679	OTbs, os,
15680	cols#72, lines#40,
15681	bel=^G, cr=^M, cub1=^H, cud1=^J,
15682vt50|dec vt50,
15683	OTbs,
15684	cols#80, lines#12,
15685	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15686	cuu1=\EA, ed=\EJ, el=\EK, ht=^I, ind=^J,
15687vt50h|dec vt50h,
15688	OTbs,
15689	cols#80, lines#12,
15690	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
15691	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
15692	el=\EK, ht=^I, ind=^J, ri=\EI,
15693# (vt61: there's a BSD termcap that claims <dl1=\EPd>, <il1=\EPf.> <kbs=^H>)
15694vt61|vt-61|vt61.5|dec vt61,
15695	cols#80, lines#24,
15696	bel=^G, clear=\EH\EJ$<120>, cr=\r$<20>, cub1=^H, cud1=^J,
15697	cuf1=\EC$<20>, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>,
15698	cuu1=\EA$<20>, ed=\EJ$<120>, el=\EK$<70>, ht=^I,
15699	ind=\n$<20>, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
15700	ri=\E$<20>I,
15701
15702# The gigi does standout with red!
15703# (gigi: I added <rmam>/<smam> based on the init string, corrected cub1 -- esr)
15704gigi|vk100|dec gigi graphics terminal,
15705	OTbs, am, xenl,
15706	cols#84, lines#24,
15707	bel=^G, clear=\E[H\E[2J, cr=^M, cub=\E[%p1%dD, cub1=^H,
15708	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
15709	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, ed=\E[J,
15710	el=\E[K, ht=^I, ind=^J,
15711	is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h,
15712	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
15713	kf2=\EOQ, kf3=\EOR, kf4=\EOS, khome=\E[H, ri=\EM,
15714	rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
15715	sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7;31m,
15716	smul=\E[4m,
15717
15718# DEC PRO-350 console (VT220-style).  The 350 was DEC's attempt to produce
15719# a PC differentiated from the IBM clones.  It was a total, ludicrous,
15720# grossly-overpriced failure (among other things, DEC's OS didn't include
15721# a format program, so you had to buy pre-formatted floppies from DEC at
15722# a hefty premium!).
15723pro350|decpro|dec pro console,
15724	OTbs,
15725	cols#80, it#8, lines#24,
15726	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
15727	clear=\EH\EJ, cub1=^H, cud1=\EB, cuf1=\EC,
15728	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
15729	el=\EK, home=\EH, ht=^I, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
15730	kcuu1=\EA, kf0=\EE, kf1=\EF, kf2=\EG, kf3=\EH, kf4=\EI,
15731	kf5=\EJ, kf6=\Ei, kf7=\Ej, khome=\EH, ri=\EI, rmacs=\EG,
15732	rmso=\E^N, rmul=\E^C, smacs=\EF, smso=\E^H, smul=\E^D,
15733
15734dw1|decwriter I,
15735	OTbs, hc, os,
15736	cols#72,
15737	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J,
15738dw2|decwriter|dw|decwriter II,
15739	OTbs, hc, os,
15740	cols#132,
15741	bel=^G, cr=^M, cub1=^H, cud1=^J, ind=^J, kbs=^H,
15742# \E(B		Use U.S. character set (otherwise # => british pound !)
15743# \E[20l	Disable "linefeed newline" mode (else puts \r after \n,\f,\v)
15744# \E[w   	10 char/in pitch
15745# \E[1;132	full width horizontal margins
15746# \E[2g		clear all tab stops
15747# \E[z		6 lines/in
15748# \E[66t	66 lines/page (for \f)
15749# \E[1;66r	full vertical page can be printed
15750# \E[4g		clear vertical tab stops
15751# \E>		disable alternate keypad mode (so it transmits numbers!)
15752# \E[%i%p1%du	set tab stop at column %d (origin == 1)
15753#		(Full syntax is \E[n;n;n;n;n;...;nu where each 'n' is
15754#		a tab stop)
15755#
15756#       The dw3 does standout with wide characters.
15757#
15758dw3|la120|decwriter III,
15759	OTbs, hc, os,
15760	cols#132,
15761	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J,
15762	is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
15763	is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u\r,
15764	kbs=^H, rmso=\E[w, sgr0=\E[w, smso=\E[6w,
15765dw4|decwriter IV,
15766	OTbs, am, hc, os,
15767	cols#132,
15768	bel=^G, cr=^M, cub1=^H, cud1=^J, ht=^I, ind=^J, is2=\Ec, kbs=^H,
15769	kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS,
15770
15771# These aren't official
15772ln03|dec ln03 laser printer,
15773	hc,
15774	cols#80, lines#66,
15775	bel=^G, cr=^M, cud1=^J, hd=\EK, ht=^I, hu=\EL, ind=^J, nel=^M^J,
15776	rmso=\E[22m, rmul=\E[24m, sgr0=\E[m, smso=\E[1m,
15777	smul=\E[4m,
15778ln03-w|dec ln03 laser printer 132 cols,
15779	cols#132,
15780	bel=^G, cr=^M, cud1=^J, ht=^I, ind=^J, kbs=^H, kcub1=^H,
15781	kcud1=^J, nel=^M^J, use=ln03,
15782
15783#### Delta Data (dd)
15784#
15785
15786# Untested. The cup sequence is hairy enough that it probably needs work.
15787# The idea is ctrl(O), dd(row), dd(col), where dd(x) is x - 2*(x%16) + '9'.
15788# There are BSD-derived termcap entries floating around for this puppy
15789# that are *certainly* wrong.
15790delta|dd5000|delta data 5000,
15791	OTbs, am,
15792	cols#80, lines#27,
15793	bel=^G, clear=^NR, cub1=^H, cud1=^J, cuf1=^Y,
15794	cup=\017%p1%p1%{16}%m%{2}%*%-%{57}%+%c%p2%p2%{16}%m%{2}%*%-%{57}%+%c,
15795	cuu1=^Z, dch1=^NV, el=^NU, home=^NQ, ind=^J,
15796
15797#### Digital Data Research (ddr)
15798#
15799
15800# (ddr: I added <rmam>/<smam> based on the init string -- esr)
15801ddr|rebus3180|ddr3180|Rebus/DDR 3180 vt100 emulator,
15802	OTbs, am, xenl,
15803	cols#80, it#8, lines#24, vt#3,
15804	blink=\E[5m$<2/>, bold=\E[1m$<2/>,
15805	clear=\E[H\E[2J$<50/>, csr=\E[%i%p1%d;%p2%dr, cub1=^H,
15806	cud1=^J, cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
15807	cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
15808	ht=^I, ind=\ED$<5/>, is2=\E[1;24r\E[24;1H, kbs=^H,
15809	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP,
15810	kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m$<2/>,
15811	rf=/usr/share/tabset/vt100, ri=\EM$<5/>, rmam=\E[7l,
15812	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m$<2/>,
15813	rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
15814	sgr0=\E[m$<2/>, smam=\E[7l, smkx=\E[?1h\E=, smso=\E[7m,
15815	smul=\E[4m$<2/>,
15816
15817#### Evans & Sutherland
15818#
15819
15820# Jon Leech <leech@cs.unc.edu> tells us:
15821# The ps300 was the Evans & Sutherland Picture System 300, a high
15822# performance 3D vector graphics system with a bunch of specialized hardware.
15823# Approximate date of release was 1982 (early 80s, anyway), and it had several
15824# evolutions including (limited) color versions such as the PS330C. PS300s
15825# were effectively obsolete by the late 80s, replaced by raster graphics
15826# systems, although specialized applications like molecular modelling
15827# hung onto them for a while longer.  AFAIK all E&S vector graphics systems
15828# are out of production, though of course E&S is very much alive (in 1996).
15829# (ps300: changed ":pt@:" to "it@" -- esr)
15830#
15831ps300|Picture System 300,
15832	xt,
15833	it@,
15834	rmso@, rmul@, smso@, smul@, use=vt100,
15835
15836#### General Electric (ge)
15837#
15838
15839terminet1200|terminet300|tn1200|tn300|terminet|GE terminet 1200,
15840	OTbs, hc, os,
15841	cols#120,
15842	bel=^G, cr=^M, cud1=^J, ind=^J,
15843
15844#### Heathkit/Zenith
15845#
15846
15847# Here is a description of the H19 DIP switches:
15848#
15849# S401
15850# 0-3 = baud rate as follows:
15851#
15852#         3       2       1       0
15853#	---	---	---	---
15854#         0       0       1       1       300 baud
15855#         0       1       0       1       1200 baud
15856#         1       0       0       0       2400 baud
15857#         1       0       1       0       4800 baud
15858#         1       1       0       0       9600 baud
15859#         1       1       0       1       19.2K baud
15860#
15861# 4 = parity (0 = no parity)
15862# 5 = even parity (0 = odd parity)
15863# 6 = stick parity (0 = normal parity)
15864# 7 = full duplex (0 = half duplex)
15865#
15866# S402
15867# 0 = block cursor (0 = underscore cursor)
15868# 1 = no key click (0 = keyclick)
15869# 2 = wrap at end of line (0 = no wrap)
15870# 3 = auto LF on CR (0 = no LF on CR)
15871# 4 = auto CR on LF (0 = no CR on LF)
15872# 5 = ANSI mode (0 = VT52 mode)
15873# 6 = keypad shifted (0 = keypad unshifted)
15874# 7 = 50Hz refresh (1 = 60Hz refresh)
15875#
15876# Factory Default settings are as follows:
15877#          7 6 5 4 3 2 1 0
15878# S401     1 0 0 0 1 1 0 0
15879# S402     0 0 0 0 0 0 0 0
15880# (h19: I added <rmam>/<smam> based on the init string;
15881# also added empty <acsc> to suppress a tic warning -- esr)
15882h19-a|h19a|heath-ansi|heathkit-a|heathkit h19 ansi mode,
15883	OTbs, am, mir, msgr,
15884	cols#80, it#8, lines#24,
15885	acsc=, bel=^G, clear=\E[2J, cnorm=\E[>4l, cr=^M, cub1=^H,
15886	cud1=\E[1B, cuf1=\E[1C, cup=\E[%i%p1%d;%p2%dH,
15887	cuu1=\E[1A, cvvis=\E[>4h, dch1=\E[1P, dl1=\E[1M$<1*>,
15888	ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[1L$<1*>, ind=^J,
15889	is2=\E<\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m\E[?7h,
15890	kbs=^H, kcub1=\E[1D, kcud1=\E[1B, kcuf1=\E[1C, kcuu1=\E[1A,
15891	kf1=\EOS, kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP,
15892	kf7=\EOQ, kf8=\EOR, khome=\E[H, lf6=blue, lf7=red, lf8=white,
15893	ri=\EM, rmacs=\E[11m, rmam=\E[?7l, rmir=\E[4l, rmso=\E[m,
15894	smacs=\E[10m, smam=\E[?7h, smir=\E[4h, smso=\E[7m,
15895h19-bs|heathkit w/keypad shifted,
15896	rmkx=\Eu, smkx=\Et, use=h19-b,
15897h19-us|h19us|h19-smul|heathkit w/keypad shifted/underscore cursor,
15898	rmkx=\Eu, smkx=\Et, use=h19-u,
15899# (h19: merged in <ip> from BSDI hp19-e entry>;
15900# also added empty <acsc> to suppress a tic warning --esr)
15901# From: Tim Pierce <twp@skepsis.com>, 23 Feb 1998
15902# Tim tells us that:
15903# I have an old Zenith-19 terminal at home that still gets a lot of use.
15904# This terminal suffers from the same famous insert-mode padding lossage
15905# that has been acknowledged for the Z29 terminal.  Emacs is nearly
15906# unusable on this box, since even a half-scroll up or down the window
15907# causes flaming terminal death.
15908#
15909# On the Z19, the only way I have found around this problem is to remove
15910# the :al: and :dl: entries entirely.  No amount of extra padding will
15911# help (I have tried up to 20000).  Removing <il1=\EL$> and <dl1=\EM$>
15912# makes Emacs a little slower, but it remains in the land of the living.
15913# Big win.
15914h19|heath|h19-b|heathkit|heath-19|z19|zenith|heathkit h19,
15915	OTbs, am, eslok, hs, mir, msgr,
15916	cols#80, it#8, lines#24,
15917	acsc=, bel=^G, clear=\EE, cnorm=\Ey4, cr=^M, cub1=^H, cud1=\EB,
15918	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
15919	cvvis=\Ex4, dch1=\EN, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH,
15920	ht=^I, ind=^J, ip=<1.5/>, kbs=^H, kcub1=\ED, kcud1=\EB,
15921	kcuf1=\EC, kcuu1=\EA, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
15922	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, khome=\EH, lf6=blue,
15923	lf7=red, lf8=white, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
15924	smacs=\EF, smir=\E@, smso=\Ep,
15925	tsl=\Ej\Ex5\EY8%p1%{32}%+%c\Eo\Eo,
15926h19-u|heathkit with underscore cursor,
15927	cnorm@, cvvis@, use=h19-b,
15928h19-g|h19g|heathkit w/block cursor,
15929	cnorm=\Ex4, use=h19-b,
15930alto-h19|altoh19|altoheath|alto-heath|alto emulating heathkit h19,
15931	lines#60,
15932	dl1=\EM, il1=\EL, use=h19,
15933
15934# The major problem with the Z29 is that it requires more padding than the Z19.
15935#
15936# The problem with declaring an H19 to be synonymous with a Z29 is that
15937# it needs more padding. It especially loses if a program attempts
15938# to put the Z29 into insert mode and insert text at 9600 baud. It
15939# even loses worse if the program attempts to insert tabs at 9600
15940# baud. Adding padding to text that is inserted loses because in
15941# order to make the Z29 not die, one must add so much padding that
15942# whenever the program tries to use insert mode, the effective
15943# rate is about 110 baud.
15944#
15945# What program would want to put the terminal into insert mode
15946# and shove stuff at it at 9600 baud you ask?
15947#
15948# Emacs. Emacs seems to want to do the mathematically optimal
15949# thing in doing a redisplay rather than the practical thing.
15950# When it is about to output a line on top of a line that is
15951# already on the screen, instead of just killing to the end of
15952# the line and outputting the new line, it compares the old line
15953# and the new line and if there are any similarities, it
15954# constructs the new line by deleting the text on the old line
15955# on the terminal that is already there and then inserting new
15956# text into the line to transform it into the new line that is
15957# to be displayed. The Z29 does not react kindly to this.
15958#
15959# But don't cry for too long.... There is a solution. You can make
15960# a termcap entry for the Z29 that says the Z29 has no insert mode.
15961# Then Emacs cannot use it. "Oh, no, but now inserting into a
15962# line will be really slow", you say. Well there is a sort of a
15963# solution to that too. There is an insert character option on
15964# the Z29 that will insert one character. Unfortunately, it
15965# involves putting the terminal into ansi mode, inserting the
15966# character, and changing it back to H19 mode. All this takes 12
15967# characters. Pretty expensive to insert one character, but it
15968# works. Either Emacs doesn't try to use its inserting hack when
15969# it's only given an insert character ability or the Z29 doesn't
15970# require padding with this (the former is probably more likely,
15971# but I haven't checked it out).
15972# (z29: added empty <acsc> to suppress a tic warning, merged in
15973# status line capabilities from BRL entry --esr)
15974z29|zenith29|z29b|zenith z29b,
15975	OTbs, OTpt, am, eslok, hs, mir, msgr,
15976	OTkn#10, cols#80, lines#24,
15977	OTbc=\ED, acsc=, bel=^G, cbt=\E-, clear=\EE$<14>, cnorm=\Ey4,
15978	cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
15979	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\E$<1>A,
15980	cvvis=\Ex4, dch1=\EN$<0.1*>, dl1=\EM$<1/>, dsl=\Ey1,
15981	ed=\EJ$<14>, el=\EK$<1>, fsl=\Ek\Ey5, home=\EH, ht=^I,
15982	ich1=\E<\E[1@\E[?2h$<1>, il1=\EL$<1/>, ind=\n$<2>,
15983	is2=\E<\E[?2h\Ev, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
15984	kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
15985	kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
15986	lf0=home, ri=\EI$<2/>, rmacs=\EF, rmir=\EO, rmso=\Eq,
15987	rmul=\Es0, smacs=\EG, smir=\E@, smso=\Ep, smul=\Es8,
15988	tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
15989# z29 in ansi mode. Assumes that the cursor is in the correct state, and that
15990# the world is stable. <rs1> causes the terminal to be reset to the state
15991# indicated by the name. kc -> key click, nkc -> no key click, uc -> underscore
15992# cursor, bc -> block cursor.
15993# From: Mike Meyers
15994# (z29a: replaced nonexistent <if=/usr/share/tabset/zenith29> befause <hts>
15995# looks vt100-compatible -- esr)
15996z29a|z29a-kc-bc|h29a-kc-bc|heath/zenith 29 in ansi mode,
15997	OTbs, OTpt, am, eslok, hs, mir, msgr,
15998	OTkn#10, cols#80, it#8, lines#24,
15999	OTbc=\ED, bel=^G, blink=\E[5m, bold=\E[2m, clear=\E[2J,
16000	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
16001	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
16002	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
16003	dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
16004	dsl=\E[>1l, ed=\E[J, el=\E[K, fsl=\E[u\E[>5l, home=\E[H,
16005	ht=^I, hts=\EH, if=/usr/share/tabset/vt100, il=\E[%p1%dL,
16006	ind=\ED, kbs=^H, kclr=\E[J, kcub1=\EOD, kcud1=\EOB,
16007	kcuf1=\EOC, kcuu1=\EOA, ked=\E[J, kf0=\E[~, kf1=\EOS,
16008	kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
16009	kf8=\EOR, kf9=\EOX, khome=\E[H, lf0=help, mc0=\E#7,
16010	nel=^M\ED, rc=\E[r, rev=\E[7m, ri=\EM, rmcup=\E[?7h,
16011	rmso=\E[m, rmul=\E[m,
16012	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,
16013	sc=\E[s, sgr0=\E[m, smcup=\E[?7l, smso=\E[7;2m, smul=\E[4m,
16014	tbc=\E[3g, tsl=\E[s\E[>5;1h\E[25;%i%dH\E[1K,
16015z29a-kc-uc|h29a-kc-uc|z29 ansi mode with keyckick and underscore cursor,
16016	rs1=\E<\E[1;24r\E[24;1H\E[?7h\E[>1;2;3;4;5;6;7;8;9l\E[m\E[11m,
16017	use=z29a,
16018z29a-nkc-bc|h29a-nkc-bc|z29 ansi mode with block cursor and no keyclick,
16019	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,
16020	use=z29a,
16021z29a-nkc-uc|h29a-nkc-uc|z29 ansi mode with underscore cursor and no keyclick,
16022	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,
16023	use=z29a,
16024# From: Jeff Bartig <jeffb@dont.doit.wisc.edu> 31 Mar 1995
16025z39-a|z39a|zenith39-a|zenith39-ansi|Zenith 39 in ANSI mode,
16026	am, eslok, hs, mc5i, mir, msgr, xon,
16027	cols#80, lines#24,
16028	acsc=0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~, bel=^G,
16029	blink=\E[5m, bold=\E[1m, cbt=\E[1Z, civis=\E[>5h,
16030	clear=\E[2J\E[H, cnorm=\E[>5l, cr=^M,
16031	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
16032	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
16033	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
16034	dch=\E[%p1%dP, dch1=\E[1P, dim=\E[2m, dl=\E[%p1%dM,
16035	dl1=\E[1M, dsl=\E[>1l, ed=\E[0J, el=\E[0K, el1=\E[1K,
16036	fsl=\E[u, home=\E[H, ht=^I, hts=\EH, il=\E[%p1%dL, il1=\E[1L,
16037	ind=^J, is2=\E<\E[>1;3;5;6;7l\E[0m\E[2J, ka1=\EOw,
16038	ka3=\EOu, kb2=\EOy, kbs=^H, kc1=\EOq, kc3=\EOs, kcub1=\E[D,
16039	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, ked=\E[J, kf1=\EOS,
16040	kf2=\EOT, kf3=\EOU, kf4=\EOV, kf5=\EOW, kf6=\EOP, kf7=\EOQ,
16041	kf8=\EOR, kf9=\EOX, khlp=\E[~, khome=\E[H, ll=\E[24;1H,
16042	mc0=\E[?19h\E[i, mc4=\E[4i, mc5=\E[5i, rc=\E[u, rev=\E[7m,
16043	rmacs=\E(B, rmir=\E[4l, rmkx=\E[>7l, rmso=\E[0m,
16044	rmul=\E[0m, rs2=\E<\Ec\0, sc=\E[s, sgr0=\E[0m, smacs=\E(0,
16045	smir=\E[4h, smkx=\E[>7h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
16046	tsl=\E[s\E[>1h\E[25;%i%p1%dH,
16047
16048# From: Brad Brahms <Brahms@USC-ECLC>
16049z100|h100|z110|z-100|h-100|heath/zenith z-100 pc with color monitor,
16050	cnorm=\Ey4\Em70, cvvis=\Ex4\Em71, use=z100bw,
16051# (z100bw: removed obsolete ":kn#10:", added empty <acsc> -- esr)
16052z100bw|h100bw|z110bw|z-100bw|h-100bw|heath/zenith z-100 pc,
16053	OTbs, OTpt, mir, msgr,
16054	OTkn#10, cols#80, it#8, lines#24,
16055	acsc=, clear=\EE$<5*/>, cnorm=\Ey4, cub1=^H, cud1=\EB,
16056	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<1*/>,
16057	cuu1=\EA, cvvis=\Ex4, dch1=\EN$<1*/>, dl1=\EM$<5*/>,
16058	ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL$<5*/>, kbs=^H,
16059	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\EJ, kf1=\ES,
16060	kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER,
16061	kf9=\EOI, khome=\EH, ri=\EI, rmacs=\EG, rmir=\EO, rmso=\Eq,
16062	smacs=\EF, smir=\E@, smso=\Ep,
16063p19|h19-b with il1/dl1,
16064	dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
16065# From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
16066# (ztx: removed duplicate :sr: -- esr)
16067ztx|ztx11|zt-1|htx11|ztx-1-a|ztx-10 or 11,
16068	OTbs, am, eslok, hs,
16069	cols#80, it#8, lines#24,
16070	clear=\EE, cub1=^H, cud1=^J, cuf1=\EC,
16071	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
16072	dsl=\Ey1, ed=\EJ, el=\EK, fsl=\Ek\Ey5, home=\EH, ht=^I,
16073	il1=\EL, is2=\Ej\EH\Eq\Ek\Ev\Ey1\Ey5\EG\Ey8\Ey9\Ey>,
16074	kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kf0=\ES,
16075	kf1=\EB, kf2=\EU, kf3=\EV, kf4=\EW, kf5=\EP, kf6=\EQ, kf7=\ER,
16076	ri=\EI, rmso=\Eq, rmul=\Eq, smso=\Es5, smul=\Es2,
16077	tsl=\Ej\Ex5\Ex1\EY8%+ \Eo,
16078
16079#### IMS International (ims)
16080#
16081# There was a company called IMS International located in Carson City,
16082# Nevada, that flourished from the mid-70s to mid-80s.  They made S-100
16083# bus/Z80 hardware and a line of terminals called Ultimas.
16084#
16085
16086# From: Erik Fair <fair@ucbarpa.berkeley.edu>  Sun Oct 27 07:21:05 1985
16087ims950-b|bare ims950 no init string,
16088	is2@, use=ims950,
16089# (ims950: removed obsolete ":ko@:" -- esr)
16090ims950|ims televideo 950 emulation,
16091	xenl@,
16092	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
16093	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950,
16094# (ims950-rv: removed obsolete ":ko@:" -- esr)
16095ims950-rv|ims tvi950 rev video,
16096	xenl@,
16097	flash@, kbs@, kcub1@, kcud1@, kcuf1@, kcuu1@, kf0@, kf1@, kf2@, kf3@,
16098	kf4@, kf5@, kf6@, kf7@, kf8@, kf9@, khome@, use=tvi950-rv,
16099ims-ansi|ultima2|ultimaII|IMS Ultima II,
16100	OTbs, am,
16101	cols#80, it#8, lines#24,
16102	clear=\E[H\E[2J, cub1=^H, cud1=\ED,
16103	cup=\E[%i%p1%2d;%p2%2dH, cuu1=\EM, ed=\E[0J, el=\E[0K,
16104	ht=^I, if=/usr/share/tabset/vt100,
16105	is2=\E[m\E[>14l\E[?1;?5;20l\E>\E[1m\r, kcub1=\E[D,
16106	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[H, ri=\EM,
16107	rmso=\E[m\E[1m, rmul=\E[m\E[1m, sgr0=\E[m, smso=\E[7m,
16108	smul=\E[4m,
16109
16110#### Intertec Data Systems
16111#
16112# I think this company is long dead as of 1995.  They made an early CP/M
16113# micro called the "Intertec Superbrain" that was moderately popular,
16114# then sank out of sight.
16115#
16116
16117superbrain|intertec superbrain,
16118	OTbs, am, bw,
16119	cols#80, lines#24,
16120	OTbc=^U, bel=^G, clear=\014$<5*>, cr=^M, cub1=^H, cud1=^J,
16121	cuf1=^F, cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<20>, cuu1=^K,
16122	ed=\E~k<10*>, el=\E~K$<15>, ht=^I, ind=^J, kcub1=^U,
16123	kcud1=^J, kcuf1=^F, kcuu1=^K, rmcup=^L, smcup=^L,
16124# (intertube: a Gould entry via BRL asserted smul=\E0@$<200/>,
16125# rmul=\E0A$<200/>; my guess is the highlight letter is bit-coded like an ADM,
16126# and the reverse is actually true.  Try it. -- esr)
16127intertube|intertec|Intertec InterTube,
16128	OTbs, am,
16129	cols#80, lines#25,
16130	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^F,
16131	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<50>, cuu1=^Z, home=^A,
16132	ind=^J, rmso=\E0@, smso=\E0P,
16133# The intertube 2 has the "full duplex" problem like the tek 4025: if you
16134# are typing and a command comes in, the keystrokes you type get interspersed
16135# with the command and it messes up
16136intertube2|intertec data systems intertube 2,
16137	OTbs,
16138	cup=\016%p1%c\020%p2%{10}%/%{16}%*%p2%{10}%m%+%c,
16139	el=\EK, hpa=\020%p1%{10}%/%{16}%*%p1%{10}%m%+%c,
16140	ll=^K^X\r, vpa=\013%p1%c, use=intertube,
16141
16142#### Ithaca Intersystems
16143#
16144# This company made S100-bus personal computers long ago in the pre-IBM-PC
16145# past.  They used to be reachable at:
16146#
16147#	Ithaca Intersystems
16148#	1650 Hanshaw Road
16149#	Ithaca, New York 14850
16150#
16151# However, the outfit went bankrupt years ago.
16152#
16153
16154# The Graphos III was a color graphics terminal from Ithaca Intersystems.
16155# These entries were written (originally in termcap syntax) by Brian Yandell
16156# <yandell@stat.wisc.edu> and Mike Meyer <mikem@stat.wisc.edu> at the
16157# University of Wisconsin.
16158
16159# (graphos: removed obsolete and syntactically incorrect :kn=4:,
16160# removed <if=/usr/share/tabset/init.graphos> and
16161# <rf=/usr/share/tabset/init.graphos> no such file & no <hts> -- esr)
16162graphos|graphos III,
16163	am, mir,
16164	cols#80, it#8, lines#24,
16165	clear=\E[H\E[2J, cnorm=\Ez56;2;0;0z\Ez73z\Ez4;1;1z,
16166	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=\E[B,
16167	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16168	cuu=\E[%p1%dA, cuu1=\E[A,
16169	cvvis=\Ez4;2;1z\Ez56;2;80;24z, dch1=\E[P, dl=\E[%p1%dM,
16170	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, il=\E[%p1%dL,
16171	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16172	kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
16173	kf4=\EOS, khome=\E[H, nel=^M\ED, rc=\E8, ri=\EM, rmdc=\E[4l,
16174	rmir=\E[4l, rmso=\E[m, sc=\E7, sgr0=\E[m, smdc=\E[4h,
16175	smir=\E[4h, smso=\E[7m,
16176graphos-30|graphos III with 30 lines,
16177	lines#30,
16178	cvvis=\Ez4;2;1z\Ez56;2;80;30z, use=graphos,
16179
16180#### Modgraph
16181#
16182# These people used to be reachable at:
16183#
16184#	Modgraph, Inc
16185#	1393 Main Street,
16186#	Waltham, MA 02154
16187#	Vox: (617)-890-5796.
16188#
16189# However, if you call that number today you'll get an insurance company.
16190# I have mail from "Michael Berman, V.P. Sales, Modgraph" dated
16191# 26 Feb 1997 that says:
16192#
16193# Modgraph GX-1000, replaced by GX-2000.  Both are out of production, have been
16194# for ~7 years.  Modgraph still in business.  Products are rugged laptop and
16195# portable PC's and specialized CRT and LCD monitors (rugged, rack-mount
16196# panel-mount etc).  I can be emailed at sonfour@aol.com
16197#
16198# Peter D. Smith <pdsmith@nbbn.com> notes that his modgraph manual was
16199# dated 1984.  According to the manual, it featured Tek 4010/4014
16200# graphics and DEC VT100/VT52 + ADM-3A emulation with a VT220-style keyboard.
16201#
16202
16203modgraph|mod24|modgraph terminal emulating vt100,
16204	xenl@,
16205	cols#80, lines#24,
16206	cvvis=\E\^9;0s\E\^7;1s,
16207	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,
16208	rf@, ri=\EM\E[K$<5/>, use=vt100,
16209# The GX-1000 manual is dated 1984.  This looks rather like a VT-52.
16210modgraph2|modgraph gx-1000 80x24 with keypad not enabled,
16211	am, da, db,
16212	cols#80, it#8, lines#24,
16213	clear=\EH\EJ$<50/>, cub1=^H, cuf1=\EC$<2/>,
16214	cup=\EY%p1%{32}%+%c%p2%{32}%+%c$<5/>, cuu1=\EA$<2/>,
16215	ed=\EJ$<50/>, el=\EK$<3/>, ht=^I,
16216	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,
16217	ri=\EI$<5/>,
16218#
16219# Modgraph from Nancy L. Cider <nancyc@brl-tbd>
16220# BUG NOTE from Barbara E. Ringers <barb@brl-tbd>:
16221# If we set TERM=vt100, and set the Modgraph screen to 24 lines, setting a
16222# mark and using delete-to-killbuffer work correctly.  However, we would
16223# like normal mode of operation to be using a Modgraph with 48 line setting.
16224# If we set TERM=mod (which is a valid entry in termcap with 48 lines)
16225# the setting mark and delete-to-killbuffer results in the deletion of only
16226# the line the mark is set on.
16227# We've discovered that the delete-to-killbuffer works correctly
16228# with TERM=mod and screen set to 80x48 but it's not obvious.  Only
16229# the first line disappears but a ctrl-l shows that it did work
16230# correctly.
16231modgraph48|mod|Modgraph w/48 lines,
16232	OTbs, OTpt, am, xenl,
16233	cols#80, it#8, lines#48, vt#3,
16234	OTnl=^J, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[;H\E[2J,
16235	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=^J, cuf1=\E[C,
16236	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, ed=\E[J, el=\E[K,
16237	flash=\E[?5h\E[0q\E[1;2q\E[?5l\E[0q\E[4;3q,
16238	home=\E[H, ht=^I, is2=\E<\E[1;48r\E[0q\E[3;4q\E=\E[?1h,
16239	kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
16240	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, rc=\E8, rev=\E[7m,
16241	ri=\EM, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16242	rs1=\E=\E[0q\E>, sc=\E7, sgr0=\E[m, smkx=\E[?1h\E=,
16243	smso=\E[7m, smul=\E[4m,
16244
16245#### Morrow Designs
16246#
16247# This was George Morrow's company.  They started in the late 1970s making
16248# S100-bus machines.  They used to be reachable at:
16249#
16250#        Morrow
16251#        600 McCormick St.
16252#        San Leandro, CA 94577
16253#
16254# but they're long gone now (1995).
16255#
16256
16257# The mt70 terminal was shipped with the Morrow MD-3 microcomputer.
16258# Jeff's specimen was dated June 1984.
16259# From: Jeff Wieland <wieland@acn.purdue.edu> 24 Feb 1995
16260mt70|mt-70|Morrow MD-70; native Morrow mode,
16261	am, mir, msgr, xon,
16262	cols#80, it#8, lines#24,
16263	acsc=+z\,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI, bel=^G,
16264	cbt=\EI, civis=\E"0, clear=^Z, cnorm=\E"2, cr=^M, cub1=^H,
16265	cud1=^J, cuf1=^L, cup=\E=%p1%{32}%+%c%p2%{32}%+%c$<1>,
16266	cuu1=^K, dch1=\EW, dim=\EG2, dl1=\ER, ed=\EY, el=\ET$<10>,
16267	flash=\EK1$<200>\EK0, home=^^, ht=^I, ich1=\EQ, il1=\EE,
16268	ind=^J, invis@, is1=\E"2\EG0\E], kbs=^H, kcbt=^A^Z\r,
16269	kclr=^An\r, kcub1=^AL\r, kcud1=^AK\r, kcuf1=^AM\r,
16270	kcuu1=^AJ\r, kdch1=\177, kf1=^A@\r, kf10=^AI\r, kf11=^A`\r,
16271	kf12=^Aa\r, kf13=^Ab\r, kf14=^Ac\r, kf15=^Ad\r, kf16=^Ae\r,
16272	kf17=^Af\r, kf18=^Ag\r, kf19=^Ah\r, kf2=^AA\r, kf20=^Ai\r,
16273	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
16274	kf8=^AG\r, kf9=^AH\r, khlp=^AO\r, khome=^AN\r, nel=^_,
16275	rmacs=\E%%, rmcup=, smacs=\E$, smcup=\E"2\EG0\E],
16276	smul=\EG1, tbc=\E0, use=adm+sgr,
16277
16278#### Motorola
16279#
16280
16281# Motorola EXORterm 155	from {decvax, ihnp4}!philabs!sbcs!megad!seth via BRL
16282# (Seth H Zirin)
16283ex155|Motorola Exorterm 155,
16284	OTbs, am, bw,
16285	OTkn#5, OTug#1, cols#80, lines#24,
16286	cbt=\E[, clear=\EX, cud1=\EB, cuf1=\ED,
16287	cup=\EE%p1%{32}%+%c%p2%{32}%+%c, ed=\ET, el=\EU,
16288	home=\E@, ht=\EZ, kbs=^H, kcbt=\E[, kclr=\EX, kcub1=^H,
16289	kcud1=^J, kcuf1=^L, kcuu1=^K, ked=\ET, kel=\EU, khome=\E@,
16290	rmso=\Ec\ED, rmul=\Eg\ED, smso=\Eb\ED, smul=\Ef\ED,
16291
16292#### Omron
16293#
16294# This company is still around in 1995, manufacturing point-of-sale systems.
16295
16296omron|Omron 8025AG,
16297	OTbs, am, da, db,
16298	cols#80, lines#24,
16299	bel=^G, clear=\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC, cuu1=\EA,
16300	cvvis=\EN, dch1=\EP, dl1=\EM, ed=\ER, el=\EK, home=\EH,
16301	il1=\EL, ind=\ES, ri=\ET, rmso=\E4, smso=\Ef,
16302
16303#### Ramtek
16304#
16305# Ramtek was a vendor of high-end graphics terminals around 1979-1983; they
16306# were competition for things like the Tektronics 4025.
16307#
16308
16309# Ramtek 6221 from BRL, probably by Doug Gwyn
16310# The following SET-UP modes are assumed for normal operation:
16311#	UNDERLINE_CURSOR	ANSI_MODE	AUTO_XON/XOFF_ON
16312#	NEWLINE_OFF		80_COLUMNS
16313# Other SET-UP modes may be set for operator convenience or communication
16314# requirements; I recommend
16315#	SMOOTH_SCROLL	AUTO_REPEAT_ON	3_#_SHIFTED	WRAP_AROUND_ON
16316# Hardware tabs are assumed to be every 8 columns; they can be set up by the
16317# "reset", "tset", or "tabs" utilities (use rt6221-w, 160 columns, for this).
16318# Note that the Control-E key is useless on this brain-damaged terminal.  No
16319# delays are specified; use "stty ixon -ixany" to enable DC3/DC1 flow control!
16320rt6221|Ramtek 6221 80x24,
16321	OTbs, OTpt, msgr, xon,
16322	OTkn#4, cols#80, it#8, lines#24, vt#3,
16323	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[>5l,
16324	clear=\E[1;1H\E[J, cnorm=\E[>5h\E[>9h, cr=^M,
16325	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
16326	cud=\E[%p1%dB, cud1=^K, cuf=\E[%p1%dC, cuf1=\E[C,
16327	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
16328	cvvis=\E[>7h\E[>9l, ed=\E[J, el=\E[K, home=\E[1;1H, ht=^I,
16329	hts=\EH, ind=^J, is2=\E)0, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16330	kcuf1=\E[C, kcuu1=\E[A, kf0=\EOP, kf1=\EOQ, kf2=\EOR,
16331	kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3, lf3=PF4, ll=\E[24;1H,
16332	nel=\EE, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmkx=\E>,
16333	rmso=\E[m, rmul=\E[m,
16334	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>,
16335	sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E=, smso=\E[7m,
16336	smul=\E[4m, tbc=\E[3g,
16337# [TO DO: Check out: short forms of ho/cl and ll; reset (\Ec)].
16338rt6221-w|Ramtek 6221 160x48,
16339	cols#160, lines#48,
16340	ll=\E[48;1H, use=rt6221,
16341
16342#### RCA
16343#
16344
16345# RCA VP3301 or VP3501
16346rca|rca vp3301/vp3501,
16347	OTbs,
16348	cols#40, lines#24,
16349	clear=^L, cuf1=^U, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16350	cuu1=^K, home=^Z, rmso=\E\ES0, smso=\E\ES1,
16351
16352
16353#### Selanar
16354#
16355
16356# Selanar HiREZ-100 from BRL, probably by Doug Gwyn
16357# The following SET-UP modes are assumed for normal operation:
16358#	SET_DEFAULT_TABS	48_LINES		80_COLUMNS
16359#	ONLINE			ANSI			CURSOR_VISIBLE
16360#	VT102_AUTO_WRAP_ON	VT102_NEWLINE_OFF	VT102_MONITOR_MODE_OFF
16361#	LOCAL_ECHO_OFF		US_CHAR_SET		WPS_TERMINAL_DISABLED
16362#	CPU_AUTO_XON/XOFF_ENABLED			PRINT_FULL_SCREEN
16363# For use with graphics software, all graphics modes should be set to factory
16364# default.  Other SET-UP modes may be set for operator convenience or
16365# communication requirements.  No delays are specified; use "stty ixon -ixany"
16366# to enable DC3/DC1 flow control!
16367# I commented out the scrolling capabilities since they are too slow.
16368hirez100|Selanar HiREZ-100,
16369	OTbs, OTpt, mir, msgr, xon,
16370	OTkn#4, cols#80, it#8, lines#48, vt#3,
16371	acsc=, bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
16372	cr=^M, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16373	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16374	cuu=\E[%p1%dA, cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P,
16375	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
16376	hts=\EH, il=\E[%p1%dL, il1=\E[L, is2=\E<\E)0, kbs=^H,
16377	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf0=\EOP,
16378	kf1=\EOQ, kf2=\EOR, kf3=\EOS, lf0=PF1, lf1=PF2, lf2=PF3,
16379	lf3=PF4, ll=\E[48H, mc0=\E[i, mc4=\E[4i\E[?4i,
16380	mc5=\E[?5i\E[5i, nel=\EE, rc=\E8, rev=\E[7m, rmacs=^O,
16381	rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
16382	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>,
16383	sc=\E7, sgr0=\E[m, smacs=^N, smkx=\E[?1h\E=, smso=\E[7m,
16384	smul=\E[4m, tbc=\E[3g,
16385hirez100-w|Selanar HiREZ-100 in 132-column mode,
16386	cols#132, use=hirez100,
16387
16388#### Signetics
16389#
16390
16391# From University of Wisconsin
16392vsc|Signetics Vsc Video driver by RMC,
16393	am, msgr,
16394	cols#80, it#8, lines#26,
16395	clear=\E[;H\E[2J$<50/>, cr=^M, cub1=^H, cud1=^J, cuf1=\E[C,
16396	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, el=\E[K, home=\E[H,
16397	ht=^I, ind=^J, kbs=^H, kcub1=^H, kcud1=^J, nel=^M^J, rev=^_\s,
16398	rmso=^_!, rmul=^_#, sgr0=^_!, smso=^_\s, smul=^_",
16399
16400#### Soroc
16401#
16402# Alan Frisbie <frisbie@flying-disk.com> writes:
16403#
16404# As you may recall, the Soroc logo consisted of their name,
16405# with the letter "S" superimposed over an odd design.   This
16406# consisted of a circle with a slightly smaller 15 degree (approx.)
16407# wedge with rounded corners inside it.   The color was sort of
16408# a metallic gold/yellow.
16409#
16410# If I had been more of a beer drinker it might have been obvious
16411# to me, but it took a clue from their service department to make
16412# me exclaim, "Of course!"   The circular object was the top of
16413# a beer can (the old removable pop-top style) and "Soroc" was an
16414# anagram for "Coors".
16415#
16416# I can just imagine the founders of the company sitting around
16417# one evening, tossing back a few and trying to decide what to
16418# call their new company and what to use for a logo.
16419#
16420
16421# (soroc120: removed obsolete ":ma=^K^P^R^L^L :" -- esr)
16422soroc120|iq120|soroc|soroc iq120,
16423	clear=\E*$<2>, cud1=^J, ed=\EY, el=\ET, kcub1=^H, kcud1=^J,
16424	kcuf1=^L, kcuu1=^K, use=adm3a,
16425soroc140|iq140|soroc iq140,
16426	OTbs, am, mir,
16427	cols#80, lines#24,
16428	bel=^G, cbt=\EI, clear=\E+, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
16429	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\Ew,
16430	dl1=\Er$<.7*>, ed=\Ey, el=\Et, home=^^, il1=\Ee$<1*>, ind=^J,
16431	kbs=^H, kcuf1=^L, kcuu1=^K, kf0=^A0\r, kf1=^A@\r, kf2=^AA\r,
16432	kf3=^AB\r, kf4=^AC\r, kf5=^AD\r, kf6=^AE\r, kf7=^AF\r,
16433	kf8=^AG\r, kf9=^AH\r, khome=^^, ll=^^^K, rmir=\E8,
16434	rmso=\E\177, rmul=\E^A, smir=\E9, smso=\E\177, smul=\E^A,
16435
16436#### Southwest Technical Products
16437#
16438# These guys made an early personal micro called the M6800.
16439# The ct82 was probably its console terminal.
16440#
16441
16442# (swtp: removed obsolete ":bc=^D:" -- esr)
16443swtp|ct82|southwest technical products ct82,
16444	am,
16445	cols#82, lines#20,
16446	bel=^G, clear=^L, cr=^M, cub1=^D, cud1=^J, cuf1=^S,
16447	cup=\013%p2%c%p1%c, cuu1=^A, dch1=^\^H, dl1=^Z, ed=^V, el=^F,
16448	home=^P, ich1=^\^X, il1=^\^Y, ind=^N,
16449	is2=\034\022\036\023\036\004\035\027\011\023\036\035\036\017\035\027\022\011,
16450	ll=^C, ri=^O, rmso=^^^F, smso=^^^V,
16451
16452#### Synertek
16453#
16454# Bob Manson <manson@pattyr.acs.ohio-state.edu> writes (28 Apr 1995):
16455#
16456# Synertek used to make ICs, various 6502-based single-board process
16457# control and hobbyist computers, and assorted peripherals including a
16458# series of small inexpensive terminals (I think they were one of the
16459# first to have a "terminal-on-a-keyboard", where the terminal itself
16460# was only slightly larger than the keyboard).
16461#
16462# They apparently had a KTM-1 model, which I've never seen. The KTM-2/40
16463# was a 40x24 terminal that could connect to a standard TV through a
16464# video modulator.  The KTM-2/80 was the 80-column version (the 2/40
16465# could be upgraded to the 2/80 by adding 2 2114 SRAMs and a new ROM).
16466# I have a KTM-2/80 still in working order.  The KTM-2s had fully
16467# socketed parts, used 2 6507s, a 6532 as keyboard scanner, a program
16468# ROM and 2 ROMs as character generators. They were incredibly simple,
16469# and I've never had any problems with mine (witness the fact that mine
16470# was made in 1981 and is still working great... I've blown the video
16471# output transistor a couple of times, but it's a 2N2222 :-)
16472#
16473# The KTM-3 (which is what is listed in the terminfo file) was their
16474# attempt at putting a KTM-2 in a box (and some models came with a
16475# CRT). It wasn't much different from the KTM-2 hardware-wise, but the
16476# control and escape sequences are very different. The KTM-3 was always
16477# real broken, at least according to the folks I've talked to about it.
16478#
16479# The padding in the entry is probably off--these terminals were very
16480# slow (it takes like 100ms for the KTM-2 to clear the screen...) And
16481# anyone with any sanity replaced the ROMs with something that provided
16482# a reasonable subset of VT100 functionality, since the usual ROMs were
16483# obviously very primitive... oh, you could get an upgraded ROM from
16484# Synertek for some incredible amount of money, but what hacker with an
16485# EPROM burner would do that? :)
16486#
16487# Sorry I don't have any contact info; I believe they were located in
16488# Sunnyvale, and I'm fairly sure they are still manufacturing ICs
16489# (they've gone to ASICs and FPGAs), but I doubt they're in the computer
16490# business these days.
16491#
16492
16493# Tested, seems to work fine with vi.
16494synertek|ktm|synertek380|synertek ktm 3/80 tubeless terminal,
16495	am,
16496	cols#80, lines#24,
16497	clear=^Z, cub1=^H, cuf1=^L,
16498	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
16499
16500#### Tab Office Products
16501#
16502#	TAB Products Co. - Palo Alto, California
16503#	Electronic Office Products,
16504#	1451 California Avenue 94304
16505#
16506# I think they're out of business.
16507#
16508
16509# The tab 132 uses xon/xoff, so no padding needed.
16510# <smkx>/<rmkx> have nothing to do with arrow keys.
16511# <is2> sets 80 col mode, normal video, autowrap on (for <am>).
16512# Seems to be no way to get rid of status line.
16513# The manual for this puppy was dated June 1981.  It claims to be VT52-
16514# compatible but looks more vt100-like.
16515tab132|tab|tab132-15|tab 132/15,
16516	da, db,
16517	OTdN@, cols#80, lines#24, lm#96,
16518	cud1=^J, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M,
16519	il1=\E[L, is2=\E[?7h\E[?3l\E[?5l, kcub1=\E[D, kcud1=\E[B,
16520	kcuu1=\E[A, rmir=\E[4l, rmkx@, smir=\E[4h, smkx@, use=vt100,
16521tab132-w|tab132 in wide mode,
16522	cols#132,
16523	is2=\E[?7h\E[?3h\E[?5l, use=tab132,
16524tab132-rv|tab132 in reverse-video mode,
16525	is2=\E[?7h\E[?3l\E[?5h, use=tab132,
16526tab132-w-rv|tab132 in reverse-video/wide mode,
16527	is2=\E[?7h\E[?3h\E[?5h, use=tab132-w,
16528
16529
16530#### Teleray
16531#
16532#	Research Incorporated
16533#	6425 Flying Cloud Drive
16534#	Eden Prairie, MN 55344
16535#	Vox: (612)-941-3300
16536#
16537# The Teleray terminals were all discontinued in 1992-93.  RI still services
16538# and repairs these beasts, but no longer manufactures them.  The Teleray
16539# people believe that all the types listed below are very rare now (1995).
16540# There was a newer line of Telerays (Model 7, Model 20, Model 30, and
16541# Model 100) that were ANSI-compatible.
16542#
16543# Note two things called "teleray".  Reorder should move the common one
16544# to the front if you have either.  A dumb teleray with the cursor stuck
16545# on the bottom and no obvious model number is probably a 3700.
16546#
16547
16548t3700|dumb teleray 3700,
16549	OTbs,
16550	cols#80, lines#24,
16551	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, ind=^J,
16552t3800|teleray 3800 series,
16553	OTbs,
16554	cols#80, it#8, lines#24,
16555	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16556	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=\EJ, el=\EK,
16557	home=\EH, ht=^I, ind=^J, ll=\EY7\s,
16558t1061|teleray|teleray 1061,
16559	OTbs, am, km, xhp, xt,
16560	cols#80, it#8, lines#24, xmc#1,
16561	bel=^G, clear=\014$<1>, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16562	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
16563	dl1=\EM$<2*>, ed=\EJ$<1>, el=\EK, home=\EH, ht=^I, hts=\EF,
16564	ich1=\EP, il1=\EL$<2*>, ind=^J, ip=$<0.4*>,
16565	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,
16566	kf1=^Z1, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5, kf6=^Z6, kf7=^Z7,
16567	kf8=^Z8, rmso=\ER@, rmul=\ER@, smso=\s\ERD, smul=\ERH,
16568	tbc=\EG,
16569t1061f|teleray 1061 with fast PROMs,
16570	dl1=\EM, il1=\EL, ip@, use=t1061,
16571# "Teleray Arpa Special", officially designated as
16572# "Teleray Arpa network model 10" with "Special feature 720".
16573# This is the new (1981) fast microcode updating the older "arpa" proms
16574# (which gave meta-key and programmable-fxn keys).  720 is much much faster,
16575# converts the keypad to programmable function keys, and has other goodies.
16576# Standout mode is still broken (magic cookie, etc) so is suppressed as no
16577# programs handle such lossage properly.
16578# Note: this is NOT the old termcap's "t1061f with fast proms."
16579# From: J. Lepreau <lepreau@utah-cs> Tue Feb  1 06:39:37 1983, Univ of Utah
16580# (t10: removed overridden ":so@:se@:us@:ue@:" -- esr)
16581t10|teleray 10 special,
16582	OTbs, km, xhp, xt,
16583	cols#80, it#8, lines#24, xmc#2,
16584	clear=\Ej$<30/>, cub1=^H, cuf1=\EC,
16585	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EQ,
16586	dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EP, il1=\EL,
16587	ind=\Eq, pad=\0, ri=\Ep, rmso=\ER@, rmul=\ER@, smso=\ERD,
16588	smul=\ERH,
16589# teleray 16 - map the arrow keys for vi/rogue, shifted to up/down page, and
16590# back/forth words. Put the function keys (f1-f10) where they can be
16591# found, and turn off the other magic keys along the top row, except
16592# for line/local. Do the magic appropriate to make the page shifts work.
16593# Also toggle ^S/^Q for those of us who use Emacs.
16594t16|teleray 16,
16595	am, da, db, mir, xhp, xt,
16596	cols#80, lines#24,
16597	bel=^G, clear=\E[H\E[2J, cr=^M, cub1=^H, cud1=\E[B,
16598	cuf1=\E[C, cup=%i\E[%p1%d;%p2%df, cuu1=\E[A, dch1=\E[P,
16599	dl1=\E[M, ed=\E[0J, el=\E[0K, home=\E[H, ht=^I, il1=\E[L,
16600	ind=^J, kf1=^Z1, kf10=^Z0, kf2=^Z2, kf3=^Z3, kf4=^Z4, kf5=^Z5,
16601	kf6=^Z6, kf7=^Z7, kf8=^Z8, kf9=^Z9, ri=\E[T,
16602	rmcup=\E[V\E[24;1f\E[?38h, rmir=\E[4l, rmso=\E[m,
16603	rmul=\E[m, sgr0=\E[m, smcup=\E[U\E[?38l, smir=\E[4h,
16604	smso=\E[7m, smul=\E[4m,
16605
16606#### Texas Instruments (ti)
16607#
16608
16609# The Silent 700 was so called because it was built around a quiet thermal
16610# printer.  It was portable, equipped with an acoustic coupler, and pretty
16611# neat for its day.
16612ti700|ti733|ti735|ti745|ti800|ti silent 700/733/735/745 or omni 800,
16613	OTbs, hc, os,
16614	cols#80,
16615	bel=^G, cr=\r$<162>, cub1=^H, cud1=^J, ind=^J,
16616
16617#
16618# Texas Instruments 916 VDT 7 bit control mode
16619#
16620ti916|ti916-220-7|Texas Instruments 916 VDT 8859/1 vt220 mode 7 bit CTRL,
16621	da, db, in, msgr,
16622	cbt=\E[Z, civis=\E[?25l, clear=\E[H\E[2J$<6>,
16623	cnorm=\E[?25h, cub=\E[%p1%dD, cud=\E[%p1%dB,
16624	cuf=\E[%p1%dC, cup=\E[%p1%i%p1%d;%p2%dH, cuu=\E[%p1%dA,
16625	cvvis=\E[?25h, dch=\E[%p1%dP$<250>, dch1=\E[P,
16626	dl=\E[%p1%dM, ech=\E[%p1%dX$<20>, ed=\E[J$<6>, el=\E[0K,
16627	el1=\E[1K, enacs=\E(B\E)0, ff=^L, flash=\E[?5h\E[?5l$<6>,
16628	hpa=\E[%p1%{1}%+%dG, hts=\E[0W, ich=\E[%p1%d@$<250>,
16629	il=\E[%p1%dL$<36>, ip=$<10>, is2=\E[1;24r\E[24;1H,
16630	kcmd=\E[29~, kdch1=\E[P, kent=^J, kf1=\E[17~, kf10=\E[28~,
16631	kf11=\E[29~, kf12=\E[31~, kf2=\E[18~, kf3=\E[19~,
16632	kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
16633	kf9=\E[26~, khome=\E[H, kich1=\E[@, knp=\E[S, kpp=\E[T,
16634	kprt=^X, prot=\E&, rmacs=\017$<2>, rs2=\E[!p,
16635	smacs=\016$<2>, tbc=\E[3g, vpa=\E[%p1%{1}%+%dd,
16636	use=vt220,
16637#
16638# Texas Instruments 916 VDT 8 bit control mode
16639#
16640ti916-8|ti916-220-8|Texas Instruments 916 VDT 8859/1 8 vt220 mode bit CTRL,
16641	kcmd=\23329~, kcub1=\233D, kcud1=\233B, kcuf1=\233C,
16642	kcuu1=\233A, kdch1=\233P, kent=^J, kf1=\23317~,
16643	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf2=\23318~,
16644	kf3=\23319~, kf4=\23320~, kf5=\23321~, kf6=\23323~,
16645	kf7=\23324~, kf8=\23325~, kf9=\23326~, khome=\233H,
16646	kich1=\233@, knp=\233S, kpp=\233T, kprt=^X, use=ti916,
16647#
16648# Texas Instruments 916 VDT 8859/1 7 bit control 132 column mode
16649#
16650ti916-132|Texas Instruments 916 VDT vt220 132 column,
16651	cols#132, use=ti916,
16652#
16653# Texas Instruments 916 VDT 8859/1 8 bit control 132 column mode
16654#
16655ti916-8-132|Texas Instruments 916 VDT 8-bit vt220 132 column,
16656	cols#132, use=ti916-8,
16657ti924|Texas Instruments 924 VDT 8859/1 7 bit CTRL,
16658	OTbs, am, xon,
16659	cols#80, it#8, lines#24,
16660	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
16661	clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
16662	csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
16663	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
16664	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16665	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16666	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[P, kf1=\EOP, kf2=\EOQ,
16667	kf3=\EOR, kf4=\EOS, kf5=\E[16~, kf6=\E[17~, kf7=\E[18~,
16668	kf8=\E[19~, kf9=\E[20~, kich1=\E[@, rc=\E8, rev=\E[7m,
16669	ri=\EM, rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
16670	smul=\E[4m, tbc=\E[3g,
16671ti924-8|Texas Instruments 924 VDT 8859/1 8 bit CTRL,
16672	am, xon,
16673	cols#80, it#8, lines#24,
16674	bel=^G, blink=\E[5m, bold=\E[1m, civis=\E[?25l,
16675	clear=\E[2J\E[H, cnorm=\E[?25h, cr=^M,
16676	csr=%i\E[%p1%d;%p2%dr, cub1=\E[D, cud1=\E[B, cuf1=\E[C,
16677	cup=%i\E[%p1%d;%p2%dH, cuu1=\E[A, cvvis=\E[?31h,
16678	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, hts=\EH,
16679	il1=\E[L, ind=\ED, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16680	kcuf1=\E[C, kcuu1=\E[A, kdch1=P$<\233>, kf1=P$<\217>,
16681	kf2=Q$<\217>, kf3=R$<\217>, kf4=S$<\217>, kf5=~$<\23316>,
16682	kf6=~$<\23317>, kf7=~$<\23318>, kf8=~$<\23319>,
16683	kf9=~$<\23320>, kich1=@$<\233>, rc=\E8, rev=\E[7m, ri=\EM,
16684	rmso=\E[m, rmul=\E[m, sc=\E7, sgr0=\E[m, smso=\E[7m,
16685	smul=\E[4m, tbc=\E[3g,
16686ti924w|Texas Instruments 924 VDT 7 bit - 132 column mode,
16687	cols#132, use=ti924,
16688ti924-8w|Texas Instruments 924 VDT 8 bit - 132 column mode,
16689	cols#132, use=ti924-8,
16690ti931|Texas Instruments 931 VDT,
16691	OTbs, am, xon,
16692	cols#80, lines#24,
16693	bel=^G, blink=\E4P, clear=\EL, cnorm=\E4@, cr=^M, cub1=\ED,
16694	cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
16695	cuu1=\EA, dch1=\EQ, dl1=\EO, ed=\EJ, el=\EI, home=\EH,
16696	ich1=\ER\EP\EM, il1=\EN, ind=\Ea, invis=\E4H,
16697	is2=\EGB\E(@B@@\E), kcub1=\ED, kcud1=\EB, kcuf1=\EC,
16698	kcuu1=\EA, kdch1=\EQ, kdl1=\EO, kf1=\Ei1, kf2=\Ei2, kf3=\Ei3,
16699	kf4=\Ei4, kf5=\Ei5, kf6=\Ei6, kf7=\Ei7, kf8=\Ei8, kf9=\Ei9,
16700	kich1=\EP, kil1=\EN, rev=\E4B, ri=\Eb, rmso=\E4@, rmul=\E4@,
16701	sgr0=\E4@, smso=\E4A, smul=\E4D,
16702ti926|Texas Instruments 926 VDT 8859/1 7 bit CTRL,
16703	csr@, ind=\E[1S, ri=\E[1T, use=ti924,
16704# (ti926-8: I corrected this from the broken SCO entry -- esr)
16705ti926-8|Texas Instruments 926 VDT 8859/1 8 bit CTRL,
16706	csr@, ind=\2331S, ri=\2331T, use=ti924-8,
16707ti_ansi|basic entry for ti928,
16708	am, bce, eo, xenl, xon,
16709	colors#8, cols#80, it#8, lines#25, pairs#64,
16710	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, clear=\E[2J\E[H,
16711	cr=^M, csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B,
16712	cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P,
16713	dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I, ich1=\E[@,
16714	il1=\E[L, ind=\E[S, kbs=^H, kcub1=\E[D, kcud1=\E[B,
16715	kcuf1=\E[C, kcuu1=\E[A, kend=\E[F, kf0=\E[V, kf1=\E[M,
16716	kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S,
16717	kf8=\E[T, kf9=\E[U, khome=\E[H, knp=\E[G, kpp=\E[I,
16718	op=\E[37;40m, ri=\E[T, rmso=\E[m, rmul=\E[m,
16719	setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[m,
16720	smso=\E[7m, smul=\E[4m,
16721#
16722#       928 VDT 7 bit control mode
16723#
16724ti928|Texas Instruments 928 VDT 8859/1 7 bit CTRL,
16725	kdch1=\E[P, kend=\E_1\E\\, kent=\E[8~, kf1=\E[17~,
16726	kf10=\E[28~, kf11=\E[29~, kf12=\E[31~, kf13=\E[32~,
16727	kf15=\E[34~, kf2=\E[18~, kf3=\E[19~, kf4=\E[20~,
16728	kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~, kf9=\E[26~,
16729	kich1=\E[@, knp=\E[S, kpp=\E[T, kprt=\E[35~, use=ti_ansi,
16730#
16731#       928 VDT 8 bit control mode
16732#
16733ti928-8|Texas Instruments 928 VDT 8859/1 8 bit CTRL,
16734	kdch1=\233P, kend=\2371\234, kent=\2338~, kf1=\23317~,
16735	kf10=\23328~, kf11=\23329~, kf12=\23331~, kf13=\23332~,
16736	kf15=\23334~, kf2=\23318~, kf3=\23319~, kf4=\23320~,
16737	kf5=\23321~, kf6=\23323~, kf7=\23324~, kf8=\23325~,
16738	kf9=\23326~, khome=\233H, kich1=\233@, knp=\233S,
16739	kpp=\233T, kprt=\23335~, use=ti_ansi,
16740
16741#### Zentec (zen)
16742#
16743
16744# (zen30: removed obsolete :ma=^L ^R^L^K^P:.  This entry originally
16745# had just <smso>=\EG6 which I think means standout was supposed to be
16746# dim-reverse using ADM12-style attributes. ADM12 <smul>/<rmul> and
16747# <invis> might work-- esr)
16748zen30|z30|zentec 30,
16749	OTbs, am, mir, ul,
16750	cols#80, lines#24,
16751	bel=^G, clear=\E*, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
16752	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, dch1=\EW,
16753	dim=\EG2, dl1=\ER$<1.5*>, ed=\EY, el=\ET$<1.0*>, home=^^,
16754	il1=\EE$<1.5*>, ind=^J, rmir=\Er, rmul@, smir=\Eq, smso=\EG6,
16755	smul@, use=adm+sgr,
16756# (zen50: this had extension capabilities
16757#	:BS=^U:CL=^V:CR=^B:
16758# UK/DK/RK/LK/HM were someone's aliases for ku/kd/kl/kr/kh,
16759# which were also in the original entry -- esr)
16760# (zen50: removed obsolete ":ma=^Hh^Ll^Jj^Kk:" -- esr)
16761zen50|z50|zentec zephyr,
16762	OTbs, am,
16763	cols#80, lines#24, xmc#1,
16764	clear=\E+, cub1=^H, cup=\E=%p1%{32}%+%c%p2%{32}%+%c,
16765	cuu1=^K, dch1=\EW, dl1=\ER, ed=\EY, el=\ET, ich1=\EQ, il1=\EE,
16766	invis@, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K, khome=^^,
16767	rmul@, smul@, use=adm+sgr,
16768
16769# CCI 4574 (Office Power) from Will Martin <wmartin@BRL.ARPA> via BRL
16770cci|cci1|z8001|zen8001|CCI Custom Zentec 8001,
16771	OTbs, am, bw,
16772	cols#80, lines#24,
16773	blink=\EM", clear=\EH\EJ, cnorm=\EP,
16774	csr=\ER%p1%{32}%+%c%p2%{32}%+%c, cub1=^H, cud1=^J,
16775	cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA,
16776	cvvis=\EF\EQ\EM \ER 7, dim=\EM!, ed=\EJ, el=\EK, home=\EH,
16777	invis=\EM(, is2=\EM \EF\ET\EP\ER 7, kbs=^H, kcub1=\ED,
16778	kcud1=\EB, kcuf1=\EC, kcuu1=\EA, khome=\EH, mc4=^T, mc5=^R,
16779	rev=\EM$, ri=\EI, rmso=\EM\s, rmul=\EM\s, sgr0=\EM\s,
16780	smso=\EM$, smul=\EM0,
16781
16782######## OBSOLETE UNIX CONSOLES
16783#
16784
16785#### Apollo consoles
16786#
16787# Apollo got bought by Hewlett-Packard.  The Apollo workstations are
16788# labeled HP700s now.
16789#
16790
16791# From: Gary Darland <goodmanc@garnet.berkeley.edu>
16792apollo|apollo console,
16793	OTbs, am, mir,
16794	cols#88, lines#53,
16795	clear=^L, cub1=^H, cud1=\EB, cuf1=\EC,
16796	cup=\EM%p1%{32}%+%c%p2%d), cuu1=\EA, dch1=\EP, dl1=\EL,
16797	ed=\EJ, el=\EK, hpa=\EN%p1%d, il1=\EI, ind=\EE, ri=\ED,
16798	rmcup=\EX, rmir=\ER, rmso=\ET, rmul=\EV, smcup=\EW, smir=\EQ,
16799	smso=\ES, smul=\EU, vpa=\EO+\s,
16800
16801# We don't know whether or not the apollo guys replicated DEC's firmware bug
16802# in the VT132 that reversed <rmir>/<smir>.  To be on the safe side, disable
16803# both these capabilities.
16804apollo_15P|apollo 15 inch display,
16805	rmir@, smir@, use=vt132,
16806apollo_19L|apollo 19 inch display,
16807	rmir@, smir@, use=vt132,
16808apollo_color|apollo color display,
16809	rmir@, smir@, use=vt132,
16810
16811#### Convergent Technology
16812#
16813# Burroughs bought Convergent shortly before it merged with Univac.
16814# CTOS is (I believe) dead.  Probably the aws is too (this entry dates
16815# from 1991 or earlier).
16816#
16817
16818# Convergent AWS workstation from Gould/SEL UTX/32 via BRL
16819# (aws: removed unknown :dn=^K: -- esr)
16820aws|Convergent Technologies AWS workstation under UTX and Xenix,
16821	am,
16822	OTug#0, cols#80, lines#28, xmc#0,
16823	OTbc=^H, OTma=\016h\013j\001k\022l\002m, OTnl=^J, acsc=,
16824	clear=^L, cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A,
16825	dch1=\EDC, dl1=\EDL, ed=\EEF, el=\EEL, hpa=\EH%p1%c,
16826	ich1=\EIC, il1=\EIL, ind=\ESU, kbs=^H, kcub1=^N, kcud1=^K,
16827	kcuf1=^R, kcuu1=^A, ri=\ESD, rmacs=\EAAF, rmso=\EARF,
16828	rmul=\EAUF, smacs=\EAAN, smso=\EARN, smul=\EAUN,
16829	vpa=\EV%p1%c,
16830awsc|Convergent Technologies AWS workstation under CTOS,
16831	am,
16832	OTug#0, cols#80, lines#24, xmc#0,
16833	OTbc=^N, OTma=\016h\013j\001k\022l\002m, acsc=, clear=^L,
16834	cud1=^K, cuf1=^R, cup=\EC%p2%c%p1%c, cuu1=^A, ed=\EEF,
16835	el=\EEL, kbs=^H, kcub1=^N, kcud1=^K, kcuf1=^R, kcuu1=^A,
16836	rmacs=\EAAF, rmso=\EAA, rmul=\EAA, smacs=\EAAN, smso=\EAE,
16837	smul=\EAC,
16838
16839#### DEC consoles
16840#
16841
16842# The MicroVax console.  Tim Theisen <tim@cs.wisc.edu> writes:
16843# The digital uVax II's had a graphic display called a qdss.  It was
16844# supposed to be a high performance graphic accelerator, but it was
16845# late to market and barely appeared before faster dumb frame buffers
16846# appeared.  I have only used this display while running X11.  However,
16847# during bootup, it was in text mode, and probably had a terminal emulator
16848# within it.  And that is what your termcap entry is for.  In graphics
16849# mode the screen size is 1024x864 pixels.
16850qdss|qdcons|qdss glass tty,
16851	OTbs, am,
16852	cols#128, lines#57,
16853	clear=\032$<1/>, cub1=^H, cud1=^J, cuf1=^L,
16854	cup=\E=%p1%c%p2%c, cuu1=^K,
16855
16856#### Fortune Systems consoles
16857#
16858# Fortune made a line of 68K-based UNIX boxes that were pretty nifty
16859# in their day; I (esr) used one myself for a year or so around 1984.
16860# They had no graphics, though, and couldn't compete against Suns and
16861# the like.  R.I.P.
16862#
16863
16864# From: Robert Nathanson <c160-3bp@Coral> via tut   Wed Oct 5, 1983
16865# (This had extension capabilities
16866#	:rv=\EH:re=\EI:rg=0:GG=0:\
16867#	:CO=\E\\:WL=^Aa\r:WR=^Ab\r:CL=^Ac\r:CR=^Ad\r:DL=^Ae\r:RF=^Af\r:\
16868#	:RC=^Ag\r:CW=^Ah\r:NU=^Aj\r:EN=^Ak\r:HM=^Al:PL=^Am\r:\
16869#	:PU=^An\r:PD=^Ao\r:PR=^Ap\r:HP=^A@\r:RT=^Aq\r:TB=\r:CN=\177:MP=\E+F:
16870# It had both ":bs:" and ":bs=^H:"; I removed the latter.  Also, it had
16871# ":sg=0:" and ":ug=0:"; evidently the composer was trying (unnecessarily)
16872# to force both magic cookie glitches off.  Once upon a time, I
16873# used a Fortune myself, so I know the capabilities of the form ^A[a-z]\r are
16874# function keys; thus the "Al" value for HM was certainly an error.  I renamed
16875# EN/PD/PU/CO/CF/RT according to the XENIX/TC mappings, but not HM/DL/RF/RC.
16876# I think :rv: and :re: are start/end reverse video and :rg: is a nonexistent
16877# "reverse-video-glitch" capability; I have put :rv: and :re: in with standard
16878# names below.  I've removed obsolete ":nl=5^J:" as there is a :do: -- esr)
16879fos|fortune|Fortune system,
16880	OTbs, am, bw,
16881	cols#80, lines#25,
16882	acsc=j*k(l m"q&v%w#x-, bel=^G, blink=\EN, civis=\E],
16883	clear=\014$<20>, cnorm=\E\\, cr=^M, cub1=^H, cud1=\n$<3>,
16884	cup=\034C%p1%{32}%+%c%p2%{32}%+%c, cuu1=\013$<3>,
16885	cvvis=\E\:, dch1=\034W$<5>, dl1=\034R$<15>,
16886	ed=\034Y$<3*>, el=^\Z, home=\036$<10>, ht=^Z,
16887	ich1=\034Q$<5>, il1=\034E$<15>, ind=^J, is2=^_.., kbs=^H,
16888	kcub1=^Aw\r, kcud1=^Ay\r, kcuf1=^Az\r, kcuu1=^Ax\r,
16889	kend=^Ak\r, kent=^Aq, kf1=^Aa\r, kf2=^Ab\r, kf3=^Ac\r,
16890	kf4=^Ad\r, kf5=^Ae\r, kf6=^Af\r, kf7=^Ag\r, kf8=^Ah\r,
16891	khome=^A?\r, knp=^Ao\r, kpp=^An\r, nel=^M^J, rev=\EH,
16892	rmacs=^O, rmso=^\I`, rmul=^\IP, sgr0=\EI, smacs=\Eo,
16893	smso=^\H`, smul=^\HP,
16894
16895#### Masscomp consoles
16896#
16897# Masscomp has gone out of business.  Their product line was purchased by
16898# comany in Georgia (US) called "XS International", parts and service may
16899# still be available through them.
16900#
16901
16902# (masscomp: ":MT:" changed to ":km:";  -- esr)
16903masscomp|masscomp workstation console,
16904	OTbs, km, mir,
16905	cols#80, it#8, lines#24,
16906	clear=\E[2J, cub1=^H, cud1=\E[B, cuf1=\E[C,
16907	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
16908	ed=\E[J, el=\E[K, ht=^I, il1=\E[L, is2=\EGc\EGb\EGw, kbs=^H,
16909	kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, rmir=\E[4l,
16910	rmso=\E[m, rmul=\EGau, smir=\E[4h, smso=\E[7m, smul=\EGu,
16911masscomp1|masscomp large screen version 1,
16912	cols#104, lines#36, use=masscomp,
16913masscomp2|masscomp large screen version 2,
16914	cols#64, lines#21, use=masscomp,
16915
16916######## OTHER OBSOLETE TYPES
16917#
16918# These terminals are *long* dead -- these entries are retained for
16919# historical interest only.
16920#
16921
16922#### Obsolete non-ANSI software emulations
16923#
16924
16925# CTRM terminal emulator
16926# 1. underlining is not allowed with colors: first, is is simulated by
16927# black on white, second, it disables background color manipulations.
16928# 2. BLINKING, REVERSE and BOLD are allowed with colors,
16929# so we have to save their status in the static registers A, B and H
16930# respectively, to be able to restore them when color changes
16931# (because any color change turns off ALL attributes)
16932# 3. <bold> and <rev> sequences alternate modes,
16933# rather then simply  entering them.  Thus we have to check the
16934# static register B and H to determine the status, before sending the
16935# escape sequence.
16936# 4. <sgr0> now must set the status of all 3 register (A,B,H) to zero
16937# and then reset colors
16938# 5. implementation of the protect mode would badly penalize the performance.
16939# we would have to use \E&bn sequence to turn off colors (as well as all
16940# other attributes), and keep the status of protect mode in yet another
16941# static variable.  If someone really needs this mode, they would have to
16942# create another terminfo entry.
16943# 6. original color-pair is white on black.
16944# store the information about colors into static registers
16945# 7. set foreground color.  it performs the following steps.
16946#   1) turn off all attributes
16947#   2) turn on the background and video attributes that have been turned
16948#      on before (this information is stored in static registers X,Y,Z,A,B,H,D).
16949#   3) turn on foreground attributes
16950#   4) store information about foreground into U,V,W static registers
16951# 8. turn on background: similar to turn on foreground above
16952ctrm|C terminal emulator,
16953	am, bce, xon,
16954	colors#8, cols#80, lh#0, lines#24, lm#0, lw#0, ncv#2, nlab#0,
16955	pairs#63, pb#19200, vt#6,
16956	bel=^G, blink=\E&dA%{1}%PA,
16957	bold=%?%gH%{0}%=%t\E&dH%{1}%PH%;, cbt=\Ei,
16958	clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
16959	cup=\E&a%p2%dc%p1%dY, cuu1=\EA, dch1=\EP$<2>, dl1=\EM,
16960	ed=\EJ, el=\EK, hpa=\E&a%p1%dC, ht=\011$<2>, hts=\E1,
16961	il1=\EL, ind=^J, ip=$<2>, is2=\E&jA\r, kbs=^H, kcub1=\Eu\r,
16962	kcud1=\Ew\r, kcuf1=\Ev\r, kcuu1=\Et\r, kf1=\Ep\r,
16963	kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r,
16964	kf7=\Ev\r, kf8=\Ew\r, khome=\Ep\r,
16965	op=\E&bn\E&bB\E&bG\E&bR%{0}%PX%{0}%PY%{0}%PZ%{1}%PW%{1}%PV%{1}%PU,
16966	rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, rmir=\ER, rmkx=\E&jA,
16967	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,
16968	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,
16969	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%;,
16970	sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, smir=\EQ, smkx=\E&jB,
16971	smso=\E&dD, smul=\E&dD, tbc=\E3, vpa=\E&a%p1%dY,
16972
16973# gs6300 - can't use blue foreground, it clashes with underline;
16974# it's simulated with cyan
16975# Bug: The <op> capability probably resets attributes.
16976# (gs6300: commented out <rmln> (no <smln>) --esr)
16977gs6300|emots|AT&T PC6300 with EMOTS terminal emulator,
16978	am, bce, msgr, xon,
16979	colors#8, cols#80, it#8, lines#24, pairs#63,
16980	acsc=++\,\,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
16981	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cr=^M,
16982	cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J,
16983	cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
16984	cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P,
16985	dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
16986	ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
16987	is2=\E[m, kbs=^H, kcbt=^R^I, kcub1=\E[D, kcud1=\E[B,
16988	kcuf1=\E[C, kcuu1=\E[A, kf1=\E[0s, kf2=\E[24s, kf3=\E[1s,
16989	kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, kf8=\E[21s,
16990	khome=\E[H, mc4=\E[4i, mc5=\E[5i, op=\E[?;m, rev=\E[7m,
16991	ri=\E[L, rmacs=\E[10m, rs1=\Ec, setb=\E[?;%p1%dm,
16992	setf=\E[?%?%p1%{0}%=%t0%e%p1%{1}%=%t2%e%p1%{1}%-%d%;m,
16993	sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m,
16994
16995# From: <earle@smeagol.UUCP> 29 Oct 85 05:40:18 GMT
16996# MS-Kermit with Heath-19 emulation mode enabled
16997# (h19k: changed ":pt@:" to ":it@"
16998h19k|h19kermit|heathkit emulation provided by Kermit (no auto margin),
16999	am@, da, db, xt,
17000	it@,
17001	ht@, use=h19-u,
17002
17003# Apple Macintosh with Versaterm, a terminal emulator distributed by Synergy
17004# Software (formerly Peripherals Computers & Supplies, Inc) of
17005# 2457 Perkiomen Ave., Reading, PA 19606, 1-800-876-8376.  They can
17006# also be reached at support@synergy.com.
17007versaterm|versaterm vt100 emulator for the macintosh,
17008	am, xenl,
17009	cols#80, it#8, lines#24,
17010	bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
17011	clear=\E[;H\E[2J$<50/>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
17012	cub1=^H, cud1=^J, cuf1=\E[C$<2/>,
17013	cup=\E[%i%p1%d;%p2%dH$<5/>, cuu1=\E[A$<2/>,
17014	dch1=\E[1P$<7/>, dl1=\E[1M$<9/>, ed=\E[J$<50/>,
17015	el=\E[K$<3/>, home=\E[H, ht=^I, ich1=\E[1@$<7/>,
17016	il1=\E[1L$<9/>, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
17017	kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
17018	kf3=\EOR, kf4=\EOS, nel=^M^J, rc=\E8, rev=\E[7m$<2/>,
17019	rf=/usr/share/tabset/vt100, ri=\EM$<5/>,
17020	rmkx=\E>\E[?1l, rmso=\E[m$<2/>, rmul=\E[m$<2/>, rs1=\E>,
17021	sc=\E7, sgr0=\E[m$<2/>, smkx=\E=\E[?1h, smso=\E[7m$<2/>,
17022	smul=\E[4m$<2/>,
17023
17024# From: Rick Thomas <ihnp4!btlunix!rbt>
17025# (xtalk: I added <rmam>/<smam> based on the init string.
17026xtalk|IBM PC with xtalk communication program (versions up to 3.4),
17027	am, mir, msgr, xon,
17028	cols#80, it#8, lines#24, vt#3, xmc#1,
17029	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
17030	bel=^G, clear=\E[H\E[J$<50>, cr=^M, cub=\E[%p1%dD, cub1=^H,
17031	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C$<2>,
17032	cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
17033	cuu1=\E[A$<2>, dl1=\E[M$<99>, ed=\E[J$<50>, el=\E[K$<3>,
17034	el1=\E[1K$<3>, enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH,
17035	il1=\E[L$<99>, ind=^J, ka1=\EOq, ka3=\EOs, kb2=\EOr, kbs=^H,
17036	kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
17037	kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, kf10=\EOx,
17038	kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, kf6=\EOu, kf7=\EOv,
17039	kf8=\EOl, kf9=\EOw, ri=\EM$<5>, rmacs=^O, rmam=\E[?7l,
17040	rmkx=\E[?1l\E>, rmso=\E[m\s,
17041	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
17042	smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m\s,
17043	tbc=\E[3g,
17044
17045# The official PC terminal emulator program of the AT&T Product Centers.
17046# Note - insert mode commented out - doesn't seem to work on AT&T PC.
17047simterm|attpc running simterm,
17048	am,
17049	cols#80, lines#24,
17050	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=\EB, cuf1=\EC,
17051	cup=\E=%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\ER,
17052	dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, ind=^J, rmcup=\EVE,
17053	rmso=\E&d@, sgr0=\E&d@, smcup=\EVS, smso=\E&dB,
17054
17055#### Daisy wheel printers
17056#
17057# This section collects Diablo, DTC, Xerox, Qume, and other daisy
17058# wheel terminals.  These are now largely obsolete.
17059#
17060
17061# (diablo1620: removed <if=/usr/share/tabset/xerox1720>, no such file -- esr)
17062diablo1620|diablo1720|diablo450|ipsi|diablo 1620,
17063	hc, os,
17064	cols#132, it#8,
17065	cub1=^H, cud1=^J, cuu1=\E^J, hd=\ED, hpa=\E\011%i%p1%c,
17066	ht=^I, hts=\E1, hu=\EU, kbs=^H, tbc=\E2,
17067diablo1620-m8|diablo1640-m8|diablo 1620 w/8 column left margin,
17068	cols#124,
17069	is2=\r        \E9, use=diablo1620,
17070# (diablo1640: removed <if=/usr/share/tabset/xerox1730>, no such file -- esr)
17071diablo1640|diablo1730|diablo1740|diablo630|x1700|diablo|xerox|diablo 1640,
17072	bel=^G, rmso=\E&, rmul=\ER, smso=\EW, smul=\EE,
17073	use=diablo1620,
17074# (diablo1640-lm: removed <if=/usr/share/tabset/xerox1730-lm>, no such
17075# file -- esr)
17076diablo1640-lm|diablo-lm|xerox-lm|diablo 1640 with indented left margin,
17077	cols#124,
17078	rmso=\E&, rmul=\ER, smso=\EW, smul=\EE, use=diablo1620,
17079diablo1740-lm|630-lm|1730-lm|x1700-lm|diablo 1740 printer,
17080	use=diablo1640-lm,
17081# DTC 382 with VDU.  Has no <ed> so we fake it with <el>.  Standout
17082# <smso=^P\s\002^PF> works but won't go away without dynamite <rmso=^P\s\0>.
17083# The terminal has tabs, but I'm getting tired of fighting the braindamage.
17084# If no tab is set or the terminal's in a bad mood, it glitches the screen
17085# around all of memory.  Note that return puts a blank ("a return character")
17086# in the space the cursor was at, so we use ^P return (and thus ^P newline for
17087# newline).  Note also that if you turn off :pt: and let Unix expand tabs,
17088# curses won't work (some old BSD versions) because it doesn't clear this bit,
17089# and cursor addressing sends a tab for row/column 9.  What a losing terminal!
17090# I have been unable to get tabs set in all 96 lines - it always leaves at
17091# least one line with no tabs in it, and once you tab through that line,
17092# it completely weirds out.
17093# (dtc382: change <rmcup> to <smcup> -- it  just does a clear --esr)
17094dtc382|DTC 382,
17095	am, da, db, xhp,
17096	cols#80, lines#24, lm#96,
17097	bel=^G, clear=\020\035$<20>, cnorm=^Pb, cr=^P^M, cub1=^H,
17098	cuf1=^PR, cup=\020\021%p2%c%p1%c, cuu1=^P^L, cvvis=^PB,
17099	dch1=^X, dl1=^P^S, ed=\020\025\020\023\020\023, el=^P^U,
17100	home=^P^R, il1=^P^Z, ind=^J, pad=\177, rmcup=, rmir=^Pi,
17101	rmul=^P \0, smcup=\020\035$<20>, smir=^PI, smul=^P ^P,
17102dtc300s|DTC 300s,
17103	hc, os,
17104	cols#132,
17105	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
17106	hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
17107gsi|mystery gsi terminal,
17108	hc, os,
17109	cols#132,
17110	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, hd=\Eh, ht=^I, hu=\EH,
17111	ind=^J,
17112aj830|aj832|aj|anderson jacobson,
17113	hc, os,
17114	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E7, hd=\E9, hu=\E8,
17115	ind=^J,
17116# From: Chris Torek <chris@gyre.umd.edu> Thu, 7 Nov 85 18:21:58 EST
17117aj510|Anderson-Jacobson model 510,
17118	am, mir,
17119	cols#80, lines#24,
17120	clear=^L, cub1=^H, cuf1=\EX,
17121	cup=\E#%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EY,
17122	dch1=.1*\E'D, dl1=\E&D$<2*/>, ed=\E'P, el=\E'L, ich1=,
17123	il1=\E&I$<2*/>, ip=$<.1*/>, kcub1=\EW, kcud1=\EZ,
17124	kcuf1=\EX, kcuu1=\EY, pad=\177, rmcup=\E"N, rmir=\E'J,
17125	rmso=\E"I, rmul=\E"U, smcup=\E"N, smir=\E'I, smso=\E"I,
17126	smul=\E"U,
17127# From: <cbosg!ucbvax!pur-ee!cincy!chris> Thu Aug 20 09:09:18 1981
17128# This is incomplete, but it's a start.
17129nec5520|nec|spinwriter|nec 5520,
17130	hc, os,
17131	cols#132, it#8,
17132	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=\E9, ff=^L,
17133	hd=\E]s\n\E]W, ht=^I, hts=\E1, hu=\E]s\E9\E]W, ind=^J,
17134	kbs=^H, tbc=\E3,
17135qume5|qume|Qume Sprint 5,
17136	hc, os,
17137	cols#80, it#8,
17138	bel=^G, cr=^M, cub1=^H, cud1=^J, cuu1=^Z, ff=^L, hd=\Eh, ht=^I,
17139	hts=\E1, hu=\EH, ind=^J, kbs=^H, tbc=\E3,
17140# I suspect the xerox 1720 is the same as the diablo 1620.
17141xerox1720|x1720|x1750|xerox 1720,
17142	hc, os,
17143	cols#132, it#8,
17144	bel=^G, cr=^M, cub1=^H, cud1=^J, ff=^L, ht=^I, hts=\E1, ind=^J,
17145	tbc=\E2,
17146
17147#### Miscellaneous obsolete terminals, manufacturers unknown
17148#
17149# If you have any information about these (like, a manufacturer's name,
17150# and a date on the serial-number plate) please send it!
17151
17152cad68-3|cgc3|cad68 basic monitor transparent mode size 3 chars,
17153	OTbs, am,
17154	cols#73, lines#36,
17155	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^,
17156cad68-2|cgc2|cad68 basic monitor transparent mode size 2 chars,
17157	OTbs, am,
17158	cols#85, lines#39,
17159	clear=^Z, cub1=^H, cuf1=^L, cuu1=^K, home=^^, kcub1=\E3,
17160	kcud1=\E2, kcuf1=\E4, kcuu1=\E1, kf1=\E5, kf2=\E6, kf3=\E7,
17161	kf4=\E8, rmso=\Em^C, smso=\Em^L,
17162cops10|cops|cops-10|cops 10,
17163	am, bw,
17164	cols#80, lines#24,
17165	bel=^G, clear=\030$<30/>, cr=^M, cub1=^H, cud1=^J, cuf1=^L,
17166	cup=\020%p1%{32}%+%c%p2%{32}%+%c, cuu1=^K, ed=^W, el=^V,
17167	ind=^J, kbs=^H, kcub1=^H, kcud1=^J, kcuf1=^L, kcuu1=^K,
17168	khome=^Y,
17169# (d132: removed duplicate :ic=\E5:,
17170# merged in capabilities from a BRL entry -- esr)
17171d132|datagraphix|datagraphix 132a,
17172	da, db, in,
17173	cols#80, lines#30,
17174	bel=^G, clear=^L, cnorm=\Em\En, cr=^M, cub1=^H, cud1=^J,
17175	cuf1=\EL, cup=\E8%i%p1%3d%p2%3d, cuu1=\EK, cvvis=\Ex,
17176	dch1=\E6, home=\ET, ht=^I, ich1=\E5, il1=\E3, ind=^J, kbs=^H,
17177	kcub1=^H, kcud1=^J, nel=^M^J, ri=\Ew,
17178# The d800 was an early portable terminal from c.1984-85 that looked a lot
17179# like the original Compaq `lunchbox' portable (but no handle).  It had a vt220
17180# mode (which is what this entry looks like) and several other lesser-known
17181# emulations.
17182d800|Direct 800/A,
17183	OTbs, am, da, db, msgr, xhp,
17184	cols#80, it#8, lines#24,
17185	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
17186	bel=^G, clear=\E[1;1H\E[2J, cnorm=\E[>12h, cr=^M, cub1=^H,
17187	cud1=^J, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A,
17188	cvvis=\E[>12l, ed=\E[J, el=\E[K, ht=^I, ind=\ED, kcub1=\E[D,
17189	kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf2=\EOQ,
17190	kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
17191	ri=\EM, rmacs=\E[m, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
17192	smacs=\E[1m, smso=\E[7m, smul=\E[4m,
17193digilog|digilog 333,
17194	OTbs,
17195	cols#80, lines#16,
17196	bel=^G, cr=^M, cub1=^H, cud1=^J, cuf1=^I, cuu1=^O, el=^X,
17197	home=^N, ind=^J,
17198# The DWK was a terminal manufactured in the Soviet Union c.1986
17199dwk|dwk-vt|dwk terminal,
17200	am,
17201	cols#80, it#8, lines#24,
17202	acsc=+\^\,Q-S.M0\177`+a\:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~_,
17203	bel=^G, clear=\EH\EJ, cr=^M, cub1=^H, cud1=^J, cuf1=\EC,
17204	cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dch1=\EP,
17205	ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\EQ, ind=^J, kbs=\177,
17206	kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, kdch1=\Ee,
17207	kf1=\Ef1, kf10=\Ef0, kf2=\Ef2, kf3=\Ef3, kf4=\Ef4, kf5=\Ef5,
17208	kf6=\Ef6, kf7=\Ef7, kf8=\Ef8, kf9=\Ef9, kich1=\Ed, knp=\Eh,
17209	kpp=\Eg, nel=^M^J, rev=\ET, ri=\ES, rmacs=\EG, rmso=\EX,
17210	sgr0=\EX, smacs=\EF, smso=\ET,
17211env230|envision230|envision 230 graphics terminal,
17212	xenl@,
17213	mc0=\E[0i, mc4=\E[4i, mc5=\E[5i,
17214	sgr=\E[%?%p1%t;1%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m$<2>,
17215	use=vt100,
17216# These execuports were impact-printer ttys with a 30- or maybe 15-cps acoustic
17217# coupler attached, the whole rig fitting in a suitcase and more or less
17218# portable.  Hot stuff for c.1977 :-) -- esr
17219ep48|ep4080|execuport 4080,
17220	OTbs, am, os,
17221	cols#80,
17222	bel=^G, cr=^M, cub1=^H, cud1=^J, hd=^\, hu=^^, ind=^J,
17223ep40|ep4000|execuport 4000,
17224	cols#136, use=ep4080,
17225# Adam Thompson <athompso@pangea.ca> tells us:
17226# Informer series - these are all portable units, resembling older
17227# automatic bread-baking machines.  The terminal looks like a `clamshell'
17228# design, but isn't.  The structure is similar to the Direct terminals,
17229# but only half the width.  The entire unit is only about 10" wide.
17230# It features an 8" screen (6" or 7" if you have color!), and an 9"x6"
17231# keyboard.  All the keys are crammed together, much like some laptop
17232# PCs today, but perhaps less well organized...all these units have a
17233# bewildering array of plugs on the back, including a built-in modem.
17234# The 305 was a color version of the 304; the 306 and 307 were mono and
17235# color terminals built for IBM bisync protocols.
17236# From: Paul Leondis <unllab@amber.berkeley.edu>
17237ifmr|Informer D304,
17238	OTbs, am,
17239	cols#80, lines#24,
17240	clear=\EZ, cub1=^H, cud1=^J, cuf1=\EC,
17241	cup=\EY%p2%{32}%+%c%p1%{32}%+%c, cuu1=\EA, dch1=\E\\,
17242	ed=\E/, el=\EQ, home=\EH, ich1=\E[, ri=\En, rmso=\EK, sgr0=\EK,
17243	smso=\EJ,
17244# Entry largely based on wy60 and has the features of wy60ak.
17245opus3n1+|Esprit Opus3n1+ in wy60 mode with ANSI arrow keys,
17246	am, bw, hs, km, mir, msgr, ul, xon,
17247	cols#80, lh#1, lines#24, lw#8, nlab#8, wsl#80,
17248	acsc=0wa_h[jukslrmqnxqzttuyv]wpxv, bel=^G, blink=\EG2,
17249	cbt=\EI, civis=\E`0, clear=\E*$<100>, cnorm=\E`1, cr=^M,
17250	cub1=^H, cud1=^J, cuf1=^L, cup=\Ea%i%p1%dR%p2%dC, cuu1=^K,
17251	dch1=\EW$<11>, dim=\EGp, dl1=\ER$<5>, dsl=\Ez(\r,
17252	ed=\EY$<100>, el=\ET, fsl=^M, home=\036$<2>, ht=\011$<5>,
17253	hts=\E1, if=/usr/share/tabset/std, il1=\EE$<4>, ind=^J,
17254	ip=$<3>,
17255	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,
17256	kHOM=\E{, kbs=^H, kcbt=\EI, kcub1=\E[D, kcud1=\E[B,
17257	kcuf1=\E[C, kcuu1=\E[A, kdch1=\EW, kdl1=\ER, ked=\EY,
17258	kel=\ET, kend=\E[F, kent=\E7, kf1=^A@\r, kf10=^AI\r,
17259	kf11=^AJ\r, kf12=^AK\r, kf13=^AL\r, kf14=^AM\r, kf15=^AN\r,
17260	kf16=^AO\r, kf2=^AA\r, kf3=^AB\r, kf4=^AC\r, kf5=^AD\r,
17261	kf6=^AE\r, kf7=^AF\r, kf8=^AG\r, kf9=^AH\r, khome=^^,
17262	kich1=\EQ, kil1=\EE, knp=\EK, kpp=\EJ, kprt=\EP, krpl=\Er,
17263	mc0=\EP, mc4=^T, mc5=^R, nel=\r\n$<3>,
17264	pfloc=\EZ2%p1%{63}%+%c%p2%s\177,
17265	pfx=\EZ1%p1%{63}%+%c%p2%s\177,
17266	pln=\Ez%p1%{47}%+%c%p2%s\r, prot=\E), ri=\Ej$<7>,
17267	rmacs=\EH^C, rmam=\Ed., rmcup=, rmir=\Er, rmln=\EA11,
17268	rmxon=\Ec20, rs1=\E~!\E~4$<150>, rs2=\EeF$<150>,
17269	rs3=\EwG\Ee($<150>,
17270	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,
17271	sgr0=\E(\EH\003\EG0\EcD, smacs=\EH^B, smam=\Ed/,
17272	smcup=\Ezz&\E[A\177\Ezz'\E[B\177\Ezz(\E[D\177\Ezz)\E[C\177\Ezz<\E[Q\177,
17273	smir=\Eq, smln=\EA10, smxon=\Ec21, tbc=\E0, tsl=\Ez(,
17274	uc=\EG8\EG0, use=adm+sgr,
17275teletec|Teletec Datascreen,
17276	OTbs, am,
17277	cols#80, lines#24,
17278	bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^J, cuf1=^_, cuu1=^K,
17279	home=^^, ind=^J,
17280# From: Mark Dornfeld <romwa@ucbvax.berkeley.edu>
17281# This description is for the LANPAR Technologies VISION 3220
17282# terminal from 1984/85.  The function key definitions k0-k5 represent the
17283# edit keypad: FIND, INSERT HERE, REMOVE, SELECT, PREV SCREEN,
17284# NEXT SCREEN. The key definitions k6-k9 represent the PF1 to PF4 keys.
17285#
17286# Kenneth Randell <kenr@datametrics.com> writes on 31 Dec 1998:
17287# I had a couple of scopes (3221) like this once where I used to work, around
17288# the 1987 time frame if memory serves me correctly.  These scopes were made
17289# by an outfit called LANPAR Technologies, and were meant to me DEC VT 220
17290# compatible.  The 3220 was a plain text terminal like the VT-220, the 3221
17291# was a like the VT-240 (monochrome with Regis + Sixel graphics), and the 3222
17292# was like the VT-241 (color with Regis + Sixel Graphics).  These terminals
17293# (3221) cost about $1500 each, and one was always broken -- had to be sent
17294# back to the shop for repairs.
17295# The only real advantage these scopes had over the VT-240's were:
17296# 1) They were faster in the Regis display, or at least the ones I did
17297# 2) They had a handy debugging feature where you could split-screen the
17298# scope, the graphics would appear on the top, and the REGIS commands would
17299# appear on the bottom.  I don't remember the VT-240s being able to do that.
17300# I would swear that LANPAR Technologies was in MA someplace, but since I
17301# don't work at the same place anymore, and those terminals and manuals were
17302# long since junked, I cannot be any more sure than that.
17303#
17304# (v3220: removed obsolete ":kn#10:",
17305# I added <rmam>/<smam> based on the init string -- esr)
17306v3220|LANPAR Vision II model 3220/3221/3222,
17307	OTbs, am, mir, xenl,
17308	cols#80, it#8, lines#24,
17309	clear=\E[H\E[J, cub1=^H, cuf1=\E[C,
17310	cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
17311	ed=\E[J, el=\E[K, ht=^I, il1=\E[L,
17312	is2=\E>\E[?3l\E[?7h\E[?8h\E[p, kcub1=\E[D, kcud1=\E[B,
17313	kcuf1=\E[C, kcuu1=\E[A, kf0=\E[1~, kf1=\E[2~, kf2=\E[3~,
17314	kf3=\E[4~, kf4=\E[5~, kf5=\E[6~, kf6=\E[OP, kf7=\E[OQ,
17315	kf8=\E[OR, kf9=\E[OS, khome=\E[H, ri=\EM, rmam=\E[?7l,
17316	rmir=\E[4l, rmkx=\E>, rmso=\E[m, rmul=\E[m, sgr0=\E[m,
17317	smam=\E[?7h, smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m,
17318######## ICH/ICH1 VERSUS RMIR/SMIR
17319#
17320# Some non-curses applications get confused if both ich/ich1 and rmir/smir
17321# are present; the symptom is doubled characters in an update using insert.
17322# These applications are technically correct; in both 4.3BSD termcap and
17323# terminfo, you're not actually supposed to specify both ich/ich1 and rmir/smir
17324# unless the terminal needs both.  To my knowledge, no terminal still in this
17325# file requires both other than the very obsolete dm2500.
17326#
17327# For ncurses-based applications this is not a problem, as ncurses uses
17328# one or the other as appropriate but never mixes the two.  Therefore we
17329# have not corrected entries like `linux' and `xterm' that specify both.
17330# If you see doubled characters from these, use the linux-nic and xterm-nic
17331# entries that suppress ich/ich1.  And upgrade to ncurses!
17332#
17333
17334######## VT100/ANSI/ISO 6429/ECMA-48/PC-TERM TERMINAL STANDARDS
17335#
17336# ANSI X3.64 has been withdrawn and replaced by ECMA-48.  The ISO 6429 and
17337# ECMA-48 standards are said to be almost identical, but are not the same
17338# as X3.64 (though for practical purposes they are close supersets of it).
17339#
17340# You can obtain ECMA-48 for free by sending email to helpdesk@ecma.ch
17341# requesting the standard(s) you want (i.e. ECMA-48, "Control Functions for
17342# Coded Character Sets"), include your snail-mail address, and you should
17343# receive the document in due course.  Don't expect an email acknowledgement.
17344#
17345# Related standards include "X3.4-1977: American National Standard Code for
17346# Information Interchange" (the ASCII standard) and "X3.41.1974:
17347# Code-Extension Techniques for Use with the 7-Bit Coded Character Set of
17348# American National Standard for Information Interchange."  I believe (but
17349# am not certain) that these are effectively identical to ECMA-6 and ECMA-35
17350# respectively.
17351#
17352
17353#### VT100/ANSI/ECMA-48
17354#
17355# ANSI Standard (X3.64) Control Sequences for Video Terminals and Peripherals
17356# and ECMA-48 Control Functions for Coded Character Sets.
17357#
17358# Much of the content of this comment is adapted from a table prepared by
17359# Richard Shuford, based on a 1984 Byte article.  Terminfo correspondences,
17360# discussion of some terminfo-related issues, and updates to capture ECMA-48
17361# have been added.  Control functions described in ECMA-48 only are tagged
17362# with * after their names.
17363#
17364# The table is a complete list of the defined ANSI X3.64/ECMA-48 control
17365# sequences.  In the main table, \E stands for an escape (\033) character,
17366# SPC for space.  Pn stands for a single numeric parameter to be inserted
17367# in decimal ASCII.  Ps stands for a list of such parameters separated by
17368# semicolons.  Parameter meanings for most parametrized sequences are
17369# decribed in the notes.
17370#
17371# Sequence     Sequence                             Parameter   or
17372# Mnemonic     Name              Sequence           Value      Mode   terminfo
17373# -----------------------------------------------------------------------------
17374# APC  Applicatn Program Command \E _                -         Delim  -
17375# BEL  Bell *                    ^G                  -         -      bel
17376# BPH  Break Permitted Here *    \E B                -         *      -
17377# BS   Backpace *                ^H                  -         EF     -
17378# CAN  Cancel *                  ^X                  -         -      -   (A)
17379# CBT  Cursor Backward Tab       \E [ Pn Z           1         eF     cbt
17380# CCH  Cancel Previous Character \E T                -         -      -
17381# CHA  Cursor Horizntal Absolute \E [ Pn G           1         eF     hpa (B)
17382# CHT  Cursor Horizontal Tab     \E [ Pn I           1         eF     tab (C)
17383# CMD  Coding Method Delimiter * \E
17384# CNL  Cursor Next Line          \E [ Pn E           1         eF     nel (D)
17385# CPL  Cursor Preceding Line     \E [ Pn F           1         eF     -
17386# CPR  Cursor Position Report    \E [ Pn ; Pn R      1, 1      -      -   (E)
17387# CSI  Control Sequence Intro    \E [                -         Intro  -
17388# CTC  Cursor Tabulation Control \E [ Ps W           0         eF     -   (F)
17389# CUB  Cursor Backward           \E [ Pn D           1         eF     cub
17390# CUD  Cursor Down               \E [ Pn B           1         eF     cud
17391# CUF  Cursor Forward            \E [ Pn C           1         eF     cuf
17392# CUP  Cursor Position           \E [ Pn ; Pn H      1, 1      eF     cup (G)
17393# CUU  Cursor Up                 \E [ Pn A           1         eF     cuu
17394# CVT  Cursor Vertical Tab       \E [ Pn Y           -         eF     -   (H)
17395# DA   Device Attributes         \E [ Pn c           0         -      -
17396# DAQ  Define Area Qualification \E [ Ps o           0         -      -
17397# DCH  Delete Character          \E [ Pn P           1         eF     dch
17398# DCS  Device Control String     \E P                -         Delim  -
17399# DL   Delete Line               \E [ Pn M           1         eF     dl
17400# DLE  Data Link Escape *        ^P                  -         -      -
17401# DMI  Disable Manual Input      \E \                -         Fs     -
17402# DSR  Device Status Report      \E [ Ps n           0         -      -   (I)
17403# DTA  Dimension Text Area *     \E [ Pn ; Pn SPC T  -         PC     -
17404# EA   Erase in Area             \E [ Ps O           0         eF     -   (J)
17405# ECH  Erase Character           \E [ Pn X           1         eF     ech
17406# ED   Erase in Display          \E [ Ps J           0         eF     ed  (J)
17407# EF   Erase in Field            \E [ Ps N           0         eF     -
17408# EL   Erase in Line             \E [ Ps K           0         eF     el  (J)
17409# EM   End of Medium *           ^Y                  -         -      -
17410# EMI  Enable Manual Input       \E b                          Fs     -
17411# ENQ  Enquire                   ^E                  -         -      -
17412# EOT  End Of Transmission       ^D                  -         *      -
17413# EPA  End of Protected Area     \E W                -         -      -   (K)
17414# ESA  End of Selected Area      \E G                -         -      -
17415# ESC  Escape                    ^[                  -         -      -
17416# ETB  End Transmission Block    ^W                  -         -      -
17417# ETX  End of Text               ^C                  -         -      -
17418# FF   Form Feed                 ^L                  -         -      -
17419# FNK  Function Key *            \E [ Pn SPC W       -         -      -
17420# GCC  Graphic Char Combination* \E [ Pn ; Pn SPC B  -         -      -
17421# FNT  Font Selection            \E [ Pn ; Pn SPC D  0, 0      FE     -
17422# GSM  Graphic Size Modify       \E [ Pn ; Pn SPC B  100, 100  FE     -   (L)
17423# GSS  Graphic Size Selection    \E [ Pn SPC C       none      FE     -
17424# HPA  Horz Position Absolute    \E [ Pn `           1         FE     -   (B)
17425# HPB  Char Position Backward    \E [ j              1         FE     -
17426# HPR  Horz Position Relative    \E [ Pn a           1         FE     -   (M)
17427# HT   Horizontal Tab *          ^I                  -         FE     -   (N)
17428# HTJ  Horz Tab w/Justification  \E I                -         FE     -
17429# HTS  Horizontal Tab Set        \E H                -         FE     hts
17430# HVP  Horz & Vertical Position  \E [ Pn ; Pn f      1, 1      FE     -   (G)
17431# ICH  Insert Character          \E [ Pn @           1         eF     ich
17432# IDCS ID Device Control String  \E [ SPC O          -         *      -
17433# IGS  ID Graphic Subrepertoire  \E [ SPC M          -         *      -
17434# IL   Insert Line               \E [ Pn L           1         eF     il
17435# IND  Index                     \E D                -         FE     -
17436# INT  Interrupt                 \E a                -         Fs     -
17437# JFY  Justify                   \E [ Ps SPC F       0         FE     -
17438# IS1  Info Separator #1 *       ^_                  -         *      -
17439# IS2  Info Separator #1 *       ^^                  -         *      -
17440# IS3  Info Separator #1 *       ^]                  -         *      -
17441# IS4  Info Separator #1 *       ^\                  -         *      -
17442# LF   Line Feed                 ^J                  -         -      -
17443# LS1R Locking Shift Right 1 *   \E ~                -         -      -
17444# LS2  Locking Shift 2 *         \E n                -         -      -
17445# LS2R Locking Shift Right 2 *   \E }                -         -      -
17446# LS3  Locking Shift 3 *         \E o                -         -      -
17447# LS3R Locking Shift Right 3 *   \E |                -         -      -
17448# MC   Media Copy                \E [ Ps i           0         -      -   (S)
17449# MW   Message Waiting           \E U                -         -      -
17450# NAK  Negative Acknowledge *    ^U                  -         *      -
17451# NBH  No Break Here *           \E C                -         -      -
17452# NEL  Next Line                 \E E                -         FE     nel (D)
17453# NP   Next Page                 \E [ Pn U           1         eF     -
17454# NUL  Null *                    ^@                  -         -      -
17455# OSC  Operating System Command  \E ]                -         Delim  -
17456# PEC  Pres. Expand/Contract *   \E Pn SPC Z         0         -      -
17457# PFS  Page Format Selection *   \E Pn SPC J         0         -      -
17458# PLD  Partial Line Down         \E K                -         FE     -   (T)
17459# PLU  Partial Line Up           \E L                -         FE     -   (U)
17460# PM   Privacy Message           \E ^                -         Delim  -
17461# PP   Preceding Page            \E [ Pn V           1         eF     -
17462# PPA  Page Position Absolute *  \E [ Pn SPC P       1         FE     -
17463# PPB  Page Position Backward *  \E [ Pn SPC R       1         FE     -
17464# PPR  Page Position Forward *   \E [ Pn SPC Q       1         FE     -
17465# PTX  Parallel Texts *          \E [ \              -         -      -
17466# PU1  Private Use 1             \E Q                -         -      -
17467# PU2  Private Use 2             \E R                -         -      -
17468# QUAD Typographic Quadding      \E [ Ps SPC H       0         FE     -
17469# REP  Repeat Char or Control    \E [ Pn b           1         -      rep
17470# RI   Reverse Index             \E M                -         FE     -   (V)
17471# RIS  Reset to Initial State    \E c                -         Fs     -
17472# RM   Reset Mode *              \E [ Ps l           -         -      -   (W)
17473# SACS Set Add. Char. Sep. *     \E [ Pn SPC /       0         -      -
17474# SAPV Sel. Alt. Present. Var. * \E [ Ps SPC ]       0         -      -   (X)
17475# SCI  Single-Char Introducer    \E Z                -         -      -
17476# SCO  Sel. Char. Orientation *  \E [ Pn ; Pn SPC k  -         -      -
17477# SCS  Set Char. Spacing *       \E [ Pn SPC g       -         -      -
17478# SD   Scroll Down               \E [ Pn T           1         eF     rin
17479# SDS  Start Directed String *   \E [ Pn ]           1         -      -
17480# SEE  Select Editing Extent     \E [ Ps Q           0         -      -   (Y)
17481# SEF  Sheet Eject & Feed *      \E [ Ps ; Ps SPC Y  0,0       -      -
17482# SGR  Select Graphic Rendition  \E [ Ps m           0         FE     sgr (O)
17483# SHS  Select Char. Spacing *    \E [ Ps SPC K       0         -      -
17484# SI   Shift In                  ^O                  -         -      -   (P)
17485# SIMD Sel. Imp. Move Direct. *  \E [ Ps ^           -         -      -
17486# SL   Scroll Left               \E [ Pn SPC @       1         eF     -
17487# SLH  Set Line Home *           \E [ Pn SPC U       -         -      -
17488# SLL  Set Line Limit *          \E [ Pn SPC V       -         -      -
17489# SLS  Set Line Spacing *        \E [ Pn SPC h       -         -      -
17490# SM   Select Mode               \E [ Ps h           none      -      -   (W)
17491# SO   Shift Out                 ^N                  -         -      -   (Q)
17492# SOH  Start Of Heading *        ^A                  -         -      -
17493# SOS  Start of String *         \E X                -         -      -
17494# SPA  Start of Protected Area   \E V                -         -      -   (Z)
17495# SPD  Select Pres. Direction *  \E [ Ps ; Ps SPC S  0,0       -      -
17496# SPH  Set Page Home *           \E [ Ps SPC G       -         -      -
17497# SPI  Spacing Increment         \E [ Pn ; Pn SPC G  none      FE     -
17498# SPL  Set Page Limit *          \E [ Ps SPC j       -         -      -
17499# SPQR Set Pr. Qual. & Rapid. *  \E [ Ps SPC X       0         -      -
17500# SR   Scroll Right              \E [ Pn SPC A       1         eF     -
17501# SRCS Set Reduced Char. Sep. *  \E [ Pn SPC f       0         -      -
17502# SRS  Start Reversed String *   \E [ Ps [           0         -      -
17503# SSA  Start of Selected Area    \E F                -         -      -
17504# SSU  Select Size Unit *        \E [ Pn SPC I       0         -      -
17505# SSW  Set Space Width *         \E [ Pn SPC [       none      -      -
17506# SS2  Single Shift 2 (G2 set)   \E N                -         Intro  -
17507# SS3  Single Shift 3 (G3 set)   \E O                -         Intro  -
17508# ST   String Terminator         \E \                -         Delim  -
17509# STAB Selective Tabulation *    \E [ Pn SPC ^       -         -      -
17510# STS  Set Transmit State        \E S                -         -      -
17511# STX  Start pf Text *           ^B                  -         -      -
17512# SU   Scroll Up                 \E [ Pn S           1         eF     indn
17513# SUB  Substitute *              ^Z                  -         -      -
17514# SVS  Select Line Spacing *     \E [ Pn SPC \       1         -      -
17515# SYN  Synchronous Idle *        ^F                  -         -      -
17516# TAC  Tabul. Aligned Centered * \E [ Pn SPC b       -         -      -
17517# TALE Tabul. Al. Leading Edge * \E [ Pn SPC a       -         -      -
17518# TATE Tabul. Al. Trailing Edge* \E [ Pn SPC `       -         -      -
17519# TBC  Tab Clear                 \E [ Ps g           0         FE     tbc
17520# TCC  Tabul. Centered on Char * \E [ Pn SPC c       -         -      -
17521# TSR  Tabulation Stop Remove  * \E [ Pn SPC d       -         FE     -
17522# TSS  Thin Space Specification  \E [ Pn SC E        none      FE     -
17523# VPA  Vert. Position Absolute   \E [ Pn d           1         FE     vpa
17524# VPB  Line Position Backward *  \E [ Pn k           1         FE     -
17525# VPR  Vert. Position Relative   \E [ Pn e           1         FE     -   (R)
17526# VT   Vertical Tabulation *     ^K                  -         FE     -
17527# VTS  Vertical Tabulation Set   \E J                -         FE     -
17528#
17529# ---------------------------------------------------------------------------
17530#
17531# Notes:
17532#
17533# Some control characters are listed in the ECMA-48 standard without
17534# being assigned functions relevant to terminal control there (they
17535# referred to other standards such as ISO 1745 or ECMA-35).  They are listed
17536# here anyway for completeness.
17537#
17538# (A) ECMA-48 calls this "CancelCharacter" but retains the CCH abbreviation.
17539#
17540# (B) There seems to be some confusion abroad between CHA and HPA.  Most
17541# `ANSI' terminals accept the CHA sequence, not the HPA. but terminfo calls
17542# the capability (hpa).  ECMA-48 calls this "Cursor Character Absolute" but
17543# preserved the CHA abbreviation.
17544#
17545# (C) CHT corresponds to terminfo (tab).  Usually it has the value ^I.
17546# Occasionally (as on, for example, certain HP terminals) this has the HTJ
17547# value.  ECMA-48 calls this "Cursor Forward Tabulation" but preserved the
17548# CHT abbreviation.
17549#
17550# (D) terminfo (nel) is usually \r\n rather than ANSI \EE.
17551#
17552# (E) ECMA-48 calls this "Active Position Report" but preserves the CPR
17553# abbreviation.
17554#
17555# (F) CTC parameter values: 0 = set char tab, 1 = set line tab, 2 = clear
17556# char tab, 3 = clear line tab, 4 = clear all char tabs on current line,
17557# 5 = clear all char tabs, 6 = clear all line tabs.
17558#
17559# (G) CUP and HVP are identical in effect.  Some ANSI.SYS versions accept
17560# HVP, but always allow CUP as an alternate.  ECMA-48 calls HVP "Character
17561# Position Absolute" but retains the HVP abbreviation.
17562#
17563# (H) ECMA calls this "Cursor Line Tabulation" but preserves the CVT
17564# abbreviation.
17565#
17566# (I) DSR parameter values: 0 = ready, 1 = busy, 2 = busy, will send DSR
17567# later, 3 = malfunction, 4 = malfunction, will send DSR later, 5 = request
17568# DSR, 6 = request CPR response.
17569#
17570# (J) ECMA calls ED "Erase In Page". EA/ED/EL parameters: 0 = clear to end,
17571# 1 = clear from beginning, 2 = clear.
17572#
17573# (K) ECMA calls this "End of Guarded Area" but preserves the EPA abbreviation.
17574#
17575# (L) The GSM parameters are vertical and horizontal parameters to scale by.
17576#
17577# (M) Some ANSI.SYS versions accept HPR, but more commonly `ANSI' terminals
17578# use CUF for this function and ignore HPR.  ECMA-48 calls this "Character
17579# Position Relative" but retains the HPR abbreviation.
17580#
17581# (N) ECMA-48 calls this "Character Tabulation" but retains the HT
17582# abbreviation.
17583#
17584# (O) SGR parameter values: 0 = default mode (attributes off), 1 = bold,
17585# 2 = dim, 3 = italicized, 4 = underlined, 5 = slow blink, 6 = fast blink,
17586# 7 = reverse video, 8 = invisible, 9 = crossed-out (marked for deletion),
17587# 10 = primary font, 10 + n (n in 1..9) = nth alternative font, 20 = Fraktur,
17588# 21 = double underline, 22 = turn off 2, 23 = turn off 3, 24 = turn off 4,
17589# 25 = turn off 5, 26 = proportional spacing, 27 = turn off 7, 28 = turn off
17590# 8, 29 = turn off 9, 30 = black fg, 31 = red fg, 32 = green fg, 33 = yellow
17591# fg, 34 = blue fg, 35 = magenta fg, 36 = cyan fg, 37 = white fg, 38 = set
17592# fg color as in CCIT T.416, 39 = set default fg color, 40 = black bg
17593# 41 = red bg, 42 = green bg, 43 = yellow bg, 44 = blue bg, 45 = magenta bg,
17594# 46 = cyan bg, 47 = white bg, 48 = set bg color as in CCIT T.416, 39 = set
17595# default bg color, 50 = turn off 26, 51 = framed, 52 = encircled, 53 =
17596# overlined, 54 = turn off 51 & 52, 55 = not overlined, 56-59 = reserved,
17597# 61-65 = variable highlights for ideograms.
17598#
17599# (P) SI is also called LSO, Locking Shift Zero.
17600#
17601# (Q) SI is also called LS1, Locking Shift One.
17602#
17603# (R) Some ANSI.SYS versions accept VPR, but more commonly `ANSI' terminals
17604# use CUD for this function and ignore VPR.  ECMA calls it `Line Position
17605# Absolute' but retains the VPA abbreviation.
17606#
17607# (S) MC parameters: 0 = start xfer to primary aux device, 1 = start xfer from
17608# primary aux device, 2 = start xfer to secondary aux device, 3 = start xfer
17609# from secondary aux device, 4 = stop relay to primary aux device, 5 =
17610# start relay to primary aux device, 6 = stop relay to secondary aux device,
17611# 7 = start relay to secondary aux device.
17612#
17613# (T) ECMA-48 calls this "Partial Line Forward" but retains the PLD
17614# abbreviation.
17615#
17616# (U) ECMA-48 calls this "Partial Line Backward" but retains the PLD
17617# abbreviation.
17618#
17619# (V) ECMA-48 calls this "Reverse Line Feed" but retains the RI abbreviation.
17620#
17621# (W) RM/SM modes are as follows: 1 = Guarder Area Transfer Mode (GATM),
17622# 2 = Keyboard Action Mode (KAM), 3 = Control Representation Mode (CRM),
17623# 4 = Insertion Replacement Mode, 5 = Status Report Transfer Mode (SRTM),
17624# 6 = Erasure Mode (ERM), 7 = Line Editing Mode (LEM), 8 = Bi-Directional
17625# Support Mode (BDSM), 9 = Device Component Select Mode (DCSM),
17626# 10 = Character Editing Mode (HEM), 11 = Positioning Unit Mode (PUM),
17627# 12 = Send/Receive Mode, 13 = Format Effector Action Mode (FEAM),
17628# 14 = Format Effector Transfer Mode (FETM), 15 = Multiple Area Transfer
17629# Mode (MATM), 16 = Transfer Termination Mode, 17 = Selected Area Transfer
17630# Mode, 18 = Tabulation Stop Mode, 19 = Editing Boundary Mode, 20 = Line Feed
17631# New Line Mode (LF/NL), Graphic Rendition Combination Mode (GRCM), 22 =
17632# Zero Default Mode (ZDM).  The EBM and LF/NL modes have actually been removed
17633# from ECMA-48's 5th edition but are listed here for reference.
17634#
17635# (X) Select Alternate Presentation Variants is used only for non-Latin
17636# alphabets.
17637#
17638# (Y) "Select Editing Extent" (SEE) was ANSI "Select Edit Extent Mode" (SEM).
17639#
17640# (Z) ECMA-48 calls this "Start of Guarded Area" but retains the SPA
17641# abbreviation.
17642#
17643# ---------------------------------------------------------------------------
17644#
17645# Abbreviations:
17646#
17647# Intro  an Introducer of some kind of defined sequence; the normal 7-bit
17648#        X3.64 Control Sequence Introducer is the two characters "Escape ["
17649#
17650# Delim  a Delimiter
17651#
17652# x/y    identifies a character by position in the ASCII table (column/row)
17653#
17654# eF     editor function (see explanation)
17655#
17656# FE     format effector (see explanation)
17657#
17658# F      is a Final character in
17659#             an Escape sequence (F from 3/0 to 7/14 in the ASCII table)
17660#             a control sequence (F from 4/0 to 7/14)
17661#
17662# Gs     is a graphic character appearing in strings (Gs ranges from
17663#        2/0 to 7/14) in the ASCII table
17664#
17665# Ce     is a control represented as a single bit combination in the C1 set
17666#        of controls in an 8-bit character set
17667#
17668# C0     the familiar set of 7-bit ASCII control characters
17669#
17670# C1     roughly, the set of control chars available only in 8-bit systems.
17671#        This is too complicated to explain fully here, so read Jim Fleming's
17672#        article in the February 1983 BYTE, especially pages 214 through 224.
17673#
17674# Fe     is a Final character of a 2-character Escape sequence that has an
17675#        equivalent representation in an 8-bit environment as a Ce-type
17676#        (Fe ranges from 4/0 to 5/15)
17677#
17678# Fs     is a Final character of a 2-character Escape sequence that is
17679#        standardized internationally with identical representation in 7-bit
17680#        and 8-bit environments and is independent of the currently
17681#        designated C0 and C1 control sets (Fs ranges from 6/0 to 7/14)
17682#
17683# I      is an Intermediate character from 2/0 to 2/15 (inclusive) in the
17684#        ASCII table
17685#
17686# P      is a parameter character from 3/0 to 3/15 (inclusive) in the ASCII
17687#        table
17688#
17689# Pn     is a numeric parameter in a control sequence, a string of zero or
17690#        more characters ranging from 3/0 to 3/9 in the ASCII table
17691#
17692# Ps     is a variable number of selective parameters in a control sequence
17693#        with each selective parameter separated from the other by the code
17694#        3/11 (which usually represents a semicolon); Ps ranges from
17695#        3/0 to 3/9 and includes 3/11
17696#
17697# *      Not relevant to terminal control, listed for completeness only.
17698#
17699# Format Effectors versus Editor Functions
17700#
17701# A format effector specifies how following output is to be displayed.
17702# An editor function allows you to modify the display.  Informally
17703# format effectors may be destructive; format effectors should not be.
17704#
17705# For instance, a format effector that moves the "active position" (the
17706# cursor or equivalent) one space to the left would be useful when you want to
17707# create an overstrike, a compound character made of two standard characters
17708# overlaid. Control-H, the Backspace character, is actually supposed to be a
17709# format effector, so you can do this. But many systems use it in a
17710# nonstandard fashion, as an editor function, deleting the character to the
17711# left of the cursor and moving the cursor left. When Control-H is assumed to
17712# be an editor function, you cannot predict whether its use will create an
17713# overstrike unless you also know whether the output device is in an "insert
17714# mode" or an "overwrite mode". When Control-H is used as a format effector,
17715# its effect can always be predicted. The familiar characters carriage
17716# return, linefeed, formfeed, etc., are defined as format effectors.
17717#
17718# NOTES ON THE DEC VT100 IMPLEMENTATION
17719#
17720# Control sequences implemented in the VT100 are as follows:
17721#
17722#      CPR, CUB, CUD, CUF, CUP, CUU, DA, DSR, ED, EL, HTS, HVP, IND,
17723#      LNM, NEL, RI, RIS, RM, SGR, SM, TBC
17724#
17725# plus several private DEC commands.
17726#
17727# Erasing parts of the display (EL and ED) in the VT100 is performed thus:
17728#
17729#      Erase from cursor to end of line           Esc [ 0 K    or Esc [ K
17730#      Erase from beginning of line to cursor     Esc [ 1 K
17731#      Erase line containing cursor               Esc [ 2 K
17732#      Erase from cursor to end of screen         Esc [ 0 J    or Esc [ J
17733#      Erase from beginning of screen to cursor   Esc [ 1 J
17734#      Erase entire screen                        Esc [ 2 J
17735#
17736# Some brain-damaged terminal/emulators respond to Esc [ J as if it were
17737# Esc [ 2 J, but this is wrong; the default is 0.
17738#
17739# The VT100 responds to receiving the DA (Device Attributes) control
17740#
17741#      Esc [ c    (or Esc [ 0 c)
17742#
17743# by transmitting the sequence
17744#
17745#      Esc [ ? l ; Ps c
17746#
17747# where Ps is a character that describes installed options.
17748#
17749# The VT100's cursor location can be read with the DSR (Device Status
17750# Report) control
17751#
17752#      Esc [ 6 n
17753#
17754# The VT100 reports by transmitting the CPR sequence
17755#
17756#      Esc [ Pl ; Pc R
17757#
17758# where Pl is the line number and Pc is the column number (in decimal).
17759#
17760# The specification for the DEC VT100 is document EK-VT100-UG-003.
17761
17762#### ANSI.SYS
17763#
17764# Here is a description of the color and attribute controls supported in the
17765# the ANSI.SYS driver under MS-DOS.  Most console drivers and ANSI
17766# terminal emulators for Intel boxes obey these.  They are a proper subset
17767# of the ECMA-48 escapes.
17768#
17769# 0	all attributes off
17770# 1	foreground bright
17771# 4	underscore on
17772# 5	blink on/background bright (not reliable with brown)
17773# 7	reverse-video
17774# 8	set blank (non-display)
17775# 10	set primary font
17776# 11	set first alternate font (on PCs, display ROM characters 1-31)
17777# 12	set second alternate font (on PCs, display IBM high-half chars)
17778#
17779#			Color attribute sets
17780# 3n	set foreground color       / 0=black, 1=red,     2=green, 3=brown,
17781# 4n	set background color       \ 4=blue,  5=magenta, 6=cyan,  7=white
17782# Bright black becomes gray.  Bright brown becomes yellow,
17783# These coincide with the prescriptions of the ISO 6429/ECMA-48 standard.
17784#
17785# * If the 5 attribute is on and you set a background color (40-47) it is
17786#   supposed to enable bright background.
17787#
17788# * Many VGA cards (such as the Paradise and compatibles) do the wrong thing
17789#   when you try to set a "bright brown" (yellow) background with attribute
17790#   5 (you get a blinking yellow foreground instead).  A few displays
17791#   (including the System V console) support an attribute 6 that undoes this
17792#   braindamage (this is required by iBCS2).
17793#
17794# * Some older versions of ANSI.SYS have a bug that causes thems to require
17795#   ESC [ Pn k as EL rather than the ANSI ESC [ Pn K.  (This is not ECMA-48
17796#   compatible.)
17797
17798#### Intel Binary Compatibility Standard
17799#
17800# For comparison, here are the capabilities implied by the Intel Binary
17801# Compatibility Standard for UNIX systems (Intel order number 468366-001).
17802# These recommendations are optional.  IBCS2 allows the leading escape to
17803# be either the 7-bit \E[ or 8-bit \0233 introducer, in accordance with
17804# the ANSI X.364/ISO 6429/ECMA-48 standard.  Here are the iBCS2 capabilities
17805# (as described in figure 9-3 of the standard).  Those expressed in the ibcs2
17806# terminfo entry are followed with the corresponding capability in parens:
17807#
17808#	CSI <n>k		disable (n=0) or enable (n=1) keyclick
17809#	CSI 2h   		lock keyboard
17810#	CSI 2i  		send screen as input
17811#	CSI 2l  		unlock keyboard
17812#	CSI 6m  		enable background color intensity
17813#	CSI <0-2>c		reserved
17814#	CSI <0-59>m		select graphic rendition
17815#	CSI <n>;<m>H	(cup)	cursor to line n and column m
17816#	CSI <n>;<m>f		cursor to line n and column m
17817#	CSI <n>@	(ich)	insert characters
17818#	CSI <n>A	(cuu)	cursor up n lines
17819#	CSI <n>B	(cud)	cursor down n lines
17820#	CSI <n>C	(cuu)	cursor right n characters
17821#	CSI <n>D	(cud)	cursor left n characters
17822#	CSI <n>E		cursor down n lines and in first column
17823#	CSI <n>F		cursor up n lines and in first column
17824#	CSI <n>G	(hpa)	position cursor at column n-1
17825#	CSI <n>J	(ed)	erase in display
17826#	CSI <n>K	(el)	erase in line
17827#	CSI <n>L	(il)	insert line(s)
17828#	CSI <n>P	(dch)	delete characters
17829#	CSI <n>S	(indn)	scroll up n lines
17830#	CSI <n>T	(rin)	scroll down n lines
17831#	CSI <n>X	(ech)	erase characters
17832#	CSI <n>Z	(cbt)	back up n tab stops
17833#	CSI <n>`		cursor to column n on line
17834#	CSI <n>a	(cuu)	cursor right n characters
17835#	CSI <n>d	(vpa)	cursor to line n
17836#	CSI <n>e		cursor down n lines and in first column
17837#	CSI <n>g	(cbt)	clear all tabs
17838#	CSI <n>z		make virtual terminal n active
17839#	CSI ?7h 	(smam)	turn automargin on
17840#	CSI ?7l 	(rmam)	turn automargin off
17841#	CSI s     		save cursor position
17842#	CSI u   		restore cursor position to saved value
17843#	CSI =<c>A		set overscan color
17844#	CSI =<c>F		set normal foreground color
17845#	CSI =<c>G		set normal background color
17846#	CSI =<c>H		set reverse foreground color
17847#	CSI =<c>I		set reverse foreground color
17848#	CSI =<c>J		set graphic foreground color
17849#	CSI =<c>K		set graphic foreground color
17850#	CSI =<n>g	(dispc) display n from alternate graphics character set
17851#	CSI =<p>;<d>B		set bell parameters
17852#	CSI =<s>;<e>C		set cursor parameters
17853#	CSI =<x>D		enable/disable intensity of background color
17854#	CSI =<x>E		set/clear blink vs. bold background
17855#	CSI 7     	(sc)	(sc) save cursor position
17856#	CSI 8   	(rc)	(rc) restore cursor position to saved value
17857#	CSI H		(hts)	(hts) set tab stop
17858#	CSI Q<n><string>	define function key string
17859#				(string must begin and end with delimiter char)
17860#	CSI c   	(clear) clear screen
17861#
17862# The lack of any specification for attributes in SGR (among other things)
17863# makes this a wretchedly weak standard. The table above is literally
17864# everything iBSC2 has to say about terminal escape sequences; there is
17865# no further discussion of their meaning or how to set the parameters
17866# in these sequences at all.
17867#
17868
17869######## NONSTANDARD CAPABILITY TRANSLATIONS USED IN THIS FILE
17870#
17871# The historical termcap file entries were written primarily in 4.4BSD termcap.
17872# The 4.4BSD termcap set was substantially larger than the original 4.1BSD set,
17873# with the extension names chosen for compatibility with the termcap names
17874# assigned in System V terminfo.  There are some variant extension sets out
17875# there.  We try to describe them here.
17876#
17877# XENIX extensions:
17878#
17879# The XENIX extensions include a set of function-key capabilities as follows:
17880#
17881#       code	XENIX variable name	terminfo name	name clashes?
17882#	----	-------------------	-------------	-----------------------
17883#	CL	key_char_left
17884#	CR	key_char_right
17885#	CW	key_change_window			create_window
17886#	EN	key_end          	kend
17887#	HM	key_home		khome
17888#	HP	??
17889#	LD	key_delete_line  	kdl1
17890#	LF	key_linefeed     			label_off
17891#	NU	key_next_unlocked_cell
17892#	PD	key_page_down   	knp
17893#	PL	??
17894#	PN	start_print		mc5
17895#	PR	??
17896#	PS	stop_print		mc4
17897#	PU	key_page_up     	kpp		pulse
17898#	RC	key_recalc				remove_clock
17899#	RF	key_toggle_ref				req_for_input
17900#	RT	key_return      	kent
17901#	UP	key_up_arrow           	kcuu1   	parm_up_cursor
17902#	WL	key_word_left
17903#	WR	key_word_right
17904#
17905# The XENIX extensions also include the following character-set and highlight
17906# capabilities:
17907#
17908#	XENIX	terminfo	function
17909#	-----	--------	------------------------------
17910#	GS	smacs		start alternate character set
17911#	GE	rmacs		end alternate character set
17912#	GG			:as:/:ae: glitch (analogous to :sg:/:ug:)
17913#	bo	blink		begin blink (not used in /etc/termcap)
17914#	be			end blink (not used in /etc/termcap)
17915#	bb			blink glitch  (not used in /etc/termcap)
17916#	it	dim		begin dim (not used in /etc/termcap)
17917#	ie			end dim (not used in /etc/termcap)
17918#	ig			dim glitch  (not used in /etc/termcap)
17919#
17920# Finally, XENIX also used the following forms-drawing capabilities:
17921#
17922#	single	double  type             ASCII approximation
17923#	------	------	-------------    -------------------
17924#	GV	Gv	vertical line             |
17925#	GH	Gv	horizontal line       -   _
17926#	G1	G5	top right corner       _   |
17927#	G2	G6	top left corner       |
17928#	G3	G7	bottom left corner         |_
17929#	G4	G8	bottom right corner   _|
17930#	GD	Gd	down-tick character        T
17931#	GL	Gl	left-tick character   -|
17932#	GR	Gr	right-tick character       |-
17933#	GC	Gc	middle intersection   -|-
17934#	GU	Gu	up-tick character          _|_
17935#
17936# These were invented to take advantage of the IBM PC ROM character set.  One
17937# can compose an acsc string from the single-width characters as follows
17938#	"j{G4}k{G1}l{G2}m{G3}q{GH}x{GV}t{GR}u{GL}v{GU}w{GD}n{GC}"
17939# When translating a termcap file, ncurses tic will do this automatically.
17940# The double forms characters don't fit the SVr4 terminfo model.
17941#
17942# AT&T Extensions:
17943#
17944# The old AT&T 5410, 5420, 5425, pc6300plus, 610, and s4 entries used a set of
17945# nonstandard capabilities.  Its signature is the KM capability, used to name
17946# some sort of keymap file.  EE, BO, CI, CV, XS, DS, FL and FE are in this
17947# set.  Comments in the original, and a little cross-checking with other AT&T
17948# documentation, seem to establish that BO=:mr: (start reverse video), DS=:mh:
17949# (start dim), XS=:mk: (secure/invisible mode), EE=:me: (end highlights),
17950# FL=:LO: (enable soft labels), FE=:LF: (disable soft labels), CI=:vi: (make
17951# cursor invisible), and CV=:ve: (make cursor normal).
17952#
17953# HP Extensions
17954#
17955# The HP library (as of mid-1995, their term.h file version 70.1) appears to
17956# have the System V capabilities up to SVr1 level.  After that, it supports
17957# two nonstandard caps meml and memu corresponding to the old termcap :ml:,
17958# :mu: capabilities.  After that, it supports caps plab_norm, label_on,
17959# label_off, and key_f11..key_f63 capabilities like SVr4's.  This makes the
17960# HP binary format incompatible with SVr4's.
17961#
17962# IBM Extensions
17963#
17964# There is a set of nonstandard terminfos used by IBM's AIX operating system.
17965# The AIX terminfo library diverged from SVr1 terminfo, and replaces all
17966# capabilities following prtr_non with the following special capabilties:
17967# box[12], batt[12], colb[0123456789], colf[0123456789], f[01234567], kbtab,
17968# kdo, kcmd, kcpn, kend, khlp, knl, knpn, kppn, kppn, kquit, ksel, kscl, kscr,
17969# ktab, kmpf[123456789], apstr, ksf1..ksf10, kf11...kf63, kact, topl, btml,
17970# rvert, lvert.   Some of these are identical to XPG4/SVr4 equivalents:
17971# kcmd, kend, khlp, and kf11...kf63.  Two others (kbtab and ksel) can be
17972# renamed (to kcbt and kslt).  The places in the box[12] capabilities
17973# correspond to acsc chars, here is the mapping:
17974#
17975#	box1[0]  = ACS_ULCORNER
17976#	box1[1]  = ACS_HLINE
17977#	box1[2]  = ACS_URCORNER
17978#	box1[3]  = ACS_VLINE
17979#	box1[4]  = ACS_LRCORNER
17980#	box1[5]  = ACS_LLCORNER
17981#	box1[6]  = ACS_TTEE
17982#	box1[7]  = ACS_RTEE
17983#	box1[8]  = ACS_BTEE
17984#	box1[9]  = ACS_LTEE
17985#	box1[10] = ACS_PLUS
17986#
17987# The box2 characters are the double-line versions of these forms graphics.
17988# The AIX binary terminfo format is incompatible with SVr4's.
17989#
17990# Iris console extensions:
17991#
17992# HS is half-intensity start; HE is half-intensity end
17993# CT is color terminal type (for Curses & rogue)
17994# CP is color change escape sequence
17995# CZ are color names (for Curses & rogue)
17996#
17997# The ncurses tic utility recognizes HS as an alias for mh <dim>.
17998#
17999# TC Extensions:
18000#
18001# There is a set of extended termcaps associated with something
18002# called the "Terminal Control" or TC package created by MainStream Systems,
18003# Winfield Kansas.  This one also uses GS/GE for as/ae, and also uses
18004# CF for civis and CO for cvvis.  Finally, they define a boolean :ct:
18005# that flags color terminals.
18006#
18007######## CHANGE HISTORY
18008#
18009# The last /etc/termcap version maintained by John Kunze was 8.3, dated 8/5/94.
18010# Releases 9 and up are maintained by Eric S. Raymond as part of the ncurses
18011# project.
18012#
18013# This file contains all the capability information present in John Kunze's
18014# last version of the termcap master file, except as noted in the change
18015# comments at end of file.  Some information about very ancient obsolete
18016# capabilities has been moved to comments.  Some all-numeric names of older
18017# terminals have been retired.
18018#
18019# I changed :MT: to :km: (the 4.4BSD name) everywhere.  I commented out some
18020# capabilities (EP, dF, dT, dV, kn, ma, ml, mu, xr, xx) that are no longer
18021# used by BSD curses.
18022#
18023# The 9.1.0 version of this file was translated from my lightly-edited copy of
18024# 8.3, then mechanically checked against 8.3 using Emacs Lisp code written for
18025# the purpose.  Unless the ncurses tic implementation and the Lisp code were
18026# making perfectly synchronized mistakes which I then failed to catch by
18027# eyeball, the translation was correct and perfectly information-preserving.
18028#
18029# Major version number bumps correspond to major version changes in ncurses.
18030#
18031# Here is a log of the changes since then:
18032#
18033# 9.1.0 (Wed Feb  1 04:50:32 EST 1995):
18034#	* First terminfo master translated from 8.3.
18035# 9.2.0 (Wed Feb  1 12:21:45 EST 1995):
18036#	* Replaced Wyse entries with updated entries supplied by vendor.
18037#
18038# 9.3.0 (Mon Feb  6 19:14:40 EST 1995):
18039#	* Added contact & status info from G. Clark Brown <clark@sssi.com>.
18040# 9.3.1 (Tue Feb  7 12:00:24 EST 1995):
18041#	* Better XENIX keycap translation.  Describe TC termcaps.
18042#	* Contact and history info supplied by Qume.
18043# 9.3.2 (Sat Feb 11 23:40:02 EST 1995):
18044#	* Raided the Shuford FTP site for recent termcaps/terminfos.
18045#	* Added information on X3.64 and VT100 standard escape sequences.
18046# 9.3.3 (Mon Feb 13 12:26:15 EST 1995):
18047#	* Added a correct X11R6 xterm entry.
18048#	* Fixed terminfo translations of padding.
18049# 9.3.4 (Wed Feb 22 19:27:34 EST 1995):
18050#	* Added correct acsc/smacs/rmacs strings for vt100 and xterm.
18051#	* Added u6/u7/u8/u9 capabilities.
18052#	* Added PCVT entry.
18053# 9.3.5 (Thu Feb 23 09:37:12 EST 1995):
18054#	* Emacs uses :so:, not :mr:, for its mode line.  Fix linux entry
18055#	  to use reverse-video standout so Emacs will look right.
18056#	* Added el1 capability to ansi.
18057#	* Added smacs/rmacs to ansi.sys.
18058#
18059# 9.4.0 (Sat Feb 25 16:43:25 EST 1995):
18060#	* New mt70 entry.
18061#	* Added COPYRIGHTS AND OTHER DELUSIONS.
18062#	* Added AT&T 23xx & 500/513, vt220 and vt420, opus3n1+, netronics
18063#	  smartvid & smarterm, ampex 175 & 219 & 232,
18064#	  env230, falco ts100, fluke, intertube, superbrain, ncr7901, vic20,
18065#	  ozzie, trs200, tr600, Tandy & Texas Instruments VDTs, intext2,
18066#	  screwpoint, fviewpoint, Contel Business Systems, Datamedia Colorscan,
18067#	  adm36, mime314, ergo4000, ca22851.  Replaced att7300, esprit, dd5500.
18068#	* Replaced the Perkin-Elmer entries with vendor's official ones.
18069#	* Restored the old minimal-ansi entry, luna needs it.
18070#	* Fixed some incorrect ip and proportional-padding translations.
18071# 9.4.1 (Mon Feb 27 14:18:33 EST 1995):
18072#	* Fix linux & AT386 sgr strings to do A_ALTCHARSET turnoff correctly.
18073#	* Make the xterm entry 65 lines again; create xterm25 and xterm24
18074#	  to force a particular height.
18075#	* Added beehive4 and reorganized other Harris entries.
18076# 9.4.2 (Thu Mar  9 01:45:44 EST 1995):
18077#	* Merged in DEC's official entries for its terminals.  The only old
18078#	  entry I kept was Doug Gwyn's alternate vt100 (as vt100-avo).
18079#	* Replaced the translated BBN Bitgraph entries with purpose-built
18080#	  ones from AT&T's SVr3.
18081#	* Replaced the AT&T entries with AT&T's official terminfos.
18082#	* Added teleray 16, vc415, cops10.
18083#	* Merged in many individual capabilities from SCO terminfo files.
18084# 9.4.3 (Mon Mar 13 02:37:53 EST 1995):
18085#	* Typo fixes.
18086#	* Change linux entry so A_PROTECT enables IBM-PC ROM characters.
18087# 9.4.4 (Mon Mar 27 12:32:35 EST 1995):
18088#	* Added tty35, Ann Arbor Guru series. vi300 and 550, cg7900, tvi803,
18089#	  pt210, ibm3164, IBM System 1, ctrm, Tymshare scanset, dt200, adm21,
18090#	  simterm, citoh and variants.
18091#	* Replaced sol entry with sol1 and sol2.
18092#	* Replaced Qume QVT and Freedom-series entries with purpose-built
18093#	  terminfo entries.
18094#	* Enhanced vt220, tvi910, tvi924, hpterm, hp2645, adm42, tek
18095#	  and dg200 entries using caps from from SCO.
18096#	* Added the usual set of function-key mappings to ANSI entry.
18097#	* Corrected xterm's function-key capabilities.
18098# 9.4.5 (Tue Mar 28 14:27:49 EST 1995):
18099#	* Fix in xterm entry, cub and cud are not reliable under X11R6.
18100# 9.4.6 (Thu Mar 30 14:52:15 EST 1995):
18101#	* Fix in xterm entry, get the arrow keys right.
18102#	* Change some \0 escapes to \200.
18103# 9.4.7 (Tue Apr  4 11:27:11 EDT 1995)
18104#	* Added apple (Videx card), adm1a, oadm31.
18105#	* Fixed malformed ampex csr.
18106#	* Fixed act4, cyb110; they had old-style prefix padding left in.
18107#	* Changed mandatory to advisory padding in many entries.
18108#	* Replaced HP entries up to hpsub with purpose-built ones.
18109#	* Blank rmir/smir/rmdc/smdc capabilities removed.
18110#	* Small fixes merged in from SCO entries for lpr, fos, tvi910+, tvi924.
18111# 9.4.8 (Fri Apr  7 09:36:34 EDT 199):
18112#	* Replaced the Ann Arbor entries with SCO's, the init strings are
18113#	  more efficient (but the entries otherwise identical).
18114#	* Added dg211 from Shuford archive.
18115#	* Added synertek, apple-soroc, ibmpc, pc-venix, pc-coherent, xtalk,
18116#	  adm42-nl, pc52, gs6300, xerox820, uts30.
18117#	* Pull SCO's padding into vi200 entry.
18118#	* Improved capabilities for tvi4107 and other Televideo and Viewpoint
18119#	  entries merged in from SCO's descriptions.
18120#	* Fixed old-style prefix padding on zen50, h1500.
18121#	* Moved old superbee entry to superbee-xsb, pulled in new superbee
18122#	  entry from SCO's description.
18123#	* Reorganized the special entries.
18124#	* Added lm#0 to cbunix and virtual entries.
18125#
18126# 9.5.0 (Mon Apr 10 11:30:00 EDT 1995):
18127#	* Restored cdc456tst.
18128#	* Fixed sb1 entry, SCO erroneously left out the xsb glitch.
18129#	* Added megatek, beacon, microkit.
18130#	* Freeze for ncurses-1.9 release.
18131# 9.5.1 (Fri Apr 21 12:46:42 EDT 1995):
18132#	* Added historical data for TAB.
18133#	* Comment fixes from David MacKenzie.
18134#	* Added the new BSDI pc3 entry.
18135# 9.5.2 (Tue Apr 25 17:27:52 EDT 1995)
18136#	* A change in the tic -C logic now ensures that all entries in
18137#	  the termcap translation will fit in < 1024 bytes.
18138#	* Added `bobcat' and `gator' HP consoles and the Nu machine entries
18139#	  from GNU termcap file.  This merges in all their local information.
18140# 9.5.3 (Tue Apr 25 22:28:13 EDT 1995)
18141#	* Changed tic -C logic to dump all capabilities used by GNU termcap.
18142#	* Added warnings about entries with long translations (restoring
18143#	  all the GNU termcaps pushes a few over the edge).
18144# 9.5.4 (Wed Apr 26 15:35:09 EDT 1995)
18145#	* Yet another tic change, and a couple of entry tweaks, to reduce the
18146#	  number of long (> 1024) termcap translations back to 0.
18147#
18148# 9.6.0 (Mon May  1 10:35:54 EDT 1995)
18149#	* Added kf13-kf20 to Linux entry.
18150#	* Regularize Prime terminal names.
18151#	* Historical data on Synertek.
18152#	* Freeze for ncurses-1.9.1.
18153# 9.6.1 (Sat May  6 02:00:52 EDT 1995):
18154#	* Added true xterm-color entry, renamed djm's pseudo-color entry.
18155#	* Eliminate whitespace in short name fields, this tanks some scripts.
18156#	* Name field changes to shorten some long entries.
18157#	* Termcap translation now automatically generates empty rmir/smir
18158#	  when ich1/ich is present (copes with an ancient vi bug).
18159#	* Added `screen' entries from FSF's screen-3.6.2.
18160#	* Added linux-nic and xterm-nic entries.
18161# 9.6.2 (Sat May  6 17:00:55 EDT 1995):
18162#	* Change linux entry to use smacs=\E[11m and have an explicit acsc,
18163#	  eliminating some special-case code in ncurses.
18164#
18165# 9.7.0 (Tue May  9 18:03:12 EDT 1995):
18166#	* Added vt320-k3, rsvidtx from the Emacs termcap.dat file.  I think
18167#	  that captures everything unique from it.
18168#	* Added reorder script generator.
18169#	* Freeze for ncurses 1.9.2 release.
18170# 9.7.1 (Thu Jun 29 09:35:22 EDT 1995):
18171#	* Added Sean Farley's kspd, flash, rs1 capabilities for linux.
18172#	* Added Olaf Siebert's corrections for adm12.
18173#	* ansi-pc-color now includes the colors and pairs caps, so that
18174#	  entries which use it will inherit them automatically.
18175#	* The linux entry can now recognize the center (keypad 5) key.
18176#	* Removed some junk that found its way into Linux acsc.
18177#
18178# 9.8.0 (Fri Jul  7 04:46:57 EDT 1995):
18179#	* Add 50% cut mark as a desperate hack to reduce tic's core usage.
18180#	* xterm doesn't try to use application keypad mode any more.
18181#	* Freeze for ncurses-1.9.3 release.
18182# 9.8.1 (Thu Jul 19 17:02:12 EDT 1995):
18183#	* Added corrected sun entry from vendor.
18184#	* Added csr capability to linux entry.
18185#	* Peter Wemm says the at386 hpa should be \E[%i%p1%dG, not \E[%p1%dG.
18186#	* Added vt102-nsgr to cope with stupid IBM PC `VT100' emulators.
18187#	* Some commented-out caps in long entries come back in, my code
18188#	  for computing string-table lengths had a bug in it.
18189#	* pcansi series modified to fit comm-program reality better.
18190# 9.8.2 (Sat Sep  9 23:35:00 EDT 1995):
18191#	* BSD/OS actually ships the ibmpc3 bold entry as its console.
18192#	* Correct some bad aliases in the pcansi series
18193#	* Added entry for QNX console.
18194#	* Clean up duplicate long names for use with 4.4 library.
18195#	* Change vt100 standout to be normal reverse vide, not bright reverse;
18196#	  this makes the Emacs status line look better.
18197# 9.8.3 (Sun Sep 10 13:07:34 EDT 1995):
18198#	* Added Adam Thompson's VT320 entries, also his dtx-sas and z340.
18199#	* Minor surgery, mostly on name strings, to shorten termcap version.
18200#
18201# 9.9.0 (Sat Sep 16 23:03:48 EDT 1995):
18202#	* Added dec-vt100 for use with the EWAN emulator.
18203#	* Added kmous to xterm for use with xterm's mouse-tracking facility.
18204#	* Freeze for 1.9.5 alpha release.
18205# 9.9.1 (Wed Sep 20 13:46:09 EDT 1995):
18206#	* Changed xterm lines to 24, the X11R6 default.
18207# 9.9.2 (Sat Sep 23 21:29:21 EDT 1995):
18208#	* Added 7 newly discovered, undocumented acsc characters to linux
18209#	  entry (the pryz{|} characters).
18210#	* ncurses no longer steals A_PROTECT.  Simplify linux sgr accordingly.
18211#	* Correct two typos in the xterm entries introduced in 9.9.1.
18212#	* I finally figured out how to translate ko capabilities.  Done.
18213#	* Added tvi921 entries from Tim Theisen.
18214#	* Cleanup: dgd211 -> dg211, adm42-nl -> adm42-nsl.
18215#	* Removed mystery tec entry, it was neither interesting nor useful.
18216#	* shortened altos3, qvt203, tvi910+, tvi92D, tvi921-g, tvi955, vi200-f,
18217#	  vi300-ss, att505-24, contel301, dm3045, f200vi, pe7000c, vc303a,
18218#	  trs200, wind26, wind40, wind50, cdc456tst, dku7003, f110, dg211,
18219#	  by making them relative to use capabilities
18220#	* Added cuf1=^L to tvi925 from deleted variant tvi925a.
18221#	* fixed cup in adm22 entry and parametrized strings in vt320-k3.
18222#	* added it#8 to entries that used to have :pt: -- tvi912, vi200,
18223#	  ampex80,
18224#	* Translate all home=\E[;H capabilities to home=\E[H, they're
18225#	  equivalent.
18226#	* Translate \E[0m -> \E[m in [rs]mso, [rs]mul, and init strings of
18227#	  vt100 and ANSI-like terminals.
18228# 9.9.3 (Tue Sep 26 20:11:15 EDT 1995):
18229#	* Added it#8 and ht=\t to *all* entries with :pt:; the ncurses tic
18230#	  does this now, too.
18231#	* fviewpoint is gone, it duplicated screwpoint.
18232#	* Added hp2627, graphos, graphos-30, hpex, ibmega, ibm8514, ibm8514-c,
18233#	  ibmvga, ibmvga-c, minix, mm340, mt4520-rv, screen2, screen3,
18234#	  versaterm, vi500, vsc, vt131, vt340, vt400 entries from UW.
18235#	  The UW vi50 replaces the old one, which becomes vi50adm,
18236#	* No more embedded commas in name fields.
18237#
18238# 9.10.0 (Wed Oct  4 15:39:37 EDT 1995):
18239#	* XENIX forms characters in fos, trs16, scoansi become acsc strings,
18240#	* Introduced klone+* entries for describing Intel-console behavior.
18241#	* Linux kbs is default-mapped to delete for some brain-dead reason.
18242#	* -nsl -> -ns.  The -pp syntax is obsolete.
18243#	* Eliminate [A-Z]* primaries in accordance with SVr4 terminfo docs.
18244#	* Make xterm entry do application-keypad mode again.  I got complaints
18245#	  that it was messing up someone's 3270 emulator.
18246#	* Added some longname fields in order to avoid warning messages from
18247#	  older tic implementations.
18248#	* According to ctlseqs.ms, xterm has a full vt100 graphics set.  Use
18249#	  it! (This gives us pi, greater than, less than, and a few more.)
18250#	* Freeze for ncurses-1.9.6 release.
18251# 9.10.1 (Sat Oct 21 22:18:09 EDT 1995):
18252#	* Add xon to a number of console entries, they're memory-mapped and
18253#	  don't need padding.
18254#	* Correct the use dependencies in the ansi series.
18255#	* Hand-translate more XENIX capabilities.
18256#	* Added hpterm entry for HP's X terminal emulator.
18257#	* Added aixterm entries.
18258#	* Shortened four names so everything fits in 14 chars.
18259#
18260# 9.11.0 (Thu Nov  2 17:29:35 EST 1995):
18261#	* Added ibcs2 entry and info on iBCS2 standard.
18262#	* Corrected hpa/vpa in linux entry.  They still fail the worm test.
18263#	* We can handle the HP meml/memu capability now.
18264#	* Added smacs to klone entries, just as documentation.
18265#	* Carrected ansi.sys and cit-500 entries.
18266#	* Added z39, vt320-k311, v220c, and avatar entries.
18267#	* Make pcansi use the ansi.sys invis capability.
18268#	* Added DIP switch descriptions for vt100, adm31, tvi910, tvi920c,
18269#	  tvi925, tvi950, dt80, ncr7900i, h19.
18270#	* X3.64 has been withdrawn, change some references.
18271#	* Removed function keys from ansi-m entry.
18272#	* Corrected ansi.sys entry.
18273#	* Freeze for ncurses-1.9.7 release.
18274# 9.11.1 (Tue Nov  6 18:18:38 EST 1995):
18275#	* Added rmam/smam capabilities to many entries based on init strings.
18276#	* Added correct hpa/vpa to linux.
18277#	* Reduced several entries relative to vt52.
18278# 9.11.2 (Tue Nov  7 00:21:06 EST 1995):
18279#	* Exiled some utterly unidentifiable custom and homebrew types to the
18280#	  UFO file; also, obsolete small-screen hardware; also, entries which
18281#	  look flat-out incorrect, garbled, or redundant.  These include the
18282#	  following entries: carlock, cdc456tst, microkit, qdss, ramtek, tec,
18283#	  tec400, tec500, ubell, wind, wind16, wind40, wind50, plasma, agile,
18284#	  apple, bch, daleblit, nucterm, ttywilliams, nuterminal, nu24, bnu,
18285#	  fnu, nunix-30, nunix-61, exidy, ex3000, sexidy, pc52, sanyo55,
18286#	  yterm10, yterm11, yterm10nat, aed, aed-ucb, compucolor, compucolor2,
18287#	  vic20, dg1, act5s, netx, smartvid, smarterm, sol, sol2, dt200,
18288#	  trs80, trs100, trs200, trs600, xitex, rsvidtx, vid, att2300-x40,
18289#	  att2350-x40, att4410-nfk, att5410-ns, otty5410, att5425-nl-w,
18290#	  tty5425-fk, tty5425-w-fk, cita, c108-na, c108-rv-na, c100-rv-na,
18291#	  c108-na-acs, c108-rv-na-acs, ims950-ns, infotonKAS, ncr7900i-na,
18292#	  regent60na, scanset-n, tvi921-g, tvi925n, tvi925vbn, tvi925vb,
18293#	  vc404-na, vc404-s-na, vt420nam, vt420f-nam, vt420pc-nam, vt510nam,
18294#	  vt510pc-nam, vt520nam, vt525nam, xterm25, xterm50, xterm65, xterms.
18295#	* Corrected pcvt25h as suggested by Brian C. Grayson
18296#	  <bgrayson@pine.ece.utexas.edu>.
18297# 9.11.3 (Thu Nov  9 12:14:40 EST 1995):
18298#	* Added kspd=\E[P, kcbt=\E[Z, to linux entry, changed kbs back to ^H.
18299#	* Added kent=\EOM to xterm entry.
18300#
18301# 9.11.4 (Fri Nov 10 08:31:35 EST 1995):
18302#	* Corrected gigi entry.
18303#	* Restored cuf/cud1 to xterm, their apparent bugginess was due to
18304#	  bad hpa/vpa capabilities.
18305#	* Corrected flash strings to have a uniform delay of .2 sec.  No
18306#	  more speed-dependent NUL-padding!
18307#	* terminfo capabilities in comments bracketed with <>.
18308# 9.11.5 (Fri Nov 10 15:35:02 EST 1995):
18309#	* Replaced pcvt with the 3.31 pcvt entries.
18310#	* Freeze for 1.9.7a.
18311# 9.11.6 (Mon Nov 13 10:20:24 EST 1995):
18312#	* Added emu entry from the X11R6 contrib tape sources.
18313#
18314# 9.12.0 (Wed Nov 29 04:22:25 EST 1995):
18315#	* Improved iris-ansi and sun entries.
18316#	* More flash string improvements.
18317#	* Corrected wy160 & wy160 as suggested by Robert Dunn
18318#	* Added dim to at386.
18319#	* Reconciled pc3 and ibmpc3 with the BSDI termcap file.  Keith says
18320#	  he's ready to start using the termcap generated from this one.
18321#	* Added vt102-w, vt220-w, xterm-bold, wyse-vp, wy75ap, att4424m,
18322#	  ln03, lno3-w, h19-g, z29a*, qdss.  Made vt200 an alias of vt220.
18323#	* Improved hpterm, apollo consoles, fos, qvt101, tvi924. tvi925,
18324#	  att610, att620, att630,
18325#	* Changed hazeltine name prefix from h to hz.
18326#	* Sent t500 to the UFI file.
18327#	* I think we've sucked all the juice out of BSDI's termcap file now.
18328#	* Freeze for ncurses 1.9.8 release
18329# 9.12.1 (Thu Nov 30 03:14:06 EST 1995)
18330#	* Unfreeze, linux kbs needed to be fixed.
18331#	* Tim Theisen pinned down a bug in the DMD firmware.
18332# 9.12.2 (Thu Nov 30 19:08:55 EST 1995):
18333#	* Fixes to ansi and klone capabilities (thank you, Aaron Ucko).
18334#	  (The broken ones had been shadowed by sgr.)
18335# 9.12.3 (Thu Dec  7 17:47:22 EST 1995):
18336#	* Added documentation on ECMA-48 standard.
18337#	* New Amiga entry.
18338# 9.12.4 (Thu Dec 14 04:16:39 EST 1995):
18339#	* More ECMA-48 stuff
18340#	* Corrected typo in minix entry, added pc-minix.
18341#	* Corrected khome/kend in xterm (thank you again, Aaron Ucko).
18342#	* Added rxvt entry.
18343#	* Added 1.3.x color-change capabilities to linux entry.
18344# 9.12.5 (Tue Dec 19 00:22:10 EST 1995):
18345#	* Corrected rxvt entry khome/kend.
18346#	* Corrected linux color change capabilities.
18347#	* NeXT entries from Dave Wetzel.
18348#	* Cleaned up if and rf file names (all in /usr/share now).
18349#	* Changed linux op capability to avoid screwing up a background color
18350#	  pair set by setterm.
18351# 9.12.6 (Wed Feb  7 16:14:35 EST 1996):
18352#	* Added xterm-sun.
18353# 9.12.7 (Fri Feb  9 13:27:35 EST 1996):
18354#	* Added visa50.
18355#
18356# 9.13.0 (Sun Mar 10 00:13:08 EST 1996):
18357#	* Another sweep through the Shuford archive looking for new info.
18358#	* Added dg100 alias to dg6053 based on a comp.terminals posting.
18359# 	* Added st52 from Per Persson.
18360#	* Added eterm from the GNU Emacs 19.30 distribution.
18361#	* Freeze for 1.9.9.
18362# 9.13.1 (Fri Mar 29 14:06:46 EST 1996):
18363#	* FreeBSD console entries from Andrew Chernov.
18364#	* Removed duplicate Atari st52 name.
18365# 9.13.2 (Tue May  7 16:10:06 EDT 1996)
18366#	* xterm doesn't actually have ACS_BLOCK.
18367#	* Change klone+color setf/setb to simpler forms that can be
18368#	  translated into termcap.
18369#	* Added xterm1.
18370#	* Removed mechanically-generated junk capabilities from cons* entries.
18371#	* Added color support to bsdos.
18372# 9.13.3 (Thu May  9 10:35:51 EDT 1996):
18373#	* Added Wyse 520 entries from Wm. Randolph Franklin <wrf@ecse.rpi.edu>.
18374#	* Created ecma+color, linux can use it.  Also added ech to linux.
18375#	* Teach xterm about more keys. Add Thomas Dickey's 3.1.2E updates.
18376#	* Add descriptions to FreeBSD console entries.  Also shorten
18377#	  some aliases to <= 14 chars for portability.
18378#	* Added x68k console
18379#	* Added OTbs to several VT-series entries.
18380# 9.13.4 (Wed May 22 10:54:09 EDT 1996):
18381#	* screen entry update for 3.7.1 from Michael Alan Dorfman.
18382# 9.13.5 (Wed Jun  5 11:22:41 EDT 1996):
18383#	* kterm correction due to Kenji Rikitake.
18384#	* ACS correction in vt320-kll due to Phillippe De Muyter.
18385# 9.13.6 (Sun Jun 16 15:01:07 EDT 1996):
18386#	* Sun console entry correction from J.T. Conklin.
18387#	* Changed all DEC VT300 and up terminals to use VT300 tab set
18388# 9.13.7 (Mon Jul  8 20:14:32 EDT 1996):
18389#	* Added smul to linux entry (we never noticed it was missing
18390#	  because of sgr!).
18391#	* Added rmln to hp+labels (deduced from other HP entries).
18392#	* Added vt100 acsc capability to vt220, vt340, vt400, d800, dt80-sas,
18393#	  pro350, att7300, 5420_2, att4418, att4424, att4426, att505, vt320-k3.
18394#	* Corrected vt220 acsc.
18395#	* The klone+sgr and klone+sgr-dumb entries now use klone+acs;
18396#	  this corresponds to reality and helps prevent some tic warnings.
18397#	* Added sgr0 to c101, pcix, vt100-nav, screen2, oldsun, next, altos2,
18398#	  hpgeneric, hpansi, hpsub, hp236, hp700-wy, bobcat, dku7003, adm11,
18399#	  adm12, adm20, adm21, adm22, adm31, adm36, adm42, pt100, pt200,
18400#	  qvt101, tvi910, tvi921, tvi92B, tvi925, tvi950, tvi970, wy30-mc,
18401#	  wy50-mc, wy100, wyse-vp, ampex232, regent100, viewpoint, vp90,
18402#	  adds980, cit101, cit500, contel300, cs10, dm80, falco, falco-p,
18403#	  f1720a, go140, sb1, superbeeic, microb, ibm8512, kt7, ergo4000,
18404#	  owl, uts30, dmterm, dt100, dt100, dt110, appleII, apple-videx,
18405#	  lisa, trsII, atari, st52, pc-coherent, basis, m2-man, bg2.0, bg1.25,
18406#	  dw3, ln03, ims-ansi, graphos, t16, zen30, xtalk, simterm, d800,
18407#	  ifmr, v3220, wy100q, tandem653, ibmaed.
18408#	* Added DWK terminal description.
18409# 9.13.8 (Wed Jul 10 11:45:21 EDT 1996):
18410#	* Many entries now have highlights inherited from adm+sgr.
18411#	* xterm entry now corresponds to XFree86 3.1.2E, with color.
18412#	* xtitle and xtitle-twm enable access to the X status line.
18413#	* Added linux-1.3.6 color palette caps in conventional format.
18414#	* Added adm1178 terminal.
18415#	* Move fos and apollo terminals to obsolete category.
18416#	* Aha! The BRL terminals file told us what the Iris extensions mean.
18417#	* Added, from the BRL termcap file: rt6221, rt6221-w, northstar,
18418#	  commodore, cdc721-esc, excel62, osexec.  Replaced from the BRL file:
18419#	  cit500, adm11.
18420# 9.13.9 (Mon Jul 15 00:32:51 EDT 1996):
18421#	* Added, from the BRL termcap file: cdc721, cdc721l, cdc752, cdc756,
18422#	  aws, awsc, zentec8001, modgraph48, rca vp3301/vp3501, ex155.
18423#	* Corrected, from BRL termcap file: vi50.
18424#	* Better rxvt entry & corrected xterm entries from Thomas Dickey.
18425# 9.13.10 (Mon Jul 15 12:20:13 EDT 1996):
18426#	* Added from BRL: cit101e & variants, hmod1, vi200, ansi77, att5620-1,
18427#	  att5620-s, att5620-s, dg210, aas1901, hz1520, hp9845, osborne
18428#	  (old osborne moved to osborne-w), tvi970-vb, tvi970-2p, tvi925-hi,
18429#	  tek4105brl, tek4106brl, tek4107brl,tek4109brl, hazel, aepro,
18430#	  apple40p, apple80p, appleIIgs, apple2e, apple2e-p, apple-ae.
18431#	* Paired-attribute fixes to various terminals.
18432#	* Sun entry corrections from A. Lukyanov & Gert-Jan Vons.
18433#	* xterm entry corrections from Thomas Dickey.
18434# 9.13.11 (Tue Jul 30 16:42:58 EDT 1996):
18435#	* Added t916 entry, translated from a termcap in SCO's support area.
18436#	* New qnx entry from Michael Hunter.
18437# 9.13.12 (Mon Aug  5 14:31:11 EDT 1996):
18438#	* Added hpex2 from Ville Sulko.
18439#	* Fixed a bug that ran the qnx and pcvtXX together.
18440# 9.13.13 (Fri Aug  9 01:16:17 EDT 1996):
18441#	* Added dtterm entry from Solaris CDE.
18442# 9.13.14 (Tue Sep 10 15:31:56 EDT 1996):
18443#	* corrected pairs#8 typo in dtterm entry.
18444#	* added tvi9065.
18445# 9.13.15 (Sun Sep 15 02:47:05 EDT 1996):
18446#	* updated xterm entry to cover 3.1.2E's new features.
18447# 9.13.16 (Tue Sep 24 12:47:43 EDT 1996):
18448#	* Added new minix entry
18449#	* Removed aliases of the form ^[0-9]* for obsolete terminals.
18450#	* Commented out linux-old, nobody's using pre-1.2 kernels now.
18451# 9.13.17 (Fri Sep 27 13:25:38 EDT 1996):
18452#	* Added Prism entries and kt7ix.
18453#	* Caution notes about EWAN and tabset files.
18454#	* Changed /usr/lib/tabset -> /usr/share/tabset.
18455#	* Added acsc/rmacs/smacs to vt52.
18456# 9.13.18 (Mon Oct 28 13:24:59 EST 1996):
18457#	* Merged in Thomas Dickey's reorganization of the xterm entries;
18458#	  added technical corrections to avoid warning messages.
18459# 9.13.19 (Sat Nov 16 16:05:49 EST 1996):
18460#	* Added rmso=\E[27m in Linux entry.
18461#	* Added koi8-r support for Linux console.
18462#	* Replace xterm entries with canonical ones from XFree86 3.2.
18463# 9.13.20 (Sun Nov 17 23:02:51 EST 1996):
18464#	* Added color_xterm from Jacob Mandelson
18465# 9.13.21 (Mon Nov 18 12:43:42 EST 1996):
18466#	* Back off the xterm entry to use r6 as a base.
18467# 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
18468#	* Added dec-vt220 at Adrian Garside's request.
18469# 9.13.23 (Fri Feb 21 16:36:06 EST 1997):
18470#	* Replaced minitel-2 entry.
18471#	* Added MGR, ansi-nt.
18472#	* Minor corrections to xterm entries.
18473#	* Replaced EWAN telnet entry.
18474#	* Dropped the reorder script generator.  It was a fossil.
18475# 9.13.24 (Sun Feb 23 20:55:23 EST 1997):
18476#	* Thorsten Lockert added termcap `bs' to a lot of types, working from
18477#	  the 4.4BSD Lite2 file.
18478# 9.13.25 (Fri Jun 20 12:33:36 EDT 1997):
18479#	* Added Datapoint 8242, pilot, ansi_psx, rbcomm, vt220js.
18480#	* Updated iris-ansi; corrected vt102-w.
18481#	* Switch base xterm entry to 3.3 level.
18482# 9.13.26 (Mon Jun 30 22:45:45 EDT 1997)
18483#	* Added basic4.
18484#	* Removed rmir/smir from tv92B.
18485#
18486# 10.2.0 (Sat Feb 28 12:47:36 EST 1998):
18487#	* add hds200 description (Walter Skorski)
18488#	* add beterm entry (Fred Fish)
18489#	* add Thomas Dickey's xterm-xf86-v40, xterm-8bit, xterm-16color,
18490#	  iris-color entries.
18491#	* add emx entries.
18492#	* Replaced unixpc entry with Benjamin Sittler's corrected version.
18493#	* Replaced xterm/rxvt/emu/syscons entries with Thomas Dickey's
18494#	  versions.
18495#	* remove sgr string from qnx based on report by Xiaodan Tang
18496#	* Added u8/u9, removed rmul/smul from sun-il.
18497#	* 4.2 tic displays \0 rather than \200.
18498#	* add linux-koi8r to replace linux-koi8 (which uses a corrupt acsc,
18499#	  apparently based on cp-866).
18500#	* Merged in Pavel Roskin's acsc for linux-koi8
18501#	* Corrected some erroneous \\'s to \.
18502#	* 4.2 ncurses has been changed to use setaf/setab, consistent w/SysV.
18503#	* II -> ii in pcvtXX, screen, xterm.
18504#	* Removed \n chars following ANSI escapes in sgr & friends.
18505#	* Updated Wyse entries.
18506#	* h19 corrections from Tim Pierce.
18507#	* Noted that the dm2500 has both ich and smir.
18508#	* added pccons for the Alpha under OSF/1.
18509#	* Added Sony NEWS workstation entries and cit101e-rv.
18510#	* Reverted `amiga'; to Kent Polk's version, as I'm told
18511#	  the Verkuil entry messes up with Amiga Telnet.
18512# 10.2.1 (Sun Mar  8 18:32:04 EST 1998):
18513#	* Corrected attributions in 10.2.0 release notes.
18514#	* Scanned the Shuford archive for new terminfos and information.
18515#	* Removed sgr from qnx entry (Thomas Dickey).
18516#	* Added entries for ICL and Kokusai Data Systems terminals.
18517#	* Incorporated NCR terminfos from the Boundless Technology FTP site.
18518#	* Incorporated att700 from the Boundless Technology FTP site.
18519#	* Miscellaneous contact-address and Web-page updates.
18520#
18521# 1998/5/9
18522#	* add nxterm and xterm-color terminfo description (request by Cristian
18523#	  Gafton <gafton@redhat.com>).
18524#	* modify rxvt terminfo description to clear alternate screen before
18525#	  switching back to normal screen, for compatibility with applications
18526#	  which use xterm (reported by Manoj Kasichainula <manojk@io.com>).
18527#	* modify linux terminfo description to reset color palette (reported
18528#	  by Telford Tendys <telford@eng.uts.edu.au>).
18529#
18530# 1998/7/4
18531#	* merge changes from current XFree86 xterm terminfo descriptions.
18532#
18533# 1998/7/25
18534#	* Added minitel1 entries from Alexander Montaron.
18535#	* Added qnxt2 from Federico Bianchi.
18536#	* Added arm100 terminfo entries from Dave Millen.
18537#
18538# 1998/8/6
18539#	* Added ncsa telnet entries from Francesco Potorti
18540#
18541# 1998/8/15
18542#	* modify ncsa telnet entry to reflect color, other capabilities based on
18543#	  examination of the source code - T.Dickey.
18544#
18545# 1998/8/22
18546#	* Corrected some erroneous \\'s to \ (eterm, osborne) - TD.
18547#
18548# 1998/8/29
18549#	* Added Francesco Potorti's tuned Wyse 99 entries.
18550#	* dtterm enacs correction from Alexander V. Lukyanov.
18551#	* Add ncsa-ns, ncsa-m-ns and ncsa-m entries from esr version.
18552#	* correct a typo in icl6404 entry.
18553#	* add xtermm and xtermc
18554#
18555# 1998/9/26
18556#	* format most %'char' sequences to %{number}
18557#	* adapt IBM AIX 3.2.5 terminfo - T.Dickey
18558#	* merge Data General terminfo from Hasufin <hasufin@vidnet.net> - TD
18559#
18560# 1998/10/10
18561#	* update xterm-xfree86 to current (patch 84), for is2/rs2 changes - TD
18562#	* correct initialization string in xterm-r5, add misc other features
18563#	  to correspond with xterm patch 84 - TD
18564#
18565# 1998/12/19
18566#	* update xterm-xfree86 to current (patch 90), smcur/rmcur changes - TD
18567#	* add Mathew Vernon's mach console entries
18568#	* corrections for ncsa function-keys (report by Larry Virden)
18569#
18570# 1998/12/19
18571#	* change linux to use ncv#2, since underline does not work with color - TD
18572#
18573# 1999/1/9
18574#	* add kbt to iris-ansi, document other shift/control functionkeys - TD
18575#	* correct iris-ansi and iris-ansi-ap with respect to normal vs keypad
18576#	  application modes, change kent to use the correct keypad code - TD
18577#
18578# 1999/1/10
18579#	* add entry for Tera Term - TD
18580#
18581# 1999/1/23
18582#	* minor improvements for teraterm entry - TD
18583#	* rename several entries used by BSDI: bsdos to bsdos-pc-nobold,
18584#	  and bsdos-bold to bsdos-pc (Jeffrey C Honig)
18585#
18586# 1999/2/20
18587#	* resolve ambiguity of kend/kll/kslt and khome/kfnd/kich1 strings in
18588#	  xterm and ncsa entries by removing the unneeded ones.  Note that
18589#	  some entries will return kend & khome versus kslt and kfnd, for
18590#	  PC-style keyboards versus strict vt220 compatiblity - TD
18591#
18592# 1999/3/13
18593#	* adjust xterm-xfree86 khome/kend to match default PC-style keyboard
18594#	  tables - TD
18595#	* add 'crt' entry - TD
18596#	* correct typos in 'linux-c' entry - TD
18597#
18598# 1999/3/14
18599#	* update entries for BSD/OS console to use klone+sgr and klone+color
18600#	  (Jeffrey C Honig)
18601#
18602# 1999/3/27
18603#	* adjust xterm-xfree86 miscellaneous keypad keys, as per patch #94 - TD.
18604#
18605# 1999/4/10
18606#	* add linux-lat, from RedHat patches to ncurses 4.2
18607#
18608# 1999/4/17
18609#	* add complete set of default function-key definitions for scoansi - TD.
18610#
18611# 1999/7/3
18612#	* add cnorm, cvvis for Linux 2.2 kernels
18613#
18614# 1999/7/24
18615#	* add kmous to xterm-r5 -TD
18616#	* correct entries xterm+sl and xterm+sl-twm, which were missing the
18617#	  parent "use" clause -TD
18618#
18619# 1999/7/31
18620#	* corrected cnorm, added el1 in 'screen' description -TD
18621#
18622# 1999/8/14
18623#	* add ms-vt100 -TD
18624#
18625# 1999/8/21
18626#	* corrections to beterm entry -TD
18627#
18628# 1999/8/28
18629#	* add cygwin entry -TD
18630#
18631# 1999/9/4
18632#	* minor corrections for beterm entry -TD
18633#
18634# 1999/9/18
18635#	* add acsc string to HP 70092 terminfo entry -Joerg Wunsch
18636#
18637# 1999/9/25
18638#	* add amiga-8bit entry
18639#	* add console entries from NetBSD: ofcons, wsvt25, wsvt25m, rcons,
18640#	  rcons-color, based on
18641#	  ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/share/termcap/termcap.src
18642#	* add alias for iris-ansi-net
18643#
18644# 1999/10/2
18645#	* corrected scoansi entry's acsc, some function keys, add color -TD
18646#
18647# 1999/10/23
18648#	* add cnorm, cvvis to cons25w, and modify ncv to add 'dim' -TD
18649#	* reorder ncsa entries to make ncsa-vt220 use the alternate function
18650#	  key mapping, leaving Potorti's entries more like he named them -TD
18651#	* remove enter/exit am-mode from cygwin -TD
18652#
18653# 1999/10/30
18654#	* correct typos in several entries (missing '[' from CSI):
18655#	  mgr-sun, ncsa-m, vt320-k3, att505, avt-ns, as well as smir/rmir
18656#	  strings for avt-ns -TD
18657#	* add 'dim' to ncv mask for linux (report by Klaus Weide).
18658#
18659# 1999/11/27
18660#	* correct kf1-kf4 in xterm-r6 which were vt100-style PF1-PF4 -TD
18661#	* add hts to xterm-r6, and u6-u9 to xterm-r5 -TD
18662#	* add xterm-88color and xterm-256color -TD
18663#
18664# 1999/12/4
18665#	* add "obsolete" termcap strings -TD
18666#	* add kvt and gnome entries -TD
18667#
18668# 1999/12/11
18669#	* correct cup string for regent100 -TD
18670#
18671# 2000/1/1
18672#	* update mach, add mach-color based on Debian diffs for ncurses 5.0 -TD
18673#	* add entries for xterm-hp, xterm-vt220, xterm-vt52 and xterm-noapp -TD
18674#	* change OTrs capabilities to rs2 -TD
18675#	* add obsolete and extended capabilities to 'screen' -TD
18676#
18677# 2000/1/5
18678#	* remove kf0 from rxvt, vt520, vt525 and ibm5151 since it conflicts
18679#	  with kf10 -TD
18680#	* updated xterm-xf86-v40, making kdch1 correspond to vt220 'Remove',
18681#	  and adding kcbt -TD
18682#
18683# 2000/1/12
18684#	* remove incorrect khome/kend from xterm-xf86-v333, which was based on
18685#	  nonstandard resource settings -TD
18686#
18687# 2000/2/26
18688#	* minor fixes for xterm-*, based on Debian #58530 -TD
18689#
18690# 2000/3/4
18691#	* add several terminal types from esr's "11.0", as well as comments.
18692#	  bq300*, dku7102-old, dku7202, hft, lft, pcmw, pmcons, tws*, vip*,
18693#	  vt220-8bit, vt220-old, wy85-8bit
18694#
18695# 2000/3/18
18696#	* add several terminal types from esr's "11.0.1" (ansi-*).
18697#	* update OTxx capabilities for changes on 2000/3/4.
18698#	* revert part of vt220 change (request by Todd C Miller for OpenBSD)
18699#
18700# 2000/3/26
18701#	* move screen's AX extension to ecma+color, modify several entries to
18702#	  use that, adjusting ncv as needed -TD
18703#
18704# 2000/4/8
18705#	* add bsdos-pc-m, bsdos-pc-mono (Jeffrey C Honig)
18706#	* correct spelling error in entry name: bq300-rv was given as bg300-rv
18707#	  in esr's version.
18708#
18709# 2000/4/15
18710#	* add cud, ech, etc., to beterm based on feedback from Rico Tudor -TD
18711#	* correct color definition for ibm3164, make minor changes to other
18712#	  IBM terminal definitions based on recent terminfo descriptions -TD
18713#
18714# 2000/4/22
18715#	* add mgterm, from NetBSD -TD
18716#	* add alias sun-cgsix for sun-ss5 as per NetBSD
18717#	* change cons25w to use rs2 for reset rather than rs1 -TD
18718#	* add rc/sc to aixterm based on manpage -TD
18719#
18720# 2000/5/13
18721#	* remove ncv from xterm-16color, xterm-256 color
18722#
18723# 2000/6/10
18724#	* add kmous capability to linux to use Joerg Schoen's gpm patch.
18725#
18726# 2000/7/1
18727#	* add Eterm (Michael Jennings)
18728#
18729# 2000-07-18
18730#       * add amiga-vnc entry.
18731#
18732# 2000-08-12
18733#	* correct description of Top Gun Telnet.
18734#	* add kterm-color
18735#
18736# 2000-08-26
18737#	* add qansi* entries from QNX ftp site.
18738#
18739# 2000-09-16
18740#	* add Matrix Orbital entries by Eric Z. Ayers).
18741#	* add xterm-basic, xterm-sco entries, update related entries to XFree86
18742#	  4.0.1c -TD
18743#
18744# 2000-09-17
18745#	* add S0, E0 extensions to screen's entry -TD
18746#
18747# 2000-09-23
18748#	* several corrections based on tic's new parameter-checking code -TD
18749#	* modify xterm-r6 and similar rs2 sequences which had \E7...\E8
18750#	  bracketing sequences that reset video attributes (\E8 would restore
18751#	  them) -TD
18752#
18753# 2000-11-11
18754#	* rename cygwin to cygwinB19, adapt newer entry from Earnie Boyd -TD
18755#
18756# 2000-12-16
18757#	* improved scoansi, based on SCO man-page, and testing console,
18758#	  scoterm with tack -TD
18759#
18760# 2001-01-27
18761#	* modify kterm to use acsc via SCS controls.
18762#
18763# 2001-02-10
18764#	* screen 3.9.8 allows xterm mouse controls to pass-through
18765#
18766# 2001-03-11
18767#	* remove spurious "%|" from some xterm entries.
18768#
18769# 2001-03-31
18770#	* modify 'screen' khome/kend to match screen 3.09.08
18771#	* add examples of 'screen' customization (screen.xterm-xfree86,
18772#	  screen.xterm-r6, screen.teraterm) -TD
18773#
18774# 2001-04-14
18775#	* correct definitions of shifted editing keys for xterm-xfree86 -TD
18776#	* add "Apple_Terminal" entries -Benjamin Sittler
18777#	* remove time-delays from "Apple_Terminal" entries -TD
18778#	* make sgr entries time-delays consistent with individual caps -TD
18779#
18780# 2001-05-05
18781#	* corrected/updated screen.xterm-xfree86
18782#
18783# The following sets edit modes for GNU EMACS.
18784# Local Variables:
18785# fill-prefix:"\t"
18786# fill-column:75
18787# comment-column:0
18788# comment-start-skip:"^#+"
18789# comment-start:"# "
18790# compile-command:"tic -c terminfo.master"
18791# End:
18792######## SHANTIH!  SHANTIH!  SHANTIH!
18793